wjec-one 4.1.5 → 4.1.6

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.
@@ -49,14 +49,17 @@ module.exports = (_env, { mode }) => ({
49
49
  '#2E3638': 'currentColor'
50
50
  },
51
51
  svgoConfig: {
52
- plugins: [{
53
- name: 'preset-default',
54
- params: {
55
- overrides: {
56
- removeViewBox: false
57
- }
52
+ plugins: [
53
+ {
54
+ name: 'preset-default',
55
+ params: {
56
+ overrides: {
57
+ removeViewBox: false,
58
+ cleanupIds: false
59
+ }
60
+ },
58
61
  }
59
- }]
62
+ ]
60
63
  },
61
64
  svgProps: {
62
65
  xmlns: 'http://www.w3.org/2000/svg'
package/index.js CHANGED
@@ -13,7 +13,7 @@ import*as e from"react";import t,{forwardRef as r,useState as o,useRef as n,useM
13
13
  stroke-dasharray: 100px, 200px;
14
14
  stroke-dashoffset: -125px;
15
15
  }
16
- `;var Ee={name:"7bv8j5",styles:'display:flex;height:20px;width:20px;&[data-size="extraSmall"]{height:12px;width:12px;}&[data-size="small"]{height:16px;width:16px;}&[data-size="large"]{height:24px;width:24px;}'},De={name:"4dsd3s",styles:"transform:rotate(-90deg);"};const Me=({colorPalette:e})=>({circle:s("--dashoffset:",ze,";stroke:currentColor;stroke-dasharray:80px,200px;stroke-dashoffset:var(--dashoffset);"),circleIndeterminate:s("animation:",Se," 1.4s ease-in-out infinite;"),circleStatic:s("stroke-dasharray:",ze,"px;transition:stroke-dashoffset 0.3s ease-out;"),container:Ee,containerIndeterminate:s("animation:",Oe," 1.4s linear infinite;"),containerStatic:De,svgContainer:s("--color:",e.secondary,";color:var(--color);")}),Te=({activeColor:e,ariaLabel:r,borderColor:o,buttonType:i="button",color:a,children:l,disabled:c,focusColor:d,hoverColor:b,icon:u,iconColor:p,iconColorActive:I,iconPosition:h="left",id:C,label:x,labelColor:f,labelColorActive:v,loading:A,loadingProgress:y,onPress:G,outlineColor:Z,size:w="normal"})=>{Le("WJEC One Button: Icon must be a valid SVGComponent",()=>u&&!m(t.createElement(u)),[u]),Le("WJEC One Button: A Button must have a label and/or icon",()=>!l&&!u&&!x,[l,u,x]);const X=n(void 0),[{colorPalette:W}]=j(),k={"--active-background-color":e,"--background-color":a,"--border-color":o,"--focus-background-color":d,"--hover-background-color":b,"--icon-color":p,"--icon-color-active":I,"--label-color":f,"--label-color-active":v,"--outline-color":Z,"--padding":"large"===w?"8px 24px":"small"===w?"2px 8px":void 0},B=z($e),Y=()=>g(u,{"aria-hidden":!0,css:s([B.icon,(x||l)&&u&&("left"===h?B.iconLeft:B.iconRight)])}),{buttonProps:H}=E({id:C,isDisabled:c,onPress:G,type:i},X);return g("button",Je({"aria-label":r},H,{ref:X,css:B.button,style:k,"data-loading":A||void 0}),u&&"left"===h&&Y(),x||l,u&&"right"===h&&Y(),A&&g("div",{css:B.loading},g(je,{color:f||W.neutralDark,progress:y})))};var Pe={name:"18kopw8",styles:"color:var(--icon-color);flex-shrink:0;height:24px;opacity:0.6;transition:inherit;width:24px;"},Qe={name:"15ro776",styles:"margin-right:4px;"},Ue={name:"15fzge",styles:"margin-left:4px;"},Ke={name:"c524f5",styles:"left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);"};const $e=({colorPalette:e})=>({button:s("--active-background-color:",e.neutralLight,";--background-color:",e.neutral,";--border-color:transparent;--focus-background-color:var(--background-color);--hover-background-color:",e.border,";--label-color:",e.neutralDark,";--label-color-active:#FFFFFF;--outline-color:",e.primary,";--padding:8px;--icon-color:var(--label-color);--icon-color-active:var(--label-color-active);",Ie,";align-items:center;background-color:var(--background-color);border:1px solid var(--border-color);border-radius:",be.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:",e.neutral,";color:",e.border,";cursor:not-allowed;& > svg{color:",e.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:Pe,iconLeft:Qe,iconRight:Ue,loading:Ke}),_e=({...e})=>{const[{colorPalette:t}]=j();return g(Te,Je({},e,{activeColor:t.errorDarker,color:t.error,hoverColor:t.errorDark,iconColor:"#FFFFFF",labelColor:"#FFFFFF",outlineColor:"#FFFFFF"}))},qe=({icon:e,iconColor:t,loading:r,...o})=>{const[{colorPalette:n}]=j();return g(Te,Je({},o,{color:r?n.neutral:"transparent",loading:r}),g(e,{css:et.icon,style:{"--icon-color":t},"aria-hidden":!0}))},et={icon:{name:"1s88svv",styles:"color:var(--icon-color);flex-shrink:0;height:24px;transition:inherit;width:24px;"}},tt=({loading:e,...t})=>{const[{colorPalette:r}]=j();return Le("WJEC One LinkButton: A LinkButton cannot have an unaccompanied icon",()=>t.icon&&!(t.children||t.label),[t]),g(Te,Je({},t,{loading:e,color:e?r.neutral:"transparent",iconColor:r.fontLight,labelColor:r.primaryDark}))},rt=({...e})=>{const[{colorPalette:t}]=j();return g(Te,Je({},e,{activeColor:t.primaryDarkActive,color:t.primary,hoverColor:t.primaryDark,iconColor:"#FFFFFF",labelColor:"#FFFFFF",outlineColor:"#FFFFFF"}))},ot=({...e})=>{const[{colorPalette:t}]=j();return g(Te,Je({},e,{activeColor:t.secondary,borderColor:e.disabled?"none":t.secondaryDark,color:"#FFFFFF",focusColor:t.secondaryLight,hoverColor:t.secondaryLight,labelColor:t.secondaryDark,labelColorActive:t.secondaryDark,outlineColor:"#FFFFFF"}))},nt="undefined"!=typeof document?t.useLayoutEffect:()=>{};let it=0;const at=new Map;function lt(e){let[t,r]=o();return nt(()=>{if(!e)return;let t=at.get(e);if(t)r(t.element.id);else{let o="react-aria-description-"+it++;r(o);let n=document.createElement("div");n.id=o,n.style.display="none",n.textContent=e,document.body.appendChild(n),t={refCount:0,element:n},at.set(e,t)}return t.refCount++,()=>{t&&0===--t.refCount&&(t.element.remove(),at.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}const ct=({ariaDescription:e,borderColor:t,children:r,id:o,padding:n})=>{const i=lt(e);return g("div",Je({css:s([st.cardMain,{"--border-color":t,"--padding":n}]),id:o},i),r)},st={cardMain:s("--border-color:none;--padding:30px 30px;background-color:#ffffff;border:1px solid var(--border-color);border-radius:",be.borderRadius,";box-shadow:",be.dropShadow,";padding:var(--padding);position:relative;")};var gt={name:"fup5xt",styles:"align-items:center;display:flex;justify-content:space-between;margin:30px 30px 0;"},dt={name:"hv8m74",styles:"display:flex;justify-content:center;list-style:none;margin:0;padding:0;width:100%;"},bt={name:"efdxua",styles:"display:inline-flex;flex-shrink:0;height:100%;justify-content:center;width:var(--slide-width);"},ut={name:"m70edr",styles:"--slide-width:100%;--transition-duration:200ms;--translate-x:unset;display:flex;height:100%;list-style:none;margin:0;padding:0;position:relative;transform:translateX(var(--translate-x));width:100%;&[data-swiping]{user-select:none;}& > *{flex-shrink:0;}"};const pt=({colorPalette:e})=>({container:s(Ie,";display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%;"),controls:gt,dot:s("cursor:pointer;padding:5px;&::before{background-color:",e.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:s("&::before{background-color:",e.secondary,";border-color:",e.secondary,";}"),dots:dt,navigationButton:s("align-items:center;background-color:",e.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:s("color:",e.fontLight,";height:15px;"),slide:bt,slides:ut});var It;function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ht.apply(null,arguments)}var Ct,mt=r(function(t,r){return e.createElement("svg",ht({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),It||(It=e.createElement("path",{d:"M9.412 3.921a.831.831 0 0 1 1.176 1.175l-4.063 4.07h9.308a.833.833 0 1 1 0 1.667H6.525l4.063 4.07a.831.831 0 0 1-1.176 1.176L4.04 10.707a1 1 0 0 1 0-1.414L9.412 3.92Z",fill:"currentColor"})))});function xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},xt.apply(null,arguments)}var ft=r(function(t,r){return e.createElement("svg",xt({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Ct||(Ct=e.createElement("path",{d:"M10.588 3.921a.831.831 0 0 0-1.176 1.175l4.063 4.07H4.167a.833.833 0 1 0 0 1.667h9.308l-4.063 4.07a.831.831 0 0 0 1.176 1.176l5.372-5.372a1 1 0 0 0 0-1.414L10.588 3.92Z",fill:"currentColor"})))});const vt=({ariaLabel:e,direction:t,disabled:r,onClick:o})=>{const n=z(pt);return g("button",{"aria-label":e,css:n.navigationButton,disabled:r,onClick:o,type:"button"},g("next"===t?ft:mt,{css:n.navigationIcon}))},At=({active:e,ariaLabel:t,onClick:r})=>{const o=z(pt);return g("li",{"aria-label":t,css:s([o.dot,e&&o.dotActive]),onClick:r})},yt=(e,t)=>(e+1)%t,Gt=(e,t)=>(e+t-1)%t,Zt=(e,t,r)=>{const o=r-t+Math.floor((r-1)/2)+e;return o>r-1?o%r:o},wt=(e,t)=>{const r=t.children[e];return Math.round(t.offsetWidth/2-r.offsetLeft-r.offsetWidth/2)},Xt=(e,t,r)=>{const o=wt(e+t,r);r.style.setProperty("--translate-x",`${o}px`)},Wt=r(({ariaControlLabels:e={dot:"Go to slide {index}",next:"Go to next slide",previous:"Go to previous slide"},buffer:r=1,children:d,id:b,infinite:u,onChange:I,showNavigationButtons:h=!0,showNavigationDots:C=!0,simulateMouseSwipe:m,slideIndex:x=0,slideTransitionDuration:f=200,slideWidth:v},A)=>{const y=n(),G=n(),[Z,w]=o(x),X=i(()=>u?r:0,[r,u]),W=i(()=>t.Children.toArray(d),[d]),k=i(()=>W.length,[W]),B=i(()=>k>0&&(h||C),[h,C,k]),Y=i(()=>{const e=Object.keys(W).map(e=>parseInt(e));return u&&e.sort((e,t)=>Zt(e,Z,k)-Zt(t,Z,k)),e},[Z,W,u,k]),H=M("(prefers-reduced-motion)"),V=T(G,[{transform:"translateX({slideOffset:left})"}],{duration:f,easing:"ease-out",fill:"forwards"});l(()=>{k>0&&(V.cancel(),Xt(Y.indexOf(Z),X,G.current))},[Z,X,k,Y]),a(()=>{const e=Math.max(0,Math.min(k-1,x));e!==Z&&N(e)},[x]),a(()=>{let e=y.current.offsetHeight,t=y.current.offsetWidth;const r=new ResizeObserver(([{contentRect:{height:r,width:o}}])=>{r===e&&o===t||(e=r,t=o,Xt(Y.indexOf(Z),X,G.current))});return r.observe(y.current),()=>{r.disconnect()}},[Z,X,Y]);const R=()=>{if(u||Z<k-1){const e=yt(Z,k);N(e)}},F=()=>{if(u||Z>0){const e=Gt(Z,k);N(e)}},N=e=>{if(e!==Z&&"running"!==V.playState){const t=()=>{G.current.removeAttribute("data-swiping"),w(e),p(I)&&I(e)};if(f>0&&!H){const r=wt(Y.indexOf(e)+X,G.current);V.play({slideOffset:`${r}px`}).finished.then(t)}else t()}};c(A,()=>({goToNextSlide:R,goToPreviousSlide:F,goToSlide:N}));const J=e=>{const r=[];let o="before"===e?Y[0]:Y[k-1];for(let t=0;t<X;t++)"before"===e&&(o=Gt(o,k),r.unshift(o)),"after"===e&&(o=yt(o,k),r.push(o));return r.map((r,o)=>g("li",{css:j.slide,key:`buffer_${e}_${r}_${Math.floor(o/k)}`},t.isValidElement(W[r])?t.cloneElement(W[r]):W[r]))},L=D({onSwiped:({absX:e,dir:t})=>{if(G.current.hasAttribute("data-swiping")){e>=(r=Y.indexOf(Z)+X,G.current.children[r].offsetWidth/3)?"Left"===t?R():F():G.current.removeAttribute("data-swiping")}var r},onSwiping:({velocity:e})=>{!G.current.hasAttribute("data-swiping")&&e>.33&&G.current.setAttribute("data-swiping","true")},trackMouse:m}),j=z(pt);return g("div",{ref:y,css:j.container,id:b,"data-carousel-container":!0},g("ul",Je({},L,{ref:e=>{G.current=e,L.ref(e)},css:s([j.slides,{"--slide-width":v,"--transition-duration":`${f}ms`}]),"data-active-slide":Z,"data-carousel-slides-container":!0}),J("before"),Y.map(e=>g("li",{css:j.slide,key:`slide_${e}`},W[e])),J("after")),B&&g("div",{css:j.controls},h&&g(vt,{ariaLabel:e.previous,direction:"previous",disabled:0===Z&&!u,onClick:F}),C&&g("ol",{css:j.dots},W.map((t,r)=>g(At,{active:r===Z,ariaLabel:e.dot.replace("{index}",(r+1).toString()),key:`slide_${r}`,onClick:()=>N(r)}))),h&&g(vt,{ariaLabel:e.next,direction:"next",disabled:Z===k-1&&!u,onClick:R})))});var kt,Bt,Yt;function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ht.apply(null,arguments)}var Vt=r(function(t,r){return e.createElement("svg",Ht({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),kt||(kt=e.createElement("path",{d:"M9.167 15h1.666v-1.667H9.167V15Z",fill:"currentColor"})),Bt||(Bt=e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.667 10C1.667 5.4 5.4 1.667 10 1.667S18.333 5.4 18.333 10 14.6 18.333 10 18.333A8.336 8.336 0 0 1 1.667 10Zm1.666 0A6.675 6.675 0 0 0 10 16.667 6.675 6.675 0 0 0 16.667 10 6.676 6.676 0 0 0 10 3.333 6.676 6.676 0 0 0 3.333 10Z",fill:"currentColor"})),Yt||(Yt=e.createElement("path",{d:"M10 5a3.332 3.332 0 0 0-3.333 3.333h1.666c0-.916.75-1.666 1.667-1.666s1.667.75 1.667 1.666c0 1.667-2.5 1.459-2.5 4.167h1.666c0-1.875 2.5-2.083 2.5-4.167A3.332 3.332 0 0 0 10 5Z",fill:"currentColor"})))}),Rt={name:"115actz",styles:"display:inline-flex;position:relative;"},Ft={name:"1ixbp0l",styles:"pointer-events:none;"},Nt={name:"13v3rg8",styles:"overflow-y:auto;"},Jt={name:"17ju33v",styles:"--cursor:pointer;cursor:var(--cursor);display:inline-flex;"};const Lt=({colorPalette:e})=>({container:Rt,popup:s("--background-color:#fff;--color:",e.font,";--margin:4px;--max-height:300px;--max-width:300px;--padding:8px;--position-x:0;--position-y:0;font-family:'Montserrat',sans-serif;font-size:12px;left:var(--position-x);line-height:16px;margin:var(--margin);max-height:var(--max-height);max-width:var(--max-width);min-width:160px;opacity:0;outline:none;pointer-events:none;position:absolute;text-align:left;top:var(--position-y);width:max-content;z-index:1;"),popupContent:s("--translate-x:0;--translate-y:0;",be.scrollbar,";background-color:var(--background-color);border:var(--border);border-radius:",be.borderRadius,";box-shadow:",be.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:Nt,toggle:Jt,toggleString:s("border-bottom:2px dotted ",e.secondary,";")}),zt=(e,t,r=[])=>{a(()=>{t()&&x(e)},r)},jt=(e,t,r,o,n)=>{let i;if("bottom"===e){const e=o.clientHeight-(r.top+t.offsetHeight);i="floating"===n?e:e+(o.scrollTop+o.offsetTop)}if("left"===e&&(i="floating"===n?r.left:r.left-o.scrollLeft-o.offsetLeft),"right"===e){const e=o.clientWidth-(r.left+t.offsetWidth);i="floating"===n?e:e+(o.scrollLeft+o.offsetLeft)}return"top"===e&&(i="floating"===n?r.top:r.top-o.scrollTop-o.offsetTop),i},Ot=e=>{const t=window.getComputedStyle(e);return{bottom:parseInt(t.marginBottom),left:parseInt(t.marginLeft),right:parseInt(t.marginRight),top:parseInt(t.marginTop)}},St=(e,t)=>{let r;if("sibling"===t)r={left:e.offsetLeft,top:e.offsetTop};else{const t=e.getBoundingClientRect();r={left:Math.floor(t.left),top:Math.floor(t.top)}}return r},Et=(e,t,r,o)=>{if(e&&t){let n=0,i=0;const a=o.startsWith("bottom")||o.startsWith("top")?"vertical":"horizontal",l={height:e.offsetHeight,width:e.offsetWidth},c=f(e),s={height:t.offsetHeight,width:t.offsetWidth},g=St(t,r),{bottom:d,left:b,right:u,top:p}=Ot(e);"horizontal"===a&&(i=g.top+s.height/2-l.height/2-p,o.startsWith("left")&&(n=g.left-l.width-b-u),o.startsWith("right")&&(n=g.left+s.width),o.endsWith("-end")&&(i=g.top+s.height-l.height-p),o.endsWith("-start")&&(i=g.top-p)),"vertical"===a&&(n=g.left+s.width/2-l.width/2-b,o.startsWith("bottom")&&(i=g.top+s.height),o.startsWith("top")&&(i=g.top-l.height-d-p),o.endsWith("-end")&&(n=g.left+s.width-l.width-b),o.endsWith("-start")&&(n=g.left-b)),"floating"===r&&(n+=c.scrollLeft,i+=c.scrollTop),e.style.setProperty("--position-x",`${n}px`),e.style.setProperty("--position-y",`${i}px`)}},Dt=(e,t,r,o,n,l)=>{const c=i(()=>"sibling"===r&&t?.current?f(t.current):null,[r,t?.current]);a(()=>{let i;return n&&(i=new IntersectionObserver(n=>{n.forEach(({isIntersecting:n,target:i})=>{i===e?.current&&n&&((e,t,r,o)=>{const n=o.startsWith("bottom")||o.startsWith("top")?"vertical":"horizontal",i=f(e),a=St(t.parentElement,r);let l=0,c=0;const{bottom:s,left:g,right:d,top:b}=Ot(e);if("horizontal"===n){const n=jt("left",t,a,i,r),c=jt("right",t,a,i,r),s=n<e.offsetWidth+d,b=c<e.offsetWidth+g;(o.startsWith("left")&&s&&!b||o.startsWith("right")&&b&&!s)&&(l=(t.offsetWidth+e.offsetWidth+g+d)*(o.startsWith("left")?1:-1)),e.firstElementChild.style.setProperty("--translate-x",`${l}px`)}if("vertical"===n){const n=jt("top",t,a,i,r),l=jt("bottom",t,a,i,r),g=n<e.offsetHeight+s,d=l<e.offsetHeight+b;(o.startsWith("bottom")&&d&&!g||o.startsWith("top")&&g&&!d)&&(c=(t.offsetHeight+e.offsetHeight+b+s)*(o.startsWith("top")?1:-1)),e.firstElementChild.style.setProperty("--translate-y",`${c}px`)}})(e?.current,t?.current,r,o),i!==e?.current?.firstElementChild||n||l()})},{root:c,threshold:[0,1]}),i.observe(e.current),i.observe(e?.current?.firstElementChild)),()=>{i&&i.disconnect()}},[r,n,o,c])},Mt=(e,t)=>{const r=new Map,o=e=>{const o=e?.toString()||"";return Object.entries(t).reduce((e,[t,o])=>{return e.replaceAll((n=t,r.has(n)||r.set(n,new RegExp(`{${n}(:.+?)?}`,"g")),r.get(n)),o?.toString());var n},o)};return Array.isArray(e)?[...e].map(e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,o(t)]))):Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.map(e=>o(e))]))},Tt=(e,t,{onCancelled:r,onFinished:o,onStarted:i,playImmediately:a,...c}={})=>{const s=n(void 0),g=(n={},a={})=>{const l=e.current?.animate(Mt(t,n),{...c,...a});return s.current=l,i?.(),l?.finished?.catch(()=>r?.())?.finally(()=>o?.()),l};return l(()=>{a&&g()},[]),{cancel:()=>{s.current?.cancel()},pause:()=>{s.current?.pause()},play:g,get playState(){return s.current?.playState}}},Pt=({attachment:e,backgroundColor:t,border:r,children:i,closeDelay:c,id:d,margin:b,maxHeight:u,maxWidth:p,onHide:I,onOutOfView:h,onShow:C,open:m,openDelay:x,padding:v,placement:A,scrollable:y,setPopupRef:G,textColor:Z,toggleRef:w,trigger:X})=>{const W=n(void 0),[k,B]=o(m);((e,t,r,o,n)=>{l(()=>{n&&Et(e?.current,t?.current,r,o)},[r,n,o,e?.current])})(W,w,e,A,m),Dt(W,w,e,A,m,h),((e,t,r,o,i)=>{const l=n(!1);a(()=>{let n,a,c,s,g;const d=()=>{Et(e?.current,t?.current,r,o)};if(i){if(!l.current){const{height:e,left:r,top:o,width:n}=t.current.getBoundingClientRect();a=e,c=r,s=o,g=n,l.current=!0}"floating"===r&&window.addEventListener("resize",d),n=new ResizeObserver(([{contentRect:{height:n,left:i,top:l,width:d}}])=>{n===a&&i===c&&l===s&&d===g||(Et(e?.current,t?.current,r,o),a=n,c=i,s=l,g=d)}),n.observe(t?.current)}return()=>{window.removeEventListener("resize",d),n&&n.disconnect()}},[r,i,o])})(W,w,e,A,m),((e,t,r,o)=>{a(()=>{let n,i=0,a=0;const l=({target:t})=>{const r=t.scrollLeft,o=t.scrollTop,n=i-r,l=a-o,c=parseInt(e?.current?.style?.getPropertyValue("--position-x")),s=parseInt(e?.current?.style?.getPropertyValue("--position-y"));e?.current?.style?.setProperty("--position-x",`${c+n}px`),e?.current?.style?.setProperty("--position-y",`${s+l}px`),i=r,a=o};return o&&"floating"===r&&(n=f(t?.current),i=n?.scrollLeft,a=n?.scrollTop,n!==document.documentElement&&n.addEventListener("scroll",l)),()=>{n&&n.removeEventListener("scroll",l)}},[r,o])})(W,w,e,m);const Y=Tt(W,[{opacity:0}],{delay:c,duration:100,fill:"forwards",onFinished:()=>{B(!1),I?.()}}),H=Tt(W,[{opacity:1}],{delay:x,duration:100,fill:"forwards",onFinished:()=>C?.(),onStarted:()=>B(!0)});a(()=>(m?(Y.pause(),H.play()):(H.pause(),Y.play()),()=>{Y.cancel(),H.cancel()}),[m]);const V=z(Lt),R=g("div",{ref:e=>{W.current=e,G(e)},css:V.popup,id:d,style:{"--background-color":t,"--border":r,"--color":Z,"--margin":b,"--max-height":u,"--max-width":p,"--padding":v}},g("div",{css:s([V.popupContent,y&&V.popupContentScrollable,"hover"===X&&V.popupOnHover])},i));return(m||k)&&("sibling"===e?R:P.createPortal(R,document.body))},Qt=({ariaDescription:e,ariaLabel:t,attachment:r="sibling",backgroundColor:l,border:c,children:d,closeDelay:b=0,closeOnClickOutside:u=!0,closeOnOutOfView:p=!1,gapSize:I,id:h,margin:C=I,maxHeight:m,maxWidth:x,onHide:f,onShow:v,open:A=!1,openDelay:y=0,padding:G,placement:Z="bottom",popupPositionX:w="right",popupPositionY:X="below",position:W={left:"auto",top:"auto"},positionType:k="relative",scrollable:B=!0,setRef:Y,textColor:H,toggle:V,toggleCursor:R,trigger:F="press",width:N="auto"})=>{((e,t,r,o,n,i,a,l)=>{zt('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',()=>void 0!==e,[e]),zt('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',()=>"right"!==t,[t]),zt('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',()=>"below"!==r,[r]),zt('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',()=>'{"left":"auto","top":"auto"}'!==JSON.stringify(o),[o]),zt('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',()=>"relative"!==n,[n]),zt('WJEC One Popup: The "setRef" prop has been deprecated as it is no longer required internally',()=>void 0!==i,[i]),zt('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',()=>"click"===a,[a]),zt('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',()=>"auto"!==l,[l])})(I,w,X,W,k,Y,F,N);const J=n(void 0),L=n(void 0),j=n(void 0),[O,S]=o(A),E=lt(e),D=i(()=>"right"!==w||"below"!==X?((e,t)=>{switch(`${e}-${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"}})(w,X):Z,[Z,w,X]);a(()=>{A&&!O&&P(),!A&&O&&T()},[A]),a(()=>("hover"!==F&&u&&O&&u&&window.addEventListener("click",M,{capture:!0}),()=>{window.removeEventListener("click",M)}),[u,O,F]);const M=({target:e})=>{const t=e;t===J.current||J.current?.contains(t)||L.current?.contains(t)||T()},T=()=>{S(!1)},P=()=>{S(!0)},Q=z(Lt);return g("div",Je({"aria-label":t,ref:J,css:s([Q.container,{"--border":c,"--cursor":R}]),id:h,"data-testid":"popup-container"},E),g("span",{ref:j,css:s([Q.toggle,"string"==typeof V&&Q.toggleString]),onClickCapture:"click"===F||"press"===F?()=>{O?T():P()}:null,onMouseEnter:"hover"===F?P:null,onMouseLeave:"hover"===F?T:null},V),g(Pt,{attachment:r,backgroundColor:l,border:c,closeDelay:b,id:h?`${h}_popup`:void 0,margin:C,maxHeight:m,maxWidth:x,onHide:f,onOutOfView:()=>p&&S(!1),onShow:v,open:O,openDelay:y,padding:G,placement:D,scrollable:B,setPopupRef:e=>L.current=e,textColor:H,toggleRef:j,trigger:F},d))},Ut=({ariaDescription:e,ariaLabel:t,border:r="0.5px solid #b9c2c6",children:o,id:n,maxWidth:i,placement:a="bottom-start",toggle:l=g(Vt,{css:Kt.defaultToggle}),trigger:c="hover",...s})=>g(Qt,Je({ariaDescription:e,ariaLabel:t,border:r},s,{id:n,maxWidth:i,openDelay:"hover"===c?500:0,padding:"16px",placement:a,scrollable:!1,toggle:l,toggleCursor:"help",trigger:c}),o),Kt={defaultToggle:{name:"1pg8bi",styles:"height:20px;"}};var $t;function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},_t.apply(null,arguments)}var qt=r(function(t,r){return e.createElement("svg",_t({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),$t||($t=e.createElement("path",{d:"M10 6.667c.917 0 1.667-.75 1.667-1.667S10.917 3.333 10 3.333 8.333 4.083 8.333 5 9.083 6.667 10 6.667Zm0 1.666c-.917 0-1.667.75-1.667 1.667s.75 1.667 1.667 1.667 1.667-.75 1.667-1.667-.75-1.667-1.667-1.667Zm0 5c-.917 0-1.667.75-1.667 1.667s.75 1.667 1.667 1.667 1.667-.75 1.667-1.667-.75-1.667-1.667-1.667Z",fill:"currentColor"})))});const er=({children:e,color:t,id:r})=>{const o=z(tr);return g("span",{css:s([o.emphasis,{"--color":t}]),id:r},e)},tr=({colorPalette:e})=>({emphasis:s("--color:",e.neutralDark,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:16px;font-weight:700;line-height:24px;")}),rr=({children:e,color:t,id:r})=>{const o=z(or);return g("p",{css:s([o.paragraph,{"--color":t}]),id:r},e)},or=({colorPalette:e})=>({paragraph:s("--color:",e.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;')}),nr=e=>e&&e.length&&Object.hasOwn(e[0],"label"),ir=({ariaLabel:e,description:r,options:o,title:n,toggle:i=g(qe,{icon:qt,ariaLabel:e}),...l})=>{const[{colorPalette:c}]=j();a(()=>(e=>{(nr(e)?e:e.reduce((e,{sectionOptions:t})=>[...e,...t],[])).some(({icon:e,label:r})=>{if(e&&!m(t.createElement(e)))throw new Error(`Icon for option "${r}" must be a valid SVGComponent`)})})(o),[o]);const d=e=>()=>{p(e.onClick)&&e.onClick()},b=z(sr),u=e=>{const{additionalInfo:t,label:r,icon:o}=e;return g("li",{key:r.toString(),css:b.menuItem,onClick:d(e)},o&&g(o,{css:b.menuItemIcon}),g("span",{css:b.menuItemLabel},r),t&&g("span",{css:"string"==typeof t?b.menuItemInfo:b.menuItemAction},t))};return g(Qt,Je({},l,{padding:0,popupPositionX:"right",popupPositionY:"below",toggle:i,ariaLabel:e}),(n||r)&&g("header",{css:b.header},n&&g(er,null,n),r&&g(rr,{color:c.fontLight},r)),g("ul",{css:s([Ie,be.scrollbar,b.menu])},o&&o.length&&(nr(o)?o.map(u):o.map(({sectionTitle:e,sectionOptions:t},r)=>g("li",{key:`section_${e&&e.replace(/\s/g,"_")||r}`,css:b.section},e&&g("h4",{css:b.sectionTitle},e),g("ul",{css:s([b.subMenu,!e&&b.subMenuWithoutTitle])},t.map(u)))))))},ar=10;var lr={name:"jvw5bw",styles:"margin-right:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},cr={name:"1dacand",styles:"padding-top:0;"};const sr=({colorPalette:e})=>({header:s("border-bottom:1px solid ",e.border,";margin:",ar,"px;margin-bottom:0;min-width:250px;"),menu:s("font-family:'Montserrat',sans-serif;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:",ar,"px;"),menuItem:s("align-items:center;border-radius:",be.borderRadius,";color:",e.font,";cursor:pointer;display:flex;font-size:14px;line-height:20px;padding:",5,"px ",ar,"px;&:hover{background-color:",e.neutral,";& > svg{color:",e.secondary,";}}&:not(:last-child){margin-bottom:",5,"px;}"),menuItemAction:s("display:inline-flex;margin-left:",20,"px;pointer-events:none;"),menuItemIcon:s("color:",e.fontLight,";flex-shrink:0;height:20px;margin-right:",ar,"px;"),menuItemInfo:s("color:",e.fontLight,";font-size:11px;line-height:20px;margin-left:",20,"px;"),menuItemLabel:lr,section:s("margin:0 -",ar,"px;&:last-child{margin-bottom:-",ar,"px;}&:not(:last-child){border-bottom:1px solid ",e.border,";margin-bottom:",ar,"px;}"),sectionTitle:s("color:",e.fontLight,";font-size:11px;font-weight:600;letter-spacing:1px;line-height:20px;margin:0;padding:0 ",20,"px;text-transform:uppercase;"),subMenu:s("list-style:none;padding:",ar,"px;"),subMenuWithoutTitle:cr}),gr={dependencies:[],eventTarget:document.documentElement,shouldAddListener:!0},dr=(e,t,r)=>{const{dependencies:o,eventOptions:n,eventTarget:i,shouldAddListener:l}={...gr,...r},c="function"==typeof l?l():l;a(()=>{const r=v(i)?i.current:i;return c&&r?.addEventListener(e,t,n),()=>{r?.removeEventListener(e,t,n)}},[c,e,i,...o])},br={description:s("color:",_.neutralDark,";display:block;font-family:'Montserrat',sans-serif;font-size:12px;font-weight:400;line-height:16px;margin-top:4px;")};var ur,pr=({children:e,id:t})=>e?g("span",{css:br.description,id:t},e):null;function Ir(){return Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ir.apply(null,arguments)}var hr,Cr=r(function(t,r){return e.createElement("svg",Ir({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),ur||(ur=e.createElement("path",{d:"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},mr.apply(null,arguments)}var xr,fr=r(function(t,r){return e.createElement("svg",mr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),hr||(hr=e.createElement("path",{d:"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});function vr(){return vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},vr.apply(null,arguments)}var Ar=r(function(t,r){return e.createElement("svg",vr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),xr||(xr=e.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});const yr={status:{name:"13tmt62",styles:"display:block;font-family:'Montserrat',sans-serif;font-size:12px;font-weight:600;line-height:16px;margin-top:4px;padding-left:24px;position:relative;white-space:pre-line;"},statusIcon:{name:"196io73",styles:"left:0;position:absolute;top:0;width:16px;"}};var Gr,Zr,wr=({children:e,id:t,status:r})=>{const[{colorPalette:o}]=j(),n=i(()=>{let e;switch(r){case"error":e=Cr;break;case"success":e=fr;break;case"warning":e=Ar}return e},[r]),a=i(()=>{let e;switch(r){case"error":e=o.error;break;case"success":e=o.success;break;case"warning":e=o.warning}return e},[r]);return r&&e?g("span",{"aria-live":"polite",css:s([yr.status,{color:a}]),id:t},g(n,{css:yr.statusIcon}),e):null};function Xr(){return Xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Xr.apply(null,arguments)}var Wr,kr,Br=r(function(t,r){return e.createElement("svg",Xr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Gr||(Gr=e.createElement("path",{opacity:.4,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Zr||(Zr=e.createElement("path",{d:"M12 8v4m0 4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Yr.apply(null,arguments)}var Hr,Vr,Rr=r(function(t,r){return e.createElement("svg",Yr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Wr||(Wr=e.createElement("path",{opacity:.4,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),kr||(kr=e.createElement("path",{d:"m7.5 12 3 3 6-6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});function Fr(){return Fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Fr.apply(null,arguments)}var Nr=r(function(t,r){return e.createElement("svg",Fr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Hr||(Hr=e.createElement("path",{opacity:.4,d:"m2.39 18.098 8.225-14.206c.455-.785.682-1.178.979-1.31a1 1 0 0 1 .812 0c.297.132.524.525.979 1.31l8.225 14.206c.456.788.684 1.182.65 1.506a1 1 0 0 1-.406.705c-.263.191-.719.191-1.63.191H3.776c-.91 0-1.366 0-1.629-.191a1 1 0 0 1-.406-.705c-.034-.324.194-.718.65-1.506Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Vr||(Vr=e.createElement("path",{d:"M12 9v4m0 4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});const Jr=({ariaLabel:e,autoComplete:r,description:o,disabled:a,icon:c,id:d,inputMode:b,label:u,maxCharacters:p,name:I,onBlur:h,onChange:C,onFocus:x,placeholder:f,readonly:v,required:A,restrictedCharacters:y,status:G,statusIcon:Z=("error"===G?Br:"success"===G?Rr:"warning"===G?Nr:void 0),statusIconBehavior:w="status",statusMessage:X,suggestions:W,value:k="",width:B})=>{Le("WJEC-One Input: Icon must be a valid SVGComponent",()=>c&&!m(t.createElement(c)),[c]),Le("WJEC-One Input: Status icon must be a valid SVGComponent",()=>Z&&!m(t.createElement(Z)),[Z]);const Y=S(d),H=n(void 0),V=`${Y}_description`,R=`${Y}_status`,F=n(void 0),N=n(0),J=n(k),L=n(void 0),O=i(()=>`wjecOneInputSuggestions_${Y}`,[Y]),E=i(()=>{let e;return void 0!==y&&(e=new RegExp(y,"g")),e},[y]),[{brand:D,colorPalette:M}]=j(),T=z(Lr);l(()=>{H.current?.style?.setProperty("--offset-top",`${F.current.offsetTop}px`),L.current?.style?.setProperty("--offset-top",`${F.current.offsetTop}px`)}),l(()=>{F.current.value=k,J.current=k},[k]),dr("selectionchange",()=>{document.activeElement===F.current&&(N.current=F.current.selectionEnd)},{shouldAddListener:void 0!==y});const P=i(()=>{switch(G){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{background:"#FFFFFF",border:M.border}}},[D,G]),Q=i(()=>void 0!==Z&&("custom"===w||void 0!==G)?Z:void 0,[G,Z,w]),U="error"!==G&&"warning"!==G||!X?V:R,K=i(()=>({"--background-color":P.background,"--border-color":P.border,"--margin-top":u&&"4px","--padding-left":c&&(v&&!a?"32px":"40px"),"--padding-right":Z&&"40px"}),[a,c,u,v,P,Z]);return g("label",{css:T.label,htmlFor:Y,style:{width:B},"data-disabled":a},u,g("input",{"aria-describedby":U,"aria-label":e,autoComplete:r,css:T.input,defaultValue:k,disabled:a,id:Y,inputMode:b,list:W&&O,maxLength:p,name:I,onBlur:({relatedTarget:e})=>{h?.(e)},onChange:({target:e})=>{const{value:t}=e;if(E){if(E.test(t)){const e=t.replace(E,""),r=e.length-J.current.length,o=N.current+r;F.current.value=e,F.current.setSelectionRange(o,o)}F.current.value!==J.current&&C?.(F.current.value),N.current=F.current.selectionEnd,J.current=F.current.value}else C?.(t)},onFocus:()=>{x?.()},placeholder:f,readOnly:v,ref:F,required:A,style:K,type:"text"}),c&&g(c,{"aria-hidden":!0,css:s([T.icon,v&&!a&&{paddingLeft:"0"}]),"data-disabled":a,ref:H}),Q&&g(Q,{"aria-hidden":!0,css:s([T.icon,T.statusIcon]),"data-disabled":a,"data-status":"status"===w?G:void 0,ref:L}),g(pr,{id:V},o),g(wr,{id:R,status:G},X),W&&g("datalist",{id:O},W.map((e,t)=>g("option",{key:`${e}_${t}`,value:e}))))},Lr=({colorPalette:e})=>({icon:s("--offset-top:0;box-sizing:content-box;color:",e.neutralLight,';height:24px;left:0;padding:8px;pointer-events:none;position:absolute;top:var(--offset-top);width:24px;&[data-disabled="true"]{color:',e.border,";}"),input:s("--background-color:#FFFFFF;--border-color:",e.border,";--margin-top:0;--padding-left:8px;--padding-right:8px;",he,";background-color:var(--background-color);border:1px solid var(--border-color);border-radius:",be.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:",e.neutral,";border-color:",e.border,";color:",e.border,";cursor:not-allowed;}&:focus{border-color:",e.primary,";}&:read-only:not(:disabled){--padding-left:0;--padding-right:0;background-image:none;background-color:transparent;border-color:transparent;overflow:hidden;padding-left:var(--padding-left);text-overflow:ellipsis;white-space:nowrap;}&::placeholder{color:",e.neutralLight,";}&::-webkit-calendar-picker-indicator{opacity:0;}"),label:s(Ie,";",Ce,';display:inline-flex;flex-direction:column;position:relative;&[data-disabled="true"]{color:',e.border,";}"),statusIcon:s('left:unset;right:0;&[data-disabled="true"]{opacity:0.5;}&[data-status="error"]{color:',e.error,';}&[data-status="success"]{color:',e.success,';}&[data-status="warning"]{color:',e.warning,";}")});var zr;function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},jr.apply(null,arguments)}var Or,Sr,Er,Dr=r(function(t,r){return e.createElement("svg",jr({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),zr||(zr=e.createElement("path",{d:"M15.25 4.758a.83.83 0 0 0-1.175 0L10 8.825 5.925 4.75A.83.83 0 1 0 4.75 5.925L8.825 10 4.75 14.075a.83.83 0 1 0 1.175 1.175L10 11.175l4.075 4.075a.83.83 0 1 0 1.175-1.175L11.175 10l4.075-4.075a.835.835 0 0 0 0-1.167Z",fill:"currentColor"})))});function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Mr.apply(null,arguments)}var Tr=r(function(t,r){return e.createElement("svg",Mr({viewBox:"0 0 91 83",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Or||(Or=e.createElement("path",{opacity:.4,d:"M50.74 68.314 8.455 56.983c-3.017-.809-4.562-4.155-3.222-6.976l21.62-45.491a5 5 0 0 1 6.662-2.37l45.998 21.86c2.824 1.343 3.737 4.918 1.903 7.45L56.081 66.418a5 5 0 0 1-5.343 1.896Z",fill:"#B0C600"})),Sr||(Sr=e.createElement("path",{opacity:.4,d:"M0 38.726V26.507a5 5 0 0 1 4.079-4.914l53.991-10.12a5 5 0 0 1 4.381 1.305l26.221 25.134a5 5 0 0 1 1.256 5.272l-3.187 9.044a5 5 0 0 1-3.312 3.137l-50.593 14.8a5 5 0 0 1-4.953-1.278L1.45 42.247A5 5 0 0 1 0 38.728Z",fill:"#47BAD1"})),Er||(Er=e.createElement("path",{opacity:.8,d:"M53.75 46h-1.975l-.7-.675A16.178 16.178 0 0 0 55 34.75c0-8.975-7.275-16.25-16.25-16.25S22.5 25.775 22.5 34.75 29.775 51 38.75 51c4.025 0 7.725-1.475 10.575-3.925l.675.7v1.975l12.288 12.263a.3.3 0 0 0 .424 0l3.301-3.301a.3.3 0 0 0 0-.424L53.75 46Zm-15 0A11.235 11.235 0 0 1 27.5 34.75c0-6.225 5.025-11.25 11.25-11.25S50 28.525 50 34.75 44.975 46 38.75 46Z",fill:"#fff"})))});const Pr=({clearButtonBehaviour:e="clear",expanded:r,filter:l=!0,floatingList:c,floatingListPosition:d={top:10},icon:b,id:h,label:m,loading:x,maxHeight:f=150,noMatchesMessage:v="No matches were found",onChange:X,onFilter:W,optionKeyExtractor:k,optionTemplate:B=({option:e})=>g(t.Fragment,null,e.toString()),options:Y,placeholder:H,value:V="",ariaLabel:R=G(m),ariaCloseLabel:F=("clear"===e?"Clear filter":"clearAndClose"===e?"Clear filter and close list":"Close list"),ariaMultiselectable:N})=>{const[{colorPalette:J}]=j();Le("WJEC-One FilterList: You must specify a keyExtractor if the options array contains non-primitive entry types",()=>!Z(Y)&&!w(Y)&&!k,[k,Y]);const L=n(void 0),O=n(void 0),S=n(void 0),[E,D]=o(V),[M,T]=o(0),[P,Q]=o(0),[U,K]=o("below"),[$,_]=o(0),[q,ee]=o([...Y]),[te,re]=o(),[oe,ne]=o([]),[ie,ae]=o(1),le=i(()=>b&&u(t.createElement(b,{color:J.fontLight})),[b]);a(()=>{let e;e=l&&E?Y.filter((e,t)=>be(e,t).toString().toLowerCase().includes(E.toLowerCase())):[...Y],A(e,q)||(p(W)&&W(e),ee(e))},[E,l,Y]),a(()=>{!te||Y.length||E||ge(),L.current.querySelector('input[type="text"]')===document.activeElement&&de()},[E,Y]),a(()=>{r!==te&&(r?de():ge())},[r]),a(()=>{V!==E&&D(V)},[V]),a(()=>(te&&(document.addEventListener("scroll",ce,!0),window.addEventListener("click",ce),window.addEventListener("resize",se)),()=>{document.removeEventListener("scroll",ce,!0),window.removeEventListener("click",ce),window.removeEventListener("resize",se)}),[te]),a(()=>{ae(1),O.current&&O.current.scrollTo({top:0})},[q]),a(()=>{ne(e=>{const t=ie>1?[...e]:[],r=50*ie-50,o=r+50;return t.length=50*(ie-1),[...t,...q.slice(r,o).map(Ce)]})},[q,ie]);const ce=({target:e})=>{const t=e;t===L.current||L.current.contains(t)||ge()},se=y(()=>de(),{limit:250}),ge=()=>{S.current===document.activeElement&&L.current.querySelector('input[type="text"]').focus(),re(!1),ae(1)},de=()=>{if(Y.length>0||!!E){const e=L.current.getBoundingClientRect(),t=e.top+e.height,r=window.innerHeight-t;let o="below";if(!c){if(r<f){const t=e.top;(t>f||t>r)&&(o="above")}"below"===o?(T(Math.min(f,window.innerHeight-t-10)),Q(e.top+L.current.querySelector('input[type="text"]').offsetTop)):(T(Math.min(f,e.top-10)),Q(window.innerHeight-t-1))}K(o),_(e.width),re(!0)}},be=(e,t)=>I(e)?e.key:C(e,k,t),ue=e=>{p(X)&&X(e),D(e)},pe=y(e=>{const t=e.target;t.scrollTop+2*t.clientHeight>t.scrollHeight&&50*ie<q.length&&ae(e=>e+1)},{beforeDelay:e=>{e.nativeEvent.stopImmediatePropagation(),e.persist()},limit:250}),Ie=z(ao),he=()=>g("input",{ref:S,css:s([Ie.listInput,le&&[Ie.listInputWithIcon,{backgroundImage:le}]]),autoFocus:!0,onChange:({currentTarget:e})=>ue(e.value),placeholder:H,value:E}),Ce=e=>{const t=Y.indexOf(e);return g("li",{"aria-posinset":t+1,"aria-setsize":Y.length,key:be(e,t)},B({option:e,index:t,filteredOptions:[...q]}))};return g("div",{ref:L,css:Ie.container,id:h,onClick:({target:e})=>{te||e!==L.current.querySelector('input[type="text"]')||e!==document.activeElement||de()}},g(Jr,{ariaLabel:R,icon:b,label:m,onChange:ue,onFocus:de,placeholder:H,value:E}),te&&g("div",{"aria-expanded":!0,css:s([Ie.expandedContainer,"above"===U?[Ie.expandedContainerAbove,{bottom:P}]:{top:P},{width:$},c&&[Ie.expandedContainerFloating,{...d,maxHeight:`calc(100% - ${2*d.top}px)`}]])},"below"===U&&he(),g(Dr,{"aria-label":F,css:s([Ie.clearIcon,"above"===U&&Ie.clearIconAbove]),onClick:()=>{"clear"!==e&&"clearAndClose"!==e||D(""),"clear"===e&&S.current.focus(),"clearAndClose"!==e&&"close"!==e||ge()}}),g("div",{css:s([Ie.listContainer,"above"===U&&Ie.listContainerAbove]),onScroll:pe},g("ul",{"aria-multiselectable":N,css:s([Ie.list,c&&Ie.listFloating,!c&&{maxHeight:M}]),ref:O},q.length?oe:g("li",{css:Ie.noResults},g(Tr,{css:Ie.noResultsIcon,"aria-hidden":!0}),v)),x&&g("div",{css:s([Ie.loading,"above"===U&&Ie.loadingAbove,!c&&{maxHeight:M}])},g(je,null))),"above"===U&&he()))};var Qr={name:"10eevtr",styles:"bottom:0;top:auto;"},Ur={name:"oxdg22",styles:"&::before{bottom:30px;top:auto;}"},Kr={name:"j7qwjs",styles:"display:flex;flex-direction:column;"},$r={name:"yp8oic",styles:"display:flex;margin:2px 0 1px;min-height:0px;position:relative;"},_r={name:"p49ge0",styles:"margin:1px 0 2px;"},qr={name:"11cgomd",styles:"max-height:initial;"},eo={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%;"},to={name:"267yq8",styles:"padding-left:35px;"},ro={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;"},oo={name:"9cuppe",styles:"bottom:auto;top:0;"},no={name:"m2y6eh",styles:"align-items:center;display:flex;flex-direction:column;justify-content:center;padding:10px 0;"},io={name:"1bkzip4",styles:"width:91px;"};const ao=({colorPalette:e})=>({clearIcon:s("color:",e.fontLight,";cursor:pointer;height:30px;padding:5px;position:absolute;right:0;top:0;&:hover{color:",e.font,";}"),clearIconAbove:Qr,container:s(Ie,";display:inline-block;font-family:'Montserrat',sans-serif;font-size:12px;line-height:20px;position:relative;& > label{width:100%;}"),expandedContainer:s("background-color:#fff;border:1px solid ",e.border,";border-radius:",be.borderRadius,";box-shadow:",be.dropShadow,";position:fixed;z-index:1;&::before{border-bottom:1px solid ",e.border,";content:'';left:8px;position:absolute;right:8px;top:30px;}"),expandedContainerAbove:Ur,expandedContainerFloating:Kr,list:s(be.scrollbar,";list-style:none;margin:0;overflow:auto;padding:8px 10px 9px;width:100%;"),listContainer:$r,listContainerAbove:_r,listFloating:qr,listInput:eo,listInputWithIcon:to,loading:ro,loadingAbove:oo,noResults:no,noResultsIcon:io}),lo=({ariaDescription:e,ariaLabel:t,children:r,clearButton:o="Clear",clearId:n,id:i,onClear:a,onSubmit:l,otherActions:c,submitButton:d="Submit",submitId:b,width:u})=>{const I=lt(e);return g("form",Je({"aria-label":t,css:s({width:u}),id:i,onReset:e=>{e.preventDefault(),p(a)&&a()},onSubmit:e=>{e.preventDefault(),p(l)&&l()}},I),r,g("section",{css:co.controls},o&&g(Te,{buttonType:"reset",id:n,label:o}),g("div",{css:co.submit},d&&g(rt,{buttonType:"submit",id:b,label:d})),c&&g(ir,{options:c})))},co={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;}"}};var so;function go(){return go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},go.apply(null,arguments)}var bo=r(function(t,r){return e.createElement("svg",go({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),so||(so=e.createElement("path",{d:"m7.5 13.475-2.892-2.892a.83.83 0 1 0-1.175 1.175l3.484 3.484a.83.83 0 0 0 1.175 0l8.816-8.817a.83.83 0 1 0-1.175-1.175L7.5 13.475Z",fill:"currentColor"})))});const uo=({ariaLabel:e,checked:t=!1,children:r,description:o,disabled:a,id:c,label:d,labelOverflow:b="wrap",loading:u,onChange:I,size:h="default",status:C,statusMessage:m})=>{const x=S(c),[{brand:f,colorPalette:v}]=j(),A=z(Co),y=n(void 0);l(()=>{y.current.checked=t},[t]);const G=i(()=>{switch(C){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{}}},[f,C]),Z=i(()=>({"--background-color":G.background,"--border-color":G.border}),[d,G]);return g("div",{css:A.container},g("input",{css:A.checkbox,defaultChecked:t,disabled:a,id:x,onChange:({target:{checked:e}})=>{p(I)&&I(e)},ref:y,type:"checkbox","data-loading":u}),g("label",{"aria-label":e,css:s([A.label,"small"===h&&A.labelSmall]),htmlFor:x,onClick:e=>e.stopPropagation(),style:Z},u&&g("div",{css:A.loadingIcon},g(je,{color:v.primary,size:"small"===h?"extraSmall":"default"})),(d||r)&&g("span",{css:A.labelContent,"data-overflow":b},d||r)),g(pr,null,o),g(wr,{status:C},m))};var po={name:"7n37re",styles:"display:inline-flex;flex-direction:column;min-width:0;"},Io={name:"kynfrz",styles:'display:inline-block;font-family:inherit;&[data-overflow="ellipsis"]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}'},ho={name:"qxnk73",styles:"--dimensions:16px;font-size:10px;gap:4px;"};const Co=({colorPalette:e})=>({checkbox:s(be.visiblyHidden," &:checked + label::before{background-image:",u(g(bo,{color:e.primary})),";background-size:cover;}&:checked:disabled + label::before{background-image:",u(g(bo,{color:e.border})),";}&:disabled + label{color:",e.border,";cursor:not-allowed;&::before{background-color:",e.neutral,";border-color:",e.border,";}}&:focus + label::before{border-color:",e.primary,";}"),container:po,label:s("--background-color:#FFFFFF;--border-color:",e.border,";--dimensions:40px;",Ie,";align-items:center;color:",e.font,";cursor:pointer;display:inline-flex;font-family:'Montserrat',sans-serif;font-size:14px;font-weight:400;gap:8px;line-height:16px;position:relative;&:active::before,&:focus-within::before{border-color:",e.primary,"}&::before{background-color:var(--background-color);border:1px solid var(--border-color);border-radius:",be.borderRadius,";content:'';display:inline-block;flex-shrink:0;height:var(--dimensions);width:var(--dimensions);}"),labelContent:Io,labelSmall:ho,loadingIcon:s("align-items:center;background-color:var(--background-color);border-radius:",be.borderRadius,";display:flex;height:calc(var(--dimensions) - 2px);justify-content:center;left:1px;position:absolute;top:1px;width:calc(var(--dimensions) - 2px);")});var mo,xo;function fo(){return fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},fo.apply(null,arguments)}var vo,Ao,yo=r(function(t,r){return e.createElement("svg",fo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),mo||(mo=e.createElement("path",{opacity:.4,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),xo||(xo=e.createElement("path",{d:"M12 6v6l4 2",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Go.apply(null,arguments)}var Zo=r(function(t,r){return e.createElement("svg",Go({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),vo||(vo=e.createElement("path",{opacity:.4,d:"M21 10H3",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Ao||(Ao=e.createElement("path",{d:"M16 2v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});const wo=e=>{switch(e.type){case"date":return e.date?B({date:e.date,format:"yyyy-MM-dd"}):"";case"dateTime":return e.date?W({date:e.date,format:`yyyy-MM-ddT${e.time||"HH:mm"}`}):"";case"time":return e.time||"";default:return k(e)}},Xo=({type:e="dateTime",...t})=>{const{date:r,description:o,disabled:a,id:c,label:d,maxDate:b,maxTime:u="",minDate:I,minTime:h="",onChangeDate:C,onChangeTime:m,placeholder:x,readonly:f,status:v,statusMessage:A,time:y,width:G}=X(t),[{colorPalette:Z}]=j(),w=z(ko),k=n(void 0),B=n(void 0),Y=i(()=>wo({date:r,time:y,type:e}),[]),H=S(c),V=`${H}_description`,R=`${H}_status`;l(()=>{B.current.value=wo({date:r,time:y,type:e})},[r,y,e]);const F=i(()=>"time"===e?yo:Zo,[e]),N=i(()=>"dateTime"===e?"datetime-local":e,[e]),J=i(()=>!(!b||!I)&&("00:00:00"===b.toTimeString().substring(0,8)&&"00:00:00"===I.toTimeString().substring(0,8)),[b,I]),L=i(()=>{if("date"===e||"dateTime"===e){const t=b||("dateTime"===e&&u?new Date:void 0);return t?W({date:t,format:"dateTime"===e?`yyyy-MM-ddT${u||(J?"23:59":"HH:mm")}`:"yyyy-MM-dd"}):u}return u},[b,u,e]),O=i(()=>{if("date"===e||"dateTime"===e){const t=I||("dateTime"===e&&h?new Date:void 0);return t?W({date:t,format:"dateTime"===e?`yyyy-MM-ddT${h||(J?"00:00":"HH:mm")}`:"yyyy-MM-dd"}):h}return h},[I,h,e]),E="error"!==v&&"warning"!==v||!A?V:R,D=i(()=>{switch(v){case"error":return{backgroundColor:Z.errorBackground,borderColor:Z.error};case"success":return{backgroundColor:Z.successBackground,borderColor:Z.success};case"warning":return{backgroundColor:Z.warningBackground,borderColor:Z.warning};default:return{}}},[Z,v]);return g("label",{css:s([w.label,G&&{width:G}])},d,g("span",{css:s([w.container,{"--margin-top":d&&"4px"}])},g("input",{"aria-describedby":E,css:s([w.input,{"--background":D.backgroundColor,"--border-color":D.borderColor}]),defaultValue:Y,disabled:a,id:H,max:L,min:O,onChange:({target:t})=>{const{value:r,valueAsNumber:o}=t,n=new Date(o),i=r.substring(r.indexOf("T")+1);"date"!==e&&"dateTime"!==e||!p(C)||C(n),"dateTime"!==e&&"time"!==e||!p(m)||m(i)},placeholder:x,readOnly:f,ref:B,type:N}),g(F,{"aria-hidden":!0,css:w.icon,"data-disabled":a,ref:k})),g(pr,{id:V},o),g(wr,{id:R,status:v},A))};var Wo={name:"1y6rkrv",styles:"--margin-top:0;margin-top:var(--margin-top);position:relative;"};const ko=({colorPalette:e})=>({container:Wo,icon:s("color:",e.neutralLight,";cursor:pointer;height:40px;left:0;padding:8px;pointer-events:none;position:absolute;top:0;width:40px;&:hover{color:",e.neutralDark,";}"),input:s("--background-color:#fff;--border-color:",e.border,";background-color:var(--background);border:1px solid var(--border-color);border-radius:",be.borderRadius,";font-family:'Montserrat',sans-serif;font-size:16px;height:40px;max-width:100%;outline:none;padding:4px 8px 4px 40px;position:relative;transition:border-color 0.05s linear,padding 0.05s linear;width:100%;&:disabled{background-color:",e.neutral,";color:",e.fontLight,";cursor:not-allowed;& + svg{color:",e.border,";}}&:focus{border-color:",e.primary,";}&:invalid{border-color:",e.error,";}&:read-only:not(:disabled){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;& + svg{display:none;}}&::placeholder{color:",e.fontLight,";}&::-webkit-calendar-picker-indicator{background-color:pink;cursor:pointer;height:40px;left:0;opacity:0;padding:0;position:absolute;top:0;width:40px;}"),label:s(Ie,";",Ce,";display:inline-flex;flex-direction:column;position:relative;width:100%;")}),Bo=({ariaLabel:e,breadcrumb:t,children:r,href:o,id:n,target:i})=>{const a=z(Yo),l={..."newTab"===i?{target:"_blank",rel:"noopener noreferrer"}:{}};return g("a",Je({"aria-label":e,href:o,css:s([a.link,t&&a.withBreadcrumb]),id:n},l),r||o)},Yo=({colorPalette:e})=>({link:s("color:",e.primaryDark,";font-family:'Montserrat',sans-serif;font-size:16px;font-weight:500;line-height:24px;"),withBreadcrumb:s("color:",e.fontLight,";margin-right:40px;text-decoration:none;position:relative;&:not(:last-of-type)::after{background-image:",u(g(Ye,{color:e.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 ",e.fontLight,";}")}),Ho=({id:e,label:t,readonly:r,value:o,...n})=>{const i=z(Ro);return r?g("label",{css:i.label,id:e},g("span",{css:i.labelText},t),g(Bo,{href:`mailto:${o}`},o)):g(Jr,Je({label:t,value:o},n))};var Vo={name:"r7q7qr",styles:"margin-bottom:5px;"};const Ro=({colorPalette:e})=>({label:s(Ie,";color:",e.font,";display:inline-flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:12px;line-height:20px;"),labelText:Vo});var Fo;function No(){return No=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},No.apply(null,arguments)}var Jo,Lo=r(function(t,r){return e.createElement("svg",No({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Fo||(Fo=e.createElement("path",{d:"M12 5v14m-7-7h14",stroke:"#FAFCFC",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",opacity:.6})))});function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},zo.apply(null,arguments)}var jo=r(function(t,r){return e.createElement("svg",zo({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Jo||(Jo=e.createElement("path",{d:"M5.333 21.656a6 6 0 0 1 2.773-10.964 8.002 8.002 0 0 1 15.788 0 6 6 0 0 1 2.773 10.964m-16-.323L16 16m0 0 5.333 5.333M16 16v12",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});const Oo=({ariaLabel:e,browseLabel:t="Browse",description:r,displaySize:o="medium",id:i,label:a,max:l,maxFileSize:c,multiple:s,onError:d,onSelect:b,placeholderDescription:u=("large"===o?"Drag & drop "+(s?"files":"a file"):`Drag & drop ${s?"files":"a file"} or click to upload`),status:I,statusMessage:h,validExtensions:C,validTypes:m})=>{const x=n(void 0),f=n(void 0),v=S(i),A=e=>s?void 0===l||e<=l:e<=1,y=e=>{const t=e.length,r=[],o=[],n=[],i=[];A(t)?(e.forEach(e=>{const t=(({name:e})=>{const t=e.substring(e.lastIndexOf("."));return void 0===C||C.includes(t)})(e),a=(({size:e})=>void 0===c||e<=c)(e),l=(({type:e})=>void 0===m||m.includes(e))(e);t&&a&&l&&i.push(e),t||r.push(e),a||o.push(e),l||n.push(e)}),i.length>0&&p(b)&&b(i)):p(d)&&d([{code:"MAX_FILES_EXCEEDED",details:{maxCount:l||1,selectedCount:t}}]),(r.length||o.length||n.length)&&p(d)&&d([r.length&&{code:"INVALID_FILE_EXTENSION",details:{files:r}},o.length&&{code:"INVALID_FILE_SIZE",details:{files:o}},n.length&&{code:"INVALID_FILE_TYPE",details:{files:n}}].filter(e=>e))},G=z(Eo);return g("label",{css:G.label,htmlFor:v},a,g("div",{css:G.container,onDragEnter:e=>{const t=e.dataTransfer.items.length,r=A(t);Y(e.nativeEvent),x.current.setAttribute("data-drag-state",r?"valid":"invalid")},onDragLeave:e=>{Y(e.nativeEvent),x.current.removeAttribute("data-drag-state")},onDragOver:e=>{Y(e.nativeEvent)},onDrop:e=>{Y(e);const t=Array.from(e.dataTransfer.files);y(t),x.current.removeAttribute("data-drag-state")},ref:x,"data-display-size":o,"data-status":I},g("input",{"aria-label":e,css:be.visiblyHidden,id:v,multiple:s,onChange:e=>{const t=Array.from(e.currentTarget.files);y(t)},ref:f,type:"file",value:""}),g(jo,{css:G.uploadIcon,"aria-hidden":!0}),u&&g("p",{css:G.description},u),"large"===o&&g(rt,{icon:Lo,label:t,onPress:()=>{f.current.click()}})),g(pr,null,r),g(wr,{status:I},h))};var So={name:"o1srjj",styles:"display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:14px;gap:4px;line-height:16px;& > span{margin-top:0;}"};const Eo=({colorPalette:e})=>({container:s("--icon-size:32px;",Ie,";align-items:center;border:2px dashed ",e.border,";border-radius:",be.borderRadius,";cursor:pointer;display:flex;flex-direction:column;font-size:16px;font-weight:600;gap:8px;justify-content:center;line-height:24px;max-height:var(--max-height);max-width:var(--max-width);padding:16px;position:relative;transition:border-color 0.1s linear;&:focus-within{outline:2px solid ",e.primary,";outline-offset:-2px;}&:hover{background-color:",e.neutral,";border-color:",e.secondary,';}&[data-display-size="small"]{--icon-size:24px;display:inline-flex;flex-direction:row;font-weight:400;height:40px;padding:8px;}&[data-status="error"]{background-color:',e.errorBackground,";border-color:",e.error,';}&[data-status="success"]{background-color:',e.successBackground,";border-color:",e.success,';}&[data-status="warning"]{background-color:',e.warningBackground,";border-color:",e.warning,';}&[data-drag-state="valid"]{border-color:',e.secondary,';}&[data-drag-state="invalid"]{border-color:',e.error,";}"),description:s("color:",e.neutralLight,";margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"),label:So,uploadIcon:s("color:",e.neutralLight,";flex-shrink:0;width:var(--icon-size);")});var Do;function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Mo.apply(null,arguments)}var To,Po,Qo=r(function(t,r){return e.createElement("svg",Mo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Do||(Do=e.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});function Uo(){return Uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Uo.apply(null,arguments)}var Ko,$o,_o,qo=r(function(t,r){return e.createElement("svg",Uo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),To||(To=e.createElement("path",{opacity:.12,d:"M9 12a3 3 0 0 0 5.121 2.121L9.88 9.88A2.99 2.99 0 0 0 9 12Z",fill:"currentColor"})),Po||(Po=e.createElement("path",{d:"M10.742 5.092C11.15 5.032 11.569 5 12 5c5.105 0 8.455 4.505 9.58 6.287.137.215.205.323.243.49.028.125.028.322 0 .447-.038.166-.107.274-.244.492-.3.474-.757 1.141-1.363 1.865M6.724 6.715c-2.162 1.467-3.63 3.504-4.303 4.57-.137.217-.206.325-.244.492a1.173 1.173 0 0 0 0 .446c.038.167.107.274.243.49C3.545 14.495 6.895 19 12 19c2.058 0 3.832-.732 5.288-1.723M3 3l18 18M9.879 9.879a3 3 0 1 0 4.243 4.243",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});function en(){return en=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},en.apply(null,arguments)}var tn=r(function(t,r){return e.createElement("svg",en({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Ko||(Ko=e.createElement("path",{opacity:.12,d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"currentColor"})),$o||($o=e.createElement("path",{d:"M2.42 12.713c-.136-.215-.205-.323-.243-.49a1.173 1.173 0 0 1 0-.446c.038-.167.107-.274.243-.49C3.545 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.028.125.028.322 0 .446-.038.167-.107.274-.243.49C20.455 14.495 17.105 19 12 19s-8.455-4.505-9.58-6.287Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),_o||(_o=e.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});const rn=({ariaLabel:e,autoComplete:t="current-password",description:r,disabled:o,id:a,label:c,name:d,onChange:b,onToggleRevealPassword:u,placeholder:p,revealPassword:I,showIcon:h=!0,status:C,statusMessage:m,value:x=""})=>{const f=n(void 0),v=n(void 0),A=n(void 0),[{brand:y,colorPalette:G}]=j(),Z=S(),w=i(()=>a||Z,[Z,a]);l(()=>{const e=Boolean(!o&&I);A.current.setAttribute("aria-pressed",e.toString()),v.current.setAttribute("type",e?"text":"password")},[o,I]),l(()=>{v.current.value=x},[x]);const X=i(()=>{switch(C){case"error":return{background:G.errorBackground,border:G.error};case"success":return{background:G.successBackground,border:G.success};case"warning":return{background:G.warningBackground,border:G.warning};default:return{}}},[y,C]),W=z(an),{buttonProps:k}=E({"aria-label":e,"aria-pressed":!o&&I,isDisabled:o,onPress:()=>{const e=!o&&"true"!==A.current.getAttribute("aria-pressed");A.current.setAttribute("aria-pressed",e.toString()),v.current.setAttribute("type",e?"text":"password"),u?.(e)},type:"button"},A);return g("label",{css:W.label,htmlFor:w},c,g("span",{css:s([W.container,{"--margin-top":c&&"4px"}])},g("input",{"aria-label":e,autoComplete:t,css:s([W.input,{"--background-color":X.background,"--border-color":X.border,"--padding-left":!h&&"8px"}]),defaultValue:x,disabled:o,id:w,name:d,onChange:({target:{value:e}})=>{b?.(e)},placeholder:p,ref:v,type:!o&&I?"text":"password"}),h&&g(Qo,{"aria-hidden":!0,css:W.icon,ref:f}),g("button",Je({},k,{css:W.revealPassword,name:"Reveal password",ref:A}))),g(pr,null,r),g(wr,{status:C},m))};var on={name:"1y6rkrv",styles:"--margin-top:0;margin-top:var(--margin-top);position:relative;"},nn={name:"1ynvfur",styles:"font-size:12px;margin-top:4px;"};const an=({colorPalette:e})=>({container:on,description:nn,icon:s("color:",e.neutralLight,";height:40px;left:0;padding:8px;pointer-events:none;position:absolute;top:0;width:40px;"),input:s("--background-color:#FFFFFF;--border-color:",e.border,";--padding-left:40px;",he,";background-color:var(--background-color);border:1px solid var(--border-color);border-radius:",be.borderRadius,";font-family:inherit;font-size:16px;height:40px;line-height:24px;max-width:100%;outline:none;padding:4px 40px 4px var(--padding-left);width:100%;&:disabled{background-color:",e.neutral,";border-color:",e.border,";color:",e.border,";cursor:not-allowed;+ button{background-image:",u(g(qo,{color:e.border})),';&[aria-pressed="true"]{background-image:',u(g(tn,{color:e.border})),";}}+ svg{color:",e.border,";}}&:focus{border-color:",e.primary,";}&::placeholder{color:",e.neutralLight,";}"),label:s(Ie,";",Ce,";display:inline-flex;flex-direction:column;position:relative;&:has(:disabled){color:",e.border,";}"),revealPassword:s("background:transparent ",u(g(qo,{color:e.neutralLight}))," center / 24px no-repeat;border:none;color:",e.neutralLight,";cursor:pointer;position:absolute;height:40px;padding:4px 8px;right:0;top:0;width:40px;&:disabled{background-image:",u(g(qo,{color:e.border})),";pointer-events:none;}&:focus{outline-color:",e.primary,';outline-width:1px;}&[aria-pressed="true"]{background-image:',u(g(tn,{color:e.primary})),";color:",e.primary,";}")}),ln=({ariaLabel:e,description:r,disabled:o,gridArea:a,keyExtractor:c,highlightedOption:s,id:d,label:b,labelExtractor:u,name:m,onSelect:x,options:f,orientation:v="horizontal",selectedOption:A,status:y,statusMessage:G})=>{zt('WJEC One RadioGroup: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',()=>void 0!==a,[a]),Le("WJEC-One RadioGroup: You must specify a keyExtractor if the options array contains non-primitive entry type",()=>!Z(f)&&!w(f)&&!c,[c]),zt("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",()=>void 0!==s,[s]);const X=S(d),W=n(void 0);l(()=>{if(A){const e=W.current.querySelectorAll('input[type="radio"]'),t=f.indexOf(A),r=H(A,t),o=Array.from(e).find(e=>e.value===r);o&&(o.checked=!0)}},[f,A]);const[{brand:k,colorPalette:B}]=j(),Y=i(()=>{switch(y){case"error":return{background:B.errorBackground,border:B.error};case"success":return{background:B.successBackground,border:B.success};case"warning":return{background:B.warningBackground,border:B.warning};default:return{}}},[k,y]),H=(e,t)=>I(e)?e.key:C(e,c,t),V=e=>()=>{p(x)&&x(e)},R=z(sn),F=i(()=>({"--background-color":Y.background,"--border-color":Y.border,"--flex-direction":"vertical"===v&&"column","--flex-gap":"vertical"===v&&"16px 8px","--margin-top":b&&"4px"}),[b,v,Y]);return g("label",{css:R.label,id:X,"data-disabled":o||void 0},b,g("fieldset",{css:R.container,ref:W,style:F},f.map((r,n)=>{const i=H(r,n),a=n===f.indexOf(A);return g(t.Fragment,{key:i},g("input",{css:R.radioButton,defaultChecked:a,disabled:o,id:`${X}_${n}`,name:m||X,onChange:V(r),type:"radio",value:i}),g("label",{"aria-label":e,css:R.radioButtonContainer,htmlFor:`${X}_${n}`},I(r)?r.label:h(r,u,n)))})),g(pr,null,r),g(wr,{status:y},G))};var cn={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;}"};const sn=({colorPalette:e})=>({container:s("--background-color:#FFFFFF;--border-color:",e.border,";--flex-direction:row;--flex-gap:8px 16px;--margin-top:0;--shadow-color:var(--background-color);--shadow-size:16px;",Ie,";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:s(Ce,';&[data-disabled="true"]{color:',e.border,";}"),radioButton:s(be.visiblyHidden," position:absolute;&:checked + label::before{--shadow-size:8px;background-color:",e.primary,";padding:6px;}&:disabled + label{--border-color:",e.border,";--shadow-color:",e.neutral,";color:",e.border,";cursor:not-allowed;&::before{background-color:",e.border,";}}&:focus + label::before{--border-color:",e.primary,";}"),radioButtonContainer:cn});var gn;function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},dn.apply(null,arguments)}var bn=r(function(t,r){return e.createElement("svg",dn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),gn||(gn=e.createElement("path",{d:"m6 9 6 6 6-6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}),un={name:"1ynvfur",styles:"font-size:12px;margin-top:4px;"},pn={name:"801txx",styles:"font-size:12px;font-weight:600;margin-top:4px;padding-left:24px;position:relative;"},In={name:"ezpkst",styles:"left:0;position:absolute;top:50%;transform:translateY(-50%);width:16px;"};const hn=({colorPalette:e})=>({description:un,icon:s("--offset-top:0;box-sizing:content-box;color:",e.neutralLight,';height:24px;left:0;padding:8px;pointer-events:none;position:absolute;top:var(--offset-top);width:24px;&[data-disabled="true"]{color:',e.border,";}"),label:s(Ie,";",Ce,';display:flex;flex-direction:column;position:relative;&[data-disabled="true"]{color:',e.border,";}"),select:s("--background-color:#FFFFFF;--border-color:",e.border,";--margin-top:0;--padding-left:8px;appearance:none;background:var(--background-color) ",u(g(bn,{color:e.neutralLight}))," calc(100% - 8px) center / 24px no-repeat;border:1px solid var(--border-color);border-radius:",be.borderRadius,";color:",e.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 var(--padding-left);width:100%;&:disabled{background-color:",e.neutral,";background-image:",u(g(bn,{color:e.border})),";border-color:",e.border,";color:",e.border,";cursor:not-allowed;}&:focus{border-color:",e.primary,";}&::placeholder{color:",e.neutralLight,";}& > option{&:disabled{color:",e.border,";}}"),status:pn,statusError:s("color:",e.error,";"),statusIcon:In,statusSuccess:s("color:",e.success,";"),statusWarning:s("color:",e.warning,";")}),Cn=(e,t,r)=>I(e)?e.key:C(e,t,((e,t)=>t.findIndex(t=>t===e||mn(t)&&t.options.includes(e)))(e,r))?.toString(),mn=e=>H(e)&&Object.hasOwn(e,"options")&&Object.hasOwn(e,"label")&&"string"==typeof e.label,xn=e=>{const{blankOption:t,description:r,disabled:o,disabledOptions:a,icon:c,id:s,label:d,name:b,onSelect:u,optionKeyExtractor:C,optionLabelExtractor:m,options:x,placeholder:f,selectedOption:v,status:A,statusMessage:y}=e;zt("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)",()=>{const e=new Set;return x.some(t=>!!(mn(t)&&Z(t.options)&&V(t.options))||(!!e.has(t)||(e.add(t),!1)))&&!C},[C,x]),Le("WJEC One Select: You must specify a keyExtractor if the options array contains non-primitive entry types",()=>x.some(e=>{if(mn(e)){const t=e.options,r=Z(t),o=w(t);return!(r||o||C)}return!(R(e)||I(e)||C)}),[C,x]);const G=n(void 0),[{brand:X,colorPalette:W}]=j(),k=n(void 0),B=S(s),Y=`${B}_description`,H=`${B}_status`,F=i(()=>v?Cn(v,C,x):"",[C,x,v]);l(()=>{k.current&&(k.current.value=F)},[F]),l(()=>{G.current?.style?.setProperty("--offset-top",`${k.current.offsetTop}px`)});const N=i(()=>{switch(A){case"error":return{background:W.errorBackground,border:W.error};case"success":return{background:W.successBackground,border:W.success};case"warning":return{background:W.warningBackground,border:W.warning};default:return{}}},[X,A]),J=(e,t)=>{const r=Cn(e,C,x);return g("option",{disabled:a?.includes(e),key:r,value:r},I(e)?e.label:h(e,m,t))},L="error"!==A&&"warning"!==A||!y?Y:H,O=z(hn),E=i(()=>({"--background-color":N.background,"--border-color":N.border,"--margin-top":d&&"4px","--padding-left":c&&"40px"}),[c,d,N]);return g("label",{css:O.label,htmlFor:B,"data-disabled":o},d,g("select",{"aria-describedby":L,css:O.select,defaultValue:F,disabled:o,id:B,name:b,onChange:({target:{value:e}})=>{const t=((e,t,r)=>{let o;return r.find(n=>{if(mn(n))o=n.options.find(o=>Cn(o,t,r)===e);else{const i=Cn(n,t,r);o=i===e?n:void 0}return void 0!==o}),o})(e,C,x);p(u)&&u(t)},ref:k,style:E},f&&g("option",{disabled:!0,hidden:!0,value:""},f),t&&g("option",{value:""}),x.map((e,t)=>mn(e)?g("optgroup",{key:e.key??e.label,label:e.label},e.options.map(e=>J(e,t))):J(e,t))),c&&g(c,{"aria-hidden":!0,css:O.icon,"data-testid":"icon","data-disabled":o,ref:G}),g(pr,{id:Y},r),g(wr,{id:H,status:A},y))},fn=e=>{let t=e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase();return t.startsWith("data-")||(t=`data-${t}`),t},vn=({ariaDescription:e,ariaLabel:t,disabled:r,height:n="auto",id:l,label:c,maxCharacters:d,maxHeight:b="100%",maxWidth:u="100%",onChange:I,placeholder:h,readonly:C,resizable:m=!1,showCount:x=!0,value:f="",width:v="100%"})=>{const[A,y]=o(f),G=lt(e);a(()=>{f!==A&&y(f)},[f]);const Z=z(An),w=((e,{excludeIfFalse:t,excludeIfFalsy:r,excludeIfNull:o=!0,excludeIfUndefined:n=!0}={})=>i(()=>Object.entries(e).reduce((e,[i,a])=>t&&!1===a||r&&!a||o&&null===a||n&&void 0===a?e:{...e,[fn(i)]:String(a)},{}),[e]))({"data-current-value-length":A?.length},{excludeIfFalse:!0});return g("label",Je({"aria-label":t},w,{css:s([Z.label,x&&s("&::after{content:attr(data-current-value-length) '",void 0!==d&&`/${d}`,"';}"),{maxWidth:u,width:v}]),"data-max-count":d}),c,g("textarea",Je({id:l,css:s([be.scrollbar,Z.textarea,{height:n,maxHeight:b,resize:m?"both":"none"}]),value:A,placeholder:h,onChange:({target:{value:e}})=>{y(e),p(I)&&I(e)},readOnly:C,disabled:r,maxLength:d},C?{tabIndex:-1}:{},G)))},An=({colorPalette:e})=>({label:s(Ie,";display:inline-flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:11px;line-height:20px;&::after{color:",e.fontLight,";display:inline-block;font-size:12px;font-family:'Montserrat',sans-serif;margin:5px 5px 0 0;text-align:right;}"),textarea:s("border:1px solid ",e.border,";border-radius:",be.borderRadius,";color:",e.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:",e.neutral,";cursor:not-allowed;}&:focus{border-color:",e.primary,";}&:not(:read-only){transition:border-color 0.05s linear;}")});var yn;function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Gn.apply(null,arguments)}var Zn=r(function(t,r){return e.createElement("svg",Gn({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),yn||(yn=e.createElement("path",{d:"m7.5 13.475-2.892-2.892a.83.83 0 1 0-1.175 1.175l3.484 3.484a.83.83 0 0 0 1.175 0l8.816-8.817a.83.83 0 1 0-1.175-1.175L7.5 13.475Z",fill:"currentColor"})))});const wn=e=>{const t=i(()=>window.matchMedia(e),[e]),[r,n]=o(()=>t?.matches);return a(()=>{const e=e=>n(e.matches);return t?.addEventListener("change",e),()=>{t?.removeEventListener("change",e)}},[t]),r},Xn=e=>{a(()=>e,[])},Wn=({ariaLabel:e,disabled:t,id:r,label:o,on:i=!1,onChange:a,size:c="default",value:s})=>{const d=n(void 0),b=S(r),u=wn("(prefers-reduced-motion)");l(()=>{d.current?.setAttribute("data-state",i?"on":"off")},[]),((e,t)=>{const r=n(!0);l(()=>{let t;return r.current?r.current=!1:t=e(),t},t),Xn(()=>{r.current=!0})})(()=>{const e="on"===d.current?.getAttribute("data-state");i!==e&&(d.current?.setAttribute("data-state",i?"on":"off"),u||I.play(void 0,{direction:e?"reverse":"normal"}))},[i,u]);const I=Tt(d,[{height:"calc(var(--toggle-dimensions) - 2px)",left:0,margin:"calc(var(--toggle-margin) + 1px)",width:"calc(var(--toggle-dimensions) - 2px)"},{height:"var(--toggle-dimensions)",margin:"var(--toggle-margin)",marginLeft:"calc(var(--toggle-margin) + 1px)",width:"calc(var(--track-width) - calc(var(--toggle-margin) * 2))"},{left:"unset",height:"var(--toggle-dimensions)",margin:"var(--toggle-margin)",right:"calc(100% - var(--track-width))",width:"var(--toggle-dimensions)"}],{duration:200,easing:"ease-in-out",iterations:1,pseudoElement:"::after"}),h=()=>{const e="true"===d.current?.getAttribute("aria-pressed");d.current?.setAttribute("aria-pressed",(!e).toString()),d.current?.setAttribute("data-state",e?"off":"on"),u||I.play(void 0,{direction:e?"reverse":"normal"}),p(a)&&a(!e)},C=z(kn),{buttonProps:m}=E({"aria-label":e,"aria-pressed":i,id:b,isDisabled:t,onPress:h},d);return g("div",{css:C.container},g("label",{css:C.label,htmlFor:b,onClickCapture:e=>{t||(e.preventDefault(),h())}},o),g("button",Je({},m,{css:C.toggleButton,ref:d,"data-size":c}),s))},kn=({colorPalette:e})=>({container:s(Ie,";display:inline-flex;flex-direction:column;font-size:16px;gap:4px 8px;&:has(:disabled){& button{cursor:not-allowed;}& label{color:",e.border,';cursor:not-allowed;}}&:has([data-size="small"]){font-size:10px;gap:4px;}'),label:s(Ce,";cursor:pointer;font-size:inherit;"),toggleButton:s("--highlight-size:30px;--toggle-offset:0;--toggle-dimensions:18px;--track-height:24px;--track-width:48px;--toggle-margin:calc(calc(var(--track-height) - var(--toggle-dimensions)) / 2);align-items:center;background-color:transparent;border:0;border-radius:calc(var(--track-height) / 2);color:",e.neutralDark,";cursor:pointer;display:flex;font-family:'Montserrat',sans-serif;font-size:inherit;font-weight:400;gap:inherit;line-height:var(--track-height);outline-color:",e.primary,';outline-offset:3px;padding:0;position:relative;text-align:left;width:max-content;&[data-size="small"]{--highlight-size:20px;--toggle-dimensions:12px;--track-height:16px;--track-width:32px;}&:not(:disabled):active{--shadow-color:',F(e.neutralLight,.3),';&[aria-pressed="true"]{--shadow-color:',F(e.primary,.3),";}&::after{box-shadow:0 0 0 calc(calc(var(--highlight-size) - var(--toggle-dimensions)) / 2) var(--shadow-color);}}&:disabled{color:",e.border,";&::after{background-color:",e.border,';}}&:not(:disabled):hover{&::after{background-color:#9DAAAF;}&[aria-pressed="true"]::after{background-color:',e.primaryDark,";}}&:after{background-color:",e.neutralLight,";border-radius:12px;content:'';display:block;height:calc(var(--toggle-dimensions) - 2px);left:0;margin:calc(var(--toggle-margin) + 1px);position:absolute;width:calc(var(--toggle-dimensions) - 2px);}&:before{background-color:#FFFFFF;border:1px solid ",e.border,";border-radius:calc(var(--track-height) / 2);content:'';display:block;flex-shrink:0;height:var(--track-height);position:relative;width:var(--track-width);}&[aria-pressed=\"true\"]{--icon-size:calc(var(--toggle-dimensions) - 2px);--toggle-offset:calc(var(--track-width) / 2);&::after{background-color:",e.primary,";background-image:",u(g(Zn,{color:"#fff"})),";background-position:center right calc(calc(var(--toggle-dimensions) - var(--icon-size)) / 2);background-repeat:no-repeat;background-size:var(--icon-size);height:var(--toggle-dimensions);left:unset;margin:var(--toggle-margin);right:calc(100% - var(--track-width));width:var(--toggle-dimensions);}&::before{background-color:",e.primaryLightest,";border-color:",e.primary,";}&:disabled{&::after{background-color:",e.border,";}&::before{background-color:",e.offWhite,";border-color:",e.border,";}}}")});var Bn;function Yn(){return Yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Yn.apply(null,arguments)}var Hn=r(function(t,r){return e.createElement("svg",Yn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Bn||(Bn=e.createElement("path",{d:"M12 12h.005M17 12h.005M7 12h.005M5.2 7h13.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 8.52 22 9.08 22 10.2v3.6c0 1.12 0 1.68-.218 2.108a2 2 0 0 1-.874.874C20.48 17 19.92 17 18.8 17H5.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C2 15.48 2 14.92 2 13.8v-3.6c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C3.52 7 4.08 7 5.2 7Zm7.05 5a.25.25 0 1 1-.5 0 .25.25 0 0 1 .5 0Zm5 0a.25.25 0 1 1-.5 0 .25.25 0 0 1 .5 0Zm-10 0a.25.25 0 1 1-.5 0 .25.25 0 0 1 .5 0Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});const Vn=({description:e,disabled:t,id:r,label:o,maxLength:i=6,onChange:c,placeholder:s="e.g. 123456",showIcon:d=!0,status:b,statusMessage:u})=>{const I=n(void 0),h=n(void 0),C=n(0),m=n(""),x=S(r),f=`${x}_description`,v=`${x}_status`;a(()=>{const e=()=>{document.activeElement===h.current&&(C.current=h.current.selectionEnd)};return document.addEventListener("selectionchange",e),()=>{document.removeEventListener("selectionchange",e)}},[]),l(()=>{I.current?.style?.setProperty("--offset-top",`${h.current.offsetTop}px`)});const A=z(Rn),y="error"!==b&&"warning"!==b||!u?f:v;return g("label",{css:A.label,"data-disabled":t},o,d&&g(Hn,{"aria-hidden":!0,css:A.icon,"data-disabled":t,ref:I}),g("input",{"aria-describedby":y,autoComplete:"one-time-code",css:A.input,disabled:t,id:x,inputMode:"numeric",maxLength:i,onChange:({target:e})=>{const{value:t}=e;p(c)&&c(t)},onInput:()=>{if(/[^0-9]/g.test(h.current.value)){const e=h.current.value.replace(/[^0-9]/g,""),t=e.length-m.current.length,r=C.current+t;h.current.value=e,h.current.setSelectionRange(r,r)}C.current=h.current.selectionEnd,m.current=h.current.value},placeholder:s,ref:h,type:"text","data-status":b}),g(pr,{id:f},e),g(wr,{id:v,status:b},u))},Rn=({colorPalette:e})=>({icon:s("--offset-top:0;color:",e.neutralLight,';height:40px;left:0;padding:8px;pointer-events:none;position:absolute;top:var(--offset-top);width:40px;&[data-disabled="true"]{color:',e.border,";}& + input{padding-left:40px;}"),input:s(he,";background-color:#FFFFFF;border:1px solid ",e.border,";border-radius:",be.borderRadius,";font-family:inherit;font-feature-settings:'tnum';font-size:16px;height:40px;line-height:24px;max-width:100%;outline:none;padding:4px 8px;width:100%;&:disabled{background-color:",e.neutral,";border-color:",e.border,";color:",e.border,";cursor:not-allowed;}&:focus{border-color:",e.primary,";}&::placeholder{color:",e.neutralLight,';}&:not(:placeholder-shown){letter-spacing:8px;}&[data-status="error"]{background-color:',e.errorBackground,";border-color:",e.error,';}&[data-status="success"]{background-color:',e.successBackground,";border-color:",e.success,';}&[data-status="warning"]{background-color:',e.warningBackground,";border-color:",e.warning,";}"),label:s(Ie,";",Ce,";display:inline-flex;flex-direction:column;font-family:'Montserrat',sans-serif;gap:4px;position:relative;&[data-disabled=\"true\"]{color:",e.border,";}")});var Fn;function Nn(){return Nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Nn.apply(null,arguments)}var Jn=r(function(t,r){return e.createElement("svg",Nn({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Fn||(Fn=e.createElement("path",{d:"M15.25 4.758a.83.83 0 0 0-1.175 0L10 8.825 5.925 4.75A.83.83 0 1 0 4.75 5.925L8.825 10 4.75 14.075a.83.83 0 1 0 1.175 1.175L10 11.175l4.075 4.075a.83.83 0 1 0 1.175-1.175L11.175 10l4.075-4.075a.835.835 0 0 0 0-1.167Z",fill:"currentColor"})))});const Ln=({ariaDescription:e,ariaCloseLabel:t,borderColor:r,children:n,icon:l=Br,iconColor:c,id:d,onClose:b=null,open:u=null,showCloseIcon:p=!1,title:I,titleColor:h})=>{const[{brand:C,colorPalette:m}]=j(),x=lt(e),[f,v]=o(!0),A=z(En);a(()=>{null!=u&&v(u)},[u]);const y=i(()=>r||m.secondary,[C,r]),G=i(()=>c||m.secondaryDark,[C,c]),Z=i(()=>h||m.secondaryDark,[C,h]);return f?g("div",Je({css:s([A.infoCardMain,{"--border-color":y,"--icon-color":G,"--title-color":Z,padding:p||b?"16px 36px 16px 16px":"16px"}],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1Q2lCIiwiZmlsZSI6ImluZGV4LmpzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyB1c2VFZmZlY3QsIHVzZU1lbW8sIHVzZVN0YXRlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XG5pbXBvcnQgU3R5bGVQYWxldHRlIGZyb20gXCIuLi8uLi8uLi9TdHlsZVBhbGV0dGVcIjtcbmltcG9ydCB7IHVzZURlc2NyaXB0aW9uIH0gZnJvbSAnQHJlYWN0LWFyaWEvdXRpbHMnO1xuLy8gQHRyYW5zZm9ybS1wYXRoIC4uLy4uLy4uL2Fzc2V0cy9pY29ucy9kdW9jb2xvdXJfYWxlcnQtY2lyY2xlLnN2Z1xuaW1wb3J0IENpcmN1bGFyV2FybmluZyBmcm9tIFwiLi4vLi4vLi4vYXNzZXRzL2ljb25zL2R1b2NvbG91cl9hbGVydC1jaXJjbGUuc3ZnXCI7XG5pbXBvcnQgeyB1c2VXamVjT25lVGhlbWVTdHlsZXMsIHVzZVdqZWNPbmVUaGVtZSB9IGZyb20gJ3dqZWMtb25lL3RoZW1lJztcbmltcG9ydCBDbG9zZUljb24gZnJvbSAnc3JjL2Fzc2V0cy9pY29ucy9jbG9zZS5zdmcnO1xuZXhwb3J0IGNvbnN0IEluZm9ybWF0aW9uQ2FyZCA9ICh7IGFyaWFEZXNjcmlwdGlvbiwgYXJpYUNsb3NlTGFiZWwsIFxuLy8gYXV0b0Nsb3NlID0gbnVsbCxcbmJvcmRlckNvbG9yOiBib3JkZXJDb2xvclByb3AsIGNoaWxkcmVuLCBpY29uOiBJY29uID0gQ2lyY3VsYXJXYXJuaW5nLCBpY29uQ29sb3I6IGljb25Db2xvclByb3AsIGlkLCBvbkNsb3NlID0gbnVsbCwgb3BlbiA9IG51bGwsIHNob3dDbG9zZUljb24gPSBmYWxzZSwgdGl0bGUsIHRpdGxlQ29sb3I6IHRpdGxlQ29sb3JQcm9wIH0pID0+IHtcbiAgICAvLyBjb25zdCBbaGFzQXV0b0Nsb3NlZCwgc2V0SGFzQXV0b0Nsb3NlZF0gPSB1c2VTdGF0ZShmYWxzZSk7XG4gICAgY29uc3QgW3sgYnJhbmQsIGNvbG9yUGFsZXR0ZSB9XSA9IHVzZVdqZWNPbmVUaGVtZSgpO1xuICAgIGNvbnN0IGFyaWFQcm9wcyA9IHVzZURlc2NyaXB0aW9uKGFyaWFEZXNjcmlwdGlvbik7XG4gICAgY29uc3QgW2lzU2hvd2luZywgc2V0SXNTaG93aW5nXSA9IHVzZVN0YXRlKHRydWUpO1xuICAgIGNvbnN0IHN0eWxlcyA9IHVzZVdqZWNPbmVUaGVtZVN0eWxlcyhnZXRTdHlsZXMpO1xuICAgIHVzZUVmZmVjdCgoKSA9PiB7XG4gICAgICAgIGlmIChvcGVuICE9PSBudWxsICYmIG9wZW4gIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgc2V0SXNTaG93aW5nKG9wZW4pO1xuICAgICAgICB9XG4gICAgfSwgW29wZW5dKTtcbiAgICAvLyB1c2VFZmZlY3QoKCkgPT4ge1xuICAgIC8vICAgbGV0IHRpbWVyOiBSZXR1cm5UeXBlPHR5cGVvZiBzZXRUaW1lb3V0PjtcbiAgICAvLyAgIGlmIChhdXRvQ2xvc2UpIHtcbiAgICAvLyAgICAgdGltZXIgPSBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAvLyAgICAgICBzZXRIYXNBdXRvQ2xvc2VkKHRydWUpO1xuICAgIC8vICAgICAgIGlmIChvcGVuKSB7XG4gICAgLy8gICAgICAgICBvbkNsb3NlPy4oKTtcbiAgICAvLyAgICAgICB9XG4gICAgLy8gICAgIH0sIGF1dG9DbG9zZSk7XG4gICAgLy8gICB9XG4gICAgLy8gICByZXR1cm4gKCkgPT4gY2xlYXJUaW1lb3V0KHRpbWVyKTtcbiAgICAvLyB9LCBbXSk7XG4gICAgY29uc3QgYm9yZGVyQ29sb3IgPSB1c2VNZW1vKCgpID0+ICgoYm9yZGVyQ29sb3JQcm9wIHx8IGNvbG9yUGFsZXR0ZS5zZWNvbmRhcnkpKSwgW2JyYW5kLCBib3JkZXJDb2xvclByb3BdKTtcbiAgICBjb25zdCBpY29uQ29sb3IgPSB1c2VNZW1vKCgpID0+ICgoaWNvbkNvbG9yUHJvcCB8fCBjb2xvclBhbGV0dGUuc2Vjb25kYXJ5RGFyaykpLCBbYnJhbmQsIGljb25Db2xvclByb3BdKTtcbiAgICBjb25zdCB0aXRsZUNvbG9yID0gdXNlTWVtbygoKSA9PiAoKHRpdGxlQ29sb3JQcm9wIHx8IGNvbG9yUGFsZXR0ZS5zZWNvbmRhcnlEYXJrKSksIFticmFuZCwgdGl0bGVDb2xvclByb3BdKTtcbiAgICBpZiAoIWlzU2hvd2luZykge1xuICAgICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG4gICAgcmV0dXJuICg8ZGl2IGNzcz17W3N0eWxlcy5pbmZvQ2FyZE1haW4sIHtcbiAgICAgICAgICAgICAgICAnLS1ib3JkZXItY29sb3InOiBib3JkZXJDb2xvcixcbiAgICAgICAgICAgICAgICAnLS1pY29uLWNvbG9yJzogaWNvbkNvbG9yLFxuICAgICAgICAgICAgICAgICctLXRpdGxlLWNvbG9yJzogdGl0bGVDb2xvcixcbiAgICAgICAgICAgICAgICBwYWRkaW5nOiAoc2hvd0Nsb3NlSWNvbiB8fCBvbkNsb3NlKSA/ICcxNnB4IDM2cHggMTZweCAxNnB4JyA6ICcxNnB4J1xuICAgICAgICAgICAgfV19IGlkPXtpZH0gey4uLmFyaWFQcm9wc30+XHJcbiAgICAgIDxJY29uIGNzcz17c3R5bGVzLmljb259IGFyaWEtaGlkZGVuLz5cclxuICAgICAgPGRpdj5cclxuICAgICAgICB7dGl0bGUgJiYgPGgzIGNzcz17c3R5bGVzLnRpdGxlfT57dGl0bGV9PC9oMz59XHJcbiAgICAgICAgPHAgY3NzPXtzdHlsZXMubWVzc2FnZX0+e2NoaWxkcmVufTwvcD5cclxuICAgICAgPC9kaXY+XHJcbiAgICAgIHsoc2hvd0Nsb3NlSWNvbiB8fCBvbkNsb3NlKSAmJiAoPENsb3NlSWNvbiBhcmlhLWxhYmVsPXthcmlhQ2xvc2VMYWJlbH0gY3NzPXtzdHlsZXMuY2xvc2V9IGlkPVwiY2xvc2VcIiBvbkNsaWNrPXsoKSA9PiB7XG4gICAgICAgICAgICAgICAgc2V0SXNTaG93aW5nKGZhbHNlKTtcbiAgICAgICAgICAgICAgICBvbkNsb3NlPy4oKTtcbiAgICAgICAgICAgIH19Lz4pfVxyXG4gICAgPC9kaXY+KTtcbn07XG5jb25zdCBnZXRTdHlsZXMgPSAoeyBjb2xvclBhbGV0dGUgfSkgPT4gKHtcbiAgICBjbG9zZTogY3NzIGBcclxuICAgIGN1cnNvcjogcG9pbnRlcjtcclxuICAgIGhlaWdodDogMzZweDtcclxuICAgIG91dGxpbmU6IG5vbmU7XHJcbiAgICBwYWRkaW5nOiAxMHB4O1xyXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xyXG4gICAgcmlnaHQ6IDA7XHJcbiAgICB0b3A6IDA7XHJcbiAgICB3aWR0aDogMzZweDtcclxuICBgLFxuICAgIGljb246IGNzcyBgXHJcbiAgICBjb2xvcjogdmFyKC0taWNvbi1jb2xvcik7XHJcbiAgICBmbGV4LXNocmluazogMDtcclxuICAgIGhlaWdodDogMjRweDtcclxuICAgIHdpZHRoOiAyNHB4O1xyXG4gIGAsXG4gICAgaW5mb0NhcmRNYWluOiBjc3MgYFxyXG4gICAgLS1ib3JkZXItY29sb3I6ICR7Y29sb3JQYWxldHRlLnNlY29uZGFyeX07XHJcbiAgICAtLWljb24tY29sb3I6ICR7Y29sb3JQYWxldHRlLnNlY29uZGFyeURhcmt9O1xyXG4gICAgLS10aXRsZS1jb2xvcjogJHtjb2xvclBhbGV0dGUuc2Vjb25kYXJ5RGFya307XHJcblxyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZmZmZjtcclxuICAgIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLWJvcmRlci1jb2xvcik7XHJcbiAgICBib3JkZXItcmFkaXVzOiAke1N0eWxlUGFsZXR0ZS5ib3JkZXJSYWRpdXN9O1xyXG4gICAgYm94LXNoYWRvdzogJHtTdHlsZVBhbGV0dGUuZHJvcFNoYWRvd307XHJcbiAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgZm9udC1mYW1pbHk6ICdNb250c2VycmF0Jywgc2Fucy1zZXJpZjtcclxuICAgIGZvbnQtc2l6ZTogMTZweDtcclxuICAgIGdhcDogMTZweDtcclxuICAgIGxpbmUtaGVpZ2h0OiAyNHB4O1xyXG4gICAgcGFkZGluZzogMTZweDtcclxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxuICAgIGAsXG4gICAgbWVzc2FnZTogY3NzIGBcclxuICAgIG1hcmdpbjogMDtcclxuICBgLFxuICAgIHRpdGxlOiBjc3MgYFxyXG4gICAgY29sb3I6IHZhcigtLXRpdGxlLWNvbG9yKTtcclxuICAgIGZvbnQtd2VpZ2h0OiA2MDA7XHJcbiAgICBtYXJnaW46IDAgMCA0cHggMDtcclxuICAgIG92ZXJmbG93OiBoaWRkZW47XHJcbiAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcclxuICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7XHJcbiAgICBgXG59KTtcbiJdfQ== */"),id:d},x),g(l,{css:A.icon,"aria-hidden":!0}),g("div",null,I&&g("h3",{css:A.title},I),g("p",{css:A.message},n)),(p||b)&&g(Jn,{"aria-label":t,css:A.close,id:"close",onClick:()=>{v(!1),b?.()}})):null};var zn={name:"oofjv5",styles:"cursor:pointer;height:36px;outline:none;padding:10px;position:absolute;right:0;top:0;width:36px;"},jn={name:"1i9s3a8",styles:"color:var(--icon-color);flex-shrink:0;height:24px;width:24px;"},On={name:"1uk1gs8",styles:"margin:0;"},Sn={name:"172fn9d",styles:"color:var(--title-color);font-weight:600;margin:0 0 4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"};const En=({colorPalette:e})=>({close:zn,icon:jn,infoCardMain:s("--border-color:",e.secondary,";--icon-color:",e.secondaryDark,";--title-color:",e.secondaryDark,";background-color:#ffffff;border:1px solid var(--border-color);border-radius:",be.borderRadius,";box-shadow:",be.dropShadow,";display:flex;font-family:'Montserrat',sans-serif;font-size:16px;gap:16px;line-height:24px;padding:16px;position:relative;"),message:On,title:Sn}),Dn=e=>{const[{colorPalette:t}]=j();return g(Ln,Je({},e,{borderColor:t.error,icon:Nr,iconColor:t.error,titleColor:t.errorDark}))},Mn=e=>{const[{colorPalette:t}]=j();return g(Ln,Je({},e,{borderColor:t.success,icon:Rr,iconColor:t.success,titleColor:t.successDark}))},Tn=e=>{const[{colorPalette:t}]=j();return g(Ln,Je({},e,{borderColor:t.warning,icon:Nr,iconColor:t.warning,titleColor:t.warningDark}))};var Pn,Qn,Un,Kn,$n;function _n(){return _n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},_n.apply(null,arguments)}var qn,ei,ti,ri,oi,ni=r(function(t,r){return e.createElement("svg",_n({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Pn||(Pn=e.createElement("path",{d:"M27.565 14.13c-.134-10.058-10.33-8.59-11.991-8.283a.203.203 0 0 0-.156.262l2.16 6.588c.1.303.417.479.726.4 5.147-1.298 8.369.613 9.102 1.118a.101.101 0 0 0 .16-.085",fill:"#BDBCBC"})),Qn||(Qn=e.createElement("path",{d:"M27.858 14.13C27.992 4.072 38.19 5.54 39.85 5.848c.121.022.194.145.123.363l-2.22 6.77c-.033.102-.248.218-.456.163-5.25-1.388-8.537.562-9.279 1.072a.101.101 0 0 1-.159-.085",fill:"#E65000"})),Un||(Un=e.createElement("path",{d:"M28.851 8.37c2.36-6.255 9.127-6.033 10.522-5.918.13.01.216.14.175.265l-.692 2.11a.101.101 0 0 1-.107.069c-6.007-.667-8.716 2.088-9.72 3.566-.067.1-.22.02-.178-.092",fill:"#69B3E6"})),Kn||(Kn=e.createElement("path",{d:"m38.78.266-.415 1.267a.102.102 0 0 1-.096.07c-4.79.048-7.351 2.563-8.428 4.005-.074.099-.227.005-.172-.105.923-1.859 3.414-5.44 8.915-5.503a.203.203 0 0 1 .196.266Z",fill:"#FABD34"})),$n||($n=e.createElement("path",{d:"M4.325 40C1.485 40 0 37.687 0 35.4c0-2.27 1.486-4.57 4.325-4.57 2.15 0 3.383 1.331 3.435 1.388a.716.716 0 0 1-1.057.966c-.042-.045-.888-.922-2.378-.922-1.988 0-2.893 1.627-2.893 3.139 0 1.526.905 3.167 2.893 3.167 1.494 0 2.36-.93 2.369-.94a.716.716 0 0 1 1.071.95C7.714 38.636 6.48 40 4.325 40ZM32.96 40c-2.84 0-4.325-2.313-4.325-4.6 0-2.27 1.485-4.57 4.324-4.57 2.15 0 3.384 1.331 3.435 1.388a.716.716 0 0 1-1.056.966c-.042-.045-.888-.922-2.379-.922-1.988 0-2.893 1.627-2.893 3.139 0 1.526.905 3.167 2.893 3.167 1.495 0 2.361-.93 2.37-.94a.716.716 0 0 1 1.07.95c-.05.058-1.284 1.422-3.44 1.422ZM14.142 28.887a.715.715 0 0 1-.409-1.304c1.24-.86 1.345-2.47 1.332-3.122v-7.402a.716.716 0 0 1 1.432 0v7.354c.016.904-.14 3.093-1.948 4.346a.71.71 0 0 1-.407.128ZM33.002 25.513c-2.839 0-4.325-2.313-4.325-4.599 0-2.271 1.486-4.571 4.325-4.571 2.15 0 3.384 1.331 3.435 1.388a.716.716 0 0 1-1.056.966c-.043-.046-.89-.922-2.379-.922-1.987 0-2.893 1.627-2.893 3.14 0 1.525.906 3.167 2.893 3.167 1.492 0 2.338-.906 2.373-.945a.718.718 0 0 1 1.01-.05c.291.263.319.71.058 1.004-.052.058-1.286 1.422-3.44 1.422M11.539 16.34a.716.716 0 0 0-.716.716v5.207c0 1.007-.82 1.826-1.826 1.826h-.053a1.828 1.828 0 0 1-1.826-1.826v-5.207a.716.716 0 1 0-1.432 0v5.207c0 1.007-.819 1.826-1.825 1.826h-.054a1.828 1.828 0 0 1-1.825-1.826v-5.207a.716.716 0 0 0-1.432 0v5.207a3.261 3.261 0 0 0 3.257 3.257h.054c1.027 0 1.944-.48 2.541-1.225a3.251 3.251 0 0 0 2.542 1.225h.053a3.261 3.261 0 0 0 3.258-3.257v-5.207a.716.716 0 0 0-.716-.716ZM13.314 30.822c-.891 0-1.605.262-2.154.663v-3.314a.715.715 0 1 0-1.43 0v9.72a.71.71 0 0 0 .082.33c.038.072.95 1.76 3.502 1.76 1.32 0 2.44-.508 3.238-1.466.696-.835 1.08-1.946 1.08-3.126 0-1.064-.35-2.14-.957-2.953-.55-.736-1.581-1.614-3.361-1.614Zm0 7.729c-.905 0-1.49-.301-1.817-.551a.866.866 0 0 1-.337-.693v-3.038c0-.659.526-2.017 2.154-2.017 2.284 0 2.888 2.052 2.888 3.137 0 1.523-.904 3.162-2.888 3.162M22.885 16.347c-1.774 0-2.773.87-3.297 1.598-.78 1.082-.896 2.325-.896 2.97 0 1.18.384 2.29 1.08 3.126.799.958 1.918 1.465 3.238 1.465 2.152 0 3.384-1.362 3.435-1.42a.714.714 0 0 0-1.07-.948c-.008.01-.873.938-2.365.938-1.669 0-2.574-1.159-2.82-2.434h5.98c.396 0 .716-.32.716-.714 0-2.28-1.238-4.58-4-4.58Zm-2.716 3.866c.33-2.31 2.294-2.436 2.716-2.436 1.835 0 2.364 1.476 2.514 2.436h-5.23ZM26.877 32.586c-.038-.072-.95-1.759-3.502-1.759-2.834 0-4.318 2.297-4.318 4.567 0 1.18.384 2.29 1.08 3.126.799.959 1.918 1.465 3.238 1.465l.034-.001c.876-.007 1.58-.268 2.122-.666a.715.715 0 0 0 1.427-.047v-6.353a.719.719 0 0 0-.081-.332Zm-1.348 3.953c0 .658-.527 2.017-2.154 2.017-2.285 0-2.888-2.052-2.888-3.137 0-1.523.904-3.162 2.888-3.162.905 0 1.489.3 1.817.55a.868.868 0 0 1 .337.694v3.038Z",fill:"#009FE3"})))});function ii(){return ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ii.apply(null,arguments)}var ai=r(function(t,r){return e.createElement("svg",ii({viewBox:"0 0 298 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),qn||(qn=e.createElement("path",{d:"M235.171 71.957c-.671-50.518-51.708-43.14-60.018-41.605a1.02 1.02 0 0 0-.781 1.318l10.817 33.09a3.034 3.034 0 0 0 3.629 2.007c25.761-6.52 41.889 3.08 45.557 5.613.339.234.8-.01.796-.423Z",fill:"#BDBCBC"})),ei||(ei=e.createElement("path",{d:"M236.637 71.957c.671-50.518 51.709-43.14 60.019-41.605.603.112.971.732.613 1.826l-11.109 34c-.17.515-1.242 1.095-2.283.818-26.278-6.969-42.732 2.822-46.443 5.384a.508.508 0 0 1-.797-.423Z",fill:"#F1511B"})),ti||(ti=e.createElement("path",{d:"M241.607 43.024C253.419 11.61 287.286 12.723 294.27 13.3c.654.055 1.082.708.879 1.332l-3.463 10.597a.507.507 0 0 1-.54.346c-30.062-3.348-43.624 10.49-48.645 17.914-.336.497-1.106.097-.894-.466Z",fill:"#69B3E6"})),ri||(ri=e.createElement("path",{d:"m291.304 2.325-2.08 6.363a.51.51 0 0 1-.477.35c-23.975.245-36.795 12.875-42.185 20.115-.369.496-1.134.025-.859-.527 4.619-9.335 17.083-27.32 44.621-27.637.696-.01 1.197.671.98 1.336Z",fill:"#FABD34"})),oi||(oi=e.createElement("path",{d:"M223.864 112.447c0 3.308-2.635 10.135-10.779 10.135-11.435 0-14.454-10.307-14.454-15.757 0-7.65 4.522-15.883 14.454-15.883 4.528 0 7.452 1.514 9.095 2.766 1.078.821 1.684 2.124 1.684 3.481v15.258Zm-10.779-28.685c-14.186 0-21.61 11.54-21.61 22.937 0 5.93 1.919 11.507 5.401 15.701 3.999 4.814 9.602 7.36 16.209 7.36.058 0 .113-.007.173-.01 4.383-.033 7.905-1.343 10.618-3.343a3.581 3.581 0 0 0 3.565 3.353 3.583 3.583 0 0 0 3.577-3.589V94.262c0-.579-.142-1.151-.408-1.665-.187-.359-4.753-8.835-17.525-8.835ZM7.8 103.21c1.655-11.596 11.482-12.232 13.596-12.232 9.184 0 11.83 7.41 12.582 12.232H7.8Zm13.596-19.412c-8.88 0-13.878 4.365-16.504 8.023C.992 97.256.41 103.5.41 106.736c0 5.929 1.919 11.505 5.4 15.699 4.001 4.815 9.604 7.361 16.21 7.361 10.77 0 16.938-6.842 17.195-7.131a3.597 3.597 0 0 0-.306-5.066 3.565 3.565 0 0 0-5.046.306c-.043.048-4.376 4.713-11.843 4.713-8.353 0-12.883-5.825-14.11-12.227h29.932a3.58 3.58 0 0 0 3.577-3.589c0-11.449-6.192-23.004-20.022-23.004Zm237.237 19.499a48.905 48.905 0 0 1-1.565-.412c-7.068-2.034-9.221-3.672-9.221-7.011 0-3.09 3.077-4.933 8.237-4.933 4.615 0 9.241 2.6 9.294 2.633a3.574 3.574 0 0 0 4.877-1.33 3.596 3.596 0 0 0-1.319-4.9c-.255-.146-6.29-3.583-12.852-3.583-7.664 0-15.392 3.747-15.392 12.113 0 9.765 9.368 12.463 14.404 13.911.539.156 1.14.307 1.778.471 5.852 1.488 8.462 2.819 8.462 6.78 0 1.513-.447 2.623-1.411 3.483-2.062 1.846-6.037 2.321-9.065 1.977-5.52-.634-9.229-3.095-9.918-3.582-1.506-1.07-3.628-.844-4.828.563a3.598 3.598 0 0 0 .757 5.34c1.391.977 6.202 4.012 13.178 4.812.834.093 1.726.149 2.653.149 4.054 0 8.759-1.013 11.985-3.902 2.487-2.226 3.804-5.284 3.804-8.84 0-10.216-9.362-12.595-13.858-13.739ZM131.276 83.762a3.585 3.585 0 0 0-3.577 3.591v24.193c0 6.084-4.934 11.036-10.998 11.036-6.067 0-11.001-4.952-11.001-11.036V87.353a3.585 3.585 0 0 0-3.576-3.591 3.585 3.585 0 0 0-3.578 3.591v24.193c0 10.042 8.144 18.214 18.155 18.214 10.01 0 18.152-8.172 18.152-18.214V87.353a3.584 3.584 0 0 0-3.577-3.591Zm44.481 28.699c0 3.306-2.635 10.136-10.777 10.136-11.438 0-14.46-10.31-14.46-15.759 0-7.652 4.526-15.881 14.46-15.881 4.528 0 7.452 1.512 9.092 2.765 1.079.82 1.685 2.123 1.685 3.48v15.259ZM164.98 83.776c-6.607 0-12.211 2.546-16.21 7.362-3.484 4.192-5.403 9.771-5.403 15.7 0 5.344 1.744 10.75 4.787 14.829 2.758 3.695 7.916 8.107 16.826 8.107 4.456 0 8.031-1.315 10.777-3.334v16.65a3.583 3.583 0 0 0 3.578 3.589 3.583 3.583 0 0 0 3.576-3.589V94.275c0-.58-.139-1.15-.407-1.665-.188-.358-4.754-8.834-17.524-8.834Zm-83.114 32.558c0 1.358-.606 2.659-1.687 3.48-1.641 1.254-4.563 2.768-9.093 2.768-9.932 0-14.457-8.232-14.457-15.883 0-5.448 3.022-15.757 14.458-15.757 8.144 0 10.779 6.826 10.779 10.133v15.259Zm3.576-49.477a3.586 3.586 0 0 0-3.576 3.59v16.65c-2.75-2.02-6.321-3.335-10.78-3.335-8.909 0-14.068 4.411-16.826 8.11-3.04 4.079-4.784 9.483-4.784 14.827 0 5.93 1.917 11.507 5.401 15.701 3.997 4.814 9.604 7.36 16.21 7.36 12.772 0 17.338-8.473 17.525-8.833a3.6 3.6 0 0 0 .407-1.664V70.448a3.585 3.585 0 0 0-3.577-3.591ZM9.443 147.001c1.86 0 3.02-1.045 3.02-2.511v-.039c0-1.648-1.179-2.509-3.02-2.509H6.582v5.059h2.86Zm-5.323-6.063c0-.704.54-1.248 1.24-1.248h4.283c3.282 0 5.323 1.87 5.323 4.7v.041c0 3.151-2.522 4.797-5.604 4.797h-2.78v3.396c0 .681-.54 1.224-1.221 1.224a1.22 1.22 0 0 1-1.241-1.224v-11.686ZM23.553 149.933v-.723a6.715 6.715 0 0 0-2.4-.421c-1.563 0-2.483.661-2.483 1.767v.04c0 1.024.9 1.605 2.06 1.605 1.601 0 2.823-.923 2.823-2.268Zm-7.244.764v-.043c0-2.288 1.78-3.412 4.363-3.412 1.18 0 2.021.179 2.842.441v-.262c0-1.504-.921-2.307-2.622-2.307-.921 0-1.68.158-2.343.42a1.28 1.28 0 0 1-.38.06 1.01 1.01 0 0 1-1.021-1.004c0-.441.3-.823.661-.961.999-.383 2.02-.622 3.402-.622 1.58 0 2.762.417 3.504 1.183.779.763 1.138 1.886 1.138 3.273v5.221c0 .661-.521 1.163-1.18 1.163-.7 0-1.181-.483-1.181-1.023v-.402c-.719.863-1.82 1.546-3.441 1.546-1.983 0-3.742-1.144-3.742-3.271ZM28.758 144.25c0-.683.52-1.225 1.198-1.225.681 0 1.223.542 1.223 1.225v1.083c.56-1.325 1.6-2.328 2.661-2.328.76 0 1.2.502 1.2 1.206 0 .64-.42 1.063-.96 1.163-1.721.302-2.9 1.627-2.9 4.136v3.134c0 .661-.543 1.205-1.224 1.205-.66 0-1.198-.525-1.198-1.205v-8.394ZM37.524 150.816v-5.583h-.401c-.58 0-1.04-.46-1.04-1.044 0-.583.46-1.043 1.04-1.043h.4v-1.809a1.21 1.21 0 0 1 2.423 0v1.809h1.9c.58 0 1.06.46 1.06 1.043 0 .584-.48 1.044-1.06 1.044h-1.9v5.201c0 .946.478 1.326 1.3 1.326.279 0 .519-.06.6-.06.539 0 1.02.44 1.02 1.003 0 .439-.3.802-.64.945-.52.179-1.02.28-1.66.28-1.78 0-3.042-.786-3.042-3.112ZM59.518 148.507v-.039c0-1.87-1.341-3.416-3.243-3.416-1.94 0-3.181 1.527-3.181 3.374v.042c0 1.847 1.34 3.39 3.223 3.39 1.96 0 3.2-1.523 3.2-3.351Zm-8.843 0v-.039c0-3.034 2.4-5.544 5.642-5.544 3.24 0 5.623 2.471 5.623 5.502v.042c0 3.01-2.402 5.52-5.665 5.52-3.22 0-5.6-2.47-5.6-5.481ZM64.942 145.233h-.42c-.56 0-1.02-.44-1.02-1.004 0-.561.46-1.024 1.02-1.024h.42v-.782c0-1.165.3-2.048.86-2.611.562-.56 1.342-.845 2.383-.845.481 0 .882.041 1.22.103.44.058.84.459.84 1.002a.996.996 0 0 1-1.02 1.004 4.279 4.279 0 0 0-.5-.039c-.921 0-1.401.502-1.401 1.604v.587h1.882c.579 0 1.02.44 1.02 1.001 0 .564-.46 1.004-1.02 1.004h-1.841v7.409c0 .664-.542 1.205-1.221 1.205a1.205 1.205 0 0 1-1.202-1.205v-7.409ZM77.352 141.278a1.3 1.3 0 0 1-.1-.483c0-.683.58-1.205 1.26-1.205.6 0 1.06.382 1.22.905l3.223 9.656 3.162-9.615c.2-.583.62-.984 1.24-.984h.18c.62 0 1.061.401 1.241.984l3.162 9.615 3.223-9.676c.178-.503.599-.885 1.199-.885.66 0 1.22.522 1.22 1.186 0 .162-.058.36-.119.502l-4.143 11.645c-.22.622-.679 1.026-1.28 1.026H91.8c-.599 0-1.04-.382-1.26-1.026l-3.124-9.176-3.12 9.176c-.22.644-.68 1.026-1.28 1.026h-.24c-.601 0-1.04-.382-1.28-1.026l-4.144-11.645ZM97.526 152.402a1.297 1.297 0 0 1-.42-.923c0-.664.52-1.185 1.18-1.185.322 0 .542.099.761.281.681.703 1.34 1.085 2.281 1.085 1.362 0 2.261-.884 2.261-2.773v-8.069a1.23 1.23 0 0 1 1.24-1.225c.682 0 1.243.54 1.243 1.225v8.15c0 1.669-.501 2.912-1.322 3.736-.819.823-2.001 1.244-3.403 1.244-1.7 0-2.939-.661-3.82-1.546ZM109.455 152.503v-11.567c0-.702.54-1.245 1.24-1.245h8.145c.602 0 1.102.503 1.102 1.104a1.1 1.1 0 0 1-1.102 1.107h-6.924v3.653h6.024c.6 0 1.1.502 1.1 1.124 0 .602-.5 1.085-1.1 1.085h-6.024v3.776h7.025c.6 0 1.101.5 1.101 1.103 0 .625-.501 1.105-1.101 1.105h-8.246c-.7 0-1.24-.542-1.24-1.245ZM122.244 146.759v-.039c0-3.996 2.982-7.271 7.224-7.271 2.161 0 3.581.644 4.803 1.587.261.201.481.542.481.985 0 .683-.542 1.205-1.222 1.205-.34 0-.579-.121-.742-.242-.959-.784-1.998-1.264-3.339-1.264-2.662 0-4.624 2.207-4.624 4.958v.042c0 2.751 1.941 4.978 4.624 4.978 1.48 0 2.481-.48 3.502-1.344.18-.16.439-.279.74-.279.62 0 1.161.518 1.161 1.143 0 .382-.18.681-.399.884-1.322 1.166-2.824 1.887-5.084 1.887-4.082 0-7.125-3.195-7.125-7.23Z",fill:"#706D6E"})))});const li=({copyrightMessage:e=`Copyright WJEC CBAC Ltd ${(new Date).getFullYear()}`,logos:t=[ni,ai],maxWidth:r=1280})=>{const o=z(gi);return g("footer",{css:o.footer},g("div",{css:s([o.container,{maxWidth:`${r}px`}])},t.map((e,t)=>g(e,{key:`logo_${t}`,css:o.logo})),g("span",{css:o.copyright},e)))};var ci={name:"8zn5ov",styles:"align-items:center;display:flex;margin:0 auto;width:100%;"},si={name:"eeoqsk",styles:"height:25px;margin-right:10px;"};const gi=({colorPalette:e})=>({container:ci,copyright:s("border-left:1px solid ",e.border,";color:",e.fontLight,";font-size:12px;padding-left:10px;"),footer:s(Ie,";align-items:center;display:flex;justify-content:flex-start;padding:24px 30px 22px;width:100%;"),logo:si});var di;function bi(){return bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},bi.apply(null,arguments)}var ui=r(function(t,r){return e.createElement("svg",bi({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),di||(di=e.createElement("path",{d:"m10 4.742 4.167 3.75V15H12.5v-5h-5v5H5.833V8.492L10 4.742ZM10 2.5 1.667 10h2.5v6.667h5v-5h1.666v5h5V10h2.5L10 2.5Z",fill:"currentColor"})))});const pi={height:"40px",padding:"0"},Ii=({logo:e={eduqas:ai,wjec:ni},logoId:r,logoStyles:o,maxWidth:n=1280,menus:a,onClickPageIcon:l,pageIcon:c=ui,pageIconHref:d,pageTitle:b,showPageTitle:u=!0})=>{const[{brand:p}]=j(),I=z(xi),h=i(()=>{return H(t=e)&&Object.hasOwn(t,"eduqas")&&Object.hasOwn(t,"wjec")?e[p]:e;var t},[p,e]);return g("header",{css:I.header},g("div",{css:s([I.container,{maxWidth:`${n}px`}])},g("div",{css:I.titleContainer},u&&g(t.Fragment,null,g("a",{css:I.pageLink,href:d,onClick:l},g(c,{css:I.pageIcon})),g("h1",{css:I.title},b))),g(h,{css:s({...pi,...o}),id:r}),g("section",{css:I.menuContainer},a)))};var hi={name:"f7hwxs",styles:"align-items:center;display:grid;grid-gap:30px;grid-template-columns:1fr 100px 1fr;justify-items:center;margin:0 auto;"},Ci={name:"euyatf",styles:"align-items:center;display:flex;flex:1;justify-content:flex-end;justify-self:end;min-width:175px;"},mi={name:"6o7adr",styles:"align-items:center;display:flex;justify-self:flex-start;"};const xi=({colorPalette:e})=>({container:hi,header:s(Ie,";background-color:#fff;border-bottom:1px solid ",e.border,";padding:15px 30px;position:sticky;top:0;width:100%;z-index:1;"),menuContainer:Ci,pageIcon:s("color:",e.fontLight,";height:20px;margin-right:10px;"),pageLink:s("cursor:pointer;:hover > svg{color:",e.font,";}"),title:s(me,";border-left:1px solid ",e.border,";color:",e.fontLight,";font-size:14px;font-weight:500;margin:0;max-width:100%;padding:5px 0 5px 10px;"),titleContainer:mi}),fi=({children:e,footerProps:t,headerProps:r,maxWidth:o=1280})=>g("div",{css:vi.pageWrapper},g(Ii,Je({},r,{maxWidth:o})),g("main",{css:s([vi.content,{maxWidth:`${o+60}px`}])},e),g(li,Je({},t,{maxWidth:o}))),vi={content:s("flex:1;margin:0 auto;min-height:100%;padding:40px ",30,"px 0;width:100%;"),pageWrapper:s(Ie,";display:flex;flex-direction:column;min-height:100vh;")},Ai=({backgroundColor:e,color:r,id:o,progress:n,size:i="default"})=>{const a=void 0===n,l=z(wi);return g(t.Fragment,null,!a&&g("progress",{"aria-label":"loading",css:s([l.progress,"large"===i&&l.largeProgress,{"--background-color":e,"--color":r}]),id:o,max:100,value:n}),a&&g("div",{"aria-label":"loading",css:s([l.progressIndeterminate,{"--background-color":e,"--color":r}])}))},yi=d`
16
+ `;var Ee={name:"7bv8j5",styles:'display:flex;height:20px;width:20px;&[data-size="extraSmall"]{height:12px;width:12px;}&[data-size="small"]{height:16px;width:16px;}&[data-size="large"]{height:24px;width:24px;}'},De={name:"4dsd3s",styles:"transform:rotate(-90deg);"};const Me=({colorPalette:e})=>({circle:s("--dashoffset:",ze,";stroke:currentColor;stroke-dasharray:80px,200px;stroke-dashoffset:var(--dashoffset);"),circleIndeterminate:s("animation:",Se," 1.4s ease-in-out infinite;"),circleStatic:s("stroke-dasharray:",ze,"px;transition:stroke-dashoffset 0.3s ease-out;"),container:Ee,containerIndeterminate:s("animation:",Oe," 1.4s linear infinite;"),containerStatic:De,svgContainer:s("--color:",e.secondary,";color:var(--color);")}),Te=({activeColor:e,ariaLabel:r,borderColor:o,buttonType:i="button",color:a,children:l,disabled:c,focusColor:d,hoverColor:b,icon:u,iconColor:p,iconColorActive:I,iconPosition:h="left",id:C,label:x,labelColor:f,labelColorActive:v,loading:A,loadingProgress:y,onPress:G,outlineColor:Z,size:w="normal"})=>{Le("WJEC One Button: Icon must be a valid SVGComponent",()=>u&&!m(t.createElement(u)),[u]),Le("WJEC One Button: A Button must have a label and/or icon",()=>!l&&!u&&!x,[l,u,x]);const X=n(void 0),[{colorPalette:W}]=j(),k={"--active-background-color":e,"--background-color":a,"--border-color":o,"--focus-background-color":d,"--hover-background-color":b,"--icon-color":p,"--icon-color-active":I,"--label-color":f,"--label-color-active":v,"--outline-color":Z,"--padding":"large"===w?"8px 24px":"small"===w?"2px 8px":void 0},B=z($e),Y=()=>g(u,{"aria-hidden":!0,css:s([B.icon,(x||l)&&u&&("left"===h?B.iconLeft:B.iconRight)])}),{buttonProps:H}=E({id:C,isDisabled:c,onPress:G,type:i},X);return g("button",Je({"aria-label":r},H,{ref:X,css:B.button,style:k,"data-loading":A||void 0}),u&&"left"===h&&Y(),x||l,u&&"right"===h&&Y(),A&&g("div",{css:B.loading},g(je,{color:f||W.neutralDark,progress:y})))};var Pe={name:"18kopw8",styles:"color:var(--icon-color);flex-shrink:0;height:24px;opacity:0.6;transition:inherit;width:24px;"},Qe={name:"15ro776",styles:"margin-right:4px;"},Ue={name:"15fzge",styles:"margin-left:4px;"},Ke={name:"c524f5",styles:"left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);"};const $e=({colorPalette:e})=>({button:s("--active-background-color:",e.neutralLight,";--background-color:",e.neutral,";--border-color:transparent;--focus-background-color:var(--background-color);--hover-background-color:",e.border,";--label-color:",e.neutralDark,";--label-color-active:#FFFFFF;--outline-color:",e.primary,";--padding:8px;--icon-color:var(--label-color);--icon-color-active:var(--label-color-active);",Ie,";align-items:center;background-color:var(--background-color);border:1px solid var(--border-color);border-radius:",be.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:",e.neutral,";color:",e.border,";cursor:not-allowed;& > svg{color:",e.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:Pe,iconLeft:Qe,iconRight:Ue,loading:Ke}),_e=({...e})=>{const[{colorPalette:t}]=j();return g(Te,Je({},e,{activeColor:t.errorDarker,color:t.error,hoverColor:t.errorDark,iconColor:"#FFFFFF",labelColor:"#FFFFFF",outlineColor:"#FFFFFF"}))},qe=({icon:e,iconColor:t,loading:r,...o})=>{const[{colorPalette:n}]=j();return g(Te,Je({},o,{color:r?n.neutral:"transparent",loading:r}),g(e,{css:et.icon,style:{"--icon-color":t},"aria-hidden":!0}))},et={icon:{name:"1s88svv",styles:"color:var(--icon-color);flex-shrink:0;height:24px;transition:inherit;width:24px;"}},tt=({loading:e,...t})=>{const[{colorPalette:r}]=j();return Le("WJEC One LinkButton: A LinkButton cannot have an unaccompanied icon",()=>t.icon&&!(t.children||t.label),[t]),g(Te,Je({},t,{loading:e,color:e?r.neutral:"transparent",iconColor:r.fontLight,labelColor:r.primaryDark}))},rt=({...e})=>{const[{colorPalette:t}]=j();return g(Te,Je({},e,{activeColor:t.primaryDarkActive,color:t.primary,hoverColor:t.primaryDark,iconColor:"#FFFFFF",labelColor:"#FFFFFF",outlineColor:"#FFFFFF"}))},ot=({...e})=>{const[{colorPalette:t}]=j();return g(Te,Je({},e,{activeColor:t.secondary,borderColor:e.disabled?"none":t.secondaryDark,color:"#FFFFFF",focusColor:t.secondaryLight,hoverColor:t.secondaryLight,labelColor:t.secondaryDark,labelColorActive:t.secondaryDark,outlineColor:"#FFFFFF"}))},nt="undefined"!=typeof document?t.useLayoutEffect:()=>{};let it=0;const at=new Map;function lt(e){let[t,r]=o();return nt(()=>{if(!e)return;let t=at.get(e);if(t)r(t.element.id);else{let o="react-aria-description-"+it++;r(o);let n=document.createElement("div");n.id=o,n.style.display="none",n.textContent=e,document.body.appendChild(n),t={refCount:0,element:n},at.set(e,t)}return t.refCount++,()=>{t&&0===--t.refCount&&(t.element.remove(),at.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}const ct=({ariaDescription:e,borderColor:t,children:r,id:o,padding:n})=>{const i=lt(e);return g("div",Je({css:s([st.cardMain,{"--border-color":t,"--padding":n}]),id:o},i),r)},st={cardMain:s("--border-color:none;--padding:30px 30px;background-color:#ffffff;border:1px solid var(--border-color);border-radius:",be.borderRadius,";box-shadow:",be.dropShadow,";padding:var(--padding);position:relative;")};var gt={name:"fup5xt",styles:"align-items:center;display:flex;justify-content:space-between;margin:30px 30px 0;"},dt={name:"hv8m74",styles:"display:flex;justify-content:center;list-style:none;margin:0;padding:0;width:100%;"},bt={name:"efdxua",styles:"display:inline-flex;flex-shrink:0;height:100%;justify-content:center;width:var(--slide-width);"},ut={name:"m70edr",styles:"--slide-width:100%;--transition-duration:200ms;--translate-x:unset;display:flex;height:100%;list-style:none;margin:0;padding:0;position:relative;transform:translateX(var(--translate-x));width:100%;&[data-swiping]{user-select:none;}& > *{flex-shrink:0;}"};const pt=({colorPalette:e})=>({container:s(Ie,";display:flex;flex-direction:column;height:100%;overflow:hidden;width:100%;"),controls:gt,dot:s("cursor:pointer;padding:5px;&::before{background-color:",e.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:s("&::before{background-color:",e.secondary,";border-color:",e.secondary,";}"),dots:dt,navigationButton:s("align-items:center;background-color:",e.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:s("color:",e.fontLight,";height:15px;"),slide:bt,slides:ut});var It;function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ht.apply(null,arguments)}var Ct,mt=r(function(t,r){return e.createElement("svg",ht({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),It||(It=e.createElement("path",{d:"M9.412 3.921a.831.831 0 0 1 1.176 1.175l-4.063 4.07h9.308a.833.833 0 1 1 0 1.667H6.525l4.063 4.07a.831.831 0 0 1-1.176 1.176L4.04 10.707a1 1 0 0 1 0-1.414L9.412 3.92Z",fill:"currentColor"})))});function xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},xt.apply(null,arguments)}var ft=r(function(t,r){return e.createElement("svg",xt({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Ct||(Ct=e.createElement("path",{d:"M10.588 3.921a.831.831 0 0 0-1.176 1.175l4.063 4.07H4.167a.833.833 0 1 0 0 1.667h9.308l-4.063 4.07a.831.831 0 0 0 1.176 1.176l5.372-5.372a1 1 0 0 0 0-1.414L10.588 3.92Z",fill:"currentColor"})))});const vt=({ariaLabel:e,direction:t,disabled:r,onClick:o})=>{const n=z(pt);return g("button",{"aria-label":e,css:n.navigationButton,disabled:r,onClick:o,type:"button"},g("next"===t?ft:mt,{css:n.navigationIcon}))},At=({active:e,ariaLabel:t,onClick:r})=>{const o=z(pt);return g("li",{"aria-label":t,css:s([o.dot,e&&o.dotActive]),onClick:r})},yt=(e,t)=>(e+1)%t,Gt=(e,t)=>(e+t-1)%t,Zt=(e,t,r)=>{const o=r-t+Math.floor((r-1)/2)+e;return o>r-1?o%r:o},wt=(e,t)=>{const r=t.children[e];return Math.round(t.offsetWidth/2-r.offsetLeft-r.offsetWidth/2)},Xt=(e,t,r)=>{const o=wt(e+t,r);r.style.setProperty("--translate-x",`${o}px`)},Wt=r(({ariaControlLabels:e={dot:"Go to slide {index}",next:"Go to next slide",previous:"Go to previous slide"},buffer:r=1,children:d,id:b,infinite:u,onChange:I,showNavigationButtons:h=!0,showNavigationDots:C=!0,simulateMouseSwipe:m,slideIndex:x=0,slideTransitionDuration:f=200,slideWidth:v},A)=>{const y=n(),G=n(),[Z,w]=o(x),X=i(()=>u?r:0,[r,u]),W=i(()=>t.Children.toArray(d),[d]),k=i(()=>W.length,[W]),B=i(()=>k>0&&(h||C),[h,C,k]),Y=i(()=>{const e=Object.keys(W).map(e=>parseInt(e));return u&&e.sort((e,t)=>Zt(e,Z,k)-Zt(t,Z,k)),e},[Z,W,u,k]),H=M("(prefers-reduced-motion)"),V=T(G,[{transform:"translateX({slideOffset:left})"}],{duration:f,easing:"ease-out",fill:"forwards"});l(()=>{k>0&&(V.cancel(),Xt(Y.indexOf(Z),X,G.current))},[Z,X,k,Y]),a(()=>{const e=Math.max(0,Math.min(k-1,x));e!==Z&&N(e)},[x]),a(()=>{let e=y.current.offsetHeight,t=y.current.offsetWidth;const r=new ResizeObserver(([{contentRect:{height:r,width:o}}])=>{r===e&&o===t||(e=r,t=o,Xt(Y.indexOf(Z),X,G.current))});return r.observe(y.current),()=>{r.disconnect()}},[Z,X,Y]);const R=()=>{if(u||Z<k-1){const e=yt(Z,k);N(e)}},F=()=>{if(u||Z>0){const e=Gt(Z,k);N(e)}},N=e=>{if(e!==Z&&"running"!==V.playState){const t=()=>{G.current.removeAttribute("data-swiping"),w(e),p(I)&&I(e)};if(f>0&&!H){const r=wt(Y.indexOf(e)+X,G.current);V.play({slideOffset:`${r}px`}).finished.then(t)}else t()}};c(A,()=>({goToNextSlide:R,goToPreviousSlide:F,goToSlide:N}));const J=e=>{const r=[];let o="before"===e?Y[0]:Y[k-1];for(let t=0;t<X;t++)"before"===e&&(o=Gt(o,k),r.unshift(o)),"after"===e&&(o=yt(o,k),r.push(o));return r.map((r,o)=>g("li",{css:j.slide,key:`buffer_${e}_${r}_${Math.floor(o/k)}`},t.isValidElement(W[r])?t.cloneElement(W[r]):W[r]))},L=D({onSwiped:({absX:e,dir:t})=>{if(G.current.hasAttribute("data-swiping")){e>=(r=Y.indexOf(Z)+X,G.current.children[r].offsetWidth/3)?"Left"===t?R():F():G.current.removeAttribute("data-swiping")}var r},onSwiping:({velocity:e})=>{!G.current.hasAttribute("data-swiping")&&e>.33&&G.current.setAttribute("data-swiping","true")},trackMouse:m}),j=z(pt);return g("div",{ref:y,css:j.container,id:b,"data-carousel-container":!0},g("ul",Je({},L,{ref:e=>{G.current=e,L.ref(e)},css:s([j.slides,{"--slide-width":v,"--transition-duration":`${f}ms`}]),"data-active-slide":Z,"data-carousel-slides-container":!0}),J("before"),Y.map(e=>g("li",{css:j.slide,key:`slide_${e}`},W[e])),J("after")),B&&g("div",{css:j.controls},h&&g(vt,{ariaLabel:e.previous,direction:"previous",disabled:0===Z&&!u,onClick:F}),C&&g("ol",{css:j.dots},W.map((t,r)=>g(At,{active:r===Z,ariaLabel:e.dot.replace("{index}",(r+1).toString()),key:`slide_${r}`,onClick:()=>N(r)}))),h&&g(vt,{ariaLabel:e.next,direction:"next",disabled:Z===k-1&&!u,onClick:R})))});var kt,Bt,Yt;function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ht.apply(null,arguments)}var Vt=r(function(t,r){return e.createElement("svg",Ht({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),kt||(kt=e.createElement("path",{d:"M9.167 15h1.666v-1.667H9.167V15Z",fill:"currentColor"})),Bt||(Bt=e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.667 10C1.667 5.4 5.4 1.667 10 1.667S18.333 5.4 18.333 10 14.6 18.333 10 18.333A8.336 8.336 0 0 1 1.667 10Zm1.666 0A6.675 6.675 0 0 0 10 16.667 6.675 6.675 0 0 0 16.667 10 6.676 6.676 0 0 0 10 3.333 6.676 6.676 0 0 0 3.333 10Z",fill:"currentColor"})),Yt||(Yt=e.createElement("path",{d:"M10 5a3.332 3.332 0 0 0-3.333 3.333h1.666c0-.916.75-1.666 1.667-1.666s1.667.75 1.667 1.666c0 1.667-2.5 1.459-2.5 4.167h1.666c0-1.875 2.5-2.083 2.5-4.167A3.332 3.332 0 0 0 10 5Z",fill:"currentColor"})))}),Rt={name:"115actz",styles:"display:inline-flex;position:relative;"},Ft={name:"1ixbp0l",styles:"pointer-events:none;"},Nt={name:"13v3rg8",styles:"overflow-y:auto;"},Jt={name:"17ju33v",styles:"--cursor:pointer;cursor:var(--cursor);display:inline-flex;"};const Lt=({colorPalette:e})=>({container:Rt,popup:s("--background-color:#fff;--color:",e.font,";--margin:4px;--max-height:300px;--max-width:300px;--padding:8px;--position-x:0;--position-y:0;font-family:'Montserrat',sans-serif;font-size:12px;left:var(--position-x);line-height:16px;margin:var(--margin);max-height:var(--max-height);max-width:var(--max-width);min-width:160px;opacity:0;outline:none;pointer-events:none;position:absolute;text-align:left;top:var(--position-y);width:max-content;z-index:1;"),popupContent:s("--translate-x:0;--translate-y:0;",be.scrollbar,";background-color:var(--background-color);border:var(--border);border-radius:",be.borderRadius,";box-shadow:",be.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:Nt,toggle:Jt,toggleString:s("border-bottom:2px dotted ",e.secondary,";")}),zt=(e,t,r=[])=>{a(()=>{t()&&x(e)},r)},jt=(e,t,r,o,n)=>{let i;if("bottom"===e){const e=o.clientHeight-(r.top+t.offsetHeight);i="floating"===n?e:e+(o.scrollTop+o.offsetTop)}if("left"===e&&(i="floating"===n?r.left:r.left-o.scrollLeft-o.offsetLeft),"right"===e){const e=o.clientWidth-(r.left+t.offsetWidth);i="floating"===n?e:e+(o.scrollLeft+o.offsetLeft)}return"top"===e&&(i="floating"===n?r.top:r.top-o.scrollTop-o.offsetTop),i},Ot=e=>{const t=window.getComputedStyle(e);return{bottom:parseInt(t.marginBottom),left:parseInt(t.marginLeft),right:parseInt(t.marginRight),top:parseInt(t.marginTop)}},St=(e,t)=>{let r;if("sibling"===t)r={left:e.offsetLeft,top:e.offsetTop};else{const t=e.getBoundingClientRect();r={left:Math.floor(t.left),top:Math.floor(t.top)}}return r},Et=(e,t,r,o)=>{if(e&&t){let n=0,i=0;const a=o.startsWith("bottom")||o.startsWith("top")?"vertical":"horizontal",l={height:e.offsetHeight,width:e.offsetWidth},c=f(e),s={height:t.offsetHeight,width:t.offsetWidth},g=St(t,r),{bottom:d,left:b,right:u,top:p}=Ot(e);"horizontal"===a&&(i=g.top+s.height/2-l.height/2-p,o.startsWith("left")&&(n=g.left-l.width-b-u),o.startsWith("right")&&(n=g.left+s.width),o.endsWith("-end")&&(i=g.top+s.height-l.height-p),o.endsWith("-start")&&(i=g.top-p)),"vertical"===a&&(n=g.left+s.width/2-l.width/2-b,o.startsWith("bottom")&&(i=g.top+s.height),o.startsWith("top")&&(i=g.top-l.height-d-p),o.endsWith("-end")&&(n=g.left+s.width-l.width-b),o.endsWith("-start")&&(n=g.left-b)),"floating"===r&&(n+=c.scrollLeft,i+=c.scrollTop),e.style.setProperty("--position-x",`${n}px`),e.style.setProperty("--position-y",`${i}px`)}},Dt=(e,t,r,o,n,l)=>{const c=i(()=>"sibling"===r&&t?.current?f(t.current):null,[r,t?.current]);a(()=>{let i;return n&&(i=new IntersectionObserver(n=>{n.forEach(({isIntersecting:n,target:i})=>{i===e?.current&&n&&((e,t,r,o)=>{const n=o.startsWith("bottom")||o.startsWith("top")?"vertical":"horizontal",i=f(e),a=St(t.parentElement,r);let l=0,c=0;const{bottom:s,left:g,right:d,top:b}=Ot(e);if("horizontal"===n){const n=jt("left",t,a,i,r),c=jt("right",t,a,i,r),s=n<e.offsetWidth+d,b=c<e.offsetWidth+g;(o.startsWith("left")&&s&&!b||o.startsWith("right")&&b&&!s)&&(l=(t.offsetWidth+e.offsetWidth+g+d)*(o.startsWith("left")?1:-1)),e.firstElementChild.style.setProperty("--translate-x",`${l}px`)}if("vertical"===n){const n=jt("top",t,a,i,r),l=jt("bottom",t,a,i,r),g=n<e.offsetHeight+s,d=l<e.offsetHeight+b;(o.startsWith("bottom")&&d&&!g||o.startsWith("top")&&g&&!d)&&(c=(t.offsetHeight+e.offsetHeight+b+s)*(o.startsWith("top")?1:-1)),e.firstElementChild.style.setProperty("--translate-y",`${c}px`)}})(e?.current,t?.current,r,o),i!==e?.current?.firstElementChild||n||l()})},{root:c,threshold:[0,1]}),i.observe(e.current),i.observe(e?.current?.firstElementChild)),()=>{i&&i.disconnect()}},[r,n,o,c])},Mt=(e,t)=>{const r=new Map,o=e=>{const o=e?.toString()||"";return Object.entries(t).reduce((e,[t,o])=>{return e.replaceAll((n=t,r.has(n)||r.set(n,new RegExp(`{${n}(:.+?)?}`,"g")),r.get(n)),o?.toString());var n},o)};return Array.isArray(e)?[...e].map(e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,o(t)]))):Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.map(e=>o(e))]))},Tt=(e,t,{onCancelled:r,onFinished:o,onStarted:i,playImmediately:a,...c}={})=>{const s=n(void 0),g=(n={},a={})=>{const l=e.current?.animate(Mt(t,n),{...c,...a});return s.current=l,i?.(),l?.finished?.catch(()=>r?.())?.finally(()=>o?.()),l};return l(()=>{a&&g()},[]),{cancel:()=>{s.current?.cancel()},pause:()=>{s.current?.pause()},play:g,get playState(){return s.current?.playState}}},Pt=({attachment:e,backgroundColor:t,border:r,children:i,closeDelay:c,id:d,margin:b,maxHeight:u,maxWidth:p,onHide:I,onOutOfView:h,onShow:C,open:m,openDelay:x,padding:v,placement:A,scrollable:y,setPopupRef:G,textColor:Z,toggleRef:w,trigger:X})=>{const W=n(void 0),[k,B]=o(m);((e,t,r,o,n)=>{l(()=>{n&&Et(e?.current,t?.current,r,o)},[r,n,o,e?.current])})(W,w,e,A,m),Dt(W,w,e,A,m,h),((e,t,r,o,i)=>{const l=n(!1);a(()=>{let n,a,c,s,g;const d=()=>{Et(e?.current,t?.current,r,o)};if(i){if(!l.current){const{height:e,left:r,top:o,width:n}=t.current.getBoundingClientRect();a=e,c=r,s=o,g=n,l.current=!0}"floating"===r&&window.addEventListener("resize",d),n=new ResizeObserver(([{contentRect:{height:n,left:i,top:l,width:d}}])=>{n===a&&i===c&&l===s&&d===g||(Et(e?.current,t?.current,r,o),a=n,c=i,s=l,g=d)}),n.observe(t?.current)}return()=>{window.removeEventListener("resize",d),n&&n.disconnect()}},[r,i,o])})(W,w,e,A,m),((e,t,r,o)=>{a(()=>{let n,i=0,a=0;const l=({target:t})=>{const r=t.scrollLeft,o=t.scrollTop,n=i-r,l=a-o,c=parseInt(e?.current?.style?.getPropertyValue("--position-x")),s=parseInt(e?.current?.style?.getPropertyValue("--position-y"));e?.current?.style?.setProperty("--position-x",`${c+n}px`),e?.current?.style?.setProperty("--position-y",`${s+l}px`),i=r,a=o};return o&&"floating"===r&&(n=f(t?.current),i=n?.scrollLeft,a=n?.scrollTop,n!==document.documentElement&&n.addEventListener("scroll",l)),()=>{n&&n.removeEventListener("scroll",l)}},[r,o])})(W,w,e,m);const Y=Tt(W,[{opacity:0}],{delay:c,duration:100,fill:"forwards",onFinished:()=>{B(!1),I?.()}}),H=Tt(W,[{opacity:1}],{delay:x,duration:100,fill:"forwards",onFinished:()=>C?.(),onStarted:()=>B(!0)});a(()=>(m?(Y.pause(),H.play()):(H.pause(),Y.play()),()=>{Y.cancel(),H.cancel()}),[m]);const V=z(Lt),R=g("div",{ref:e=>{W.current=e,G(e)},css:V.popup,id:d,style:{"--background-color":t,"--border":r,"--color":Z,"--margin":b,"--max-height":u,"--max-width":p,"--padding":v}},g("div",{css:s([V.popupContent,y&&V.popupContentScrollable,"hover"===X&&V.popupOnHover])},i));return(m||k)&&("sibling"===e?R:P.createPortal(R,document.body))},Qt=({ariaDescription:e,ariaLabel:t,attachment:r="sibling",backgroundColor:l,border:c,children:d,closeDelay:b=0,closeOnClickOutside:u=!0,closeOnOutOfView:p=!1,gapSize:I,id:h,margin:C=I,maxHeight:m,maxWidth:x,onHide:f,onShow:v,open:A=!1,openDelay:y=0,padding:G,placement:Z="bottom",popupPositionX:w="right",popupPositionY:X="below",position:W={left:"auto",top:"auto"},positionType:k="relative",scrollable:B=!0,setRef:Y,textColor:H,toggle:V,toggleCursor:R,trigger:F="press",width:N="auto"})=>{((e,t,r,o,n,i,a,l)=>{zt('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',()=>void 0!==e,[e]),zt('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',()=>"right"!==t,[t]),zt('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',()=>"below"!==r,[r]),zt('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',()=>'{"left":"auto","top":"auto"}'!==JSON.stringify(o),[o]),zt('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',()=>"relative"!==n,[n]),zt('WJEC One Popup: The "setRef" prop has been deprecated as it is no longer required internally',()=>void 0!==i,[i]),zt('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',()=>"click"===a,[a]),zt('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',()=>"auto"!==l,[l])})(I,w,X,W,k,Y,F,N);const J=n(void 0),L=n(void 0),j=n(void 0),[O,S]=o(A),E=lt(e),D=i(()=>"right"!==w||"below"!==X?((e,t)=>{switch(`${e}-${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"}})(w,X):Z,[Z,w,X]);a(()=>{A&&!O&&P(),!A&&O&&T()},[A]),a(()=>("hover"!==F&&u&&O&&u&&window.addEventListener("click",M,{capture:!0}),()=>{window.removeEventListener("click",M)}),[u,O,F]);const M=({target:e})=>{const t=e;t===J.current||J.current?.contains(t)||L.current?.contains(t)||T()},T=()=>{S(!1)},P=()=>{S(!0)},Q=z(Lt);return g("div",Je({"aria-label":t,ref:J,css:s([Q.container,{"--border":c,"--cursor":R}]),id:h,"data-testid":"popup-container"},E),g("span",{ref:j,css:s([Q.toggle,"string"==typeof V&&Q.toggleString]),onClickCapture:"click"===F||"press"===F?()=>{O?T():P()}:null,onMouseEnter:"hover"===F?P:null,onMouseLeave:"hover"===F?T:null},V),g(Pt,{attachment:r,backgroundColor:l,border:c,closeDelay:b,id:h?`${h}_popup`:void 0,margin:C,maxHeight:m,maxWidth:x,onHide:f,onOutOfView:()=>p&&S(!1),onShow:v,open:O,openDelay:y,padding:G,placement:D,scrollable:B,setPopupRef:e=>L.current=e,textColor:H,toggleRef:j,trigger:F},d))},Ut=({ariaDescription:e,ariaLabel:t,border:r="0.5px solid #b9c2c6",children:o,id:n,maxWidth:i,placement:a="bottom-start",toggle:l=g(Vt,{css:Kt.defaultToggle}),trigger:c="hover",...s})=>g(Qt,Je({ariaDescription:e,ariaLabel:t,border:r},s,{id:n,maxWidth:i,openDelay:"hover"===c?500:0,padding:"16px",placement:a,scrollable:!1,toggle:l,toggleCursor:"help",trigger:c}),o),Kt={defaultToggle:{name:"1pg8bi",styles:"height:20px;"}};var $t;function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},_t.apply(null,arguments)}var qt=r(function(t,r){return e.createElement("svg",_t({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),$t||($t=e.createElement("path",{d:"M10 6.667c.917 0 1.667-.75 1.667-1.667S10.917 3.333 10 3.333 8.333 4.083 8.333 5 9.083 6.667 10 6.667Zm0 1.666c-.917 0-1.667.75-1.667 1.667s.75 1.667 1.667 1.667 1.667-.75 1.667-1.667-.75-1.667-1.667-1.667Zm0 5c-.917 0-1.667.75-1.667 1.667s.75 1.667 1.667 1.667 1.667-.75 1.667-1.667-.75-1.667-1.667-1.667Z",fill:"currentColor"})))});const er=({children:e,color:t,id:r})=>{const o=z(tr);return g("span",{css:s([o.emphasis,{"--color":t}]),id:r},e)},tr=({colorPalette:e})=>({emphasis:s("--color:",e.neutralDark,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:16px;font-weight:700;line-height:24px;")}),rr=({children:e,color:t,id:r})=>{const o=z(or);return g("p",{css:s([o.paragraph,{"--color":t}]),id:r},e)},or=({colorPalette:e})=>({paragraph:s("--color:",e.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;')}),nr=e=>e&&e.length&&Object.hasOwn(e[0],"label"),ir=({ariaLabel:e,description:r,options:o,title:n,toggle:i=g(qe,{icon:qt,ariaLabel:e}),...l})=>{const[{colorPalette:c}]=j();a(()=>(e=>{(nr(e)?e:e.reduce((e,{sectionOptions:t})=>[...e,...t],[])).some(({icon:e,label:r})=>{if(e&&!m(t.createElement(e)))throw new Error(`Icon for option "${r}" must be a valid SVGComponent`)})})(o),[o]);const d=e=>()=>{p(e.onClick)&&e.onClick()},b=z(sr),u=e=>{const{additionalInfo:t,label:r,icon:o}=e;return g("li",{key:r.toString(),css:b.menuItem,onClick:d(e)},o&&g(o,{css:b.menuItemIcon}),g("span",{css:b.menuItemLabel},r),t&&g("span",{css:"string"==typeof t?b.menuItemInfo:b.menuItemAction},t))};return g(Qt,Je({},l,{padding:0,popupPositionX:"right",popupPositionY:"below",toggle:i,ariaLabel:e}),(n||r)&&g("header",{css:b.header},n&&g(er,null,n),r&&g(rr,{color:c.fontLight},r)),g("ul",{css:s([Ie,be.scrollbar,b.menu])},o&&o.length&&(nr(o)?o.map(u):o.map(({sectionTitle:e,sectionOptions:t},r)=>g("li",{key:`section_${e&&e.replace(/\s/g,"_")||r}`,css:b.section},e&&g("h4",{css:b.sectionTitle},e),g("ul",{css:s([b.subMenu,!e&&b.subMenuWithoutTitle])},t.map(u)))))))},ar=10;var lr={name:"jvw5bw",styles:"margin-right:auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},cr={name:"1dacand",styles:"padding-top:0;"};const sr=({colorPalette:e})=>({header:s("border-bottom:1px solid ",e.border,";margin:",ar,"px;margin-bottom:0;min-width:250px;"),menu:s("font-family:'Montserrat',sans-serif;list-style:none;margin:0;overflow-x:hidden;overflow-y:auto;padding:",ar,"px;"),menuItem:s("align-items:center;border-radius:",be.borderRadius,";color:",e.font,";cursor:pointer;display:flex;font-size:14px;line-height:20px;padding:",5,"px ",ar,"px;&:hover{background-color:",e.neutral,";& > svg{color:",e.secondary,";}}&:not(:last-child){margin-bottom:",5,"px;}"),menuItemAction:s("display:inline-flex;margin-left:",20,"px;pointer-events:none;"),menuItemIcon:s("color:",e.fontLight,";flex-shrink:0;height:20px;margin-right:",ar,"px;"),menuItemInfo:s("color:",e.fontLight,";font-size:11px;line-height:20px;margin-left:",20,"px;"),menuItemLabel:lr,section:s("margin:0 -",ar,"px;&:last-child{margin-bottom:-",ar,"px;}&:not(:last-child){border-bottom:1px solid ",e.border,";margin-bottom:",ar,"px;}"),sectionTitle:s("color:",e.fontLight,";font-size:11px;font-weight:600;letter-spacing:1px;line-height:20px;margin:0;padding:0 ",20,"px;text-transform:uppercase;"),subMenu:s("list-style:none;padding:",ar,"px;"),subMenuWithoutTitle:cr}),gr={dependencies:[],eventTarget:document.documentElement,shouldAddListener:!0},dr=(e,t,r)=>{const{dependencies:o,eventOptions:n,eventTarget:i,shouldAddListener:l}={...gr,...r},c="function"==typeof l?l():l;a(()=>{const r=v(i)?i.current:i;return c&&r?.addEventListener(e,t,n),()=>{r?.removeEventListener(e,t,n)}},[c,e,i,...o])},br={description:s("color:",_.neutralDark,";display:block;font-family:'Montserrat',sans-serif;font-size:12px;font-weight:400;line-height:16px;margin-top:4px;")};var ur,pr=({children:e,id:t})=>e?g("span",{css:br.description,id:t},e):null;function Ir(){return Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ir.apply(null,arguments)}var hr,Cr=r(function(t,r){return e.createElement("svg",Ir({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),ur||(ur=e.createElement("path",{d:"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},mr.apply(null,arguments)}var xr,fr=r(function(t,r){return e.createElement("svg",mr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),hr||(hr=e.createElement("path",{d:"m7.5 12 3 3 6-6m5.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});function vr(){return vr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},vr.apply(null,arguments)}var Ar=r(function(t,r){return e.createElement("svg",vr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),xr||(xr=e.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});const yr={status:{name:"13tmt62",styles:"display:block;font-family:'Montserrat',sans-serif;font-size:12px;font-weight:600;line-height:16px;margin-top:4px;padding-left:24px;position:relative;white-space:pre-line;"},statusIcon:{name:"196io73",styles:"left:0;position:absolute;top:0;width:16px;"}};var Gr,Zr,wr=({children:e,id:t,status:r})=>{const[{colorPalette:o}]=j(),n=i(()=>{let e;switch(r){case"error":e=Cr;break;case"success":e=fr;break;case"warning":e=Ar}return e},[r]),a=i(()=>{let e;switch(r){case"error":e=o.error;break;case"success":e=o.success;break;case"warning":e=o.warning}return e},[r]);return r&&e?g("span",{"aria-live":"polite",css:s([yr.status,{color:a}]),id:t},g(n,{css:yr.statusIcon}),e):null};function Xr(){return Xr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Xr.apply(null,arguments)}var Wr,kr,Br=r(function(t,r){return e.createElement("svg",Xr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Gr||(Gr=e.createElement("path",{opacity:.4,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Zr||(Zr=e.createElement("path",{d:"M12 8v4m0 4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Yr.apply(null,arguments)}var Hr,Vr,Rr=r(function(t,r){return e.createElement("svg",Yr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Wr||(Wr=e.createElement("path",{opacity:.4,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),kr||(kr=e.createElement("path",{d:"m7.5 12 3 3 6-6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});function Fr(){return Fr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Fr.apply(null,arguments)}var Nr=r(function(t,r){return e.createElement("svg",Fr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Hr||(Hr=e.createElement("path",{opacity:.4,d:"m2.39 18.098 8.225-14.206c.455-.785.682-1.178.979-1.31a1 1 0 0 1 .812 0c.297.132.524.525.979 1.31l8.225 14.206c.456.788.684 1.182.65 1.506a1 1 0 0 1-.406.705c-.263.191-.719.191-1.63.191H3.776c-.91 0-1.366 0-1.629-.191a1 1 0 0 1-.406-.705c-.034-.324.194-.718.65-1.506Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Vr||(Vr=e.createElement("path",{d:"M12 9v4m0 4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});const Jr=({ariaLabel:e,autoComplete:r,description:o,disabled:a,icon:c,id:d,inputMode:b,label:u,maxCharacters:p,name:I,onBlur:h,onChange:C,onFocus:x,placeholder:f,readonly:v,required:A,restrictedCharacters:y,status:G,statusIcon:Z=("error"===G?Br:"success"===G?Rr:"warning"===G?Nr:void 0),statusIconBehavior:w="status",statusMessage:X,suggestions:W,value:k="",width:B})=>{Le("WJEC-One Input: Icon must be a valid SVGComponent",()=>c&&!m(t.createElement(c)),[c]),Le("WJEC-One Input: Status icon must be a valid SVGComponent",()=>Z&&!m(t.createElement(Z)),[Z]);const Y=S(d),H=n(void 0),V=`${Y}_description`,R=`${Y}_status`,F=n(void 0),N=n(0),J=n(k),L=n(void 0),O=i(()=>`wjecOneInputSuggestions_${Y}`,[Y]),E=i(()=>{let e;return void 0!==y&&(e=new RegExp(y,"g")),e},[y]),[{brand:D,colorPalette:M}]=j(),T=z(Lr);l(()=>{H.current?.style?.setProperty("--offset-top",`${F.current.offsetTop}px`),L.current?.style?.setProperty("--offset-top",`${F.current.offsetTop}px`)}),l(()=>{F.current.value=k,J.current=k},[k]),dr("selectionchange",()=>{document.activeElement===F.current&&(N.current=F.current.selectionEnd)},{shouldAddListener:void 0!==y});const P=i(()=>{switch(G){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{background:"#FFFFFF",border:M.border}}},[D,G]),Q=i(()=>void 0!==Z&&("custom"===w||void 0!==G)?Z:void 0,[G,Z,w]),U="error"!==G&&"warning"!==G||!X?V:R,K=i(()=>({"--background-color":P.background,"--border-color":P.border,"--margin-top":u&&"4px","--padding-left":c&&(v&&!a?"32px":"40px"),"--padding-right":Z&&"40px"}),[a,c,u,v,P,Z]);return g("label",{css:T.label,htmlFor:Y,style:{width:B},"data-disabled":a},u,g("input",{"aria-describedby":U,"aria-label":e,autoComplete:r,css:T.input,defaultValue:k,disabled:a,id:Y,inputMode:b,list:W&&O,maxLength:p,name:I,onBlur:({relatedTarget:e})=>{h?.(e)},onChange:({target:e})=>{const{value:t}=e;if(E){if(E.test(t)){const e=t.replace(E,""),r=e.length-J.current.length,o=N.current+r;F.current.value=e,F.current.setSelectionRange(o,o)}F.current.value!==J.current&&C?.(F.current.value),N.current=F.current.selectionEnd,J.current=F.current.value}else C?.(t)},onFocus:()=>{x?.()},placeholder:f,readOnly:v,ref:F,required:A,style:K,type:"text"}),c&&g(c,{"aria-hidden":!0,css:s([T.icon,v&&!a&&{paddingLeft:"0"}]),"data-disabled":a,ref:H}),Q&&g(Q,{"aria-hidden":!0,css:s([T.icon,T.statusIcon]),"data-disabled":a,"data-status":"status"===w?G:void 0,ref:L}),g(pr,{id:V},o),g(wr,{id:R,status:G},X),W&&g("datalist",{id:O},W.map((e,t)=>g("option",{key:`${e}_${t}`,value:e}))))},Lr=({colorPalette:e})=>({icon:s("--offset-top:0;box-sizing:content-box;color:",e.neutralLight,';height:24px;left:0;padding:8px;pointer-events:none;position:absolute;top:var(--offset-top);width:24px;&[data-disabled="true"]{color:',e.border,";}"),input:s("--background-color:#FFFFFF;--border-color:",e.border,";--margin-top:0;--padding-left:8px;--padding-right:8px;",he,";background-color:var(--background-color);border:1px solid var(--border-color);border-radius:",be.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:",e.neutral,";border-color:",e.border,";color:",e.border,";cursor:not-allowed;}&:focus{border-color:",e.primary,";}&:read-only:not(:disabled){--padding-left:0;--padding-right:0;background-image:none;background-color:transparent;border-color:transparent;overflow:hidden;padding-left:var(--padding-left);text-overflow:ellipsis;white-space:nowrap;}&::placeholder{color:",e.neutralLight,";}&::-webkit-calendar-picker-indicator{opacity:0;}"),label:s(Ie,";",Ce,';display:inline-flex;flex-direction:column;position:relative;&[data-disabled="true"]{color:',e.border,";}"),statusIcon:s('left:unset;right:0;&[data-disabled="true"]{opacity:0.5;}&[data-status="error"]{color:',e.error,';}&[data-status="success"]{color:',e.success,';}&[data-status="warning"]{color:',e.warning,";}")});var zr;function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},jr.apply(null,arguments)}var Or,Sr,Er,Dr=r(function(t,r){return e.createElement("svg",jr({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),zr||(zr=e.createElement("path",{d:"M15.25 4.758a.83.83 0 0 0-1.175 0L10 8.825 5.925 4.75A.83.83 0 1 0 4.75 5.925L8.825 10 4.75 14.075a.83.83 0 1 0 1.175 1.175L10 11.175l4.075 4.075a.83.83 0 1 0 1.175-1.175L11.175 10l4.075-4.075a.835.835 0 0 0 0-1.167Z",fill:"currentColor"})))});function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Mr.apply(null,arguments)}var Tr=r(function(t,r){return e.createElement("svg",Mr({viewBox:"0 0 91 83",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Or||(Or=e.createElement("path",{opacity:.4,d:"M50.74 68.314 8.455 56.983c-3.017-.809-4.562-4.155-3.222-6.976l21.62-45.491a5 5 0 0 1 6.662-2.37l45.998 21.86c2.824 1.343 3.737 4.918 1.903 7.45L56.081 66.418a5 5 0 0 1-5.343 1.896Z",fill:"#B0C600"})),Sr||(Sr=e.createElement("path",{opacity:.4,d:"M0 38.726V26.507a5 5 0 0 1 4.079-4.914l53.991-10.12a5 5 0 0 1 4.381 1.305l26.221 25.134a5 5 0 0 1 1.256 5.272l-3.187 9.044a5 5 0 0 1-3.312 3.137l-50.593 14.8a5 5 0 0 1-4.953-1.278L1.45 42.247A5 5 0 0 1 0 38.728Z",fill:"#47BAD1"})),Er||(Er=e.createElement("path",{opacity:.8,d:"M53.75 46h-1.975l-.7-.675A16.178 16.178 0 0 0 55 34.75c0-8.975-7.275-16.25-16.25-16.25S22.5 25.775 22.5 34.75 29.775 51 38.75 51c4.025 0 7.725-1.475 10.575-3.925l.675.7v1.975l12.288 12.263a.3.3 0 0 0 .424 0l3.301-3.301a.3.3 0 0 0 0-.424L53.75 46Zm-15 0A11.235 11.235 0 0 1 27.5 34.75c0-6.225 5.025-11.25 11.25-11.25S50 28.525 50 34.75 44.975 46 38.75 46Z",fill:"#fff"})))});const Pr=({clearButtonBehaviour:e="clear",expanded:r,filter:l=!0,floatingList:c,floatingListPosition:d={top:10},icon:b,id:h,label:m,loading:x,maxHeight:f=150,noMatchesMessage:v="No matches were found",onChange:X,onFilter:W,optionKeyExtractor:k,optionTemplate:B=({option:e})=>g(t.Fragment,null,e.toString()),options:Y,placeholder:H,value:V="",ariaLabel:R=G(m),ariaCloseLabel:F=("clear"===e?"Clear filter":"clearAndClose"===e?"Clear filter and close list":"Close list"),ariaMultiselectable:N})=>{const[{colorPalette:J}]=j();Le("WJEC-One FilterList: You must specify a keyExtractor if the options array contains non-primitive entry types",()=>!Z(Y)&&!w(Y)&&!k,[k,Y]);const L=n(void 0),O=n(void 0),S=n(void 0),[E,D]=o(V),[M,T]=o(0),[P,Q]=o(0),[U,K]=o("below"),[$,_]=o(0),[q,ee]=o([...Y]),[te,re]=o(),[oe,ne]=o([]),[ie,ae]=o(1),le=i(()=>b&&u(t.createElement(b,{color:J.fontLight})),[b]);a(()=>{let e;e=l&&E?Y.filter((e,t)=>be(e,t).toString().toLowerCase().includes(E.toLowerCase())):[...Y],A(e,q)||(p(W)&&W(e),ee(e))},[E,l,Y]),a(()=>{!te||Y.length||E||ge(),L.current.querySelector('input[type="text"]')===document.activeElement&&de()},[E,Y]),a(()=>{r!==te&&(r?de():ge())},[r]),a(()=>{V!==E&&D(V)},[V]),a(()=>(te&&(document.addEventListener("scroll",ce,!0),window.addEventListener("click",ce),window.addEventListener("resize",se)),()=>{document.removeEventListener("scroll",ce,!0),window.removeEventListener("click",ce),window.removeEventListener("resize",se)}),[te]),a(()=>{ae(1),O.current&&O.current.scrollTo({top:0})},[q]),a(()=>{ne(e=>{const t=ie>1?[...e]:[],r=50*ie-50,o=r+50;return t.length=50*(ie-1),[...t,...q.slice(r,o).map(Ce)]})},[q,ie]);const ce=({target:e})=>{const t=e;t===L.current||L.current.contains(t)||ge()},se=y(()=>de(),{limit:250}),ge=()=>{S.current===document.activeElement&&L.current.querySelector('input[type="text"]').focus(),re(!1),ae(1)},de=()=>{if(Y.length>0||!!E){const e=L.current.getBoundingClientRect(),t=e.top+e.height,r=window.innerHeight-t;let o="below";if(!c){if(r<f){const t=e.top;(t>f||t>r)&&(o="above")}"below"===o?(T(Math.min(f,window.innerHeight-t-10)),Q(e.top+L.current.querySelector('input[type="text"]').offsetTop)):(T(Math.min(f,e.top-10)),Q(window.innerHeight-t-1))}K(o),_(e.width),re(!0)}},be=(e,t)=>I(e)?e.key:C(e,k,t),ue=e=>{p(X)&&X(e),D(e)},pe=y(e=>{const t=e.target;t.scrollTop+2*t.clientHeight>t.scrollHeight&&50*ie<q.length&&ae(e=>e+1)},{beforeDelay:e=>{e.nativeEvent.stopImmediatePropagation(),e.persist()},limit:250}),Ie=z(ao),he=()=>g("input",{ref:S,css:s([Ie.listInput,le&&[Ie.listInputWithIcon,{backgroundImage:le}]]),autoFocus:!0,onChange:({currentTarget:e})=>ue(e.value),placeholder:H,value:E}),Ce=e=>{const t=Y.indexOf(e);return g("li",{"aria-posinset":t+1,"aria-setsize":Y.length,key:be(e,t)},B({option:e,index:t,filteredOptions:[...q]}))};return g("div",{ref:L,css:Ie.container,id:h,onClick:({target:e})=>{te||e!==L.current.querySelector('input[type="text"]')||e!==document.activeElement||de()}},g(Jr,{ariaLabel:R,icon:b,label:m,onChange:ue,onFocus:de,placeholder:H,value:E}),te&&g("div",{"aria-expanded":!0,css:s([Ie.expandedContainer,"above"===U?[Ie.expandedContainerAbove,{bottom:P}]:{top:P},{width:$},c&&[Ie.expandedContainerFloating,{...d,maxHeight:`calc(100% - ${2*d.top}px)`}]])},"below"===U&&he(),g(Dr,{"aria-label":F,css:s([Ie.clearIcon,"above"===U&&Ie.clearIconAbove]),onClick:()=>{"clear"!==e&&"clearAndClose"!==e||D(""),"clear"===e&&S.current.focus(),"clearAndClose"!==e&&"close"!==e||ge()}}),g("div",{css:s([Ie.listContainer,"above"===U&&Ie.listContainerAbove]),onScroll:pe},g("ul",{"aria-multiselectable":N,css:s([Ie.list,c&&Ie.listFloating,!c&&{maxHeight:M}]),ref:O},q.length?oe:g("li",{css:Ie.noResults},g(Tr,{css:Ie.noResultsIcon,"aria-hidden":!0}),v)),x&&g("div",{css:s([Ie.loading,"above"===U&&Ie.loadingAbove,!c&&{maxHeight:M}])},g(je,null))),"above"===U&&he()))};var Qr={name:"10eevtr",styles:"bottom:0;top:auto;"},Ur={name:"oxdg22",styles:"&::before{bottom:30px;top:auto;}"},Kr={name:"j7qwjs",styles:"display:flex;flex-direction:column;"},$r={name:"yp8oic",styles:"display:flex;margin:2px 0 1px;min-height:0px;position:relative;"},_r={name:"p49ge0",styles:"margin:1px 0 2px;"},qr={name:"11cgomd",styles:"max-height:initial;"},eo={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%;"},to={name:"267yq8",styles:"padding-left:35px;"},ro={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;"},oo={name:"9cuppe",styles:"bottom:auto;top:0;"},no={name:"m2y6eh",styles:"align-items:center;display:flex;flex-direction:column;justify-content:center;padding:10px 0;"},io={name:"1bkzip4",styles:"width:91px;"};const ao=({colorPalette:e})=>({clearIcon:s("color:",e.fontLight,";cursor:pointer;height:30px;padding:5px;position:absolute;right:0;top:0;&:hover{color:",e.font,";}"),clearIconAbove:Qr,container:s(Ie,";display:inline-block;font-family:'Montserrat',sans-serif;font-size:12px;line-height:20px;position:relative;& > label{width:100%;}"),expandedContainer:s("background-color:#fff;border:1px solid ",e.border,";border-radius:",be.borderRadius,";box-shadow:",be.dropShadow,";position:fixed;z-index:1;&::before{border-bottom:1px solid ",e.border,";content:'';left:8px;position:absolute;right:8px;top:30px;}"),expandedContainerAbove:Ur,expandedContainerFloating:Kr,list:s(be.scrollbar,";list-style:none;margin:0;overflow:auto;padding:8px 10px 9px;width:100%;"),listContainer:$r,listContainerAbove:_r,listFloating:qr,listInput:eo,listInputWithIcon:to,loading:ro,loadingAbove:oo,noResults:no,noResultsIcon:io}),lo=({ariaDescription:e,ariaLabel:t,children:r,clearButton:o="Clear",clearId:n,id:i,onClear:a,onSubmit:l,otherActions:c,submitButton:d="Submit",submitId:b,width:u})=>{const I=lt(e);return g("form",Je({"aria-label":t,css:s({width:u}),id:i,onReset:e=>{e.preventDefault(),p(a)&&a()},onSubmit:e=>{e.preventDefault(),p(l)&&l()}},I),r,g("section",{css:co.controls},o&&g(Te,{buttonType:"reset",id:n,label:o}),g("div",{css:co.submit},d&&g(rt,{buttonType:"submit",id:b,label:d})),c&&g(ir,{options:c})))},co={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;}"}};var so;function go(){return go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},go.apply(null,arguments)}var bo=r(function(t,r){return e.createElement("svg",go({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),so||(so=e.createElement("path",{d:"m7.5 13.475-2.892-2.892a.83.83 0 1 0-1.175 1.175l3.484 3.484a.83.83 0 0 0 1.175 0l8.816-8.817a.83.83 0 1 0-1.175-1.175L7.5 13.475Z",fill:"currentColor"})))});const uo=({ariaLabel:e,checked:t=!1,children:r,description:o,disabled:a,id:c,label:d,labelOverflow:b="wrap",loading:u,onChange:I,size:h="default",status:C,statusMessage:m})=>{const x=S(c),[{brand:f,colorPalette:v}]=j(),A=z(Co),y=n(void 0);l(()=>{y.current.checked=t},[t]);const G=i(()=>{switch(C){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{}}},[f,C]),Z=i(()=>({"--background-color":G.background,"--border-color":G.border}),[d,G]);return g("div",{css:A.container},g("input",{css:A.checkbox,defaultChecked:t,disabled:a,id:x,onChange:({target:{checked:e}})=>{p(I)&&I(e)},ref:y,type:"checkbox","data-loading":u}),g("label",{"aria-label":e,css:s([A.label,"small"===h&&A.labelSmall]),htmlFor:x,onClick:e=>e.stopPropagation(),style:Z},u&&g("div",{css:A.loadingIcon},g(je,{color:v.primary,size:"small"===h?"extraSmall":"default"})),(d||r)&&g("span",{css:A.labelContent,"data-overflow":b},d||r)),g(pr,null,o),g(wr,{status:C},m))};var po={name:"7n37re",styles:"display:inline-flex;flex-direction:column;min-width:0;"},Io={name:"kynfrz",styles:'display:inline-block;font-family:inherit;&[data-overflow="ellipsis"]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}'},ho={name:"qxnk73",styles:"--dimensions:16px;font-size:10px;gap:4px;"};const Co=({colorPalette:e})=>({checkbox:s(be.visiblyHidden," &:checked + label::before{background-image:",u(g(bo,{color:e.primary})),";background-size:cover;}&:checked:disabled + label::before{background-image:",u(g(bo,{color:e.border})),";}&:disabled + label{color:",e.border,";cursor:not-allowed;&::before{background-color:",e.neutral,";border-color:",e.border,";}}&:focus + label::before{border-color:",e.primary,";}"),container:po,label:s("--background-color:#FFFFFF;--border-color:",e.border,";--dimensions:40px;",Ie,";align-items:center;color:",e.font,";cursor:pointer;display:inline-flex;font-family:'Montserrat',sans-serif;font-size:14px;font-weight:400;gap:8px;line-height:16px;position:relative;&:active::before,&:focus-within::before{border-color:",e.primary,"}&::before{background-color:var(--background-color);border:1px solid var(--border-color);border-radius:",be.borderRadius,";content:'';display:inline-block;flex-shrink:0;height:var(--dimensions);width:var(--dimensions);}"),labelContent:Io,labelSmall:ho,loadingIcon:s("align-items:center;background-color:var(--background-color);border-radius:",be.borderRadius,";display:flex;height:calc(var(--dimensions) - 2px);justify-content:center;left:1px;position:absolute;top:1px;width:calc(var(--dimensions) - 2px);")});var mo,xo;function fo(){return fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},fo.apply(null,arguments)}var vo,Ao,yo=r(function(t,r){return e.createElement("svg",fo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),mo||(mo=e.createElement("path",{opacity:.4,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),xo||(xo=e.createElement("path",{d:"M12 6v6l4 2",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Go.apply(null,arguments)}var Zo=r(function(t,r){return e.createElement("svg",Go({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),vo||(vo=e.createElement("path",{opacity:.4,d:"M21 10H3",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Ao||(Ao=e.createElement("path",{d:"M16 2v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});const wo=e=>{switch(e.type){case"date":return e.date?B({date:e.date,format:"yyyy-MM-dd"}):"";case"dateTime":return e.date?W({date:e.date,format:`yyyy-MM-ddT${e.time||"HH:mm"}`}):"";case"time":return e.time||"";default:return k(e)}},Xo=({type:e="dateTime",...t})=>{const{date:r,description:o,disabled:a,id:c,label:d,maxDate:b,maxTime:u="",minDate:I,minTime:h="",onChangeDate:C,onChangeTime:m,placeholder:x,readonly:f,status:v,statusMessage:A,time:y,width:G}=X(t),[{colorPalette:Z}]=j(),w=z(ko),k=n(void 0),B=n(void 0),Y=i(()=>wo({date:r,time:y,type:e}),[]),H=S(c),V=`${H}_description`,R=`${H}_status`;l(()=>{B.current.value=wo({date:r,time:y,type:e})},[r,y,e]);const F=i(()=>"time"===e?yo:Zo,[e]),N=i(()=>"dateTime"===e?"datetime-local":e,[e]),J=i(()=>!(!b||!I)&&("00:00:00"===b.toTimeString().substring(0,8)&&"00:00:00"===I.toTimeString().substring(0,8)),[b,I]),L=i(()=>{if("date"===e||"dateTime"===e){const t=b||("dateTime"===e&&u?new Date:void 0);return t?W({date:t,format:"dateTime"===e?`yyyy-MM-ddT${u||(J?"23:59":"HH:mm")}`:"yyyy-MM-dd"}):u}return u},[b,u,e]),O=i(()=>{if("date"===e||"dateTime"===e){const t=I||("dateTime"===e&&h?new Date:void 0);return t?W({date:t,format:"dateTime"===e?`yyyy-MM-ddT${h||(J?"00:00":"HH:mm")}`:"yyyy-MM-dd"}):h}return h},[I,h,e]),E="error"!==v&&"warning"!==v||!A?V:R,D=i(()=>{switch(v){case"error":return{backgroundColor:Z.errorBackground,borderColor:Z.error};case"success":return{backgroundColor:Z.successBackground,borderColor:Z.success};case"warning":return{backgroundColor:Z.warningBackground,borderColor:Z.warning};default:return{}}},[Z,v]);return g("label",{css:s([w.label,G&&{width:G}])},d,g("span",{css:s([w.container,{"--margin-top":d&&"4px"}])},g("input",{"aria-describedby":E,css:s([w.input,{"--background":D.backgroundColor,"--border-color":D.borderColor}]),defaultValue:Y,disabled:a,id:H,max:L,min:O,onChange:({target:t})=>{const{value:r,valueAsNumber:o}=t,n=new Date(o),i=r.substring(r.indexOf("T")+1);"date"!==e&&"dateTime"!==e||!p(C)||C(n),"dateTime"!==e&&"time"!==e||!p(m)||m(i)},placeholder:x,readOnly:f,ref:B,type:N}),g(F,{"aria-hidden":!0,css:w.icon,"data-disabled":a,ref:k})),g(pr,{id:V},o),g(wr,{id:R,status:v},A))};var Wo={name:"1y6rkrv",styles:"--margin-top:0;margin-top:var(--margin-top);position:relative;"};const ko=({colorPalette:e})=>({container:Wo,icon:s("color:",e.neutralLight,";cursor:pointer;height:40px;left:0;padding:8px;pointer-events:none;position:absolute;top:0;width:40px;&:hover{color:",e.neutralDark,";}"),input:s("--background-color:#fff;--border-color:",e.border,";background-color:var(--background);border:1px solid var(--border-color);border-radius:",be.borderRadius,";font-family:'Montserrat',sans-serif;font-size:16px;height:40px;max-width:100%;outline:none;padding:4px 8px 4px 40px;position:relative;transition:border-color 0.05s linear,padding 0.05s linear;width:100%;&:disabled{background-color:",e.neutral,";color:",e.fontLight,";cursor:not-allowed;& + svg{color:",e.border,";}}&:focus{border-color:",e.primary,";}&:invalid{border-color:",e.error,";}&:read-only:not(:disabled){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;& + svg{display:none;}}&::placeholder{color:",e.fontLight,";}&::-webkit-calendar-picker-indicator{background-color:pink;cursor:pointer;height:40px;left:0;opacity:0;padding:0;position:absolute;top:0;width:40px;}"),label:s(Ie,";",Ce,";display:inline-flex;flex-direction:column;position:relative;width:100%;")}),Bo=({ariaLabel:e,breadcrumb:t,children:r,href:o,id:n,target:i})=>{const a=z(Yo),l={..."newTab"===i?{target:"_blank",rel:"noopener noreferrer"}:{}};return g("a",Je({"aria-label":e,href:o,css:s([a.link,t&&a.withBreadcrumb]),id:n},l),r||o)},Yo=({colorPalette:e})=>({link:s("color:",e.primaryDark,";font-family:'Montserrat',sans-serif;font-size:16px;font-weight:500;line-height:24px;"),withBreadcrumb:s("color:",e.fontLight,";margin-right:40px;text-decoration:none;position:relative;&:not(:last-of-type)::after{background-image:",u(g(Ye,{color:e.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 ",e.fontLight,";}")}),Ho=({id:e,label:t,readonly:r,value:o,...n})=>{const i=z(Ro);return r?g("label",{css:i.label,id:e},g("span",{css:i.labelText},t),g(Bo,{href:`mailto:${o}`},o)):g(Jr,Je({label:t,value:o},n))};var Vo={name:"r7q7qr",styles:"margin-bottom:5px;"};const Ro=({colorPalette:e})=>({label:s(Ie,";color:",e.font,";display:inline-flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:12px;line-height:20px;"),labelText:Vo});var Fo;function No(){return No=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},No.apply(null,arguments)}var Jo,Lo=r(function(t,r){return e.createElement("svg",No({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Fo||(Fo=e.createElement("path",{d:"M12 5v14m-7-7h14",stroke:"#FAFCFC",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",opacity:.6})))});function zo(){return zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},zo.apply(null,arguments)}var jo=r(function(t,r){return e.createElement("svg",zo({viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Jo||(Jo=e.createElement("path",{d:"M5.333 21.656a6 6 0 0 1 2.773-10.964 8.002 8.002 0 0 1 15.788 0 6 6 0 0 1 2.773 10.964m-16-.323L16 16m0 0 5.333 5.333M16 16v12",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});const Oo=({ariaLabel:e,browseLabel:t="Browse",description:r,displaySize:o="medium",id:i,label:a,max:l,maxFileSize:c,multiple:s,onError:d,onSelect:b,placeholderDescription:u=("large"===o?"Drag & drop "+(s?"files":"a file"):`Drag & drop ${s?"files":"a file"} or click to upload`),status:I,statusMessage:h,validExtensions:C,validTypes:m})=>{const x=n(void 0),f=n(void 0),v=S(i),A=e=>s?void 0===l||e<=l:e<=1,y=e=>{const t=e.length,r=[],o=[],n=[],i=[];A(t)?(e.forEach(e=>{const t=(({name:e})=>{const t=e.substring(e.lastIndexOf("."));return void 0===C||C.includes(t)})(e),a=(({size:e})=>void 0===c||e<=c)(e),l=(({type:e})=>void 0===m||m.includes(e))(e);t&&a&&l&&i.push(e),t||r.push(e),a||o.push(e),l||n.push(e)}),i.length>0&&p(b)&&b(i)):p(d)&&d([{code:"MAX_FILES_EXCEEDED",details:{maxCount:l||1,selectedCount:t}}]),(r.length||o.length||n.length)&&p(d)&&d([r.length&&{code:"INVALID_FILE_EXTENSION",details:{files:r}},o.length&&{code:"INVALID_FILE_SIZE",details:{files:o}},n.length&&{code:"INVALID_FILE_TYPE",details:{files:n}}].filter(e=>e))},G=z(Eo);return g("label",{css:G.label,htmlFor:v},a,g("div",{css:G.container,onDragEnter:e=>{const t=e.dataTransfer.items.length,r=A(t);Y(e.nativeEvent),x.current.setAttribute("data-drag-state",r?"valid":"invalid")},onDragLeave:e=>{Y(e.nativeEvent),x.current.contains(e.nativeEvent.relatedTarget)||x.current.removeAttribute("data-drag-state")},onDragOver:e=>{Y(e.nativeEvent)},onDrop:e=>{Y(e);const t=Array.from(e.dataTransfer.files);y(t),x.current.removeAttribute("data-drag-state")},ref:x,"data-display-size":o,"data-status":I},g("input",{"aria-label":e,css:be.visiblyHidden,id:v,multiple:s,onChange:e=>{const t=Array.from(e.currentTarget.files);y(t)},ref:f,type:"file",value:""}),g(jo,{css:G.uploadIcon,"aria-hidden":!0}),u&&g("p",{css:G.description},u),"large"===o&&g(rt,{icon:Lo,label:t,onPress:()=>{f.current.click()}})),g(pr,null,r),g(wr,{status:I},h))};var So={name:"o1srjj",styles:"display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:14px;gap:4px;line-height:16px;& > span{margin-top:0;}"};const Eo=({colorPalette:e})=>({container:s("--icon-size:32px;",Ie,";align-items:center;border:2px dashed ",e.border,";border-radius:",be.borderRadius,";cursor:pointer;display:flex;flex-direction:column;font-size:16px;font-weight:600;gap:8px;justify-content:center;line-height:24px;max-height:var(--max-height);max-width:var(--max-width);padding:16px;position:relative;transition:border-color 0.1s linear;&:focus-within{outline:2px solid ",e.primary,";outline-offset:-2px;}&:hover{background-color:",e.neutral,";border-color:",e.secondary,';}&[data-display-size="small"]{--icon-size:24px;display:inline-flex;flex-direction:row;font-weight:400;height:40px;padding:8px;}&[data-status="error"]{background-color:',e.errorBackground,";border-color:",e.error,';}&[data-status="success"]{background-color:',e.successBackground,";border-color:",e.success,';}&[data-status="warning"]{background-color:',e.warningBackground,";border-color:",e.warning,';}&[data-drag-state="valid"]{border-color:',e.secondary,';}&[data-drag-state="invalid"]{border-color:',e.error,";}"),description:s("color:",e.neutralLight,";margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"),label:So,uploadIcon:s("color:",e.neutralLight,";flex-shrink:0;width:var(--icon-size);")});var Do;function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Mo.apply(null,arguments)}var To,Po,Qo=r(function(t,r){return e.createElement("svg",Mo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Do||(Do=e.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});function Uo(){return Uo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Uo.apply(null,arguments)}var Ko,$o,_o,qo=r(function(t,r){return e.createElement("svg",Uo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),To||(To=e.createElement("path",{opacity:.12,d:"M9 12a3 3 0 0 0 5.121 2.121L9.88 9.88A2.99 2.99 0 0 0 9 12Z",fill:"currentColor"})),Po||(Po=e.createElement("path",{d:"M10.742 5.092C11.15 5.032 11.569 5 12 5c5.105 0 8.455 4.505 9.58 6.287.137.215.205.323.243.49.028.125.028.322 0 .447-.038.166-.107.274-.244.492-.3.474-.757 1.141-1.363 1.865M6.724 6.715c-2.162 1.467-3.63 3.504-4.303 4.57-.137.217-.206.325-.244.492a1.173 1.173 0 0 0 0 .446c.038.167.107.274.243.49C3.545 14.495 6.895 19 12 19c2.058 0 3.832-.732 5.288-1.723M3 3l18 18M9.879 9.879a3 3 0 1 0 4.243 4.243",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});function en(){return en=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},en.apply(null,arguments)}var tn=r(function(t,r){return e.createElement("svg",en({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Ko||(Ko=e.createElement("path",{opacity:.12,d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",fill:"currentColor"})),$o||($o=e.createElement("path",{d:"M2.42 12.713c-.136-.215-.205-.323-.243-.49a1.173 1.173 0 0 1 0-.446c.038-.167.107-.274.243-.49C3.545 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.028.125.028.322 0 .446-.038.167-.107.274-.243.49C20.455 14.495 17.105 19 12 19s-8.455-4.505-9.58-6.287Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),_o||(_o=e.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});const rn=({ariaLabel:e,autoComplete:t="current-password",description:r,disabled:o,id:a,label:c,name:d,onChange:b,onToggleRevealPassword:u,placeholder:p,revealPassword:I,showIcon:h=!0,status:C,statusMessage:m,value:x=""})=>{const f=n(void 0),v=n(void 0),A=n(void 0),[{brand:y,colorPalette:G}]=j(),Z=S(),w=i(()=>a||Z,[Z,a]);l(()=>{const e=Boolean(!o&&I);A.current.setAttribute("aria-pressed",e.toString()),v.current.setAttribute("type",e?"text":"password")},[o,I]),l(()=>{v.current.value=x},[x]);const X=i(()=>{switch(C){case"error":return{background:G.errorBackground,border:G.error};case"success":return{background:G.successBackground,border:G.success};case"warning":return{background:G.warningBackground,border:G.warning};default:return{}}},[y,C]),W=z(an),{buttonProps:k}=E({"aria-label":e,"aria-pressed":!o&&I,isDisabled:o,onPress:()=>{const e=!o&&"true"!==A.current.getAttribute("aria-pressed");A.current.setAttribute("aria-pressed",e.toString()),v.current.setAttribute("type",e?"text":"password"),u?.(e)},type:"button"},A);return g("label",{css:W.label,htmlFor:w},c,g("span",{css:s([W.container,{"--margin-top":c&&"4px"}])},g("input",{"aria-label":e,autoComplete:t,css:s([W.input,{"--background-color":X.background,"--border-color":X.border,"--padding-left":!h&&"8px"}]),defaultValue:x,disabled:o,id:w,name:d,onChange:({target:{value:e}})=>{b?.(e)},placeholder:p,ref:v,type:!o&&I?"text":"password"}),h&&g(Qo,{"aria-hidden":!0,css:W.icon,ref:f}),g("button",Je({},k,{css:W.revealPassword,name:"Reveal password",ref:A}))),g(pr,null,r),g(wr,{status:C},m))};var on={name:"1y6rkrv",styles:"--margin-top:0;margin-top:var(--margin-top);position:relative;"},nn={name:"1ynvfur",styles:"font-size:12px;margin-top:4px;"};const an=({colorPalette:e})=>({container:on,description:nn,icon:s("color:",e.neutralLight,";height:40px;left:0;padding:8px;pointer-events:none;position:absolute;top:0;width:40px;"),input:s("--background-color:#FFFFFF;--border-color:",e.border,";--padding-left:40px;",he,";background-color:var(--background-color);border:1px solid var(--border-color);border-radius:",be.borderRadius,";font-family:inherit;font-size:16px;height:40px;line-height:24px;max-width:100%;outline:none;padding:4px 40px 4px var(--padding-left);width:100%;&:disabled{background-color:",e.neutral,";border-color:",e.border,";color:",e.border,";cursor:not-allowed;+ button{background-image:",u(g(qo,{color:e.border})),';&[aria-pressed="true"]{background-image:',u(g(tn,{color:e.border})),";}}+ svg{color:",e.border,";}}&:focus{border-color:",e.primary,";}&::placeholder{color:",e.neutralLight,";}"),label:s(Ie,";",Ce,";display:inline-flex;flex-direction:column;position:relative;&:has(:disabled){color:",e.border,";}"),revealPassword:s("background:transparent ",u(g(qo,{color:e.neutralLight}))," center / 24px no-repeat;border:none;color:",e.neutralLight,";cursor:pointer;position:absolute;height:40px;padding:4px 8px;right:0;top:0;width:40px;&:disabled{background-image:",u(g(qo,{color:e.border})),";pointer-events:none;}&:focus{outline-color:",e.primary,';outline-width:1px;}&[aria-pressed="true"]{background-image:',u(g(tn,{color:e.primary})),";color:",e.primary,";}")}),ln=({ariaLabel:e,description:r,disabled:o,gridArea:a,keyExtractor:c,highlightedOption:s,id:d,label:b,labelExtractor:u,name:m,onSelect:x,options:f,orientation:v="horizontal",selectedOption:A,status:y,statusMessage:G})=>{zt('WJEC One RadioGroup: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',()=>void 0!==a,[a]),Le("WJEC-One RadioGroup: You must specify a keyExtractor if the options array contains non-primitive entry type",()=>!Z(f)&&!w(f)&&!c,[c]),zt("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",()=>void 0!==s,[s]);const X=S(d),W=n(void 0);l(()=>{if(A){const e=W.current.querySelectorAll('input[type="radio"]'),t=f.indexOf(A),r=H(A,t),o=Array.from(e).find(e=>e.value===r);o&&(o.checked=!0)}},[f,A]);const[{brand:k,colorPalette:B}]=j(),Y=i(()=>{switch(y){case"error":return{background:B.errorBackground,border:B.error};case"success":return{background:B.successBackground,border:B.success};case"warning":return{background:B.warningBackground,border:B.warning};default:return{}}},[k,y]),H=(e,t)=>I(e)?e.key:C(e,c,t),V=e=>()=>{p(x)&&x(e)},R=z(sn),F=i(()=>({"--background-color":Y.background,"--border-color":Y.border,"--flex-direction":"vertical"===v&&"column","--flex-gap":"vertical"===v&&"16px 8px","--margin-top":b&&"4px"}),[b,v,Y]);return g("label",{css:R.label,id:X,"data-disabled":o||void 0},b,g("fieldset",{css:R.container,ref:W,style:F},f.map((r,n)=>{const i=H(r,n),a=n===f.indexOf(A);return g(t.Fragment,{key:i},g("input",{css:R.radioButton,defaultChecked:a,disabled:o,id:`${X}_${n}`,name:m||X,onChange:V(r),type:"radio",value:i}),g("label",{"aria-label":e,css:R.radioButtonContainer,htmlFor:`${X}_${n}`},I(r)?r.label:h(r,u,n)))})),g(pr,null,r),g(wr,{status:y},G))};var cn={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;}"};const sn=({colorPalette:e})=>({container:s("--background-color:#FFFFFF;--border-color:",e.border,";--flex-direction:row;--flex-gap:8px 16px;--margin-top:0;--shadow-color:var(--background-color);--shadow-size:16px;",Ie,";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:s(Ce,';&[data-disabled="true"]{color:',e.border,";}"),radioButton:s(be.visiblyHidden," position:absolute;&:checked + label::before{--shadow-size:8px;background-color:",e.primary,";padding:6px;}&:disabled + label{--border-color:",e.border,";--shadow-color:",e.neutral,";color:",e.border,";cursor:not-allowed;&::before{background-color:",e.border,";}}&:focus + label::before{--border-color:",e.primary,";}"),radioButtonContainer:cn});var gn;function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},dn.apply(null,arguments)}var bn=r(function(t,r){return e.createElement("svg",dn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),gn||(gn=e.createElement("path",{d:"m6 9 6 6 6-6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}),un={name:"1ynvfur",styles:"font-size:12px;margin-top:4px;"},pn={name:"801txx",styles:"font-size:12px;font-weight:600;margin-top:4px;padding-left:24px;position:relative;"},In={name:"ezpkst",styles:"left:0;position:absolute;top:50%;transform:translateY(-50%);width:16px;"};const hn=({colorPalette:e})=>({description:un,icon:s("--offset-top:0;box-sizing:content-box;color:",e.neutralLight,';height:24px;left:0;padding:8px;pointer-events:none;position:absolute;top:var(--offset-top);width:24px;&[data-disabled="true"]{color:',e.border,";}"),label:s(Ie,";",Ce,';display:flex;flex-direction:column;position:relative;&[data-disabled="true"]{color:',e.border,";}"),select:s("--background-color:#FFFFFF;--border-color:",e.border,";--margin-top:0;--padding-left:8px;appearance:none;background:var(--background-color) ",u(g(bn,{color:e.neutralLight}))," calc(100% - 8px) center / 24px no-repeat;border:1px solid var(--border-color);border-radius:",be.borderRadius,";color:",e.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 var(--padding-left);width:100%;&:disabled{background-color:",e.neutral,";background-image:",u(g(bn,{color:e.border})),";border-color:",e.border,";color:",e.border,";cursor:not-allowed;}&:focus{border-color:",e.primary,";}&::placeholder{color:",e.neutralLight,";}& > option{&:disabled{color:",e.border,";}}"),status:pn,statusError:s("color:",e.error,";"),statusIcon:In,statusSuccess:s("color:",e.success,";"),statusWarning:s("color:",e.warning,";")}),Cn=(e,t,r)=>I(e)?e.key:C(e,t,((e,t)=>t.findIndex(t=>t===e||mn(t)&&t.options.includes(e)))(e,r))?.toString(),mn=e=>H(e)&&Object.hasOwn(e,"options")&&Object.hasOwn(e,"label")&&"string"==typeof e.label,xn=e=>{const{blankOption:t,description:r,disabled:o,disabledOptions:a,icon:c,id:s,label:d,name:b,onSelect:u,optionKeyExtractor:C,optionLabelExtractor:m,options:x,placeholder:f,selectedOption:v,status:A,statusMessage:y}=e;zt("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)",()=>{const e=new Set;return x.some(t=>!!(mn(t)&&Z(t.options)&&V(t.options))||(!!e.has(t)||(e.add(t),!1)))&&!C},[C,x]),Le("WJEC One Select: You must specify a keyExtractor if the options array contains non-primitive entry types",()=>x.some(e=>{if(mn(e)){const t=e.options,r=Z(t),o=w(t);return!(r||o||C)}return!(R(e)||I(e)||C)}),[C,x]);const G=n(void 0),[{brand:X,colorPalette:W}]=j(),k=n(void 0),B=S(s),Y=`${B}_description`,H=`${B}_status`,F=i(()=>v?Cn(v,C,x):"",[C,x,v]);l(()=>{k.current&&(k.current.value=F)},[F]),l(()=>{G.current?.style?.setProperty("--offset-top",`${k.current.offsetTop}px`)});const N=i(()=>{switch(A){case"error":return{background:W.errorBackground,border:W.error};case"success":return{background:W.successBackground,border:W.success};case"warning":return{background:W.warningBackground,border:W.warning};default:return{}}},[X,A]),J=(e,t)=>{const r=Cn(e,C,x);return g("option",{disabled:a?.includes(e),key:r,value:r},I(e)?e.label:h(e,m,t))},L="error"!==A&&"warning"!==A||!y?Y:H,O=z(hn),E=i(()=>({"--background-color":N.background,"--border-color":N.border,"--margin-top":d&&"4px","--padding-left":c&&"40px"}),[c,d,N]);return g("label",{css:O.label,htmlFor:B,"data-disabled":o},d,g("select",{"aria-describedby":L,css:O.select,defaultValue:F,disabled:o,id:B,name:b,onChange:({target:{value:e}})=>{const t=((e,t,r)=>{let o;return r.find(n=>{if(mn(n))o=n.options.find(o=>Cn(o,t,r)===e);else{const i=Cn(n,t,r);o=i===e?n:void 0}return void 0!==o}),o})(e,C,x);p(u)&&u(t)},ref:k,style:E},f&&g("option",{disabled:!0,hidden:!0,value:""},f),t&&g("option",{value:""}),x.map((e,t)=>mn(e)?g("optgroup",{key:e.key??e.label,label:e.label},e.options.map(e=>J(e,t))):J(e,t))),c&&g(c,{"aria-hidden":!0,css:O.icon,"data-testid":"icon","data-disabled":o,ref:G}),g(pr,{id:Y},r),g(wr,{id:H,status:A},y))},fn=e=>{let t=e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase();return t.startsWith("data-")||(t=`data-${t}`),t},vn=({ariaDescription:e,ariaLabel:t,disabled:r,height:n="auto",id:l,label:c,maxCharacters:d,maxHeight:b="100%",maxWidth:u="100%",onChange:I,placeholder:h,readonly:C,resizable:m=!1,showCount:x=!0,value:f="",width:v="100%"})=>{const[A,y]=o(f),G=lt(e);a(()=>{f!==A&&y(f)},[f]);const Z=z(An),w=((e,{excludeIfFalse:t,excludeIfFalsy:r,excludeIfNull:o=!0,excludeIfUndefined:n=!0}={})=>i(()=>Object.entries(e).reduce((e,[i,a])=>t&&!1===a||r&&!a||o&&null===a||n&&void 0===a?e:{...e,[fn(i)]:String(a)},{}),[e]))({"data-current-value-length":A?.length},{excludeIfFalse:!0});return g("label",Je({"aria-label":t},w,{css:s([Z.label,x&&s("&::after{content:attr(data-current-value-length) '",void 0!==d&&`/${d}`,"';}"),{maxWidth:u,width:v}]),"data-max-count":d}),c,g("textarea",Je({id:l,css:s([be.scrollbar,Z.textarea,{height:n,maxHeight:b,resize:m?"both":"none"}]),value:A,placeholder:h,onChange:({target:{value:e}})=>{y(e),p(I)&&I(e)},readOnly:C,disabled:r,maxLength:d},C?{tabIndex:-1}:{},G)))},An=({colorPalette:e})=>({label:s(Ie,";display:inline-flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:11px;line-height:20px;&::after{color:",e.fontLight,";display:inline-block;font-size:12px;font-family:'Montserrat',sans-serif;margin:5px 5px 0 0;text-align:right;}"),textarea:s("border:1px solid ",e.border,";border-radius:",be.borderRadius,";color:",e.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:",e.neutral,";cursor:not-allowed;}&:focus{border-color:",e.primary,";}&:not(:read-only){transition:border-color 0.05s linear;}")});var yn;function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Gn.apply(null,arguments)}var Zn=r(function(t,r){return e.createElement("svg",Gn({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),yn||(yn=e.createElement("path",{d:"m7.5 13.475-2.892-2.892a.83.83 0 1 0-1.175 1.175l3.484 3.484a.83.83 0 0 0 1.175 0l8.816-8.817a.83.83 0 1 0-1.175-1.175L7.5 13.475Z",fill:"currentColor"})))});const wn=e=>{const t=i(()=>window.matchMedia(e),[e]),[r,n]=o(()=>t?.matches);return a(()=>{const e=e=>n(e.matches);return t?.addEventListener("change",e),()=>{t?.removeEventListener("change",e)}},[t]),r},Xn=e=>{a(()=>e,[])},Wn=({ariaLabel:e,disabled:t,id:r,label:o,on:i=!1,onChange:a,size:c="default",value:s})=>{const d=n(void 0),b=S(r),u=wn("(prefers-reduced-motion)");l(()=>{d.current?.setAttribute("data-state",i?"on":"off")},[]),((e,t)=>{const r=n(!0);l(()=>{let t;return r.current?r.current=!1:t=e(),t},t),Xn(()=>{r.current=!0})})(()=>{const e="on"===d.current?.getAttribute("data-state");i!==e&&(d.current?.setAttribute("data-state",i?"on":"off"),u||I.play(void 0,{direction:e?"reverse":"normal"}))},[i,u]);const I=Tt(d,[{height:"calc(var(--toggle-dimensions) - 2px)",left:0,margin:"calc(var(--toggle-margin) + 1px)",width:"calc(var(--toggle-dimensions) - 2px)"},{height:"var(--toggle-dimensions)",margin:"var(--toggle-margin)",marginLeft:"calc(var(--toggle-margin) + 1px)",width:"calc(var(--track-width) - calc(var(--toggle-margin) * 2))"},{left:"unset",height:"var(--toggle-dimensions)",margin:"var(--toggle-margin)",right:"calc(100% - var(--track-width))",width:"var(--toggle-dimensions)"}],{duration:200,easing:"ease-in-out",iterations:1,pseudoElement:"::after"}),h=()=>{const e="true"===d.current?.getAttribute("aria-pressed");d.current?.setAttribute("aria-pressed",(!e).toString()),d.current?.setAttribute("data-state",e?"off":"on"),u||I.play(void 0,{direction:e?"reverse":"normal"}),p(a)&&a(!e)},C=z(kn),{buttonProps:m}=E({"aria-label":e,"aria-pressed":i,id:b,isDisabled:t,onPress:h},d);return g("div",{css:C.container},g("label",{css:C.label,htmlFor:b,onClickCapture:e=>{t||(e.preventDefault(),h())}},o),g("button",Je({},m,{css:C.toggleButton,ref:d,"data-size":c}),s))},kn=({colorPalette:e})=>({container:s(Ie,";display:inline-flex;flex-direction:column;font-size:16px;gap:4px 8px;&:has(:disabled){& button{cursor:not-allowed;}& label{color:",e.border,';cursor:not-allowed;}}&:has([data-size="small"]){font-size:10px;gap:4px;}'),label:s(Ce,";cursor:pointer;font-size:inherit;"),toggleButton:s("--highlight-size:30px;--toggle-offset:0;--toggle-dimensions:18px;--track-height:24px;--track-width:48px;--toggle-margin:calc(calc(var(--track-height) - var(--toggle-dimensions)) / 2);align-items:center;background-color:transparent;border:0;border-radius:calc(var(--track-height) / 2);color:",e.neutralDark,";cursor:pointer;display:flex;font-family:'Montserrat',sans-serif;font-size:inherit;font-weight:400;gap:inherit;line-height:var(--track-height);outline-color:",e.primary,';outline-offset:3px;padding:0;position:relative;text-align:left;width:max-content;&[data-size="small"]{--highlight-size:20px;--toggle-dimensions:12px;--track-height:16px;--track-width:32px;}&:not(:disabled):active{--shadow-color:',F(e.neutralLight,.3),';&[aria-pressed="true"]{--shadow-color:',F(e.primary,.3),";}&::after{box-shadow:0 0 0 calc(calc(var(--highlight-size) - var(--toggle-dimensions)) / 2) var(--shadow-color);}}&:disabled{color:",e.border,";&::after{background-color:",e.border,';}}&:not(:disabled):hover{&::after{background-color:#9DAAAF;}&[aria-pressed="true"]::after{background-color:',e.primaryDark,";}}&:after{background-color:",e.neutralLight,";border-radius:12px;content:'';display:block;height:calc(var(--toggle-dimensions) - 2px);left:0;margin:calc(var(--toggle-margin) + 1px);position:absolute;width:calc(var(--toggle-dimensions) - 2px);}&:before{background-color:#FFFFFF;border:1px solid ",e.border,";border-radius:calc(var(--track-height) / 2);content:'';display:block;flex-shrink:0;height:var(--track-height);position:relative;width:var(--track-width);}&[aria-pressed=\"true\"]{--icon-size:calc(var(--toggle-dimensions) - 2px);--toggle-offset:calc(var(--track-width) / 2);&::after{background-color:",e.primary,";background-image:",u(g(Zn,{color:"#fff"})),";background-position:center right calc(calc(var(--toggle-dimensions) - var(--icon-size)) / 2);background-repeat:no-repeat;background-size:var(--icon-size);height:var(--toggle-dimensions);left:unset;margin:var(--toggle-margin);right:calc(100% - var(--track-width));width:var(--toggle-dimensions);}&::before{background-color:",e.primaryLightest,";border-color:",e.primary,";}&:disabled{&::after{background-color:",e.border,";}&::before{background-color:",e.offWhite,";border-color:",e.border,";}}}")});var Bn;function Yn(){return Yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Yn.apply(null,arguments)}var Hn=r(function(t,r){return e.createElement("svg",Yn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Bn||(Bn=e.createElement("path",{d:"M12 12h.005M17 12h.005M7 12h.005M5.2 7h13.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 8.52 22 9.08 22 10.2v3.6c0 1.12 0 1.68-.218 2.108a2 2 0 0 1-.874.874C20.48 17 19.92 17 18.8 17H5.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C2 15.48 2 14.92 2 13.8v-3.6c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C3.52 7 4.08 7 5.2 7Zm7.05 5a.25.25 0 1 1-.5 0 .25.25 0 0 1 .5 0Zm5 0a.25.25 0 1 1-.5 0 .25.25 0 0 1 .5 0Zm-10 0a.25.25 0 1 1-.5 0 .25.25 0 0 1 .5 0Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))});const Vn=({description:e,disabled:t,id:r,label:o,maxLength:i=6,onChange:c,placeholder:s="e.g. 123456",showIcon:d=!0,status:b,statusMessage:u})=>{const I=n(void 0),h=n(void 0),C=n(0),m=n(""),x=S(r),f=`${x}_description`,v=`${x}_status`;a(()=>{const e=()=>{document.activeElement===h.current&&(C.current=h.current.selectionEnd)};return document.addEventListener("selectionchange",e),()=>{document.removeEventListener("selectionchange",e)}},[]),l(()=>{I.current?.style?.setProperty("--offset-top",`${h.current.offsetTop}px`)});const A=z(Rn),y="error"!==b&&"warning"!==b||!u?f:v;return g("label",{css:A.label,"data-disabled":t},o,d&&g(Hn,{"aria-hidden":!0,css:A.icon,"data-disabled":t,ref:I}),g("input",{"aria-describedby":y,autoComplete:"one-time-code",css:A.input,disabled:t,id:x,inputMode:"numeric",maxLength:i,onChange:({target:e})=>{const{value:t}=e;p(c)&&c(t)},onInput:()=>{if(/[^0-9]/g.test(h.current.value)){const e=h.current.value.replace(/[^0-9]/g,""),t=e.length-m.current.length,r=C.current+t;h.current.value=e,h.current.setSelectionRange(r,r)}C.current=h.current.selectionEnd,m.current=h.current.value},placeholder:s,ref:h,type:"text","data-status":b}),g(pr,{id:f},e),g(wr,{id:v,status:b},u))},Rn=({colorPalette:e})=>({icon:s("--offset-top:0;color:",e.neutralLight,';height:40px;left:0;padding:8px;pointer-events:none;position:absolute;top:var(--offset-top);width:40px;&[data-disabled="true"]{color:',e.border,";}& + input{padding-left:40px;}"),input:s(he,";background-color:#FFFFFF;border:1px solid ",e.border,";border-radius:",be.borderRadius,";font-family:inherit;font-feature-settings:'tnum';font-size:16px;height:40px;line-height:24px;max-width:100%;outline:none;padding:4px 8px;width:100%;&:disabled{background-color:",e.neutral,";border-color:",e.border,";color:",e.border,";cursor:not-allowed;}&:focus{border-color:",e.primary,";}&::placeholder{color:",e.neutralLight,';}&:not(:placeholder-shown){letter-spacing:8px;}&[data-status="error"]{background-color:',e.errorBackground,";border-color:",e.error,';}&[data-status="success"]{background-color:',e.successBackground,";border-color:",e.success,';}&[data-status="warning"]{background-color:',e.warningBackground,";border-color:",e.warning,";}"),label:s(Ie,";",Ce,";display:inline-flex;flex-direction:column;font-family:'Montserrat',sans-serif;gap:4px;position:relative;&[data-disabled=\"true\"]{color:",e.border,";}")});var Fn;function Nn(){return Nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Nn.apply(null,arguments)}var Jn=r(function(t,r){return e.createElement("svg",Nn({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Fn||(Fn=e.createElement("path",{d:"M15.25 4.758a.83.83 0 0 0-1.175 0L10 8.825 5.925 4.75A.83.83 0 1 0 4.75 5.925L8.825 10 4.75 14.075a.83.83 0 1 0 1.175 1.175L10 11.175l4.075 4.075a.83.83 0 1 0 1.175-1.175L11.175 10l4.075-4.075a.835.835 0 0 0 0-1.167Z",fill:"currentColor"})))});const Ln=({ariaDescription:e,ariaCloseLabel:t,borderColor:r,children:n,icon:l=Br,iconColor:c,id:d,onClose:b=null,open:u=null,showCloseIcon:p=!1,title:I,titleColor:h})=>{const[{brand:C,colorPalette:m}]=j(),x=lt(e),[f,v]=o(!0),A=z(En);a(()=>{null!=u&&v(u)},[u]);const y=i(()=>r||m.secondary,[C,r]),G=i(()=>c||m.secondaryDark,[C,c]),Z=i(()=>h||m.secondaryDark,[C,h]);return f?g("div",Je({css:s([A.infoCardMain,{"--border-color":y,"--icon-color":G,"--title-color":Z,padding:p||b?"16px 36px 16px 16px":"16px"}],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1Q2lCIiwiZmlsZSI6ImluZGV4LmpzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyB1c2VFZmZlY3QsIHVzZU1lbW8sIHVzZVN0YXRlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XG5pbXBvcnQgU3R5bGVQYWxldHRlIGZyb20gXCIuLi8uLi8uLi9TdHlsZVBhbGV0dGVcIjtcbmltcG9ydCB7IHVzZURlc2NyaXB0aW9uIH0gZnJvbSAnQHJlYWN0LWFyaWEvdXRpbHMnO1xuLy8gQHRyYW5zZm9ybS1wYXRoIC4uLy4uLy4uL2Fzc2V0cy9pY29ucy9kdW9jb2xvdXJfYWxlcnQtY2lyY2xlLnN2Z1xuaW1wb3J0IENpcmN1bGFyV2FybmluZyBmcm9tIFwiLi4vLi4vLi4vYXNzZXRzL2ljb25zL2R1b2NvbG91cl9hbGVydC1jaXJjbGUuc3ZnXCI7XG5pbXBvcnQgeyB1c2VXamVjT25lVGhlbWVTdHlsZXMsIHVzZVdqZWNPbmVUaGVtZSB9IGZyb20gJ3dqZWMtb25lL3RoZW1lJztcbmltcG9ydCBDbG9zZUljb24gZnJvbSAnc3JjL2Fzc2V0cy9pY29ucy9jbG9zZS5zdmcnO1xuZXhwb3J0IGNvbnN0IEluZm9ybWF0aW9uQ2FyZCA9ICh7IGFyaWFEZXNjcmlwdGlvbiwgYXJpYUNsb3NlTGFiZWwsIFxuLy8gYXV0b0Nsb3NlID0gbnVsbCxcbmJvcmRlckNvbG9yOiBib3JkZXJDb2xvclByb3AsIGNoaWxkcmVuLCBpY29uOiBJY29uID0gQ2lyY3VsYXJXYXJuaW5nLCBpY29uQ29sb3I6IGljb25Db2xvclByb3AsIGlkLCBvbkNsb3NlID0gbnVsbCwgb3BlbiA9IG51bGwsIHNob3dDbG9zZUljb24gPSBmYWxzZSwgdGl0bGUsIHRpdGxlQ29sb3I6IHRpdGxlQ29sb3JQcm9wIH0pID0+IHtcbiAgICAvLyBjb25zdCBbaGFzQXV0b0Nsb3NlZCwgc2V0SGFzQXV0b0Nsb3NlZF0gPSB1c2VTdGF0ZShmYWxzZSk7XG4gICAgY29uc3QgW3sgYnJhbmQsIGNvbG9yUGFsZXR0ZSB9XSA9IHVzZVdqZWNPbmVUaGVtZSgpO1xuICAgIGNvbnN0IGFyaWFQcm9wcyA9IHVzZURlc2NyaXB0aW9uKGFyaWFEZXNjcmlwdGlvbik7XG4gICAgY29uc3QgW2lzU2hvd2luZywgc2V0SXNTaG93aW5nXSA9IHVzZVN0YXRlKHRydWUpO1xuICAgIGNvbnN0IHN0eWxlcyA9IHVzZVdqZWNPbmVUaGVtZVN0eWxlcyhnZXRTdHlsZXMpO1xuICAgIHVzZUVmZmVjdCgoKSA9PiB7XG4gICAgICAgIGlmIChvcGVuICE9PSBudWxsICYmIG9wZW4gIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgc2V0SXNTaG93aW5nKG9wZW4pO1xuICAgICAgICB9XG4gICAgfSwgW29wZW5dKTtcbiAgICAvLyB1c2VFZmZlY3QoKCkgPT4ge1xuICAgIC8vICAgbGV0IHRpbWVyOiBSZXR1cm5UeXBlPHR5cGVvZiBzZXRUaW1lb3V0PjtcbiAgICAvLyAgIGlmIChhdXRvQ2xvc2UpIHtcbiAgICAvLyAgICAgdGltZXIgPSBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAvLyAgICAgICBzZXRIYXNBdXRvQ2xvc2VkKHRydWUpO1xuICAgIC8vICAgICAgIGlmIChvcGVuKSB7XG4gICAgLy8gICAgICAgICBvbkNsb3NlPy4oKTtcbiAgICAvLyAgICAgICB9XG4gICAgLy8gICAgIH0sIGF1dG9DbG9zZSk7XG4gICAgLy8gICB9XG4gICAgLy8gICByZXR1cm4gKCkgPT4gY2xlYXJUaW1lb3V0KHRpbWVyKTtcbiAgICAvLyB9LCBbXSk7XG4gICAgY29uc3QgYm9yZGVyQ29sb3IgPSB1c2VNZW1vKCgpID0+ICgoYm9yZGVyQ29sb3JQcm9wIHx8IGNvbG9yUGFsZXR0ZS5zZWNvbmRhcnkpKSwgW2JyYW5kLCBib3JkZXJDb2xvclByb3BdKTtcbiAgICBjb25zdCBpY29uQ29sb3IgPSB1c2VNZW1vKCgpID0+ICgoaWNvbkNvbG9yUHJvcCB8fCBjb2xvclBhbGV0dGUuc2Vjb25kYXJ5RGFyaykpLCBbYnJhbmQsIGljb25Db2xvclByb3BdKTtcbiAgICBjb25zdCB0aXRsZUNvbG9yID0gdXNlTWVtbygoKSA9PiAoKHRpdGxlQ29sb3JQcm9wIHx8IGNvbG9yUGFsZXR0ZS5zZWNvbmRhcnlEYXJrKSksIFticmFuZCwgdGl0bGVDb2xvclByb3BdKTtcbiAgICBpZiAoIWlzU2hvd2luZykge1xuICAgICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG4gICAgcmV0dXJuICg8ZGl2IGNzcz17W3N0eWxlcy5pbmZvQ2FyZE1haW4sIHtcbiAgICAgICAgICAgICAgICAnLS1ib3JkZXItY29sb3InOiBib3JkZXJDb2xvcixcbiAgICAgICAgICAgICAgICAnLS1pY29uLWNvbG9yJzogaWNvbkNvbG9yLFxuICAgICAgICAgICAgICAgICctLXRpdGxlLWNvbG9yJzogdGl0bGVDb2xvcixcbiAgICAgICAgICAgICAgICBwYWRkaW5nOiAoc2hvd0Nsb3NlSWNvbiB8fCBvbkNsb3NlKSA/ICcxNnB4IDM2cHggMTZweCAxNnB4JyA6ICcxNnB4J1xuICAgICAgICAgICAgfV19IGlkPXtpZH0gey4uLmFyaWFQcm9wc30+XHJcbiAgICAgIDxJY29uIGNzcz17c3R5bGVzLmljb259IGFyaWEtaGlkZGVuLz5cclxuICAgICAgPGRpdj5cclxuICAgICAgICB7dGl0bGUgJiYgPGgzIGNzcz17c3R5bGVzLnRpdGxlfT57dGl0bGV9PC9oMz59XHJcbiAgICAgICAgPHAgY3NzPXtzdHlsZXMubWVzc2FnZX0+e2NoaWxkcmVufTwvcD5cclxuICAgICAgPC9kaXY+XHJcbiAgICAgIHsoc2hvd0Nsb3NlSWNvbiB8fCBvbkNsb3NlKSAmJiAoPENsb3NlSWNvbiBhcmlhLWxhYmVsPXthcmlhQ2xvc2VMYWJlbH0gY3NzPXtzdHlsZXMuY2xvc2V9IGlkPVwiY2xvc2VcIiBvbkNsaWNrPXsoKSA9PiB7XG4gICAgICAgICAgICAgICAgc2V0SXNTaG93aW5nKGZhbHNlKTtcbiAgICAgICAgICAgICAgICBvbkNsb3NlPy4oKTtcbiAgICAgICAgICAgIH19Lz4pfVxyXG4gICAgPC9kaXY+KTtcbn07XG5jb25zdCBnZXRTdHlsZXMgPSAoeyBjb2xvclBhbGV0dGUgfSkgPT4gKHtcbiAgICBjbG9zZTogY3NzIGBcclxuICAgIGN1cnNvcjogcG9pbnRlcjtcclxuICAgIGhlaWdodDogMzZweDtcclxuICAgIG91dGxpbmU6IG5vbmU7XHJcbiAgICBwYWRkaW5nOiAxMHB4O1xyXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xyXG4gICAgcmlnaHQ6IDA7XHJcbiAgICB0b3A6IDA7XHJcbiAgICB3aWR0aDogMzZweDtcclxuICBgLFxuICAgIGljb246IGNzcyBgXHJcbiAgICBjb2xvcjogdmFyKC0taWNvbi1jb2xvcik7XHJcbiAgICBmbGV4LXNocmluazogMDtcclxuICAgIGhlaWdodDogMjRweDtcclxuICAgIHdpZHRoOiAyNHB4O1xyXG4gIGAsXG4gICAgaW5mb0NhcmRNYWluOiBjc3MgYFxyXG4gICAgLS1ib3JkZXItY29sb3I6ICR7Y29sb3JQYWxldHRlLnNlY29uZGFyeX07XHJcbiAgICAtLWljb24tY29sb3I6ICR7Y29sb3JQYWxldHRlLnNlY29uZGFyeURhcmt9O1xyXG4gICAgLS10aXRsZS1jb2xvcjogJHtjb2xvclBhbGV0dGUuc2Vjb25kYXJ5RGFya307XHJcblxyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZmZmZjtcclxuICAgIGJvcmRlcjogMXB4IHNvbGlkIHZhcigtLWJvcmRlci1jb2xvcik7XHJcbiAgICBib3JkZXItcmFkaXVzOiAke1N0eWxlUGFsZXR0ZS5ib3JkZXJSYWRpdXN9O1xyXG4gICAgYm94LXNoYWRvdzogJHtTdHlsZVBhbGV0dGUuZHJvcFNoYWRvd307XHJcbiAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgZm9udC1mYW1pbHk6ICdNb250c2VycmF0Jywgc2Fucy1zZXJpZjtcclxuICAgIGZvbnQtc2l6ZTogMTZweDtcclxuICAgIGdhcDogMTZweDtcclxuICAgIGxpbmUtaGVpZ2h0OiAyNHB4O1xyXG4gICAgcGFkZGluZzogMTZweDtcclxuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxuICAgIGAsXG4gICAgbWVzc2FnZTogY3NzIGBcclxuICAgIG1hcmdpbjogMDtcclxuICBgLFxuICAgIHRpdGxlOiBjc3MgYFxyXG4gICAgY29sb3I6IHZhcigtLXRpdGxlLWNvbG9yKTtcclxuICAgIGZvbnQtd2VpZ2h0OiA2MDA7XHJcbiAgICBtYXJnaW46IDAgMCA0cHggMDtcclxuICAgIG92ZXJmbG93OiBoaWRkZW47XHJcbiAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcclxuICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7XHJcbiAgICBgXG59KTtcbiJdfQ== */"),id:d},x),g(l,{css:A.icon,"aria-hidden":!0}),g("div",null,I&&g("h3",{css:A.title},I),g("p",{css:A.message},n)),(p||b)&&g(Jn,{"aria-label":t,css:A.close,id:"close",onClick:()=>{v(!1),b?.()}})):null};var zn={name:"oofjv5",styles:"cursor:pointer;height:36px;outline:none;padding:10px;position:absolute;right:0;top:0;width:36px;"},jn={name:"1i9s3a8",styles:"color:var(--icon-color);flex-shrink:0;height:24px;width:24px;"},On={name:"1uk1gs8",styles:"margin:0;"},Sn={name:"172fn9d",styles:"color:var(--title-color);font-weight:600;margin:0 0 4px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"};const En=({colorPalette:e})=>({close:zn,icon:jn,infoCardMain:s("--border-color:",e.secondary,";--icon-color:",e.secondaryDark,";--title-color:",e.secondaryDark,";background-color:#ffffff;border:1px solid var(--border-color);border-radius:",be.borderRadius,";box-shadow:",be.dropShadow,";display:flex;font-family:'Montserrat',sans-serif;font-size:16px;gap:16px;line-height:24px;padding:16px;position:relative;"),message:On,title:Sn}),Dn=e=>{const[{colorPalette:t}]=j();return g(Ln,Je({},e,{borderColor:t.error,icon:Nr,iconColor:t.error,titleColor:t.errorDark}))},Mn=e=>{const[{colorPalette:t}]=j();return g(Ln,Je({},e,{borderColor:t.success,icon:Rr,iconColor:t.success,titleColor:t.successDark}))},Tn=e=>{const[{colorPalette:t}]=j();return g(Ln,Je({},e,{borderColor:t.warning,icon:Nr,iconColor:t.warning,titleColor:t.warningDark}))};var Pn,Qn,Un,Kn,$n;function _n(){return _n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},_n.apply(null,arguments)}var qn,ei,ti,ri,oi,ni=r(function(t,r){return e.createElement("svg",_n({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),Pn||(Pn=e.createElement("path",{d:"M27.565 14.13c-.134-10.058-10.33-8.59-11.991-8.283a.203.203 0 0 0-.156.262l2.16 6.588c.1.303.417.479.726.4 5.147-1.298 8.369.613 9.102 1.118a.101.101 0 0 0 .16-.085",fill:"#BDBCBC"})),Qn||(Qn=e.createElement("path",{d:"M27.858 14.13C27.992 4.072 38.19 5.54 39.85 5.848c.121.022.194.145.123.363l-2.22 6.77c-.033.102-.248.218-.456.163-5.25-1.388-8.537.562-9.279 1.072a.101.101 0 0 1-.159-.085",fill:"#E65000"})),Un||(Un=e.createElement("path",{d:"M28.851 8.37c2.36-6.255 9.127-6.033 10.522-5.918.13.01.216.14.175.265l-.692 2.11a.101.101 0 0 1-.107.069c-6.007-.667-8.716 2.088-9.72 3.566-.067.1-.22.02-.178-.092",fill:"#69B3E6"})),Kn||(Kn=e.createElement("path",{d:"m38.78.266-.415 1.267a.102.102 0 0 1-.096.07c-4.79.048-7.351 2.563-8.428 4.005-.074.099-.227.005-.172-.105.923-1.859 3.414-5.44 8.915-5.503a.203.203 0 0 1 .196.266Z",fill:"#FABD34"})),$n||($n=e.createElement("path",{d:"M4.325 40C1.485 40 0 37.687 0 35.4c0-2.27 1.486-4.57 4.325-4.57 2.15 0 3.383 1.331 3.435 1.388a.716.716 0 0 1-1.057.966c-.042-.045-.888-.922-2.378-.922-1.988 0-2.893 1.627-2.893 3.139 0 1.526.905 3.167 2.893 3.167 1.494 0 2.36-.93 2.369-.94a.716.716 0 0 1 1.071.95C7.714 38.636 6.48 40 4.325 40ZM32.96 40c-2.84 0-4.325-2.313-4.325-4.6 0-2.27 1.485-4.57 4.324-4.57 2.15 0 3.384 1.331 3.435 1.388a.716.716 0 0 1-1.056.966c-.042-.045-.888-.922-2.379-.922-1.988 0-2.893 1.627-2.893 3.139 0 1.526.905 3.167 2.893 3.167 1.495 0 2.361-.93 2.37-.94a.716.716 0 0 1 1.07.95c-.05.058-1.284 1.422-3.44 1.422ZM14.142 28.887a.715.715 0 0 1-.409-1.304c1.24-.86 1.345-2.47 1.332-3.122v-7.402a.716.716 0 0 1 1.432 0v7.354c.016.904-.14 3.093-1.948 4.346a.71.71 0 0 1-.407.128ZM33.002 25.513c-2.839 0-4.325-2.313-4.325-4.599 0-2.271 1.486-4.571 4.325-4.571 2.15 0 3.384 1.331 3.435 1.388a.716.716 0 0 1-1.056.966c-.043-.046-.89-.922-2.379-.922-1.987 0-2.893 1.627-2.893 3.14 0 1.525.906 3.167 2.893 3.167 1.492 0 2.338-.906 2.373-.945a.718.718 0 0 1 1.01-.05c.291.263.319.71.058 1.004-.052.058-1.286 1.422-3.44 1.422M11.539 16.34a.716.716 0 0 0-.716.716v5.207c0 1.007-.82 1.826-1.826 1.826h-.053a1.828 1.828 0 0 1-1.826-1.826v-5.207a.716.716 0 1 0-1.432 0v5.207c0 1.007-.819 1.826-1.825 1.826h-.054a1.828 1.828 0 0 1-1.825-1.826v-5.207a.716.716 0 0 0-1.432 0v5.207a3.261 3.261 0 0 0 3.257 3.257h.054c1.027 0 1.944-.48 2.541-1.225a3.251 3.251 0 0 0 2.542 1.225h.053a3.261 3.261 0 0 0 3.258-3.257v-5.207a.716.716 0 0 0-.716-.716ZM13.314 30.822c-.891 0-1.605.262-2.154.663v-3.314a.715.715 0 1 0-1.43 0v9.72a.71.71 0 0 0 .082.33c.038.072.95 1.76 3.502 1.76 1.32 0 2.44-.508 3.238-1.466.696-.835 1.08-1.946 1.08-3.126 0-1.064-.35-2.14-.957-2.953-.55-.736-1.581-1.614-3.361-1.614Zm0 7.729c-.905 0-1.49-.301-1.817-.551a.866.866 0 0 1-.337-.693v-3.038c0-.659.526-2.017 2.154-2.017 2.284 0 2.888 2.052 2.888 3.137 0 1.523-.904 3.162-2.888 3.162M22.885 16.347c-1.774 0-2.773.87-3.297 1.598-.78 1.082-.896 2.325-.896 2.97 0 1.18.384 2.29 1.08 3.126.799.958 1.918 1.465 3.238 1.465 2.152 0 3.384-1.362 3.435-1.42a.714.714 0 0 0-1.07-.948c-.008.01-.873.938-2.365.938-1.669 0-2.574-1.159-2.82-2.434h5.98c.396 0 .716-.32.716-.714 0-2.28-1.238-4.58-4-4.58Zm-2.716 3.866c.33-2.31 2.294-2.436 2.716-2.436 1.835 0 2.364 1.476 2.514 2.436h-5.23ZM26.877 32.586c-.038-.072-.95-1.759-3.502-1.759-2.834 0-4.318 2.297-4.318 4.567 0 1.18.384 2.29 1.08 3.126.799.959 1.918 1.465 3.238 1.465l.034-.001c.876-.007 1.58-.268 2.122-.666a.715.715 0 0 0 1.427-.047v-6.353a.719.719 0 0 0-.081-.332Zm-1.348 3.953c0 .658-.527 2.017-2.154 2.017-2.285 0-2.888-2.052-2.888-3.137 0-1.523.904-3.162 2.888-3.162.905 0 1.489.3 1.817.55a.868.868 0 0 1 .337.694v3.038Z",fill:"#009FE3"})))});function ii(){return ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},ii.apply(null,arguments)}var ai=r(function(t,r){return e.createElement("svg",ii({viewBox:"0 0 298 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),qn||(qn=e.createElement("path",{d:"M235.171 71.957c-.671-50.518-51.708-43.14-60.018-41.605a1.02 1.02 0 0 0-.781 1.318l10.817 33.09a3.034 3.034 0 0 0 3.629 2.007c25.761-6.52 41.889 3.08 45.557 5.613.339.234.8-.01.796-.423Z",fill:"#BDBCBC"})),ei||(ei=e.createElement("path",{d:"M236.637 71.957c.671-50.518 51.709-43.14 60.019-41.605.603.112.971.732.613 1.826l-11.109 34c-.17.515-1.242 1.095-2.283.818-26.278-6.969-42.732 2.822-46.443 5.384a.508.508 0 0 1-.797-.423Z",fill:"#F1511B"})),ti||(ti=e.createElement("path",{d:"M241.607 43.024C253.419 11.61 287.286 12.723 294.27 13.3c.654.055 1.082.708.879 1.332l-3.463 10.597a.507.507 0 0 1-.54.346c-30.062-3.348-43.624 10.49-48.645 17.914-.336.497-1.106.097-.894-.466Z",fill:"#69B3E6"})),ri||(ri=e.createElement("path",{d:"m291.304 2.325-2.08 6.363a.51.51 0 0 1-.477.35c-23.975.245-36.795 12.875-42.185 20.115-.369.496-1.134.025-.859-.527 4.619-9.335 17.083-27.32 44.621-27.637.696-.01 1.197.671.98 1.336Z",fill:"#FABD34"})),oi||(oi=e.createElement("path",{d:"M223.864 112.447c0 3.308-2.635 10.135-10.779 10.135-11.435 0-14.454-10.307-14.454-15.757 0-7.65 4.522-15.883 14.454-15.883 4.528 0 7.452 1.514 9.095 2.766 1.078.821 1.684 2.124 1.684 3.481v15.258Zm-10.779-28.685c-14.186 0-21.61 11.54-21.61 22.937 0 5.93 1.919 11.507 5.401 15.701 3.999 4.814 9.602 7.36 16.209 7.36.058 0 .113-.007.173-.01 4.383-.033 7.905-1.343 10.618-3.343a3.581 3.581 0 0 0 3.565 3.353 3.583 3.583 0 0 0 3.577-3.589V94.262c0-.579-.142-1.151-.408-1.665-.187-.359-4.753-8.835-17.525-8.835ZM7.8 103.21c1.655-11.596 11.482-12.232 13.596-12.232 9.184 0 11.83 7.41 12.582 12.232H7.8Zm13.596-19.412c-8.88 0-13.878 4.365-16.504 8.023C.992 97.256.41 103.5.41 106.736c0 5.929 1.919 11.505 5.4 15.699 4.001 4.815 9.604 7.361 16.21 7.361 10.77 0 16.938-6.842 17.195-7.131a3.597 3.597 0 0 0-.306-5.066 3.565 3.565 0 0 0-5.046.306c-.043.048-4.376 4.713-11.843 4.713-8.353 0-12.883-5.825-14.11-12.227h29.932a3.58 3.58 0 0 0 3.577-3.589c0-11.449-6.192-23.004-20.022-23.004Zm237.237 19.499a48.905 48.905 0 0 1-1.565-.412c-7.068-2.034-9.221-3.672-9.221-7.011 0-3.09 3.077-4.933 8.237-4.933 4.615 0 9.241 2.6 9.294 2.633a3.574 3.574 0 0 0 4.877-1.33 3.596 3.596 0 0 0-1.319-4.9c-.255-.146-6.29-3.583-12.852-3.583-7.664 0-15.392 3.747-15.392 12.113 0 9.765 9.368 12.463 14.404 13.911.539.156 1.14.307 1.778.471 5.852 1.488 8.462 2.819 8.462 6.78 0 1.513-.447 2.623-1.411 3.483-2.062 1.846-6.037 2.321-9.065 1.977-5.52-.634-9.229-3.095-9.918-3.582-1.506-1.07-3.628-.844-4.828.563a3.598 3.598 0 0 0 .757 5.34c1.391.977 6.202 4.012 13.178 4.812.834.093 1.726.149 2.653.149 4.054 0 8.759-1.013 11.985-3.902 2.487-2.226 3.804-5.284 3.804-8.84 0-10.216-9.362-12.595-13.858-13.739ZM131.276 83.762a3.585 3.585 0 0 0-3.577 3.591v24.193c0 6.084-4.934 11.036-10.998 11.036-6.067 0-11.001-4.952-11.001-11.036V87.353a3.585 3.585 0 0 0-3.576-3.591 3.585 3.585 0 0 0-3.578 3.591v24.193c0 10.042 8.144 18.214 18.155 18.214 10.01 0 18.152-8.172 18.152-18.214V87.353a3.584 3.584 0 0 0-3.577-3.591Zm44.481 28.699c0 3.306-2.635 10.136-10.777 10.136-11.438 0-14.46-10.31-14.46-15.759 0-7.652 4.526-15.881 14.46-15.881 4.528 0 7.452 1.512 9.092 2.765 1.079.82 1.685 2.123 1.685 3.48v15.259ZM164.98 83.776c-6.607 0-12.211 2.546-16.21 7.362-3.484 4.192-5.403 9.771-5.403 15.7 0 5.344 1.744 10.75 4.787 14.829 2.758 3.695 7.916 8.107 16.826 8.107 4.456 0 8.031-1.315 10.777-3.334v16.65a3.583 3.583 0 0 0 3.578 3.589 3.583 3.583 0 0 0 3.576-3.589V94.275c0-.58-.139-1.15-.407-1.665-.188-.358-4.754-8.834-17.524-8.834Zm-83.114 32.558c0 1.358-.606 2.659-1.687 3.48-1.641 1.254-4.563 2.768-9.093 2.768-9.932 0-14.457-8.232-14.457-15.883 0-5.448 3.022-15.757 14.458-15.757 8.144 0 10.779 6.826 10.779 10.133v15.259Zm3.576-49.477a3.586 3.586 0 0 0-3.576 3.59v16.65c-2.75-2.02-6.321-3.335-10.78-3.335-8.909 0-14.068 4.411-16.826 8.11-3.04 4.079-4.784 9.483-4.784 14.827 0 5.93 1.917 11.507 5.401 15.701 3.997 4.814 9.604 7.36 16.21 7.36 12.772 0 17.338-8.473 17.525-8.833a3.6 3.6 0 0 0 .407-1.664V70.448a3.585 3.585 0 0 0-3.577-3.591ZM9.443 147.001c1.86 0 3.02-1.045 3.02-2.511v-.039c0-1.648-1.179-2.509-3.02-2.509H6.582v5.059h2.86Zm-5.323-6.063c0-.704.54-1.248 1.24-1.248h4.283c3.282 0 5.323 1.87 5.323 4.7v.041c0 3.151-2.522 4.797-5.604 4.797h-2.78v3.396c0 .681-.54 1.224-1.221 1.224a1.22 1.22 0 0 1-1.241-1.224v-11.686ZM23.553 149.933v-.723a6.715 6.715 0 0 0-2.4-.421c-1.563 0-2.483.661-2.483 1.767v.04c0 1.024.9 1.605 2.06 1.605 1.601 0 2.823-.923 2.823-2.268Zm-7.244.764v-.043c0-2.288 1.78-3.412 4.363-3.412 1.18 0 2.021.179 2.842.441v-.262c0-1.504-.921-2.307-2.622-2.307-.921 0-1.68.158-2.343.42a1.28 1.28 0 0 1-.38.06 1.01 1.01 0 0 1-1.021-1.004c0-.441.3-.823.661-.961.999-.383 2.02-.622 3.402-.622 1.58 0 2.762.417 3.504 1.183.779.763 1.138 1.886 1.138 3.273v5.221c0 .661-.521 1.163-1.18 1.163-.7 0-1.181-.483-1.181-1.023v-.402c-.719.863-1.82 1.546-3.441 1.546-1.983 0-3.742-1.144-3.742-3.271ZM28.758 144.25c0-.683.52-1.225 1.198-1.225.681 0 1.223.542 1.223 1.225v1.083c.56-1.325 1.6-2.328 2.661-2.328.76 0 1.2.502 1.2 1.206 0 .64-.42 1.063-.96 1.163-1.721.302-2.9 1.627-2.9 4.136v3.134c0 .661-.543 1.205-1.224 1.205-.66 0-1.198-.525-1.198-1.205v-8.394ZM37.524 150.816v-5.583h-.401c-.58 0-1.04-.46-1.04-1.044 0-.583.46-1.043 1.04-1.043h.4v-1.809a1.21 1.21 0 0 1 2.423 0v1.809h1.9c.58 0 1.06.46 1.06 1.043 0 .584-.48 1.044-1.06 1.044h-1.9v5.201c0 .946.478 1.326 1.3 1.326.279 0 .519-.06.6-.06.539 0 1.02.44 1.02 1.003 0 .439-.3.802-.64.945-.52.179-1.02.28-1.66.28-1.78 0-3.042-.786-3.042-3.112ZM59.518 148.507v-.039c0-1.87-1.341-3.416-3.243-3.416-1.94 0-3.181 1.527-3.181 3.374v.042c0 1.847 1.34 3.39 3.223 3.39 1.96 0 3.2-1.523 3.2-3.351Zm-8.843 0v-.039c0-3.034 2.4-5.544 5.642-5.544 3.24 0 5.623 2.471 5.623 5.502v.042c0 3.01-2.402 5.52-5.665 5.52-3.22 0-5.6-2.47-5.6-5.481ZM64.942 145.233h-.42c-.56 0-1.02-.44-1.02-1.004 0-.561.46-1.024 1.02-1.024h.42v-.782c0-1.165.3-2.048.86-2.611.562-.56 1.342-.845 2.383-.845.481 0 .882.041 1.22.103.44.058.84.459.84 1.002a.996.996 0 0 1-1.02 1.004 4.279 4.279 0 0 0-.5-.039c-.921 0-1.401.502-1.401 1.604v.587h1.882c.579 0 1.02.44 1.02 1.001 0 .564-.46 1.004-1.02 1.004h-1.841v7.409c0 .664-.542 1.205-1.221 1.205a1.205 1.205 0 0 1-1.202-1.205v-7.409ZM77.352 141.278a1.3 1.3 0 0 1-.1-.483c0-.683.58-1.205 1.26-1.205.6 0 1.06.382 1.22.905l3.223 9.656 3.162-9.615c.2-.583.62-.984 1.24-.984h.18c.62 0 1.061.401 1.241.984l3.162 9.615 3.223-9.676c.178-.503.599-.885 1.199-.885.66 0 1.22.522 1.22 1.186 0 .162-.058.36-.119.502l-4.143 11.645c-.22.622-.679 1.026-1.28 1.026H91.8c-.599 0-1.04-.382-1.26-1.026l-3.124-9.176-3.12 9.176c-.22.644-.68 1.026-1.28 1.026h-.24c-.601 0-1.04-.382-1.28-1.026l-4.144-11.645ZM97.526 152.402a1.297 1.297 0 0 1-.42-.923c0-.664.52-1.185 1.18-1.185.322 0 .542.099.761.281.681.703 1.34 1.085 2.281 1.085 1.362 0 2.261-.884 2.261-2.773v-8.069a1.23 1.23 0 0 1 1.24-1.225c.682 0 1.243.54 1.243 1.225v8.15c0 1.669-.501 2.912-1.322 3.736-.819.823-2.001 1.244-3.403 1.244-1.7 0-2.939-.661-3.82-1.546ZM109.455 152.503v-11.567c0-.702.54-1.245 1.24-1.245h8.145c.602 0 1.102.503 1.102 1.104a1.1 1.1 0 0 1-1.102 1.107h-6.924v3.653h6.024c.6 0 1.1.502 1.1 1.124 0 .602-.5 1.085-1.1 1.085h-6.024v3.776h7.025c.6 0 1.101.5 1.101 1.103 0 .625-.501 1.105-1.101 1.105h-8.246c-.7 0-1.24-.542-1.24-1.245ZM122.244 146.759v-.039c0-3.996 2.982-7.271 7.224-7.271 2.161 0 3.581.644 4.803 1.587.261.201.481.542.481.985 0 .683-.542 1.205-1.222 1.205-.34 0-.579-.121-.742-.242-.959-.784-1.998-1.264-3.339-1.264-2.662 0-4.624 2.207-4.624 4.958v.042c0 2.751 1.941 4.978 4.624 4.978 1.48 0 2.481-.48 3.502-1.344.18-.16.439-.279.74-.279.62 0 1.161.518 1.161 1.143 0 .382-.18.681-.399.884-1.322 1.166-2.824 1.887-5.084 1.887-4.082 0-7.125-3.195-7.125-7.23Z",fill:"#706D6E"})))});const li=({copyrightMessage:e=`Copyright WJEC CBAC Ltd ${(new Date).getFullYear()}`,logos:t=[ni,ai],maxWidth:r=1280})=>{const o=z(gi);return g("footer",{css:o.footer},g("div",{css:s([o.container,{maxWidth:`${r}px`}])},t.map((e,t)=>g(e,{key:`logo_${t}`,css:o.logo})),g("span",{css:o.copyright},e)))};var ci={name:"8zn5ov",styles:"align-items:center;display:flex;margin:0 auto;width:100%;"},si={name:"eeoqsk",styles:"height:25px;margin-right:10px;"};const gi=({colorPalette:e})=>({container:ci,copyright:s("border-left:1px solid ",e.border,";color:",e.fontLight,";font-size:12px;padding-left:10px;"),footer:s(Ie,";align-items:center;display:flex;justify-content:flex-start;padding:24px 30px 22px;width:100%;"),logo:si});var di;function bi(){return bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},bi.apply(null,arguments)}var ui=r(function(t,r){return e.createElement("svg",bi({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r},t),di||(di=e.createElement("path",{d:"m10 4.742 4.167 3.75V15H12.5v-5h-5v5H5.833V8.492L10 4.742ZM10 2.5 1.667 10h2.5v6.667h5v-5h1.666v5h5V10h2.5L10 2.5Z",fill:"currentColor"})))});const pi={height:"40px",padding:"0"},Ii=({logo:e={eduqas:ai,wjec:ni},logoId:r,logoStyles:o,maxWidth:n=1280,menus:a,onClickPageIcon:l,pageIcon:c=ui,pageIconHref:d,pageTitle:b,showPageTitle:u=!0})=>{const[{brand:p}]=j(),I=z(xi),h=i(()=>{return H(t=e)&&Object.hasOwn(t,"eduqas")&&Object.hasOwn(t,"wjec")?e[p]:e;var t},[p,e]);return g("header",{css:I.header},g("div",{css:s([I.container,{maxWidth:`${n}px`}])},g("div",{css:I.titleContainer},u&&g(t.Fragment,null,g("a",{css:I.pageLink,href:d,onClick:l},g(c,{css:I.pageIcon})),g("h1",{css:I.title},b))),g(h,{css:s({...pi,...o}),id:r}),g("section",{css:I.menuContainer},a)))};var hi={name:"f7hwxs",styles:"align-items:center;display:grid;grid-gap:30px;grid-template-columns:1fr 100px 1fr;justify-items:center;margin:0 auto;"},Ci={name:"euyatf",styles:"align-items:center;display:flex;flex:1;justify-content:flex-end;justify-self:end;min-width:175px;"},mi={name:"6o7adr",styles:"align-items:center;display:flex;justify-self:flex-start;"};const xi=({colorPalette:e})=>({container:hi,header:s(Ie,";background-color:#fff;border-bottom:1px solid ",e.border,";padding:15px 30px;position:sticky;top:0;width:100%;z-index:1;"),menuContainer:Ci,pageIcon:s("color:",e.fontLight,";height:20px;margin-right:10px;"),pageLink:s("cursor:pointer;:hover > svg{color:",e.font,";}"),title:s(me,";border-left:1px solid ",e.border,";color:",e.fontLight,";font-size:14px;font-weight:500;margin:0;max-width:100%;padding:5px 0 5px 10px;"),titleContainer:mi}),fi=({children:e,footerProps:t,headerProps:r,maxWidth:o=1280})=>g("div",{css:vi.pageWrapper},g(Ii,Je({},r,{maxWidth:o})),g("main",{css:s([vi.content,{maxWidth:`${o+60}px`}])},e),g(li,Je({},t,{maxWidth:o}))),vi={content:s("flex:1;margin:0 auto;min-height:100%;padding:40px ",30,"px 0;width:100%;"),pageWrapper:s(Ie,";display:flex;flex-direction:column;min-height:100vh;")},Ai=({backgroundColor:e,color:r,id:o,progress:n,size:i="default"})=>{const a=void 0===n,l=z(wi);return g(t.Fragment,null,!a&&g("progress",{"aria-label":"loading",css:s([l.progress,"large"===i&&l.largeProgress,{"--background-color":e,"--color":r}]),id:o,max:100,value:n}),a&&g("div",{"aria-label":"loading",css:s([l.progressIndeterminate,{"--background-color":e,"--color":r}])}))},yi=d`
17
17
  0% {
18
18
  left: -35%;
19
19
  right: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wjec-one",
3
- "version": "4.1.5",
3
+ "version": "4.1.6",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": "./index.js",
package/umd/index.js CHANGED
@@ -41,4 +41,4 @@
41
41
  left: 107%;
42
42
  right: -8%;
43
43
  }
44
- `;var _n={name:"327rn5",styles:"border-radius:4px;height:24px;"};const ea=({colorPalette:e})=>({largeProgress:_n,progress:o.css("--background-color:",e.neutral,";--color:",e.primary,";appearance:none;border-radius:2px;height:4px;overflow:hidden;position:relative;width:100%;&::-webkit-progress-bar{background-color:var(--background-color);border-radius:4px;opacity:1;}&::-moz-progress-bar{background-color:var(--color);border-radius:4px;transition:width 0.3s ease-out;}&::-webkit-progress-value{background-color:var(--color);border-radius:4px;transition:width 0.3s ease-out;}"),progressIndeterminate:o.css("--background-color:",e.neutral,";--color:",e.secondary,";background-color:var(--background-color);border-radius:2px;color:var(--color);height:4px;overflow:hidden;position:relative;width:100%;&::before,&::after{background-color:var(--color);border-radius:2px;bottom:0;content:'';left:0;position:absolute;top:0;}&::after{animation:",$n," 2.1s cubic-bezier(0.65,0.815,0.735,0.395) infinite;}&::before{animation:",qn," 2.1s cubic-bezier(0.165,0.84,0.44,1) infinite 1.15s;}")}),ta=(e,t,o)=>{Rt("keydown",o=>{const r=(o.code||o.key)?.toLowerCase();r===e?.toLowerCase()&&t(o)},o)};var oa={name:"175zf7p",styles:"height:24px;position:absolute;width:24px;"},ra={name:"1jnbkft",styles:"flex-shrink:0;height:16px;width:16px;& > path{stroke-width:5;}"},na={name:"1i9s3a8",styles:"color:var(--icon-color);flex-shrink:0;height:24px;width:24px;"},aa={name:"ib6ufm",styles:"color:var(--color);font-size:16px;font-weight:600;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:pre-line;"};const ia=({colorPalette:e})=>({autoClose:oa,autoCloseCircle:o.css("--auto-close-offset:0;fill:transparent;stroke:",e.neutralLight,";stroke-dasharray:100;stroke-dashoffset:var(--auto-close-offset);stroke-width:2;transform:rotate(-90deg);transform-origin:50%;"),closeButton:o.css("align-items:center;background-color:transparent;border:none;color:",e.neutralLight,";cursor:pointer;display:flex;flex-shrink:0;height:24px;justify-content:center;margin:-8px -8px 0 0;padding:0;width:24px;"),closeIcon:ra,container:o.css("--border-color:",e.border,";--icon-color:",e.border,";--max-width:375px;--position:relative;--title-color:",e.font,";",H,";background-color:#ffffff;border:1px solid var(--border-color);border-radius:",j.borderRadius,";box-shadow:",j.dropShadow,";display:flex;font-family:'Montserrat',sans-serif;font-size:16px;gap:16px;line-height:24px;max-width:var(--max-width);padding:16px;position:var(--position);z-index:999;&[data-open=\"false\"]{display:none;}"),content:o.css("color:",e.neutralDark,";display:flex;flex-direction:column;flex-grow:1;margin:0;white-space:pre-line;word-break:break-word;"),icon:na,title:aa});var ca;function la(){return la=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},la.apply(null,arguments)}var sa=function(e,t){return u.createElement("svg",la({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),ca||(ca=u.createElement("path",{d:"M30 10 10 30m0-20 20 20",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},ga=t.forwardRef(sa);const da=({message:e,position:i,positionType:c,ariaDescription:l,ariaCloseLabel:s="close",autoClose:g,borderColor:d,children:u,icon:b,iconColor:p,id:I,maxWidth:h,onClose:C,onOpen:m,open:x=!0,openedTimestamp:f,showImmediately:v,title:y,titleColor:A,variant:G})=>{it('WJEC One Notification: The "message" prop has been deprecated. Provide notification content via component children instead',()=>void 0!==e,[e]),it('WJEC One Notification: The "position" prop has been deprecated. Positioning should be determined by parent container',()=>void 0!==i,[i]),it('WJEC One Notification: The "positionType" prop has been deprecated. Positioning should be determined by parent container',()=>void 0!==c,[c]),ae("WJEC-One Notification: Icon must be a valid SVGComponent",()=>b&&!r.isSvgComponent(t.createElement(b)),[b]);const Z=t.useRef(void 0),w=t.useRef(void 0),W=t.useRef(void 0),X=t.useRef(!1),k=t.useMemo(()=>void 0!==f?g-(Date.now()-f):g,[g,f]),B=t.useMemo(()=>-1*(100-k/g*100),[g,k]),j=()=>{F.pause(),H.cancel(),Y.play()},R=en("(prefers-reduced-motion)"),F=bt(Z,[{strokeDashoffset:"-100"}],{duration:k,fill:"forwards",iterations:1,onFinished:j,playImmediately:x&&g>0}),Y=bt(W,[{opacity:0,transform:R?void 0:"translateY(-60px)"}],{duration:500,easing:"ease-in",fill:"forwards",iterations:1,onFinished:()=>{W.current?.setAttribute("data-open","false"),C?.()}}),H=bt(W,[{opacity:0,transform:R?void 0:"translateY(-60px)"},{opacity:1,transform:R?void 0:"translateY(0)"}],{duration:500,easing:"ease-out",fill:"forwards",iterations:1,onFinished:m,onStarted:()=>W.current?.setAttribute("data-open","true")});t.useLayoutEffect(()=>{x?(Y.cancel(),v?W.current?.setAttribute("data-open","true"):H.play()):X.current&&j(),X.current=!0},[x]);const{buttonProps:V}=a.useButton({onPress:j},w),N=we(l),J=n.useWjecOneThemeStyles(ia);return o.jsx("div",ne({css:o.css([J.container,i,{"--border-color":d,"--icon-color":p,"--max-width":h,"--position":c,"--title-color":A}]),id:I,ref:W,"data-notification-type":G},N),b&&o.jsx(b,{css:J.icon,"aria-hidden":!0}),o.jsx("div",{css:J.content},y&&o.jsx("h3",{css:o.css([J.title,{"--color":A}])},y),e||u),o.jsx("button",ne({"aria-label":s,css:J.closeButton,ref:w},V),x&&g>0&&o.jsx("svg",{css:J.autoClose,viewBox:"0 0 20 20","aria-hidden":!0},o.jsx("circle",{css:o.css([J.autoCloseCircle,{"--auto-close-offset":B}]),cx:"10",cy:"10",r:"9",ref:Z,pathLength:"100"})),o.jsx(ga,{css:J.closeIcon,"aria-hidden":!0})))};var ua,ba;function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},pa.apply(null,arguments)}var Ia=function(e,t){return u.createElement("svg",pa({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),ua||(ua=u.createElement("path",{opacity:.12,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",fill:"currentColor"})),ba||(ba=u.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.719.191 1.63.191h16.449c.91 0 1.366 0 1.629-.191a1 1 0 0 0 .406-.705c.034-.324-.194-.718-.65-1.506L13.385 3.892c-.455-.785-.682-1.178-.979-1.31a1 1 0 0 0-.812 0c-.297.132-.524.525-.979 1.31Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},ha=t.forwardRef(Ia);const Ca=({title:e="Error",...t})=>{const[{colorPalette:r}]=n.useWjecOneTheme();return o.jsx(da,ne({},t,{borderColor:b.error,icon:ha,iconColor:r.error,title:e,titleColor:b.error,variant:"error"}))};var ma,xa;function fa(){return fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},fa.apply(null,arguments)}var va=function(e,t){return u.createElement("svg",fa({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),ma||(ma=u.createElement("path",{opacity:.12,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",fill:"currentColor"})),xa||(xa=u.createElement("path",{d:"M12 16v-4m0-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"})))},ya=t.forwardRef(va);const Aa=({title:e="Information",...t})=>{const[{colorPalette:r}]=n.useWjecOneTheme();return o.jsx(da,ne({},t,{borderColor:r.primary,icon:ya,iconColor:r.primary,title:e,titleColor:r.primary,variant:"info"}))};var Ga,Za;function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},wa.apply(null,arguments)}var Wa=function(e,t){return u.createElement("svg",wa({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ga||(Ga=u.createElement("path",{opacity:.12,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",fill:"currentColor"})),Za||(Za=u.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"})))},Xa=t.forwardRef(Wa);const ka=({title:e="Success",...t})=>{const[{colorPalette:r}]=n.useWjecOneTheme();return o.jsx(da,ne({},t,{borderColor:b.success,icon:Xa,iconColor:r.success,title:e,titleColor:b.success,variant:"success"}))};var Ba={name:"14loat4",styles:"align-items:flex-end;display:flex;gap:16px;justify-content:space-between;&:not(:first-child){margin-top:40px;}"},ja={name:"14de89l",styles:"align-items:flex-start;display:flex;gap:16px;&:not(:first-child){margin-top:40px;}"},Ra={name:"1b1vd94",styles:"align-items:center;display:flex;flex-grow:1;justify-content:flex-end;"};const Fa=({colorPalette:e})=>({closeButton:o.css("background-color:transparent;border:none;cursor:pointer;display:inline-flex;margin-left:auto;outline-color:",e.primary,";padding:0;"),closeIcon:o.css("color:",e.neutralDark,";width:40px;"),content:o.css(j.scrollbar,";flex-grow:1;overflow:auto;&:not(:first-child){margin-top:40px;}"),description:o.css("color:",e.neutralLight,";&:not(:first-child){margin-top:8px;}"),footer:Ba,header:ja,modal:o.css("--max-height:90vh;--max-width:60vw;--min-height:200px;--min-width:200px;--padding:32px;",H,";border:none;border-radius:",j.borderRadiusMedium,";box-shadow:",j.dropShadow,";display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;max-height:var(--max-height);max-width:var(--max-width);min-height:var(--min-height);min-width:var(--min-width);outline:none;padding:var(--padding);&:not([open]){left:-99999px;position:fixed;top:-99999px;user-select:none;visibility:hidden;}&::backdrop{backdrop-filter:blur(5px);background-color:rgba(241,243,244,0.80);}"),otherActions:Ra,title:o.css("color:",e.neutralDark,";font-size:28px;font-weight:400;line-height:40px;margin:0;"),titleIcon:o.css("color:",e.secondaryDark,";flex-shrink:0;width:40px;& > path{stroke-width:1;}")});var Ya;function Ha(){return Ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ha.apply(null,arguments)}var Va,Na=function(e,t){return u.createElement("svg",Ha({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ya||(Ya=u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.293 5.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414-1.414L13.586 12 8.293 6.707a1 1 0 0 1 0-1.414Z",fill:"currentColor"})))},Ja=t.forwardRef(Na);function La(){return La=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},La.apply(null,arguments)}var za=function(e,t){return u.createElement("svg",La({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Va||(Va=u.createElement("path",{d:"M8 12h8m6 0c0 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"})))},Oa=t.forwardRef(za);const Sa=({colorPalette:e})=>({heading:o.css("--color:",e.font,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:28px;font-weight:400;line-height:40px;margin:0 0 30px 0;")});var Ea;function Ta(){return Ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ta.apply(null,arguments)}var Ma=function(e,t){return u.createElement("svg",Ta({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ea||(Ea=u.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"})))},Da=t.forwardRef(Ma);var Pa={name:"1qje5jb",styles:"margin:0 15px;text-align:center;user-select:none;width:50px;"},Qa={name:"1x05hl3",styles:"opacity:0.33;pointer-events:none;"},Ua={name:"1ixbp0l",styles:"pointer-events:none;"};const Ka=({colorPalette:e})=>({compact:Pa,container:o.css(H,";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:o.css("align-items:center;border-radius:",j.borderRadius,";color:",e.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:Qa,optionNextPrevious:o.css("border:1px solid ",e.border,";"),optionSelected:o.css("background-color:",e.primary,";color:#FFFFFF;pointer-events:none;"),optionSeparator:Ua});var $a={name:"gp3k44",styles:"border-radius:4px;font-weight:600;padding:2px 8px;"};const qa=({colorPalette:e})=>({pill:o.css("align-items:center;background-color:",e.neutral,";border-radius:12px;color:",e.neutralDark,";display:inline-flex;font-size:12px;justify-content:center;line-height:16px;padding:4px 20px;vertical-align:middle;white-space:nowrap;"),smallPill:$a}),_a=({ariaLabel:e,children:n,isLoadingStyles:a,onOpen:i,popupWindow:c})=>{const[l,s]=t.useState(!1);return t.useEffect(()=>{l||a||(r.isCallableFunction(i)&&i(c),s(!0))},[a]),o.jsx(t.Fragment,null,n,a&&o.jsx("div",{"aria-label":e,css:ti.wrapper},o.jsx(Kn,null)))},ei=({children:e,height:n=500,id:a="",onClose:i,onOpen:c,open:s,position:g={x:50,y:200},title:d="",width:u=500})=>{const[b,p]=t.useState(),I=t.useRef(void 0),h=t.useRef(document.querySelectorAll("[data-emotion]")),[C,m]=t.useState(!1),[x,f]=t.useState(s),[v,y]=t.useState(!1);t.useEffect(()=>{const e=document.querySelectorAll("[data-emotion]");x&&I.current&&Array.from(e).some((e,t)=>e!==h.current[t])&&(h.current=e,G())}),t.useEffect(()=>()=>I.current&&I.current.close(),[]),t.useEffect(()=>{x&&Z(),!I.current||I.current.closed||x||I.current.close()},[e,x]),t.useEffect(()=>{I.current&&(I.current.document.title=d)},[d]),t.useEffect(()=>f(s),[s]);const A=()=>{m(!1),f(!1),y(!1),r.isCallableFunction(i)&&i()},G=()=>{const e=I.current.document,t=e.head,o=t.querySelectorAll("style");Array.from(o).forEach(e=>t.removeChild(e)),h.current.forEach(({textContent:o,sheet:r})=>{const n=e.createElement("style");if(n.appendChild(e.createTextNode("")),t.appendChild(n),o)n.appendChild(e.createTextNode(o));else{const e=n.sheet;[].forEach.call(r.cssRules,t=>{e.insertRule(t.cssText)})}}),requestAnimationFrame(()=>{m(!0)})},Z=()=>{if(!x||!I.current||I.current.closed)if(m(!1),I.current=window.open("",a,`left=${g.x},height=${n},top=${g.y},width=${u}`),I.current){const e=I.current.document.createElement("main");e.setAttribute("id",a),p(e),I.current.onbeforeunload=A,I.current.document.body.appendChild(e),I.current.document.title=d,requestAnimationFrame(()=>{G(),f(!0),y(!0)})}else r.developerError("A PopupWindow failed to open")};return x&&v&&I.current&&b?l.createPortal(o.jsx(_a,{isLoadingStyles:!C,onOpen:c,popupWindow:I.current},e),b):null},ti={wrapper:{name:"z2hlcz",styles:"background-color:#fff;bottom:0;left:0;padding:30px 10px;position:absolute;right:0;top:0;"}},oi=({ariaLabel:e,children:n,footer:a=t.Fragment,header:i=t.Fragment,id:c,isNested:l,margin:s="auto",onLayout:g,orientation:d="portrait",parentFooterHeight:u=0,parentHeaderHeight:b=0,verticalAlign:p="top"})=>{const[I,h]=t.useState("auto"),[C,m]=t.useState("auto"),x=t.useRef(void 0),f=t.useRef(void 0),v=t.useMemo(()=>("auto"===I?0:I)+("auto"===C?0:C)+u+b,[I,C,u,b]);return t.useEffect(()=>{x.current&&h(x.current.offsetHeight),f.current&&m(f.current.offsetHeight)},[i,a,f.current,x.current]),t.useEffect(()=>{"auto"!==I&&"auto"!==C&&r.isCallableFunction(g)&&g()},[I,C]),o.jsx(t.Fragment,null,!l&&o.jsx(o.Global,{styles:o.css("@media print{*{-webkit-print-color-adjust:exact;}@page{margin:",s,";size:",d,";}}")}),o.jsx("table",{"aria-label":e,cellPadding:0,cellSpacing:0,css:ri.printLayoutTable,id:c},o.jsx("thead",null,o.jsx("tr",null,o.jsx("td",{css:ri.printLayoutTableCell,style:{height:C}},o.jsx("header",{ref:f,css:o.css([ri.header,!l&&ri.printHeader])},o.jsx(i,null))))),o.jsx("tbody",null,o.jsx("tr",null,o.jsx("td",{css:o.css([ri.printLayoutTableCell,ri.content]),style:{height:l?`calc(100vh - ${v}px)`:"auto",verticalAlign:p}},t.Children.map(n,e=>e&&e.type&&("PrintLayout"===e.type.displayName||"PrintLayout"===e.type.name)?t.cloneElement(e,{...e.props,isNested:!0,parentFooterHeight:I,parentHeaderHeight:C}):e)))),o.jsx("tfoot",null,o.jsx("tr",null,o.jsx("td",{css:ri.printLayoutTableCell,style:{height:I}},o.jsx("footer",{ref:x,css:o.css([ri.footer,!l&&ri.printFooter])},o.jsx(a,null)))))))};oi.displayName="PrintLayout";const ri={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:o.css(H,";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;"}},ni=t.forwardRef(({children:e,element:t,horizontal:r=!1,id:n,vertical:a=!0},i)=>o.jsx(t||"div",{css:[j.scrollbar,{overflowX:r?"auto":"hidden",overflowY:a?"auto":"hidden"}],id:n,ref:i},e)),ai=({colorPalette:e})=>({sectionHeading:o.css("--border-left-color:",e.secondary,";border-left:2px solid var(--border-left-color);color:",e.font,";font-family:'Montserrat',sans-serif;font-size:14px;font-weight:500;line-height:20px;margin:0;padding-left:7px;")}),ii=({colorPalette:e})=>({title:o.css("--color:",e.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;")}),ci=({colorPalette:e})=>({subParagraph:o.css("--color:",e.font,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:12px;font-weight:400;line-height:20px;margin:0;")}),li=({colorPalette:e})=>({heading:o.css("color:",e.font,";font-family:'Montserrat',sans-serif;font-size:24px;font-weight:400;line-height:40px;margin:0 0 30px 0;")});var si={name:"1vuy4hm",styles:"padding:0 calc(var(--column-gap,16px) / 2);text-align:var(--align,left);vertical-align:middle;width:var(--width,auto);&:first-of-type{padding-left:0;}&:last-of-type{padding-right:0;}"},gi={name:"k008qs",styles:"display:flex;"},di={name:"5xt1kf",styles:"align-items:center;display:flex;flex-wrap:nowrap;gap:8px;&:not(:empty){min-height:32px;}"},ui={name:"5h0m38",styles:"display:inline-flex;flex-direction:column;"};const bi=({colorPalette:e})=>({cell:si,container:gi,header:o.css("color:",e.neutralDark,';font-weight:500;padding-top:0;&[data-sortable="true"]{cursor:pointer;}'),headerContainer:di,row:o.css("--highlight-color:",e.highlight,";border-radius:calc(",j.borderRadius,' / 2);&[data-interactive="true"][data-highlight="hover"]:hover,&[data-highlight="hover"][data-selected="true"],&[data-highlight="selected"][data-selected="true"]{background-color:var(--highlight-color);box-shadow:0 0 0 8px var(--highlight-color);}&[data-interactive="true"]{cursor:pointer;}'),sortableIcon:o.css("color:",e.border,';width:20px;& > path{stroke-width:2.5;}&[data-active="true"]{color:',e.neutralDark,";}"),sortableIndicators:ui,table:o.css("border-spacing:0 var(--row-gap,8px);color:",e.font,";flex-basis:100%;font-family:'Montserrat',sans-serif;font-size:16px;line-height:24px;margin:calc(var(--row-gap,8px) * -1) 0;")}),pi=(e,t)=>{const{displayValue:o}=e;return"function"==typeof o?o(t):o};var Ii;function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},hi.apply(null,arguments)}var Ci=function(e,t){return u.createElement("svg",hi({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ii||(Ii=u.createElement("path",{d:"m18 15-6-6-6 6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},mi=t.forwardRef(Ci);const xi=t.memo(({columnOptions:e,column:t,row:r,styles:n})=>{const a="max"===t.width?"100%":"min"===t.width?"1px":t.width;return o.jsx("td",{css:o.css([n.cell,{"--align":t.align||e?.align,"--width":a}])},pi(t,r))}),fi=({column:e,id:t,isSortable:r,isSorted:n,onPress:a,sortedDirection:i,styles:c})=>o.jsx("th",{"aria-sort":n?i:void 0,css:o.css([c.cell,c.header]),id:t,onClick:a,scope:"col","data-sortable":r},o.jsx("div",{css:c.headerContainer},(r||n)&&o.jsx("span",{css:c.sortableIndicators},o.jsx(mi,{css:c.sortableIcon,"data-active":n&&"ascending"===i}),o.jsx(Or,{css:c.sortableIcon,"data-active":n&&"descending"===i})),e.title)),vi=({children:e,isInteractive:t,isSelected:r,onPress:n,rowOptions:a,styles:i})=>o.jsx("tr",{css:o.css([i.row,{"--highlight-color":a?.highlightColor}]),onClick:()=>{t&&n?.()},"data-highlight":a?.highlight,"data-interactive":t,"data-selected":r},e),yi=e=>{const o=t.useRef(e),[r,n]=t.useState(e),a=t.useRef(e);e!==o.current&&(o.current=e,a.current=e);return[a.current,e=>{const t="function"==typeof e?e(a.current):e;a.current=t,n(t)}]},Ai=({colorPalette:e})=>({container:o.css("--highlight-color:",e.secondary,";flex-shrink:0;max-width:100%;position:relative;"),containerFilled:o.css("--highlight-color:",e.primary,";border-radius:",j.borderRadius,";background-color:",e.neutral,";& > div{padding:10px;&::before{border-radius:",j.borderRadius,";top:10px;}}"),containerTransparent:o.css("& > div{padding-bottom:1px;}&::before{border-bottom:1px solid ",e.border,";content:'';left:0;position:absolute;top:28px;width:100%;}"),innerContainer:o.css(j.scrollbar,";display:flex;overflow-x:auto;position:relative;&::before{background-color:var(--highlight-color);content:'';height:2px;position:absolute;top:27px;}"),tab:o.css("align-items:center;background-color:transparent;border:none;color:",e.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;&:not(:last-child){margin-right:20px;}&:disabled{opacity:0.5;}&[data-selected="true"]{font-weight:500;}'),tabFilled:o.css("border-radius:",j.borderRadius,';padding:5px 10px;&[data-selected="true"]:not([data-animating]){background-color:var(--highlight-color);color:#fff;}&:hover:not([data-animating]):not([data-selected="true"]){background-color:',e.border,";}"),tabTransparent:o.css('padding:4px 0;&[data-selected="true"]:not([data-animating]){&::after{background-color:var(--highlight-color);border-radius:',j.borderRadius,";content:'';height:2px;left:0;position:absolute;top:calc(100% - 1px);width:100%;}}")});e.Accordion=D,e.Breadcrumb=({breadcrumbs:e,id:a,keyExtractor:i,labelExtractor:c,onClick:l,showCurrent:s=!0})=>{const g=n.useWjecOneThemeStyles(re);return o.jsx("ul",{css:g.list,id:a},e.map((n,a)=>{const d=((e,t)=>r.isKeyLabelPair(e)?e.key:r.extractKey(e,i,t))(n,a),u=a===e.length-1;return o.jsx(t.Fragment,{key:d},(s||!u)&&o.jsx("li",{css:g.listItem},o.jsx("a",{"aria-current":!!u&&"page",css:o.css([g.breadCrumb,!u&&g.hoverEffect],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJyZWFkY3J1bWIuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFCNkQiLCJmaWxlIjoiQnJlYWRjcnVtYi5qc3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgaXNLZXlMYWJlbFBhaXIsIGV4dHJhY3RDb250ZW50LCBleHRyYWN0S2V5LCBzdmdDb21wb25lbnRUb0RhdGFVUkwsIGlzQ2FsbGFibGVGdW5jdGlvbiB9IGZyb20gJ3dqZWMtb25lL3V0aWxzJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuLy8gQHRyYW5zZm9ybS1wYXRoIC4uL2Fzc2V0cy9pY29ucy9jYXJldF9yaWdodC5zdmdcbmltcG9ydCBDYXJldFJpZ2h0IGZyb20gXCIuLi9hc3NldHMvaWNvbnMvY2FyZXRfcmlnaHQuc3ZnXCI7XG4vLyBAdHJhbnNmb3JtLXBhdGggLi4vYXNzZXRzL2ljb25zL2xpbmVfY29ybmVyX2Rvd25fbGVmdC5zdmdcbmltcG9ydCBMaW5lQ29ybmVyRG93bkxlZnQgZnJvbSBcIi4uL2Fzc2V0cy9pY29ucy9saW5lX2Nvcm5lcl9kb3duX2xlZnQuc3ZnXCI7XG5pbXBvcnQgeyB1c2VXamVjT25lVGhlbWVTdHlsZXMgfSBmcm9tICd3amVjLW9uZS90aGVtZSc7XG4vKipcbiAqIFRoaXMgY29tcG9uZW50IGRpc3BsYXlzIGEgbmF2aWdhdGlvbiB0cmFpbCB0byBoZWxwIHVzZXJzIHRyYWNrIGFuZCBuYXZpZ2F0ZSB0aGVpciBsb2NhdGlvbiB3aXRoaW4gdGhlIGFwcCdzIGhpZXJhcmNoeS5cbiAqL1xuZXhwb3J0IGNvbnN0IEJyZWFkY3J1bWIgPSAoeyBicmVhZGNydW1icywgaWQsIGtleUV4dHJhY3RvciwgbGFiZWxFeHRyYWN0b3IsIG9uQ2xpY2ssIHNob3dDdXJyZW50ID0gdHJ1ZSB9KSA9PiB7XG4gICAgY29uc3QgZ2V0S2V5ID0gKGNydW1iLCBpbmRleCkgPT4gaXNLZXlMYWJlbFBhaXIoY3J1bWIpID8gY3J1bWIua2V5IDogZXh0cmFjdEtleShjcnVtYiwga2V5RXh0cmFjdG9yLCBpbmRleCk7XG4gICAgY29uc3QgaGFuZGxlQ2xpY2sgPSAobGluaykgPT4gKCkgPT4gaXNDYWxsYWJsZUZ1bmN0aW9uKG9uQ2xpY2spICYmIG9uQ2xpY2sobGluayk7XG4gICAgY29uc3Qgc3R5bGVzID0gdXNlV2plY09uZVRoZW1lU3R5bGVzKGdldFN0eWxlcyk7XG4gICAgY29uc3QgcmVuZGVyQnJlYWRjcnVtYiA9IChjcnVtYiwgaW5kZXgpID0+IHtcbiAgICAgICAgY29uc3Qga2V5ID0gZ2V0S2V5KGNydW1iLCBpbmRleCk7XG4gICAgICAgIGNvbnN0IGlzQ3VycmVudFBhZ2UgPSBpbmRleCA9PT0gKGJyZWFkY3J1bWJzLmxlbmd0aCAtIDEpO1xuICAgICAgICByZXR1cm4gKDxSZWFjdC5GcmFnbWVudCBrZXk9e2tleX0+XHJcbiAgICAgICAgeyhzaG93Q3VycmVudCB8fCAhaXNDdXJyZW50UGFnZSkgJiZcbiAgICAgICAgICAgICAgICA8bGkgY3NzPXtzdHlsZXMubGlzdEl0ZW19PlxyXG4gICAgICAgICAgICA8YSBhcmlhLWN1cnJlbnQ9e2lzQ3VycmVudFBhZ2UgPyAncGFnZScgOiBmYWxzZX0gY3NzPXtbc3R5bGVzLmJyZWFkQ3J1bWIsICFpc0N1cnJlbnRQYWdlICYmIHN0eWxlcy5ob3ZlckVmZmVjdF19IGRhdGEtY3VycmVudC1jcnVtYj17aXNLZXlMYWJlbFBhaXIoY3J1bWIpID8gY3J1bWIubGFiZWwgOiBleHRyYWN0Q29udGVudChjcnVtYiwgbGFiZWxFeHRyYWN0b3IsIGluZGV4KX0gaHJlZj0nIycgb25DbGljaz17aXNDdXJyZW50UGFnZSA/IHVuZGVmaW5lZCA6IGhhbmRsZUNsaWNrKGtleSl9PlxyXG4gICAgICAgICAgICAgIHtpc0tleUxhYmVsUGFpcihjcnVtYikgPyBjcnVtYi5sYWJlbCA6IGV4dHJhY3RDb250ZW50KGNydW1iLCBsYWJlbEV4dHJhY3RvciwgaW5kZXgpfVxyXG4gICAgICAgICAgICA8L2E+XHJcbiAgICAgICAgICA8L2xpPn1cclxuICAgICAgPC9SZWFjdC5GcmFnbWVudD4pO1xuICAgIH07XG4gICAgcmV0dXJuICg8dWwgY3NzPXtzdHlsZXMubGlzdH0gaWQ9e2lkfT5cclxuICAgICAge2JyZWFkY3J1bWJzLm1hcChyZW5kZXJCcmVhZGNydW1iKX1cclxuICAgIDwvdWw+KTtcbn07XG5jb25zdCBnZXRTdHlsZXMgPSAoeyBjb2xvclBhbGV0dGUgfSkgPT4gKHtcbiAgICBicmVhZENydW1iOiBjc3MgYFxyXG4gICAgY29sb3I6ICR7Y29sb3JQYWxldHRlLm5ldXRyYWxEYXJrfTtcclxuICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcclxuICAgIGZvbnQtc2l6ZTogMTZweDtcclxuICAgIGxpbmUtaGVpZ2h0OiAxNnB4O1xyXG4gICAgcGFkZGluZzogNHB4IDEycHg7XHJcbiAgICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XHJcbiAgICB0ZXh0LWRlY29yYXRpb24tY29sb3I6IHRyYW5zcGFyZW50O1xyXG5cclxuICAgICY6OmJlZm9yZSB7XHJcbiAgICAgIGNvbnRlbnQ6IGF0dHIoZGF0YS1jdXJyZW50LWNydW1iKTtcclxuICAgICAgZGlzcGxheTogYmxvY2s7XHJcbiAgICAgIGZvbnQtd2VpZ2h0OiA3MDA7XHJcbiAgICAgIGhlaWdodDogMDtcclxuICAgICAgb3ZlcmZsb3c6IGhpZGRlbjtcclxuICAgICAgdmlzaWJpbGl0eTogaGlkZGVuO1xyXG4gICAgfVxyXG4gIGAsXG4gICAgaG92ZXJFZmZlY3Q6IGNzcyBgXHJcbiAgICAmOmhvdmVyIHtcclxuICAgICAgY3Vyc29yOiBwb2ludGVyO1xyXG4gICAgICBmb250LXdlaWdodDogNzAwO1xyXG4gICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTtcclxuICAgICAgdGV4dC1kZWNvcmF0aW9uLWNvbG9yOiAke2NvbG9yUGFsZXR0ZS5uZXV0cmFsRGFya307XHJcbiAgICB9XHJcbiAgYCxcbiAgICBsaXN0OiBjc3MgYFxyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIGZvbnQtZmFtaWx5OiAnTW9udHNlcnJhdCcsIHNhbnMtc2VyaWY7XHJcbiAgICBmb250LXNpemU6IDEycHg7XHJcbiAgICBsaXN0LXN0eWxlOiBub25lO1xyXG4gICAgbWFyZ2luOiAwO1xyXG4gICAgcGFkZGluZzogMDtcclxuICBgLFxuICAgIGxpc3RJdGVtOiBjc3MgYFxyXG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICAgIGRpc3BsYXk6IGZsZXg7XHJcblxyXG4gICAgJjo6YmVmb3JlLCAmOjphZnRlciB7XHJcbiAgICAgIGJhY2tncm91bmQtcmVwZWF0OiBuby1yZXBlYXQ7XHJcbiAgICAgIGJhY2tncm91bmQtc2l6ZTogY29udGFpbjtcclxuICAgICAgaGVpZ2h0OiAxNnB4O1xyXG4gICAgICB3aWR0aDogMTZweDtcclxuICAgIH1cclxuXHJcbiAgICAmOmZpcnN0LW9mLXR5cGU6bm90KDpsYXN0LW9mLXR5cGUpOjpiZWZvcmUge1xyXG4gICAgICBiYWNrZ3JvdW5kLWltYWdlOiAke3N2Z0NvbXBvbmVudFRvRGF0YVVSTCg8TGluZUNvcm5lckRvd25MZWZ0IGNvbG9yPXtjb2xvclBhbGV0dGUucHJpbWFyeURhcmtBY3RpdmV9Lz4pfTtcclxuICAgICAgY29udGVudDogJyc7XHJcbiAgICB9XHJcblxyXG4gICAgJjpub3QoOmxhc3Qtb2YtdHlwZSk6OmFmdGVyIHtcclxuICAgICAgYmFja2dyb3VuZC1pbWFnZTogJHtzdmdDb21wb25lbnRUb0RhdGFVUkwoPENhcmV0UmlnaHQgY29sb3I9e2NvbG9yUGFsZXR0ZS5wcmltYXJ5RGFya0FjdGl2ZX0vPil9O1xyXG4gICAgICBjb250ZW50OiAnJztcclxuICAgIH1cclxuICBgXG59KTtcbiJdfQ== */"),"data-current-crumb":r.isKeyLabelPair(n)?n.label:r.extractContent(n,c,a),href:"#",onClick:u?void 0:(b=d,()=>r.isCallableFunction(l)&&l(b))},r.isKeyLabelPair(n)?n.label:r.extractContent(n,c,a))));var b}))},e.Button=be,e.Card=({ariaDescription:e,borderColor:t,children:r,id:n,padding:a})=>{const i=we(e);return o.jsx("div",ne({css:o.css([We.cardMain,{"--border-color":t,"--padding":a}]),id:n},i),r)},e.Carousel=Qe,e.CheckBox=({ariaLabel:e,checked:i=!1,children:c,description:l,disabled:s,id:g,label:d,labelOverflow:u="wrap",loading:b,onChange:p,size:I="default",status:h,statusMessage:C})=>{const m=a.useId(g),[{brand:x,colorPalette:f}]=n.useWjecOneTheme(),v=n.useWjecOneThemeStyles(To),y=t.useRef(void 0);t.useLayoutEffect(()=>{y.current.checked=i},[i]);const A=t.useMemo(()=>{switch(h){case"error":return{background:f.errorBackground,border:f.error};case"success":return{background:f.successBackground,border:f.success};case"warning":return{background:f.warningBackground,border:f.warning};default:return{}}},[x,h]),G=t.useMemo(()=>({"--background-color":A.background,"--border-color":A.border}),[d,A]);return o.jsx("div",{css:v.container},o.jsx("input",{css:v.checkbox,defaultChecked:i,disabled:s,id:m,onChange:({target:{checked:e}})=>{r.isCallableFunction(p)&&p(e)},ref:y,type:"checkbox","data-loading":b}),o.jsx("label",{"aria-label":e,css:o.css([v.label,"small"===I&&v.labelSmall]),htmlFor:m,onClick:e=>e.stopPropagation(),style:G},b&&o.jsx("div",{css:v.loadingIcon},o.jsx(ce,{color:f.primary,size:"small"===I?"extraSmall":"default"})),(d||c)&&o.jsx("span",{css:v.labelContent,"data-overflow":u},d||c)),o.jsx(Ht,null,l),o.jsx(Kt,{status:h},C))},e.CircularProgress=ce,e.ColorPalette=b,e.ColorPaletteEduqas=p,e.ContextHelp=({ariaDescription:e,ariaLabel:t,border:r="0.5px solid #b9c2c6",children:n,id:a,maxWidth:i,placement:c="bottom-start",toggle:l=o.jsx(et,{css:ht.defaultToggle}),trigger:s="hover",...g})=>o.jsx(It,ne({ariaDescription:e,ariaLabel:t,border:r},g,{id:a,maxWidth:i,openDelay:"hover"===s?500:0,padding:"16px",placement:c,scrollable:!1,toggle:l,toggleCursor:"help",trigger:s}),n),e.ContextMenu=wt,e.DateTimePicker=({type:e="dateTime",...i})=>{const{date:c,description:l,disabled:s,id:g,label:d,maxDate:u,maxTime:b="",minDate:p,minTime:I="",onChangeDate:h,onChangeTime:C,placeholder:m,readonly:x,status:f,statusMessage:v,time:y,width:A}=r.resolveUnionizedProps(i),[{colorPalette:G}]=n.useWjecOneTheme(),Z=n.useWjecOneThemeStyles(rr),w=t.useRef(void 0),W=t.useRef(void 0),X=t.useMemo(()=>tr({date:c,time:y,type:e}),[]),k=a.useId(g),B=`${k}_description`,j=`${k}_status`;t.useLayoutEffect(()=>{W.current.value=tr({date:c,time:y,type:e})},[c,y,e]);const R=t.useMemo(()=>"time"===e?$o:er,[e]),F=t.useMemo(()=>"dateTime"===e?"datetime-local":e,[e]),Y=t.useMemo(()=>!(!u||!p)&&("00:00:00"===u.toTimeString().substring(0,8)&&"00:00:00"===p.toTimeString().substring(0,8)),[u,p]),H=t.useMemo(()=>{if("date"===e||"dateTime"===e){const t=u||("dateTime"===e&&b?new Date:void 0),o="dateTime"===e?`yyyy-MM-ddT${b||(Y?"23:59":"HH:mm")}`:"yyyy-MM-dd";return t?r.formatDateTime({date:t,format:o}):b}return b},[u,b,e]),V=t.useMemo(()=>{if("date"===e||"dateTime"===e){const t=p||("dateTime"===e&&I?new Date:void 0),o="dateTime"===e?`yyyy-MM-ddT${I||(Y?"00:00":"HH:mm")}`:"yyyy-MM-dd";return t?r.formatDateTime({date:t,format:o}):I}return I},[p,I,e]),N="error"!==f&&"warning"!==f||!v?B:j,J=t.useMemo(()=>{switch(f){case"error":return{backgroundColor:G.errorBackground,borderColor:G.error};case"success":return{backgroundColor:G.successBackground,borderColor:G.success};case"warning":return{backgroundColor:G.warningBackground,borderColor:G.warning};default:return{}}},[G,f]);return o.jsx("label",{css:o.css([Z.label,A&&{width:A}])},d,o.jsx("span",{css:o.css([Z.container,{"--margin-top":d&&"4px"}])},o.jsx("input",{"aria-describedby":N,css:o.css([Z.input,{"--background":J.backgroundColor,"--border-color":J.borderColor}]),defaultValue:X,disabled:s,id:k,max:H,min:V,onChange:({target:t})=>{const{value:o,valueAsNumber:n}=t,a=new Date(n),i=o.substring(o.indexOf("T")+1);"date"!==e&&"dateTime"!==e||!r.isCallableFunction(h)||h(a),"dateTime"!==e&&"time"!==e||!r.isCallableFunction(C)||C(i)},placeholder:m,readOnly:x,ref:W,type:F}),o.jsx(R,{"aria-hidden":!0,css:Z.icon,"data-disabled":s,ref:w})),o.jsx(Ht,{id:B},l),o.jsx(Kt,{id:j,status:f},v))},e.DestructiveButton=xe,e.Email=({id:e,label:t,readonly:r,value:a,...i})=>{const c=n.useWjecOneThemeStyles(cr);return r?o.jsx("label",{css:c.label,id:e},o.jsx("span",{css:c.labelText},t),o.jsx(nr,{href:`mailto:${a}`},a)):o.jsx(go,ne({label:t,value:a},i))},e.Emphasis=vt,e.ErrorCard=e=>{const[{colorPalette:t}]=n.useWjecOneTheme();return o.jsx(bn,ne({},e,{borderColor:t.error,icon:so,iconColor:t.error,titleColor:t.errorDark}))},e.ErrorNotification=Ca,e.FileInput=({ariaLabel:e,browseLabel:i="Browse",description:c,displaySize:l="medium",id:s,label:g,max:d,maxFileSize:u,multiple:b,onError:p,onSelect:I,placeholderDescription:h=("large"===l?"Drag & drop "+(b?"files":"a file"):`Drag & drop ${b?"files":"a file"} or click to upload`),status:C,statusMessage:m,validExtensions:x,validTypes:f})=>{const v=t.useRef(void 0),y=t.useRef(void 0),A=a.useId(s),G=e=>b?void 0===d||e<=d:e<=1,Z=e=>{const t=e.length,o=[],n=[],a=[],i=[];G(t)?(e.forEach(e=>{const t=(({name:e})=>{const t=e.substring(e.lastIndexOf("."));return void 0===x||x.includes(t)})(e),r=(({size:e})=>void 0===u||e<=u)(e),c=(({type:e})=>void 0===f||f.includes(e))(e);t&&r&&c&&i.push(e),t||o.push(e),r||n.push(e),c||a.push(e)}),i.length>0&&r.isCallableFunction(I)&&I(i)):r.isCallableFunction(p)&&p([{code:"MAX_FILES_EXCEEDED",details:{maxCount:d||1,selectedCount:t}}]),(o.length||n.length||a.length)&&r.isCallableFunction(p)&&p([o.length&&{code:"INVALID_FILE_EXTENSION",details:{files:o}},n.length&&{code:"INVALID_FILE_SIZE",details:{files:n}},a.length&&{code:"INVALID_FILE_TYPE",details:{files:a}}].filter(e=>e))},w=n.useWjecOneThemeStyles(Cr);return o.jsx("label",{css:w.label,htmlFor:A},g,o.jsx("div",{css:w.container,onDragEnter:e=>{const t=e.dataTransfer.items.length,o=G(t);r.preventDefaultBehavior(e.nativeEvent),v.current.setAttribute("data-drag-state",o?"valid":"invalid")},onDragLeave:e=>{r.preventDefaultBehavior(e.nativeEvent),v.current.removeAttribute("data-drag-state")},onDragOver:e=>{r.preventDefaultBehavior(e.nativeEvent)},onDrop:e=>{r.preventDefaultBehavior(e);const t=Array.from(e.dataTransfer.files);Z(t),v.current.removeAttribute("data-drag-state")},ref:v,"data-display-size":l,"data-status":C},o.jsx("input",{"aria-label":e,css:j.visiblyHidden,id:A,multiple:b,onChange:e=>{const t=Array.from(e.currentTarget.files);Z(t)},ref:y,type:"file",value:""}),o.jsx(Ir,{css:w.uploadIcon,"aria-hidden":!0}),h&&o.jsx("p",{css:w.description},h),"large"===l&&o.jsx(ye,{icon:ur,label:i,onPress:()=>{y.current.click()}})),o.jsx(Ht,null,c),o.jsx(Kt,{status:C},m))},e.FilterList=({clearButtonBehaviour:e="clear",expanded:a,filter:i=!0,floatingList:c,floatingListPosition:l={top:10},icon:s,id:g,label:d,loading:u,maxHeight:b=150,noMatchesMessage:p="No matches were found",onChange:I,onFilter:h,optionKeyExtractor:C,optionTemplate:m=({option:e})=>o.jsx(t.Fragment,null,e.toString()),options:x,placeholder:f,value:v="",ariaLabel:y=r.formattedStringToPlainText(d),ariaCloseLabel:A=("clear"===e?"Clear filter":"clearAndClose"===e?"Clear filter and close list":"Close list"),ariaMultiselectable:G})=>{const[{colorPalette:Z}]=n.useWjecOneTheme();ae("WJEC-One FilterList: You must specify a keyExtractor if the options array contains non-primitive entry types",()=>!r.isPrimitiveArray(x)&&!r.isKeyLabelPairArray(x)&&!C,[C,x]);const w=t.useRef(void 0),W=t.useRef(void 0),X=t.useRef(void 0),[k,B]=t.useState(v),[j,R]=t.useState(0),[F,Y]=t.useState(0),[H,V]=t.useState("below"),[N,J]=t.useState(0),[L,z]=t.useState([...x]),[O,S]=t.useState(),[E,T]=t.useState([]),[M,D]=t.useState(1),P=t.useMemo(()=>s&&r.svgComponentToDataURL(t.createElement(s,{color:Z.fontLight})),[s]);t.useEffect(()=>{let e;e=i&&k?x.filter((e,t)=>q(e,t).toString().toLowerCase().includes(k.toLowerCase())):[...x],r.isArrayEqual(e,L)||(r.isCallableFunction(h)&&h(e),z(e))},[k,i,x]),t.useEffect(()=>{!O||x.length||k||K(),w.current.querySelector('input[type="text"]')===document.activeElement&&$()},[k,x]),t.useEffect(()=>{a!==O&&(a?$():K())},[a]),t.useEffect(()=>{v!==k&&B(v)},[v]),t.useEffect(()=>(O&&(document.addEventListener("scroll",Q,!0),window.addEventListener("click",Q),window.addEventListener("resize",U)),()=>{document.removeEventListener("scroll",Q,!0),window.removeEventListener("click",Q),window.removeEventListener("resize",U)}),[O]),t.useEffect(()=>{D(1),W.current&&W.current.scrollTo({top:0})},[L]),t.useEffect(()=>{T(e=>{const t=M>1?[...e]:[],o=50*M-50,r=o+50;return t.length=50*(M-1),[...t,...L.slice(o,r).map(re)]})},[L,M]);const Q=({target:e})=>{const t=e;t===w.current||w.current.contains(t)||K()},U=r.throttle(()=>$(),{limit:250}),K=()=>{X.current===document.activeElement&&w.current.querySelector('input[type="text"]').focus(),S(!1),D(1)},$=()=>{if(x.length>0||!!k){const e=w.current.getBoundingClientRect(),t=e.top+e.height,o=window.innerHeight-t;let r="below";if(!c){if(o<b){const t=e.top;(t>b||t>o)&&(r="above")}"below"===r?(R(Math.min(b,window.innerHeight-t-10)),Y(e.top+w.current.querySelector('input[type="text"]').offsetTop)):(R(Math.min(b,e.top-10)),Y(window.innerHeight-t-1))}V(r),J(e.width),S(!0)}},q=(e,t)=>r.isKeyLabelPair(e)?e.key:r.extractKey(e,C,t),_=e=>{r.isCallableFunction(I)&&I(e),B(e)},ee=r.throttle(e=>{const t=e.target;t.scrollTop+2*t.clientHeight>t.scrollHeight&&50*M<L.length&&D(e=>e+1)},{beforeDelay:e=>{e.nativeEvent.stopImmediatePropagation(),e.persist()},limit:250}),te=n.useWjecOneThemeStyles(Ho),oe=()=>o.jsx("input",{ref:X,css:o.css([te.listInput,P&&[te.listInputWithIcon,{backgroundImage:P}]]),autoFocus:!0,onChange:({currentTarget:e})=>_(e.value),placeholder:f,value:k}),re=e=>{const t=x.indexOf(e);return o.jsx("li",{"aria-posinset":t+1,"aria-setsize":x.length,key:q(e,t)},m({option:e,index:t,filteredOptions:[...L]}))};return o.jsx("div",{ref:w,css:te.container,id:g,onClick:({target:e})=>{O||e!==w.current.querySelector('input[type="text"]')||e!==document.activeElement||$()}},o.jsx(go,{ariaLabel:y,icon:s,label:d,onChange:_,onFocus:$,placeholder:f,value:k}),O&&o.jsx("div",{"aria-expanded":!0,css:o.css([te.expandedContainer,"above"===H?[te.expandedContainerAbove,{bottom:F}]:{top:F},{width:N},c&&[te.expandedContainerFloating,{...l,maxHeight:`calc(100% - ${2*l.top}px)`}]])},"below"===H&&oe(),o.jsx(xo,{"aria-label":A,css:o.css([te.clearIcon,"above"===H&&te.clearIconAbove]),onClick:()=>{"clear"!==e&&"clearAndClose"!==e||B(""),"clear"===e&&X.current.focus(),"clearAndClose"!==e&&"close"!==e||K()}}),o.jsx("div",{css:o.css([te.listContainer,"above"===H&&te.listContainerAbove]),onScroll:ee},o.jsx("ul",{"aria-multiselectable":G,css:o.css([te.list,c&&te.listFloating,!c&&{maxHeight:j}]),ref:W},L.length?E:o.jsx("li",{css:te.noResults},o.jsx(yo,{css:te.noResultsIcon,"aria-hidden":!0}),p)),u&&o.jsx("div",{css:o.css([te.loading,"above"===H&&te.loadingAbove,!c&&{maxHeight:j}])},o.jsx(ce,null))),"above"===H&&oe()))},e.Footer=Hn,e.Form=({ariaDescription:e,ariaLabel:t,children:n,clearButton:a="Clear",clearId:i,id:c,onClear:l,onSubmit:s,otherActions:g,submitButton:d="Submit",submitId:u,width:b})=>{const p=we(e);return o.jsx("form",ne({"aria-label":t,css:o.css({width:b}),id:c,onReset:e=>{e.preventDefault(),r.isCallableFunction(l)&&l()},onSubmit:e=>{e.preventDefault(),r.isCallableFunction(s)&&s()}},p),n,o.jsx("section",{css:Vo.controls},a&&o.jsx(be,{buttonType:"reset",id:i,label:a}),o.jsx("div",{css:Vo.submit},d&&o.jsx(ye,{buttonType:"submit",id:u,label:d})),g&&o.jsx(wt,{options:g})))},e.Header=Tn,e.IconButton=fe,e.InfoNotification=Aa,e.InformationCard=bn,e.Input=go,e.LinearProgress=Kn,e.Link=nr,e.LinkButton=({loading:e,...t})=>{const[{colorPalette:r}]=n.useWjecOneTheme();return ae("WJEC One LinkButton: A LinkButton cannot have an unaccompanied icon",()=>t.icon&&!(t.children||t.label),[t]),o.jsx(be,ne({},t,{loading:e,color:e?r.neutral:"transparent",iconColor:r.fontLight,labelColor:r.primaryDark}))},e.Modal=({actionType:e="positive",actionButton:a="Confirm",actionButtonIcon:i=("negative"===e?Oa:Ja),actionButtonId:c,actionDisabled:l,actionLoading:g,actionLoadingProgress:d,blockScroll:u=!0,cancelButton:b="Cancel",cancelButtonIcon:p=ga,cancelButtonId:I,children:h,closeOnCancel:C=!0,closeOnClickOutside:m=!0,closeOnEscape:x=!0,description:f,id:v,maxHeight:y,maxWidth:A,minHeight:G,minWidth:Z,notification:w,onAction:W,onCancel:X,onClose:k,onOpen:B,open:j,otherActions:R,padding:F,showCloseIcon:Y=!0,title:H,titleIcon:V,ariaCloseLabel:N="close",ariaDescription:J=f,ariaLabel:L})=>{const z=t.useRef(void 0),O=t.useRef(void 0),S=t.useMemo(()=>r.formattedStringToPlainText(J),[J]),E=we(r.formattedStringToPlainText(S)),T=c??(v?`${v}:confirmButton`:void 0),M=I??(v?`${v}:cancelButton`:void 0);ta("escape",e=>e.preventDefault(),{shouldAddListener:j&&!x}),t.useEffect(()=>{u&&j&&s.disableBodyScroll(O.current,{reserveScrollBarGap:!0,allowTouchMove:e=>O.current.contains(e)})},[u,j]),t.useLayoutEffect(()=>{j?Q():D()},[j]),tn(()=>{s.clearAllBodyScrollLocks()});const D=()=>{O.current?.close()};let P=!1;const Q=()=>{const e=r.getKeyboardFocusableElements(z.current);e?.[0]?.setAttribute("autofocus","true"),O.current.showModal(),r.isCallableFunction(B)&&B()},U=n.useWjecOneThemeStyles(Fa),K=t.useMemo(()=>({"--max-height":y,"--max-width":A,"--min-height":G,"--min-width":Z,"--padding":F}),[y,y,G,Z,F]),$=t.useMemo(()=>"negative"===e?xe:ye,[e]),q=a||b||R,_=Y||H||V;return o.jsx("dialog",ne({"aria-label":L,css:U.modal,id:v,onClickCapture:e=>{const t=e.target,o=t?.tagName?.toLowerCase();m&&"dialog"===o&&!P&&D()},onClose:()=>{s.enableBodyScroll(O.current),r.isCallableFunction(k)&&k()},onMouseDown:e=>{const t=e.nativeEvent.pointerType,o=O.current.getBoundingClientRect();t||(P=e.clientX>=o.left&&e.clientX<=o.right&&e.clientY>=o.top&&e.clientY<=o.bottom)},ref:O,style:K},E),j&&o.jsx(t.Fragment,null,!!w&&(()=>{if(t.isValidElement(w))return w;const e="error"===w?.type?Ca:"success"===w?.type?ka:Aa;return o.jsx(e,ne({maxWidth:"100%"},w))})(),_&&o.jsx("header",{css:U.header},V&&o.jsx(V,{css:U.titleIcon}),H&&o.jsx("h3",{css:U.title},H),Y&&o.jsx("button",{"aria-label":N,css:U.closeButton,onClick:D},o.jsx(ga,{"aria-hidden":!0,css:U.closeIcon}))),f&&o.jsx("div",{css:U.description},f),o.jsx("div",{css:U.content,ref:z},h),q&&o.jsx("footer",{css:U.footer},b&&(t.isValidElement(b)?b:o.jsx(be,{icon:p,id:M,label:b,onPress:()=>{r.isCallableFunction(X)&&X(),C&&D()}})),o.jsx("section",{css:U.otherActions},R&&(t.isValidElement(R)?R:o.jsx(wt,{options:R}))),a&&(t.isValidElement(a)?a:o.jsx($,{disabled:l,icon:i,iconPosition:"right",id:T,label:a,loading:g,loadingProgress:d,onPress:W})))))},e.Notification=da,e.Page=({children:e,footerProps:t,headerProps:r,maxWidth:n=1280})=>o.jsx("div",{css:Un.pageWrapper},o.jsx(Tn,ne({},r,{maxWidth:n})),o.jsx("main",{css:o.css([Un.content,{maxWidth:`${n+60}px`}])},e),o.jsx(Hn,ne({},t,{maxWidth:n}))),e.PageTitle=({children:e,color:r,id:a})=>{const i=t.useRef(void 0),c=n.useWjecOneThemeStyles(Sa);return o.jsx("h1",{css:o.css([c.heading,{"--color":r}]),id:a,ref:i},e)},e.Pagination=({ariaCurrent:e,ariaLabel:a,compact:i=!1,current:c=1,id:l,onSelect:s,total:g})=>{const d=e=>()=>{e>0&&e<g+1&&r.isCallableFunction(s)&&s(e)},u=t.useMemo(()=>{let e;return e=g>5?c<4?[2,3,4,"..."]:c>g-3?["...",g-3,g-2,g-1]:["...",c-1,c,c+1,"..."]:[...Array(Math.max(0,g-2)).keys()].map(e=>e+2),e},[c,g]),b=n.useWjecOneThemeStyles(Ka);return o.jsx("ol",{"aria-label":a,css:b.container,id:l},o.jsx("li",{"aria-current":e,css:o.css([b.option,b.optionNextPrevious,1===c&&b.optionDisabled]),onClick:d(c-1)},o.jsx(Da,{height:"100%",width:"100%"})),i?o.jsx("li",{css:b.compact},c," of ",g):o.jsx(t.Fragment,null,o.jsx("li",{css:o.css([b.option,1===c&&b.optionSelected]),onClick:d(1)},"1"),u.map((e,t)=>o.jsx("li",{key:t,css:o.css([b.option,e===c&&b.optionSelected,"string"==typeof e&&b.optionSeparator]),onClick:"number"==typeof e?d(e):null},e)),g>1&&o.jsx("li",{css:o.css([b.option,c===g&&b.optionSelected]),onClick:d(g)},g)),o.jsx("li",{css:o.css([b.option,b.optionNextPrevious,c===g&&b.optionDisabled]),onClick:d(c+1)},o.jsx(q,{height:"100%",width:"100%"})))},e.Paragraph=At,e.Password=({ariaLabel:e,autoComplete:r="current-password",description:i,disabled:c,id:l,label:s,name:g,onChange:d,onToggleRevealPassword:u,placeholder:b,revealPassword:p,showIcon:I=!0,status:h,statusMessage:C,value:m=""})=>{const x=t.useRef(void 0),f=t.useRef(void 0),v=t.useRef(void 0),[{brand:y,colorPalette:A}]=n.useWjecOneTheme(),G=a.useId(),Z=t.useMemo(()=>l||G,[G,l]);t.useLayoutEffect(()=>{const e=Boolean(!c&&p);v.current.setAttribute("aria-pressed",e.toString()),f.current.setAttribute("type",e?"text":"password")},[c,p]),t.useLayoutEffect(()=>{f.current.value=m},[m]);const w=t.useMemo(()=>{switch(h){case"error":return{background:A.errorBackground,border:A.error};case"success":return{background:A.successBackground,border:A.success};case"warning":return{background:A.warningBackground,border:A.warning};default:return{}}},[y,h]),W=n.useWjecOneThemeStyles(Hr),{buttonProps:X}=a.useButton({"aria-label":e,"aria-pressed":!c&&p,isDisabled:c,onPress:()=>{const e=!c&&"true"!==v.current.getAttribute("aria-pressed");v.current.setAttribute("aria-pressed",e.toString()),f.current.setAttribute("type",e?"text":"password"),u?.(e)},type:"button"},v);return o.jsx("label",{css:W.label,htmlFor:Z},s,o.jsx("span",{css:o.css([W.container,{"--margin-top":s&&"4px"}])},o.jsx("input",{"aria-label":e,autoComplete:r,css:o.css([W.input,{"--background-color":w.background,"--border-color":w.border,"--padding-left":!I&&"8px"}]),defaultValue:m,disabled:c,id:Z,name:g,onChange:({target:{value:e}})=>{d?.(e)},placeholder:b,ref:f,type:!c&&p?"text":"password"}),I&&o.jsx(Ar,{"aria-hidden":!0,css:W.icon,ref:x}),o.jsx("button",ne({},X,{css:W.revealPassword,name:"Reveal password",ref:v}))),o.jsx(Ht,null,i),o.jsx(Kt,{status:h},C))},e.Pill=({ariaLabel:e,backgroundColor:t,children:r,color:a,id:i,size:c="default"})=>{const l=n.useThemeColor(t),s=n.useThemeColor(a),g=n.useWjecOneThemeStyles(qa);return o.jsx("span",{"aria-label":e,css:o.css([g.pill,{backgroundColor:l,color:s},"small"===c&&g.smallPill],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlBpbGwuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU95QyIsImZpbGUiOiJQaWxsLmpzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcbmltcG9ydCB7IHVzZVRoZW1lQ29sb3IsIHVzZVdqZWNPbmVUaGVtZVN0eWxlcyB9IGZyb20gJ3dqZWMtb25lL3RoZW1lJztcbmV4cG9ydCBjb25zdCBQaWxsID0gKHsgYXJpYUxhYmVsLCBiYWNrZ3JvdW5kQ29sb3I6IGJhY2tncm91bmRDb2xvclByb3AsIGNoaWxkcmVuLCBjb2xvcjogY29sb3JQcm9wLCBpZCwgc2l6ZSA9ICdkZWZhdWx0JyB9KSA9PiB7XG4gICAgY29uc3QgYmFja2dyb3VuZENvbG9yID0gdXNlVGhlbWVDb2xvcihiYWNrZ3JvdW5kQ29sb3JQcm9wKTtcbiAgICBjb25zdCBjb2xvciA9IHVzZVRoZW1lQ29sb3IoY29sb3JQcm9wKTtcbiAgICBjb25zdCBzdHlsZXMgPSB1c2VXamVjT25lVGhlbWVTdHlsZXMoZ2V0U3R5bGVzKTtcbiAgICByZXR1cm4gKDxzcGFuIGFyaWEtbGFiZWw9e2FyaWFMYWJlbH0gY3NzPXtbc3R5bGVzLnBpbGwsIHsgYmFja2dyb3VuZENvbG9yLCBjb2xvciB9LCBzaXplID09PSAnc21hbGwnICYmIHN0eWxlcy5zbWFsbFBpbGxdfSBpZD17aWR9PlxyXG4gICAgICB7Y2hpbGRyZW59XHJcbiAgICA8L3NwYW4+KTtcbn07XG5jb25zdCBnZXRTdHlsZXMgPSAoeyBjb2xvclBhbGV0dGUgfSkgPT4gKHtcbiAgICBwaWxsOiBjc3MgYFxyXG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICR7Y29sb3JQYWxldHRlLm5ldXRyYWx9O1xyXG4gICAgYm9yZGVyLXJhZGl1czogMTJweDtcclxuICAgIGNvbG9yOiAke2NvbG9yUGFsZXR0ZS5uZXV0cmFsRGFya307XHJcbiAgICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcclxuICAgIGZvbnQtc2l6ZTogMTJweDtcclxuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xyXG4gICAgbGluZS1oZWlnaHQ6IDE2cHg7XHJcbiAgICBwYWRkaW5nOiA0cHggMjBweDtcclxuICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XHJcbiAgICB3aGl0ZS1zcGFjZTogbm93cmFwO1xyXG4gIGAsXG4gICAgc21hbGxQaWxsOiBjc3MgYFxyXG4gICAgYm9yZGVyLXJhZGl1czogNHB4O1xyXG4gICAgZm9udC13ZWlnaHQ6IDYwMDtcclxuICAgIHBhZGRpbmc6IDJweCA4cHg7XHJcbiAgYFxufSk7XG4iXX0= */"),id:i},r)},e.Popup=It,e.PopupWindow=ei,e.PrimaryButton=ye,e.PrintLayout=oi,e.PrintWindow=({ariaLabel:e,autoPrint:n,children:a,closeOnPrint:i,id:c,onClose:l,onOpen:s,...g})=>{const[d,u]=t.useState(!1),[b,p]=t.useState(!1),I=t.useRef(void 0);t.useEffect(()=>{d&&b&&h()},[d,b]);const h=()=>{r.isCallableFunction(s)&&s(I.current),n&&I.current.print()},C=()=>{i&&I.current.close()};return o.jsx(ei,ne({},g,{id:c,open:n,onClose:()=>{u(!1),p(!1),r.isCallableFunction(l)&&l()},onOpen:e=>{I.current=e,I.current.document.body.style.margin="0",I.current.document.body.style.padding="0",I.current.onafterprint=C,p(!0)}}),o.jsx(oi,ne({ariaLabel:e},g,{onLayout:()=>{u(!0)}}),a))},e.RadioGroup=({ariaLabel:e,description:i,disabled:c,gridArea:l,keyExtractor:s,highlightedOption:g,id:d,label:u,labelExtractor:b,name:p,onSelect:I,options:h,orientation:C="horizontal",selectedOption:m,status:x,statusMessage:f})=>{it('WJEC One RadioGroup: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',()=>void 0!==l,[l]),ae("WJEC-One RadioGroup: You must specify a keyExtractor if the options array contains non-primitive entry type",()=>!r.isPrimitiveArray(h)&&!r.isKeyLabelPairArray(h)&&!s,[s]),it("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",()=>void 0!==g,[g]);const v=a.useId(d),y=t.useRef(void 0);t.useLayoutEffect(()=>{if(m){const e=y.current.querySelectorAll('input[type="radio"]'),t=h.indexOf(m),o=w(m,t),r=Array.from(e).find(e=>e.value===o);r&&(r.checked=!0)}},[h,m]);const[{brand:A,colorPalette:G}]=n.useWjecOneTheme(),Z=t.useMemo(()=>{switch(x){case"error":return{background:G.errorBackground,border:G.error};case"success":return{background:G.successBackground,border:G.success};case"warning":return{background:G.warningBackground,border:G.warning};default:return{}}},[A,x]),w=(e,t)=>r.isKeyLabelPair(e)?e.key:r.extractKey(e,s,t),W=e=>()=>{r.isCallableFunction(I)&&I(e)},X=n.useWjecOneThemeStyles(Nr),k=t.useMemo(()=>({"--background-color":Z.background,"--border-color":Z.border,"--flex-direction":"vertical"===C&&"column","--flex-gap":"vertical"===C&&"16px 8px","--margin-top":u&&"4px"}),[u,C,Z]);return o.jsx("label",{css:X.label,id:v,"data-disabled":c||void 0},u,o.jsx("fieldset",{css:X.container,ref:y,style:k},h.map((n,a)=>{const i=w(n,a),l=a===h.indexOf(m);return o.jsx(t.Fragment,{key:i},o.jsx("input",{css:X.radioButton,defaultChecked:l,disabled:c,id:`${v}_${a}`,name:p||v,onChange:W(n),type:"radio",value:i}),o.jsx("label",{"aria-label":e,css:X.radioButtonContainer,htmlFor:`${v}_${a}`},r.isKeyLabelPair(n)?n.label:r.extractContent(n,b,a)))})),o.jsx(Ht,null,i),o.jsx(Kt,{status:x},f))},e.ScrollableContainer=ni,e.SecondaryButton=({...e})=>{const[{colorPalette:t}]=n.useWjecOneTheme();return o.jsx(be,ne({},e,{activeColor:t.secondary,borderColor:e.disabled?"none":t.secondaryDark,color:"#FFFFFF",focusColor:t.secondaryLight,hoverColor:t.secondaryLight,labelColor:t.secondaryDark,labelColorActive:t.secondaryDark,outlineColor:"#FFFFFF"}))},e.SectionHeading=({children:e,color:t,id:r})=>{const a=n.useWjecOneThemeStyles(ai);return o.jsx("h3",{css:o.css([a.sectionHeading,{"--border-left-color":t||""}]),id:r},e)},e.SectionTitle=({children:e,color:t,id:r})=>{const a=n.useWjecOneThemeStyles(ii);return o.jsx("h3",{css:o.css([a.title,{"--color":t}]),id:r},e)},e.Select=e=>{const{blankOption:i,description:c,disabled:l,disabledOptions:s,icon:g,id:d,label:u,name:b,onSelect:p,optionKeyExtractor:I,optionLabelExtractor:h,options:C,placeholder:m,selectedOption:x,status:f,statusMessage:v}=e;it("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)",()=>{const e=new Set;return C.some(t=>!!(Pr(t)&&r.isPrimitiveArray(t.options)&&r.containsDuplicates(t.options))||(!!e.has(t)||(e.add(t),!1)))&&!I},[I,C]),ae("WJEC One Select: You must specify a keyExtractor if the options array contains non-primitive entry types",()=>C.some(e=>{if(Pr(e)){const t=e.options,o=r.isPrimitiveArray(t),n=r.isKeyLabelPairArray(t);return!(o||n||I)}return!(r.isPrimitive(e)||r.isKeyLabelPair(e)||I)}),[I,C]);const y=t.useRef(void 0),[{brand:A,colorPalette:G}]=n.useWjecOneTheme(),Z=t.useRef(void 0),w=a.useId(d),W=`${w}_description`,X=`${w}_status`,k=t.useMemo(()=>x?Dr(x,I,C):"",[I,C,x]);t.useLayoutEffect(()=>{Z.current&&(Z.current.value=k)},[k]),t.useLayoutEffect(()=>{y.current?.style?.setProperty("--offset-top",`${Z.current.offsetTop}px`)});const B=t.useMemo(()=>{switch(f){case"error":return{background:G.errorBackground,border:G.error};case"success":return{background:G.successBackground,border:G.success};case"warning":return{background:G.warningBackground,border:G.warning};default:return{}}},[A,f]),j=(e,t)=>{const n=Dr(e,I,C);return o.jsx("option",{disabled:s?.includes(e),key:n,value:n},r.isKeyLabelPair(e)?e.label:r.extractContent(e,h,t))},R="error"!==f&&"warning"!==f||!v?W:X,F=n.useWjecOneThemeStyles(Mr),Y=t.useMemo(()=>({"--background-color":B.background,"--border-color":B.border,"--margin-top":u&&"4px","--padding-left":g&&"40px"}),[g,u,B]);return o.jsx("label",{css:F.label,htmlFor:w,"data-disabled":l},u,o.jsx("select",{"aria-describedby":R,css:F.select,defaultValue:k,disabled:l,id:w,name:b,onChange:({target:{value:e}})=>{const t=((e,t,o)=>{let r;return o.find(n=>{if(Pr(n))r=n.options.find(r=>Dr(r,t,o)===e);else{const a=Dr(n,t,o);r=a===e?n:void 0}return void 0!==r}),r})(e,I,C);r.isCallableFunction(p)&&p(t)},ref:Z,style:Y},m&&o.jsx("option",{disabled:!0,hidden:!0,value:""},m),i&&o.jsx("option",{value:""}),C.map((e,t)=>Pr(e)?o.jsx("optgroup",{key:e.key??e.label,label:e.label},e.options.map(e=>j(e,t))):j(e,t))),g&&o.jsx(g,{"aria-hidden":!0,css:F.icon,"data-testid":"icon","data-disabled":l,ref:y}),o.jsx(Ht,{id:W},c),o.jsx(Kt,{id:X,status:f},v))},e.StylePalette=j,e.SubParagraph=({children:e,color:t,id:r})=>{const a=n.useWjecOneThemeStyles(ci);return o.jsx("p",{css:o.css([a.subParagraph,{"--color":t}]),id:r},e)},e.SubTitle=({children:e,id:t})=>{const r=n.useWjecOneThemeStyles(li);return o.jsx("h2",{css:r.heading,id:t},e)},e.SuccessCard=e=>{const[{colorPalette:t}]=n.useWjecOneTheme();return o.jsx(bn,ne({},e,{borderColor:t.success,icon:io,iconColor:t.success,titleColor:t.successDark}))},e.SuccessNotification=ka,e.Table=({columnOptions:e,columns:r,data:a,id:i,keyExtractor:c=e=>a.indexOf(e),onPressRow:l,onSort:s,rowOptions:g,selectedRow:d,sortable:u,sorted:b,sortedColumn:p,sortedDirection:I="ascending"})=>{const h=t.useMemo(()=>r.filter(e=>e).filter(e=>u&&!1!==e?.sortable||!1!==u&&e?.sortable),[r,u]),C=h.length>0,[m,x]=yi(p||r.indexOf(h[0])),[f,v]=yi(I),y=t.useMemo(()=>"string"==typeof m?r.findIndex(e=>e?.name===m):m,[r,m]),A=t.useMemo(()=>C&&!b?((e,t,o)=>{const{sortableValue:r}=t,n=[...e];return n.sort((e,n)=>{const a=r?r(e):pi(t,e),i=r?r(n):pi(t,n);return void 0===a?1:void 0===i?-1:("number"==typeof a&&"number"==typeof i?a-i:a?.toString()?.localeCompare(i?.toString()))*("ascending"===o?1:-1)}),n})(a,r[y],f):a,[r,a,C,b,y,f]),G=t.useMemo(()=>C||b&&y>-1||r.some(({title:e})=>e),[r,C,b,y]);t.useEffect(()=>{b||s?.(r[y]?.name,y,f)},[b,y,f]);const Z=n.useWjecOneThemeStyles(bi);return o.jsx("div",{css:Z.container},o.jsx("table",{css:o.css([Z.table,{"--column-gap":e?.gap,"--row-gap":g?.gap}]),id:i},o.jsx("colgroup",null,r.map((e,t)=>e&&o.jsx("col",{key:`column_definition_${e.name||t}`}))),G&&o.jsx("thead",null,o.jsx("tr",null,r.map((e,t)=>e&&o.jsx(fi,{column:e,id:i?[i,"column",e.name||t+1].join("_"):void 0,isSortable:h.includes(e),isSorted:t===y,key:`column_${e.name||t}_header`,onPress:()=>(e=>{const t=r.indexOf(e);h.includes(e)&&!b&&(x(t),v(e=>t===y&&"ascending"===e?"descending":"ascending")),e.onPressHeader?.()})(e),sortedDirection:f,styles:Z})))),o.jsx("tbody",null,A.map(t=>{const n=c(t);return o.jsx(vi,{isInteractive:g?.isInteractive?.(t)??"function"==typeof l,isSelected:t===d,key:`row_${n}`,onPress:()=>l?.(t),rowOptions:g,styles:Z},r.map((r,a)=>r&&o.jsx(xi,{columnOptions:e,column:r,key:`row_${n}_column_${r.name||a}`,row:t,styles:Z})))}))))},e.Tabs=({ariaLabel:e,backgroundStyle:a="filled",disabledTabs:i=[],id:l,keyExtractor:s,labelExtractor:g,onSelect:d,selectedTab:u,selectedTabColor:b,tabs:p})=>{const[I,h]=t.useState(()=>r.getSelected(u,p)),C=t.useRef(void 0),m=t.useRef(void 0),x=n.useWjecOneThemeStyles(Ai),f=t.useMemo(()=>i.map(e=>r.isKeyLabelPair(e)?e.key:r.extractKey(e,s,p.indexOf(e))),[i]),v=t.useMemo(()=>r.isKeyLabelPair(I)?I.key:r.extractKey(I,s,p.indexOf(I)),[I]);ae("WJEC-One Tabs: You must specify a keyExtractor if the tabs array contains non-primitive entry types",()=>!r.isPrimitiveArray(p)&&!r.isKeyLabelPairArray(p)&&!s,[s,p]),t.useEffect(()=>{const e=r.getSelected(u,p);e!==u&&h(e)},[u,p]),t.useEffect(()=>{const e=C.current?.querySelector('[data-selected="true"]');e?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[I]);const y=c.useAnimation(m,[{height:"{fromHeight:height}",width:"{fromWidth:width}"},{height:"{toHeight:height}",width:"{toWidth:width}"}],{duration:150,pseudoElement:"::before"}),A=c.useAnimation(m,[{left:"{fromLeft:left}"},{left:"{toLeft:left}"}],{duration:150,easing:"ease-in-out",pseudoElement:"::before"});return o.jsx("div",{"aria-label":e,ref:C,css:o.css([x.container,"filled"===a&&x.containerFilled,"transparent"===a&&x.containerTransparent,b&&{"--highlight-color":b}]),id:l},o.jsx("div",{css:x.innerContainer,ref:m},p.map((e,t)=>{const n=(r.isKeyLabelPair(e)?e.key:r.extractKey(e,s,t)).toString(),i=n===v,c=f.includes(n);return o.jsx("button",{key:n,css:o.css([x.tab,"filled"===a&&x.tabFilled,"transparent"===a&&x.tabTransparent]),disabled:c,onClick:({target:t})=>((e,t)=>{const o=C.current.querySelector('[data-selected="true"]');t.setAttribute("data-animating","true"),o.removeAttribute("data-selected"),t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"});const{finished:n}=y.play({fromHeight:"transparent"===a?"2px":`${o.offsetHeight}px`,fromWidth:`${o.offsetWidth}px`,toHeight:"transparent"===a?"2px":`${t.offsetHeight}px`,toWidth:`${t.offsetWidth}px`}),{finished:i}=A.play({fromLeft:`${o.offsetLeft}px`,toLeft:`${t.offsetLeft}px`});Promise.all([n,i]).then(()=>{t.removeAttribute("data-animating"),t.setAttribute("data-selected","true"),h(e)}),r.isCallableFunction(d)&&d(e)})(e,t),type:"button","data-selected":i},r.isKeyLabelPair(e)?e.label:r.extractContent(e,g,t))})))},e.TextArea=({ariaDescription:e,ariaLabel:a,disabled:i,height:c="auto",id:l,label:s,maxCharacters:g,maxHeight:d="100%",maxWidth:u="100%",onChange:b,placeholder:p,readonly:I,resizable:h=!1,showCount:C=!0,value:m="",width:x="100%"})=>{const[f,v]=t.useState(m),y=we(e);t.useEffect(()=>{m!==f&&v(m)},[m]);const A=n.useWjecOneThemeStyles(Ur),G=((e,{excludeIfFalse:o,excludeIfFalsy:r,excludeIfNull:n=!0,excludeIfUndefined:a=!0}={})=>t.useMemo(()=>Object.entries(e).reduce((e,[t,i])=>o&&!1===i||r&&!i||n&&null===i||a&&void 0===i?e:{...e,[Qr(t)]:String(i)},{}),[e]))({"data-current-value-length":f?.length},{excludeIfFalse:!0});return o.jsx("label",ne({"aria-label":a},G,{css:o.css([A.label,C&&o.css("&::after{content:attr(data-current-value-length) '",void 0!==g&&`/${g}`,"';}"),{maxWidth:u,width:x}]),"data-max-count":g}),s,o.jsx("textarea",ne({id:l,css:o.css([j.scrollbar,A.textarea,{height:c,maxHeight:d,resize:h?"both":"none"}]),value:f,placeholder:p,onChange:({target:{value:e}})=>{v(e),r.isCallableFunction(b)&&b(e)},readOnly:I,disabled:i,maxLength:g},I?{tabIndex:-1}:{},y)))},e.Toggle=({ariaLabel:e,disabled:i,id:c,label:l,on:s=!1,onChange:g,size:d="default",value:u})=>{const b=t.useRef(void 0),p=a.useId(c),I=en("(prefers-reduced-motion)");t.useLayoutEffect(()=>{b.current?.setAttribute("data-state",s?"on":"off")},[]),((e,o)=>{const r=t.useRef(!0);t.useLayoutEffect(()=>{let t;return r.current?r.current=!1:t=e(),t},o),tn(()=>{r.current=!0})})(()=>{const e="on"===b.current?.getAttribute("data-state");s!==e&&(b.current?.setAttribute("data-state",s?"on":"off"),I||h.play(void 0,{direction:e?"reverse":"normal"}))},[s,I]);const h=bt(b,[{height:"calc(var(--toggle-dimensions) - 2px)",left:0,margin:"calc(var(--toggle-margin) + 1px)",width:"calc(var(--toggle-dimensions) - 2px)"},{height:"var(--toggle-dimensions)",margin:"var(--toggle-margin)",marginLeft:"calc(var(--toggle-margin) + 1px)",width:"calc(var(--track-width) - calc(var(--toggle-margin) * 2))"},{left:"unset",height:"var(--toggle-dimensions)",margin:"var(--toggle-margin)",right:"calc(100% - var(--track-width))",width:"var(--toggle-dimensions)"}],{duration:200,easing:"ease-in-out",iterations:1,pseudoElement:"::after"}),C=()=>{const e="true"===b.current?.getAttribute("aria-pressed");b.current?.setAttribute("aria-pressed",(!e).toString()),b.current?.setAttribute("data-state",e?"off":"on"),I||h.play(void 0,{direction:e?"reverse":"normal"}),r.isCallableFunction(g)&&g(!e)},m=n.useWjecOneThemeStyles(on),{buttonProps:x}=a.useButton({"aria-label":e,"aria-pressed":s,id:p,isDisabled:i,onPress:C},b);return o.jsx("div",{css:m.container},o.jsx("label",{css:m.label,htmlFor:p,onClickCapture:e=>{i||(e.preventDefault(),C())}},l),o.jsx("button",ne({},x,{css:m.toggleButton,ref:b,"data-size":d}),u))},e.VerificationCodeInput=({description:e,disabled:i,id:c,label:l,maxLength:s=6,onChange:g,placeholder:d="e.g. 123456",showIcon:u=!0,status:b,statusMessage:p})=>{const I=t.useRef(void 0),h=t.useRef(void 0),C=t.useRef(0),m=t.useRef(""),x=a.useId(c),f=`${x}_description`,v=`${x}_status`;t.useEffect(()=>{const e=()=>{document.activeElement===h.current&&(C.current=h.current.selectionEnd)};return document.addEventListener("selectionchange",e),()=>{document.removeEventListener("selectionchange",e)}},[]),t.useLayoutEffect(()=>{I.current?.style?.setProperty("--offset-top",`${h.current.offsetTop}px`)});const y=n.useWjecOneThemeStyles(ln),A="error"!==b&&"warning"!==b||!p?f:v;return o.jsx("label",{css:y.label,"data-disabled":i},l,u&&o.jsx(cn,{"aria-hidden":!0,css:y.icon,"data-disabled":i,ref:I}),o.jsx("input",{"aria-describedby":A,autoComplete:"one-time-code",css:y.input,disabled:i,id:x,inputMode:"numeric",maxLength:s,onChange:({target:e})=>{const{value:t}=e;r.isCallableFunction(g)&&g(t)},onInput:()=>{if(/[^0-9]/g.test(h.current.value)){const e=h.current.value.replace(/[^0-9]/g,""),t=e.length-m.current.length,o=C.current+t;h.current.value=e,h.current.setSelectionRange(o,o)}C.current=h.current.selectionEnd,m.current=h.current.value},placeholder:d,ref:h,type:"text","data-status":b}),o.jsx(Ht,{id:f},e),o.jsx(Kt,{id:v,status:b},p))},e.WarningCard=e=>{const[{colorPalette:t}]=n.useWjecOneTheme();return o.jsx(bn,ne({},e,{borderColor:t.warning,icon:so,iconColor:t.warning,titleColor:t.warningDark}))},e.useAnimation=bt,e.useEventListener=Rt,e.useFocusTrap=(e,o={})=>{const{dependencies:n=[],focusElement:a=0,returnFocusTo:i=document.activeElement,shouldTrapFocus:c=!0}=o,l=t.useRef([]),s="function"==typeof c?c():c;let g;t.useEffect(()=>{let t,o;const n=r.isRefObject(e)?e.current:e;return s&&n&&(g=i,l.current=r.getKeyboardFocusableElements(n),o=new MutationObserver(e=>{for(const t of e)("childList"===t.type||"attributes"===t.type&&["aria-hidden","disabled"].includes(t.attributeName))&&(l.current=r.getKeyboardFocusableElements(n))}),o.observe(n,{attributes:!0,childList:!0,subtree:!0}),t=e=>{const t=e.code||e.key,o=l.current[0],r=l.current[l.current.length-1];"Tab"===t&&(e.shiftKey||document.activeElement!==r||(o.focus(),e.preventDefault()),e.shiftKey&&document.activeElement===o&&(r.focus(),e.preventDefault()))},"number"==typeof a&&l.current[a]?.focus(),"string"==typeof a&&l.current.find(e=>e.matches(a))?.focus(),a instanceof HTMLElement&&l.current.includes(a)&&a.focus(),document.documentElement.addEventListener("keydown",t)),()=>{document.documentElement.removeEventListener("keydown",t),g?.focus(),o&&o.disconnect()}},[e,s,...n])},e.useIsMounted=()=>{const e=t.useRef(!1);return t.useEffect(()=>(e.current=!0,()=>{e.current=!1})),e},e.useKeydownEvent=ta,e.useMediaQuery=en,e.useRefById=e=>{const o=t.useRef();return t.useLayoutEffect(()=>{const t=document.getElementById(e);o.current=t??void 0},[e]),o}});
44
+ `;var _n={name:"327rn5",styles:"border-radius:4px;height:24px;"};const ea=({colorPalette:e})=>({largeProgress:_n,progress:o.css("--background-color:",e.neutral,";--color:",e.primary,";appearance:none;border-radius:2px;height:4px;overflow:hidden;position:relative;width:100%;&::-webkit-progress-bar{background-color:var(--background-color);border-radius:4px;opacity:1;}&::-moz-progress-bar{background-color:var(--color);border-radius:4px;transition:width 0.3s ease-out;}&::-webkit-progress-value{background-color:var(--color);border-radius:4px;transition:width 0.3s ease-out;}"),progressIndeterminate:o.css("--background-color:",e.neutral,";--color:",e.secondary,";background-color:var(--background-color);border-radius:2px;color:var(--color);height:4px;overflow:hidden;position:relative;width:100%;&::before,&::after{background-color:var(--color);border-radius:2px;bottom:0;content:'';left:0;position:absolute;top:0;}&::after{animation:",$n," 2.1s cubic-bezier(0.65,0.815,0.735,0.395) infinite;}&::before{animation:",qn," 2.1s cubic-bezier(0.165,0.84,0.44,1) infinite 1.15s;}")}),ta=(e,t,o)=>{Rt("keydown",o=>{const r=(o.code||o.key)?.toLowerCase();r===e?.toLowerCase()&&t(o)},o)};var oa={name:"175zf7p",styles:"height:24px;position:absolute;width:24px;"},ra={name:"1jnbkft",styles:"flex-shrink:0;height:16px;width:16px;& > path{stroke-width:5;}"},na={name:"1i9s3a8",styles:"color:var(--icon-color);flex-shrink:0;height:24px;width:24px;"},aa={name:"ib6ufm",styles:"color:var(--color);font-size:16px;font-weight:600;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:pre-line;"};const ia=({colorPalette:e})=>({autoClose:oa,autoCloseCircle:o.css("--auto-close-offset:0;fill:transparent;stroke:",e.neutralLight,";stroke-dasharray:100;stroke-dashoffset:var(--auto-close-offset);stroke-width:2;transform:rotate(-90deg);transform-origin:50%;"),closeButton:o.css("align-items:center;background-color:transparent;border:none;color:",e.neutralLight,";cursor:pointer;display:flex;flex-shrink:0;height:24px;justify-content:center;margin:-8px -8px 0 0;padding:0;width:24px;"),closeIcon:ra,container:o.css("--border-color:",e.border,";--icon-color:",e.border,";--max-width:375px;--position:relative;--title-color:",e.font,";",H,";background-color:#ffffff;border:1px solid var(--border-color);border-radius:",j.borderRadius,";box-shadow:",j.dropShadow,";display:flex;font-family:'Montserrat',sans-serif;font-size:16px;gap:16px;line-height:24px;max-width:var(--max-width);padding:16px;position:var(--position);z-index:999;&[data-open=\"false\"]{display:none;}"),content:o.css("color:",e.neutralDark,";display:flex;flex-direction:column;flex-grow:1;margin:0;white-space:pre-line;word-break:break-word;"),icon:na,title:aa});var ca;function la(){return la=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},la.apply(null,arguments)}var sa=function(e,t){return u.createElement("svg",la({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),ca||(ca=u.createElement("path",{d:"M30 10 10 30m0-20 20 20",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},ga=t.forwardRef(sa);const da=({message:e,position:i,positionType:c,ariaDescription:l,ariaCloseLabel:s="close",autoClose:g,borderColor:d,children:u,icon:b,iconColor:p,id:I,maxWidth:h,onClose:C,onOpen:m,open:x=!0,openedTimestamp:f,showImmediately:v,title:y,titleColor:A,variant:G})=>{it('WJEC One Notification: The "message" prop has been deprecated. Provide notification content via component children instead',()=>void 0!==e,[e]),it('WJEC One Notification: The "position" prop has been deprecated. Positioning should be determined by parent container',()=>void 0!==i,[i]),it('WJEC One Notification: The "positionType" prop has been deprecated. Positioning should be determined by parent container',()=>void 0!==c,[c]),ae("WJEC-One Notification: Icon must be a valid SVGComponent",()=>b&&!r.isSvgComponent(t.createElement(b)),[b]);const Z=t.useRef(void 0),w=t.useRef(void 0),W=t.useRef(void 0),X=t.useRef(!1),k=t.useMemo(()=>void 0!==f?g-(Date.now()-f):g,[g,f]),B=t.useMemo(()=>-1*(100-k/g*100),[g,k]),j=()=>{F.pause(),H.cancel(),Y.play()},R=en("(prefers-reduced-motion)"),F=bt(Z,[{strokeDashoffset:"-100"}],{duration:k,fill:"forwards",iterations:1,onFinished:j,playImmediately:x&&g>0}),Y=bt(W,[{opacity:0,transform:R?void 0:"translateY(-60px)"}],{duration:500,easing:"ease-in",fill:"forwards",iterations:1,onFinished:()=>{W.current?.setAttribute("data-open","false"),C?.()}}),H=bt(W,[{opacity:0,transform:R?void 0:"translateY(-60px)"},{opacity:1,transform:R?void 0:"translateY(0)"}],{duration:500,easing:"ease-out",fill:"forwards",iterations:1,onFinished:m,onStarted:()=>W.current?.setAttribute("data-open","true")});t.useLayoutEffect(()=>{x?(Y.cancel(),v?W.current?.setAttribute("data-open","true"):H.play()):X.current&&j(),X.current=!0},[x]);const{buttonProps:V}=a.useButton({onPress:j},w),N=we(l),J=n.useWjecOneThemeStyles(ia);return o.jsx("div",ne({css:o.css([J.container,i,{"--border-color":d,"--icon-color":p,"--max-width":h,"--position":c,"--title-color":A}]),id:I,ref:W,"data-notification-type":G},N),b&&o.jsx(b,{css:J.icon,"aria-hidden":!0}),o.jsx("div",{css:J.content},y&&o.jsx("h3",{css:o.css([J.title,{"--color":A}])},y),e||u),o.jsx("button",ne({"aria-label":s,css:J.closeButton,ref:w},V),x&&g>0&&o.jsx("svg",{css:J.autoClose,viewBox:"0 0 20 20","aria-hidden":!0},o.jsx("circle",{css:o.css([J.autoCloseCircle,{"--auto-close-offset":B}]),cx:"10",cy:"10",r:"9",ref:Z,pathLength:"100"})),o.jsx(ga,{css:J.closeIcon,"aria-hidden":!0})))};var ua,ba;function pa(){return pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},pa.apply(null,arguments)}var Ia=function(e,t){return u.createElement("svg",pa({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),ua||(ua=u.createElement("path",{opacity:.12,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",fill:"currentColor"})),ba||(ba=u.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.719.191 1.63.191h16.449c.91 0 1.366 0 1.629-.191a1 1 0 0 0 .406-.705c.034-.324-.194-.718-.65-1.506L13.385 3.892c-.455-.785-.682-1.178-.979-1.31a1 1 0 0 0-.812 0c-.297.132-.524.525-.979 1.31Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},ha=t.forwardRef(Ia);const Ca=({title:e="Error",...t})=>{const[{colorPalette:r}]=n.useWjecOneTheme();return o.jsx(da,ne({},t,{borderColor:b.error,icon:ha,iconColor:r.error,title:e,titleColor:b.error,variant:"error"}))};var ma,xa;function fa(){return fa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},fa.apply(null,arguments)}var va=function(e,t){return u.createElement("svg",fa({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),ma||(ma=u.createElement("path",{opacity:.12,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",fill:"currentColor"})),xa||(xa=u.createElement("path",{d:"M12 16v-4m0-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"})))},ya=t.forwardRef(va);const Aa=({title:e="Information",...t})=>{const[{colorPalette:r}]=n.useWjecOneTheme();return o.jsx(da,ne({},t,{borderColor:r.primary,icon:ya,iconColor:r.primary,title:e,titleColor:r.primary,variant:"info"}))};var Ga,Za;function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},wa.apply(null,arguments)}var Wa=function(e,t){return u.createElement("svg",wa({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ga||(Ga=u.createElement("path",{opacity:.12,d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z",fill:"currentColor"})),Za||(Za=u.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"})))},Xa=t.forwardRef(Wa);const ka=({title:e="Success",...t})=>{const[{colorPalette:r}]=n.useWjecOneTheme();return o.jsx(da,ne({},t,{borderColor:b.success,icon:Xa,iconColor:r.success,title:e,titleColor:b.success,variant:"success"}))};var Ba={name:"14loat4",styles:"align-items:flex-end;display:flex;gap:16px;justify-content:space-between;&:not(:first-child){margin-top:40px;}"},ja={name:"14de89l",styles:"align-items:flex-start;display:flex;gap:16px;&:not(:first-child){margin-top:40px;}"},Ra={name:"1b1vd94",styles:"align-items:center;display:flex;flex-grow:1;justify-content:flex-end;"};const Fa=({colorPalette:e})=>({closeButton:o.css("background-color:transparent;border:none;cursor:pointer;display:inline-flex;margin-left:auto;outline-color:",e.primary,";padding:0;"),closeIcon:o.css("color:",e.neutralDark,";width:40px;"),content:o.css(j.scrollbar,";flex-grow:1;overflow:auto;&:not(:first-child){margin-top:40px;}"),description:o.css("color:",e.neutralLight,";&:not(:first-child){margin-top:8px;}"),footer:Ba,header:ja,modal:o.css("--max-height:90vh;--max-width:60vw;--min-height:200px;--min-width:200px;--padding:32px;",H,";border:none;border-radius:",j.borderRadiusMedium,";box-shadow:",j.dropShadow,";display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;max-height:var(--max-height);max-width:var(--max-width);min-height:var(--min-height);min-width:var(--min-width);outline:none;padding:var(--padding);&:not([open]){left:-99999px;position:fixed;top:-99999px;user-select:none;visibility:hidden;}&::backdrop{backdrop-filter:blur(5px);background-color:rgba(241,243,244,0.80);}"),otherActions:Ra,title:o.css("color:",e.neutralDark,";font-size:28px;font-weight:400;line-height:40px;margin:0;"),titleIcon:o.css("color:",e.secondaryDark,";flex-shrink:0;width:40px;& > path{stroke-width:1;}")});var Ya;function Ha(){return Ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ha.apply(null,arguments)}var Va,Na=function(e,t){return u.createElement("svg",Ha({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ya||(Ya=u.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.293 5.293a1 1 0 0 1 1.414 0l6 6a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414-1.414L13.586 12 8.293 6.707a1 1 0 0 1 0-1.414Z",fill:"currentColor"})))},Ja=t.forwardRef(Na);function La(){return La=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},La.apply(null,arguments)}var za=function(e,t){return u.createElement("svg",La({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Va||(Va=u.createElement("path",{d:"M8 12h8m6 0c0 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"})))},Oa=t.forwardRef(za);const Sa=({colorPalette:e})=>({heading:o.css("--color:",e.font,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:28px;font-weight:400;line-height:40px;margin:0 0 30px 0;")});var Ea;function Ta(){return Ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},Ta.apply(null,arguments)}var Ma=function(e,t){return u.createElement("svg",Ta({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ea||(Ea=u.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"})))},Da=t.forwardRef(Ma);var Pa={name:"1qje5jb",styles:"margin:0 15px;text-align:center;user-select:none;width:50px;"},Qa={name:"1x05hl3",styles:"opacity:0.33;pointer-events:none;"},Ua={name:"1ixbp0l",styles:"pointer-events:none;"};const Ka=({colorPalette:e})=>({compact:Pa,container:o.css(H,";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:o.css("align-items:center;border-radius:",j.borderRadius,";color:",e.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:Qa,optionNextPrevious:o.css("border:1px solid ",e.border,";"),optionSelected:o.css("background-color:",e.primary,";color:#FFFFFF;pointer-events:none;"),optionSeparator:Ua});var $a={name:"gp3k44",styles:"border-radius:4px;font-weight:600;padding:2px 8px;"};const qa=({colorPalette:e})=>({pill:o.css("align-items:center;background-color:",e.neutral,";border-radius:12px;color:",e.neutralDark,";display:inline-flex;font-size:12px;justify-content:center;line-height:16px;padding:4px 20px;vertical-align:middle;white-space:nowrap;"),smallPill:$a}),_a=({ariaLabel:e,children:n,isLoadingStyles:a,onOpen:i,popupWindow:c})=>{const[l,s]=t.useState(!1);return t.useEffect(()=>{l||a||(r.isCallableFunction(i)&&i(c),s(!0))},[a]),o.jsx(t.Fragment,null,n,a&&o.jsx("div",{"aria-label":e,css:ti.wrapper},o.jsx(Kn,null)))},ei=({children:e,height:n=500,id:a="",onClose:i,onOpen:c,open:s,position:g={x:50,y:200},title:d="",width:u=500})=>{const[b,p]=t.useState(),I=t.useRef(void 0),h=t.useRef(document.querySelectorAll("[data-emotion]")),[C,m]=t.useState(!1),[x,f]=t.useState(s),[v,y]=t.useState(!1);t.useEffect(()=>{const e=document.querySelectorAll("[data-emotion]");x&&I.current&&Array.from(e).some((e,t)=>e!==h.current[t])&&(h.current=e,G())}),t.useEffect(()=>()=>I.current&&I.current.close(),[]),t.useEffect(()=>{x&&Z(),!I.current||I.current.closed||x||I.current.close()},[e,x]),t.useEffect(()=>{I.current&&(I.current.document.title=d)},[d]),t.useEffect(()=>f(s),[s]);const A=()=>{m(!1),f(!1),y(!1),r.isCallableFunction(i)&&i()},G=()=>{const e=I.current.document,t=e.head,o=t.querySelectorAll("style");Array.from(o).forEach(e=>t.removeChild(e)),h.current.forEach(({textContent:o,sheet:r})=>{const n=e.createElement("style");if(n.appendChild(e.createTextNode("")),t.appendChild(n),o)n.appendChild(e.createTextNode(o));else{const e=n.sheet;[].forEach.call(r.cssRules,t=>{e.insertRule(t.cssText)})}}),requestAnimationFrame(()=>{m(!0)})},Z=()=>{if(!x||!I.current||I.current.closed)if(m(!1),I.current=window.open("",a,`left=${g.x},height=${n},top=${g.y},width=${u}`),I.current){const e=I.current.document.createElement("main");e.setAttribute("id",a),p(e),I.current.onbeforeunload=A,I.current.document.body.appendChild(e),I.current.document.title=d,requestAnimationFrame(()=>{G(),f(!0),y(!0)})}else r.developerError("A PopupWindow failed to open")};return x&&v&&I.current&&b?l.createPortal(o.jsx(_a,{isLoadingStyles:!C,onOpen:c,popupWindow:I.current},e),b):null},ti={wrapper:{name:"z2hlcz",styles:"background-color:#fff;bottom:0;left:0;padding:30px 10px;position:absolute;right:0;top:0;"}},oi=({ariaLabel:e,children:n,footer:a=t.Fragment,header:i=t.Fragment,id:c,isNested:l,margin:s="auto",onLayout:g,orientation:d="portrait",parentFooterHeight:u=0,parentHeaderHeight:b=0,verticalAlign:p="top"})=>{const[I,h]=t.useState("auto"),[C,m]=t.useState("auto"),x=t.useRef(void 0),f=t.useRef(void 0),v=t.useMemo(()=>("auto"===I?0:I)+("auto"===C?0:C)+u+b,[I,C,u,b]);return t.useEffect(()=>{x.current&&h(x.current.offsetHeight),f.current&&m(f.current.offsetHeight)},[i,a,f.current,x.current]),t.useEffect(()=>{"auto"!==I&&"auto"!==C&&r.isCallableFunction(g)&&g()},[I,C]),o.jsx(t.Fragment,null,!l&&o.jsx(o.Global,{styles:o.css("@media print{*{-webkit-print-color-adjust:exact;}@page{margin:",s,";size:",d,";}}")}),o.jsx("table",{"aria-label":e,cellPadding:0,cellSpacing:0,css:ri.printLayoutTable,id:c},o.jsx("thead",null,o.jsx("tr",null,o.jsx("td",{css:ri.printLayoutTableCell,style:{height:C}},o.jsx("header",{ref:f,css:o.css([ri.header,!l&&ri.printHeader])},o.jsx(i,null))))),o.jsx("tbody",null,o.jsx("tr",null,o.jsx("td",{css:o.css([ri.printLayoutTableCell,ri.content]),style:{height:l?`calc(100vh - ${v}px)`:"auto",verticalAlign:p}},t.Children.map(n,e=>e&&e.type&&("PrintLayout"===e.type.displayName||"PrintLayout"===e.type.name)?t.cloneElement(e,{...e.props,isNested:!0,parentFooterHeight:I,parentHeaderHeight:C}):e)))),o.jsx("tfoot",null,o.jsx("tr",null,o.jsx("td",{css:ri.printLayoutTableCell,style:{height:I}},o.jsx("footer",{ref:x,css:o.css([ri.footer,!l&&ri.printFooter])},o.jsx(a,null)))))))};oi.displayName="PrintLayout";const ri={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:o.css(H,";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;"}},ni=t.forwardRef(({children:e,element:t,horizontal:r=!1,id:n,vertical:a=!0},i)=>o.jsx(t||"div",{css:[j.scrollbar,{overflowX:r?"auto":"hidden",overflowY:a?"auto":"hidden"}],id:n,ref:i},e)),ai=({colorPalette:e})=>({sectionHeading:o.css("--border-left-color:",e.secondary,";border-left:2px solid var(--border-left-color);color:",e.font,";font-family:'Montserrat',sans-serif;font-size:14px;font-weight:500;line-height:20px;margin:0;padding-left:7px;")}),ii=({colorPalette:e})=>({title:o.css("--color:",e.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;")}),ci=({colorPalette:e})=>({subParagraph:o.css("--color:",e.font,";color:var(--color);font-family:'Montserrat',sans-serif;font-size:12px;font-weight:400;line-height:20px;margin:0;")}),li=({colorPalette:e})=>({heading:o.css("color:",e.font,";font-family:'Montserrat',sans-serif;font-size:24px;font-weight:400;line-height:40px;margin:0 0 30px 0;")});var si={name:"1vuy4hm",styles:"padding:0 calc(var(--column-gap,16px) / 2);text-align:var(--align,left);vertical-align:middle;width:var(--width,auto);&:first-of-type{padding-left:0;}&:last-of-type{padding-right:0;}"},gi={name:"k008qs",styles:"display:flex;"},di={name:"5xt1kf",styles:"align-items:center;display:flex;flex-wrap:nowrap;gap:8px;&:not(:empty){min-height:32px;}"},ui={name:"5h0m38",styles:"display:inline-flex;flex-direction:column;"};const bi=({colorPalette:e})=>({cell:si,container:gi,header:o.css("color:",e.neutralDark,';font-weight:500;padding-top:0;&[data-sortable="true"]{cursor:pointer;}'),headerContainer:di,row:o.css("--highlight-color:",e.highlight,";border-radius:calc(",j.borderRadius,' / 2);&[data-interactive="true"][data-highlight="hover"]:hover,&[data-highlight="hover"][data-selected="true"],&[data-highlight="selected"][data-selected="true"]{background-color:var(--highlight-color);box-shadow:0 0 0 8px var(--highlight-color);}&[data-interactive="true"]{cursor:pointer;}'),sortableIcon:o.css("color:",e.border,';width:20px;& > path{stroke-width:2.5;}&[data-active="true"]{color:',e.neutralDark,";}"),sortableIndicators:ui,table:o.css("border-spacing:0 var(--row-gap,8px);color:",e.font,";flex-basis:100%;font-family:'Montserrat',sans-serif;font-size:16px;line-height:24px;margin:calc(var(--row-gap,8px) * -1) 0;")}),pi=(e,t)=>{const{displayValue:o}=e;return"function"==typeof o?o(t):o};var Ii;function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},hi.apply(null,arguments)}var Ci=function(e,t){return u.createElement("svg",hi({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ii||(Ii=u.createElement("path",{d:"m18 15-6-6-6 6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},mi=t.forwardRef(Ci);const xi=t.memo(({columnOptions:e,column:t,row:r,styles:n})=>{const a="max"===t.width?"100%":"min"===t.width?"1px":t.width;return o.jsx("td",{css:o.css([n.cell,{"--align":t.align||e?.align,"--width":a}])},pi(t,r))}),fi=({column:e,id:t,isSortable:r,isSorted:n,onPress:a,sortedDirection:i,styles:c})=>o.jsx("th",{"aria-sort":n?i:void 0,css:o.css([c.cell,c.header]),id:t,onClick:a,scope:"col","data-sortable":r},o.jsx("div",{css:c.headerContainer},(r||n)&&o.jsx("span",{css:c.sortableIndicators},o.jsx(mi,{css:c.sortableIcon,"data-active":n&&"ascending"===i}),o.jsx(Or,{css:c.sortableIcon,"data-active":n&&"descending"===i})),e.title)),vi=({children:e,isInteractive:t,isSelected:r,onPress:n,rowOptions:a,styles:i})=>o.jsx("tr",{css:o.css([i.row,{"--highlight-color":a?.highlightColor}]),onClick:()=>{t&&n?.()},"data-highlight":a?.highlight,"data-interactive":t,"data-selected":r},e),yi=e=>{const o=t.useRef(e),[r,n]=t.useState(e),a=t.useRef(e);e!==o.current&&(o.current=e,a.current=e);return[a.current,e=>{const t="function"==typeof e?e(a.current):e;a.current=t,n(t)}]},Ai=({colorPalette:e})=>({container:o.css("--highlight-color:",e.secondary,";flex-shrink:0;max-width:100%;position:relative;"),containerFilled:o.css("--highlight-color:",e.primary,";border-radius:",j.borderRadius,";background-color:",e.neutral,";& > div{padding:10px;&::before{border-radius:",j.borderRadius,";top:10px;}}"),containerTransparent:o.css("& > div{padding-bottom:1px;}&::before{border-bottom:1px solid ",e.border,";content:'';left:0;position:absolute;top:28px;width:100%;}"),innerContainer:o.css(j.scrollbar,";display:flex;overflow-x:auto;position:relative;&::before{background-color:var(--highlight-color);content:'';height:2px;position:absolute;top:27px;}"),tab:o.css("align-items:center;background-color:transparent;border:none;color:",e.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;&:not(:last-child){margin-right:20px;}&:disabled{opacity:0.5;}&[data-selected="true"]{font-weight:500;}'),tabFilled:o.css("border-radius:",j.borderRadius,';padding:5px 10px;&[data-selected="true"]:not([data-animating]){background-color:var(--highlight-color);color:#fff;}&:hover:not([data-animating]):not([data-selected="true"]){background-color:',e.border,";}"),tabTransparent:o.css('padding:4px 0;&[data-selected="true"]:not([data-animating]){&::after{background-color:var(--highlight-color);border-radius:',j.borderRadius,";content:'';height:2px;left:0;position:absolute;top:calc(100% - 1px);width:100%;}}")});e.Accordion=D,e.Breadcrumb=({breadcrumbs:e,id:a,keyExtractor:i,labelExtractor:c,onClick:l,showCurrent:s=!0})=>{const g=n.useWjecOneThemeStyles(re);return o.jsx("ul",{css:g.list,id:a},e.map((n,a)=>{const d=((e,t)=>r.isKeyLabelPair(e)?e.key:r.extractKey(e,i,t))(n,a),u=a===e.length-1;return o.jsx(t.Fragment,{key:d},(s||!u)&&o.jsx("li",{css:g.listItem},o.jsx("a",{"aria-current":!!u&&"page",css:o.css([g.breadCrumb,!u&&g.hoverEffect],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJyZWFkY3J1bWIuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFCNkQiLCJmaWxlIjoiQnJlYWRjcnVtYi5qc3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsgaXNLZXlMYWJlbFBhaXIsIGV4dHJhY3RDb250ZW50LCBleHRyYWN0S2V5LCBzdmdDb21wb25lbnRUb0RhdGFVUkwsIGlzQ2FsbGFibGVGdW5jdGlvbiB9IGZyb20gJ3dqZWMtb25lL3V0aWxzJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuLy8gQHRyYW5zZm9ybS1wYXRoIC4uL2Fzc2V0cy9pY29ucy9jYXJldF9yaWdodC5zdmdcbmltcG9ydCBDYXJldFJpZ2h0IGZyb20gXCIuLi9hc3NldHMvaWNvbnMvY2FyZXRfcmlnaHQuc3ZnXCI7XG4vLyBAdHJhbnNmb3JtLXBhdGggLi4vYXNzZXRzL2ljb25zL2xpbmVfY29ybmVyX2Rvd25fbGVmdC5zdmdcbmltcG9ydCBMaW5lQ29ybmVyRG93bkxlZnQgZnJvbSBcIi4uL2Fzc2V0cy9pY29ucy9saW5lX2Nvcm5lcl9kb3duX2xlZnQuc3ZnXCI7XG5pbXBvcnQgeyB1c2VXamVjT25lVGhlbWVTdHlsZXMgfSBmcm9tICd3amVjLW9uZS90aGVtZSc7XG4vKipcbiAqIFRoaXMgY29tcG9uZW50IGRpc3BsYXlzIGEgbmF2aWdhdGlvbiB0cmFpbCB0byBoZWxwIHVzZXJzIHRyYWNrIGFuZCBuYXZpZ2F0ZSB0aGVpciBsb2NhdGlvbiB3aXRoaW4gdGhlIGFwcCdzIGhpZXJhcmNoeS5cbiAqL1xuZXhwb3J0IGNvbnN0IEJyZWFkY3J1bWIgPSAoeyBicmVhZGNydW1icywgaWQsIGtleUV4dHJhY3RvciwgbGFiZWxFeHRyYWN0b3IsIG9uQ2xpY2ssIHNob3dDdXJyZW50ID0gdHJ1ZSB9KSA9PiB7XG4gICAgY29uc3QgZ2V0S2V5ID0gKGNydW1iLCBpbmRleCkgPT4gaXNLZXlMYWJlbFBhaXIoY3J1bWIpID8gY3J1bWIua2V5IDogZXh0cmFjdEtleShjcnVtYiwga2V5RXh0cmFjdG9yLCBpbmRleCk7XG4gICAgY29uc3QgaGFuZGxlQ2xpY2sgPSAobGluaykgPT4gKCkgPT4gaXNDYWxsYWJsZUZ1bmN0aW9uKG9uQ2xpY2spICYmIG9uQ2xpY2sobGluayk7XG4gICAgY29uc3Qgc3R5bGVzID0gdXNlV2plY09uZVRoZW1lU3R5bGVzKGdldFN0eWxlcyk7XG4gICAgY29uc3QgcmVuZGVyQnJlYWRjcnVtYiA9IChjcnVtYiwgaW5kZXgpID0+IHtcbiAgICAgICAgY29uc3Qga2V5ID0gZ2V0S2V5KGNydW1iLCBpbmRleCk7XG4gICAgICAgIGNvbnN0IGlzQ3VycmVudFBhZ2UgPSBpbmRleCA9PT0gKGJyZWFkY3J1bWJzLmxlbmd0aCAtIDEpO1xuICAgICAgICByZXR1cm4gKDxSZWFjdC5GcmFnbWVudCBrZXk9e2tleX0+XHJcbiAgICAgICAgeyhzaG93Q3VycmVudCB8fCAhaXNDdXJyZW50UGFnZSkgJiZcbiAgICAgICAgICAgICAgICA8bGkgY3NzPXtzdHlsZXMubGlzdEl0ZW19PlxyXG4gICAgICAgICAgICA8YSBhcmlhLWN1cnJlbnQ9e2lzQ3VycmVudFBhZ2UgPyAncGFnZScgOiBmYWxzZX0gY3NzPXtbc3R5bGVzLmJyZWFkQ3J1bWIsICFpc0N1cnJlbnRQYWdlICYmIHN0eWxlcy5ob3ZlckVmZmVjdF19IGRhdGEtY3VycmVudC1jcnVtYj17aXNLZXlMYWJlbFBhaXIoY3J1bWIpID8gY3J1bWIubGFiZWwgOiBleHRyYWN0Q29udGVudChjcnVtYiwgbGFiZWxFeHRyYWN0b3IsIGluZGV4KX0gaHJlZj0nIycgb25DbGljaz17aXNDdXJyZW50UGFnZSA/IHVuZGVmaW5lZCA6IGhhbmRsZUNsaWNrKGtleSl9PlxyXG4gICAgICAgICAgICAgIHtpc0tleUxhYmVsUGFpcihjcnVtYikgPyBjcnVtYi5sYWJlbCA6IGV4dHJhY3RDb250ZW50KGNydW1iLCBsYWJlbEV4dHJhY3RvciwgaW5kZXgpfVxyXG4gICAgICAgICAgICA8L2E+XHJcbiAgICAgICAgICA8L2xpPn1cclxuICAgICAgPC9SZWFjdC5GcmFnbWVudD4pO1xuICAgIH07XG4gICAgcmV0dXJuICg8dWwgY3NzPXtzdHlsZXMubGlzdH0gaWQ9e2lkfT5cclxuICAgICAge2JyZWFkY3J1bWJzLm1hcChyZW5kZXJCcmVhZGNydW1iKX1cclxuICAgIDwvdWw+KTtcbn07XG5jb25zdCBnZXRTdHlsZXMgPSAoeyBjb2xvclBhbGV0dGUgfSkgPT4gKHtcbiAgICBicmVhZENydW1iOiBjc3MgYFxyXG4gICAgY29sb3I6ICR7Y29sb3JQYWxldHRlLm5ldXRyYWxEYXJrfTtcclxuICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcclxuICAgIGZvbnQtc2l6ZTogMTZweDtcclxuICAgIGxpbmUtaGVpZ2h0OiAxNnB4O1xyXG4gICAgcGFkZGluZzogNHB4IDEycHg7XHJcbiAgICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XHJcbiAgICB0ZXh0LWRlY29yYXRpb24tY29sb3I6IHRyYW5zcGFyZW50O1xyXG5cclxuICAgICY6OmJlZm9yZSB7XHJcbiAgICAgIGNvbnRlbnQ6IGF0dHIoZGF0YS1jdXJyZW50LWNydW1iKTtcclxuICAgICAgZGlzcGxheTogYmxvY2s7XHJcbiAgICAgIGZvbnQtd2VpZ2h0OiA3MDA7XHJcbiAgICAgIGhlaWdodDogMDtcclxuICAgICAgb3ZlcmZsb3c6IGhpZGRlbjtcclxuICAgICAgdmlzaWJpbGl0eTogaGlkZGVuO1xyXG4gICAgfVxyXG4gIGAsXG4gICAgaG92ZXJFZmZlY3Q6IGNzcyBgXHJcbiAgICAmOmhvdmVyIHtcclxuICAgICAgY3Vyc29yOiBwb2ludGVyO1xyXG4gICAgICBmb250LXdlaWdodDogNzAwO1xyXG4gICAgICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTtcclxuICAgICAgdGV4dC1kZWNvcmF0aW9uLWNvbG9yOiAke2NvbG9yUGFsZXR0ZS5uZXV0cmFsRGFya307XHJcbiAgICB9XHJcbiAgYCxcbiAgICBsaXN0OiBjc3MgYFxyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIGZvbnQtZmFtaWx5OiAnTW9udHNlcnJhdCcsIHNhbnMtc2VyaWY7XHJcbiAgICBmb250LXNpemU6IDEycHg7XHJcbiAgICBsaXN0LXN0eWxlOiBub25lO1xyXG4gICAgbWFyZ2luOiAwO1xyXG4gICAgcGFkZGluZzogMDtcclxuICBgLFxuICAgIGxpc3RJdGVtOiBjc3MgYFxyXG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICAgIGRpc3BsYXk6IGZsZXg7XHJcblxyXG4gICAgJjo6YmVmb3JlLCAmOjphZnRlciB7XHJcbiAgICAgIGJhY2tncm91bmQtcmVwZWF0OiBuby1yZXBlYXQ7XHJcbiAgICAgIGJhY2tncm91bmQtc2l6ZTogY29udGFpbjtcclxuICAgICAgaGVpZ2h0OiAxNnB4O1xyXG4gICAgICB3aWR0aDogMTZweDtcclxuICAgIH1cclxuXHJcbiAgICAmOmZpcnN0LW9mLXR5cGU6bm90KDpsYXN0LW9mLXR5cGUpOjpiZWZvcmUge1xyXG4gICAgICBiYWNrZ3JvdW5kLWltYWdlOiAke3N2Z0NvbXBvbmVudFRvRGF0YVVSTCg8TGluZUNvcm5lckRvd25MZWZ0IGNvbG9yPXtjb2xvclBhbGV0dGUucHJpbWFyeURhcmtBY3RpdmV9Lz4pfTtcclxuICAgICAgY29udGVudDogJyc7XHJcbiAgICB9XHJcblxyXG4gICAgJjpub3QoOmxhc3Qtb2YtdHlwZSk6OmFmdGVyIHtcclxuICAgICAgYmFja2dyb3VuZC1pbWFnZTogJHtzdmdDb21wb25lbnRUb0RhdGFVUkwoPENhcmV0UmlnaHQgY29sb3I9e2NvbG9yUGFsZXR0ZS5wcmltYXJ5RGFya0FjdGl2ZX0vPil9O1xyXG4gICAgICBjb250ZW50OiAnJztcclxuICAgIH1cclxuICBgXG59KTtcbiJdfQ== */"),"data-current-crumb":r.isKeyLabelPair(n)?n.label:r.extractContent(n,c,a),href:"#",onClick:u?void 0:(b=d,()=>r.isCallableFunction(l)&&l(b))},r.isKeyLabelPair(n)?n.label:r.extractContent(n,c,a))));var b}))},e.Button=be,e.Card=({ariaDescription:e,borderColor:t,children:r,id:n,padding:a})=>{const i=we(e);return o.jsx("div",ne({css:o.css([We.cardMain,{"--border-color":t,"--padding":a}]),id:n},i),r)},e.Carousel=Qe,e.CheckBox=({ariaLabel:e,checked:i=!1,children:c,description:l,disabled:s,id:g,label:d,labelOverflow:u="wrap",loading:b,onChange:p,size:I="default",status:h,statusMessage:C})=>{const m=a.useId(g),[{brand:x,colorPalette:f}]=n.useWjecOneTheme(),v=n.useWjecOneThemeStyles(To),y=t.useRef(void 0);t.useLayoutEffect(()=>{y.current.checked=i},[i]);const A=t.useMemo(()=>{switch(h){case"error":return{background:f.errorBackground,border:f.error};case"success":return{background:f.successBackground,border:f.success};case"warning":return{background:f.warningBackground,border:f.warning};default:return{}}},[x,h]),G=t.useMemo(()=>({"--background-color":A.background,"--border-color":A.border}),[d,A]);return o.jsx("div",{css:v.container},o.jsx("input",{css:v.checkbox,defaultChecked:i,disabled:s,id:m,onChange:({target:{checked:e}})=>{r.isCallableFunction(p)&&p(e)},ref:y,type:"checkbox","data-loading":b}),o.jsx("label",{"aria-label":e,css:o.css([v.label,"small"===I&&v.labelSmall]),htmlFor:m,onClick:e=>e.stopPropagation(),style:G},b&&o.jsx("div",{css:v.loadingIcon},o.jsx(ce,{color:f.primary,size:"small"===I?"extraSmall":"default"})),(d||c)&&o.jsx("span",{css:v.labelContent,"data-overflow":u},d||c)),o.jsx(Ht,null,l),o.jsx(Kt,{status:h},C))},e.CircularProgress=ce,e.ColorPalette=b,e.ColorPaletteEduqas=p,e.ContextHelp=({ariaDescription:e,ariaLabel:t,border:r="0.5px solid #b9c2c6",children:n,id:a,maxWidth:i,placement:c="bottom-start",toggle:l=o.jsx(et,{css:ht.defaultToggle}),trigger:s="hover",...g})=>o.jsx(It,ne({ariaDescription:e,ariaLabel:t,border:r},g,{id:a,maxWidth:i,openDelay:"hover"===s?500:0,padding:"16px",placement:c,scrollable:!1,toggle:l,toggleCursor:"help",trigger:s}),n),e.ContextMenu=wt,e.DateTimePicker=({type:e="dateTime",...i})=>{const{date:c,description:l,disabled:s,id:g,label:d,maxDate:u,maxTime:b="",minDate:p,minTime:I="",onChangeDate:h,onChangeTime:C,placeholder:m,readonly:x,status:f,statusMessage:v,time:y,width:A}=r.resolveUnionizedProps(i),[{colorPalette:G}]=n.useWjecOneTheme(),Z=n.useWjecOneThemeStyles(rr),w=t.useRef(void 0),W=t.useRef(void 0),X=t.useMemo(()=>tr({date:c,time:y,type:e}),[]),k=a.useId(g),B=`${k}_description`,j=`${k}_status`;t.useLayoutEffect(()=>{W.current.value=tr({date:c,time:y,type:e})},[c,y,e]);const R=t.useMemo(()=>"time"===e?$o:er,[e]),F=t.useMemo(()=>"dateTime"===e?"datetime-local":e,[e]),Y=t.useMemo(()=>!(!u||!p)&&("00:00:00"===u.toTimeString().substring(0,8)&&"00:00:00"===p.toTimeString().substring(0,8)),[u,p]),H=t.useMemo(()=>{if("date"===e||"dateTime"===e){const t=u||("dateTime"===e&&b?new Date:void 0),o="dateTime"===e?`yyyy-MM-ddT${b||(Y?"23:59":"HH:mm")}`:"yyyy-MM-dd";return t?r.formatDateTime({date:t,format:o}):b}return b},[u,b,e]),V=t.useMemo(()=>{if("date"===e||"dateTime"===e){const t=p||("dateTime"===e&&I?new Date:void 0),o="dateTime"===e?`yyyy-MM-ddT${I||(Y?"00:00":"HH:mm")}`:"yyyy-MM-dd";return t?r.formatDateTime({date:t,format:o}):I}return I},[p,I,e]),N="error"!==f&&"warning"!==f||!v?B:j,J=t.useMemo(()=>{switch(f){case"error":return{backgroundColor:G.errorBackground,borderColor:G.error};case"success":return{backgroundColor:G.successBackground,borderColor:G.success};case"warning":return{backgroundColor:G.warningBackground,borderColor:G.warning};default:return{}}},[G,f]);return o.jsx("label",{css:o.css([Z.label,A&&{width:A}])},d,o.jsx("span",{css:o.css([Z.container,{"--margin-top":d&&"4px"}])},o.jsx("input",{"aria-describedby":N,css:o.css([Z.input,{"--background":J.backgroundColor,"--border-color":J.borderColor}]),defaultValue:X,disabled:s,id:k,max:H,min:V,onChange:({target:t})=>{const{value:o,valueAsNumber:n}=t,a=new Date(n),i=o.substring(o.indexOf("T")+1);"date"!==e&&"dateTime"!==e||!r.isCallableFunction(h)||h(a),"dateTime"!==e&&"time"!==e||!r.isCallableFunction(C)||C(i)},placeholder:m,readOnly:x,ref:W,type:F}),o.jsx(R,{"aria-hidden":!0,css:Z.icon,"data-disabled":s,ref:w})),o.jsx(Ht,{id:B},l),o.jsx(Kt,{id:j,status:f},v))},e.DestructiveButton=xe,e.Email=({id:e,label:t,readonly:r,value:a,...i})=>{const c=n.useWjecOneThemeStyles(cr);return r?o.jsx("label",{css:c.label,id:e},o.jsx("span",{css:c.labelText},t),o.jsx(nr,{href:`mailto:${a}`},a)):o.jsx(go,ne({label:t,value:a},i))},e.Emphasis=vt,e.ErrorCard=e=>{const[{colorPalette:t}]=n.useWjecOneTheme();return o.jsx(bn,ne({},e,{borderColor:t.error,icon:so,iconColor:t.error,titleColor:t.errorDark}))},e.ErrorNotification=Ca,e.FileInput=({ariaLabel:e,browseLabel:i="Browse",description:c,displaySize:l="medium",id:s,label:g,max:d,maxFileSize:u,multiple:b,onError:p,onSelect:I,placeholderDescription:h=("large"===l?"Drag & drop "+(b?"files":"a file"):`Drag & drop ${b?"files":"a file"} or click to upload`),status:C,statusMessage:m,validExtensions:x,validTypes:f})=>{const v=t.useRef(void 0),y=t.useRef(void 0),A=a.useId(s),G=e=>b?void 0===d||e<=d:e<=1,Z=e=>{const t=e.length,o=[],n=[],a=[],i=[];G(t)?(e.forEach(e=>{const t=(({name:e})=>{const t=e.substring(e.lastIndexOf("."));return void 0===x||x.includes(t)})(e),r=(({size:e})=>void 0===u||e<=u)(e),c=(({type:e})=>void 0===f||f.includes(e))(e);t&&r&&c&&i.push(e),t||o.push(e),r||n.push(e),c||a.push(e)}),i.length>0&&r.isCallableFunction(I)&&I(i)):r.isCallableFunction(p)&&p([{code:"MAX_FILES_EXCEEDED",details:{maxCount:d||1,selectedCount:t}}]),(o.length||n.length||a.length)&&r.isCallableFunction(p)&&p([o.length&&{code:"INVALID_FILE_EXTENSION",details:{files:o}},n.length&&{code:"INVALID_FILE_SIZE",details:{files:n}},a.length&&{code:"INVALID_FILE_TYPE",details:{files:a}}].filter(e=>e))},w=n.useWjecOneThemeStyles(Cr);return o.jsx("label",{css:w.label,htmlFor:A},g,o.jsx("div",{css:w.container,onDragEnter:e=>{const t=e.dataTransfer.items.length,o=G(t);r.preventDefaultBehavior(e.nativeEvent),v.current.setAttribute("data-drag-state",o?"valid":"invalid")},onDragLeave:e=>{r.preventDefaultBehavior(e.nativeEvent),v.current.contains(e.nativeEvent.relatedTarget)||v.current.removeAttribute("data-drag-state")},onDragOver:e=>{r.preventDefaultBehavior(e.nativeEvent)},onDrop:e=>{r.preventDefaultBehavior(e);const t=Array.from(e.dataTransfer.files);Z(t),v.current.removeAttribute("data-drag-state")},ref:v,"data-display-size":l,"data-status":C},o.jsx("input",{"aria-label":e,css:j.visiblyHidden,id:A,multiple:b,onChange:e=>{const t=Array.from(e.currentTarget.files);Z(t)},ref:y,type:"file",value:""}),o.jsx(Ir,{css:w.uploadIcon,"aria-hidden":!0}),h&&o.jsx("p",{css:w.description},h),"large"===l&&o.jsx(ye,{icon:ur,label:i,onPress:()=>{y.current.click()}})),o.jsx(Ht,null,c),o.jsx(Kt,{status:C},m))},e.FilterList=({clearButtonBehaviour:e="clear",expanded:a,filter:i=!0,floatingList:c,floatingListPosition:l={top:10},icon:s,id:g,label:d,loading:u,maxHeight:b=150,noMatchesMessage:p="No matches were found",onChange:I,onFilter:h,optionKeyExtractor:C,optionTemplate:m=({option:e})=>o.jsx(t.Fragment,null,e.toString()),options:x,placeholder:f,value:v="",ariaLabel:y=r.formattedStringToPlainText(d),ariaCloseLabel:A=("clear"===e?"Clear filter":"clearAndClose"===e?"Clear filter and close list":"Close list"),ariaMultiselectable:G})=>{const[{colorPalette:Z}]=n.useWjecOneTheme();ae("WJEC-One FilterList: You must specify a keyExtractor if the options array contains non-primitive entry types",()=>!r.isPrimitiveArray(x)&&!r.isKeyLabelPairArray(x)&&!C,[C,x]);const w=t.useRef(void 0),W=t.useRef(void 0),X=t.useRef(void 0),[k,B]=t.useState(v),[j,R]=t.useState(0),[F,Y]=t.useState(0),[H,V]=t.useState("below"),[N,J]=t.useState(0),[L,z]=t.useState([...x]),[O,S]=t.useState(),[E,T]=t.useState([]),[M,D]=t.useState(1),P=t.useMemo(()=>s&&r.svgComponentToDataURL(t.createElement(s,{color:Z.fontLight})),[s]);t.useEffect(()=>{let e;e=i&&k?x.filter((e,t)=>q(e,t).toString().toLowerCase().includes(k.toLowerCase())):[...x],r.isArrayEqual(e,L)||(r.isCallableFunction(h)&&h(e),z(e))},[k,i,x]),t.useEffect(()=>{!O||x.length||k||K(),w.current.querySelector('input[type="text"]')===document.activeElement&&$()},[k,x]),t.useEffect(()=>{a!==O&&(a?$():K())},[a]),t.useEffect(()=>{v!==k&&B(v)},[v]),t.useEffect(()=>(O&&(document.addEventListener("scroll",Q,!0),window.addEventListener("click",Q),window.addEventListener("resize",U)),()=>{document.removeEventListener("scroll",Q,!0),window.removeEventListener("click",Q),window.removeEventListener("resize",U)}),[O]),t.useEffect(()=>{D(1),W.current&&W.current.scrollTo({top:0})},[L]),t.useEffect(()=>{T(e=>{const t=M>1?[...e]:[],o=50*M-50,r=o+50;return t.length=50*(M-1),[...t,...L.slice(o,r).map(re)]})},[L,M]);const Q=({target:e})=>{const t=e;t===w.current||w.current.contains(t)||K()},U=r.throttle(()=>$(),{limit:250}),K=()=>{X.current===document.activeElement&&w.current.querySelector('input[type="text"]').focus(),S(!1),D(1)},$=()=>{if(x.length>0||!!k){const e=w.current.getBoundingClientRect(),t=e.top+e.height,o=window.innerHeight-t;let r="below";if(!c){if(o<b){const t=e.top;(t>b||t>o)&&(r="above")}"below"===r?(R(Math.min(b,window.innerHeight-t-10)),Y(e.top+w.current.querySelector('input[type="text"]').offsetTop)):(R(Math.min(b,e.top-10)),Y(window.innerHeight-t-1))}V(r),J(e.width),S(!0)}},q=(e,t)=>r.isKeyLabelPair(e)?e.key:r.extractKey(e,C,t),_=e=>{r.isCallableFunction(I)&&I(e),B(e)},ee=r.throttle(e=>{const t=e.target;t.scrollTop+2*t.clientHeight>t.scrollHeight&&50*M<L.length&&D(e=>e+1)},{beforeDelay:e=>{e.nativeEvent.stopImmediatePropagation(),e.persist()},limit:250}),te=n.useWjecOneThemeStyles(Ho),oe=()=>o.jsx("input",{ref:X,css:o.css([te.listInput,P&&[te.listInputWithIcon,{backgroundImage:P}]]),autoFocus:!0,onChange:({currentTarget:e})=>_(e.value),placeholder:f,value:k}),re=e=>{const t=x.indexOf(e);return o.jsx("li",{"aria-posinset":t+1,"aria-setsize":x.length,key:q(e,t)},m({option:e,index:t,filteredOptions:[...L]}))};return o.jsx("div",{ref:w,css:te.container,id:g,onClick:({target:e})=>{O||e!==w.current.querySelector('input[type="text"]')||e!==document.activeElement||$()}},o.jsx(go,{ariaLabel:y,icon:s,label:d,onChange:_,onFocus:$,placeholder:f,value:k}),O&&o.jsx("div",{"aria-expanded":!0,css:o.css([te.expandedContainer,"above"===H?[te.expandedContainerAbove,{bottom:F}]:{top:F},{width:N},c&&[te.expandedContainerFloating,{...l,maxHeight:`calc(100% - ${2*l.top}px)`}]])},"below"===H&&oe(),o.jsx(xo,{"aria-label":A,css:o.css([te.clearIcon,"above"===H&&te.clearIconAbove]),onClick:()=>{"clear"!==e&&"clearAndClose"!==e||B(""),"clear"===e&&X.current.focus(),"clearAndClose"!==e&&"close"!==e||K()}}),o.jsx("div",{css:o.css([te.listContainer,"above"===H&&te.listContainerAbove]),onScroll:ee},o.jsx("ul",{"aria-multiselectable":G,css:o.css([te.list,c&&te.listFloating,!c&&{maxHeight:j}]),ref:W},L.length?E:o.jsx("li",{css:te.noResults},o.jsx(yo,{css:te.noResultsIcon,"aria-hidden":!0}),p)),u&&o.jsx("div",{css:o.css([te.loading,"above"===H&&te.loadingAbove,!c&&{maxHeight:j}])},o.jsx(ce,null))),"above"===H&&oe()))},e.Footer=Hn,e.Form=({ariaDescription:e,ariaLabel:t,children:n,clearButton:a="Clear",clearId:i,id:c,onClear:l,onSubmit:s,otherActions:g,submitButton:d="Submit",submitId:u,width:b})=>{const p=we(e);return o.jsx("form",ne({"aria-label":t,css:o.css({width:b}),id:c,onReset:e=>{e.preventDefault(),r.isCallableFunction(l)&&l()},onSubmit:e=>{e.preventDefault(),r.isCallableFunction(s)&&s()}},p),n,o.jsx("section",{css:Vo.controls},a&&o.jsx(be,{buttonType:"reset",id:i,label:a}),o.jsx("div",{css:Vo.submit},d&&o.jsx(ye,{buttonType:"submit",id:u,label:d})),g&&o.jsx(wt,{options:g})))},e.Header=Tn,e.IconButton=fe,e.InfoNotification=Aa,e.InformationCard=bn,e.Input=go,e.LinearProgress=Kn,e.Link=nr,e.LinkButton=({loading:e,...t})=>{const[{colorPalette:r}]=n.useWjecOneTheme();return ae("WJEC One LinkButton: A LinkButton cannot have an unaccompanied icon",()=>t.icon&&!(t.children||t.label),[t]),o.jsx(be,ne({},t,{loading:e,color:e?r.neutral:"transparent",iconColor:r.fontLight,labelColor:r.primaryDark}))},e.Modal=({actionType:e="positive",actionButton:a="Confirm",actionButtonIcon:i=("negative"===e?Oa:Ja),actionButtonId:c,actionDisabled:l,actionLoading:g,actionLoadingProgress:d,blockScroll:u=!0,cancelButton:b="Cancel",cancelButtonIcon:p=ga,cancelButtonId:I,children:h,closeOnCancel:C=!0,closeOnClickOutside:m=!0,closeOnEscape:x=!0,description:f,id:v,maxHeight:y,maxWidth:A,minHeight:G,minWidth:Z,notification:w,onAction:W,onCancel:X,onClose:k,onOpen:B,open:j,otherActions:R,padding:F,showCloseIcon:Y=!0,title:H,titleIcon:V,ariaCloseLabel:N="close",ariaDescription:J=f,ariaLabel:L})=>{const z=t.useRef(void 0),O=t.useRef(void 0),S=t.useMemo(()=>r.formattedStringToPlainText(J),[J]),E=we(r.formattedStringToPlainText(S)),T=c??(v?`${v}:confirmButton`:void 0),M=I??(v?`${v}:cancelButton`:void 0);ta("escape",e=>e.preventDefault(),{shouldAddListener:j&&!x}),t.useEffect(()=>{u&&j&&s.disableBodyScroll(O.current,{reserveScrollBarGap:!0,allowTouchMove:e=>O.current.contains(e)})},[u,j]),t.useLayoutEffect(()=>{j?Q():D()},[j]),tn(()=>{s.clearAllBodyScrollLocks()});const D=()=>{O.current?.close()};let P=!1;const Q=()=>{const e=r.getKeyboardFocusableElements(z.current);e?.[0]?.setAttribute("autofocus","true"),O.current.showModal(),r.isCallableFunction(B)&&B()},U=n.useWjecOneThemeStyles(Fa),K=t.useMemo(()=>({"--max-height":y,"--max-width":A,"--min-height":G,"--min-width":Z,"--padding":F}),[y,y,G,Z,F]),$=t.useMemo(()=>"negative"===e?xe:ye,[e]),q=a||b||R,_=Y||H||V;return o.jsx("dialog",ne({"aria-label":L,css:U.modal,id:v,onClickCapture:e=>{const t=e.target,o=t?.tagName?.toLowerCase();m&&"dialog"===o&&!P&&D()},onClose:()=>{s.enableBodyScroll(O.current),r.isCallableFunction(k)&&k()},onMouseDown:e=>{const t=e.nativeEvent.pointerType,o=O.current.getBoundingClientRect();t||(P=e.clientX>=o.left&&e.clientX<=o.right&&e.clientY>=o.top&&e.clientY<=o.bottom)},ref:O,style:K},E),j&&o.jsx(t.Fragment,null,!!w&&(()=>{if(t.isValidElement(w))return w;const e="error"===w?.type?Ca:"success"===w?.type?ka:Aa;return o.jsx(e,ne({maxWidth:"100%"},w))})(),_&&o.jsx("header",{css:U.header},V&&o.jsx(V,{css:U.titleIcon}),H&&o.jsx("h3",{css:U.title},H),Y&&o.jsx("button",{"aria-label":N,css:U.closeButton,onClick:D},o.jsx(ga,{"aria-hidden":!0,css:U.closeIcon}))),f&&o.jsx("div",{css:U.description},f),o.jsx("div",{css:U.content,ref:z},h),q&&o.jsx("footer",{css:U.footer},b&&(t.isValidElement(b)?b:o.jsx(be,{icon:p,id:M,label:b,onPress:()=>{r.isCallableFunction(X)&&X(),C&&D()}})),o.jsx("section",{css:U.otherActions},R&&(t.isValidElement(R)?R:o.jsx(wt,{options:R}))),a&&(t.isValidElement(a)?a:o.jsx($,{disabled:l,icon:i,iconPosition:"right",id:T,label:a,loading:g,loadingProgress:d,onPress:W})))))},e.Notification=da,e.Page=({children:e,footerProps:t,headerProps:r,maxWidth:n=1280})=>o.jsx("div",{css:Un.pageWrapper},o.jsx(Tn,ne({},r,{maxWidth:n})),o.jsx("main",{css:o.css([Un.content,{maxWidth:`${n+60}px`}])},e),o.jsx(Hn,ne({},t,{maxWidth:n}))),e.PageTitle=({children:e,color:r,id:a})=>{const i=t.useRef(void 0),c=n.useWjecOneThemeStyles(Sa);return o.jsx("h1",{css:o.css([c.heading,{"--color":r}]),id:a,ref:i},e)},e.Pagination=({ariaCurrent:e,ariaLabel:a,compact:i=!1,current:c=1,id:l,onSelect:s,total:g})=>{const d=e=>()=>{e>0&&e<g+1&&r.isCallableFunction(s)&&s(e)},u=t.useMemo(()=>{let e;return e=g>5?c<4?[2,3,4,"..."]:c>g-3?["...",g-3,g-2,g-1]:["...",c-1,c,c+1,"..."]:[...Array(Math.max(0,g-2)).keys()].map(e=>e+2),e},[c,g]),b=n.useWjecOneThemeStyles(Ka);return o.jsx("ol",{"aria-label":a,css:b.container,id:l},o.jsx("li",{"aria-current":e,css:o.css([b.option,b.optionNextPrevious,1===c&&b.optionDisabled]),onClick:d(c-1)},o.jsx(Da,{height:"100%",width:"100%"})),i?o.jsx("li",{css:b.compact},c," of ",g):o.jsx(t.Fragment,null,o.jsx("li",{css:o.css([b.option,1===c&&b.optionSelected]),onClick:d(1)},"1"),u.map((e,t)=>o.jsx("li",{key:t,css:o.css([b.option,e===c&&b.optionSelected,"string"==typeof e&&b.optionSeparator]),onClick:"number"==typeof e?d(e):null},e)),g>1&&o.jsx("li",{css:o.css([b.option,c===g&&b.optionSelected]),onClick:d(g)},g)),o.jsx("li",{css:o.css([b.option,b.optionNextPrevious,c===g&&b.optionDisabled]),onClick:d(c+1)},o.jsx(q,{height:"100%",width:"100%"})))},e.Paragraph=At,e.Password=({ariaLabel:e,autoComplete:r="current-password",description:i,disabled:c,id:l,label:s,name:g,onChange:d,onToggleRevealPassword:u,placeholder:b,revealPassword:p,showIcon:I=!0,status:h,statusMessage:C,value:m=""})=>{const x=t.useRef(void 0),f=t.useRef(void 0),v=t.useRef(void 0),[{brand:y,colorPalette:A}]=n.useWjecOneTheme(),G=a.useId(),Z=t.useMemo(()=>l||G,[G,l]);t.useLayoutEffect(()=>{const e=Boolean(!c&&p);v.current.setAttribute("aria-pressed",e.toString()),f.current.setAttribute("type",e?"text":"password")},[c,p]),t.useLayoutEffect(()=>{f.current.value=m},[m]);const w=t.useMemo(()=>{switch(h){case"error":return{background:A.errorBackground,border:A.error};case"success":return{background:A.successBackground,border:A.success};case"warning":return{background:A.warningBackground,border:A.warning};default:return{}}},[y,h]),W=n.useWjecOneThemeStyles(Hr),{buttonProps:X}=a.useButton({"aria-label":e,"aria-pressed":!c&&p,isDisabled:c,onPress:()=>{const e=!c&&"true"!==v.current.getAttribute("aria-pressed");v.current.setAttribute("aria-pressed",e.toString()),f.current.setAttribute("type",e?"text":"password"),u?.(e)},type:"button"},v);return o.jsx("label",{css:W.label,htmlFor:Z},s,o.jsx("span",{css:o.css([W.container,{"--margin-top":s&&"4px"}])},o.jsx("input",{"aria-label":e,autoComplete:r,css:o.css([W.input,{"--background-color":w.background,"--border-color":w.border,"--padding-left":!I&&"8px"}]),defaultValue:m,disabled:c,id:Z,name:g,onChange:({target:{value:e}})=>{d?.(e)},placeholder:b,ref:f,type:!c&&p?"text":"password"}),I&&o.jsx(Ar,{"aria-hidden":!0,css:W.icon,ref:x}),o.jsx("button",ne({},X,{css:W.revealPassword,name:"Reveal password",ref:v}))),o.jsx(Ht,null,i),o.jsx(Kt,{status:h},C))},e.Pill=({ariaLabel:e,backgroundColor:t,children:r,color:a,id:i,size:c="default"})=>{const l=n.useThemeColor(t),s=n.useThemeColor(a),g=n.useWjecOneThemeStyles(qa);return o.jsx("span",{"aria-label":e,css:o.css([g.pill,{backgroundColor:l,color:s},"small"===c&&g.smallPill],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlBpbGwuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU95QyIsImZpbGUiOiJQaWxsLmpzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcbmltcG9ydCB7IHVzZVRoZW1lQ29sb3IsIHVzZVdqZWNPbmVUaGVtZVN0eWxlcyB9IGZyb20gJ3dqZWMtb25lL3RoZW1lJztcbmV4cG9ydCBjb25zdCBQaWxsID0gKHsgYXJpYUxhYmVsLCBiYWNrZ3JvdW5kQ29sb3I6IGJhY2tncm91bmRDb2xvclByb3AsIGNoaWxkcmVuLCBjb2xvcjogY29sb3JQcm9wLCBpZCwgc2l6ZSA9ICdkZWZhdWx0JyB9KSA9PiB7XG4gICAgY29uc3QgYmFja2dyb3VuZENvbG9yID0gdXNlVGhlbWVDb2xvcihiYWNrZ3JvdW5kQ29sb3JQcm9wKTtcbiAgICBjb25zdCBjb2xvciA9IHVzZVRoZW1lQ29sb3IoY29sb3JQcm9wKTtcbiAgICBjb25zdCBzdHlsZXMgPSB1c2VXamVjT25lVGhlbWVTdHlsZXMoZ2V0U3R5bGVzKTtcbiAgICByZXR1cm4gKDxzcGFuIGFyaWEtbGFiZWw9e2FyaWFMYWJlbH0gY3NzPXtbc3R5bGVzLnBpbGwsIHsgYmFja2dyb3VuZENvbG9yLCBjb2xvciB9LCBzaXplID09PSAnc21hbGwnICYmIHN0eWxlcy5zbWFsbFBpbGxdfSBpZD17aWR9PlxyXG4gICAgICB7Y2hpbGRyZW59XHJcbiAgICA8L3NwYW4+KTtcbn07XG5jb25zdCBnZXRTdHlsZXMgPSAoeyBjb2xvclBhbGV0dGUgfSkgPT4gKHtcbiAgICBwaWxsOiBjc3MgYFxyXG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICR7Y29sb3JQYWxldHRlLm5ldXRyYWx9O1xyXG4gICAgYm9yZGVyLXJhZGl1czogMTJweDtcclxuICAgIGNvbG9yOiAke2NvbG9yUGFsZXR0ZS5uZXV0cmFsRGFya307XHJcbiAgICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcclxuICAgIGZvbnQtc2l6ZTogMTJweDtcclxuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xyXG4gICAgbGluZS1oZWlnaHQ6IDE2cHg7XHJcbiAgICBwYWRkaW5nOiA0cHggMjBweDtcclxuICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XHJcbiAgICB3aGl0ZS1zcGFjZTogbm93cmFwO1xyXG4gIGAsXG4gICAgc21hbGxQaWxsOiBjc3MgYFxyXG4gICAgYm9yZGVyLXJhZGl1czogNHB4O1xyXG4gICAgZm9udC13ZWlnaHQ6IDYwMDtcclxuICAgIHBhZGRpbmc6IDJweCA4cHg7XHJcbiAgYFxufSk7XG4iXX0= */"),id:i},r)},e.Popup=It,e.PopupWindow=ei,e.PrimaryButton=ye,e.PrintLayout=oi,e.PrintWindow=({ariaLabel:e,autoPrint:n,children:a,closeOnPrint:i,id:c,onClose:l,onOpen:s,...g})=>{const[d,u]=t.useState(!1),[b,p]=t.useState(!1),I=t.useRef(void 0);t.useEffect(()=>{d&&b&&h()},[d,b]);const h=()=>{r.isCallableFunction(s)&&s(I.current),n&&I.current.print()},C=()=>{i&&I.current.close()};return o.jsx(ei,ne({},g,{id:c,open:n,onClose:()=>{u(!1),p(!1),r.isCallableFunction(l)&&l()},onOpen:e=>{I.current=e,I.current.document.body.style.margin="0",I.current.document.body.style.padding="0",I.current.onafterprint=C,p(!0)}}),o.jsx(oi,ne({ariaLabel:e},g,{onLayout:()=>{u(!0)}}),a))},e.RadioGroup=({ariaLabel:e,description:i,disabled:c,gridArea:l,keyExtractor:s,highlightedOption:g,id:d,label:u,labelExtractor:b,name:p,onSelect:I,options:h,orientation:C="horizontal",selectedOption:m,status:x,statusMessage:f})=>{it('WJEC One RadioGroup: The "gridArea" prop has been deprecated because WJEC One components are intended to be layout agnostic',()=>void 0!==l,[l]),ae("WJEC-One RadioGroup: You must specify a keyExtractor if the options array contains non-primitive entry type",()=>!r.isPrimitiveArray(h)&&!r.isKeyLabelPairArray(h)&&!s,[s]),it("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",()=>void 0!==g,[g]);const v=a.useId(d),y=t.useRef(void 0);t.useLayoutEffect(()=>{if(m){const e=y.current.querySelectorAll('input[type="radio"]'),t=h.indexOf(m),o=w(m,t),r=Array.from(e).find(e=>e.value===o);r&&(r.checked=!0)}},[h,m]);const[{brand:A,colorPalette:G}]=n.useWjecOneTheme(),Z=t.useMemo(()=>{switch(x){case"error":return{background:G.errorBackground,border:G.error};case"success":return{background:G.successBackground,border:G.success};case"warning":return{background:G.warningBackground,border:G.warning};default:return{}}},[A,x]),w=(e,t)=>r.isKeyLabelPair(e)?e.key:r.extractKey(e,s,t),W=e=>()=>{r.isCallableFunction(I)&&I(e)},X=n.useWjecOneThemeStyles(Nr),k=t.useMemo(()=>({"--background-color":Z.background,"--border-color":Z.border,"--flex-direction":"vertical"===C&&"column","--flex-gap":"vertical"===C&&"16px 8px","--margin-top":u&&"4px"}),[u,C,Z]);return o.jsx("label",{css:X.label,id:v,"data-disabled":c||void 0},u,o.jsx("fieldset",{css:X.container,ref:y,style:k},h.map((n,a)=>{const i=w(n,a),l=a===h.indexOf(m);return o.jsx(t.Fragment,{key:i},o.jsx("input",{css:X.radioButton,defaultChecked:l,disabled:c,id:`${v}_${a}`,name:p||v,onChange:W(n),type:"radio",value:i}),o.jsx("label",{"aria-label":e,css:X.radioButtonContainer,htmlFor:`${v}_${a}`},r.isKeyLabelPair(n)?n.label:r.extractContent(n,b,a)))})),o.jsx(Ht,null,i),o.jsx(Kt,{status:x},f))},e.ScrollableContainer=ni,e.SecondaryButton=({...e})=>{const[{colorPalette:t}]=n.useWjecOneTheme();return o.jsx(be,ne({},e,{activeColor:t.secondary,borderColor:e.disabled?"none":t.secondaryDark,color:"#FFFFFF",focusColor:t.secondaryLight,hoverColor:t.secondaryLight,labelColor:t.secondaryDark,labelColorActive:t.secondaryDark,outlineColor:"#FFFFFF"}))},e.SectionHeading=({children:e,color:t,id:r})=>{const a=n.useWjecOneThemeStyles(ai);return o.jsx("h3",{css:o.css([a.sectionHeading,{"--border-left-color":t||""}]),id:r},e)},e.SectionTitle=({children:e,color:t,id:r})=>{const a=n.useWjecOneThemeStyles(ii);return o.jsx("h3",{css:o.css([a.title,{"--color":t}]),id:r},e)},e.Select=e=>{const{blankOption:i,description:c,disabled:l,disabledOptions:s,icon:g,id:d,label:u,name:b,onSelect:p,optionKeyExtractor:I,optionLabelExtractor:h,options:C,placeholder:m,selectedOption:x,status:f,statusMessage:v}=e;it("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)",()=>{const e=new Set;return C.some(t=>!!(Pr(t)&&r.isPrimitiveArray(t.options)&&r.containsDuplicates(t.options))||(!!e.has(t)||(e.add(t),!1)))&&!I},[I,C]),ae("WJEC One Select: You must specify a keyExtractor if the options array contains non-primitive entry types",()=>C.some(e=>{if(Pr(e)){const t=e.options,o=r.isPrimitiveArray(t),n=r.isKeyLabelPairArray(t);return!(o||n||I)}return!(r.isPrimitive(e)||r.isKeyLabelPair(e)||I)}),[I,C]);const y=t.useRef(void 0),[{brand:A,colorPalette:G}]=n.useWjecOneTheme(),Z=t.useRef(void 0),w=a.useId(d),W=`${w}_description`,X=`${w}_status`,k=t.useMemo(()=>x?Dr(x,I,C):"",[I,C,x]);t.useLayoutEffect(()=>{Z.current&&(Z.current.value=k)},[k]),t.useLayoutEffect(()=>{y.current?.style?.setProperty("--offset-top",`${Z.current.offsetTop}px`)});const B=t.useMemo(()=>{switch(f){case"error":return{background:G.errorBackground,border:G.error};case"success":return{background:G.successBackground,border:G.success};case"warning":return{background:G.warningBackground,border:G.warning};default:return{}}},[A,f]),j=(e,t)=>{const n=Dr(e,I,C);return o.jsx("option",{disabled:s?.includes(e),key:n,value:n},r.isKeyLabelPair(e)?e.label:r.extractContent(e,h,t))},R="error"!==f&&"warning"!==f||!v?W:X,F=n.useWjecOneThemeStyles(Mr),Y=t.useMemo(()=>({"--background-color":B.background,"--border-color":B.border,"--margin-top":u&&"4px","--padding-left":g&&"40px"}),[g,u,B]);return o.jsx("label",{css:F.label,htmlFor:w,"data-disabled":l},u,o.jsx("select",{"aria-describedby":R,css:F.select,defaultValue:k,disabled:l,id:w,name:b,onChange:({target:{value:e}})=>{const t=((e,t,o)=>{let r;return o.find(n=>{if(Pr(n))r=n.options.find(r=>Dr(r,t,o)===e);else{const a=Dr(n,t,o);r=a===e?n:void 0}return void 0!==r}),r})(e,I,C);r.isCallableFunction(p)&&p(t)},ref:Z,style:Y},m&&o.jsx("option",{disabled:!0,hidden:!0,value:""},m),i&&o.jsx("option",{value:""}),C.map((e,t)=>Pr(e)?o.jsx("optgroup",{key:e.key??e.label,label:e.label},e.options.map(e=>j(e,t))):j(e,t))),g&&o.jsx(g,{"aria-hidden":!0,css:F.icon,"data-testid":"icon","data-disabled":l,ref:y}),o.jsx(Ht,{id:W},c),o.jsx(Kt,{id:X,status:f},v))},e.StylePalette=j,e.SubParagraph=({children:e,color:t,id:r})=>{const a=n.useWjecOneThemeStyles(ci);return o.jsx("p",{css:o.css([a.subParagraph,{"--color":t}]),id:r},e)},e.SubTitle=({children:e,id:t})=>{const r=n.useWjecOneThemeStyles(li);return o.jsx("h2",{css:r.heading,id:t},e)},e.SuccessCard=e=>{const[{colorPalette:t}]=n.useWjecOneTheme();return o.jsx(bn,ne({},e,{borderColor:t.success,icon:io,iconColor:t.success,titleColor:t.successDark}))},e.SuccessNotification=ka,e.Table=({columnOptions:e,columns:r,data:a,id:i,keyExtractor:c=e=>a.indexOf(e),onPressRow:l,onSort:s,rowOptions:g,selectedRow:d,sortable:u,sorted:b,sortedColumn:p,sortedDirection:I="ascending"})=>{const h=t.useMemo(()=>r.filter(e=>e).filter(e=>u&&!1!==e?.sortable||!1!==u&&e?.sortable),[r,u]),C=h.length>0,[m,x]=yi(p||r.indexOf(h[0])),[f,v]=yi(I),y=t.useMemo(()=>"string"==typeof m?r.findIndex(e=>e?.name===m):m,[r,m]),A=t.useMemo(()=>C&&!b?((e,t,o)=>{const{sortableValue:r}=t,n=[...e];return n.sort((e,n)=>{const a=r?r(e):pi(t,e),i=r?r(n):pi(t,n);return void 0===a?1:void 0===i?-1:("number"==typeof a&&"number"==typeof i?a-i:a?.toString()?.localeCompare(i?.toString()))*("ascending"===o?1:-1)}),n})(a,r[y],f):a,[r,a,C,b,y,f]),G=t.useMemo(()=>C||b&&y>-1||r.some(({title:e})=>e),[r,C,b,y]);t.useEffect(()=>{b||s?.(r[y]?.name,y,f)},[b,y,f]);const Z=n.useWjecOneThemeStyles(bi);return o.jsx("div",{css:Z.container},o.jsx("table",{css:o.css([Z.table,{"--column-gap":e?.gap,"--row-gap":g?.gap}]),id:i},o.jsx("colgroup",null,r.map((e,t)=>e&&o.jsx("col",{key:`column_definition_${e.name||t}`}))),G&&o.jsx("thead",null,o.jsx("tr",null,r.map((e,t)=>e&&o.jsx(fi,{column:e,id:i?[i,"column",e.name||t+1].join("_"):void 0,isSortable:h.includes(e),isSorted:t===y,key:`column_${e.name||t}_header`,onPress:()=>(e=>{const t=r.indexOf(e);h.includes(e)&&!b&&(x(t),v(e=>t===y&&"ascending"===e?"descending":"ascending")),e.onPressHeader?.()})(e),sortedDirection:f,styles:Z})))),o.jsx("tbody",null,A.map(t=>{const n=c(t);return o.jsx(vi,{isInteractive:g?.isInteractive?.(t)??"function"==typeof l,isSelected:t===d,key:`row_${n}`,onPress:()=>l?.(t),rowOptions:g,styles:Z},r.map((r,a)=>r&&o.jsx(xi,{columnOptions:e,column:r,key:`row_${n}_column_${r.name||a}`,row:t,styles:Z})))}))))},e.Tabs=({ariaLabel:e,backgroundStyle:a="filled",disabledTabs:i=[],id:l,keyExtractor:s,labelExtractor:g,onSelect:d,selectedTab:u,selectedTabColor:b,tabs:p})=>{const[I,h]=t.useState(()=>r.getSelected(u,p)),C=t.useRef(void 0),m=t.useRef(void 0),x=n.useWjecOneThemeStyles(Ai),f=t.useMemo(()=>i.map(e=>r.isKeyLabelPair(e)?e.key:r.extractKey(e,s,p.indexOf(e))),[i]),v=t.useMemo(()=>r.isKeyLabelPair(I)?I.key:r.extractKey(I,s,p.indexOf(I)),[I]);ae("WJEC-One Tabs: You must specify a keyExtractor if the tabs array contains non-primitive entry types",()=>!r.isPrimitiveArray(p)&&!r.isKeyLabelPairArray(p)&&!s,[s,p]),t.useEffect(()=>{const e=r.getSelected(u,p);e!==u&&h(e)},[u,p]),t.useEffect(()=>{const e=C.current?.querySelector('[data-selected="true"]');e?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[I]);const y=c.useAnimation(m,[{height:"{fromHeight:height}",width:"{fromWidth:width}"},{height:"{toHeight:height}",width:"{toWidth:width}"}],{duration:150,pseudoElement:"::before"}),A=c.useAnimation(m,[{left:"{fromLeft:left}"},{left:"{toLeft:left}"}],{duration:150,easing:"ease-in-out",pseudoElement:"::before"});return o.jsx("div",{"aria-label":e,ref:C,css:o.css([x.container,"filled"===a&&x.containerFilled,"transparent"===a&&x.containerTransparent,b&&{"--highlight-color":b}]),id:l},o.jsx("div",{css:x.innerContainer,ref:m},p.map((e,t)=>{const n=(r.isKeyLabelPair(e)?e.key:r.extractKey(e,s,t)).toString(),i=n===v,c=f.includes(n);return o.jsx("button",{key:n,css:o.css([x.tab,"filled"===a&&x.tabFilled,"transparent"===a&&x.tabTransparent]),disabled:c,onClick:({target:t})=>((e,t)=>{const o=C.current.querySelector('[data-selected="true"]');t.setAttribute("data-animating","true"),o.removeAttribute("data-selected"),t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"});const{finished:n}=y.play({fromHeight:"transparent"===a?"2px":`${o.offsetHeight}px`,fromWidth:`${o.offsetWidth}px`,toHeight:"transparent"===a?"2px":`${t.offsetHeight}px`,toWidth:`${t.offsetWidth}px`}),{finished:i}=A.play({fromLeft:`${o.offsetLeft}px`,toLeft:`${t.offsetLeft}px`});Promise.all([n,i]).then(()=>{t.removeAttribute("data-animating"),t.setAttribute("data-selected","true"),h(e)}),r.isCallableFunction(d)&&d(e)})(e,t),type:"button","data-selected":i},r.isKeyLabelPair(e)?e.label:r.extractContent(e,g,t))})))},e.TextArea=({ariaDescription:e,ariaLabel:a,disabled:i,height:c="auto",id:l,label:s,maxCharacters:g,maxHeight:d="100%",maxWidth:u="100%",onChange:b,placeholder:p,readonly:I,resizable:h=!1,showCount:C=!0,value:m="",width:x="100%"})=>{const[f,v]=t.useState(m),y=we(e);t.useEffect(()=>{m!==f&&v(m)},[m]);const A=n.useWjecOneThemeStyles(Ur),G=((e,{excludeIfFalse:o,excludeIfFalsy:r,excludeIfNull:n=!0,excludeIfUndefined:a=!0}={})=>t.useMemo(()=>Object.entries(e).reduce((e,[t,i])=>o&&!1===i||r&&!i||n&&null===i||a&&void 0===i?e:{...e,[Qr(t)]:String(i)},{}),[e]))({"data-current-value-length":f?.length},{excludeIfFalse:!0});return o.jsx("label",ne({"aria-label":a},G,{css:o.css([A.label,C&&o.css("&::after{content:attr(data-current-value-length) '",void 0!==g&&`/${g}`,"';}"),{maxWidth:u,width:x}]),"data-max-count":g}),s,o.jsx("textarea",ne({id:l,css:o.css([j.scrollbar,A.textarea,{height:c,maxHeight:d,resize:h?"both":"none"}]),value:f,placeholder:p,onChange:({target:{value:e}})=>{v(e),r.isCallableFunction(b)&&b(e)},readOnly:I,disabled:i,maxLength:g},I?{tabIndex:-1}:{},y)))},e.Toggle=({ariaLabel:e,disabled:i,id:c,label:l,on:s=!1,onChange:g,size:d="default",value:u})=>{const b=t.useRef(void 0),p=a.useId(c),I=en("(prefers-reduced-motion)");t.useLayoutEffect(()=>{b.current?.setAttribute("data-state",s?"on":"off")},[]),((e,o)=>{const r=t.useRef(!0);t.useLayoutEffect(()=>{let t;return r.current?r.current=!1:t=e(),t},o),tn(()=>{r.current=!0})})(()=>{const e="on"===b.current?.getAttribute("data-state");s!==e&&(b.current?.setAttribute("data-state",s?"on":"off"),I||h.play(void 0,{direction:e?"reverse":"normal"}))},[s,I]);const h=bt(b,[{height:"calc(var(--toggle-dimensions) - 2px)",left:0,margin:"calc(var(--toggle-margin) + 1px)",width:"calc(var(--toggle-dimensions) - 2px)"},{height:"var(--toggle-dimensions)",margin:"var(--toggle-margin)",marginLeft:"calc(var(--toggle-margin) + 1px)",width:"calc(var(--track-width) - calc(var(--toggle-margin) * 2))"},{left:"unset",height:"var(--toggle-dimensions)",margin:"var(--toggle-margin)",right:"calc(100% - var(--track-width))",width:"var(--toggle-dimensions)"}],{duration:200,easing:"ease-in-out",iterations:1,pseudoElement:"::after"}),C=()=>{const e="true"===b.current?.getAttribute("aria-pressed");b.current?.setAttribute("aria-pressed",(!e).toString()),b.current?.setAttribute("data-state",e?"off":"on"),I||h.play(void 0,{direction:e?"reverse":"normal"}),r.isCallableFunction(g)&&g(!e)},m=n.useWjecOneThemeStyles(on),{buttonProps:x}=a.useButton({"aria-label":e,"aria-pressed":s,id:p,isDisabled:i,onPress:C},b);return o.jsx("div",{css:m.container},o.jsx("label",{css:m.label,htmlFor:p,onClickCapture:e=>{i||(e.preventDefault(),C())}},l),o.jsx("button",ne({},x,{css:m.toggleButton,ref:b,"data-size":d}),u))},e.VerificationCodeInput=({description:e,disabled:i,id:c,label:l,maxLength:s=6,onChange:g,placeholder:d="e.g. 123456",showIcon:u=!0,status:b,statusMessage:p})=>{const I=t.useRef(void 0),h=t.useRef(void 0),C=t.useRef(0),m=t.useRef(""),x=a.useId(c),f=`${x}_description`,v=`${x}_status`;t.useEffect(()=>{const e=()=>{document.activeElement===h.current&&(C.current=h.current.selectionEnd)};return document.addEventListener("selectionchange",e),()=>{document.removeEventListener("selectionchange",e)}},[]),t.useLayoutEffect(()=>{I.current?.style?.setProperty("--offset-top",`${h.current.offsetTop}px`)});const y=n.useWjecOneThemeStyles(ln),A="error"!==b&&"warning"!==b||!p?f:v;return o.jsx("label",{css:y.label,"data-disabled":i},l,u&&o.jsx(cn,{"aria-hidden":!0,css:y.icon,"data-disabled":i,ref:I}),o.jsx("input",{"aria-describedby":A,autoComplete:"one-time-code",css:y.input,disabled:i,id:x,inputMode:"numeric",maxLength:s,onChange:({target:e})=>{const{value:t}=e;r.isCallableFunction(g)&&g(t)},onInput:()=>{if(/[^0-9]/g.test(h.current.value)){const e=h.current.value.replace(/[^0-9]/g,""),t=e.length-m.current.length,o=C.current+t;h.current.value=e,h.current.setSelectionRange(o,o)}C.current=h.current.selectionEnd,m.current=h.current.value},placeholder:d,ref:h,type:"text","data-status":b}),o.jsx(Ht,{id:f},e),o.jsx(Kt,{id:v,status:b},p))},e.WarningCard=e=>{const[{colorPalette:t}]=n.useWjecOneTheme();return o.jsx(bn,ne({},e,{borderColor:t.warning,icon:so,iconColor:t.warning,titleColor:t.warningDark}))},e.useAnimation=bt,e.useEventListener=Rt,e.useFocusTrap=(e,o={})=>{const{dependencies:n=[],focusElement:a=0,returnFocusTo:i=document.activeElement,shouldTrapFocus:c=!0}=o,l=t.useRef([]),s="function"==typeof c?c():c;let g;t.useEffect(()=>{let t,o;const n=r.isRefObject(e)?e.current:e;return s&&n&&(g=i,l.current=r.getKeyboardFocusableElements(n),o=new MutationObserver(e=>{for(const t of e)("childList"===t.type||"attributes"===t.type&&["aria-hidden","disabled"].includes(t.attributeName))&&(l.current=r.getKeyboardFocusableElements(n))}),o.observe(n,{attributes:!0,childList:!0,subtree:!0}),t=e=>{const t=e.code||e.key,o=l.current[0],r=l.current[l.current.length-1];"Tab"===t&&(e.shiftKey||document.activeElement!==r||(o.focus(),e.preventDefault()),e.shiftKey&&document.activeElement===o&&(r.focus(),e.preventDefault()))},"number"==typeof a&&l.current[a]?.focus(),"string"==typeof a&&l.current.find(e=>e.matches(a))?.focus(),a instanceof HTMLElement&&l.current.includes(a)&&a.focus(),document.documentElement.addEventListener("keydown",t)),()=>{document.documentElement.removeEventListener("keydown",t),g?.focus(),o&&o.disconnect()}},[e,s,...n])},e.useIsMounted=()=>{const e=t.useRef(!1);return t.useEffect(()=>(e.current=!0,()=>{e.current=!1})),e},e.useKeydownEvent=ta,e.useMediaQuery=en,e.useRefById=e=>{const o=t.useRef();return t.useLayoutEffect(()=>{const t=document.getElementById(e);o.current=t??void 0},[e]),o}});