wjec-one 4.0.21 → 4.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/utils.js +10 -5
- package/config/webpack.common.config.js +2 -1
- package/config/webpack.config.js +3 -2
- package/package.json +1 -1
- package/portal/index.d.ts +33 -11
- package/portal/index.js +2 -2
- package/umd/portal/index.js +2 -2
- package/umd/utils/index.js +1 -1
- package/utils/index.d.ts +1 -1
- package/utils/index.js +1 -1
package/umd/portal/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react"),require("wjec-one/auth"),require("@emotion/core"),require("wjec-one"),require("wjec-one/theme"),require("wjec-one/store"),require("wjec-one/utils"),require("wjec-one/localization"),require("react-dom/server"),require("qrcode.react")):"function"==typeof define&&define.amd?define(["exports","react","wjec-one/auth","@emotion/core","wjec-one","wjec-one/theme","wjec-one/store","wjec-one/utils","wjec-one/localization","react-dom/server","qrcode.react"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).WJECOnePortal={},e.React,e.WJECOneAuth,e.emotionCore,e.WJECOne,e.WJECOneTheme,e.WJECOneStore,e.WJECOneUtils,e.WJECOneLocalization,e.ReactDOMServer,e.qrcode.react)}(this,(function(e,n,t,r,o,i,a,s,c,l,u){"use strict";function d(e){var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var f=d(n),p=function(e){return e.APPOINTEE="APPOINTEE",e.EXAMS_OFFICER="EXAMS_OFFICER",e.PRIMARY="PRIMARY",e.SECONDARY="SECONDARY",e.WJEC_EMPLOYEE="WJEC_EMPLOYEE",e}({}),
|
|
1
|
+
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react"),require("wjec-one/auth"),require("@emotion/core"),require("wjec-one"),require("wjec-one/theme"),require("wjec-one/store"),require("wjec-one/utils"),require("wjec-one/localization"),require("react-dom/server"),require("qrcode.react")):"function"==typeof define&&define.amd?define(["exports","react","wjec-one/auth","@emotion/core","wjec-one","wjec-one/theme","wjec-one/store","wjec-one/utils","wjec-one/localization","react-dom/server","qrcode.react"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).WJECOnePortal={},e.React,e.WJECOneAuth,e.emotionCore,e.WJECOne,e.WJECOneTheme,e.WJECOneStore,e.WJECOneUtils,e.WJECOneLocalization,e.ReactDOMServer,e.qrcode.react)}(this,(function(e,n,t,r,o,i,a,s,c,l,u){"use strict";function d(e){var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var f=d(n),p=function(e){return e.APPOINTEE="APPOINTEE",e.EXAMS_OFFICER="EXAMS_OFFICER",e.PRIMARY="PRIMARY",e.SECONDARY="SECONDARY",e.WJEC_EMPLOYEE="WJEC_EMPLOYEE",e}({}),g=function(e){return e.SECONDARY_ACCESS_ARRANGEMENTS="SECONDARY_ACCESS_ARRANGEMENTS",e.SECONDARY_ENTRIES_AND_RESULTS="SECONDARY_ENTRIES_AND_RESULTS",e.SECONDARY_IAMIS="SECONDARY_IAMIS",e.SECONDARY_SECURE_RESOURCES="SECONDARY_SECURE_RESOURCES",e.SECONDARY_VIEW_SCRIPTS="SECONDARY_VIEW_SCRIPTS",e}({}),m=Object.freeze([g.SECONDARY_SECURE_RESOURCES]),h=function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.state.centrePermissions,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.state.groups;return o.includes("WJEC_EMPLOYEES")?n=p.WJEC_EMPLOYEE:o.includes("APPOINTEES")?n=p.APPOINTEE:e&&(n=r[e]),n},v=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.state.groups,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h(e),o=n.filter((function(n){return n.startsWith(e)})).map((function(n){return n.substring("".concat(e,":").length)}));return r!==p.SECONDARY||o.includes("NO_ACCESS")?[]:o.length>0?Object.freeze(o):m},x=function(e){var r=t.useAuthorization(),o=r.centrePermissions,i=r.groups,a=r.isSignedIn;return n.useMemo((function(){return a?h(e,o,i):void 0}),[e,o,i,a])};e.AccountType=void 0,function(e){e.APPOINTEE="APPOINTEE",e.EXAMS_OFFICER="EXAMS_OFFICER",e.PRIMARY="PRIMARY",e.SECONDARY="SECONDARY",e.WJEC_EMPLOYEE="WJEC_EMPLOYEE"}(e.AccountType||(e.AccountType={})),e.SecondaryAccessGroup=void 0,function(e){e.SECONDARY_ACCESS_ARRANGEMENTS="SECONDARY_ACCESS_ARRANGEMENTS",e.SECONDARY_ENTRIES_AND_RESULTS="SECONDARY_ENTRIES_AND_RESULTS",e.SECONDARY_IAMIS="SECONDARY_IAMIS",e.SECONDARY_SECURE_RESOURCES="SECONDARY_SECURE_RESOURCES",e.SECONDARY_VIEW_SCRIPTS="SECONDARY_VIEW_SCRIPTS"}(e.SecondaryAccessGroup||(e.SecondaryAccessGroup={}));var b,y,E,C=Object.freeze([g.SECONDARY_SECURE_RESOURCES]),w=function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.state.centrePermissions,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.state.groups;return o.includes("WJEC_EMPLOYEES")?n=p.WJEC_EMPLOYEE:o.includes("APPOINTEES")?n=p.APPOINTEE:e&&(n=r[e]),n};function S(){return S=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},S.apply(null,arguments)}var A,j=function(e,n){return f.createElement("svg",S({viewBox:"0 0 1440 4",fill:"none",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),f.createElement("g",{clipPath:"url(#a)"},f.createElement("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:1440,height:144},b||(b=f.createElement("path",{fill:"#fff",d:"M0 0h1440v144H0z"}))),y||(y=f.createElement("g",{mask:"url(#b)"},f.createElement("path",{opacity:.4,d:"m.093 19.192-2.368-71.368a5 5 0 0 1 3.923-5.05l249.66-54.934a4.999 4.999 0 0 1 4.394 1.144L384.786 3.551a5.002 5.002 0 0 1 1.444 5.26L368.279 65.06a5 5 0 0 1-3.215 3.234L134.73 143.34a5 5 0 0 1-4.961-1.098L1.679 22.681a5 5 0 0 1-1.586-3.49ZM1441.76 9.35l5.17-83.568a4.998 4.998 0 0 0-3.78-5.161l-288.1-71.743a5.007 5.007 0 0 0-4.41 1.008L995.762-21.281a5.004 5.004 0 0 0-1.731 3.003l-23.088 135.255a5 5 0 0 0 4.651 5.834l372.646 20.691a4.993 4.993 0 0 0 4.41-2.176l88.25-129.469c.51-.743.8-1.61.86-2.507Z",fill:"#47BAD1"}),f.createElement("path",{opacity:.4,d:"m341.147 35.262 214.851 26.282a5.003 5.003 0 0 0 4.313-1.605l92.293-101.841c3.011-3.322.465-8.622-4.01-8.349L337.991-31.26a5 5 0 0 0-4.686 5.296l3.459 56.569a5 5 0 0 0 4.383 4.657Z",fill:"#A55896"}),f.createElement("path",{opacity:.4,d:"m636.066 94.071-192.7-231.608c-1.998-2.401-1.329-6.026 1.393-7.556l302.76-170.202a5 5 0 0 1 6.809 1.908L926.159-7.729c1.532 2.725.215 6.173-2.744 7.182L641.524 95.605a5 5 0 0 1-5.458-1.534Z",fill:"#2855A2"}),f.createElement("path",{opacity:.4,d:"M983.494 89.93 703.798 14.977c-3.017-.808-4.562-4.154-3.221-6.975l143.28-301.486a5 5 0 0 1 6.662-2.37l304.371 144.653c2.83 1.342 3.74 4.918 1.91 7.45L988.837 88.035a5 5 0 0 1-5.343 1.895Z",fill:"#B0C600"})))),E||(E=f.createElement("defs",null,f.createElement("clipPath",{id:"a"},f.createElement("rect",{width:1440,height:4,rx:2,fill:"#fff"})))))},I=n.forwardRef(j),k=function(e){var n=e.colorPalette;return{divider:r.css("border-radius:",o.StylePalette.borderRadius,";background-color:",n.primaryLight,";height:4px;width:100%;")}};function O(e,n){this.v=e,this.k=n}function M(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function R(e,n,t,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void t(e)}s.done?n(c):Promise.resolve(c).then(r,o)}function T(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){R(i,r,o,a,s,"next",e)}function s(e){R(i,r,o,a,s,"throw",e)}a(void 0)}))}}function P(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=J(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw i}}}}function Z(e,n,t){return(n=function(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==typeof n?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function F(){return F=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},F.apply(null,arguments)}function L(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function B(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?L(Object(t),!0).forEach((function(n){Z(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function N(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
3
|
-
var e,n,t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",o=t.toStringTag||"@@toStringTag";function i(t,r,o,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return V(l,"_invoke",function(t,r,o){var i,s,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(n,t){return i=n,s=0,c=e,f.n=t,a}};function p(t,r){for(s=t,c=r,n=0;!d&&l&&!o&&n<u.length;n++){var o,i=u[n],p=f.p,m=i[2];t>3?(o=m===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=t<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<m&&(o=t<3||i[0]>r||r>m)&&(i[4]=t,i[5]=r,f.n=m,s=0))}if(o||t>1)return a;throw d=!0,r}return function(o,u,m){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),s=u,c=m;(n=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,i){if(s||(o="next"),n=i[o]){if(!(n=n.call(i,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,s<2&&(s=0)}else 1===s&&(n=i.return)&&n.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((n=(d=f.n<0)?c:t.call(r,f))!==a)break}catch(n){i=e,s=1,c=n}finally{l=1}}return{value:n,done:d}}}(t,o,i),!0),l}var a={};function s(){}function c(){}function l(){}n=Object.getPrototypeOf;var u=[][r]?n(n([][r]())):(V(n={},r,(function(){return this})),n),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,V(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,V(d,"constructor",l),V(l,"constructor",c),c.displayName="GeneratorFunction",V(l,o,"GeneratorFunction"),V(d),V(d,o,"Generator"),V(d,r,(function(){return this})),V(d,"toString",(function(){return"[object Generator]"})),(D=function(){return{w:i,m:f}})()}function B(e,n,t,r,o){var i=N(e,n,t,r,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function N(e,n,t,r,o){return new W(D().w(e,n,t,r),o||Promise)}function W(e,n){function t(r,o,i,a){try{var s=e[r](o),c=s.value;return c instanceof M?n.resolve(c.v).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):n.resolve(c).then((function(e){s.value=e,i(s)}),(function(e){return t("throw",e,i,a)}))}catch(e){a(e)}}var r;this.next||(V(W.prototype),V(W.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),V(this,"_invoke",(function(e,o,i){function a(){return new n((function(n,r){t(e,i,n,r)}))}return r=r?r.then(a,a):a()}),!0)}function V(e,n,t,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}V=function(e,n,t,r){if(n)o?o(e,n,{value:t,enumerable:!r,configurable:!r,writable:!r}):e[n]=t;else{function i(n,t){V(e,n,(function(e){return this._invoke(n,t,e)}))}i("next",0),i("throw",1),i("return",2)}},V(e,n,t,r)}function z(e){var n=Object(e),t=[];for(var r in n)t.unshift(r);return function e(){for(;t.length;)if((r=t.pop())in n)return e.value=r,e.done=!1,e;return e.done=!0,e}}function U(e){if(null!=e){var n=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],t=0;if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}function H(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,n)||J(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function Y(e){return function(e){if(Array.isArray(e))return R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||J(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function J(e,n){if(e){if("string"==typeof e)return R(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?R(e,n):void 0}}function q(){var e=D(),n=e.m(q),t=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function r(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===t||"GeneratorFunction"===(n.displayName||n.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var n,t;return function(r){n||(n={stop:function(){return t(r.a,2)},catch:function(){return r.v},abrupt:function(e,n){return t(r.a,o[e],n)},delegateYield:function(e,o,i){return n.resultName=o,t(r.d,U(e),i)},finish:function(e){return t(r.f,e)}},t=function(e,t,o){r.p=n.prev,r.n=n.next;try{return e(t,o)}finally{n.next=r.n}}),n.resultName&&(n[n.resultName]=r.v,n.resultName=void 0),n.sent=r.v,n.next=r.n;try{return e.call(this,n)}finally{r.p=n.prev,r.n=n.next}}}return(q=function(){return{wrap:function(n,t,r,o){return e.w(i(n),t,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,n){return new M(e,n)},AsyncIterator:W,async:function(e,n,t,o,a){return(r(n)?N:B)(i(e),n,t,o,a)},keys:z,values:U}})()}function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Q.apply(null,arguments)}var K,$,ee,ne=function(e,n){return f.createElement("svg",Q({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),A||(A=f.createElement("path",{d:"M6.767 7.742 10 10.975l3.233-3.233a.83.83 0 1 1 1.175 1.175l-3.825 3.825a.83.83 0 0 1-1.175 0L5.583 8.917a.83.83 0 0 1 0-1.175.848.848 0 0 1 1.184 0Z",fill:"currentColor"})))},te=n.forwardRef(ne);function re(){return re=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},re.apply(null,arguments)}var oe,ie,ae,se,ce,le=function(e,n){return f.createElement("svg",re({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),K||(K=f.createElement("path",{d:"M9.167 15h1.666v-1.667H9.167V15Z",fill:"currentColor"})),$||($=f.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"})),ee||(ee=f.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"})))},ue=n.forwardRef(le),de={name:"1ffk778",styles:"font-size:12px;font-weight:400;line-height:135%;margin:5px 0 0;"},fe={name:"r6ddtx",styles:"&:not(:last-child){margin-bottom:5px;}"},pe={name:"6ewv58",styles:"font-size:16px;font-weight:600;line-height:150%;margin:0;"},me=function(e){var n=e.colorPalette;return{applicationVersion:r.css("border-top:1px solid ",n.border,";font-size:12px;margin-top:10px;padding-top:10px;"),helpMessage:de,icon:r.css("color:",n.fontLight,";width:20px;"),link:r.css("align-items:center;border-radius:",o.StylePalette.borderRadius,";display:flex;font-size:16px;padding:5px 10px;text-decoration:none;&:hover{background-color:",n.neutral,";& > svg{color:",n.secondary,";}}"),linkIcon:r.css("color:",n.fontLight,";margin-right:10px;transition:color 100ms linear;width:20px;"),option:fe,options:r.css("border-top:1px solid ",n.border,";list-style:none;margin:10px 0 0;min-width:200px;padding:10px 0 0;"),title:pe}},he=a.createSimpleAction("SELECT_BRAND"),ge=Object.freeze({border:"#BCCBD1",entryLevel:"#6B994D",error:"#D32F2F",errorBackground:"#FBEBEB",errorDark:"#A82424",errorDarker:"#661616",font:"#2E3638",fontLight:"#606A6C",gceALevel:"#516FA2",gceASLevel:"#4D9995",gcse:"#81994D",highlight:"#FFEDC1",neutral:"#F1F3F4",neutralDark:"#2D3538",neutralLight:"#56666C",offBlack:"#001B26",offWhite:"#FAFCFC",otherQualifications:"#A55395",secondary:"#47BAD1",secondaryDark:"#1F6B7A",secondaryDarkActive:"#103840",secondaryLight:"#C0E8F0",secondaryLightActive:"#96CBD6",success:"#43A047",successBackground:"#EDF6ED",successDark:"#3C9040",successDarker:"#2A662D",tertiary:"#FFEDC1",vQAward:"#D86C8B",warning:"#F57C00",warningBackground:"#FEF2E6",warningDark:"#EF6C00",welshBaccAdvanced:"#6E81DC",welshBaccFoundation:"#BF8660",welshBaccNational:"#B4C160",welshBaccKS4:"#B25A6C"}),ve=Object.freeze(Z(Z({},ge),{},{primary:"#007DB2",primaryDark:"#00628C",primaryDarkActive:"#004766",primaryLight:"#E5F8FF",primaryLightActive:"#CCF1FF",primaryLightest:"#E5F7FF"})),xe=Object.freeze(Z(Z({},ge),{},{primary:"#F1511B",primaryDark:"#BF3608",primaryDarkActive:"#BF3608",primaryLight:"#FDB8A1",primaryLightActive:"#FDB8A1"})),ye=function(e,n){var t=n.payload;return"SELECT_BRAND"===n.type?e.merge({brand:t,colorPalette:"wjec"===t?ve:xe}):e},be={brand:"wjec",colorPalette:ve},Ee=function(){var e=a.createContext(ye,be,(function(e,n){var t=e.brand,r=n.colorPalette;return{colorPalette:"eduqas"===t?xe:r}})),t=e.context,r=e.hook,o=e.provider;return{selectBrand:he,themeContext:t,WjecOneThemeProvider:o,useWjecOneTheme:r,useWjecOneThemeStyles:function(e){var t=H(r(),1)[0];return n.useMemo((function(){return s.isCallableFunction(e)?e(t):e}),[t.brand])}}}(),we=Ee.useWjecOneTheme,Se=Ee.useWjecOneThemeStyles;function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ce.apply(null,arguments)}var Ae,je,ke,Oe,Me,Re=function(e,n){return f.createElement("svg",Ce({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),oe||(oe=f.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"})),ie||(ie=f.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"})),ae||(ae=f.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"})),se||(se=f.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"})),ce||(ce=f.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"})))},Te=n.forwardRef(Re);function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ie.apply(null,arguments)}var Pe=function(e,n){return f.createElement("svg",Ie({viewBox:"0 0 298 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Ae||(Ae=f.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"})),je||(je=f.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"})),ke||(ke=f.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"})),Oe||(Oe=f.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"})),Me||(Me=f.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"})))},Fe=n.forwardRef(Pe),Le=Object.freeze({border:"#BCCBD1",entryLevel:"#6B994D",error:"#D32F2F",errorBackground:"#FBEBEB",errorDark:"#A82424",errorDarker:"#661616",font:"#2E3638",fontLight:"#606A6C",gceALevel:"#516FA2",gceASLevel:"#4D9995",gcse:"#81994D",highlight:"#FFEDC1",neutral:"#F1F3F4",neutralDark:"#2D3538",neutralLight:"#56666C",offBlack:"#001B26",offWhite:"#FAFCFC",otherQualifications:"#A55395",secondary:"#47BAD1",secondaryDark:"#1F6B7A",secondaryDarkActive:"#103840",secondaryLight:"#C0E8F0",secondaryLightActive:"#96CBD6",success:"#43A047",successBackground:"#EDF6ED",successDark:"#3C9040",successDarker:"#2A662D",tertiary:"#FFEDC1",vQAward:"#D86C8B",warning:"#F57C00",warningBackground:"#FEF2E6",warningDark:"#EF6C00",welshBaccAdvanced:"#6E81DC",welshBaccFoundation:"#BF8660",welshBaccNational:"#B4C160",welshBaccKS4:"#B25A6C"}),_e=Object.freeze(Z(Z({},Le),{},{primary:"#007DB2",primaryDark:"#00628C",primaryDarkActive:"#004766",primaryLight:"#E5F8FF",primaryLightActive:"#CCF1FF",primaryLightest:"#E5F7FF"})),Ze=Object.freeze(Z(Z({},Le),{},{primary:"#F1511B",primaryDark:"#BF3608",primaryDarkActive:"#BF3608",primaryLight:"#FDB8A1",primaryLightActive:"#FDB8A1"})),De=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"development"===process.env.NODE_ENV&&n&&function(e){console.warn(e)}(e)},Be=function(e,n){"function"==typeof gtag?gtag("event",e,n):De("WJEC One: An analytics event was dispatched without a Google Analytics configuration present (event type: ".concat(e,")"))},Ne=a.createSimpleAction("SELECT_BRAND"),We=function(e,n){var t=n.payload;return"SELECT_BRAND"===n.type?e.merge({brand:t,colorPalette:"wjec"===t?_e:Ze}):e},Ve={brand:"wjec",colorPalette:_e},ze=function(){var e=a.createContext(We,Ve,(function(e,n){var t=e.brand,r=n.colorPalette;return{colorPalette:"eduqas"===t?Ze:r}})),t=e.context,r=e.hook,o=e.provider;return{selectBrand:Ne,themeContext:t,WjecOneThemeProvider:o,useWjecOneTheme:r,useWjecOneThemeStyles:function(e){var t=H(r(),1)[0];return n.useMemo((function(){return s.isCallableFunction(e)?e(t):e}),[t.brand])}}}(),Ue=ze.useWjecOneTheme,He=ze.useWjecOneThemeStyles,Ge={name:"1bhjuxx",styles:"box-sizing:border-box;&::after,&::before,& *,& *::after,& *::before{box-sizing:inherit;}"};_e.highlight;var Ye,Xe={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},Je={name:"8zn5ov",styles:"align-items:center;display:flex;margin:0 auto;width:100%;"},qe={name:"eeoqsk",styles:"height:25px;margin-right:10px;"},Qe=function(e){var n=e.colorPalette;return{container:Je,copyright:r.css("border-left:1px solid ",n.border,";color:",n.fontLight,";font-size:12px;padding-left:10px;"),footer:r.css(Ge,";align-items:center;display:flex;justify-content:flex-start;padding:24px 30px 22px;width:100%;"),logo:qe}};function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ke.apply(null,arguments)}var $e,en=function(e,n){return f.createElement("svg",Ke({viewBox:"0 0 89 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Ye||(Ye=f.createElement("path",{d:"M.019 13.979c0 .452.37.823.802.823.453 0 .824-.37.824-.823V9.615h3.498c3.067 0 5.66-1.605 5.66-4.713v-.04c0-2.84-2.14-4.57-5.392-4.57H.82a.822.822 0 0 0-.802.823V13.98Zm1.626-5.845v-6.34h3.642c2.326 0 3.87 1.07 3.87 3.129v.041c0 1.894-1.565 3.17-3.952 3.17h-3.56ZM21.484 14.946c4.384 0 7.368-3.478 7.368-7.45v-.042c0-3.972-2.943-7.409-7.327-7.409s-7.368 3.478-7.368 7.45v.042c0 3.972 2.943 7.409 7.327 7.409Zm.041-1.502c-3.293 0-5.68-2.676-5.68-5.948v-.042c0-3.272 2.346-5.906 5.639-5.906s5.68 2.675 5.68 5.948v.04c0 3.273-2.346 5.908-5.639 5.908ZM33.31 13.979c0 .452.37.823.803.823.453 0 .823-.37.823-.823V9.1h4.137l4.054 5.269c.185.247.432.432.762.432.411 0 .823-.37.823-.803 0-.226-.103-.411-.268-.597l-3.58-4.61c2.243-.432 3.848-1.81 3.848-4.178v-.04c0-1.133-.412-2.141-1.111-2.841-.906-.906-2.326-1.44-4.096-1.44h-5.392a.822.822 0 0 0-.803.823v12.863Zm1.626-6.34V1.796h4.446c2.325 0 3.684 1.07 3.684 2.84v.041c0 1.852-1.544 2.964-3.705 2.964h-4.425ZM52.879 13.979c0 .452.37.823.823.823.453 0 .823-.37.823-.823V1.795h4.178c.412 0 .762-.33.762-.741a.773.773 0 0 0-.762-.762H48.701a.773.773 0 0 0-.761.762c0 .411.35.74.761.74h4.178V13.98ZM60.69 14.061c0 .412.329.74.74.74.37 0 .638-.205.782-.555l1.503-3.354h7.903l1.502 3.313c.144.33.412.597.803.597.432 0 .782-.35.782-.782 0-.124-.041-.268-.103-.412L68.757.848c-.185-.453-.514-.72-1.008-.72h-.083c-.514 0-.823.267-1.029.72l-5.845 12.78a.936.936 0 0 0-.103.433Zm3.663-4.651 3.313-7.368L70.98 9.41h-6.627ZM78.846 13.876c0 .453.37.823.802.823h8.294c.412 0 .741-.33.741-.74a.756.756 0 0 0-.74-.762h-7.471V1.013a.826.826 0 0 0-.824-.824.822.822 0 0 0-.802.824v12.863Z",fill:"#009FE3"})))},nn=n.forwardRef(en),tn=function(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)&&Object.hasOwn(e,"eduqas")&&Object.hasOwn(e,"wjec")},rn={name:"1qvasr7",styles:"align-items:center;display:grid;grid-gap:24px;grid-template-columns:1fr min-content 1fr;justify-items:center;margin:0 auto;& > button:first-of-type{justify-self:start;}"},on={name:"1q99sw",styles:"border-bottom-color:#fff;"},an={name:"u1jr60",styles:"height:40px;"},sn={name:"1455w9v",styles:"align-items:center;display:flex;flex:1;gap:24px;max-width:100%;min-width:175px;overflow:hidden;position:relative;"},cn={name:"1v1z1e",styles:"grid-column:1;justify-content:flex-start;justify-self:start;"},ln={name:"njo7am",styles:"gap:16px;grid-column:3;justify-content:flex-end;justify-self:end;"},un=function(e){var n=e.colorPalette;return{container:rn,header:r.css(Ge,";background-color:#fff;border-bottom:1px solid ",n.border,";padding:8px 16px;position:sticky;top:0;width:100%;z-index:1;"),headerNoBorder:on,homeLink:r.css("cursor:pointer;:hover > svg{color:",n.font,";}"),logo:an,logoContainer:r.css("border-left:1px solid ",n.border,";min-height:40px;padding-left:24px;"),menuContainer:sn,menuContainerLeft:cn,menuContainerRight:ln,title:r.css(Xe,";align-items:center;color:",n.fontLight,";display:inline-flex;font-size:18px;font-weight:400;line-height:32px;margin:0;max-width:100%;padding:5px 10px;")}};function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},dn.apply(null,arguments)}var fn,pn,mn,hn,gn,vn=function(e,n){return f.createElement("svg",dn({viewBox:"0 0 89 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),$e||($e=f.createElement("path",{d:"M.019 13.979c0 .452.37.823.802.823.453 0 .824-.37.824-.823V9.615h3.498c3.067 0 5.66-1.605 5.66-4.713v-.04c0-2.84-2.14-4.57-5.392-4.57H.82a.822.822 0 0 0-.802.823V13.98Zm1.626-5.845v-6.34h3.642c2.326 0 3.87 1.07 3.87 3.129v.041c0 1.894-1.565 3.17-3.952 3.17h-3.56ZM21.484 14.946c4.384 0 7.368-3.478 7.368-7.45v-.042c0-3.972-2.943-7.409-7.327-7.409s-7.368 3.478-7.368 7.45v.042c0 3.972 2.943 7.409 7.327 7.409Zm.041-1.502c-3.293 0-5.68-2.676-5.68-5.948v-.042c0-3.272 2.346-5.906 5.639-5.906s5.68 2.675 5.68 5.948v.04c0 3.273-2.346 5.908-5.639 5.908ZM33.31 13.979c0 .452.37.823.803.823.453 0 .823-.37.823-.823V9.1h4.137l4.054 5.269c.185.247.432.432.762.432.411 0 .823-.37.823-.803 0-.226-.103-.411-.268-.597l-3.58-4.61c2.243-.432 3.848-1.81 3.848-4.178v-.04c0-1.133-.412-2.141-1.111-2.841-.906-.906-2.326-1.44-4.096-1.44h-5.392a.822.822 0 0 0-.803.823v12.863Zm1.626-6.34V1.796h4.446c2.325 0 3.684 1.07 3.684 2.84v.041c0 1.852-1.544 2.964-3.705 2.964h-4.425ZM52.879 13.979c0 .452.37.823.823.823.453 0 .823-.37.823-.823V1.795h4.178c.412 0 .762-.33.762-.741a.773.773 0 0 0-.762-.762H48.701a.773.773 0 0 0-.761.762c0 .411.35.74.761.74h4.178V13.98ZM60.69 14.061c0 .412.329.74.74.74.37 0 .638-.205.782-.555l1.503-3.354h7.903l1.502 3.313c.144.33.412.597.803.597.432 0 .782-.35.782-.782 0-.124-.041-.268-.103-.412L68.757.848c-.185-.453-.514-.72-1.008-.72h-.083c-.514 0-.823.267-1.029.72l-5.845 12.78a.936.936 0 0 0-.103.433Zm3.663-4.651 3.313-7.368L70.98 9.41h-6.627ZM78.846 13.876c0 .453.37.823.802.823h8.294c.412 0 .741-.33.741-.74a.756.756 0 0 0-.74-.762h-7.471V1.013a.826.826 0 0 0-.824-.824.822.822 0 0 0-.802.824v12.863Z",fill:"#009FE3"})))},xn=n.forwardRef(vn),yn=function(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)&&Object.hasOwn(e,"eduqas")&&Object.hasOwn(e,"wjec")},bn=function(e){var t=e.id,o=e.logo,i=e.maxWidth,a=void 0===i?1280:i,s=e.menusLeft,c=e.menusRight,l=e.onPressPageTitle,u=e.pageTitleHref,d=e.pageTitle,f=void 0===d?r.jsx(xn,{style:{height:"16px"}}):d,p=H(Ue(),1)[0].brand,m=n.useMemo((function(){return yn(o)?o[p]:o}),[p,o]),h=He(kn);return r.jsx("header",{css:h.header,id:t},r.jsx("div",{css:r.css([h.container,{maxWidth:"".concat(a,"px")}])},r.jsx("section",{css:r.css([h.menuContainer,h.menuContainerLeft])},s),f&&(void 0!==l||u?r.jsx("a",{css:h.homeLink,href:u,onClick:l},r.jsx("h1",{css:h.title},f)):r.jsx("h1",{css:h.title},f)),r.jsx("section",{css:r.css([h.menuContainer,h.menuContainerRight])},c,m&&r.jsx("div",{css:h.logoContainer},r.jsx(m,{css:h.logo})))))},En={name:"1qvasr7",styles:"align-items:center;display:grid;grid-gap:24px;grid-template-columns:1fr min-content 1fr;justify-items:center;margin:0 auto;& > button:first-of-type{justify-self:start;}"},wn={name:"1q99sw",styles:"border-bottom-color:#fff;"},Sn={name:"u1jr60",styles:"height:40px;"},Cn={name:"1455w9v",styles:"align-items:center;display:flex;flex:1;gap:24px;max-width:100%;min-width:175px;overflow:hidden;position:relative;"},An={name:"1v1z1e",styles:"grid-column:1;justify-content:flex-start;justify-self:start;"},jn={name:"njo7am",styles:"gap:16px;grid-column:3;justify-content:flex-end;justify-self:end;"},kn=function(e){var n=e.colorPalette;return{container:En,header:r.css(Ge,";background-color:#fff;border-bottom:1px solid ",n.border,";padding:8px 16px;position:sticky;top:0;width:100%;z-index:1;"),headerNoBorder:wn,homeLink:r.css("cursor:pointer;:hover > svg{color:",n.font,";}"),logo:Sn,logoContainer:r.css("border-left:1px solid ",n.border,";min-height:40px;padding-left:24px;"),menuContainer:Cn,menuContainerLeft:An,menuContainerRight:jn,title:r.css(Xe,";align-items:center;color:",n.fontLight,";display:inline-flex;font-size:18px;font-weight:400;line-height:32px;margin:0;max-width:100%;padding:5px 10px;")}};function On(){return On=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},On.apply(null,arguments)}var Mn,Rn,Tn,In,Pn,Fn=function(e,n){return f.createElement("svg",On({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),fn||(fn=f.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"})),pn||(pn=f.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"})),mn||(mn=f.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"})),hn||(hn=f.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"})),gn||(gn=f.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"})))},Ln=n.forwardRef(Fn);function _n(){return _n=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},_n.apply(null,arguments)}var Zn,Dn,Bn,Nn,Wn,Vn=function(e,n){return f.createElement("svg",_n({viewBox:"0 0 298 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Mn||(Mn=f.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"})),Rn||(Rn=f.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"})),Tn||(Tn=f.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"})),In||(In=f.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"})),Pn||(Pn=f.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"})))},zn=n.forwardRef(Vn),Un=function(e){var n=e.i18n,t=void 0===n?{copyrightMessage:"Copyright WJEC CBAC Ltd ".concat((new Date).getFullYear())}:n,o=e.logos,i=void 0===o?[Ln,zn]:o,a=e.maxWidth,s=void 0===a?1280:a,c=He(Yn);return r.jsx("footer",{css:c.footer},r.jsx("div",{css:r.css([c.container,{maxWidth:"".concat(s,"px")}])},i.map((function(e,n){return r.jsx(e,{key:"logo_".concat(n),css:c.logo})})),r.jsx("span",{css:c.copyright},t.copyrightMessage)))},Hn={name:"8zn5ov",styles:"align-items:center;display:flex;margin:0 auto;width:100%;"},Gn={name:"eeoqsk",styles:"height:25px;margin-right:10px;"},Yn=function(e){var n=e.colorPalette;return{container:Hn,copyright:r.css("border-left:1px solid ",n.border,";color:",n.fontLight,";font-size:12px;padding-left:10px;"),footer:r.css(Ge,";align-items:center;display:flex;justify-content:flex-start;padding:24px 30px 22px;width:100%;"),logo:Gn}},Xn={content:{name:"nkc6ia",styles:"box-sizing:border-box;display:flex;flex:1;margin:0 auto;position:relative;width:100%;"},pageWrapper:r.css(Ge,";display:flex;flex-direction:column;height:100%;min-height:100vh;")},Jn={name:"v15t89",styles:"flex-shrink:0;width:24px;"},qn={name:"bxntb3",styles:"display:flex;flex-direction:column;font-size:16px;gap:16px;line-height:14px;list-style:none;margin:0;padding:0;"},Qn=function(e){var n=e.colorPalette;return{icon:Jn,locales:qn,option:r.css("align-items:center;border-radius:",o.StylePalette.borderRadius,";cursor:pointer;display:flex;gap:4px;margin:-4px -8px;padding:4px 8px;&:hover{background-color:",n.neutral,";}")}},Kn=function(e){return e.FAVOURITES="favouritesGroup",e}({}),$n=function(e){return e.FAVOURITES="favouritesSection",e.SEARCH="searchSection",e}({}),et=Object.freeze({"cy-gb":(Zn={},F(F(F(F(F(F(F(F(F(F(Zn,Kn.FAVOURITES,"Fy Hoff Gymwysiadau"),$n.FAVOURITES,"Fy Ffefrynnau"),$n.SEARCH,"Canlyniadau Chwilio"),"addToFavourites","Ychwanegu cyswllt at fy ffefrynnau"),"cancel","Canslo"),"noResultsMessage","Nid oeddem yn gallu canfod unrhyw wasanaethau oedd yn cyfateb i'ch ymholiad."),"noResultsTitle","Ymddiheuriadau! Heb Ganfod Canlyniadau"),"removeFavouriteConfirmation","Tynnu ffefryn"),"removeFavouriteConfirmationMessage","Ydych chi'n siŵr eich bod am dynnu'r cyswllt hwn o'ch ffefrynnau?"),"removeFromFavourites","Tynnu cyswllt o fy ffefrynnau"),F(F(F(F(F(F(Zn,"resetYourSearch","Ailosod eich chwiliad"),"searchAllServices","Chwilio pob gwasanaeth"),"searchResults","Yn dangos {count} o ganlyniadau ar gyfer '{searchTerm}'"),"signIn","Mewngofnodi"),"signinCardMessage","Mewngofnodi i'ch cyfrif CBAC i weld pob gwasanaeth sydd ar gael i chi."),"signinCardTitle","Ddim yn gallu canfod yr hyn rydych chi'n chwilio amdano?")),"en-gb":(Dn={},F(F(F(F(F(F(F(F(F(F(Dn,Kn.FAVOURITES,"My Favourite Applications"),$n.FAVOURITES,"My Favourites"),$n.SEARCH,"Search Results"),"addToFavourites","Add link to favourites"),"cancel","Cancel"),"noResultsMessage","We were unable to find any services matching your query."),"noResultsTitle","Sorry! No Results Found"),"removeFavouriteConfirmation","Remove favourite"),"removeFavouriteConfirmationMessage","Are you sure you want to remove this link from your favourites?"),"removeFromFavourites","Remove link from favourites"),F(F(F(F(F(F(Dn,"resetYourSearch","Reset your search"),"searchAllServices","Search all services"),"searchResults","Showing {count} result(s) for '{searchTerm}'"),"signIn","Sign in"),"signinCardMessage","Sign in to your WJEC account to view all your available services."),"signinCardTitle","Can't find what you are looking for?"))});function nt(){return nt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},nt.apply(null,arguments)}var tt,rt,ot=function(e,n){return f.createElement("svg",nt({viewBox:"0 0 1440 4",fill:"none",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),f.createElement("g",{clipPath:"url(#a)"},f.createElement("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:1440,height:144},Bn||(Bn=f.createElement("path",{fill:"#fff",d:"M0 0h1440v144H0z"}))),Nn||(Nn=f.createElement("g",{mask:"url(#b)"},f.createElement("path",{opacity:.4,d:"m.093 19.192-2.368-71.368a5 5 0 0 1 3.923-5.05l249.66-54.934a4.999 4.999 0 0 1 4.394 1.144L384.786 3.551a5.002 5.002 0 0 1 1.444 5.26L368.279 65.06a5 5 0 0 1-3.215 3.234L134.73 143.34a5 5 0 0 1-4.961-1.098L1.679 22.681a5 5 0 0 1-1.586-3.49ZM1441.76 9.35l5.17-83.568a4.998 4.998 0 0 0-3.78-5.161l-288.1-71.743a5.007 5.007 0 0 0-4.41 1.008L995.762-21.281a5.004 5.004 0 0 0-1.731 3.003l-23.088 135.255a5 5 0 0 0 4.651 5.834l372.646 20.691a4.993 4.993 0 0 0 4.41-2.176l88.25-129.469c.51-.743.8-1.61.86-2.507Z",fill:"#47BAD1"}),f.createElement("path",{opacity:.4,d:"m341.147 35.262 214.851 26.282a5.003 5.003 0 0 0 4.313-1.605l92.293-101.841c3.011-3.322.465-8.622-4.01-8.349L337.991-31.26a5 5 0 0 0-4.686 5.296l3.459 56.569a5 5 0 0 0 4.383 4.657Z",fill:"#A55896"}),f.createElement("path",{opacity:.4,d:"m636.066 94.071-192.7-231.608c-1.998-2.401-1.329-6.026 1.393-7.556l302.76-170.202a5 5 0 0 1 6.809 1.908L926.159-7.729c1.532 2.725.215 6.173-2.744 7.182L641.524 95.605a5 5 0 0 1-5.458-1.534Z",fill:"#2855A2"}),f.createElement("path",{opacity:.4,d:"M983.494 89.93 703.798 14.977c-3.017-.808-4.562-4.154-3.221-6.975l143.28-301.486a5 5 0 0 1 6.662-2.37l304.371 144.653c2.83 1.342 3.74 4.918 1.91 7.45L988.837 88.035a5 5 0 0 1-5.343 1.895Z",fill:"#B0C600"})))),Wn||(Wn=f.createElement("defs",null,f.createElement("clipPath",{id:"a"},f.createElement("rect",{width:1440,height:4,rx:2,fill:"#fff"})))))},it=n.forwardRef(ot),at=function(e){var n=e.margin,t=void 0===n?"20px 0":n,o=i.useWjecOneThemeStyles(st);return r.jsx(it,{css:r.css([o.divider,{margin:t}],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRpdmlkZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdCTSIsImZpbGUiOiJEaXZpZGVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBDU1NQcm9wZXJ0aWVzLCBGQyB9IGZyb20gJ3JlYWN0JztcclxuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XHJcbmltcG9ydCB7IFN0eWxlUGFsZXR0ZSB9IGZyb20gJ3dqZWMtb25lJztcclxuaW1wb3J0IHsgVGhlbWVTdGF0ZSwgdXNlV2plY09uZVRoZW1lU3R5bGVzIH0gZnJvbSAnd2plYy1vbmUvdGhlbWUnO1xyXG4vLyBAdHJhbnNmb3JtLXBhdGggLi4vYXNzZXRzL2ltYWdlcy9kaXZpZGVyLnN2Z1xyXG5pbXBvcnQgRGl2aWRlckltYWdlIGZyb20gJ3BvcnRhbC9zcmMvYXNzZXRzL2ltYWdlcy9kaXZpZGVyLnN2Zyc7XHJcblxyXG50eXBlIFByb3BzID0ge1xyXG4gIG1hcmdpbj86IENTU1Byb3BlcnRpZXNbJ21hcmdpbiddO1xyXG59O1xyXG5cclxuZXhwb3J0IGNvbnN0IERpdmlkZXI6IEZDPFByb3BzPiA9ICh7IG1hcmdpbiA9ICcyMHB4IDAnIH0pID0+IHtcclxuICBjb25zdCBzdHlsZXMgPSB1c2VXamVjT25lVGhlbWVTdHlsZXMoZ2V0U3R5bGVzKTtcclxuXHJcbiAgcmV0dXJuIChcclxuICAgIDxEaXZpZGVySW1hZ2VcclxuICAgICAgY3NzPXtbc3R5bGVzLmRpdmlkZXIsIHsgbWFyZ2luIH1dfVxyXG4gICAgICBoZWlnaHQ9JzRweCdcclxuICAgICAgd2lkdGg9JzEwMCUnXHJcbiAgICAvPlxyXG4gICk7XHJcbn07XHJcblxyXG5jb25zdCBnZXRTdHlsZXMgPSAoeyBjb2xvclBhbGV0dGUgfTogVGhlbWVTdGF0ZSkgPT4gKHtcclxuICBkaXZpZGVyOiBjc3NgXHJcbiAgICBib3JkZXItcmFkaXVzOiAke1N0eWxlUGFsZXR0ZS5ib3JkZXJSYWRpdXN9O1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogJHtjb2xvclBhbGV0dGUucHJpbWFyeUxpZ2h0fTtcclxuICAgIGhlaWdodDogNHB4O1xyXG4gICAgd2lkdGg6IDEwMCU7XHJcbiAgYFxyXG59KTtcclxuIl19 */"),height:"4px",width:"100%"})},st=function(e){var n=e.colorPalette;return{divider:r.css("border-radius:",o.StylePalette.borderRadius,";background-color:",n.primaryLight,";height:4px;width:100%;")}};function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ct.apply(null,arguments)}var lt,ut,dt=function(e,n){return f.createElement("svg",ct({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),tt||(tt=f.createElement("path",{opacity:.4,d:"M13 11h4.8c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C21 12.52 21 13.08 21 14.2V21",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),rt||(rt=f.createElement("path",{d:"M13 21V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C11.48 3 10.92 3 9.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2V21m19 0H2M6.5 7h3m-3 4h3m-3 4h3",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},ft=n.forwardRef(dt);function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},pt.apply(null,arguments)}var mt,ht,gt=function(e,n){return f.createElement("svg",pt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),lt||(lt=f.createElement("path",{opacity:.4,d:"M16 4c.93 0 1.395 0 1.776.102a3 3 0 0 1 2.122 2.122C20 6.605 20 7.07 20 8v9.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V8c0-.93 0-1.395.102-1.776a3 3 0 0 1 2.122-2.122C6.605 4 7.07 4 8 4",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ut||(ut=f.createElement("path",{d:"M12 15.5V11a1.5 1.5 0 0 1 3 0v4.5a3 3 0 1 1-6 0v-4M9.6 6h4.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C16 5.24 16 4.96 16 4.4v-.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C15.24 2 14.96 2 14.4 2H9.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C8 2.76 8 3.04 8 3.6v.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C8.76 6 9.04 6 9.6 6Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},vt=n.forwardRef(gt);function xt(){return xt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},xt.apply(null,arguments)}var yt,bt,Et=function(e,n){return f.createElement("svg",xt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),mt||(mt=f.createElement("path",{opacity:.4,d:"M16 4c.93 0 1.395 0 1.776.102a3 3 0 0 1 2.122 2.122C20 6.605 20 7.07 20 8v9.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V8c0-.93 0-1.395.102-1.776a3 3 0 0 1 2.122-2.122C6.605 4 7.07 4 8 4",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ht||(ht=f.createElement("path",{d:"m9 15 2 2 4.5-4.5M9.6 6h4.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C16 5.24 16 4.96 16 4.4v-.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C15.24 2 14.96 2 14.4 2H9.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C8 2.76 8 3.04 8 3.6v.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C8.76 6 9.04 6 9.6 6Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},wt=n.forwardRef(Et);function St(){return St=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},St.apply(null,arguments)}var Ct,At,jt=function(e,n){return f.createElement("svg",St({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),yt||(yt=f.createElement("path",{opacity:.4,d:"M20 10.5V6.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 2 16.88 2 15.2 2H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.28 4 5.12 4 6.8v10.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 22 7.12 22 8.8 22h2.7",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),bt||(bt=f.createElement("path",{d:"m22 22-1.5-1.5m1-2.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},kt=n.forwardRef(jt);function Ot(){return Ot=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ot.apply(null,arguments)}var Mt,Rt,Tt=function(e,n){return f.createElement("svg",Ot({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Ct||(Ct=f.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"})),At||(At=f.createElement("path",{d:"M12 16v-4m0-4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},It=n.forwardRef(Tt);function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Pt.apply(null,arguments)}var Ft,Lt,_t=function(e,n){return f.createElement("svg",Pt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Mt||(Mt=f.createElement("path",{opacity:.4,d:"M7.101 10H7V8a5 5 0 0 1 10 0v2h-.101",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Rt||(Rt=f.createElement("path",{d:"M12 14v2m7-1a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Zt=n.forwardRef(_t);function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Dt.apply(null,arguments)}var Bt,Nt,Wt=function(e,n){return f.createElement("svg",Dt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Ft||(Ft=f.createElement("path",{opacity:.4,d:"M12 16v5m6 0-3.951-3.293c-.73-.607-1.094-.91-1.5-1.027a2 2 0 0 0-1.098 0c-.406.116-.77.42-1.5 1.027L6 21",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Lt||(Lt=f.createElement("path",{d:"M8 11v1m4-3v3m4-5v5m6-9H2m1 0h18v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 16 17.88 16 16.2 16H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 13.72 3 12.88 3 11.2V3Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Vt=n.forwardRef(Wt);function zt(){return zt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},zt.apply(null,arguments)}var Ut,Ht,Gt=function(e,n){return f.createElement("svg",zt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Bt||(Bt=f.createElement("path",{opacity:.4,d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Nt||(Nt=f.createElement("path",{d:"M18.727 14.727a1.5 1.5 0 0 0 .3 1.655l.055.054a1.816 1.816 0 0 1 0 2.573 1.818 1.818 0 0 1-2.573 0l-.055-.055a1.5 1.5 0 0 0-1.654-.3 1.5 1.5 0 0 0-.91 1.373v.155a1.818 1.818 0 1 1-3.636 0V20.1a1.5 1.5 0 0 0-.981-1.373 1.5 1.5 0 0 0-1.655.3l-.054.055a1.818 1.818 0 0 1-3.106-1.287 1.818 1.818 0 0 1 .533-1.286l.054-.055a1.5 1.5 0 0 0 .3-1.654 1.5 1.5 0 0 0-1.372-.91h-.155a1.818 1.818 0 1 1 0-3.636H3.9a1.5 1.5 0 0 0 1.373-.981 1.5 1.5 0 0 0-.3-1.655l-.055-.054A1.818 1.818 0 1 1 7.491 4.99l.054.054a1.5 1.5 0 0 0 1.655.3h.073a1.5 1.5 0 0 0 .909-1.372v-.155a1.818 1.818 0 0 1 3.636 0V3.9a1.499 1.499 0 0 0 .91 1.373 1.5 1.5 0 0 0 1.654-.3l.054-.055a1.817 1.817 0 0 1 2.573 0 1.819 1.819 0 0 1 0 2.573l-.055.054a1.5 1.5 0 0 0-.3 1.655v.073a1.5 1.5 0 0 0 1.373.909h.155a1.818 1.818 0 0 1 0 3.636H20.1a1.499 1.499 0 0 0-1.373.91Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Yt=n.forwardRef(Gt);function Xt(){return Xt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Xt.apply(null,arguments)}var Jt,qt=function(e,n){return f.createElement("svg",Xt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Ut||(Ut=f.createElement("path",{opacity:.4,d:"M13 7H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 8.52 2 9.08 2 10.2v3.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 17 4.08 17 5.2 17H13m4-10h1.8c1.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 17H17",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Ht||(Ht=f.createElement("path",{d:"M17 21V3m2.5 0h-5m5 18h-5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Qt=n.forwardRef(qt);function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Kt.apply(null,arguments)}var $t,er=function(e,n){return f.createElement("svg",Kt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Jt||(Jt=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm7 0a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm7 0a2 2 0 1 1 4 0 2 2 0 0 1-4 0ZM3 12a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm7 0a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm7 0a2 2 0 1 1 4 0 2 2 0 0 1-4 0ZM3 19a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm7 0a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm7 0a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z",fill:"currentColor"})))},nr=n.forwardRef(er),tr=function(e){return e.ADD_FAVOURITE="portal_navigation_add_favourite",e.NAVIGATE="portal_navigation_follow_link",e.REMOVE_FAVOURITE="portal_navigation_remove_favourite",e.SEARCH="portal_navigation_search",e}(tr||{}),rr=function(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];self.clearTimeout(n),n=self.setTimeout((function(){e.apply(void 0,o)}),t)}}((function(e){Be(tr.SEARCH,{searchTerm:e})}),1e3);function or(){return or=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},or.apply(null,arguments)}var ir,ar=function(e,n){return f.createElement("svg",or({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),$t||($t=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.354 1.776a1.5 1.5 0 0 1 1.292 0c.353.168.547.46.645.62.102.166.206.377.308.583l.015.032 2.14 4.335 4.822.705c.227.033.46.067.65.113.182.044.52.139.789.423a1.5 1.5 0 0 1 .398 1.228c-.051.387-.27.663-.391.805-.127.148-.295.312-.46.472l-3.488 3.397.823 4.799c.04.226.08.458.095.652.014.187.029.538-.158.882a1.5 1.5 0 0 1-1.045.759c-.384.071-.713-.051-.887-.123a7.754 7.754 0 0 1-.591-.291L12 18.9l-4.31 2.267c-.204.107-.412.216-.592.29-.173.073-.503.195-.887.124a1.5 1.5 0 0 1-1.045-.76c-.187-.343-.172-.694-.158-.881.016-.194.056-.426.095-.652l.823-4.799-3.463-3.372-.025-.025c-.165-.16-.333-.324-.46-.472-.122-.142-.34-.418-.39-.805a1.5 1.5 0 0 1 .397-1.228c.27-.284.607-.38.79-.423.189-.046.422-.08.649-.113l.034-.005 4.788-.7 2.14-4.335.016-.032c.101-.206.205-.417.307-.582.098-.16.292-.453.646-.621ZM8.143 7.554Zm.333-.242Zm9.561 6.949ZM12 4.259 9.993 8.326l-.013.027c-.048.099-.147.303-.303.471a1.5 1.5 0 0 1-.467.34c-.208.096-.433.127-.541.142a3.951 3.951 0 0 0-.03.004l-4.49.657 3.247 3.163.022.02c.08.077.243.234.355.435a1.5 1.5 0 0 1 .179.55c.028.228-.013.451-.032.56a3.212 3.212 0 0 0-.005.029l-.767 4.468 4.014-2.111.027-.014c.096-.052.296-.16.522-.204a1.5 1.5 0 0 1 .578 0c.226.044.426.152.522.204l.027.014 4.014 2.11-.767-4.467c0-.009-.003-.019-.005-.03a1.905 1.905 0 0 1-.032-.56c.024-.193.084-.38.179-.549.112-.201.276-.358.355-.434.008-.008.015-.015.022-.02l3.248-3.164-4.49-.657a1.904 1.904 0 0 1-.571-.147 1.498 1.498 0 0 1-.468-.339 1.903 1.903 0 0 1-.316-.498L12 4.259Z",fill:"currentColor"})))},sr=n.forwardRef(ar);function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},cr.apply(null,arguments)}var lr,ur,dr=function(e,n){return f.createElement("svg",cr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),ir||(ir=f.createElement("path",{d:"M11.354 1.776a1.5 1.5 0 0 1 1.292 0c.353.168.547.46.645.62.102.166.206.377.308.583l.015.032 2.14 4.335 4.822.705c.227.033.46.067.65.113.182.044.52.139.789.423a1.5 1.5 0 0 1 .398 1.228c-.051.387-.27.663-.391.805-.127.148-.295.312-.46.472l-3.488 3.397.823 4.799c.04.226.08.458.095.652.014.187.029.538-.158.882a1.5 1.5 0 0 1-1.045.759c-.384.071-.713-.051-.887-.123-.18-.075-.388-.184-.591-.291L12 18.9l-4.31 2.267c-.204.107-.412.216-.592.29-.173.073-.503.195-.887.124a1.5 1.5 0 0 1-1.045-.76c-.187-.343-.172-.694-.158-.881.016-.194.056-.426.095-.652l.823-4.799-3.463-3.372-.025-.025c-.165-.16-.333-.324-.46-.472-.122-.142-.34-.418-.39-.805a1.5 1.5 0 0 1 .397-1.228c.27-.284.607-.38.79-.423.189-.046.422-.08.649-.113l.034-.005 4.788-.7 2.14-4.335.016-.032c.101-.206.205-.417.307-.582.098-.16.292-.453.646-.621Z",fill:"currentColor"})))},fr=n.forwardRef(dr),pr=function(e){var t=e.isFavourite,a=e.isSignedIn,s=e.link,c=e.onToggleFavourite,l=e.strings,u=e.togglingFavourites,d=H(i.useWjecOneTheme(),1)[0].colorPalette,f=n.useMemo((function(){return t?fr:sr}),[t]),p=n.useMemo((function(){return u.includes(s.linkId)}),[s,u]);return r.jsx("li",{css:mr.categoryLink},r.jsx("a",{href:"https://".concat(s.url),id:s.linkId,onClick:function(){!function(e){var n=e.url;Be(tr.NAVIGATE,{url:n})}(s)}},s.linkName),a&&r.jsx("button",{css:mr.toggleFavourite,onClick:function(){return c(s)},title:t?l.removeFromFavourites:l.addToFavourites,"data-is-favourite":t},p?r.jsx(o.CircularProgress,{color:d.neutralDark}):r.jsx(f,{"aria-hidden":!0,css:mr.favouriteIcon})))},mr={categoryLink:{name:"7rna1a",styles:"color:var(--neutral-dark);font-size:16px;font-weight:400;line-height:24px;margin-top:16px;position:relative;&:hover{& > button{opacity:1;}}& > a{color:var(--text-color);text-decoration:none;&:focus,&:hover{color:var(--secondary);}}"},favouriteIcon:{name:"xbbich",styles:"box-sizing:content-box;color:var(--icon-color);width:16px;"},toggleFavourite:{name:"1828h3g",styles:'--icon-color:var(--border-color);background-color:transparent;border:none;cursor:pointer;height:32px;opacity:0;padding:8px;position:absolute;right:100%;top:50%;transform:translateY(-50%);width:32px;&:focus{opacity:1;}&:hover{--icon-color:var(--neutral-dark);}&[data-is-favourite="true"]{--icon-color:var(--neutral-dark);opacity:1;}& > div{height:16px;width:16px;}'}},hr=function(e){var t=e.favourites,o=e.id,i=e.isSignedIn,a=e.label,s=e.links,c=e.name,l=e.onToggleFavourite,u=e.strings,d=e.togglingFavourites,f=n.useMemo((function(){return a||(Object.hasOwn(u,c)?u[c]:c)}),[a,c,u]),p=n.useMemo((function(){return s.sort((function(e,n){var t=e.linkName,r=n.linkName;return t.localeCompare(r)})).map((function(e){return r.jsx(pr,{isFavourite:null==t?void 0:t.includes(e.linkId),isSignedIn:i,key:e.linkId,link:e,onToggleFavourite:l,strings:u,togglingFavourites:d})}))}),[t,s,d]);return r.jsx("div",{css:gr.category,id:o},r.jsx("h3",{css:gr.categoryTitle},f),r.jsx("menu",{css:gr.categoryLinks},p))},gr={category:{name:"a0ijs6",styles:"break-inside:avoid;margin-bottom:50px;min-width:220px;"},categoryTitle:{name:"hmufvc",styles:"font-size:16px;font-weight:600;line-height:24px;margin:0;"},categoryLinks:{name:"1iruc8t",styles:"list-style:none;margin:0;padding:0;"}},vr=function(e){var t=e.favourites,o=e.idPrefix,i=e.isSignedIn,a=e.links,s=void 0===a?{}:a,c=e.onToggleFavourite,l=e.strings,u=e.togglingFavourites,d=n.useMemo((function(){return(null==t?void 0:t.length)>0?Object.values(s).reduce((function(e,n){var r=n.groups;return[].concat(Y(e),Y(Object.values(r).map((function(e){return e.links.filter((function(e){var n=e.linkId;return t.includes(n)}))})).flat()))}),[]):[]}),[s,t]);return r.jsx(hr,{favourites:t,id:"".concat(o,"FavouriteLinks"),isSignedIn:i,links:d,name:Kn.FAVOURITES,onToggleFavourite:c,strings:l,togglingFavourites:u})};function xr(){return xr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},xr.apply(null,arguments)}var yr,br=function(e,n){return f.createElement("svg",xr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),lr||(lr=f.createElement("path",{opacity:.4,d:"M16 11a5 5 0 0 0-5-5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ur||(ur=f.createElement("path",{d:"m21 21-4.35-4.35M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Er=n.forwardRef(br);function wr(){return wr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},wr.apply(null,arguments)}var Sr,Cr,Ar=function(e,n){return f.createElement("svg",wr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),yr||(yr=f.createElement("path",{d:"M20.453 12.893A8.5 8.5 0 0 1 4.638 16.25l-.25-.433m-.842-4.71A8.5 8.5 0 0 1 19.361 7.75l.25.433M3.493 18.066l.732-2.732 2.732.732m10.085-8.132 2.732.732.732-2.732",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},jr=n.forwardRef(Ar),kr=function(e){var t=e.favourites,i=e.idPrefix,a=e.isSignedIn,s=e.links,c=void 0===s?{}:s,l=e.onClear,u=e.onToggleFavourite,d=e.searchTerm,f=e.strings,p=e.togglingFavourites,m=n.useMemo((function(){var e=new RegExp("\\b".concat(d),"i");return d?Object.values(c).reduce((function(n,t){var r=t.groups;return[].concat(Y(n),Y(Object.values(r).map((function(n){return n.links.filter((function(n){var t=n.linkName;return e.test(t)}))})).flat()))}),[]):[]}),[c,d]),h=n.useMemo((function(){var e,n;return null==f||null===(e=f.searchResults)||void 0===e||null===(n=e.replace("{count}",m.length.toString()))||void 0===n?void 0:n.replace("{searchTerm}",d)}),[m,d]);return m.length>0?r.jsx(hr,{favourites:t,id:"".concat(i,"SearchResults"),isSignedIn:a,label:h,links:m,name:$n.SEARCH,onToggleFavourite:u,strings:f,togglingFavourites:p}):r.jsx("div",{css:Or.noResults},r.jsx(Er,{"aria-hidden":!0,css:Or.noResultsIcon}),r.jsx("p",{css:Or.noResultsMessage},r.jsx(o.Emphasis,null,f.noResultsTitle),f.noResultsMessage),r.jsx(o.PrimaryButton,{icon:jr,label:f.resetYourSearch,onPress:l}))},Or={noResults:{name:"1087dqv",styles:"align-items:center;break-inside:avoid;display:flex;flex-direction:column;gap:16px;left:50%;max-width:325px;padding:16px;position:absolute;top:56px;transform:translateX(-50%);"},noResultsIcon:{name:"1178dbp",styles:"background-color:var(--neutral);border-radius:100%;color:var(--secondary-dark);height:80px;overflow:visible;padding:8px 0 0 8px;width:80px;"},noResultsMessage:{name:"14qi77i",styles:"display:flex;flex-direction:column;gap:8px;margin:0;text-align:center;"}};function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Mr.apply(null,arguments)}var Rr,Tr=function(e,n){return f.createElement("svg",Mr({viewBox:"0 0 1440 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),f.createElement("mask",{id:"a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:1440,height:150},Sr||(Sr=f.createElement("path",{fill:"#fff",d:"M0 0h1440v150H0z"}))),Cr||(Cr=f.createElement("g",{mask:"url(#a)"},f.createElement("path",{opacity:.4,d:"M4.093 21.192 1.725-50.176a5 5 0 0 1 3.923-5.05l249.66-54.934a4.999 4.999 0 0 1 4.394 1.144L388.786 5.551a5.002 5.002 0 0 1 1.444 5.26L372.279 67.06a5 5 0 0 1-3.215 3.233L138.73 145.341a5 5 0 0 1-4.961-1.098L5.679 24.681a5 5 0 0 1-1.586-3.49ZM1438.64 11.165l5.18-83.581a5 5 0 0 0-3.78-5.16l-286.09-71.608a4.986 4.986 0 0 0-4.42 1.017L995.649-19.287a4.998 4.998 0 0 0-1.719 2.995L970.938 118.98a5 5 0 0 0 4.653 5.83l370.079 20.533a5.005 5.005 0 0 0 4.42-2.188l87.7-129.495c.5-.74.8-1.602.85-2.495Z",fill:"#47BAD1"}),f.createElement("path",{opacity:.4,d:"m341.147 35.262 214.851 26.282a5.003 5.003 0 0 0 4.313-1.605l92.293-101.841c3.011-3.322.465-8.622-4.01-8.349L337.991-31.26a5 5 0 0 0-4.686 5.296l3.459 56.569a5 5 0 0 0 4.383 4.657Z",fill:"#A55896"}),f.createElement("path",{opacity:.4,d:"m636.066 94.071-192.7-231.608c-1.998-2.401-1.329-6.026 1.393-7.556l302.76-170.202a5 5 0 0 1 6.809 1.908L926.159-7.729c1.532 2.725.215 6.173-2.744 7.182L641.524 95.605a5 5 0 0 1-5.458-1.534Z",fill:"#2855A2"}),f.createElement("path",{opacity:.4,d:"M983.494 89.93 703.798 14.977c-3.017-.808-4.562-4.154-3.221-6.975l143.28-301.486a5 5 0 0 1 6.662-2.37l304.371 144.653c2.83 1.342 3.74 4.918 1.91 7.45L988.837 88.035a5 5 0 0 1-5.343 1.895Z",fill:"#B0C600"}))))},Ir=n.forwardRef(Tr);function Pr(){return Pr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Pr.apply(null,arguments)}var Fr,Lr=function(e,n){return f.createElement("svg",Pr({viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Rr||(Rr=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 3.333a2.917 2.917 0 1 0 0 5.833 2.917 2.917 0 0 0 0-5.833ZM5.917 6.25a4.583 4.583 0 1 1 9.166 0 4.583 4.583 0 0 1-9.166 0Zm2.355 5.833H12.728c1.023 0 1.721 0 2.315.18a4.166 4.166 0 0 1 2.777 2.777c.18.594.18 1.292.18 2.315v.145a.833.833 0 1 1-1.667 0c0-1.224-.009-1.65-.107-1.976a2.5 2.5 0 0 0-1.667-1.666c-.325-.1-.752-.108-1.976-.108H8.417c-1.224 0-1.651.009-1.976.107a2.5 2.5 0 0 0-1.667 1.667c-.098.325-.107.752-.107 1.976A.833.833 0 1 1 3 17.5v-.145c0-1.023 0-1.721.18-2.315a4.166 4.166 0 0 1 2.777-2.777c.594-.18 1.292-.18 2.315-.18Z",fill:"#FAFCFC"})))},_r=n.forwardRef(Lr),Zr=function(e){var n=e.id,t=e.onPressSignIn,i=e.strings;return r.jsx("div",{css:Dr.container,id:n},r.jsx(Ir,{css:Dr.headerShapes}),r.jsx(o.Emphasis,null,i.signinCardTitle),i.signinCardMessage,r.jsx(o.PrimaryButton,{icon:_r,label:i.signIn,onPress:t}))},Dr={container:r.css("background-color:var(--neutral);break-inside:avoid;border-radius:",o.StylePalette.borderRadius,";display:flex;flex-direction:column;gap:30px;max-width:400px;padding:55px 30px 30px;position:relative;"),headerShapes:{name:"2dfsk9",styles:"left:0;position:absolute;right:0;top:0;width:100%;"}},Br=function(e){var t=e.favourites,o=e.idPrefix,i=e.isSignedIn,a=e.links,s=e.onClearSearch,c=e.onPressSignIn,l=e.onToggleFavourite,u=e.searchTerm,d=e.selectedSection,f=e.strings,p=e.togglingFavourites,m=n.useMemo((function(){var e;return(null==a||null===(e=a[d])||void 0===e?void 0:e.groups)||[]}),[a,d]);return r.jsx("section",{css:Nr.linksContainer,id:"".concat(o,"LinksSection")},d===$n.SEARCH?r.jsx(kr,{favourites:t,idPrefix:o,isSignedIn:i,links:a,onClear:s,onToggleFavourite:l,searchTerm:u,strings:f,togglingFavourites:p}):d===$n.FAVOURITES?r.jsx(vr,{favourites:t,idPrefix:o,isSignedIn:i,links:a,onToggleFavourite:l,strings:f,togglingFavourites:p}):r.jsx(n.Fragment,null,m.map((function(e){var n=e.groupName,a=e.links;return r.jsx(hr,{favourites:t,id:"".concat(o,"Group_").concat(n.replace(/\s/g,"")),isSignedIn:i,key:n,links:a,name:n,onToggleFavourite:l,strings:f,togglingFavourites:p})})),!i&&r.jsx(Zr,{id:"".concat(o,"SigninCard"),onPressSignIn:c,strings:f})))},Nr={linksContainer:r.css(o.StylePalette.scrollbar,";column-gap:24px;overflow-y:auto;padding:0 0 8px 85px;width:100%;@media screen and (min-width:1280px){column-count:3;}@media screen and (max-width:1279px) and (min-width:1024px){column-count:2;}")},Wr=function(e){var n=e.id,t=e.isLoading,i=e.onClose,a=e.onConfirm,s=e.strings;return r.jsx(o.Modal,{actionButton:s.removeFavouriteConfirmation,actionLoading:t,actionType:"negative",cancelButton:s.cancel,closeOnCancel:!t,closeOnClickOutside:!t,id:n,maxWidth:"400px",onAction:a,onClose:i,open:!0,showCloseIcon:!1},s.removeFavouriteConfirmationMessage)},Vr=function(e){var n=e.isLowlighted,t=e.isSelected,o=e.onSelect,i=e.section,a=i.icon,s=i.name;return r.jsx("li",{css:r.css([zr.section,n&&zr.sectionLowlight,t&&zr.sectionSelected]),onClick:function(){return o(i)},key:s},r.jsx(a,{css:zr.sectionIcon})," ",s)},zr={section:r.css("align-items:center;border-radius:",o.StylePalette.borderRadius,";cursor:pointer;display:flex;font-size:16px;line-height:24px;margin-bottom:8px;padding:8px;&:hover{background-color:var(--neutral);opacity:1;}"),sectionLowlight:{name:"1w5zg6j",styles:"opacity:0.2;"},sectionIcon:{name:"10vl325",styles:"color:var(--text-color);flex-shrink:0;margin-right:8px;width:24px;"},sectionSelected:{name:"17brhxb",styles:"background-color:var(--neutral);& > svg{color:var(--secondary-dark);}"}};function Ur(){return Ur=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ur.apply(null,arguments)}var Hr,Gr,Yr=function(e,n){return f.createElement("svg",Ur({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Fr||(Fr=f.createElement("path",{d:"M12.917 11.667h-.659l-.233-.225a5.393 5.393 0 0 0 1.308-3.525 5.417 5.417 0 1 0-5.416 5.416 5.393 5.393 0 0 0 3.525-1.308l.225.233v.659l3.954 3.946a.3.3 0 0 0 .424 0l.818-.818a.3.3 0 0 0 0-.424l-3.946-3.954Zm-5 0a3.745 3.745 0 0 1-3.75-3.75 3.745 3.745 0 0 1 3.75-3.75 3.745 3.745 0 0 1 3.75 3.75 3.745 3.745 0 0 1-3.75 3.75Z",fill:"currentColor"})))},Xr=n.forwardRef(Yr),Jr=function(e){var t=e.idPrefix,o=e.isSignedIn,i=e.links,a=void 0===i?{}:i,s=e.onSelect,c=e.selectedSection,l=e.strings,u=n.useMemo((function(){return Object.keys(a)}),[a]);return r.jsx("menu",{css:qr.sections,id:"".concat(t,"SectionsMenu")},c===$n.SEARCH&&r.jsx(Vr,{isSelected:!0,onSelect:function(){return s($n.SEARCH)},section:{icon:Xr,name:l[$n.SEARCH]}}),u.map((function(e){var n=function(e){switch(e){case"duocolour_building-05":return ft;case"duocolour_clipboard-attachment":return vt;case"duocolour_clipboard-check":return wt;case"duocolour_file-search-01":return kt;case"duocolour_info-circle":return It;case"duocolour_lock-04":return Zt;case"duocolour_presentation-chart-02":return Vt;case"duocolour_settings-01":return Yt;case"duocolour_text-input":return Qt;default:return nr}}(a[e].sectionIcon),t=Object.hasOwn(l,e)?l[e]:e;return r.jsx(Vr,{isLowlighted:c===$n.SEARCH,isSelected:c===e,key:e,onSelect:function(){return s(e)},section:{icon:n,name:t}})})),o&&r.jsx(Vr,{isLowlighted:c===$n.SEARCH,isSelected:c===$n.FAVOURITES,onSelect:function(){return s($n.FAVOURITES)},section:{icon:sr,name:l[$n.FAVOURITES]}}))},qr={sections:r.css(o.StylePalette.scrollbar,";border-right:1px solid var(--border-color);list-style:none;margin:0;max-width:220px;min-width:200px;overflow-y:auto;padding:0 24px 8px 0;")},Qr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=Math.ceil(e),r=Math.floor(n);return Math.floor(Math.random()*(r-t+1))+t},Kr=function(e){var n=e.height,t=void 0===n?"100%":n,o=e.margin,a=void 0===o?"0":o,s=e.padding,c=void 0===s?"0":s,l=e.width,u=void 0===l?"100%":l,d=i.useWjecOneThemeStyles($r);return r.jsx("div",{css:r.css([d.skeletonBlock,{height:t,margin:a,padding:c,width:u}])})},$r=function(e){var n=e.colorPalette;return{skeletonBlock:r.css("animation:",eo," 1500ms infinite linear;background-color:",n.neutral,";background-image:linear-gradient(110deg,#ececec 10%,#f5f5f5 20%,#ececec 35%);background-size:200% 100%;border-radius:",o.StylePalette.borderRadius,";")}},eo=r.keyframes(Hr||(Hr=G(["\n to {\n background-position-x: -200%;\n }\n"]))),no=function(){var e=i.useWjecOneThemeStyles(oo),t=n.useMemo((function(){return Y(Array(Qr(4,8))).map((function(){return Qr(75,350)}))}),[]),o=n.useMemo((function(){return Y(Array(Qr(3,6))).map((function(e,n){return n}))}),[]);return r.jsx("div",{css:e.container},r.jsx("div",{css:e.leftPanel},o.map((function(e){return r.jsx(Kr,{key:e,height:"40px",margin:"0 0 8px"})}))),r.jsx("div",{css:e.rightPanel},t.map((function(n,t){return r.jsx("div",{key:t,css:e.group},r.jsx(Kr,{height:"25px",margin:"0 0 16px",width:"33%"}),r.jsx(Kr,{height:"".concat(n,"px")}))}))))},to={name:"mkgnve",styles:"display:flex;height:100%;width:100%;"},ro={name:"a0ijs6",styles:"break-inside:avoid;margin-bottom:50px;min-width:220px;"},oo=function(e){var n=e.colorPalette;return{container:to,group:ro,leftPanel:r.css("border-right:1px solid ",n.border,";flex-shrink:0;height:100%;padding:0 24px 8px 0;width:200px;"),rightPanel:r.css(o.StylePalette.scrollbar,";column-gap:24px;overflow-y:auto;padding:0 0 8px 85px;width:100%;@media screen and (min-width:1280px){column-count:3;}@media screen and (max-width:1279px) and (min-width:1024px){column-count:2;}")}},io=Object.freeze({cancel:"Cancel",codeDescription:"Enter your 6-digit code",codeLabel:"Code",codeFormatError:"Verification code must consist of 6 numbers",codeMatchError:"You have entered an invalid code",codeMissingError:"You must enter the verification code",codePlaceholder:"e.g. 673489",emailAddressLabel:"Email address",emailAddressMissingError:"You must provide a valid email address",emailAddressPlaceholder:"e.g. joe.bloggs@wjec.co.uk",externalSignIn:"Sign in as an Appointee",forgotPassword:"Forgot your password?",haveCode:"Already have a code?",mfaAttemptWarning:"You have used {exhausted} out of {max} attempts",newPasswordLabel:"New Password",next:"Next",or:"OR",passwordHint:"",passwordLabel:"Password",passwordMissingError:"You must enter your password",passwordValidationError:"The password you entered does not match the required format",resendCode:"Re-send code",sendReminder:"Send Reminder",setupTotpMfa:"Set up your authenticator app",signIn:"Sign in",submitCode:"Submit Code",submitPassword:"Confirm Password",title:"Sign in to your WJEC Account",useSmsMfa:"Use an SMS code instead",usernameLabel:"Email address",usernameMissingError:"You must provide a valid email address",usernamePlaceholder:"e.g. joe.bloggs@wjec.co.uk"}),ao=function(e){return e.SET_CURRENT_CHALLENGE="SET_CURRENT_CHALLENGE",e.SET_CURRENT_MODE="SET_CURRENT_MODE",e.SET_EMAIL_ADDRESS="SET_EMAIL_ADDRESS",e.SET_ERROR_TYPE="SET_ERROR_TYPE",e.SET_LOCALIZATION_STRINGS="SET_LOCALIZATION_STRINGS",e.SET_PASSWORD="SET_PASSWORD",e.SET_USE_EMAIL_ADDRESS_AS_USERNAME="SET_USE_EMAIL_ADDRESS_AS_USERNAME",e.SET_USERNAME="SET_USERNAME",e.SET_USERNAME_ICON="SET_USERNAME_ICON",e}({}),so=a.createSimpleAction(ao.SET_CURRENT_CHALLENGE),co=a.createSimpleAction(ao.SET_CURRENT_MODE),lo=a.createSimpleAction(ao.SET_EMAIL_ADDRESS),uo=a.createSimpleAction(ao.SET_ERROR_TYPE),fo=a.createSimpleAction(ao.SET_LOCALIZATION_STRINGS),po=a.createSimpleAction(ao.SET_PASSWORD),mo=a.createSimpleAction(ao.SET_USERNAME),ho=a.createSimpleAction(ao.SET_USERNAME_ICON),go=a.createSimpleAction(ao.SET_USE_EMAIL_ADDRESS_AS_USERNAME),vo=function(e,n){var t=n.payload;switch(n.type){case ao.SET_CURRENT_CHALLENGE:return Object.freeze(Z(Z({},e),{},{currentChallenge:t}));case ao.SET_CURRENT_MODE:return Object.freeze(Z(Z({},e),{},{currentMode:t}));case ao.SET_EMAIL_ADDRESS:return e.useEmailAddressAsUsername?Object.freeze(Z(Z({},e),{},{emailAddress:t,username:t})):Object.freeze(Z(Z({},e),{},{emailAddress:t}));case ao.SET_ERROR_TYPE:return Object.freeze(Z(Z({},e),{},{errorType:t}));case ao.SET_LOCALIZATION_STRINGS:return Object.freeze(Z(Z({},e),{},{i18n:t}));case ao.SET_PASSWORD:return Object.freeze(Z(Z({},e),{},{password:t}));case ao.SET_USE_EMAIL_ADDRESS_AS_USERNAME:return Object.freeze(Z(Z({},e),{},{useEmailAddressAsUsername:t}));case ao.SET_USERNAME:return e.useEmailAddressAsUsername?Object.freeze(Z(Z({},e),{},{emailAddress:t,username:t})):Object.freeze(Z(Z({},e),{},{username:t}));case ao.SET_USERNAME_ICON:return Object.freeze(Z(Z({},e),{},{usernameIcon:t}));default:return e}};function xo(){return xo=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},xo.apply(null,arguments)}var yo,bo=function(e,n){return f.createElement("svg",xo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Gr||(Gr=f.createElement("path",{d:"m21.5 18-6.643-6m-5.714 0L2.5 18M2 7l8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Eo=n.forwardRef(bo),wo=["children"],So=Object.freeze({currentChallenge:void 0,currentMode:"signIn",emailAddress:void 0,errorType:void 0,i18n:io,password:void 0,useEmailAddressAsUsername:!1,username:void 0,usernameIcon:Eo}),Co=n.createContext([So,void 0]),Ao=function(e){var t=e.children,o=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==n.indexOf(r))continue;t[r]=e[r]}return t}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,wo),i=n.useReducer(vo,So,(function(e){return function(e,n){var t=Z({},e);return Object.entries(n).forEach((function(e){var n=H(e,2),r=n[0],o=n[1];void 0!==o&&(t[r]=o)})),Object.freeze(t)}(e,o)})),a=H(i,2),s=a[0],c=a[1];return r.jsx(Co.Provider,{value:[s,c]},t)},jo=function(){return n.useContext(Co)},ko=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e.querySelector("input")};n.useEffect((function(){t(e.current).focus()}),[])},Oo=function(e,r){var o=t.useAuthorization().requestStatuses,i=n.useMemo((function(){return Array.isArray(r)?r:[r]}),[r]),a=H(n.useState(!1),2),s=a[0],c=a[1];return n.useEffect((function(){var n=!0;return s&&e().finally((function(){n&&c(!1)})),function(){n=!1}}),[s]),{callSigninFormAction:function(){return c(!0)},loading:s||i.some((function(e){return"loading"===o[e]}))}},Mo={fieldsSection:{name:"1yir50x",styles:"align-items:stretch;border:none;display:flex;flex-direction:column;margin:0;padding:0;"},form:{name:"7vhy35",styles:"display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;line-height:24px;width:100%;& >:not(:last-child){margin-bottom:24px;}"},formControls:{name:"z29w5v",styles:"border:none;display:flex;justify-content:space-between;margin:0;padding:0;& >:first-of-type:not(:only-child){margin-right:45px;}& >:only-child{margin-left:auto;}"}};function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ro.apply(null,arguments)}var To,Io,Po=function(e,n){return f.createElement("svg",Ro({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),yo||(yo=f.createElement("path",{d:"M5 12h14m0 0-7-7m7 7-7 7",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Fo=n.forwardRef(Po),Lo=function(e){var i=e.passwordValidator,a=void 0===i?function(){return!0}:i,s=t.useAuthorization().requestStatuses,c=H(jo(),1)[0],l=c.currentChallenge,u=c.errorType,d=c.i18n,f=H(n.useState(),2),p=f[0],m=f[1],h=H(n.useState(""),2),g=h[0],v=h[1],x=n.useRef();ko(x);var y=n.useMemo((function(){return"loading"===s[t.AuthAction.FORCE_CHANGE_PASSWORD]||"loading"===s[t.AuthAction.GET_USER_PREFERENCES]}),[s[t.AuthAction.FORCE_CHANGE_PASSWORD],s[t.AuthAction.GET_USER_PREFERENCES]]),b=n.useMemo((function(){return void 0!==p||u===t.AuthAction.FORCE_CHANGE_PASSWORD?"error":void 0}),[p,u]);return r.jsx("form",{css:Mo.form,id:"NewPasswordForm",onSubmit:function(e){if(e.preventDefault(),l.challengeType===t.ChallengeType.NEW_PASSWORD_REQUIRED&&!y){var n=!!g,r=a(g);n?r||m(d.passwordValidationError):m(d.passwordMissingError),n&&r&&(m(void 0),l.completeChallenge(g))}},ref:x},r.jsx(o.Password,{description:d.passwordHint,disabled:y,id:"NewPasswordInput",label:d.newPasswordLabel,onChange:v,status:b,statusMessage:p,value:g}),r.jsx("fieldset",{css:Mo.formControls},r.jsx(o.PrimaryButton,{buttonType:"submit",icon:Fo,iconPosition:"right",id:"NewPasswordButton",label:d.submitPassword,loading:y,size:"small"})))},_o=function(e){var a=e.onCancel,c=e.onSubmitRequestCode,l=t.useAuthorization().requestStatuses,u=H(jo(),2),d=u[0],f=d.currentMode,p=d.errorType,m=d.i18n,h=d.useEmailAddressAsUsername,g=d.username,v=u[1],x=n.useRef();ko(x);var y=H(n.useState(!1),2),b=y[0],E=y[1],w=n.useMemo((function(){return"loading"===l[t.AuthAction.REQUEST_PASSWORD_RESET]}),[l[t.AuthAction.REQUEST_PASSWORD_RESET]]),S=n.useMemo((function(){return b||p===t.AuthAction.REQUEST_PASSWORD_RESET?"error":void 0}),[p,b]),C=function(){var e=I(q().mark((function e(n){return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),w){e.next=12;break}if(!g){e.next=11;break}return E(!1),s.isCallableFunction(c)&&c(g),e.next=7,t.requestPasswordReset(g);case 7:e.sent&&v(co("forgotPasswordSubmitCode")),e.next=12;break;case 11:E(!0);case 12:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),A=i.useWjecOneThemeStyles(Zo);return r.jsx("form",{css:Mo.form,id:"RequestPasswordResetForm",onSubmit:C,ref:x},r.jsx("fieldset",{css:Mo.fieldsSection},r.jsx(o.Input,{autoComplete:h?"email":"username",disabled:w,icon:Eo,id:h?"EmailInput":"UsernameInput",label:m.usernameLabel,onChange:function(e){v(lo(e))},placeholder:m.usernamePlaceholder,status:S,statusMessage:b&&!g&&m.usernameMissingError,value:g}),r.jsx("a",{css:A.haveCode,id:"HaveCodeLink",onClick:function(){v(co("forgotPasswordSubmitCode"))}},m.haveCode)),r.jsx("fieldset",{css:Mo.formControls},r.jsx(o.Button,{disabled:w,id:"CancelButton",label:m.cancel,onPress:function(){s.isCallableFunction(a)&&a(f),v(co("signIn"))},size:"small"}),r.jsx(o.PrimaryButton,{buttonType:"submit",icon:Fo,iconPosition:"right",id:"SendReminderButton",label:m.sendReminder,loading:w,size:"small"})))},Zo=function(e){var n=e.colorPalette;return{haveCode:r.css("align-self:flex-end;color:",n.secondaryDark,";cursor:pointer;display:inline-block;font-size:16px;font-weight:400;line-height:24px;margin-top:10px;")}},Do=function(e){var i=e.onCancel,a=e.onSubmitNewPassword,c=e.passwordValidator,l=void 0===c?function(){return!0}:c,u=t.useAuthorization().requestStatuses,d=H(jo(),2),f=d[0],p=f.currentMode,m=f.errorType,h=f.i18n,g=f.useEmailAddressAsUsername,v=f.username,x=f.usernameIcon,y=d[1],b=n.useRef();ko(b);var E=H(n.useState(""),2),w=E[0],S=E[1],C=H(n.useState(""),2),A=C[0],j=C[1],k=H(n.useState(""),2),O=k[0],M=k[1],R=H(n.useState(""),2),T=R[0],P=R[1],F=H(n.useState(""),2),L=F[0],_=F[1],Z=n.useMemo((function(){return"loading"===u[t.AuthAction.COMPLETE_PASSWORD_RESET]}),[u[t.AuthAction.COMPLETE_PASSWORD_RESET]]),D=n.useMemo((function(){return m===t.AuthAction.COMPLETE_PASSWORD_RESET?"error":void 0}),[m]),B=function(){var e=I(q().mark((function e(n){return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),Z){e.next=12;break}if(!N()){e.next=12;break}return j(""),P(""),_(""),s.isCallableFunction(a)&&a(O,w),e.next=10,t.completePasswordReset(v,w,O);case 10:e.sent&&y(co("signIn"));case 12:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),N=function(){var e=""!==w,n=""!==O,t=l(O),r=""!==v;return j(e?"":"codeMissing"),_(r?"":h.usernameMissingError),n?t||P("passwordValidationError"):P("passwordMissingError"),e&&n&&t&&r},W=n.useMemo((function(){return"codeMissing"===A?h.codeMissingError:""}),[h,A]),V=n.useMemo((function(){switch(T){case"passwordMissingError":return h.passwordMissingError;case"passwordValidationError":return h.passwordValidationError;default:return""}}),[T,h]);return r.jsx("form",{css:Mo.form,id:"NewPasswordForm",onSubmit:B,ref:b},r.jsx(o.Input,{autoComplete:g?"email":"username",disabled:Z,icon:x,id:g?"EmailInput":"UsernameInput",label:h.usernameLabel,onChange:function(e){y(mo(e))},placeholder:h.usernamePlaceholder,status:D||(L?"error":void 0),statusMessage:L,value:v}),r.jsx(o.VerificationCodeInput,{description:h.codeDescription,disabled:Z,id:"CodeInput",label:h.codeLabel,onChange:S,placeholder:h.codePlaceholder,status:D||(A?"error":void 0),statusMessage:W}),r.jsx(o.Password,{description:h.passwordHint,disabled:Z,id:"NewPasswordInput",label:h.newPasswordLabel,onChange:M,status:D||(T?"error":void 0),statusMessage:V,value:O}),r.jsx("fieldset",{css:Mo.formControls},r.jsx(o.Button,{disabled:Z,id:"CancelButton",label:h.cancel,onPress:function(){s.isCallableFunction(i)&&i(p),y(co("signIn"))},size:"small"}),r.jsx(o.PrimaryButton,{buttonType:"submit",icon:Fo,iconPosition:"right",id:"NewPasswordButton",label:h.submitPassword,loading:Z,size:"small"})))},Bo=Object.freeze(["cbac.co.uk","wjec.co.uk","eduqas.co.uk"]),No=Object.freeze(["wjec-appointees.co.uk"]),Wo=function(e){var a=e.onSignIn,c=e.onSubmitSignIn,l=H(jo(),2),u=l[0],d=u.errorType,f=u.i18n,p=u.password,m=u.useEmailAddressAsUsername,h=u.username,g=u.usernameIcon,v=l[1],x=n.useRef();ko(x);var y=H(n.useState(!1),2),b=y[0],E=y[1],w=H(n.useState(!1),2),S=w[0],C=w[1],A=n.useMemo((function(){return h&&Bo.some((function(e){return h.toLocaleLowerCase().endsWith(e)}))}),[h]),j=n.useMemo((function(){return h&&No.some((function(e){return h.toLocaleLowerCase().endsWith(e)}))}),[h]),k=Oo(I(q().mark((function e(){return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.signIn(h,p).then((function(){s.isCallableFunction(a)&&a()}));case 2:case"end":return e.stop()}}),e)}))),[t.AuthAction.GET_USER_PREFERENCES,t.AuthAction.SIGN_IN]),O=k.callSigninFormAction,M=k.loading,R=n.useMemo((function(){return"signIn"===d||b?"error":void 0}),[d,b]);n.useEffect((function(){E(!1)}),[S]),n.useEffect((function(){(A||j)&&C(!1)}),[A,j]);var T=i.useWjecOneThemeStyles(Vo);return r.jsx("form",{css:Mo.form,id:"SignInForm",onSubmit:function(e){e.preventDefault(),!M&&h?(E(!1),!h||A||j||(C(!0),h&&p?(E(!1),s.isCallableFunction(c)&&c(h,p),O()):E(!0)),A&&!j&&t.externalSignIn("AzureWJECMain"),!A&&j&&t.externalSignIn("AzureWJECOPP")):E(!0)},ref:x},r.jsx(o.Input,{autoComplete:m?"email":"username",disabled:M,icon:g,id:m?"EmailInput":"UsernameInput",label:f.usernameLabel,onChange:function(e){e||C(!1),v(mo(e))},placeholder:f.usernamePlaceholder,status:R,statusMessage:b&&!h&&f.usernameMissingError,value:h}),S&&r.jsx("fieldset",{css:Mo.fieldsSection},r.jsx(o.Password,{disabled:M,id:"PasswordInput",label:f.passwordLabel,onChange:function(e){v(po(e))},status:R,statusMessage:b&&!p&&f.passwordMissingError,value:p})),r.jsx(o.PrimaryButton,{buttonType:"submit",icon:Fo,iconPosition:"right",id:"SignInButton",label:f.next,loading:M}),S&&r.jsx("a",{css:T.forgotPassword,id:"ForgotPasswordLink",onClick:function(){v(co("forgotPasswordRequestCode"))},"data-disabled":M},f.forgotPassword))},Vo=function(e){var n=e.colorPalette;return{appointeesSignin:r.css("border:none;border-top:2px solid ",n.border,";color:",n.neutralLight,";display:flex;flex-direction:column;margin:0;padding:24px 0 0;text-align:center;& > legend{padding:0 16px;font-size:16px;font-weight:600;line-height:16px;}"),forgotPassword:r.css("align-self:flex-start;color:",n.primaryDark,';cursor:pointer;display:inline-block;font-size:12px;font-weight:600;line-height:16px;&[data-disabled="true"]{opacity:0.5;pointer-events:none;}')}},zo=function(e){var a=e.mfaAttemptLimit,c=e.onCancel,l=e.showResendCode,u=H(jo(),2),d=u[0],f=d.currentChallenge,p=d.currentMode,m=d.i18n,h=d.password,g=d.username,v=u[1],x=n.useRef();ko(x);var y=H(n.useState(""),2),b=y[0],E=y[1],w=H(n.useState(),2),S=w[0],C=w[1],A=H(n.useState(),2),j=A[0],k=A[1],O=n.useMemo((function(){return((null==f?void 0:f.challengeType)===t.ChallengeType.EMAIL_MFA||(null==f?void 0:f.challengeType)===t.ChallengeType.SMS_MFA)&&l}),[null==f?void 0:f.challengeType,l]),M=n.useMemo((function(){var e;if("object"===X(a))switch(null==f?void 0:f.challengeType){case t.ChallengeType.EMAIL_MFA:e=a[t.MFAType.EMAIL];break;case t.ChallengeType.SMS_MFA:e=a[t.MFAType.SMS];break;case t.ChallengeType.TOTP_MFA:e=a[t.MFAType.TOTP]}else e=a;return e}),[null==f?void 0:f.challengeType,a]),R=n.useMemo((function(){switch(null==f?void 0:f.challengeType){case t.ChallengeType.EMAIL_MFA:case t.ChallengeType.SMS_MFA:case t.ChallengeType.TOTP_MFA:return f.attemptNumber;default:return 1}}),[f]),T=n.useMemo((function(){return M&&R>M}),[M,R]);n.useEffect((function(){M&&R>1&&(C(R<M?"warning":"error"),k("mfaAttemptWarning"))}),[M,R,m]);var P=Oo(I(q().mark((function e(){return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f.completeChallenge(b);case 2:case"end":return e.stop()}}),e)}))),[t.AuthAction.GET_USER_PREFERENCES,t.AuthAction.SUBMIT_MFA_CODE]),F=P.callSigninFormAction,L=P.loading,_=n.useCallback((function(e,n){"confirmSignIn"===e&&Object.hasOwn(n,"code")&&"CodeMismatchException"===n.code&&(C("error"),k("codeMatchError"))}),[]);t.useAuthorization({onError:_});var Z=n.useMemo((function(){var e;switch(j){case"mfaAttemptWarning":return m.mfaAttemptWarning.replace("{current}",null==R?void 0:R.toString()).replace("{exhausted}",null===(e=R-1)||void 0===e?void 0:e.toString()).replace("{max}",null==M?void 0:M.toString());case"codeMatchError":return m.codeMatchError;case"codeFormatError":return m.codeFormatError;default:return""}}),[m,j]),D=i.useWjecOneThemeStyles(Uo);return r.jsx("form",{css:Mo.form,id:"MfaCodeForm",onSubmit:function(e){var n=function(e){return/^\d{6}$/.test(e)}(b);if(e.preventDefault(),!T&&!L)if(n)switch(C(void 0),k(void 0),null==f?void 0:f.challengeType){case t.ChallengeType.EMAIL_MFA:case t.ChallengeType.SMS_MFA:case t.ChallengeType.TOTP_MFA:F();break;default:s.developerWarning("Unhandled challenge type: ".concat(null==f?void 0:f.challengeType))}else C("error"),k("codeFormatError")},ref:x},r.jsx("fieldset",{css:Mo.fieldsSection},r.jsx(o.VerificationCodeInput,{description:m.codeDescription,disabled:T||L,id:"CodeInput",label:m.codeLabel,onChange:E,placeholder:m.codePlaceholder,status:S,statusMessage:Z}),O&&r.jsx("a",{css:D.formOption,id:"ResendCodeLink",onClick:function(){t.signIn(g,h)},"data-disabled":L},m.resendCode)),r.jsx("fieldset",{css:Mo.formControls},r.jsx(o.Button,{disabled:L,id:"CancelButton",label:m.cancel,onPress:function(){s.isCallableFunction(c)&&c(p),v(co("signIn"))},size:"small"}),r.jsx(o.PrimaryButton,{buttonType:"submit",disabled:T,icon:Fo,iconPosition:"right",id:"SubmitCodeButton",label:m.submitCode,loading:L,size:"small"})))},Uo=function(e){var n=e.colorPalette;return{formOption:r.css("align-self:flex-end;color:",n.secondaryDark,';cursor:pointer;display:inline-block;font-size:16px;font-weight:400;line-height:24px;margin-top:10px;&[data-disabled="true"]{opacity:0.5;pointer-events:none;}')}},Ho=function(e){var n=e.children,t=e.step,o=i.useWjecOneThemeStyles(Go);return r.jsx("li",{css:o.container,"data-step":t},n)},Go=function(e){var n=e.colorPalette;return{container:r.css("align-items:flex-start;display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;gap:16px 8px;line-height:24px;overflow:hidden;padding-left:28px;position:relative;&:not(:last-child){margin-bottom:24px;}&::before{background-color:",n.neutral,";border-radius:10px;bottom:0;content:attr(data-step);color:",n.font,";display:flex;flex-shrink:0;font-weight:700;justify-content:center;left:0;position:absolute;top:0;width:18px;}")}},Yo=function(e,r,o){var i=x(r),a=function(e){var r=t.useAuthorization(),o=r.groups,i=r.isSignedIn,a=x(e);return n.useMemo((function(){return i?v(e,o,a):[]}),[a,e,o,i])}(r),s=[].concat(Y(t.state.groups),Y(a)),c=n.useMemo((function(){var n={},t=(null==e?void 0:e[o])||{};for(var r in t){var a,c=P(t[r].groups);try{for(c.s();!(a=c.n()).done;){var l=a.value,u=l.links.filter((function(e){var n=e.accessGroups,t=void 0===n?[]:n;return 0===t.length||t.includes(i)||t.some((function(e){return s.includes(e)}))}));u.length>0&&(n[r]||(n[r]=Z(Z({},t[r]),{},{groups:[]})),n[r].groups.push(Z(Z({},l),{},{links:u})))}}catch(e){c.e(e)}finally{c.f()}}return n}),[i,e,o,a]);return c};function Xo(){return Xo=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Xo.apply(null,arguments)}var Jo,qo=function(e,n){return f.createElement("svg",Xo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),To||(To=f.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"})),Io||(Io=f.createElement("path",{d:"m15 9-6 6m0-6 6 6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Qo=n.forwardRef(qo);function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ko.apply(null,arguments)}var $o,ei,ni=function(e,n){return f.createElement("svg",Ko({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Jo||(Jo=f.createElement("path",{d:"M12.917 11.667h-.659l-.233-.225a5.393 5.393 0 0 0 1.308-3.525 5.417 5.417 0 1 0-5.416 5.416 5.393 5.393 0 0 0 3.525-1.308l.225.233v.659l3.954 3.946a.3.3 0 0 0 .424 0l.818-.818a.3.3 0 0 0 0-.424l-3.946-3.954Zm-5 0a3.745 3.745 0 0 1-3.75-3.75 3.745 3.745 0 0 1 3.75-3.75 3.745 3.745 0 0 1 3.75 3.75 3.745 3.745 0 0 1-3.75 3.75Z",fill:"currentColor"})))},ti=n.forwardRef(ni),ri={name:"hyf6y2",styles:"display:flex;flex-direction:column;margin:0 auto;max-width:var(--max-width);width:100%;"},oi={name:"18qoxif",styles:"display:flex;height:100%;overflow:hidden;padding:56px 0 0;position:relative;transition:opacity linear 250ms,transform linear 250ms;width:100%;&[data-offset]{opacity:0;transform:translateY(-35px);}"},ii={name:"9751jc",styles:'margin:0 auto;position:relative;width:400px;& input[type="text"]:not(input[value=""]){padding-right:40px;}'},ai=function(e){var n=e.colorPalette;return{clearSearchButton:r.css("background-color:transparent;border:none;cursor:pointer;height:40px;outline-color:",n.primary,";padding:8px;position:absolute;right:0;top:0;width:40px;"),clearSearchIcon:r.css("color:",n.errorDark,";"),container:r.css("--border-color:",n.border,";--max-width:1280px;--horizontal-padding:24px;--neutral:",n.neutral,";--neutral-dark:",n.neutralDark,";--offset-top:71px;--secondary:",n.secondary,";--secondary-dark:",n.secondaryDark,";--text-color:",n.neutralDark,";bottom:0;backdrop-filter:blur(5px);background-color:rgba(255,255,255,0.9);display:flex;font-family:'Montserrat',sans-serif;justify-content:center;left:0;padding:40px var(--horizontal-padding) 0;position:fixed;right:0;top:var(--offset-top);z-index:1;"),innerContainer:ri,menuContainer:oi,searchContainer:ii}},si=function(e){var o=e.i18n,i=e.mfaAttemptLimit,a=e.mode,c=e.onCancel,l=e.onChangeMode,u=e.onError,d=e.onSignIn,f=e.onSubmitNewPassword,p=e.onSubmitRequestCode,m=e.onSubmitSignIn,h=e.passwordValidator,g=e.showResendCode,v=void 0===g||g,x=e.useEmailAddressAsUsername,y=e.usernameIcon,b=H(jo(),2),E=b[0].currentMode,w=b[1],S=n.useCallback((function(e){switch(w(so(e)),e.challengeType){case t.ChallengeType.NEW_PASSWORD_REQUIRED:w(co("forcePasswordChange"));break;case t.ChallengeType.EMAIL_MFA:case t.ChallengeType.SMS_MFA:case t.ChallengeType.TOTP_MFA:w(co("confirmSignIn"))}}),[]),C=n.useCallback((function(e,n){s.isCallableFunction(u)&&u(E,n),w(uo(e))}),[E]);return t.useAuthorization({onChallenge:S,onError:C}),function(e){var t=H(jo(),2);t[0];var r=t[1],o=n.useMemo((function(){return Z(Z({},io),e)}),[e]);n.useEffect((function(){r(fo(o))}),[o])}(o),n.useEffect((function(){s.isCallableFunction(l)&&l(E),w(uo(void 0)),"confirmSignIn"!==E&&w(po(void 0))}),[E]),function(e){var t=H(jo(),2),r=t[0],o=r.currentMode,i=r.useEmailAddressAsUsername,a=r.usernameIcon,s=t[1];n.useEffect((function(){e.mode&&e.mode!==o&&s(co(e.mode))}),[null==e?void 0:e.mode]),n.useEffect((function(){void 0!==e.useEmailAddressAsUsername&&e.useEmailAddressAsUsername!==i&&s(go(e.useEmailAddressAsUsername))}),[null==e?void 0:e.useEmailAddressAsUsername]),n.useEffect((function(){e.usernameIcon&&e.usernameIcon!==a&&s(ho(e.usernameIcon))}),[null==e?void 0:e.usernameIcon])}({mode:a,useEmailAddressAsUsername:x,usernameIcon:y}),"forcePasswordChange"===E?r.jsx(Lo,{passwordValidator:h}):"forgotPasswordRequestCode"===E?r.jsx(_o,{onCancel:c,onSubmitRequestCode:p}):"forgotPasswordSubmitCode"===E?r.jsx(Do,{onCancel:c,onSubmitNewPassword:f,passwordValidator:h}):"confirmSignIn"===E?r.jsx(zo,{mfaAttemptLimit:i,onCancel:c,showResendCode:v}):r.jsx(Wo,{onSignIn:d,onSubmitSignIn:m})},ci=function(e){var n=e.colorPalette;return{skeletonBlock:r.css("animation:",li," 1500ms infinite linear;background-color:",n.neutral,";background-image:linear-gradient(110deg,#ececec 10%,#f5f5f5 20%,#ececec 35%);background-size:200% 100%;border-radius:",o.StylePalette.borderRadius,";")}},li=r.keyframes($o||($o=G(["\n to {\n background-position-x: -200%;\n }\n"]))),ui={confirmationMessage:"I confirm that I am aware of the risks of using only email MFA",confirmationMissingError:"You must confirm that you want to use email MFA",disclaimer:"Email MFA is less secure than other options. Additionally, security policies at your centre can slow the process.",submitConfirmation:"Use email MFA",title:"Use email MFA"},di=function(e){var n=e.colorPalette;return{form:r.css("align-items:flex-start;color:",n.font,";display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;gap:32px;line-height:24px;overflow:hidden;")}};function fi(){return fi=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},fi.apply(null,arguments)}var pi,mi,hi=function(e,n){return f.createElement("svg",fi({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),ei||(ei=f.createElement("path",{d:"M5 12h14m0 0-7-7m7 7-7 7",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},gi=n.forwardRef(hi);function vi(){return vi=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},vi.apply(null,arguments)}var xi,yi=function(e,n){return f.createElement("svg",vi({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),pi||(pi=f.createElement("path",{opacity:.12,d:"M4 14.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C6.28 10 7.12 10 8.8 10h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C20 12.28 20 13.12 20 14.8v1.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 21 16.88 21 15.2 21H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 18.72 4 17.88 4 16.2v-1.4Z",fill:"currentColor"})),mi||(mi=f.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"})))},bi=n.forwardRef(yi),Ei={continueButtonLabel:"Continue to Portal",description:"Thank you for setting up your Multi-Factor Authentication.",redirectMessage:"You will be redirected to Portal in {timer}",title:"Your account is now secure"},wi={name:"ug8j3x",styles:"margin:16px 0 24px;"},Si={name:"guxhko",styles:"font-size:20px;font-weight:400;line-height:32px;margin:0;"},Ci=function(e){var n=e.colorPalette;return{container:r.css("align-items:center;color:",n.neutralDark,";display:flex;gap:8px;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;line-height:24px;text-align:center;"),icon:r.css("color:",n.secondaryDark,";height:100px;& > path{stroke-width:0.5;}"),message:wi,title:Si}};function Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ai.apply(null,arguments)}var ji,ki=function(e,n){return f.createElement("svg",Ai({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),xi||(xi=f.createElement("path",{d:"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2.002 2.002 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152V22Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Oi=n.forwardRef(ki),Mi={codeFormatError:"Verification code must consist of 6 numbers",codeLabel:"Verification code",codeMatchError:"You have entered an invalid verification code",codePlaceholder:"e.g. 123456",reSendCode:"Re-send verification code",sendCode:"Send verification code",submitCode:"Verify SMS setup",stepFourDescription:"Verify the code.",stepOneDescription:"Enter your mobile number.",stepOneUpdateDescription:"Changing your mobile number will require re-verification before you can use SMS as your multi-factor authentication selection",stepThreeDescription:"Enter the 6-digit code that was sent to your number.",stepTwoDescription:"Send a verification code.",stepTwoUpdateDescription:"Use your existing mobile number for multi-factor authentication",telephoneNumberFormatError:"Mobile number does not match required format",telephoneNumberLabel:"Mobile number",telephoneNumberPlaceholder:"e.g. +447772719873",title:"Set up SMS authentication",useExistingTelephoneNumber:"Use SMS"},Ri={name:"nrkrjg",styles:"display:flex;flex-direction:column;gap:24px;& >:first-child{margin-bottom:8px;}"},Ti={name:"1k9hmir",styles:"list-style:none;margin:0;padding:0;width:100%;"},Ii=function(e){var n=e.colorPalette;return{container:Ri,form:r.css("color:",n.font,";display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;gap:16px;line-height:24px;overflow:hidden;"),steps:Ti}},Pi={cantScan:"Can't scan the code?",cantScanHint:"Enter this secret key into your authenticator application:",codeFormatError:"Verification code must consist of 6 numbers",codeLabel:"Verification code",codeMatchError:"You have entered an invalid verification code",codePlaceholder:"e.g. 123456",deviceNameLabel:"Device name (optional)",submitCode:"Verify Authentication App setup",stepFourDescription:"Verify the code.",stepOneDescription:"Download an authentication app on your phone or desktop. Don't have an app? View our list of recommended applications.",stepThreeDescription:"Enter the 6-digit code generated from the application.",stepTwoDescription:"Scan the following QR code.",title:"Set up your Authenticator App"},Fi={name:"1yqngoq",styles:"border:none;display:flex;gap:16px;margin:0;padding:0;"},Li={name:"6su6fj",styles:"flex-shrink:0;"},_i={name:"1isqi06",styles:"display:flex;gap:24px;margin:0 16px 8px;"},Zi={name:"1ygg5wq",styles:"display:flex;flex-direction:column;font-size:inherit;"},Di={name:"12z0wuy",styles:"margin-right:8px;"},Bi={name:"1k9hmir",styles:"list-style:none;margin:0;padding:0;width:100%;"},Ni=function(e){var n=e.colorPalette;return{form:r.css("color:",n.font,";display:flex;flex-direction:column;flex-shrink:0;font-family:'Montserrat',sans-serif;font-size:16px;gap:32px;line-height:24px;overflow:hidden;"),inputFields:Fi,qrCode:Li,qrCodeContainer:_i,secretKey:r.css("background-color:",n.neutral,";font-family:'Montserrat',sans-serif;padding:8px;word-break:break-all;"),secretKeyContainer:Zi,secretKeySpacer:Di,secretKeyTitle:r.css("color:",n.neutralDark,";margin:0;font-size:inherit;font-weight:500;"),steps:Bi}},Wi={newAppSetup:"Set up authenticator app",stepOneDescription:r.jsx(n.Fragment,null,"You already have an authenticator app configured. ",r.jsx("b",null,"If you start the setup process again, your existing setup will be invalidated and you won't be able to use an authenticator app to log in until you complete the setup")),stepTwoDescription:"Use your existing authenticator app setup for multi-factor authentication",title:"Set up your Authenticator App",useExistingTotpConfiguration:"Use authenticator app"},Vi={name:"1k9hmir",styles:"list-style:none;margin:0;padding:0;width:100%;"},zi=function(e){var n=e.colorPalette;return{container:r.css("color:",n.font,";display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;gap:32px;line-height:24px;overflow:hidden;"),steps:Vi}};function Ui(){return Ui=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ui.apply(null,arguments)}var Hi,Gi=function(e,n){return f.createElement("svg",Ui({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),ji||(ji=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.161 2H9.84c.527 0 .981 0 1.356.03.395.033.789.104 1.167.297a3 3 0 0 1 1.311 1.311c.193.378.264.772.296 1.167.031.375.031.83.031 1.356V10h3.838c.528 0 .982 0 1.357.03.395.033.789.104 1.167.297a3 3 0 0 1 1.311 1.311c.193.378.264.772.296 1.167.031.375.031.83.031 1.356V20a1 1 0 1 1 0 2H2a1 1 0 1 1 0-2V6.161c0-.527 0-.981.03-1.356.033-.395.104-.789.297-1.167a3 3 0 0 1 1.311-1.311c.378-.193.772-.264 1.167-.296C5.18 2 5.635 2 6.161 2ZM4 20h8V6.2c0-.577 0-.949-.024-1.232-.022-.272-.06-.373-.085-.422a1 1 0 0 0-.437-.437c-.05-.025-.15-.063-.422-.085C10.75 4 10.377 4 9.8 4H6.2c-.577 0-.949 0-1.232.024-.272.022-.373.06-.422.085a1 1 0 0 0-.437.437c-.025.05-.063.15-.085.422C4 5.25 4 5.623 4 6.2V20Zm10-8v8h6v-5.8c0-.577 0-.949-.024-1.232-.022-.272-.06-.373-.085-.422a1 1 0 0 0-.437-.437c-.05-.025-.15-.063-.422-.085C18.75 12 18.377 12 17.8 12H14ZM5.5 7a1 1 0 0 1 1-1h3a1 1 0 1 1 0 2h-3a1 1 0 0 1-1-1Zm0 4a1 1 0 0 1 1-1h3a1 1 0 1 1 0 2h-3a1 1 0 0 1-1-1Zm0 4a1 1 0 0 1 1-1h3a1 1 0 1 1 0 2h-3a1 1 0 0 1-1-1Z",fill:"currentColor"})))},Yi=n.forwardRef(Gi);function Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Xi.apply(null,arguments)}var Ji,qi,Qi=function(e,n){return f.createElement("svg",Xi({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Hi||(Hi=f.createElement("path",{d:"m18 8 4 4m0 0-4 4m4-4H9m6-7.796A8.383 8.383 0 0 0 10.667 3C5.88 3 2 7.03 2 12s3.88 9 8.667 9A8.384 8.384 0 0 0 15 19.796",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Ki=n.forwardRef(Qi);function $i(){return $i=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},$i.apply(null,arguments)}var ea,na=function(e,n){return f.createElement("svg",$i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Ji||(Ji=f.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"})),qi||(qi=f.createElement("path",{d:"M18.727 14.727a1.5 1.5 0 0 0 .3 1.655l.055.054a1.816 1.816 0 0 1 0 2.573 1.818 1.818 0 0 1-2.573 0l-.055-.055a1.5 1.5 0 0 0-1.654-.3 1.5 1.5 0 0 0-.91 1.373v.155a1.818 1.818 0 1 1-3.636 0V20.1a1.5 1.5 0 0 0-.981-1.373 1.5 1.5 0 0 0-1.655.3l-.054.055a1.818 1.818 0 0 1-3.106-1.287 1.818 1.818 0 0 1 .533-1.286l.054-.055a1.5 1.5 0 0 0 .3-1.654 1.5 1.5 0 0 0-1.372-.91h-.155a1.818 1.818 0 1 1 0-3.636H3.9a1.5 1.5 0 0 0 1.373-.981 1.5 1.5 0 0 0-.3-1.655l-.055-.054A1.818 1.818 0 1 1 7.491 4.99l.054.054a1.5 1.5 0 0 0 1.655.3h.073a1.5 1.5 0 0 0 .909-1.372v-.155a1.818 1.818 0 0 1 3.636 0V3.9a1.499 1.499 0 0 0 .91 1.373 1.5 1.5 0 0 0 1.654-.3l.054-.055a1.817 1.817 0 0 1 2.573 0 1.819 1.819 0 0 1 0 2.573l-.055.054a1.5 1.5 0 0 0-.3 1.655v.073a1.5 1.5 0 0 0 1.373.909h.155a1.818 1.818 0 0 1 0 3.636H20.1a1.499 1.499 0 0 0-1.373.91Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},ta=n.forwardRef(na);function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ra.apply(null,arguments)}var oa,ia,aa,sa=function(e,n){return f.createElement("svg",ra({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),ea||(ea=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.354 1.776a1.5 1.5 0 0 1 1.292 0c.353.168.547.46.645.62.102.166.206.377.308.583l.015.032 2.14 4.335 4.822.705c.227.033.46.067.65.113.182.044.52.139.789.423a1.5 1.5 0 0 1 .398 1.228c-.051.387-.27.663-.391.805-.127.148-.295.312-.46.472l-3.488 3.397.823 4.799c.04.226.08.458.095.652.014.187.029.538-.158.882a1.5 1.5 0 0 1-1.045.759c-.384.071-.713-.051-.887-.123a7.754 7.754 0 0 1-.591-.291L12 18.9l-4.31 2.267c-.204.107-.412.216-.592.29-.173.073-.503.195-.887.124a1.5 1.5 0 0 1-1.045-.76c-.187-.343-.172-.694-.158-.881.016-.194.056-.426.095-.652l.823-4.799-3.463-3.372-.025-.025c-.165-.16-.333-.324-.46-.472-.122-.142-.34-.418-.39-.805a1.5 1.5 0 0 1 .397-1.228c.27-.284.607-.38.79-.423.189-.046.422-.08.649-.113l.034-.005 4.788-.7 2.14-4.335.016-.032c.101-.206.205-.417.307-.582.098-.16.292-.453.646-.621ZM8.143 7.554Zm.333-.242Zm9.561 6.949ZM12 4.259 9.993 8.326l-.013.027c-.048.099-.147.303-.303.471a1.5 1.5 0 0 1-.467.34c-.208.096-.433.127-.541.142a3.951 3.951 0 0 0-.03.004l-4.49.657 3.247 3.163.022.02c.08.077.243.234.355.435a1.5 1.5 0 0 1 .179.55c.028.228-.013.451-.032.56a3.212 3.212 0 0 0-.005.029l-.767 4.468 4.014-2.111.027-.014c.096-.052.296-.16.522-.204a1.5 1.5 0 0 1 .578 0c.226.044.426.152.522.204l.027.014 4.014 2.11-.767-4.467c0-.009-.003-.019-.005-.03a1.905 1.905 0 0 1-.032-.56c.024-.193.084-.38.179-.549.112-.201.276-.358.355-.434.008-.008.015-.015.022-.02l3.248-3.164-4.49-.657a1.904 1.904 0 0 1-.571-.147 1.498 1.498 0 0 1-.468-.339 1.903 1.903 0 0 1-.316-.498L12 4.259Z",fill:"currentColor"})))},ca=n.forwardRef(sa);function la(){return la=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},la.apply(null,arguments)}var ua,da,fa=function(e,n){return f.createElement("svg",la({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),oa||(oa=f.createElement("path",{opacity:.4,d:"M18.684 19.438A4.001 4.001 0 0 0 15 17H9a4.001 4.001 0 0 0-3.684 2.438",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ia||(ia=f.createElement("path",{d:"M12 13.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),aa||(aa=f.createElement("path",{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"})))},pa=n.forwardRef(fa);function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ma.apply(null,arguments)}var ha=function(e,n){return f.createElement("svg",ma({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),ua||(ua=f.createElement("rect",{width:40,height:40,rx:20,fill:"#C0E8F0"})),da||(da=f.createElement("path",{d:"M11 28c2.336-2.477 5.507-4 9-4 3.493 0 6.664 1.523 9 4m-4.5-12.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},ga=n.forwardRef(ha),va={addPageToFavourites:'Add "{currentPage}" to your favourites',changeCentre:"Change centre",changeCentrePlaceholder:"Select a centre",selectCentreError:"Centre number must consist of 5 digits",signIn:"Sign in",signOut:"Sign Out",welcome:"Welcome Back"},xa={name:"fv3lde",styles:"align-items:center;display:flex;"},ya={name:"1uthhvt",styles:"display:flex;gap:8px;margin-top:8px;"},ba={name:"j7qwjs",styles:"display:flex;flex-direction:column;"},Ea={name:"1rl2310",styles:"align-items:center;color:var(--centre-icon-color);display:flex;font-size:16px;font-weight:600;line-height:24px;margin-top:4px;"},wa={name:"qcb6m9",styles:"height:24px;margin-right:8px;width:24px;"},Sa={name:"nxd1e0",styles:"align-items:center;background-color:rgba(255,255,255,0.75);display:flex;inset:0;justify-content:center;position:absolute;"},Ca={name:"1fr0ud0",styles:"max-width:200px;& > button{max-width:100%;}"},Aa={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},ja=function(e){var n=e.colorPalette;return{accountActions:r.css("list-style:none;margin:0;min-width:250px;padding:0;& > li{align-items:center;border-radius:",o.StylePalette.borderRadius,";color:",n.font,";display:flex;font-size:16px;font-weight:400;line-height:24px;padding:4px 8px;&:not(:last-child){margin-bottom:8px;}&:hover{background-color:",n.neutral,";cursor:pointer;}}"),accountActionsIcon:r.css("color:",n.fontLight,";flex-shrink:0;margin-right:8px;width:24px;"),centre:xa,centreNumber:r.css("background-color:",n.secondaryLight,";border-radius:8px;color:",n.secondaryDark,";font-size:12px;font-weight:600;line-height:16px;margin-right:4px;padding:4px;"),centreNumberForm:ya,clearCentreIcon:r.css("color:",n.error,";width:24px;"),container:ba,currentCentre:Ea,icon:wa,loadingOverlay:Sa,toggleContainer:Ca,toggleLabel:Aa,userAction:r.css("--centre-icon-color:",n.secondaryDark,";align-items:flex-start;border-radius:",o.StylePalette.borderRadius,";display:flex;margin:-8px -8px 0;padding:8px;text-decoration:none;&:hover{--centre-icon-color:",n.primary,";background-color:",n.neutral,";cursor:pointer;}"),userActionIcon:r.css("color:",n.fontLight,";flex-shrink:0;margin-left:10px;width:24px;"),userDetails:r.css("color:",n.fontLight,";display:flex;flex-direction:column;flex-grow:1;font-size:14px;font-weight:400;line-height:16px;overflow:hidden;white-space:pre;word-wrap:break-word;"),userIcon:r.css("color:",n.neutralDark,";flex-shrink:0;margin-right:8px;width:40px;"),username:r.css("color:",n.font,";font-size:16px;font-weight:600;line-height:24px;margin-top:4px;word-wrap:balance;")}};e.DEFAULT_SECONDARY_ACCESS_GROUPS=w,e.Divider=function(e){var n=e.margin,t=void 0===n?"20px 0":n,o=i.useWjecOneThemeStyles(O);return r.jsx(k,{css:r.css([o.divider,{margin:t}],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRpdmlkZXIuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVEwQiIsImZpbGUiOiJEaXZpZGVyLmpzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XHJcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xyXG5pbXBvcnQgeyBTdHlsZVBhbGV0dGUgfSBmcm9tICd3amVjLW9uZSc7XHJcbmltcG9ydCB7IHVzZVdqZWNPbmVUaGVtZVN0eWxlcyB9IGZyb20gJ3dqZWMtb25lL3RoZW1lJztcclxuLy8gQHRyYW5zZm9ybS1wYXRoIC4uL2Fzc2V0cy9pbWFnZXMvZGl2aWRlci5zdmdcclxuaW1wb3J0IERpdmlkZXJJbWFnZSBmcm9tIFwiLi4vYXNzZXRzL2ltYWdlcy9kaXZpZGVyLnN2Z1wiO1xyXG5leHBvcnQgY29uc3QgRGl2aWRlciA9ICh7IG1hcmdpbiA9ICcyMHB4IDAnIH0pID0+IHtcclxuICAgIGNvbnN0IHN0eWxlcyA9IHVzZVdqZWNPbmVUaGVtZVN0eWxlcyhnZXRTdHlsZXMpO1xyXG4gICAgcmV0dXJuICg8RGl2aWRlckltYWdlIGNzcz17W3N0eWxlcy5kaXZpZGVyLCB7IG1hcmdpbiB9XX0gaGVpZ2h0PSc0cHgnIHdpZHRoPScxMDAlJy8+KTtcclxufTtcclxuY29uc3QgZ2V0U3R5bGVzID0gKHsgY29sb3JQYWxldHRlIH0pID0+ICh7XHJcbiAgICBkaXZpZGVyOiBjc3MgYFxyXG4gICAgYm9yZGVyLXJhZGl1czogJHtTdHlsZVBhbGV0dGUuYm9yZGVyUmFkaXVzfTtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICR7Y29sb3JQYWxldHRlLnByaW1hcnlMaWdodH07XHJcbiAgICBoZWlnaHQ6IDRweDtcclxuICAgIHdpZHRoOiAxMDAlO1xyXG4gIGBcclxufSk7XHJcbiJdfQ== */"),height:"4px",width:"100%"})},e.EmailMfaSetup=function(e){var a=e.i18n,c=void 0===a?ui:a,l=e.onSubmit,u=t.useAuthorization(),d=u.preferences,f=u.requestStatuses,p=H(n.useState(),2),m=p[0],h=p[1],g=H(n.useState(void 0!==(null==d?void 0:d.emailMfaAccepted)),2),v=g[0],x=g[1];n.useEffect((function(){var e=void 0!==d.emailMfaAccepted;e!==v&&x(e)}),[null==d?void 0:d.emailMfaAccepted]);var y=n.useMemo((function(){return"loading"===f[t.AuthAction.SET_MFA_TYPE]||"loading"===f[t.AuthAction.UPDATE_USER_PREFERENCES]}),[f[t.AuthAction.SET_MFA_TYPE],f[t.AuthAction.UPDATE_USER_PREFERENCES]]),b=n.useMemo((function(){return Z(Z({},ui),c)}),[c]),E=i.useWjecOneThemeStyles(di);return r.jsx("form",{css:E.form,onSubmit:function(e){e.preventDefault(),y||(v?(h(void 0),s.isCallableFunction(l)&&l(),t.setMfaType(t.MFAType.EMAIL).then((function(){t.updateUserPreferences({emailMfaAccepted:new Date})}))):h(b.confirmationMissingError))}},r.jsx(o.SectionTitle,null,b.title),b.disclaimer,r.jsx(o.CheckBox,{checked:v,disabled:y,id:"ConfirmMfaCheckbox",label:b.confirmationMessage,onChange:x,status:m?"error":void 0,statusMessage:m}),r.jsx(o.PrimaryButton,{buttonType:"submit",disabled:!v,id:"UseEmailMfaButton",label:b.submitConfirmation,loading:y}))},e.Footer=function(e){var n=e.i18n,t=void 0===n?{copyrightMessage:"Copyright WJEC CBAC Ltd ".concat((new Date).getFullYear())}:n,o=e.logos,i=void 0===o?[Te,Fe]:o,a=e.maxWidth,s=void 0===a?1280:a,c=Se(Qe);return r.jsx("footer",{css:c.footer},r.jsx("div",{css:r.css([c.container,{maxWidth:"".concat(s,"px")}])},i.map((function(e,n){return r.jsx(e,{key:"logo_".concat(n),css:c.logo})})),r.jsx("span",{css:c.copyright},t.copyrightMessage)))},e.Header=function(e){var t=e.id,o=e.logo,i=e.maxWidth,a=void 0===i?1280:i,s=e.menusLeft,c=e.menusRight,l=e.onPressPageTitle,u=e.pageTitleHref,d=e.pageTitle,f=void 0===d?r.jsx(nn,{style:{height:"16px"}}):d,p=H(we(),1)[0].brand,m=n.useMemo((function(){return tn(o)?o[p]:o}),[p,o]),h=Se(un);return r.jsx("header",{css:h.header,id:t},r.jsx("div",{css:r.css([h.container,{maxWidth:"".concat(a,"px")}])},r.jsx("section",{css:r.css([h.menuContainer,h.menuContainerLeft])},s),f&&(void 0!==l||u?r.jsx("a",{css:h.homeLink,href:u,onClick:l},r.jsx("h1",{css:h.title},f)):r.jsx("h1",{css:h.title},f)),r.jsx("section",{css:r.css([h.menuContainer,h.menuContainerRight])},c,m&&r.jsx("div",{css:h.logoContainer},r.jsx(m,{css:h.logo})))))},e.HelpMenu=function(e){var t=e.applicationVersion,a=e.description,s=void 0===a?"Not sure where to begin? Our handy guides and frequently asked questions will help get you on your way.":a,c=e.options,l=void 0===c?[]:c,u=e.title,d=void 0===u?"Need Help?":u,f=H(i.useWjecOneTheme(),1)[0].colorPalette,p=i.useWjecOneThemeStyles(me),m=n.useMemo((function(){return l.map((function(e,n){var t=e.href,o=e.icon,i=e.label,a=e.onPress;return r.jsx("li",{key:"option_".concat(n,"_").concat(i),css:p.option},r.jsx("a",{css:p.link,href:t,onClick:a,rel:"noopener noreferrer",target:"_blank"},r.jsx(o,{css:p.linkIcon})," ",i))}))}),[l]);return r.jsx(o.Popup,{attachment:"floating",maxHeight:"350px",padding:"20px",toggle:r.jsx(o.Button,{color:"transparent",icon:ue,iconColor:f.fontLight},r.jsx(te,{css:p.icon}))},r.jsx("h4",{css:p.title},d),r.jsx("p",{css:p.helpMessage},s),l.length>0&&r.jsx("ul",{css:p.options},m),t&&r.jsx("div",{css:p.applicationVersion},t))},e.LocalizationMenu=function(e){var t=e.icons,a=e.id,s=e.keySuffix,l=void 0===s?"":s,u=e.open,d=void 0!==u&&u,f=e.showLocaleNameInList,p=void 0===f||f,m=e.showSelectedLocaleName,h=void 0===m?!t:m,g=H(c.useLocalization(),2),v=g[0],x=v.availableLocales,y=v.locale,b=v.strings,E=g[1],w=H(i.useWjecOneTheme(),1)[0].colorPalette,S=H(n.useState(d),2),C=S[0],A=S[1];n.useEffect((function(){d!==C&&A(d)}),[d]);var j=function(e){return"".concat(String(e)).concat(l)},k=i.useWjecOneThemeStyles(Qn),O=n.useMemo((function(){return r.jsx(o.Button,{color:"transparent",labelColor:w.fontLight},t&&r.jsx(t[y],{css:k.icon}),h&&(b[j(y)]||"".concat(String(y)).concat(l)))}),[w,l,y,b]);return r.jsx(o.Popup,{attachment:"floating",id:a,open:C,onHide:function(){return A(!1)},onShow:function(){return A(!0)},padding:"16px",placement:"bottom-end",toggle:O},r.jsx("ul",{css:k.locales},null==x?void 0:x.map((function(e){var n,o=p&&(b[j(e)]||"".concat(String(e)).concat(l));return r.jsx("li",{css:k.option,key:e.toString(),onClick:(n=e,function(){E(c.selectLocale(n)),A(!1)})},t&&r.jsx(t[e],{css:k.icon}),o)}))))},e.MfaSetupSuccess=function(e){var t=e.i18n,a=void 0===t?Ei:t,c=e.onRedirect,l=e.redirectTimer,u=void 0===l?5e3:l,d=e.remainingTimeFormatter,f=void 0===d?function(e){return r.jsx("b",null,Math.round(e/1e3)," second(s)")}:d,p=n.useRef(!1),m=n.useRef(Date.now()),h=H(n.useState(u),2),g=h[0],v=h[1],x=n.useMemo((function(){return Z(Z({},Ei),{},{i18n:a})}),[a]),y=n.useMemo((function(){return s.formattedStringToPlainText(x.redirectMessage).split(/({[^}]+})/g).map((function(e){return r.jsx(n.Fragment,{key:e},e.match(/{timer}/)?f(g):e)}))}),[x,g]);n.useEffect((function(){var e;return g>0?e=self.setTimeout((function(){var e=Date.now(),n=e-m.current;v(g-n),m.current=e}),1e3):b(),function(){self.clearTimeout(e)}}),[g]);var b=function(){!p.current&&s.isCallableFunction(c)&&(p.current=!0,v(0),c())},E=i.useWjecOneThemeStyles(Ci);return r.jsx("div",{css:E.container},r.jsx(bi,{css:E.icon}),r.jsx("h4",{css:E.title},x.title),x.description,r.jsx("p",{css:E.message},y),r.jsx(o.PrimaryButton,{icon:gi,iconPosition:"right",id:"ContinueToPortalButton",label:x.continueButtonLabel,onPress:b}))},e.Navigation=function(e){var a=e.centreNumber,c=e.i18n,l=e.idPrefix,u=void 0===l?"navigation":l,d=e.links,f=void 0===d?{}:d,p=e.loading,m=e.locale,h=void 0===m?"en-gb":m,g=e.maxWidth,v=e.offsetTop,x=e.onError,y=e.onPressSignIn,b=e.open,E=e.padding,w=t.useAuthorization(),S=w.isInitialized,C=w.isSignedIn,A=w.preferences.favouriteLinks,j=void 0===A?[]:A,k=Yo(f,a,h),O=H(n.useState(),2),M=O[0],R=O[1],T=H(n.useState(""),2),I=T[0],P=T[1],F=H(n.useState(Object.keys(k||{})[0]),2),L=F[0],_=F[1],D=n.useMemo((function(){return p||!S}),[S,p]),B=n.useMemo((function(){return Z(Z({},et[h]),c)}),[c,h]),N=H(n.useState([]),2),W=N[0],V=N[1],z=n.useRef(),U=n.useRef(),G=n.useRef();n.useEffect((function(){b&&k?Object.keys(k).includes(L)||_(Object.keys(k)[0]):_(void 0)}),[k,b]),n.useEffect((function(){b||P("")}),[b]),n.useLayoutEffect((function(){var e=!0;return b&&requestAnimationFrame((function(){e&&z.current.removeAttribute("data-offset")})),function(){e=!1}}),[b]);var X=function(e){L!==$n.SEARCH&&""!==e?(U.current=L,_($n.SEARCH)):void 0!==U.current&&""===e&&(_(U.current),U.current=void 0,G.current.querySelector("input").focus()),P(e),rr(e)},J=function(e,n){V((function(n){return[].concat(Y(n),[e.linkId])}));var r="add"===n?[].concat(Y(j),[e.linkId]):j.filter((function(n){return n!==e.linkId}));t.updateUserPreferences({favouriteLinks:r}).then((function(t){t?(R(void 0),"add"===n?function(e){var n=e.linkId;Be(tr.ADD_FAVOURITE,{linkId:n})}(e):function(e){var n=e.linkId;Be(tr.REMOVE_FAVOURITE,{linkId:n})}(e)):s.isCallableFunction(x)&&x("toggleFavourite",e)})).catch((function(){s.isCallableFunction(x)&&x("toggleFavourite",e)})).finally((function(){V((function(n){return n.filter((function(n){return n!==e.linkId}))}))}))},q=i.useWjecOneThemeStyles(ai);return b&&r.jsx("nav",{css:q.container,id:"".concat(u,"Container"),style:{"--horizontal-padding":E,"--max-width":g,"--offset-top":v}},r.jsx("div",{css:q.innerContainer},r.jsx("form",{css:q.searchContainer,id:"".concat(u,"SearchForm"),onReset:function(){return X("")},onSubmit:function(e){return e.preventDefault()},ref:G},r.jsx(o.Input,{icon:ti,onChange:X,placeholder:B.searchAllServices,value:I,width:"100%"}),I&&r.jsx("button",{css:q.clearSearchButton,type:"reset"},r.jsx(Qo,{"aria-hidden":!0,css:q.clearSearchIcon}))),r.jsx("section",{ref:z,css:q.menuContainer,"data-offset":!0},D&&r.jsx(no,null),!D&&r.jsx(n.Fragment,null,r.jsx(Jr,{idPrefix:u,isSignedIn:C,links:k,onSelect:function(e){L===$n.SEARCH&&e!==$n.SEARCH&&P(""),_(e)},selectedSection:L,strings:B}),r.jsx(Br,{favourites:j,idPrefix:u,isSignedIn:C,links:k,onClearSearch:function(){return X("")},onPressSignIn:y,onToggleFavourite:function(e){j.includes(e.linkId)?R(e):J(e,"add")},searchTerm:I,selectedSection:L,strings:B,togglingFavourites:W})))),M&&r.jsx(Wr,{id:"".concat(u,"RemoveFavouriteModal"),isLoading:W.includes(null==M?void 0:M.linkId),onClose:function(){return R(void 0)},onConfirm:function(){J(M,"remove")},strings:B}))},e.Page=function(e){var n=e.children,t=e.footerProps,o=e.headerProps,i=e.maxWidth,a=void 0===i?1280:i,s=e.padding,c=void 0===s?"32px 32px 0":s;return r.jsx("div",{css:Xn.pageWrapper},r.jsx(bn,L({},o,{maxWidth:a})),r.jsx("main",{css:r.css([Xn.content,{maxWidth:a,padding:c}])},n),r.jsx(Un,L({},t,{maxWidth:a})))},e.SigninForm=function(e){return r.jsx(Ao,{currentMode:e.mode,useEmailAddressAsUsername:e.useEmailAddressAsUsername,usernameIcon:e.usernameIcon},r.jsx(si,e))},e.SkeletonBlock=function(e){var n=e.height,t=void 0===n?"100%":n,o=e.margin,a=void 0===o?"0":o,s=e.padding,c=void 0===s?"0":s,l=e.width,u=void 0===l?"100%":l,d=i.useWjecOneThemeStyles(ci);return r.jsx("div",{css:r.css([d.skeletonBlock,{height:t,margin:a,padding:c,width:u}])})},e.SmsMfaSetup=function(e){var a=e.i18n,c=void 0===a?Mi:a,l=e.onSendCode,u=e.onSubmit,d=e.telephoneNumberValidator,f=void 0===d?function(e){return/^\+[1-9][0-9\s]{0,24}$/.test(e)}:d,p=t.useAuthorization({}),m=p.requestStatuses,h=p.telephoneNumber,g=p.telephoneNumberVerified,v=n.useRef(),x=n.useRef(!1),y=n.useRef(),b=H(n.useState(""),2),E=b[0],w=b[1],S=H(n.useState(),2),C=S[0],A=S[1],j=H(n.useState(!1),2),k=j[0],O=j[1],M=H(n.useState(!1),2),R=M[0],T=M[1],P=H(n.useState(h&&g?"update":"setup"),2),F=P[0],L=P[1],_=H(n.useState(h),2),D=_[0],B=_[1],N=H(n.useState(),2),W=N[0],V=N[1],z=H(n.useState(),2),U=z[0],G=z[1],Y=n.useMemo((function(){return"loading"===m[t.AuthAction.UPDATE_USER_ATTRIBUTES]}),[m[t.AuthAction.UPDATE_USER_ATTRIBUTES]]),X=n.useMemo((function(){return"loading"===m[t.AuthAction.SET_MFA_TYPE]||"loading"===m[t.AuthAction.VERIFY_TELEPHONE_NUMBER]}),[m[t.AuthAction.SET_MFA_TYPE],m[t.AuthAction.VERIFY_TELEPHONE_NUMBER]]),J=n.useMemo((function(){return Z(Z({},Mi),c)}),[c]),Q=n.useMemo((function(){var e;return"setup"===F&&W&&(e="error"),"update"===F&&h===D&&g&&(e="success"),e}),[h,g,F,D,W]),K=n.useMemo((function(){return f(D)}),[D]);n.useEffect((function(){"setup"!==F||x.current||(y.current.querySelector("input").focus(),x.current=!0)}),[F]),n.useEffect((function(){!R&&"setup"===F&&g&&D===h&&L("update"),"update"===F&&D!==h&&L("setup")}),[h,g,R,F,D]);var $=function(){var e=I(q().mark((function e(n){return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),X){e.next=14;break}if(T(!0),!/^\d{6}$/.test(E)){e.next=13;break}return A(void 0),s.isCallableFunction(u)&&u(E),e.next=9,null==U?void 0:U.completeChallenge(E);case 9:e.sent&&t.setMfaType(t.MFAType.SMS).then((function(){w(""),O(!1),T(!1)})),e.next=14;break;case 13:A(J.codeFormatError);case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ee=function(){var e=I(q().mark((function e(n){var r,o,i;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),"setup"!==F||Y){e.next=20;break}if(O(!1),T(!1),!f(D)){e.next=19;break}return e.next=8,t.updateUserAttributes({telephoneNumber:D});case 8:if(!e.sent){e.next=17;break}return s.isCallableFunction(l)&&l(D),e.next=13,t.verifyTelephoneNumber();case 13:(null==(i=e.sent)?void 0:i.challengeType)===t.ChallengeType.VERIFY_TELEPHONE_NUMBER&&G(i),O(!0),null===(r=v.current)||void 0===r||null===(o=r.querySelector("input"))||void 0===o||o.focus();case 17:e.next=20;break;case 19:V(J.telephoneNumberFormatError);case 20:"update"===F&&t.setMfaType(t.MFAType.SMS);case 21:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ne=i.useWjecOneThemeStyles(Ii);return r.jsx("section",{css:ne.container},r.jsx(o.SectionTitle,null,J.title),r.jsx("form",{css:ne.form,id:"TelephoneNumberForm",onSubmit:ee,ref:y},r.jsx("ol",{css:ne.steps},r.jsx(Ho,{step:1},"setup"===F?J.stepOneDescription:J.stepOneUpdateDescription,r.jsx(o.Input,{disabled:Y||X,id:"TelephoneNumberInput",label:J.telephoneNumberLabel,onChange:B,placeholder:J.telephoneNumberPlaceholder,status:Q,statusMessage:W,value:D,width:"200px"})),r.jsx(Ho,{step:2},"setup"===F?J.stepTwoDescription:J.stepTwoUpdateDescription,"setup"===F&&r.jsx(o.SecondaryButton,{buttonType:"submit",disabled:X||!K,icon:Oi,id:"SendCodeButton",label:k?J.reSendCode:J.sendCode,loading:Y}),"update"===F&&r.jsx(o.PrimaryButton,{buttonType:"submit",label:J.useExistingTelephoneNumber,loading:X})))),"setup"===F&&r.jsx("form",{css:ne.form,id:"CodeForm",onSubmit:$,ref:v},r.jsx("ol",{css:ne.steps},r.jsx(Ho,{step:3},J.stepThreeDescription,r.jsx(o.Input,{disabled:!k||X,id:"EnterCodeInput",label:J.codeLabel,maxCharacters:6,onChange:w,placeholder:J.codePlaceholder,status:C?"error":void 0,statusMessage:C,value:E})),r.jsx(Ho,{step:4},J.stepFourDescription,r.jsx(o.PrimaryButton,{buttonType:"submit",disabled:!E,id:"SubmitCodeButton",label:J.submitCode,loading:X})))))},e.TotpMfaSetup=function(e){var a=e.allowCustomDeviceName,c=void 0!==a&&a,l=e.i18n,d=void 0===l?Pi:l,f=e.onSubmit,p=e.secretKey,m=t.useAuthorization({onError:function(e,n){e===t.AuthAction.VERIFY_TOTP_TOKEN&&"EnableSoftwareTokenMFAException"===n.code&&"Code mismatch"===n.message&&j(O.codeMatchError)}}),h=m.emailAddress,g=m.requestStatuses,v=n.useRef(),x=H(n.useState(""),2),y=x[0],b=x[1],E=H(n.useState(""),2),w=E[0],S=E[1],C=H(n.useState(),2),A=C[0],j=C[1],k=n.useMemo((function(){return"loading"===g[t.AuthAction.SET_MFA_TYPE]||"loading"===g[t.AuthAction.VERIFY_TOTP_TOKEN]}),[g[t.AuthAction.SET_MFA_TYPE],g[t.AuthAction.VERIFY_TOTP_TOKEN]]),O=n.useMemo((function(){return Z(Z({},Pi),d)}),[d]),M=n.useMemo((function(){return encodeURI("otpauth://totp/WJEC Portal:".concat(h,"?secret=").concat(p,"&issuer=WJEC Portal"))}),[h,p]);n.useEffect((function(){v.current.querySelector("input").focus()}),[]);var R=function(){var e=I(q().mark((function e(n){return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),k){e.next=13;break}if(j(void 0),!/^\d{6}$/.test(y)){e.next=12;break}return s.isCallableFunction(f)&&f(y,w),e.next=8,t.verifyTotp(y);case 8:e.sent&&t.setMfaType(t.MFAType.TOTP),e.next=13;break;case 12:j(O.codeFormatError);case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),T=i.useWjecOneThemeStyles(Ni),P=n.useMemo((function(){var e;return null==p||null===(e=p.match(/.{1,4}/g))||void 0===e?void 0:e.map((function(e,t,o){return r.jsx(n.Fragment,{key:e},e,t<o.length-1&&r.jsx("span",{css:T.secretKeySpacer}))}))}),[p]);return r.jsx("form",{css:T.form,id:"TOTPMfaSetupForm",onSubmit:R,ref:v},r.jsx(o.SectionTitle,null,O.title),r.jsx("ol",{css:T.steps},r.jsx(Ho,{step:1},O.stepOneDescription),r.jsx(Ho,{step:2},O.stepTwoDescription,r.jsx("section",{css:T.qrCodeContainer},r.jsx(u.QRCodeSVG,{css:T.qrCode,id:"QRCode",size:156,value:M}),r.jsx("div",{css:T.secretKeyContainer},r.jsx("h5",{css:T.secretKeyTitle},O.cantScan),O.cantScanHint,r.jsx("code",{css:T.secretKey,id:"SecretKeyDisplay"},P)))),r.jsx(Ho,{step:3},O.stepThreeDescription,r.jsx("fieldset",{css:T.inputFields},r.jsx(o.Input,{autoComplete:"one-time-code",disabled:k,id:"OTPCodeInput",label:O.codeLabel,maxCharacters:6,onChange:b,placeholder:O.codePlaceholder,status:A?"error":void 0,statusMessage:A,value:y,width:"160px"}),c&&r.jsx(o.Input,{disabled:k,id:"DeviceNameInput",label:O.deviceNameLabel,onChange:S,value:w,width:"75%"}))),r.jsx(Ho,{step:4},O.stepFourDescription,r.jsx(o.PrimaryButton,{buttonType:"submit",disabled:!y,id:"SubmitCodeButton",label:O.submitCode,loading:k}))))},e.TotpMfaUpdate=function(e){var a=e.i18n,c=void 0===a?Wi:a,l=e.onNewAppSetup,u=e.onSubmit,d=n.useMemo((function(){return Z(Z({},Wi),c)}),[c]),f=t.useAuthorization({}).requestStatuses,p=n.useMemo((function(){return"loading"===f[t.AuthAction.REQUEST_TOTP_TOKEN]||"loading"===f[t.AuthAction.SET_MFA_TYPE]}),[f[t.AuthAction.REQUEST_TOTP_TOKEN],f[t.AuthAction.SET_MFA_TYPE]]),m=i.useWjecOneThemeStyles(zi);return r.jsx("div",{css:m.container},r.jsx(o.SectionTitle,null,d.title),r.jsx("ol",{css:m.steps},r.jsx(Ho,{step:1},d.stepOneDescription,r.jsx(o.SecondaryButton,{label:d.newAppSetup,loading:p,onPress:function(){s.isCallableFunction(l)&&l(),t.setupTotp()}})),r.jsx(Ho,{step:2},d.stepTwoDescription,r.jsx(o.PrimaryButton,{label:d.useExistingTotpConfiguration,loading:p,onPress:function(){p||(s.isCallableFunction(u)&&u(),t.setMfaType(t.MFAType.TOTP))}}))))},e.UserMenu=function(e){var a=e.actions,c=e.centreNumber,l=e.currentPage,u=e.i18n,d=e.onChangeCentreNumber,f=e.onClose,p=e.onOpen,m=e.onPressSignIn,h=e.onPressSignOut,g=e.onPressUserProfile,v=e.open,x=void 0!==v&&v,y=e.profileHref,b=e.signInHref,E=H(i.useWjecOneTheme(),1)[0].colorPalette,w=t.useAuthorization(),S=w.emailAddress,C=w.centrePermissions,A=w.familyName,j=w.name,k=w.givenName,O=w.groups,M=w.isSignedIn,R=w.requestStatuses,T=H(n.useState(c||""),2),I=T[0],P=T[1],F=H(n.useState(!1),2),L=F[0],_=F[1],D=H(n.useState(x),2),B=D[0],N=D[1],W=n.useMemo((function(){return Object.keys(C)}),[C]),V=n.useMemo((function(){return O.includes("WJEC_EMPLOYEES")}),[O]),z=n.useMemo((function(){return"loading"===R[t.AuthAction.SIGN_IN]||"loading"===R[t.AuthAction.SIGN_OUT]}),[R[t.AuthAction.SIGN_IN],R[t.AuthAction.SIGN_OUT]]),U=n.useMemo((function(){return A||k?"".concat(k||""," ").concat(A||"").trim():j}),[A,j,k]),G=n.useMemo((function(){return V||W.length>1}),[W,V]),Y=n.useMemo((function(){return Z(Z({},va),u)}),[u]);n.useEffect((function(){c!==I&&P(c)}),[c]),n.useEffect((function(){x!==B&&N(x)}),[x]),n.useEffect((function(){"done"===R[t.AuthAction.SIGN_OUT]&&X()}),[R[t.AuthAction.SIGN_OUT]]);var X=function(){_(!1),N(!1),s.isCallableFunction(f)&&f()},J=function(e){s.isCallableFunction(d)&&d(e)},q=n.useMemo((function(){return M?ta:gi}),[M]),Q=i.useWjecOneThemeStyles(ja),K=n.useMemo((function(){return r.jsx("div",{css:Q.toggleContainer},r.jsx(o.Button,{color:"transparent",icon:pa,labelColor:E.fontLight},M?r.jsx(n.Fragment,null,c&&r.jsx("span",{css:Q.centreNumber},c),r.jsx("span",{css:Q.toggleLabel},U)):Y.signIn))}),[c,M,U]);return r.jsx(o.Popup,{attachment:"floating",onHide:X,onShow:function(){N(!0),s.isCallableFunction(p)&&p(),P(c)},open:B,padding:"16px",placement:"bottom-end",toggle:K,maxWidth:"350px"},r.jsx("div",{css:Q.container},r.jsx("a",{css:Q.userAction,href:M?y:b,onClick:function(){M?s.isCallableFunction(g)&&g():s.isCallableFunction(m)&&m()}},r.jsx(ga,{css:Q.userIcon}),r.jsx("div",{css:Q.userDetails},Y.welcome,r.jsx("span",{css:Q.username},M?U||S:Y.signIn),M&&c&&r.jsx("span",{css:Q.currentCentre},r.jsx(Yi,{css:Q.icon}),c)),r.jsx(q,{css:Q.userActionIcon})),M&&r.jsx(n.Fragment,null,G&&r.jsx("form",{css:Q.centreNumberForm,onSubmit:function(e){e.preventDefault(),/^\d{5}$/.test(I)?(_(!1),J(I)):_(!0)}},V&&r.jsx(n.Fragment,null,r.jsx(o.Input,{inputMode:"numeric",maxCharacters:5,onChange:P,placeholder:Y.centreNumber,status:L?"error":void 0,statusMessage:Y.selectCentreError,value:I}),r.jsx(o.PrimaryButton,{buttonType:"submit",icon:gi}),r.jsx(o.IconButton,{icon:function(){return r.jsx(Yi,{css:Q.clearCentreIcon})},onPress:function(){P(""),_(!1),J("")}})),!V&&W.length>1&&r.jsx(o.Select,{label:Y.changeCentre,onSelect:J,options:W,placeholder:Y.changeCentrePlaceholder,selectedOption:c})),r.jsx(at,{margin:"16px 0"}),r.jsx("ul",{css:Q.accountActions},l&&r.jsx("li",null,r.jsx(ca,{css:Q.accountActionsIcon}),Y.addPageToFavourites.replace("{currentPage}",l)),(null==a?void 0:a.length)>0&&r.jsx(n.Fragment,null,a.map((function(e){var n=e.icon,t=e.id,o=e.label,i=e.onPress;return r.jsx("li",{id:t,key:t,onClick:i},n&&r.jsx(n,{css:Q.accountActionsIcon}),o)}))),r.jsx("li",{onClick:function(){s.isCallableFunction(h)&&h(),t.signOut()}},r.jsx(Ki,{css:Q.accountActionsIcon}),Y.signOut))),z&&r.jsx("div",{css:Q.loadingOverlay},r.jsx(o.CircularProgress,null))))},e.getAccountType=S,e.getNavigationPermissions=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.state.groups,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S(e),o=n.filter((function(n){return n.startsWith(e)})).map((function(n){return n.substring("".concat(e,":").length)}));return r!==p.SECONDARY||o.includes("NO_ACCESS")?[]:o.length>0?Object.freeze(o):w},e.useAccountType=function(e){var r=t.useAuthorization(),o=r.centrePermissions,i=r.groups,a=r.isSignedIn;return n.useMemo((function(){return a?g(e,o,i):void 0}),[e,o,i,a])},e.useNavigationPermissions=function(e){var r=t.useAuthorization(),o=r.groups,i=r.isSignedIn,a=x(e);return n.useMemo((function(){return i?v(e,o,a):[]}),[a,e,o,i])}}));
|
|
3
|
+
var e,n,t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",o=t.toStringTag||"@@toStringTag";function i(t,r,o,i){var c=r&&r.prototype instanceof s?r:s,l=Object.create(c.prototype);return G(l,"_invoke",function(t,r,o){var i,s,c,l=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(n,t){return i=n,s=0,c=e,f.n=t,a}};function p(t,r){for(s=t,c=r,n=0;!d&&l&&!o&&n<u.length;n++){var o,i=u[n],p=f.p,g=i[2];t>3?(o=g===r)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=t<2&&p<i[1])?(s=0,f.v=r,f.n=i[1]):p<g&&(o=t<3||i[0]>r||r>g)&&(i[4]=t,i[5]=r,f.n=g,s=0))}if(o||t>1)return a;throw d=!0,r}return function(o,u,g){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,g),s=u,c=g;(n=s<2?e:c)||!d;){i||(s?s<3?(s>1&&(f.n=-1),p(s,c)):f.n=c:f.v=c);try{if(l=2,i){if(s||(o="next"),n=i[o]){if(!(n=n.call(i,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,s<2&&(s=0)}else 1===s&&(n=i.return)&&n.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((n=(d=f.n<0)?c:t.call(r,f))!==a)break}catch(n){i=e,s=1,c=n}finally{l=1}}return{value:n,done:d}}}(t,o,i),!0),l}var a={};function s(){}function c(){}function l(){}n=Object.getPrototypeOf;var u=[][r]?n(n([][r]())):(G(n={},r,(function(){return this})),n),d=l.prototype=s.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,G(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,G(d,"constructor",l),G(l,"constructor",c),c.displayName="GeneratorFunction",G(l,o,"GeneratorFunction"),G(d),G(d,o,"Generator"),G(d,r,(function(){return this})),G(d,"toString",(function(){return"[object Generator]"})),(N=function(){return{w:i,m:f}})()}function _(e,n,t,r,o){var i=D(e,n,t,r,o);return i.next().then((function(e){return e.done?e.value:i.next()}))}function D(e,n,t,r,o){return new W(N().w(e,n,t,r),o||Promise)}function W(e,n){function t(r,o,i,a){try{var s=e[r](o),c=s.value;return c instanceof O?n.resolve(c.v).then((function(e){t("next",e,i,a)}),(function(e){t("throw",e,i,a)})):n.resolve(c).then((function(e){s.value=e,i(s)}),(function(e){return t("throw",e,i,a)}))}catch(e){a(e)}}var r;this.next||(G(W.prototype),G(W.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),G(this,"_invoke",(function(e,o,i){function a(){return new n((function(n,r){t(e,i,n,r)}))}return r=r?r.then(a,a):a()}),!0)}function G(e,n,t,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}G=function(e,n,t,r){if(n)o?o(e,n,{value:t,enumerable:!r,configurable:!r,writable:!r}):e[n]=t;else{function i(n,t){G(e,n,(function(e){return this._invoke(n,t,e)}))}i("next",0),i("throw",1),i("return",2)}},G(e,n,t,r)}function V(e){var n=Object(e),t=[];for(var r in n)t.unshift(r);return function e(){for(;t.length;)if((r=t.pop())in n)return e.value=r,e.done=!1,e;return e.done=!0,e}}function z(e){if(null!=e){var n=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],t=0;if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}function H(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=i.call(t)).done)&&(s.push(r.value),s.length!==n);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,n)||J(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,n){return n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}}))}function U(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||J(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function J(e,n){if(e){if("string"==typeof e)return M(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?M(e,n):void 0}}function q(){var e=N(),n=e.m(q),t=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function r(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===t||"GeneratorFunction"===(n.displayName||n.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var n,t;return function(r){n||(n={stop:function(){return t(r.a,2)},catch:function(){return r.v},abrupt:function(e,n){return t(r.a,o[e],n)},delegateYield:function(e,o,i){return n.resultName=o,t(r.d,z(e),i)},finish:function(e){return t(r.f,e)}},t=function(e,t,o){r.p=n.prev,r.n=n.next;try{return e(t,o)}finally{n.next=r.n}}),n.resultName&&(n[n.resultName]=r.v,n.resultName=void 0),n.sent=r.v,n.next=r.n;try{return e.call(this,n)}finally{r.p=n.prev,r.n=n.next}}}return(q=function(){return{wrap:function(n,t,r,o){return e.w(i(n),t,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,n){return new O(e,n)},AsyncIterator:W,async:function(e,n,t,o,a){return(r(n)?D:_)(i(e),n,t,o,a)},keys:V,values:z}})()}function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Q.apply(null,arguments)}var K,$,ee,ne=function(e,n){return f.createElement("svg",Q({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),A||(A=f.createElement("path",{d:"M6.767 7.742 10 10.975l3.233-3.233a.83.83 0 1 1 1.175 1.175l-3.825 3.825a.83.83 0 0 1-1.175 0L5.583 8.917a.83.83 0 0 1 0-1.175.848.848 0 0 1 1.184 0Z",fill:"currentColor"})))},te=n.forwardRef(ne);function re(){return re=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},re.apply(null,arguments)}var oe,ie,ae,se,ce,le=function(e,n){return f.createElement("svg",re({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),K||(K=f.createElement("path",{d:"M9.167 15h1.666v-1.667H9.167V15Z",fill:"currentColor"})),$||($=f.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"})),ee||(ee=f.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"})))},ue=n.forwardRef(le),de={name:"1ffk778",styles:"font-size:12px;font-weight:400;line-height:135%;margin:5px 0 0;"},fe={name:"r6ddtx",styles:"&:not(:last-child){margin-bottom:5px;}"},pe={name:"6ewv58",styles:"font-size:16px;font-weight:600;line-height:150%;margin:0;"},ge=function(e){var n=e.colorPalette;return{applicationVersion:r.css("border-top:1px solid ",n.border,";font-size:12px;margin-top:10px;padding-top:10px;"),helpMessage:de,icon:r.css("color:",n.fontLight,";width:20px;"),link:r.css("align-items:center;border-radius:",o.StylePalette.borderRadius,";display:flex;font-size:16px;padding:5px 10px;text-decoration:none;&:hover{background-color:",n.neutral,";& > svg{color:",n.secondary,";}}"),linkIcon:r.css("color:",n.fontLight,";margin-right:10px;transition:color 100ms linear;width:20px;"),option:fe,options:r.css("border-top:1px solid ",n.border,";list-style:none;margin:10px 0 0;min-width:200px;padding:10px 0 0;"),title:pe}},me=a.createSimpleAction("SELECT_BRAND"),he=Object.freeze({border:"#BCCBD1",entryLevel:"#6B994D",error:"#D32F2F",errorBackground:"#FBEBEB",errorDark:"#A82424",errorDarker:"#661616",font:"#2E3638",fontLight:"#606A6C",gceALevel:"#516FA2",gceASLevel:"#4D9995",gcse:"#81994D",highlight:"#FFEDC1",neutral:"#F1F3F4",neutralDark:"#2D3538",neutralLight:"#56666C",offBlack:"#001B26",offWhite:"#FAFCFC",otherQualifications:"#A55395",secondary:"#47BAD1",secondaryDark:"#1F6B7A",secondaryDarkActive:"#103840",secondaryLight:"#C0E8F0",secondaryLightActive:"#96CBD6",success:"#43A047",successBackground:"#EDF6ED",successDark:"#3C9040",successDarker:"#2A662D",tertiary:"#FFEDC1",vQAward:"#D86C8B",warning:"#F57C00",warningBackground:"#FEF2E6",warningDark:"#EF6C00",welshBaccAdvanced:"#6E81DC",welshBaccFoundation:"#BF8660",welshBaccNational:"#B4C160",welshBaccKS4:"#B25A6C"}),ve=Object.freeze(B(B({},he),{},{primary:"#007DB2",primaryDark:"#00628C",primaryDarkActive:"#004766",primaryLight:"#E5F8FF",primaryLightActive:"#CCF1FF",primaryLightest:"#E5F7FF"})),xe=Object.freeze(B(B({},he),{},{primary:"#F1511B",primaryDark:"#BF3608",primaryDarkActive:"#BF3608",primaryLight:"#FDB8A1",primaryLightActive:"#FDB8A1"})),be=function(e,n){var t=n.payload;return"SELECT_BRAND"===n.type?e.merge({brand:t,colorPalette:"wjec"===t?ve:xe}):e},ye={brand:"wjec",colorPalette:ve},Ee=function(){var e=a.createContext(be,ye,(function(e,n){var t=e.brand,r=n.colorPalette;return{colorPalette:"eduqas"===t?xe:r}})),t=e.context,r=e.hook,o=e.provider;return{selectBrand:me,themeContext:t,WjecOneThemeProvider:o,useWjecOneTheme:r,useWjecOneThemeStyles:function(e){var t=H(r(),1)[0];return n.useMemo((function(){return s.isCallableFunction(e)?e(t):e}),[t.brand])}}}(),Ce=Ee.useWjecOneTheme,we=Ee.useWjecOneThemeStyles;function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Se.apply(null,arguments)}var Ae,je,Ie,ke,Oe,Me=function(e,n){return f.createElement("svg",Se({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),oe||(oe=f.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"})),ie||(ie=f.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"})),ae||(ae=f.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"})),se||(se=f.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"})),ce||(ce=f.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"})))},Re=n.forwardRef(Me);function Te(){return Te=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Te.apply(null,arguments)}var Pe,Ze=function(e,n){return f.createElement("svg",Te({viewBox:"0 0 298 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Ae||(Ae=f.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"})),je||(je=f.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"})),Ie||(Ie=f.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"})),ke||(ke=f.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"})),Oe||(Oe=f.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"})))},Fe=n.forwardRef(Ze),Le=Object.freeze({border:"#BCCBD1",entryLevel:"#6B994D",error:"#D32F2F",errorBackground:"#FBEBEB",errorDark:"#A82424",errorDarker:"#661616",font:"#2E3638",fontLight:"#606A6C",gceALevel:"#516FA2",gceASLevel:"#4D9995",gcse:"#81994D",highlight:"#FFEDC1",neutral:"#F1F3F4",neutralDark:"#2D3538",neutralLight:"#56666C",offBlack:"#001B26",offWhite:"#FAFCFC",otherQualifications:"#A55395",secondary:"#47BAD1",secondaryDark:"#1F6B7A",secondaryDarkActive:"#103840",secondaryLight:"#C0E8F0",secondaryLightActive:"#96CBD6",success:"#43A047",successBackground:"#EDF6ED",successDark:"#3C9040",successDarker:"#2A662D",tertiary:"#FFEDC1",vQAward:"#D86C8B",warning:"#F57C00",warningBackground:"#FEF2E6",warningDark:"#EF6C00",welshBaccAdvanced:"#6E81DC",welshBaccFoundation:"#BF8660",welshBaccNational:"#B4C160",welshBaccKS4:"#B25A6C"}),Be=Object.freeze(B(B({},Le),{},{primary:"#007DB2",primaryDark:"#00628C",primaryDarkActive:"#004766",primaryLight:"#E5F8FF",primaryLightActive:"#CCF1FF",primaryLightest:"#E5F7FF"})),Ne=Object.freeze(B(B({},Le),{},{primary:"#F1511B",primaryDark:"#BF3608",primaryDarkActive:"#BF3608",primaryLight:"#FDB8A1",primaryLightActive:"#FDB8A1"})),_e=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"development"===process.env.NODE_ENV&&n&&function(e){console.warn(e)}(e)},De=function(e,n){"function"==typeof gtag?gtag("event",e,n):_e("WJEC One: An analytics event was dispatched without a Google Analytics configuration present (event type: ".concat(e,")"))};function We(){return We=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},We.apply(null,arguments)}var Ge=function(e,n){return f.createElement("svg",We({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Pe||(Pe=f.createElement("path",{d:"M6.767 7.742 10 10.975l3.233-3.233a.83.83 0 1 1 1.175 1.175l-3.825 3.825a.83.83 0 0 1-1.175 0L5.583 8.917a.83.83 0 0 1 0-1.175.848.848 0 0 1 1.184 0Z",fill:"currentColor"})))},Ve=n.forwardRef(Ge),ze=a.createSimpleAction("SELECT_BRAND"),He=function(e,n){var t=n.payload;return"SELECT_BRAND"===n.type?e.merge({brand:t,colorPalette:"wjec"===t?Be:Ne}):e},Xe={brand:"wjec",colorPalette:Be},Ue=function(){var e=a.createContext(He,Xe,(function(e,n){var t=e.brand,r=n.colorPalette;return{colorPalette:"eduqas"===t?Ne:r}})),t=e.context,r=e.hook,o=e.provider;return{selectBrand:ze,themeContext:t,WjecOneThemeProvider:o,useWjecOneTheme:r,useWjecOneThemeStyles:function(e){var t=H(r(),1)[0];return n.useMemo((function(){return s.isCallableFunction(e)?e(t):e}),[t.brand])}}}(),Ye=Ue.useWjecOneTheme,Je=Ue.useWjecOneThemeStyles,qe={name:"1bhjuxx",styles:"box-sizing:border-box;&::after,&::before,& *,& *::after,& *::before{box-sizing:inherit;}"};Be.highlight;var Qe,Ke={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},$e={name:"8zn5ov",styles:"align-items:center;display:flex;margin:0 auto;width:100%;"},en={name:"eeoqsk",styles:"height:25px;margin-right:10px;"},nn=function(e){var n=e.colorPalette;return{container:$e,copyright:r.css("border-left:1px solid ",n.border,";color:",n.fontLight,";font-size:12px;padding-left:10px;"),footer:r.css(qe,";align-items:center;display:flex;justify-content:flex-start;padding:24px 30px 22px;width:100%;"),logo:en}};function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},tn.apply(null,arguments)}var rn,on=function(e,n){return f.createElement("svg",tn({viewBox:"0 0 89 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Qe||(Qe=f.createElement("path",{d:"M.019 13.979c0 .452.37.823.802.823.453 0 .824-.37.824-.823V9.615h3.498c3.067 0 5.66-1.605 5.66-4.713v-.04c0-2.84-2.14-4.57-5.392-4.57H.82a.822.822 0 0 0-.802.823V13.98Zm1.626-5.845v-6.34h3.642c2.326 0 3.87 1.07 3.87 3.129v.041c0 1.894-1.565 3.17-3.952 3.17h-3.56ZM21.484 14.946c4.384 0 7.368-3.478 7.368-7.45v-.042c0-3.972-2.943-7.409-7.327-7.409s-7.368 3.478-7.368 7.45v.042c0 3.972 2.943 7.409 7.327 7.409Zm.041-1.502c-3.293 0-5.68-2.676-5.68-5.948v-.042c0-3.272 2.346-5.906 5.639-5.906s5.68 2.675 5.68 5.948v.04c0 3.273-2.346 5.908-5.639 5.908ZM33.31 13.979c0 .452.37.823.803.823.453 0 .823-.37.823-.823V9.1h4.137l4.054 5.269c.185.247.432.432.762.432.411 0 .823-.37.823-.803 0-.226-.103-.411-.268-.597l-3.58-4.61c2.243-.432 3.848-1.81 3.848-4.178v-.04c0-1.133-.412-2.141-1.111-2.841-.906-.906-2.326-1.44-4.096-1.44h-5.392a.822.822 0 0 0-.803.823v12.863Zm1.626-6.34V1.796h4.446c2.325 0 3.684 1.07 3.684 2.84v.041c0 1.852-1.544 2.964-3.705 2.964h-4.425ZM52.879 13.979c0 .452.37.823.823.823.453 0 .823-.37.823-.823V1.795h4.178c.412 0 .762-.33.762-.741a.773.773 0 0 0-.762-.762H48.701a.773.773 0 0 0-.761.762c0 .411.35.74.761.74h4.178V13.98ZM60.69 14.061c0 .412.329.74.74.74.37 0 .638-.205.782-.555l1.503-3.354h7.903l1.502 3.313c.144.33.412.597.803.597.432 0 .782-.35.782-.782 0-.124-.041-.268-.103-.412L68.757.848c-.185-.453-.514-.72-1.008-.72h-.083c-.514 0-.823.267-1.029.72l-5.845 12.78a.936.936 0 0 0-.103.433Zm3.663-4.651 3.313-7.368L70.98 9.41h-6.627ZM78.846 13.876c0 .453.37.823.802.823h8.294c.412 0 .741-.33.741-.74a.756.756 0 0 0-.74-.762h-7.471V1.013a.826.826 0 0 0-.824-.824.822.822 0 0 0-.802.824v12.863Z",fill:"#009FE3"})))},an=n.forwardRef(on),sn=function(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)&&Object.hasOwn(e,"eduqas")&&Object.hasOwn(e,"wjec")},cn={name:"1qvasr7",styles:"align-items:center;display:grid;grid-gap:24px;grid-template-columns:1fr min-content 1fr;justify-items:center;margin:0 auto;& > button:first-of-type{justify-self:start;}"},ln={name:"1q99sw",styles:"border-bottom-color:#fff;"},un={name:"u1jr60",styles:"height:40px;"},dn={name:"1455w9v",styles:"align-items:center;display:flex;flex:1;gap:24px;max-width:100%;min-width:175px;overflow:hidden;position:relative;"},fn={name:"1v1z1e",styles:"grid-column:1;justify-content:flex-start;justify-self:start;"},pn={name:"njo7am",styles:"gap:16px;grid-column:3;justify-content:flex-end;justify-self:end;"},gn=function(e){var n=e.colorPalette;return{container:cn,header:r.css(qe,";background-color:#fff;border-bottom:1px solid ",n.border,";padding:8px 16px;position:sticky;top:0;width:100%;z-index:1;"),headerNoBorder:ln,homeLink:r.css("cursor:pointer;:hover > svg{color:",n.font,";}"),logo:un,logoContainer:r.css("border-left:1px solid ",n.border,";min-height:40px;padding-left:24px;"),menuContainer:dn,menuContainerLeft:fn,menuContainerRight:pn,title:r.css(Ke,";align-items:center;color:",n.fontLight,";display:inline-flex;font-size:18px;font-weight:400;line-height:32px;margin:0;max-width:100%;padding:5px 10px;")}};function mn(){return mn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},mn.apply(null,arguments)}var hn,vn,xn,bn,yn,En=function(e,n){return f.createElement("svg",mn({viewBox:"0 0 89 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),rn||(rn=f.createElement("path",{d:"M.019 13.979c0 .452.37.823.802.823.453 0 .824-.37.824-.823V9.615h3.498c3.067 0 5.66-1.605 5.66-4.713v-.04c0-2.84-2.14-4.57-5.392-4.57H.82a.822.822 0 0 0-.802.823V13.98Zm1.626-5.845v-6.34h3.642c2.326 0 3.87 1.07 3.87 3.129v.041c0 1.894-1.565 3.17-3.952 3.17h-3.56ZM21.484 14.946c4.384 0 7.368-3.478 7.368-7.45v-.042c0-3.972-2.943-7.409-7.327-7.409s-7.368 3.478-7.368 7.45v.042c0 3.972 2.943 7.409 7.327 7.409Zm.041-1.502c-3.293 0-5.68-2.676-5.68-5.948v-.042c0-3.272 2.346-5.906 5.639-5.906s5.68 2.675 5.68 5.948v.04c0 3.273-2.346 5.908-5.639 5.908ZM33.31 13.979c0 .452.37.823.803.823.453 0 .823-.37.823-.823V9.1h4.137l4.054 5.269c.185.247.432.432.762.432.411 0 .823-.37.823-.803 0-.226-.103-.411-.268-.597l-3.58-4.61c2.243-.432 3.848-1.81 3.848-4.178v-.04c0-1.133-.412-2.141-1.111-2.841-.906-.906-2.326-1.44-4.096-1.44h-5.392a.822.822 0 0 0-.803.823v12.863Zm1.626-6.34V1.796h4.446c2.325 0 3.684 1.07 3.684 2.84v.041c0 1.852-1.544 2.964-3.705 2.964h-4.425ZM52.879 13.979c0 .452.37.823.823.823.453 0 .823-.37.823-.823V1.795h4.178c.412 0 .762-.33.762-.741a.773.773 0 0 0-.762-.762H48.701a.773.773 0 0 0-.761.762c0 .411.35.74.761.74h4.178V13.98ZM60.69 14.061c0 .412.329.74.74.74.37 0 .638-.205.782-.555l1.503-3.354h7.903l1.502 3.313c.144.33.412.597.803.597.432 0 .782-.35.782-.782 0-.124-.041-.268-.103-.412L68.757.848c-.185-.453-.514-.72-1.008-.72h-.083c-.514 0-.823.267-1.029.72l-5.845 12.78a.936.936 0 0 0-.103.433Zm3.663-4.651 3.313-7.368L70.98 9.41h-6.627ZM78.846 13.876c0 .453.37.823.802.823h8.294c.412 0 .741-.33.741-.74a.756.756 0 0 0-.74-.762h-7.471V1.013a.826.826 0 0 0-.824-.824.822.822 0 0 0-.802.824v12.863Z",fill:"#009FE3"})))},Cn=n.forwardRef(En),wn=function(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)&&Object.hasOwn(e,"eduqas")&&Object.hasOwn(e,"wjec")},Sn=function(e){var t=e.id,o=e.logo,i=e.maxWidth,a=void 0===i?1280:i,s=e.menusLeft,c=e.menusRight,l=e.onPressPageTitle,u=e.pageTitleHref,d=e.pageTitle,f=void 0===d?r.jsx(Cn,{style:{height:"16px"}}):d,p=H(Ye(),1)[0].brand,g=n.useMemo((function(){return wn(o)?o[p]:o}),[p,o]),m=Je(Rn);return r.jsx("header",{css:m.header,id:t},r.jsx("div",{css:r.css([m.container,{maxWidth:"".concat(a,"px")}])},r.jsx("section",{css:r.css([m.menuContainer,m.menuContainerLeft])},s),f&&(void 0!==l||u?r.jsx("a",{css:m.homeLink,href:u,onClick:l},r.jsx("h1",{css:m.title},f)):r.jsx("h1",{css:m.title},f)),r.jsx("section",{css:r.css([m.menuContainer,m.menuContainerRight])},c,g&&r.jsx("div",{css:m.logoContainer},r.jsx(g,{css:m.logo})))))},An={name:"1qvasr7",styles:"align-items:center;display:grid;grid-gap:24px;grid-template-columns:1fr min-content 1fr;justify-items:center;margin:0 auto;& > button:first-of-type{justify-self:start;}"},jn={name:"1q99sw",styles:"border-bottom-color:#fff;"},In={name:"u1jr60",styles:"height:40px;"},kn={name:"1455w9v",styles:"align-items:center;display:flex;flex:1;gap:24px;max-width:100%;min-width:175px;overflow:hidden;position:relative;"},On={name:"1v1z1e",styles:"grid-column:1;justify-content:flex-start;justify-self:start;"},Mn={name:"njo7am",styles:"gap:16px;grid-column:3;justify-content:flex-end;justify-self:end;"},Rn=function(e){var n=e.colorPalette;return{container:An,header:r.css(qe,";background-color:#fff;border-bottom:1px solid ",n.border,";padding:8px 16px;position:sticky;top:0;width:100%;z-index:1;"),headerNoBorder:jn,homeLink:r.css("cursor:pointer;:hover > svg{color:",n.font,";}"),logo:In,logoContainer:r.css("border-left:1px solid ",n.border,";min-height:40px;padding-left:24px;"),menuContainer:kn,menuContainerLeft:On,menuContainerRight:Mn,title:r.css(Ke,";align-items:center;color:",n.fontLight,";display:inline-flex;font-size:18px;font-weight:400;line-height:32px;margin:0;max-width:100%;padding:5px 10px;")}};function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Tn.apply(null,arguments)}var Pn,Zn,Fn,Ln,Bn,Nn=function(e,n){return f.createElement("svg",Tn({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),hn||(hn=f.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"})),vn||(vn=f.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"})),xn||(xn=f.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"})),bn||(bn=f.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"})),yn||(yn=f.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"})))},_n=n.forwardRef(Nn);function Dn(){return Dn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Dn.apply(null,arguments)}var Wn,Gn,Vn,zn,Hn,Xn=function(e,n){return f.createElement("svg",Dn({viewBox:"0 0 298 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Pn||(Pn=f.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"})),Zn||(Zn=f.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"})),Fn||(Fn=f.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"})),Ln||(Ln=f.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"})),Bn||(Bn=f.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"})))},Un=n.forwardRef(Xn),Yn=function(e){var n=e.i18n,t=void 0===n?{copyrightMessage:"Copyright WJEC CBAC Ltd ".concat((new Date).getFullYear())}:n,o=e.logos,i=void 0===o?[_n,Un]:o,a=e.maxWidth,s=void 0===a?1280:a,c=Je(Qn);return r.jsx("footer",{css:c.footer},r.jsx("div",{css:r.css([c.container,{maxWidth:"".concat(s,"px")}])},i.map((function(e,n){return r.jsx(e,{key:"logo_".concat(n),css:c.logo})})),r.jsx("span",{css:c.copyright},t.copyrightMessage)))},Jn={name:"8zn5ov",styles:"align-items:center;display:flex;margin:0 auto;width:100%;"},qn={name:"eeoqsk",styles:"height:25px;margin-right:10px;"},Qn=function(e){var n=e.colorPalette;return{container:Jn,copyright:r.css("border-left:1px solid ",n.border,";color:",n.fontLight,";font-size:12px;padding-left:10px;"),footer:r.css(qe,";align-items:center;display:flex;justify-content:flex-start;padding:24px 30px 22px;width:100%;"),logo:qn}},Kn={content:{name:"nkc6ia",styles:"box-sizing:border-box;display:flex;flex:1;margin:0 auto;position:relative;width:100%;"},pageWrapper:r.css(qe,";display:flex;flex-direction:column;height:100%;min-height:100vh;")},$n={name:"v15t89",styles:"flex-shrink:0;width:24px;"},et={name:"bxntb3",styles:"display:flex;flex-direction:column;font-size:16px;gap:16px;line-height:14px;list-style:none;margin:0;padding:0;"},nt=function(e){var n=e.colorPalette;return{icon:$n,locales:et,option:r.css("align-items:center;border-radius:",o.StylePalette.borderRadius,";cursor:pointer;display:flex;gap:4px;margin:-4px -8px;padding:4px 8px;&:hover{background-color:",n.neutral,";}")}},tt=function(e){return e.FAVOURITES="favouritesGroup",e}({}),rt=function(e){return e.FAVOURITES="favouritesSection",e.SEARCH="searchSection",e}({}),ot=Object.freeze({"cy-gb":(Wn={},Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Wn,tt.FAVOURITES,"Fy Hoff Gymwysiadau"),rt.FAVOURITES,"Fy Ffefrynnau"),rt.SEARCH,"Canlyniadau Chwilio"),"addToFavourites","Ychwanegu cyswllt at fy ffefrynnau"),"cancel","Canslo"),"noResultsMessage","Nid oeddem yn gallu canfod unrhyw wasanaethau oedd yn cyfateb i'ch ymholiad."),"noResultsTitle","Ymddiheuriadau! Heb Ganfod Canlyniadau"),"removeFavouriteConfirmation","Tynnu ffefryn"),"removeFavouriteConfirmationMessage","Ydych chi'n siŵr eich bod am dynnu'r cyswllt hwn o'ch ffefrynnau?"),"removeFromFavourites","Tynnu cyswllt o fy ffefrynnau"),Z(Z(Z(Z(Z(Z(Wn,"resetYourSearch","Ailosod eich chwiliad"),"searchAllServices","Chwilio pob gwasanaeth"),"searchResults","Yn dangos {count} o ganlyniadau ar gyfer '{searchTerm}'"),"signIn","Mewngofnodi"),"signinCardMessage","Mewngofnodi i'ch cyfrif CBAC i weld pob gwasanaeth sydd ar gael i chi."),"signinCardTitle","Ddim yn gallu canfod yr hyn rydych chi'n chwilio amdano?")),"en-gb":(Gn={},Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(Gn,tt.FAVOURITES,"My Favourite Applications"),rt.FAVOURITES,"My Favourites"),rt.SEARCH,"Search Results"),"addToFavourites","Add link to favourites"),"cancel","Cancel"),"noResultsMessage","We were unable to find any services matching your query."),"noResultsTitle","Sorry! No Results Found"),"removeFavouriteConfirmation","Remove favourite"),"removeFavouriteConfirmationMessage","Are you sure you want to remove this link from your favourites?"),"removeFromFavourites","Remove link from favourites"),Z(Z(Z(Z(Z(Z(Gn,"resetYourSearch","Reset your search"),"searchAllServices","Search all services"),"searchResults","Showing {count} result(s) for '{searchTerm}'"),"signIn","Sign in"),"signinCardMessage","Sign in to your WJEC account to view all your available services."),"signinCardTitle","Can't find what you are looking for?"))});function it(){return it=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},it.apply(null,arguments)}var at,st,ct=function(e,n){return f.createElement("svg",it({viewBox:"0 0 1440 4",fill:"none",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),f.createElement("g",{clipPath:"url(#a)"},f.createElement("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:1440,height:144},Vn||(Vn=f.createElement("path",{fill:"#fff",d:"M0 0h1440v144H0z"}))),zn||(zn=f.createElement("g",{mask:"url(#b)"},f.createElement("path",{opacity:.4,d:"m.093 19.192-2.368-71.368a5 5 0 0 1 3.923-5.05l249.66-54.934a4.999 4.999 0 0 1 4.394 1.144L384.786 3.551a5.002 5.002 0 0 1 1.444 5.26L368.279 65.06a5 5 0 0 1-3.215 3.234L134.73 143.34a5 5 0 0 1-4.961-1.098L1.679 22.681a5 5 0 0 1-1.586-3.49ZM1441.76 9.35l5.17-83.568a4.998 4.998 0 0 0-3.78-5.161l-288.1-71.743a5.007 5.007 0 0 0-4.41 1.008L995.762-21.281a5.004 5.004 0 0 0-1.731 3.003l-23.088 135.255a5 5 0 0 0 4.651 5.834l372.646 20.691a4.993 4.993 0 0 0 4.41-2.176l88.25-129.469c.51-.743.8-1.61.86-2.507Z",fill:"#47BAD1"}),f.createElement("path",{opacity:.4,d:"m341.147 35.262 214.851 26.282a5.003 5.003 0 0 0 4.313-1.605l92.293-101.841c3.011-3.322.465-8.622-4.01-8.349L337.991-31.26a5 5 0 0 0-4.686 5.296l3.459 56.569a5 5 0 0 0 4.383 4.657Z",fill:"#A55896"}),f.createElement("path",{opacity:.4,d:"m636.066 94.071-192.7-231.608c-1.998-2.401-1.329-6.026 1.393-7.556l302.76-170.202a5 5 0 0 1 6.809 1.908L926.159-7.729c1.532 2.725.215 6.173-2.744 7.182L641.524 95.605a5 5 0 0 1-5.458-1.534Z",fill:"#2855A2"}),f.createElement("path",{opacity:.4,d:"M983.494 89.93 703.798 14.977c-3.017-.808-4.562-4.154-3.221-6.975l143.28-301.486a5 5 0 0 1 6.662-2.37l304.371 144.653c2.83 1.342 3.74 4.918 1.91 7.45L988.837 88.035a5 5 0 0 1-5.343 1.895Z",fill:"#B0C600"})))),Hn||(Hn=f.createElement("defs",null,f.createElement("clipPath",{id:"a"},f.createElement("rect",{width:1440,height:4,rx:2,fill:"#fff"})))))},lt=n.forwardRef(ct),ut=function(e){var n=e.margin,t=void 0===n?"20px 0":n,o=i.useWjecOneThemeStyles(dt);return r.jsx(lt,{css:r.css([o.divider,{margin:t}],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRpdmlkZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdCTSIsImZpbGUiOiJEaXZpZGVyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyBDU1NQcm9wZXJ0aWVzLCBGQyB9IGZyb20gJ3JlYWN0JztcclxuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XHJcbmltcG9ydCB7IFN0eWxlUGFsZXR0ZSB9IGZyb20gJ3dqZWMtb25lJztcclxuaW1wb3J0IHsgVGhlbWVTdGF0ZSwgdXNlV2plY09uZVRoZW1lU3R5bGVzIH0gZnJvbSAnd2plYy1vbmUvdGhlbWUnO1xyXG4vLyBAdHJhbnNmb3JtLXBhdGggLi4vYXNzZXRzL2ltYWdlcy9kaXZpZGVyLnN2Z1xyXG5pbXBvcnQgRGl2aWRlckltYWdlIGZyb20gJ3BvcnRhbC9zcmMvYXNzZXRzL2ltYWdlcy9kaXZpZGVyLnN2Zyc7XHJcblxyXG50eXBlIFByb3BzID0ge1xyXG4gIG1hcmdpbj86IENTU1Byb3BlcnRpZXNbJ21hcmdpbiddO1xyXG59O1xyXG5cclxuZXhwb3J0IGNvbnN0IERpdmlkZXI6IEZDPFByb3BzPiA9ICh7IG1hcmdpbiA9ICcyMHB4IDAnIH0pID0+IHtcclxuICBjb25zdCBzdHlsZXMgPSB1c2VXamVjT25lVGhlbWVTdHlsZXMoZ2V0U3R5bGVzKTtcclxuXHJcbiAgcmV0dXJuIChcclxuICAgIDxEaXZpZGVySW1hZ2VcclxuICAgICAgY3NzPXtbc3R5bGVzLmRpdmlkZXIsIHsgbWFyZ2luIH1dfVxyXG4gICAgICBoZWlnaHQ9JzRweCdcclxuICAgICAgd2lkdGg9JzEwMCUnXHJcbiAgICAvPlxyXG4gICk7XHJcbn07XHJcblxyXG5jb25zdCBnZXRTdHlsZXMgPSAoeyBjb2xvclBhbGV0dGUgfTogVGhlbWVTdGF0ZSkgPT4gKHtcclxuICBkaXZpZGVyOiBjc3NgXHJcbiAgICBib3JkZXItcmFkaXVzOiAke1N0eWxlUGFsZXR0ZS5ib3JkZXJSYWRpdXN9O1xyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogJHtjb2xvclBhbGV0dGUucHJpbWFyeUxpZ2h0fTtcclxuICAgIGhlaWdodDogNHB4O1xyXG4gICAgd2lkdGg6IDEwMCU7XHJcbiAgYFxyXG59KTtcclxuIl19 */"),height:"4px",width:"100%"})},dt=function(e){var n=e.colorPalette;return{divider:r.css("border-radius:",o.StylePalette.borderRadius,";background-color:",n.primaryLight,";height:4px;width:100%;")}};function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ft.apply(null,arguments)}var pt,gt,mt=function(e,n){return f.createElement("svg",ft({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),at||(at=f.createElement("path",{opacity:.4,d:"M13 11h4.8c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C21 12.52 21 13.08 21 14.2V21",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),st||(st=f.createElement("path",{d:"M13 21V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C11.48 3 10.92 3 9.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2V21m19 0H2M6.5 7h3m-3 4h3m-3 4h3",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},ht=n.forwardRef(mt);function vt(){return vt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},vt.apply(null,arguments)}var xt,bt,yt=function(e,n){return f.createElement("svg",vt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),pt||(pt=f.createElement("path",{opacity:.4,d:"M16 4c.93 0 1.395 0 1.776.102a3 3 0 0 1 2.122 2.122C20 6.605 20 7.07 20 8v9.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V8c0-.93 0-1.395.102-1.776a3 3 0 0 1 2.122-2.122C6.605 4 7.07 4 8 4",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),gt||(gt=f.createElement("path",{d:"M12 15.5V11a1.5 1.5 0 0 1 3 0v4.5a3 3 0 1 1-6 0v-4M9.6 6h4.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C16 5.24 16 4.96 16 4.4v-.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C15.24 2 14.96 2 14.4 2H9.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C8 2.76 8 3.04 8 3.6v.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C8.76 6 9.04 6 9.6 6Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Et=n.forwardRef(yt);function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ct.apply(null,arguments)}var wt,St,At=function(e,n){return f.createElement("svg",Ct({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),xt||(xt=f.createElement("path",{opacity:.4,d:"M16 4c.93 0 1.395 0 1.776.102a3 3 0 0 1 2.122 2.122C20 6.605 20 7.07 20 8v9.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V8c0-.93 0-1.395.102-1.776a3 3 0 0 1 2.122-2.122C6.605 4 7.07 4 8 4",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),bt||(bt=f.createElement("path",{d:"m9 15 2 2 4.5-4.5M9.6 6h4.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C16 5.24 16 4.96 16 4.4v-.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C15.24 2 14.96 2 14.4 2H9.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C8 2.76 8 3.04 8 3.6v.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C8.76 6 9.04 6 9.6 6Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},jt=n.forwardRef(At);function It(){return It=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},It.apply(null,arguments)}var kt,Ot,Mt=function(e,n){return f.createElement("svg",It({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),wt||(wt=f.createElement("path",{opacity:.4,d:"M20 10.5V6.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 2 16.88 2 15.2 2H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.28 4 5.12 4 6.8v10.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 22 7.12 22 8.8 22h2.7",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),St||(St=f.createElement("path",{d:"m22 22-1.5-1.5m1-2.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Rt=n.forwardRef(Mt);function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Tt.apply(null,arguments)}var Pt,Zt,Ft=function(e,n){return f.createElement("svg",Tt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),kt||(kt=f.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"})),Ot||(Ot=f.createElement("path",{d:"M12 16v-4m0-4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Lt=n.forwardRef(Ft);function Bt(){return Bt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Bt.apply(null,arguments)}var Nt,_t,Dt=function(e,n){return f.createElement("svg",Bt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Pt||(Pt=f.createElement("path",{opacity:.4,d:"M7.101 10H7V8a5 5 0 0 1 10 0v2h-.101",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Zt||(Zt=f.createElement("path",{d:"M12 14v2m7-1a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Wt=n.forwardRef(Dt);function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Gt.apply(null,arguments)}var Vt,zt,Ht=function(e,n){return f.createElement("svg",Gt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Nt||(Nt=f.createElement("path",{opacity:.4,d:"M12 16v5m6 0-3.951-3.293c-.73-.607-1.094-.91-1.5-1.027a2 2 0 0 0-1.098 0c-.406.116-.77.42-1.5 1.027L6 21",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),_t||(_t=f.createElement("path",{d:"M8 11v1m4-3v3m4-5v5m6-9H2m1 0h18v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 16 17.88 16 16.2 16H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 13.72 3 12.88 3 11.2V3Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Xt=n.forwardRef(Ht);function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ut.apply(null,arguments)}var Yt,Jt,qt=function(e,n){return f.createElement("svg",Ut({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Vt||(Vt=f.createElement("path",{opacity:.4,d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),zt||(zt=f.createElement("path",{d:"M18.727 14.727a1.5 1.5 0 0 0 .3 1.655l.055.054a1.816 1.816 0 0 1 0 2.573 1.818 1.818 0 0 1-2.573 0l-.055-.055a1.5 1.5 0 0 0-1.654-.3 1.5 1.5 0 0 0-.91 1.373v.155a1.818 1.818 0 1 1-3.636 0V20.1a1.5 1.5 0 0 0-.981-1.373 1.5 1.5 0 0 0-1.655.3l-.054.055a1.818 1.818 0 0 1-3.106-1.287 1.818 1.818 0 0 1 .533-1.286l.054-.055a1.5 1.5 0 0 0 .3-1.654 1.5 1.5 0 0 0-1.372-.91h-.155a1.818 1.818 0 1 1 0-3.636H3.9a1.5 1.5 0 0 0 1.373-.981 1.5 1.5 0 0 0-.3-1.655l-.055-.054A1.818 1.818 0 1 1 7.491 4.99l.054.054a1.5 1.5 0 0 0 1.655.3h.073a1.5 1.5 0 0 0 .909-1.372v-.155a1.818 1.818 0 0 1 3.636 0V3.9a1.499 1.499 0 0 0 .91 1.373 1.5 1.5 0 0 0 1.654-.3l.054-.055a1.817 1.817 0 0 1 2.573 0 1.819 1.819 0 0 1 0 2.573l-.055.054a1.5 1.5 0 0 0-.3 1.655v.073a1.5 1.5 0 0 0 1.373.909h.155a1.818 1.818 0 0 1 0 3.636H20.1a1.499 1.499 0 0 0-1.373.91Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Qt=n.forwardRef(qt);function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Kt.apply(null,arguments)}var $t,er=function(e,n){return f.createElement("svg",Kt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Yt||(Yt=f.createElement("path",{opacity:.4,d:"M13 7H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 8.52 2 9.08 2 10.2v3.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 17 4.08 17 5.2 17H13m4-10h1.8c1.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 17H17",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Jt||(Jt=f.createElement("path",{d:"M17 21V3m2.5 0h-5m5 18h-5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},nr=n.forwardRef(er);function tr(){return tr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},tr.apply(null,arguments)}var rr,or=function(e,n){return f.createElement("svg",tr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),$t||($t=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm7 0a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm7 0a2 2 0 1 1 4 0 2 2 0 0 1-4 0ZM3 12a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm7 0a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm7 0a2 2 0 1 1 4 0 2 2 0 0 1-4 0ZM3 19a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm7 0a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm7 0a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z",fill:"currentColor"})))},ir=n.forwardRef(or),ar=function(e){return e.ADD_FAVOURITE="portal_navigation_add_favourite",e.NAVIGATE="portal_navigation_follow_link",e.REMOVE_FAVOURITE="portal_navigation_remove_favourite",e.SEARCH="portal_navigation_search",e}(ar||{}),sr=function(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];self.clearTimeout(n),n=self.setTimeout((function(){e.apply(void 0,o)}),t)}}((function(e){De(ar.SEARCH,{searchTerm:e})}),1e3);function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},cr.apply(null,arguments)}var lr,ur=function(e,n){return f.createElement("svg",cr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),rr||(rr=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.354 1.776a1.5 1.5 0 0 1 1.292 0c.353.168.547.46.645.62.102.166.206.377.308.583l.015.032 2.14 4.335 4.822.705c.227.033.46.067.65.113.182.044.52.139.789.423a1.5 1.5 0 0 1 .398 1.228c-.051.387-.27.663-.391.805-.127.148-.295.312-.46.472l-3.488 3.397.823 4.799c.04.226.08.458.095.652.014.187.029.538-.158.882a1.5 1.5 0 0 1-1.045.759c-.384.071-.713-.051-.887-.123a7.754 7.754 0 0 1-.591-.291L12 18.9l-4.31 2.267c-.204.107-.412.216-.592.29-.173.073-.503.195-.887.124a1.5 1.5 0 0 1-1.045-.76c-.187-.343-.172-.694-.158-.881.016-.194.056-.426.095-.652l.823-4.799-3.463-3.372-.025-.025c-.165-.16-.333-.324-.46-.472-.122-.142-.34-.418-.39-.805a1.5 1.5 0 0 1 .397-1.228c.27-.284.607-.38.79-.423.189-.046.422-.08.649-.113l.034-.005 4.788-.7 2.14-4.335.016-.032c.101-.206.205-.417.307-.582.098-.16.292-.453.646-.621ZM8.143 7.554Zm.333-.242Zm9.561 6.949ZM12 4.259 9.993 8.326l-.013.027c-.048.099-.147.303-.303.471a1.5 1.5 0 0 1-.467.34c-.208.096-.433.127-.541.142a3.951 3.951 0 0 0-.03.004l-4.49.657 3.247 3.163.022.02c.08.077.243.234.355.435a1.5 1.5 0 0 1 .179.55c.028.228-.013.451-.032.56a3.212 3.212 0 0 0-.005.029l-.767 4.468 4.014-2.111.027-.014c.096-.052.296-.16.522-.204a1.5 1.5 0 0 1 .578 0c.226.044.426.152.522.204l.027.014 4.014 2.11-.767-4.467c0-.009-.003-.019-.005-.03a1.905 1.905 0 0 1-.032-.56c.024-.193.084-.38.179-.549.112-.201.276-.358.355-.434.008-.008.015-.015.022-.02l3.248-3.164-4.49-.657a1.904 1.904 0 0 1-.571-.147 1.498 1.498 0 0 1-.468-.339 1.903 1.903 0 0 1-.316-.498L12 4.259Z",fill:"currentColor"})))},dr=n.forwardRef(ur);function fr(){return fr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},fr.apply(null,arguments)}var pr,gr,mr=function(e,n){return f.createElement("svg",fr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),lr||(lr=f.createElement("path",{d:"M11.354 1.776a1.5 1.5 0 0 1 1.292 0c.353.168.547.46.645.62.102.166.206.377.308.583l.015.032 2.14 4.335 4.822.705c.227.033.46.067.65.113.182.044.52.139.789.423a1.5 1.5 0 0 1 .398 1.228c-.051.387-.27.663-.391.805-.127.148-.295.312-.46.472l-3.488 3.397.823 4.799c.04.226.08.458.095.652.014.187.029.538-.158.882a1.5 1.5 0 0 1-1.045.759c-.384.071-.713-.051-.887-.123-.18-.075-.388-.184-.591-.291L12 18.9l-4.31 2.267c-.204.107-.412.216-.592.29-.173.073-.503.195-.887.124a1.5 1.5 0 0 1-1.045-.76c-.187-.343-.172-.694-.158-.881.016-.194.056-.426.095-.652l.823-4.799-3.463-3.372-.025-.025c-.165-.16-.333-.324-.46-.472-.122-.142-.34-.418-.39-.805a1.5 1.5 0 0 1 .397-1.228c.27-.284.607-.38.79-.423.189-.046.422-.08.649-.113l.034-.005 4.788-.7 2.14-4.335.016-.032c.101-.206.205-.417.307-.582.098-.16.292-.453.646-.621Z",fill:"currentColor"})))},hr=n.forwardRef(mr),vr=function(e){var t=e.isFavourite,a=e.isSignedIn,s=e.link,c=e.onToggleFavourite,l=e.strings,u=e.togglingFavourites,d=H(i.useWjecOneTheme(),1)[0].colorPalette,f=n.useMemo((function(){return t?hr:dr}),[t]),p=n.useMemo((function(){return u.includes(s.linkId)}),[s,u]);return r.jsx("li",{css:xr.categoryLink},r.jsx("a",{href:"https://".concat(s.url),id:s.linkId,onClick:function(){!function(e){var n=e.url;De(ar.NAVIGATE,{url:n})}(s)}},s.linkName),a&&r.jsx("button",{css:xr.toggleFavourite,onClick:function(){return c(s)},title:t?l.removeFromFavourites:l.addToFavourites,"data-is-favourite":t},p?r.jsx(o.CircularProgress,{color:d.neutralDark}):r.jsx(f,{"aria-hidden":!0,css:xr.favouriteIcon})))},xr={categoryLink:{name:"7rna1a",styles:"color:var(--neutral-dark);font-size:16px;font-weight:400;line-height:24px;margin-top:16px;position:relative;&:hover{& > button{opacity:1;}}& > a{color:var(--text-color);text-decoration:none;&:focus,&:hover{color:var(--secondary);}}"},favouriteIcon:{name:"xbbich",styles:"box-sizing:content-box;color:var(--icon-color);width:16px;"},toggleFavourite:{name:"1828h3g",styles:'--icon-color:var(--border-color);background-color:transparent;border:none;cursor:pointer;height:32px;opacity:0;padding:8px;position:absolute;right:100%;top:50%;transform:translateY(-50%);width:32px;&:focus{opacity:1;}&:hover{--icon-color:var(--neutral-dark);}&[data-is-favourite="true"]{--icon-color:var(--neutral-dark);opacity:1;}& > div{height:16px;width:16px;}'}},br=function(e){var t=e.favourites,o=e.id,i=e.isSignedIn,a=e.label,s=e.links,c=e.name,l=e.onToggleFavourite,u=e.strings,d=e.togglingFavourites,f=n.useMemo((function(){return a||(Object.hasOwn(u,c)?u[c]:c)}),[a,c,u]),p=n.useMemo((function(){return s.sort((function(e,n){var t=e.linkName,r=n.linkName;return t.localeCompare(r)})).map((function(e){return r.jsx(vr,{isFavourite:null==t?void 0:t.includes(e.linkId),isSignedIn:i,key:e.linkId,link:e,onToggleFavourite:l,strings:u,togglingFavourites:d})}))}),[t,s,d]);return r.jsx("div",{css:yr.category,id:o},r.jsx("h3",{css:yr.categoryTitle},f),r.jsx("menu",{css:yr.categoryLinks},p))},yr={category:{name:"a0ijs6",styles:"break-inside:avoid;margin-bottom:50px;min-width:220px;"},categoryTitle:{name:"hmufvc",styles:"font-size:16px;font-weight:600;line-height:24px;margin:0;"},categoryLinks:{name:"1iruc8t",styles:"list-style:none;margin:0;padding:0;"}},Er=function(e){var t=e.favourites,o=e.idPrefix,i=e.isSignedIn,a=e.links,s=void 0===a?{}:a,c=e.onToggleFavourite,l=e.strings,u=e.togglingFavourites,d=n.useMemo((function(){return(null==t?void 0:t.length)>0?Object.values(s).reduce((function(e,n){var r=n.groups;return[].concat(U(e),U(Object.values(r).map((function(e){return e.links.filter((function(e){var n=e.linkId;return t.includes(n)}))})).flat()))}),[]):[]}),[s,t]);return r.jsx(br,{favourites:t,id:"".concat(o,"FavouriteLinks"),isSignedIn:i,links:d,name:tt.FAVOURITES,onToggleFavourite:c,strings:l,togglingFavourites:u})};function Cr(){return Cr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Cr.apply(null,arguments)}var wr,Sr=function(e,n){return f.createElement("svg",Cr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),pr||(pr=f.createElement("path",{opacity:.4,d:"M16 11a5 5 0 0 0-5-5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),gr||(gr=f.createElement("path",{d:"m21 21-4.35-4.35M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Ar=n.forwardRef(Sr);function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},jr.apply(null,arguments)}var Ir,kr,Or=function(e,n){return f.createElement("svg",jr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),wr||(wr=f.createElement("path",{d:"M20.453 12.893A8.5 8.5 0 0 1 4.638 16.25l-.25-.433m-.842-4.71A8.5 8.5 0 0 1 19.361 7.75l.25.433M3.493 18.066l.732-2.732 2.732.732m10.085-8.132 2.732.732.732-2.732",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Mr=n.forwardRef(Or),Rr=function(e){var t=e.favourites,i=e.idPrefix,a=e.isSignedIn,s=e.links,c=void 0===s?{}:s,l=e.onClear,u=e.onToggleFavourite,d=e.searchTerm,f=e.strings,p=e.togglingFavourites,g=n.useMemo((function(){var e=new RegExp("\\b".concat(d),"i");return d?Object.values(c).reduce((function(n,t){var r=t.groups;return[].concat(U(n),U(Object.values(r).map((function(n){return n.links.filter((function(n){var t=n.linkName;return e.test(t)}))})).flat()))}),[]):[]}),[c,d]),m=n.useMemo((function(){var e,n;return null==f||null===(e=f.searchResults)||void 0===e||null===(n=e.replace("{count}",g.length.toString()))||void 0===n?void 0:n.replace("{searchTerm}",d)}),[g,d]);return g.length>0?r.jsx(br,{favourites:t,id:"".concat(i,"SearchResults"),isSignedIn:a,label:m,links:g,name:rt.SEARCH,onToggleFavourite:u,strings:f,togglingFavourites:p}):r.jsx("div",{css:Tr.noResults},r.jsx(Ar,{"aria-hidden":!0,css:Tr.noResultsIcon}),r.jsx("p",{css:Tr.noResultsMessage},r.jsx(o.Emphasis,null,f.noResultsTitle),f.noResultsMessage),r.jsx(o.PrimaryButton,{icon:Mr,label:f.resetYourSearch,onPress:l}))},Tr={noResults:{name:"1087dqv",styles:"align-items:center;break-inside:avoid;display:flex;flex-direction:column;gap:16px;left:50%;max-width:325px;padding:16px;position:absolute;top:56px;transform:translateX(-50%);"},noResultsIcon:{name:"1178dbp",styles:"background-color:var(--neutral);border-radius:100%;color:var(--secondary-dark);height:80px;overflow:visible;padding:8px 0 0 8px;width:80px;"},noResultsMessage:{name:"14qi77i",styles:"display:flex;flex-direction:column;gap:8px;margin:0;text-align:center;"}};function Pr(){return Pr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Pr.apply(null,arguments)}var Zr,Fr=function(e,n){return f.createElement("svg",Pr({viewBox:"0 0 1440 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),f.createElement("mask",{id:"a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:1440,height:150},Ir||(Ir=f.createElement("path",{fill:"#fff",d:"M0 0h1440v150H0z"}))),kr||(kr=f.createElement("g",{mask:"url(#a)"},f.createElement("path",{opacity:.4,d:"M4.093 21.192 1.725-50.176a5 5 0 0 1 3.923-5.05l249.66-54.934a4.999 4.999 0 0 1 4.394 1.144L388.786 5.551a5.002 5.002 0 0 1 1.444 5.26L372.279 67.06a5 5 0 0 1-3.215 3.233L138.73 145.341a5 5 0 0 1-4.961-1.098L5.679 24.681a5 5 0 0 1-1.586-3.49ZM1438.64 11.165l5.18-83.581a5 5 0 0 0-3.78-5.16l-286.09-71.608a4.986 4.986 0 0 0-4.42 1.017L995.649-19.287a4.998 4.998 0 0 0-1.719 2.995L970.938 118.98a5 5 0 0 0 4.653 5.83l370.079 20.533a5.005 5.005 0 0 0 4.42-2.188l87.7-129.495c.5-.74.8-1.602.85-2.495Z",fill:"#47BAD1"}),f.createElement("path",{opacity:.4,d:"m341.147 35.262 214.851 26.282a5.003 5.003 0 0 0 4.313-1.605l92.293-101.841c3.011-3.322.465-8.622-4.01-8.349L337.991-31.26a5 5 0 0 0-4.686 5.296l3.459 56.569a5 5 0 0 0 4.383 4.657Z",fill:"#A55896"}),f.createElement("path",{opacity:.4,d:"m636.066 94.071-192.7-231.608c-1.998-2.401-1.329-6.026 1.393-7.556l302.76-170.202a5 5 0 0 1 6.809 1.908L926.159-7.729c1.532 2.725.215 6.173-2.744 7.182L641.524 95.605a5 5 0 0 1-5.458-1.534Z",fill:"#2855A2"}),f.createElement("path",{opacity:.4,d:"M983.494 89.93 703.798 14.977c-3.017-.808-4.562-4.154-3.221-6.975l143.28-301.486a5 5 0 0 1 6.662-2.37l304.371 144.653c2.83 1.342 3.74 4.918 1.91 7.45L988.837 88.035a5 5 0 0 1-5.343 1.895Z",fill:"#B0C600"}))))},Lr=n.forwardRef(Fr);function Br(){return Br=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Br.apply(null,arguments)}var Nr,_r=function(e,n){return f.createElement("svg",Br({viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Zr||(Zr=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 3.333a2.917 2.917 0 1 0 0 5.833 2.917 2.917 0 0 0 0-5.833ZM5.917 6.25a4.583 4.583 0 1 1 9.166 0 4.583 4.583 0 0 1-9.166 0Zm2.355 5.833H12.728c1.023 0 1.721 0 2.315.18a4.166 4.166 0 0 1 2.777 2.777c.18.594.18 1.292.18 2.315v.145a.833.833 0 1 1-1.667 0c0-1.224-.009-1.65-.107-1.976a2.5 2.5 0 0 0-1.667-1.666c-.325-.1-.752-.108-1.976-.108H8.417c-1.224 0-1.651.009-1.976.107a2.5 2.5 0 0 0-1.667 1.667c-.098.325-.107.752-.107 1.976A.833.833 0 1 1 3 17.5v-.145c0-1.023 0-1.721.18-2.315a4.166 4.166 0 0 1 2.777-2.777c.594-.18 1.292-.18 2.315-.18Z",fill:"#FAFCFC"})))},Dr=n.forwardRef(_r),Wr=function(e){var n=e.id,t=e.onPressSignIn,i=e.strings;return r.jsx("div",{css:Gr.container,id:n},r.jsx(Lr,{css:Gr.headerShapes}),r.jsx(o.Emphasis,null,i.signinCardTitle),i.signinCardMessage,r.jsx(o.PrimaryButton,{icon:Dr,label:i.signIn,onPress:t}))},Gr={container:r.css("background-color:var(--neutral);break-inside:avoid;border-radius:",o.StylePalette.borderRadius,";display:flex;flex-direction:column;gap:30px;max-width:400px;padding:55px 30px 30px;position:relative;"),headerShapes:{name:"2dfsk9",styles:"left:0;position:absolute;right:0;top:0;width:100%;"}},Vr=function(e){var t=e.favourites,o=e.idPrefix,i=e.isSignedIn,a=e.links,s=e.onClearSearch,c=e.onPressSignIn,l=e.onToggleFavourite,u=e.searchTerm,d=e.selectedSection,f=e.strings,p=e.togglingFavourites,g=n.useMemo((function(){var e;return(null==a||null===(e=a[d])||void 0===e?void 0:e.groups)||[]}),[a,d]);return r.jsx("section",{css:zr.linksContainer,id:"".concat(o,"LinksSection")},d===rt.SEARCH?r.jsx(Rr,{favourites:t,idPrefix:o,isSignedIn:i,links:a,onClear:s,onToggleFavourite:l,searchTerm:u,strings:f,togglingFavourites:p}):d===rt.FAVOURITES?r.jsx(Er,{favourites:t,idPrefix:o,isSignedIn:i,links:a,onToggleFavourite:l,strings:f,togglingFavourites:p}):r.jsx(n.Fragment,null,g.map((function(e){var n=e.groupName,a=e.links;return r.jsx(br,{favourites:t,id:"".concat(o,"Group_").concat(n.replace(/\s/g,"")),isSignedIn:i,key:n,links:a,name:n,onToggleFavourite:l,strings:f,togglingFavourites:p})})),!i&&r.jsx(Wr,{id:"".concat(o,"SigninCard"),onPressSignIn:c,strings:f})))},zr={linksContainer:r.css(o.StylePalette.scrollbar,";column-gap:24px;overflow-y:auto;padding:0 0 8px 85px;width:100%;@media screen and (min-width:1280px){column-count:3;}@media screen and (max-width:1279px) and (min-width:1024px){column-count:2;}")},Hr=function(e){var n=e.id,t=e.isLoading,i=e.onClose,a=e.onConfirm,s=e.strings;return r.jsx(o.Modal,{actionButton:s.removeFavouriteConfirmation,actionLoading:t,actionType:"negative",cancelButton:s.cancel,closeOnCancel:!t,closeOnClickOutside:!t,id:n,maxWidth:"400px",onAction:a,onClose:i,open:!0,showCloseIcon:!1},s.removeFavouriteConfirmationMessage)},Xr=function(e){var n=e.isLowlighted,t=e.isSelected,o=e.onSelect,i=e.section,a=i.icon,s=i.name;return r.jsx("li",{css:r.css([Ur.section,n&&Ur.sectionLowlight,t&&Ur.sectionSelected]),onClick:function(){return o(i)},key:s},r.jsx(a,{css:Ur.sectionIcon})," ",s)},Ur={section:r.css("align-items:center;border-radius:",o.StylePalette.borderRadius,";cursor:pointer;display:flex;font-size:16px;line-height:24px;margin-bottom:8px;padding:8px;&:hover{background-color:var(--neutral);opacity:1;}"),sectionLowlight:{name:"1w5zg6j",styles:"opacity:0.2;"},sectionIcon:{name:"10vl325",styles:"color:var(--text-color);flex-shrink:0;margin-right:8px;width:24px;"},sectionSelected:{name:"17brhxb",styles:"background-color:var(--neutral);& > svg{color:var(--secondary-dark);}"}};function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Yr.apply(null,arguments)}var Jr,qr,Qr=function(e,n){return f.createElement("svg",Yr({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Nr||(Nr=f.createElement("path",{d:"M12.917 11.667h-.659l-.233-.225a5.393 5.393 0 0 0 1.308-3.525 5.417 5.417 0 1 0-5.416 5.416 5.393 5.393 0 0 0 3.525-1.308l.225.233v.659l3.954 3.946a.3.3 0 0 0 .424 0l.818-.818a.3.3 0 0 0 0-.424l-3.946-3.954Zm-5 0a3.745 3.745 0 0 1-3.75-3.75 3.745 3.745 0 0 1 3.75-3.75 3.745 3.745 0 0 1 3.75 3.75 3.745 3.745 0 0 1-3.75 3.75Z",fill:"currentColor"})))},Kr=n.forwardRef(Qr),$r=function(e){var t=e.idPrefix,o=e.isSignedIn,i=e.links,a=void 0===i?{}:i,s=e.onSelect,c=e.selectedSection,l=e.strings,u=n.useMemo((function(){return Object.keys(a)}),[a]);return r.jsx("menu",{css:eo.sections,id:"".concat(t,"SectionsMenu")},c===rt.SEARCH&&r.jsx(Xr,{isSelected:!0,onSelect:function(){return s(rt.SEARCH)},section:{icon:Kr,name:l[rt.SEARCH]}}),u.map((function(e){var n=function(e){switch(e){case"duocolour_building-05":return ht;case"duocolour_clipboard-attachment":return Et;case"duocolour_clipboard-check":return jt;case"duocolour_file-search-01":return Rt;case"duocolour_info-circle":return Lt;case"duocolour_lock-04":return Wt;case"duocolour_presentation-chart-02":return Xt;case"duocolour_settings-01":return Qt;case"duocolour_text-input":return nr;default:return ir}}(a[e].sectionIcon),t=Object.hasOwn(l,e)?l[e]:e;return r.jsx(Xr,{isLowlighted:c===rt.SEARCH,isSelected:c===e,key:e,onSelect:function(){return s(e)},section:{icon:n,name:t}})})),o&&r.jsx(Xr,{isLowlighted:c===rt.SEARCH,isSelected:c===rt.FAVOURITES,onSelect:function(){return s(rt.FAVOURITES)},section:{icon:dr,name:l[rt.FAVOURITES]}}))},eo={sections:r.css(o.StylePalette.scrollbar,";border-right:1px solid var(--border-color);list-style:none;margin:0;max-width:220px;min-width:200px;overflow-y:auto;padding:0 24px 8px 0;")},no=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=Math.ceil(e),r=Math.floor(n);return Math.floor(Math.random()*(r-t+1))+t},to=function(e){var n=e.height,t=void 0===n?"100%":n,o=e.margin,a=void 0===o?"0":o,s=e.padding,c=void 0===s?"0":s,l=e.width,u=void 0===l?"100%":l,d=i.useWjecOneThemeStyles(ro);return r.jsx("div",{css:r.css([d.skeletonBlock,{height:t,margin:a,padding:c,width:u}])})},ro=function(e){var n=e.colorPalette;return{skeletonBlock:r.css("animation:",oo," 1500ms infinite linear;background-color:",n.neutral,";background-image:linear-gradient(110deg,#ececec 10%,#f5f5f5 20%,#ececec 35%);background-size:200% 100%;border-radius:",o.StylePalette.borderRadius,";")}},oo=r.keyframes(Jr||(Jr=X(["\n to {\n background-position-x: -200%;\n }\n"]))),io=function(){var e=i.useWjecOneThemeStyles(co),t=n.useMemo((function(){return U(Array(no(4,8))).map((function(){return no(75,350)}))}),[]),o=n.useMemo((function(){return U(Array(no(3,6))).map((function(e,n){return n}))}),[]);return r.jsx("div",{css:e.container},r.jsx("div",{css:e.leftPanel},o.map((function(e){return r.jsx(to,{key:e,height:"40px",margin:"0 0 8px"})}))),r.jsx("div",{css:e.rightPanel},t.map((function(n,t){return r.jsx("div",{key:t,css:e.group},r.jsx(to,{height:"25px",margin:"0 0 16px",width:"33%"}),r.jsx(to,{height:"".concat(n,"px")}))}))))},ao={name:"mkgnve",styles:"display:flex;height:100%;width:100%;"},so={name:"a0ijs6",styles:"break-inside:avoid;margin-bottom:50px;min-width:220px;"},co=function(e){var n=e.colorPalette;return{container:ao,group:so,leftPanel:r.css("border-right:1px solid ",n.border,";flex-shrink:0;height:100%;padding:0 24px 8px 0;width:200px;"),rightPanel:r.css(o.StylePalette.scrollbar,";column-gap:24px;overflow-y:auto;padding:0 0 8px 85px;width:100%;@media screen and (min-width:1280px){column-count:3;}@media screen and (max-width:1279px) and (min-width:1024px){column-count:2;}")}},lo=Object.freeze({cancel:"Cancel",codeDescription:"Enter your 6-digit code",codeLabel:"Code",codeFormatError:"Verification code must consist of 6 numbers",codeMatchError:"You have entered an invalid code",codeMissingError:"You must enter the verification code",codePlaceholder:"e.g. 673489",emailAddressLabel:"Email address",emailAddressMissingError:"You must provide a valid email address",emailAddressPlaceholder:"e.g. joe.bloggs@wjec.co.uk",externalSignIn:"Sign in as an Appointee",forgotPassword:"Forgot your password?",haveCode:"Already have a code?",mfaAttemptWarning:"You have used {exhausted} out of {max} attempts",newPasswordLabel:"New Password",next:"Next",or:"OR",passwordHint:"",passwordLabel:"Password",passwordMissingError:"You must enter your password",passwordValidationError:"The password you entered does not match the required format",resendCode:"Re-send code",sendReminder:"Send Reminder",setupTotpMfa:"Set up your authenticator app",signIn:"Sign in",submitCode:"Submit Code",submitPassword:"Confirm Password",title:"Sign in to your WJEC Account",useSmsMfa:"Use an SMS code instead",usernameLabel:"Email address",usernameMissingError:"You must provide a valid email address",usernamePlaceholder:"e.g. joe.bloggs@wjec.co.uk"}),uo=function(e){return e.SET_CURRENT_CHALLENGE="SET_CURRENT_CHALLENGE",e.SET_CURRENT_MODE="SET_CURRENT_MODE",e.SET_EMAIL_ADDRESS="SET_EMAIL_ADDRESS",e.SET_ERROR_TYPE="SET_ERROR_TYPE",e.SET_LOCALIZATION_STRINGS="SET_LOCALIZATION_STRINGS",e.SET_PASSWORD="SET_PASSWORD",e.SET_USE_EMAIL_ADDRESS_AS_USERNAME="SET_USE_EMAIL_ADDRESS_AS_USERNAME",e.SET_USERNAME="SET_USERNAME",e.SET_USERNAME_ICON="SET_USERNAME_ICON",e}({}),fo=a.createSimpleAction(uo.SET_CURRENT_CHALLENGE),po=a.createSimpleAction(uo.SET_CURRENT_MODE),go=a.createSimpleAction(uo.SET_EMAIL_ADDRESS),mo=a.createSimpleAction(uo.SET_ERROR_TYPE),ho=a.createSimpleAction(uo.SET_LOCALIZATION_STRINGS),vo=a.createSimpleAction(uo.SET_PASSWORD),xo=a.createSimpleAction(uo.SET_USERNAME),bo=a.createSimpleAction(uo.SET_USERNAME_ICON),yo=a.createSimpleAction(uo.SET_USE_EMAIL_ADDRESS_AS_USERNAME),Eo=function(e,n){var t=n.payload;switch(n.type){case uo.SET_CURRENT_CHALLENGE:return Object.freeze(B(B({},e),{},{currentChallenge:t}));case uo.SET_CURRENT_MODE:return Object.freeze(B(B({},e),{},{currentMode:t}));case uo.SET_EMAIL_ADDRESS:return e.useEmailAddressAsUsername?Object.freeze(B(B({},e),{},{emailAddress:t,username:t})):Object.freeze(B(B({},e),{},{emailAddress:t}));case uo.SET_ERROR_TYPE:return Object.freeze(B(B({},e),{},{errorType:t}));case uo.SET_LOCALIZATION_STRINGS:return Object.freeze(B(B({},e),{},{i18n:t}));case uo.SET_PASSWORD:return Object.freeze(B(B({},e),{},{password:t}));case uo.SET_USE_EMAIL_ADDRESS_AS_USERNAME:return Object.freeze(B(B({},e),{},{useEmailAddressAsUsername:t}));case uo.SET_USERNAME:return e.useEmailAddressAsUsername?Object.freeze(B(B({},e),{},{emailAddress:t,username:t})):Object.freeze(B(B({},e),{},{username:t}));case uo.SET_USERNAME_ICON:return Object.freeze(B(B({},e),{},{usernameIcon:t}));default:return e}};function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Co.apply(null,arguments)}var wo,So=function(e,n){return f.createElement("svg",Co({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),qr||(qr=f.createElement("path",{d:"m21.5 18-6.643-6m-5.714 0L2.5 18M2 7l8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Ao=n.forwardRef(So),jo=["children"],Io=Object.freeze({currentChallenge:void 0,currentMode:"signIn",emailAddress:void 0,errorType:void 0,i18n:lo,password:void 0,useEmailAddressAsUsername:!1,username:void 0,usernameIcon:Ao}),ko=n.createContext([Io,void 0]),Oo=function(e){var t=e.children,o=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==n.indexOf(r))continue;t[r]=e[r]}return t}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],-1===n.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,jo),i=n.useReducer(Eo,Io,(function(e){return function(e,n){var t=B({},e);return Object.entries(n).forEach((function(e){var n=H(e,2),r=n[0],o=n[1];void 0!==o&&(t[r]=o)})),Object.freeze(t)}(e,o)})),a=H(i,2),s=a[0],c=a[1];return r.jsx(ko.Provider,{value:[s,c]},t)},Mo=function(){return n.useContext(ko)},Ro=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e.querySelector("input")};n.useEffect((function(){t(e.current).focus()}),[])},To=function(e,r){var o=t.useAuthorization().requestStatuses,i=n.useMemo((function(){return Array.isArray(r)?r:[r]}),[r]),a=H(n.useState(!1),2),s=a[0],c=a[1];return n.useEffect((function(){var n=!0;return s&&e().finally((function(){n&&c(!1)})),function(){n=!1}}),[s]),{callSigninFormAction:function(){return c(!0)},loading:s||i.some((function(e){return"loading"===o[e]}))}},Po={fieldsSection:{name:"1yir50x",styles:"align-items:stretch;border:none;display:flex;flex-direction:column;margin:0;padding:0;"},form:{name:"7vhy35",styles:"display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;line-height:24px;width:100%;& >:not(:last-child){margin-bottom:24px;}"},formControls:{name:"z29w5v",styles:"border:none;display:flex;justify-content:space-between;margin:0;padding:0;& >:first-of-type:not(:only-child){margin-right:45px;}& >:only-child{margin-left:auto;}"}};function Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Zo.apply(null,arguments)}var Fo,Lo,Bo=function(e,n){return f.createElement("svg",Zo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),wo||(wo=f.createElement("path",{d:"M5 12h14m0 0-7-7m7 7-7 7",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},No=n.forwardRef(Bo),_o=function(e){var i=e.passwordValidator,a=void 0===i?function(){return!0}:i,s=t.useAuthorization().requestStatuses,c=H(Mo(),1)[0],l=c.currentChallenge,u=c.errorType,d=c.i18n,f=H(n.useState(),2),p=f[0],g=f[1],m=H(n.useState(""),2),h=m[0],v=m[1],x=n.useRef();Ro(x);var b=n.useMemo((function(){return"loading"===s[t.AuthAction.FORCE_CHANGE_PASSWORD]||"loading"===s[t.AuthAction.GET_USER_PREFERENCES]}),[s[t.AuthAction.FORCE_CHANGE_PASSWORD],s[t.AuthAction.GET_USER_PREFERENCES]]),y=n.useMemo((function(){return void 0!==p||u===t.AuthAction.FORCE_CHANGE_PASSWORD?"error":void 0}),[p,u]);return r.jsx("form",{css:Po.form,id:"NewPasswordForm",onSubmit:function(e){if(e.preventDefault(),l.challengeType===t.ChallengeType.NEW_PASSWORD_REQUIRED&&!b){var n=!!h,r=a(h);n?r||g(d.passwordValidationError):g(d.passwordMissingError),n&&r&&(g(void 0),l.completeChallenge(h))}},ref:x},r.jsx(o.Password,{description:d.passwordHint,disabled:b,id:"NewPasswordInput",label:d.newPasswordLabel,onChange:v,status:y,statusMessage:p,value:h}),r.jsx("fieldset",{css:Po.formControls},r.jsx(o.PrimaryButton,{buttonType:"submit",icon:No,iconPosition:"right",id:"NewPasswordButton",label:d.submitPassword,loading:b,size:"small"})))},Do=function(e){var a=e.onCancel,c=e.onSubmitRequestCode,l=t.useAuthorization().requestStatuses,u=H(Mo(),2),d=u[0],f=d.currentMode,p=d.errorType,g=d.i18n,m=d.useEmailAddressAsUsername,h=d.username,v=u[1],x=n.useRef();Ro(x);var b=H(n.useState(!1),2),y=b[0],E=b[1],C=n.useMemo((function(){return"loading"===l[t.AuthAction.REQUEST_PASSWORD_RESET]}),[l[t.AuthAction.REQUEST_PASSWORD_RESET]]),w=n.useMemo((function(){return y||p===t.AuthAction.REQUEST_PASSWORD_RESET?"error":void 0}),[p,y]),S=function(){var e=T(q().mark((function e(n){return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),C){e.next=12;break}if(!h){e.next=11;break}return E(!1),s.isCallableFunction(c)&&c(h),e.next=7,t.requestPasswordReset(h);case 7:e.sent&&v(po("forgotPasswordSubmitCode")),e.next=12;break;case 11:E(!0);case 12:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),A=i.useWjecOneThemeStyles(Wo);return r.jsx("form",{css:Po.form,id:"RequestPasswordResetForm",onSubmit:S,ref:x},r.jsx("fieldset",{css:Po.fieldsSection},r.jsx(o.Input,{autoComplete:m?"email":"username",disabled:C,icon:Ao,id:m?"EmailInput":"UsernameInput",label:g.usernameLabel,onChange:function(e){v(go(e))},placeholder:g.usernamePlaceholder,status:w,statusMessage:y&&!h&&g.usernameMissingError,value:h}),r.jsx("a",{css:A.haveCode,id:"HaveCodeLink",onClick:function(){v(po("forgotPasswordSubmitCode"))}},g.haveCode)),r.jsx("fieldset",{css:Po.formControls},r.jsx(o.Button,{disabled:C,id:"CancelButton",label:g.cancel,onPress:function(){s.isCallableFunction(a)&&a(f),v(po("signIn"))},size:"small"}),r.jsx(o.PrimaryButton,{buttonType:"submit",icon:No,iconPosition:"right",id:"SendReminderButton",label:g.sendReminder,loading:C,size:"small"})))},Wo=function(e){var n=e.colorPalette;return{haveCode:r.css("align-self:flex-end;color:",n.secondaryDark,";cursor:pointer;display:inline-block;font-size:16px;font-weight:400;line-height:24px;margin-top:10px;")}},Go=function(e){var i=e.onCancel,a=e.onSubmitNewPassword,c=e.passwordValidator,l=void 0===c?function(){return!0}:c,u=t.useAuthorization().requestStatuses,d=H(Mo(),2),f=d[0],p=f.currentMode,g=f.errorType,m=f.i18n,h=f.useEmailAddressAsUsername,v=f.username,x=f.usernameIcon,b=d[1],y=n.useRef();Ro(y);var E=H(n.useState(""),2),C=E[0],w=E[1],S=H(n.useState(""),2),A=S[0],j=S[1],I=H(n.useState(""),2),k=I[0],O=I[1],M=H(n.useState(""),2),R=M[0],P=M[1],Z=H(n.useState(""),2),F=Z[0],L=Z[1],B=n.useMemo((function(){return"loading"===u[t.AuthAction.COMPLETE_PASSWORD_RESET]}),[u[t.AuthAction.COMPLETE_PASSWORD_RESET]]),N=n.useMemo((function(){return g===t.AuthAction.COMPLETE_PASSWORD_RESET?"error":void 0}),[g]),_=function(){var e=T(q().mark((function e(n){return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),B){e.next=12;break}if(!D()){e.next=12;break}return j(""),P(""),L(""),s.isCallableFunction(a)&&a(k,C),e.next=10,t.completePasswordReset(v,C,k);case 10:e.sent&&b(po("signIn"));case 12:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),D=function(){var e=""!==C,n=""!==k,t=l(k),r=""!==v;return j(e?"":"codeMissing"),L(r?"":m.usernameMissingError),n?t||P("passwordValidationError"):P("passwordMissingError"),e&&n&&t&&r},W=n.useMemo((function(){return"codeMissing"===A?m.codeMissingError:""}),[m,A]),G=n.useMemo((function(){switch(R){case"passwordMissingError":return m.passwordMissingError;case"passwordValidationError":return m.passwordValidationError;default:return""}}),[R,m]);return r.jsx("form",{css:Po.form,id:"NewPasswordForm",onSubmit:_,ref:y},r.jsx(o.Input,{autoComplete:h?"email":"username",disabled:B,icon:x,id:h?"EmailInput":"UsernameInput",label:m.usernameLabel,onChange:function(e){b(xo(e))},placeholder:m.usernamePlaceholder,status:N||(F?"error":void 0),statusMessage:F,value:v}),r.jsx(o.VerificationCodeInput,{description:m.codeDescription,disabled:B,id:"CodeInput",label:m.codeLabel,onChange:w,placeholder:m.codePlaceholder,status:N||(A?"error":void 0),statusMessage:W}),r.jsx(o.Password,{description:m.passwordHint,disabled:B,id:"NewPasswordInput",label:m.newPasswordLabel,onChange:O,status:N||(R?"error":void 0),statusMessage:G,value:k}),r.jsx("fieldset",{css:Po.formControls},r.jsx(o.Button,{disabled:B,id:"CancelButton",label:m.cancel,onPress:function(){s.isCallableFunction(i)&&i(p),b(po("signIn"))},size:"small"}),r.jsx(o.PrimaryButton,{buttonType:"submit",icon:No,iconPosition:"right",id:"NewPasswordButton",label:m.submitPassword,loading:B,size:"small"})))},Vo=Object.freeze(["cbac.co.uk","wjec.co.uk","eduqas.co.uk"]),zo=Object.freeze(["wjec-appointees.co.uk"]),Ho=function(e){var a=e.onSignIn,c=e.onSubmitSignIn,l=H(Mo(),2),u=l[0],d=u.errorType,f=u.i18n,p=u.password,g=u.useEmailAddressAsUsername,m=u.username,h=u.usernameIcon,v=l[1],x=n.useRef();Ro(x);var b=H(n.useState(!1),2),y=b[0],E=b[1],C=H(n.useState(!1),2),w=C[0],S=C[1],A=n.useMemo((function(){return m&&Vo.some((function(e){return m.toLocaleLowerCase().endsWith(e)}))}),[m]),j=n.useMemo((function(){return m&&zo.some((function(e){return m.toLocaleLowerCase().endsWith(e)}))}),[m]),I=To(T(q().mark((function e(){return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.signIn(m,p).then((function(){s.isCallableFunction(a)&&a()}));case 2:case"end":return e.stop()}}),e)}))),[t.AuthAction.GET_USER_PREFERENCES,t.AuthAction.SIGN_IN]),k=I.callSigninFormAction,O=I.loading,M=n.useMemo((function(){return"signIn"===d||y?"error":void 0}),[d,y]);n.useEffect((function(){E(!1)}),[w]),n.useEffect((function(){(A||j)&&S(!1)}),[A,j]);var R=i.useWjecOneThemeStyles(Xo);return r.jsx("form",{css:Po.form,id:"SignInForm",onSubmit:function(e){e.preventDefault(),!O&&m?(E(!1),!m||A||j||(S(!0),m&&p?(E(!1),s.isCallableFunction(c)&&c(m,p),k()):E(!0)),A&&!j&&t.externalSignIn("AzureWJECMain"),!A&&j&&t.externalSignIn("AzureWJECOPP")):E(!0)},ref:x},r.jsx(o.Input,{autoComplete:g?"email":"username",disabled:O,icon:h,id:g?"EmailInput":"UsernameInput",label:f.usernameLabel,onChange:function(e){e||S(!1),v(xo(e))},placeholder:f.usernamePlaceholder,status:M,statusMessage:y&&!m&&f.usernameMissingError,value:m}),w&&r.jsx("fieldset",{css:Po.fieldsSection},r.jsx(o.Password,{disabled:O,id:"PasswordInput",label:f.passwordLabel,onChange:function(e){v(vo(e))},status:M,statusMessage:y&&!p&&f.passwordMissingError,value:p})),r.jsx(o.PrimaryButton,{buttonType:"submit",icon:No,iconPosition:"right",id:"SignInButton",label:f.next,loading:O}),w&&r.jsx("a",{css:R.forgotPassword,id:"ForgotPasswordLink",onClick:function(){v(po("forgotPasswordRequestCode"))},"data-disabled":O},f.forgotPassword))},Xo=function(e){var n=e.colorPalette;return{appointeesSignin:r.css("border:none;border-top:2px solid ",n.border,";color:",n.neutralLight,";display:flex;flex-direction:column;margin:0;padding:24px 0 0;text-align:center;& > legend{padding:0 16px;font-size:16px;font-weight:600;line-height:16px;}"),forgotPassword:r.css("align-self:flex-start;color:",n.primaryDark,';cursor:pointer;display:inline-block;font-size:12px;font-weight:600;line-height:16px;&[data-disabled="true"]{opacity:0.5;pointer-events:none;}')}},Uo=function(e){var a=e.mfaAttemptLimit,c=e.onCancel,l=e.showResendCode,u=H(Mo(),2),d=u[0],f=d.currentChallenge,p=d.currentMode,g=d.i18n,m=d.password,h=d.username,v=u[1],x=n.useRef();Ro(x);var b=H(n.useState(""),2),y=b[0],E=b[1],C=H(n.useState(),2),w=C[0],S=C[1],A=H(n.useState(),2),j=A[0],I=A[1],k=n.useMemo((function(){return((null==f?void 0:f.challengeType)===t.ChallengeType.EMAIL_MFA||(null==f?void 0:f.challengeType)===t.ChallengeType.SMS_MFA)&&l}),[null==f?void 0:f.challengeType,l]),O=n.useMemo((function(){var e;if("object"===Y(a))switch(null==f?void 0:f.challengeType){case t.ChallengeType.EMAIL_MFA:e=a[t.MFAType.EMAIL];break;case t.ChallengeType.SMS_MFA:e=a[t.MFAType.SMS];break;case t.ChallengeType.TOTP_MFA:e=a[t.MFAType.TOTP]}else e=a;return e}),[null==f?void 0:f.challengeType,a]),M=n.useMemo((function(){switch(null==f?void 0:f.challengeType){case t.ChallengeType.EMAIL_MFA:case t.ChallengeType.SMS_MFA:case t.ChallengeType.TOTP_MFA:return f.attemptNumber;default:return 1}}),[f]),R=n.useMemo((function(){return O&&M>O}),[O,M]);n.useEffect((function(){O&&M>1&&(S(M<O?"warning":"error"),I("mfaAttemptWarning"))}),[O,M,g]);var P=To(T(q().mark((function e(){return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f.completeChallenge(y);case 2:case"end":return e.stop()}}),e)}))),[t.AuthAction.GET_USER_PREFERENCES,t.AuthAction.SUBMIT_MFA_CODE]),Z=P.callSigninFormAction,F=P.loading,L=n.useCallback((function(e,n){"confirmSignIn"===e&&Object.hasOwn(n,"code")&&"CodeMismatchException"===n.code&&(S("error"),I("codeMatchError"))}),[]);t.useAuthorization({onError:L});var B=n.useMemo((function(){var e;switch(j){case"mfaAttemptWarning":return g.mfaAttemptWarning.replace("{current}",null==M?void 0:M.toString()).replace("{exhausted}",null===(e=M-1)||void 0===e?void 0:e.toString()).replace("{max}",null==O?void 0:O.toString());case"codeMatchError":return g.codeMatchError;case"codeFormatError":return g.codeFormatError;default:return""}}),[g,j]),N=i.useWjecOneThemeStyles(Yo);return r.jsx("form",{css:Po.form,id:"MfaCodeForm",onSubmit:function(e){var n=function(e){return/^\d{6}$/.test(e)}(y);if(e.preventDefault(),!R&&!F)if(n)switch(S(void 0),I(void 0),null==f?void 0:f.challengeType){case t.ChallengeType.EMAIL_MFA:case t.ChallengeType.SMS_MFA:case t.ChallengeType.TOTP_MFA:Z();break;default:s.developerWarning("Unhandled challenge type: ".concat(null==f?void 0:f.challengeType))}else S("error"),I("codeFormatError")},ref:x},r.jsx("fieldset",{css:Po.fieldsSection},r.jsx(o.VerificationCodeInput,{description:g.codeDescription,disabled:R||F,id:"CodeInput",label:g.codeLabel,onChange:E,placeholder:g.codePlaceholder,status:w,statusMessage:B}),k&&r.jsx("a",{css:N.formOption,id:"ResendCodeLink",onClick:function(){t.signIn(h,m)},"data-disabled":F},g.resendCode)),r.jsx("fieldset",{css:Po.formControls},r.jsx(o.Button,{disabled:F,id:"CancelButton",label:g.cancel,onPress:function(){s.isCallableFunction(c)&&c(p),v(po("signIn"))},size:"small"}),r.jsx(o.PrimaryButton,{buttonType:"submit",disabled:R,icon:No,iconPosition:"right",id:"SubmitCodeButton",label:g.submitCode,loading:F,size:"small"})))},Yo=function(e){var n=e.colorPalette;return{formOption:r.css("align-self:flex-end;color:",n.secondaryDark,';cursor:pointer;display:inline-block;font-size:16px;font-weight:400;line-height:24px;margin-top:10px;&[data-disabled="true"]{opacity:0.5;pointer-events:none;}')}},Jo=function(e){var n=e.children,t=e.step,o=i.useWjecOneThemeStyles(qo);return r.jsx("li",{css:o.container,"data-step":t},n)},qo=function(e){var n=e.colorPalette;return{container:r.css("align-items:flex-start;display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;gap:16px 8px;line-height:24px;overflow:hidden;padding-left:28px;position:relative;&:not(:last-child){margin-bottom:24px;}&::before{background-color:",n.neutral,";border-radius:10px;bottom:0;content:attr(data-step);color:",n.font,";display:flex;flex-shrink:0;font-weight:700;justify-content:center;left:0;position:absolute;top:0;width:18px;}")}},Qo=function(e,r,o){var i=x(r),a=function(e){var r=t.useAuthorization(),o=r.groups,i=r.isSignedIn,a=x(e);return n.useMemo((function(){return i?v(e,o,a):[]}),[a,e,o,i])}(r),s=[].concat(U(t.state.groups),U(a)),c=n.useMemo((function(){var n={},t=(null==e?void 0:e[o])||{};for(var r in t){var a,c=P(t[r].groups);try{for(c.s();!(a=c.n()).done;){var l=a.value,u=l.links.filter((function(e){var n=e.accessGroups,t=void 0===n?[]:n;return 0===t.length||t.includes(i)||t.some((function(e){return s.includes(e)}))}));u.length>0&&(n[r]||(n[r]=B(B({},t[r]),{},{groups:[]})),n[r].groups.push(B(B({},l),{},{links:u})))}}catch(e){c.e(e)}finally{c.f()}}return n}),[i,e,o,a]);return c};function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ko.apply(null,arguments)}var $o,ei=function(e,n){return f.createElement("svg",Ko({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Fo||(Fo=f.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"})),Lo||(Lo=f.createElement("path",{d:"m15 9-6 6m0-6 6 6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},ni=n.forwardRef(ei);function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ti.apply(null,arguments)}var ri,oi,ii=function(e,n){return f.createElement("svg",ti({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),$o||($o=f.createElement("path",{d:"M12.917 11.667h-.659l-.233-.225a5.393 5.393 0 0 0 1.308-3.525 5.417 5.417 0 1 0-5.416 5.416 5.393 5.393 0 0 0 3.525-1.308l.225.233v.659l3.954 3.946a.3.3 0 0 0 .424 0l.818-.818a.3.3 0 0 0 0-.424l-3.946-3.954Zm-5 0a3.745 3.745 0 0 1-3.75-3.75 3.745 3.745 0 0 1 3.75-3.75 3.745 3.745 0 0 1 3.75 3.75 3.745 3.745 0 0 1-3.75 3.75Z",fill:"currentColor"})))},ai=n.forwardRef(ii),si={name:"hyf6y2",styles:"display:flex;flex-direction:column;margin:0 auto;max-width:var(--max-width);width:100%;"},ci={name:"18qoxif",styles:"display:flex;height:100%;overflow:hidden;padding:56px 0 0;position:relative;transition:opacity linear 250ms,transform linear 250ms;width:100%;&[data-offset]{opacity:0;transform:translateY(-35px);}"},li={name:"9751jc",styles:'margin:0 auto;position:relative;width:400px;& input[type="text"]:not(input[value=""]){padding-right:40px;}'},ui=function(e){var n=e.colorPalette;return{clearSearchButton:r.css("background-color:transparent;border:none;cursor:pointer;height:40px;outline-color:",n.primary,";padding:8px;position:absolute;right:0;top:0;width:40px;"),clearSearchIcon:r.css("color:",n.errorDark,";"),container:r.css("--border-color:",n.border,";--max-width:1280px;--horizontal-padding:24px;--neutral:",n.neutral,";--neutral-dark:",n.neutralDark,";--offset-top:71px;--secondary:",n.secondary,";--secondary-dark:",n.secondaryDark,";--text-color:",n.neutralDark,";bottom:0;backdrop-filter:blur(5px);background-color:rgba(255,255,255,0.9);display:flex;font-family:'Montserrat',sans-serif;justify-content:center;left:0;padding:40px var(--horizontal-padding) 0;position:fixed;right:0;top:var(--offset-top);z-index:1;"),innerContainer:si,menuContainer:ci,searchContainer:li}},di={moreIcon:{name:"mphk0f",styles:"display:flex;justify-content:center;height:24px;"},moreIconArrowOpen:{name:"4ky835",styles:"transform:rotate(180deg);"},notificationStack:r.css(o.StylePalette.scrollbar,";display:flex;flex-direction:column;gap:16px;overflow-y:auto;padding:24px 8px 0;pointer-events:all;"),notificationStackContainer:{name:"zkmeg4",styles:"background-color:transparent;border:none;box-sizing:border-box;display:flex;flex-direction:column;gap:16px;max-height:100%;overflow-y:auto;pointer-events:none;"},showMore:{name:"h651qx",styles:"justify-items:stretch;pointer-events:all;"}},fi=function(e){var o=e.i18n,i=e.mfaAttemptLimit,a=e.mode,c=e.onCancel,l=e.onChangeMode,u=e.onError,d=e.onSignIn,f=e.onSubmitNewPassword,p=e.onSubmitRequestCode,g=e.onSubmitSignIn,m=e.passwordValidator,h=e.showResendCode,v=void 0===h||h,x=e.useEmailAddressAsUsername,b=e.usernameIcon,y=H(Mo(),2),E=y[0].currentMode,C=y[1],w=n.useCallback((function(e){switch(C(fo(e)),e.challengeType){case t.ChallengeType.NEW_PASSWORD_REQUIRED:C(po("forcePasswordChange"));break;case t.ChallengeType.EMAIL_MFA:case t.ChallengeType.SMS_MFA:case t.ChallengeType.TOTP_MFA:C(po("confirmSignIn"))}}),[]),S=n.useCallback((function(e,n){s.isCallableFunction(u)&&u(E,n),C(mo(e))}),[E]);return t.useAuthorization({onChallenge:w,onError:S}),function(e){var t=H(Mo(),2);t[0];var r=t[1],o=n.useMemo((function(){return B(B({},lo),e)}),[e]);n.useEffect((function(){r(ho(o))}),[o])}(o),n.useEffect((function(){s.isCallableFunction(l)&&l(E),C(mo(void 0)),"confirmSignIn"!==E&&C(vo(void 0))}),[E]),function(e){var t=H(Mo(),2),r=t[0],o=r.currentMode,i=r.useEmailAddressAsUsername,a=r.usernameIcon,s=t[1];n.useEffect((function(){e.mode&&e.mode!==o&&s(po(e.mode))}),[null==e?void 0:e.mode]),n.useEffect((function(){void 0!==e.useEmailAddressAsUsername&&e.useEmailAddressAsUsername!==i&&s(yo(e.useEmailAddressAsUsername))}),[null==e?void 0:e.useEmailAddressAsUsername]),n.useEffect((function(){e.usernameIcon&&e.usernameIcon!==a&&s(bo(e.usernameIcon))}),[null==e?void 0:e.usernameIcon])}({mode:a,useEmailAddressAsUsername:x,usernameIcon:b}),"forcePasswordChange"===E?r.jsx(_o,{passwordValidator:m}):"forgotPasswordRequestCode"===E?r.jsx(Do,{onCancel:c,onSubmitRequestCode:p}):"forgotPasswordSubmitCode"===E?r.jsx(Go,{onCancel:c,onSubmitNewPassword:f,passwordValidator:m}):"confirmSignIn"===E?r.jsx(Uo,{mfaAttemptLimit:i,onCancel:c,showResendCode:v}):r.jsx(Ho,{onSignIn:d,onSubmitSignIn:g})},pi=function(e){var n=e.colorPalette;return{skeletonBlock:r.css("animation:",gi," 1500ms infinite linear;background-color:",n.neutral,";background-image:linear-gradient(110deg,#ececec 10%,#f5f5f5 20%,#ececec 35%);background-size:200% 100%;border-radius:",o.StylePalette.borderRadius,";")}},gi=r.keyframes(ri||(ri=X(["\n to {\n background-position-x: -200%;\n }\n"]))),mi={confirmationMessage:"I confirm that I am aware of the risks of using only email MFA",confirmationMissingError:"You must confirm that you want to use email MFA",disclaimer:"Email MFA is less secure than other options. Additionally, security policies at your centre can slow the process.",submitConfirmation:"Use email MFA",title:"Use email MFA"},hi=function(e){var n=e.colorPalette;return{form:r.css("align-items:flex-start;color:",n.font,";display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;gap:32px;line-height:24px;overflow:hidden;")}};function vi(){return vi=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},vi.apply(null,arguments)}var xi,bi,yi=function(e,n){return f.createElement("svg",vi({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),oi||(oi=f.createElement("path",{d:"M5 12h14m0 0-7-7m7 7-7 7",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Ei=n.forwardRef(yi);function Ci(){return Ci=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ci.apply(null,arguments)}var wi,Si=function(e,n){return f.createElement("svg",Ci({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),xi||(xi=f.createElement("path",{opacity:.12,d:"M4 14.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C6.28 10 7.12 10 8.8 10h6.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C20 12.28 20 13.12 20 14.8v1.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 21 16.88 21 15.2 21H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 18.72 4 17.88 4 16.2v-1.4Z",fill:"currentColor"})),bi||(bi=f.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"})))},Ai=n.forwardRef(Si),ji={continueButtonLabel:"Continue to Portal",description:"Thank you for setting up your Multi-Factor Authentication.",redirectMessage:"You will be redirected to Portal in {timer}",title:"Your account is now secure"},Ii={name:"ug8j3x",styles:"margin:16px 0 24px;"},ki={name:"guxhko",styles:"font-size:20px;font-weight:400;line-height:32px;margin:0;"},Oi=function(e){var n=e.colorPalette;return{container:r.css("align-items:center;color:",n.neutralDark,";display:flex;gap:8px;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;line-height:24px;text-align:center;"),icon:r.css("color:",n.secondaryDark,";height:100px;& > path{stroke-width:0.5;}"),message:Ii,title:ki}};function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Mi.apply(null,arguments)}var Ri,Ti=function(e,n){return f.createElement("svg",Mi({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),wi||(wi=f.createElement("path",{d:"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2.002 2.002 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152V22Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Pi=n.forwardRef(Ti),Zi={codeFormatError:"Verification code must consist of 6 numbers",codeLabel:"Verification code",codeMatchError:"You have entered an invalid verification code",codePlaceholder:"e.g. 123456",reSendCode:"Re-send verification code",sendCode:"Send verification code",submitCode:"Verify SMS setup",stepFourDescription:"Verify the code.",stepOneDescription:"Enter your mobile number.",stepOneUpdateDescription:"Changing your mobile number will require re-verification before you can use SMS as your multi-factor authentication selection",stepThreeDescription:"Enter the 6-digit code that was sent to your number.",stepTwoDescription:"Send a verification code.",stepTwoUpdateDescription:"Use your existing mobile number for multi-factor authentication",telephoneNumberFormatError:"Mobile number does not match required format",telephoneNumberLabel:"Mobile number",telephoneNumberPlaceholder:"e.g. +447772719873",title:"Set up SMS authentication",useExistingTelephoneNumber:"Use SMS"},Fi={name:"nrkrjg",styles:"display:flex;flex-direction:column;gap:24px;& >:first-child{margin-bottom:8px;}"},Li={name:"1k9hmir",styles:"list-style:none;margin:0;padding:0;width:100%;"},Bi=function(e){var n=e.colorPalette;return{container:Fi,form:r.css("color:",n.font,";display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;gap:16px;line-height:24px;overflow:hidden;"),steps:Li}},Ni={cantScan:"Can't scan the code?",cantScanHint:"Enter this secret key into your authenticator application:",codeFormatError:"Verification code must consist of 6 numbers",codeLabel:"Verification code",codeMatchError:"You have entered an invalid verification code",codePlaceholder:"e.g. 123456",deviceNameLabel:"Device name (optional)",submitCode:"Verify Authentication App setup",stepFourDescription:"Verify the code.",stepOneDescription:"Download an authentication app on your phone or desktop. Don't have an app? View our list of recommended applications.",stepThreeDescription:"Enter the 6-digit code generated from the application.",stepTwoDescription:"Scan the following QR code.",title:"Set up your Authenticator App"},_i={name:"1yqngoq",styles:"border:none;display:flex;gap:16px;margin:0;padding:0;"},Di={name:"6su6fj",styles:"flex-shrink:0;"},Wi={name:"1isqi06",styles:"display:flex;gap:24px;margin:0 16px 8px;"},Gi={name:"1ygg5wq",styles:"display:flex;flex-direction:column;font-size:inherit;"},Vi={name:"12z0wuy",styles:"margin-right:8px;"},zi={name:"1k9hmir",styles:"list-style:none;margin:0;padding:0;width:100%;"},Hi=function(e){var n=e.colorPalette;return{form:r.css("color:",n.font,";display:flex;flex-direction:column;flex-shrink:0;font-family:'Montserrat',sans-serif;font-size:16px;gap:32px;line-height:24px;overflow:hidden;"),inputFields:_i,qrCode:Di,qrCodeContainer:Wi,secretKey:r.css("background-color:",n.neutral,";font-family:'Montserrat',sans-serif;padding:8px;word-break:break-all;"),secretKeyContainer:Gi,secretKeySpacer:Vi,secretKeyTitle:r.css("color:",n.neutralDark,";margin:0;font-size:inherit;font-weight:500;"),steps:zi}},Xi={newAppSetup:"Set up authenticator app",stepOneDescription:r.jsx(n.Fragment,null,"You already have an authenticator app configured. ",r.jsx("b",null,"If you start the setup process again, your existing setup will be invalidated and you won't be able to use an authenticator app to log in until you complete the setup")),stepTwoDescription:"Use your existing authenticator app setup for multi-factor authentication",title:"Set up your Authenticator App",useExistingTotpConfiguration:"Use authenticator app"},Ui={name:"1k9hmir",styles:"list-style:none;margin:0;padding:0;width:100%;"},Yi=function(e){var n=e.colorPalette;return{container:r.css("color:",n.font,";display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;gap:32px;line-height:24px;overflow:hidden;"),steps:Ui}};function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ji.apply(null,arguments)}var qi,Qi=function(e,n){return f.createElement("svg",Ji({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),Ri||(Ri=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.161 2H9.84c.527 0 .981 0 1.356.03.395.033.789.104 1.167.297a3 3 0 0 1 1.311 1.311c.193.378.264.772.296 1.167.031.375.031.83.031 1.356V10h3.838c.528 0 .982 0 1.357.03.395.033.789.104 1.167.297a3 3 0 0 1 1.311 1.311c.193.378.264.772.296 1.167.031.375.031.83.031 1.356V20a1 1 0 1 1 0 2H2a1 1 0 1 1 0-2V6.161c0-.527 0-.981.03-1.356.033-.395.104-.789.297-1.167a3 3 0 0 1 1.311-1.311c.378-.193.772-.264 1.167-.296C5.18 2 5.635 2 6.161 2ZM4 20h8V6.2c0-.577 0-.949-.024-1.232-.022-.272-.06-.373-.085-.422a1 1 0 0 0-.437-.437c-.05-.025-.15-.063-.422-.085C10.75 4 10.377 4 9.8 4H6.2c-.577 0-.949 0-1.232.024-.272.022-.373.06-.422.085a1 1 0 0 0-.437.437c-.025.05-.063.15-.085.422C4 5.25 4 5.623 4 6.2V20Zm10-8v8h6v-5.8c0-.577 0-.949-.024-1.232-.022-.272-.06-.373-.085-.422a1 1 0 0 0-.437-.437c-.05-.025-.15-.063-.422-.085C18.75 12 18.377 12 17.8 12H14ZM5.5 7a1 1 0 0 1 1-1h3a1 1 0 1 1 0 2h-3a1 1 0 0 1-1-1Zm0 4a1 1 0 0 1 1-1h3a1 1 0 1 1 0 2h-3a1 1 0 0 1-1-1Zm0 4a1 1 0 0 1 1-1h3a1 1 0 1 1 0 2h-3a1 1 0 0 1-1-1Z",fill:"currentColor"})))},Ki=n.forwardRef(Qi);function $i(){return $i=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},$i.apply(null,arguments)}var ea,na,ta=function(e,n){return f.createElement("svg",$i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),qi||(qi=f.createElement("path",{d:"m18 8 4 4m0 0-4 4m4-4H9m6-7.796A8.383 8.383 0 0 0 10.667 3C5.88 3 2 7.03 2 12s3.88 9 8.667 9A8.384 8.384 0 0 0 15 19.796",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},ra=n.forwardRef(ta);function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},oa.apply(null,arguments)}var ia,aa=function(e,n){return f.createElement("svg",oa({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),ea||(ea=f.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"})),na||(na=f.createElement("path",{d:"M18.727 14.727a1.5 1.5 0 0 0 .3 1.655l.055.054a1.816 1.816 0 0 1 0 2.573 1.818 1.818 0 0 1-2.573 0l-.055-.055a1.5 1.5 0 0 0-1.654-.3 1.5 1.5 0 0 0-.91 1.373v.155a1.818 1.818 0 1 1-3.636 0V20.1a1.5 1.5 0 0 0-.981-1.373 1.5 1.5 0 0 0-1.655.3l-.054.055a1.818 1.818 0 0 1-3.106-1.287 1.818 1.818 0 0 1 .533-1.286l.054-.055a1.5 1.5 0 0 0 .3-1.654 1.5 1.5 0 0 0-1.372-.91h-.155a1.818 1.818 0 1 1 0-3.636H3.9a1.5 1.5 0 0 0 1.373-.981 1.5 1.5 0 0 0-.3-1.655l-.055-.054A1.818 1.818 0 1 1 7.491 4.99l.054.054a1.5 1.5 0 0 0 1.655.3h.073a1.5 1.5 0 0 0 .909-1.372v-.155a1.818 1.818 0 0 1 3.636 0V3.9a1.499 1.499 0 0 0 .91 1.373 1.5 1.5 0 0 0 1.654-.3l.054-.055a1.817 1.817 0 0 1 2.573 0 1.819 1.819 0 0 1 0 2.573l-.055.054a1.5 1.5 0 0 0-.3 1.655v.073a1.5 1.5 0 0 0 1.373.909h.155a1.818 1.818 0 0 1 0 3.636H20.1a1.499 1.499 0 0 0-1.373.91Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},sa=n.forwardRef(aa);function ca(){return ca=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ca.apply(null,arguments)}var la,ua,da,fa=function(e,n){return f.createElement("svg",ca({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),ia||(ia=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.354 1.776a1.5 1.5 0 0 1 1.292 0c.353.168.547.46.645.62.102.166.206.377.308.583l.015.032 2.14 4.335 4.822.705c.227.033.46.067.65.113.182.044.52.139.789.423a1.5 1.5 0 0 1 .398 1.228c-.051.387-.27.663-.391.805-.127.148-.295.312-.46.472l-3.488 3.397.823 4.799c.04.226.08.458.095.652.014.187.029.538-.158.882a1.5 1.5 0 0 1-1.045.759c-.384.071-.713-.051-.887-.123a7.754 7.754 0 0 1-.591-.291L12 18.9l-4.31 2.267c-.204.107-.412.216-.592.29-.173.073-.503.195-.887.124a1.5 1.5 0 0 1-1.045-.76c-.187-.343-.172-.694-.158-.881.016-.194.056-.426.095-.652l.823-4.799-3.463-3.372-.025-.025c-.165-.16-.333-.324-.46-.472-.122-.142-.34-.418-.39-.805a1.5 1.5 0 0 1 .397-1.228c.27-.284.607-.38.79-.423.189-.046.422-.08.649-.113l.034-.005 4.788-.7 2.14-4.335.016-.032c.101-.206.205-.417.307-.582.098-.16.292-.453.646-.621ZM8.143 7.554Zm.333-.242Zm9.561 6.949ZM12 4.259 9.993 8.326l-.013.027c-.048.099-.147.303-.303.471a1.5 1.5 0 0 1-.467.34c-.208.096-.433.127-.541.142a3.951 3.951 0 0 0-.03.004l-4.49.657 3.247 3.163.022.02c.08.077.243.234.355.435a1.5 1.5 0 0 1 .179.55c.028.228-.013.451-.032.56a3.212 3.212 0 0 0-.005.029l-.767 4.468 4.014-2.111.027-.014c.096-.052.296-.16.522-.204a1.5 1.5 0 0 1 .578 0c.226.044.426.152.522.204l.027.014 4.014 2.11-.767-4.467c0-.009-.003-.019-.005-.03a1.905 1.905 0 0 1-.032-.56c.024-.193.084-.38.179-.549.112-.201.276-.358.355-.434.008-.008.015-.015.022-.02l3.248-3.164-4.49-.657a1.904 1.904 0 0 1-.571-.147 1.498 1.498 0 0 1-.468-.339 1.903 1.903 0 0 1-.316-.498L12 4.259Z",fill:"currentColor"})))},pa=n.forwardRef(fa);function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ga.apply(null,arguments)}var ma,ha,va=function(e,n){return f.createElement("svg",ga({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),la||(la=f.createElement("path",{opacity:.4,d:"M18.684 19.438A4.001 4.001 0 0 0 15 17H9a4.001 4.001 0 0 0-3.684 2.438",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ua||(ua=f.createElement("path",{d:"M12 13.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),da||(da=f.createElement("path",{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"})))},xa=n.forwardRef(va);function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ba.apply(null,arguments)}var ya=function(e,n){return f.createElement("svg",ba({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n},e),ma||(ma=f.createElement("rect",{width:40,height:40,rx:20,fill:"#C0E8F0"})),ha||(ha=f.createElement("path",{d:"M11 28c2.336-2.477 5.507-4 9-4 3.493 0 6.664 1.523 9 4m-4.5-12.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Ea=n.forwardRef(ya),Ca={addPageToFavourites:'Add "{currentPage}" to your favourites',changeCentre:"Change centre",changeCentrePlaceholder:"Select a centre",selectCentreError:"Centre number must consist of 5 digits",signIn:"Sign in",signOut:"Sign Out",welcome:"Welcome Back"},wa={name:"fv3lde",styles:"align-items:center;display:flex;"},Sa={name:"1uthhvt",styles:"display:flex;gap:8px;margin-top:8px;"},Aa={name:"j7qwjs",styles:"display:flex;flex-direction:column;"},ja={name:"1rl2310",styles:"align-items:center;color:var(--centre-icon-color);display:flex;font-size:16px;font-weight:600;line-height:24px;margin-top:4px;"},Ia={name:"qcb6m9",styles:"height:24px;margin-right:8px;width:24px;"},ka={name:"nxd1e0",styles:"align-items:center;background-color:rgba(255,255,255,0.75);display:flex;inset:0;justify-content:center;position:absolute;"},Oa={name:"1fr0ud0",styles:"max-width:200px;& > button{max-width:100%;}"},Ma={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},Ra=function(e){var n=e.colorPalette;return{accountActions:r.css("list-style:none;margin:0;min-width:250px;padding:0;& > li{align-items:center;border-radius:",o.StylePalette.borderRadius,";color:",n.font,";display:flex;font-size:16px;font-weight:400;line-height:24px;padding:4px 8px;&:not(:last-child){margin-bottom:8px;}&:hover{background-color:",n.neutral,";cursor:pointer;}}"),accountActionsIcon:r.css("color:",n.fontLight,";flex-shrink:0;margin-right:8px;width:24px;"),centre:wa,centreNumber:r.css("background-color:",n.secondaryLight,";border-radius:8px;color:",n.secondaryDark,";font-size:12px;font-weight:600;line-height:16px;margin-right:4px;padding:4px;"),centreNumberForm:Sa,clearCentreIcon:r.css("color:",n.error,";width:24px;"),container:Aa,currentCentre:ja,icon:Ia,loadingOverlay:ka,toggleContainer:Oa,toggleLabel:Ma,userAction:r.css("--centre-icon-color:",n.secondaryDark,";align-items:flex-start;border-radius:",o.StylePalette.borderRadius,";display:flex;margin:-8px -8px 0;padding:8px;text-decoration:none;&:hover{--centre-icon-color:",n.primary,";background-color:",n.neutral,";cursor:pointer;}"),userActionIcon:r.css("color:",n.fontLight,";flex-shrink:0;margin-left:10px;width:24px;"),userDetails:r.css("color:",n.fontLight,";display:flex;flex-direction:column;flex-grow:1;font-size:14px;font-weight:400;line-height:16px;overflow:hidden;white-space:pre;word-wrap:break-word;"),userIcon:r.css("color:",n.neutralDark,";flex-shrink:0;margin-right:8px;width:40px;"),username:r.css("color:",n.font,";font-size:16px;font-weight:600;line-height:24px;margin-top:4px;word-wrap:balance;")}};e.DEFAULT_SECONDARY_ACCESS_GROUPS=C,e.Divider=function(e){var n=e.margin,t=void 0===n?"20px 0":n,o=i.useWjecOneThemeStyles(k);return r.jsx(I,{css:r.css([o.divider,{margin:t}],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkRpdmlkZXIuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVEwQiIsImZpbGUiOiJEaXZpZGVyLmpzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCBmcm9tICdyZWFjdCc7XHJcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xyXG5pbXBvcnQgeyBTdHlsZVBhbGV0dGUgfSBmcm9tICd3amVjLW9uZSc7XHJcbmltcG9ydCB7IHVzZVdqZWNPbmVUaGVtZVN0eWxlcyB9IGZyb20gJ3dqZWMtb25lL3RoZW1lJztcclxuLy8gQHRyYW5zZm9ybS1wYXRoIC4uL2Fzc2V0cy9pbWFnZXMvZGl2aWRlci5zdmdcclxuaW1wb3J0IERpdmlkZXJJbWFnZSBmcm9tIFwiLi4vYXNzZXRzL2ltYWdlcy9kaXZpZGVyLnN2Z1wiO1xyXG5leHBvcnQgY29uc3QgRGl2aWRlciA9ICh7IG1hcmdpbiA9ICcyMHB4IDAnIH0pID0+IHtcclxuICAgIGNvbnN0IHN0eWxlcyA9IHVzZVdqZWNPbmVUaGVtZVN0eWxlcyhnZXRTdHlsZXMpO1xyXG4gICAgcmV0dXJuICg8RGl2aWRlckltYWdlIGNzcz17W3N0eWxlcy5kaXZpZGVyLCB7IG1hcmdpbiB9XX0gaGVpZ2h0PSc0cHgnIHdpZHRoPScxMDAlJy8+KTtcclxufTtcclxuY29uc3QgZ2V0U3R5bGVzID0gKHsgY29sb3JQYWxldHRlIH0pID0+ICh7XHJcbiAgICBkaXZpZGVyOiBjc3MgYFxyXG4gICAgYm9yZGVyLXJhZGl1czogJHtTdHlsZVBhbGV0dGUuYm9yZGVyUmFkaXVzfTtcclxuICAgIGJhY2tncm91bmQtY29sb3I6ICR7Y29sb3JQYWxldHRlLnByaW1hcnlMaWdodH07XHJcbiAgICBoZWlnaHQ6IDRweDtcclxuICAgIHdpZHRoOiAxMDAlO1xyXG4gIGBcclxufSk7XHJcbiJdfQ== */"),height:"4px",width:"100%"})},e.EmailMfaSetup=function(e){var a=e.i18n,c=void 0===a?mi:a,l=e.onSubmit,u=t.useAuthorization(),d=u.preferences,f=u.requestStatuses,p=H(n.useState(),2),g=p[0],m=p[1],h=H(n.useState(void 0!==(null==d?void 0:d.emailMfaAccepted)),2),v=h[0],x=h[1];n.useEffect((function(){var e=void 0!==d.emailMfaAccepted;e!==v&&x(e)}),[null==d?void 0:d.emailMfaAccepted]);var b=n.useMemo((function(){return"loading"===f[t.AuthAction.SET_MFA_TYPE]||"loading"===f[t.AuthAction.UPDATE_USER_PREFERENCES]}),[f[t.AuthAction.SET_MFA_TYPE],f[t.AuthAction.UPDATE_USER_PREFERENCES]]),y=n.useMemo((function(){return B(B({},mi),c)}),[c]),E=i.useWjecOneThemeStyles(hi);return r.jsx("form",{css:E.form,onSubmit:function(e){e.preventDefault(),b||(v?(m(void 0),s.isCallableFunction(l)&&l(),t.setMfaType(t.MFAType.EMAIL).then((function(){t.updateUserPreferences({emailMfaAccepted:new Date})}))):m(y.confirmationMissingError))}},r.jsx(o.SectionTitle,null,y.title),y.disclaimer,r.jsx(o.CheckBox,{checked:v,disabled:b,id:"ConfirmMfaCheckbox",label:y.confirmationMessage,onChange:x,status:g?"error":void 0,statusMessage:g}),r.jsx(o.PrimaryButton,{buttonType:"submit",disabled:!v,id:"UseEmailMfaButton",label:y.submitConfirmation,loading:b}))},e.Footer=function(e){var n=e.i18n,t=void 0===n?{copyrightMessage:"Copyright WJEC CBAC Ltd ".concat((new Date).getFullYear())}:n,o=e.logos,i=void 0===o?[Re,Fe]:o,a=e.maxWidth,s=void 0===a?1280:a,c=we(nn);return r.jsx("footer",{css:c.footer},r.jsx("div",{css:r.css([c.container,{maxWidth:"".concat(s,"px")}])},i.map((function(e,n){return r.jsx(e,{key:"logo_".concat(n),css:c.logo})})),r.jsx("span",{css:c.copyright},t.copyrightMessage)))},e.Header=function(e){var t=e.id,o=e.logo,i=e.maxWidth,a=void 0===i?1280:i,s=e.menusLeft,c=e.menusRight,l=e.onPressPageTitle,u=e.pageTitleHref,d=e.pageTitle,f=void 0===d?r.jsx(an,{style:{height:"16px"}}):d,p=H(Ce(),1)[0].brand,g=n.useMemo((function(){return sn(o)?o[p]:o}),[p,o]),m=we(gn);return r.jsx("header",{css:m.header,id:t},r.jsx("div",{css:r.css([m.container,{maxWidth:"".concat(a,"px")}])},r.jsx("section",{css:r.css([m.menuContainer,m.menuContainerLeft])},s),f&&(void 0!==l||u?r.jsx("a",{css:m.homeLink,href:u,onClick:l},r.jsx("h1",{css:m.title},f)):r.jsx("h1",{css:m.title},f)),r.jsx("section",{css:r.css([m.menuContainer,m.menuContainerRight])},c,g&&r.jsx("div",{css:m.logoContainer},r.jsx(g,{css:m.logo})))))},e.HelpMenu=function(e){var t=e.applicationVersion,a=e.description,s=void 0===a?"Not sure where to begin? Our handy guides and frequently asked questions will help get you on your way.":a,c=e.options,l=void 0===c?[]:c,u=e.title,d=void 0===u?"Need Help?":u,f=H(i.useWjecOneTheme(),1)[0].colorPalette,p=i.useWjecOneThemeStyles(ge),g=n.useMemo((function(){return l.map((function(e,n){var t=e.href,o=e.icon,i=e.label,a=e.onPress;return r.jsx("li",{key:"option_".concat(n,"_").concat(i),css:p.option},r.jsx("a",{css:p.link,href:t,onClick:a,rel:"noopener noreferrer",target:"_blank"},r.jsx(o,{css:p.linkIcon})," ",i))}))}),[l]);return r.jsx(o.Popup,{attachment:"floating",maxHeight:"350px",padding:"20px",toggle:r.jsx(o.Button,{color:"transparent",icon:ue,iconColor:f.fontLight},r.jsx(te,{css:p.icon}))},r.jsx("h4",{css:p.title},d),r.jsx("p",{css:p.helpMessage},s),l.length>0&&r.jsx("ul",{css:p.options},g),t&&r.jsx("div",{css:p.applicationVersion},t))},e.LocalizationMenu=function(e){var t=e.icons,a=e.id,s=e.keySuffix,l=void 0===s?"":s,u=e.open,d=void 0!==u&&u,f=e.showLocaleNameInList,p=void 0===f||f,g=e.showSelectedLocaleName,m=void 0===g?!t:g,h=H(c.useLocalization(),2),v=h[0],x=v.availableLocales,b=v.locale,y=v.strings,E=h[1],C=H(i.useWjecOneTheme(),1)[0].colorPalette,w=H(n.useState(d),2),S=w[0],A=w[1];n.useEffect((function(){d!==S&&A(d)}),[d]);var j=function(e){return"".concat(String(e)).concat(l)},I=i.useWjecOneThemeStyles(nt),k=n.useMemo((function(){return r.jsx(o.Button,{color:"transparent",labelColor:C.fontLight},t&&r.jsx(t[b],{css:I.icon}),m&&(y[j(b)]||"".concat(String(b)).concat(l)))}),[C,l,b,y]);return r.jsx(o.Popup,{attachment:"floating",id:a,open:S,onHide:function(){return A(!1)},onShow:function(){return A(!0)},padding:"16px",placement:"bottom-end",toggle:k},r.jsx("ul",{css:I.locales},null==x?void 0:x.map((function(e){var n,o=p&&(y[j(e)]||"".concat(String(e)).concat(l));return r.jsx("li",{css:I.option,key:e.toString(),onClick:(n=e,function(){E(c.selectLocale(n)),A(!1)})},t&&r.jsx(t[e],{css:I.icon}),o)}))))},e.MfaSetupSuccess=function(e){var t=e.i18n,a=void 0===t?ji:t,c=e.onRedirect,l=e.redirectTimer,u=void 0===l?5e3:l,d=e.remainingTimeFormatter,f=void 0===d?function(e){return r.jsx("b",null,Math.round(e/1e3)," second(s)")}:d,p=n.useRef(!1),g=n.useRef(Date.now()),m=H(n.useState(u),2),h=m[0],v=m[1],x=n.useMemo((function(){return B(B({},ji),{},{i18n:a})}),[a]),b=n.useMemo((function(){return s.formattedStringToPlainText(x.redirectMessage).split(/({[^}]+})/g).map((function(e){return r.jsx(n.Fragment,{key:e},e.match(/{timer}/)?f(h):e)}))}),[x,h]);n.useEffect((function(){var e;return h>0?e=self.setTimeout((function(){var e=Date.now(),n=e-g.current;v(h-n),g.current=e}),1e3):y(),function(){self.clearTimeout(e)}}),[h]);var y=function(){!p.current&&s.isCallableFunction(c)&&(p.current=!0,v(0),c())},E=i.useWjecOneThemeStyles(Oi);return r.jsx("div",{css:E.container},r.jsx(Ai,{css:E.icon}),r.jsx("h4",{css:E.title},x.title),x.description,r.jsx("p",{css:E.message},b),r.jsx(o.PrimaryButton,{icon:Ei,iconPosition:"right",id:"ContinueToPortalButton",label:x.continueButtonLabel,onPress:y}))},e.Navigation=function(e){var a=e.centreNumber,c=e.i18n,l=e.idPrefix,u=void 0===l?"navigation":l,d=e.links,f=void 0===d?{}:d,p=e.loading,g=e.locale,m=void 0===g?"en-gb":g,h=e.maxWidth,v=e.offsetTop,x=e.onError,b=e.onPressSignIn,y=e.open,E=e.padding,C=t.useAuthorization(),w=C.isInitialized,S=C.isSignedIn,A=C.preferences.favouriteLinks,j=void 0===A?[]:A,I=Qo(f,a,m),k=H(n.useState(),2),O=k[0],M=k[1],R=H(n.useState(""),2),T=R[0],P=R[1],Z=H(n.useState(Object.keys(I||{})[0]),2),F=Z[0],L=Z[1],N=n.useMemo((function(){return p||!w}),[w,p]),_=n.useMemo((function(){return B(B({},ot[m]),c)}),[c,m]),D=H(n.useState([]),2),W=D[0],G=D[1],V=n.useRef(),z=n.useRef(),X=n.useRef();n.useEffect((function(){y&&I?Object.keys(I).includes(F)||L(Object.keys(I)[0]):L(void 0)}),[I,y]),n.useEffect((function(){y||P("")}),[y]),n.useLayoutEffect((function(){var e=!0;return y&&requestAnimationFrame((function(){e&&V.current.removeAttribute("data-offset")})),function(){e=!1}}),[y]);var Y=function(e){F!==rt.SEARCH&&""!==e?(z.current=F,L(rt.SEARCH)):void 0!==z.current&&""===e&&(L(z.current),z.current=void 0,X.current.querySelector("input").focus()),P(e),sr(e)},J=function(e,n){G((function(n){return[].concat(U(n),[e.linkId])}));var r="add"===n?[].concat(U(j),[e.linkId]):j.filter((function(n){return n!==e.linkId}));t.updateUserPreferences({favouriteLinks:r}).then((function(t){t?(M(void 0),"add"===n?function(e){var n=e.linkId;De(ar.ADD_FAVOURITE,{linkId:n})}(e):function(e){var n=e.linkId;De(ar.REMOVE_FAVOURITE,{linkId:n})}(e)):s.isCallableFunction(x)&&x("toggleFavourite",e)})).catch((function(){s.isCallableFunction(x)&&x("toggleFavourite",e)})).finally((function(){G((function(n){return n.filter((function(n){return n!==e.linkId}))}))}))},q=i.useWjecOneThemeStyles(ui);return y&&r.jsx("nav",{css:q.container,id:"".concat(u,"Container"),style:{"--horizontal-padding":E,"--max-width":h,"--offset-top":v}},r.jsx("div",{css:q.innerContainer},r.jsx("form",{css:q.searchContainer,id:"".concat(u,"SearchForm"),onReset:function(){return Y("")},onSubmit:function(e){return e.preventDefault()},ref:X},r.jsx(o.Input,{icon:ai,onChange:Y,placeholder:_.searchAllServices,value:T,width:"100%"}),T&&r.jsx("button",{css:q.clearSearchButton,type:"reset"},r.jsx(ni,{"aria-hidden":!0,css:q.clearSearchIcon}))),r.jsx("section",{ref:V,css:q.menuContainer,"data-offset":!0},N&&r.jsx(io,null),!N&&r.jsx(n.Fragment,null,r.jsx($r,{idPrefix:u,isSignedIn:S,links:I,onSelect:function(e){F===rt.SEARCH&&e!==rt.SEARCH&&P(""),L(e)},selectedSection:F,strings:_}),r.jsx(Vr,{favourites:j,idPrefix:u,isSignedIn:S,links:I,onClearSearch:function(){return Y("")},onPressSignIn:b,onToggleFavourite:function(e){j.includes(e.linkId)?M(e):J(e,"add")},searchTerm:T,selectedSection:F,strings:_,togglingFavourites:W})))),O&&r.jsx(Hr,{id:"".concat(u,"RemoveFavouriteModal"),isLoading:W.includes(null==O?void 0:O.linkId),onClose:function(){return M(void 0)},onConfirm:function(){J(O,"remove")},strings:_}))},e.NotificationsStack=function(e){var t=e.children,a=e.i18n,s=void 0===a?{showLess:"Show less",showMore:"Show more"}:a,c=e.visibleCount,l=void 0===c?3:c,u=H(n.useState(!1),2),d=u[0],f=u[1],p=n.Children.toArray(t),g=H(i.useWjecOneTheme(),1)[0].colorPalette;return r.jsx("div",{css:di.notificationStackContainer},r.jsx("div",{css:di.notificationStack},p.slice(0,d?1/0:l).map((function(e){return e}))),p.length>l&&r.jsx("div",{css:di.showMore},r.jsx(o.Button,{color:g.neutral,onPress:function(){f(!d)}},d?s.showLess:"".concat(s.showMore," (").concat(p.length-l,")"),r.jsx(Ve,{css:r.css([di.moreIcon,d&&di.moreIconArrowOpen],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk5vdGlmaWNhdGlvblN0YWNrLmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1QjJCIiwiZmlsZSI6Ik5vdGlmaWNhdGlvblN0YWNrLmpzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0JztcclxuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XHJcbmltcG9ydCB7IEJ1dHRvbiwgU3R5bGVQYWxldHRlIH0gZnJvbSAnd2plYy1vbmUnO1xyXG5pbXBvcnQgeyB1c2VXamVjT25lVGhlbWUgfSBmcm9tICd3amVjLW9uZS90aGVtZSc7XHJcbmltcG9ydCBDYXJldERvd25JY29uIGZyb20gJ3NyYy9hc3NldHMvaWNvbnMvY2FyZXRfZG93bi5zdmcnO1xyXG5leHBvcnQgY29uc3QgTm90aWZpY2F0aW9uc1N0YWNrID0gKHsgY2hpbGRyZW4sIGkxOG4gPSB7IHNob3dMZXNzOiAnU2hvdyBsZXNzJywgc2hvd01vcmU6ICdTaG93IG1vcmUnIH0sIHZpc2libGVDb3VudCA9IDMgfSkgPT4ge1xyXG4gICAgY29uc3QgW3Nob3dNb3JlLCBzZXRTaG93TW9yZV0gPSB1c2VTdGF0ZShmYWxzZSk7XHJcbiAgICBjb25zdCBjaGlsZHJlbkFycmF5ID0gUmVhY3QuQ2hpbGRyZW4udG9BcnJheShjaGlsZHJlbik7XHJcbiAgICBjb25zdCBbeyBjb2xvclBhbGV0dGUgfV0gPSB1c2VXamVjT25lVGhlbWUoKTtcclxuICAgIHJldHVybiAoPGRpdiBjc3M9e3N0eWxlcy5ub3RpZmljYXRpb25TdGFja0NvbnRhaW5lcn0+XHJcbiAgICAgIDxkaXYgY3NzPXtzdHlsZXMubm90aWZpY2F0aW9uU3RhY2t9PlxyXG5cclxuICAgICAgICB7Y2hpbGRyZW5BcnJheS5zbGljZSgwLCBzaG93TW9yZSA/IEluZmluaXR5IDogdmlzaWJsZUNvdW50KS5tYXAoKChjaGlsZCkgPT4gKGNoaWxkKSkpfVxyXG5cclxuICAgICAgPC9kaXY+XHJcblxyXG4gICAgICB7Y2hpbGRyZW5BcnJheS5sZW5ndGggPiB2aXNpYmxlQ291bnQgJiYgKDxkaXYgY3NzPXtzdHlsZXMuc2hvd01vcmV9PlxyXG4gICAgICAgICAgPEJ1dHRvbiBjb2xvcj17Y29sb3JQYWxldHRlLm5ldXRyYWx9IG9uUHJlc3M9eygpID0+IHtcclxuICAgICAgICAgICAgICAgIHNldFNob3dNb3JlKCFzaG93TW9yZSk7XHJcbiAgICAgICAgICAgIH19PlxyXG4gICAgICAgICAgICB7c2hvd01vcmVcclxuICAgICAgICAgICAgICAgID8gaTE4bi5zaG93TGVzc1xyXG4gICAgICAgICAgICAgICAgOiBgJHtpMThuLnNob3dNb3JlfSAoJHtjaGlsZHJlbkFycmF5Lmxlbmd0aCAtIHZpc2libGVDb3VudH0pYH1cclxuICAgICAgICAgICAgPENhcmV0RG93bkljb24gY3NzPXtbc3R5bGVzLm1vcmVJY29uLCBzaG93TW9yZSAmJiBzdHlsZXMubW9yZUljb25BcnJvd09wZW5dfS8+XHJcbiAgICAgICAgICA8L0J1dHRvbj5cclxuICAgICAgICA8L2Rpdj4pfVxyXG4gICAgPC9kaXY+KTtcclxufTtcclxuY29uc3Qgc3R5bGVzID0ge1xyXG4gICAgbW9yZUljb246IGNzcyBgXHJcbiAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XHJcbiAgICBoZWlnaHQ6IDI0cHg7XHJcbiAgYCxcclxuICAgIG1vcmVJY29uQXJyb3dPcGVuOiBjc3MgYFxyXG4gICAgdHJhbnNmb3JtOiByb3RhdGUoMTgwZGVnKTtcclxuICBgLFxyXG4gICAgbm90aWZpY2F0aW9uU3RhY2s6IGNzcyBgXHJcbiAgICAke1N0eWxlUGFsZXR0ZS5zY3JvbGxiYXJ9O1xyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XHJcbiAgICBnYXA6IDE2cHg7XHJcbiAgICBvdmVyZmxvdy15OiBhdXRvO1xyXG4gICAgcGFkZGluZzogMjRweCA4cHggMDtcclxuICAgIHBvaW50ZXItZXZlbnRzOiBhbGw7XHJcbiAgYCxcclxuICAgIG5vdGlmaWNhdGlvblN0YWNrQ29udGFpbmVyOiBjc3MgYFxyXG4gICAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XHJcbiAgICBib3JkZXI6IG5vbmU7XHJcbiAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XHJcbiAgICBnYXA6IDE2cHg7XHJcbiAgICBtYXgtaGVpZ2h0OiAxMDAlO1xyXG4gICAgb3ZlcmZsb3cteTogYXV0bztcclxuICAgIHBvaW50ZXItZXZlbnRzOiBub25lO1xyXG4gIGAsXHJcbiAgICBzaG93TW9yZTogY3NzIGBcclxuICAgIGp1c3RpZnktaXRlbXM6IHN0cmV0Y2g7XHJcbiAgICBwb2ludGVyLWV2ZW50czogYWxsO1xyXG4gIGBcclxufTtcclxuIl19 */")}))))},e.Page=function(e){var n=e.children,t=e.footerProps,o=e.headerProps,i=e.maxWidth,a=void 0===i?1280:i,s=e.padding,c=void 0===s?"32px 32px 0":s;return r.jsx("div",{css:Kn.pageWrapper},r.jsx(Sn,F({},o,{maxWidth:a})),r.jsx("main",{css:r.css([Kn.content,{maxWidth:a,padding:c}])},n),r.jsx(Yn,F({},t,{maxWidth:a})))},e.SigninForm=function(e){return r.jsx(Oo,{currentMode:e.mode,useEmailAddressAsUsername:e.useEmailAddressAsUsername,usernameIcon:e.usernameIcon},r.jsx(fi,e))},e.SkeletonBlock=function(e){var n=e.height,t=void 0===n?"100%":n,o=e.margin,a=void 0===o?"0":o,s=e.padding,c=void 0===s?"0":s,l=e.width,u=void 0===l?"100%":l,d=i.useWjecOneThemeStyles(pi);return r.jsx("div",{css:r.css([d.skeletonBlock,{height:t,margin:a,padding:c,width:u}])})},e.SmsMfaSetup=function(e){var a=e.i18n,c=void 0===a?Zi:a,l=e.onSendCode,u=e.onSubmit,d=e.telephoneNumberValidator,f=void 0===d?function(e){return/^\+[1-9][0-9\s]{0,24}$/.test(e)}:d,p=t.useAuthorization({}),g=p.requestStatuses,m=p.telephoneNumber,h=p.telephoneNumberVerified,v=n.useRef(),x=n.useRef(!1),b=n.useRef(),y=H(n.useState(""),2),E=y[0],C=y[1],w=H(n.useState(),2),S=w[0],A=w[1],j=H(n.useState(!1),2),I=j[0],k=j[1],O=H(n.useState(!1),2),M=O[0],R=O[1],P=H(n.useState(m&&h?"update":"setup"),2),Z=P[0],F=P[1],L=H(n.useState(m),2),N=L[0],_=L[1],D=H(n.useState(),2),W=D[0],G=D[1],V=H(n.useState(),2),z=V[0],X=V[1],U=n.useMemo((function(){return"loading"===g[t.AuthAction.UPDATE_USER_ATTRIBUTES]}),[g[t.AuthAction.UPDATE_USER_ATTRIBUTES]]),Y=n.useMemo((function(){return"loading"===g[t.AuthAction.SET_MFA_TYPE]||"loading"===g[t.AuthAction.VERIFY_TELEPHONE_NUMBER]}),[g[t.AuthAction.SET_MFA_TYPE],g[t.AuthAction.VERIFY_TELEPHONE_NUMBER]]),J=n.useMemo((function(){return B(B({},Zi),c)}),[c]),Q=n.useMemo((function(){var e;return"setup"===Z&&W&&(e="error"),"update"===Z&&m===N&&h&&(e="success"),e}),[m,h,Z,N,W]),K=n.useMemo((function(){return f(N)}),[N]);n.useEffect((function(){"setup"!==Z||x.current||(b.current.querySelector("input").focus(),x.current=!0)}),[Z]),n.useEffect((function(){!M&&"setup"===Z&&h&&N===m&&F("update"),"update"===Z&&N!==m&&F("setup")}),[m,h,M,Z,N]);var $=function(){var e=T(q().mark((function e(n){return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),Y){e.next=14;break}if(R(!0),!/^\d{6}$/.test(E)){e.next=13;break}return A(void 0),s.isCallableFunction(u)&&u(E),e.next=9,null==z?void 0:z.completeChallenge(E);case 9:e.sent&&t.setMfaType(t.MFAType.SMS).then((function(){C(""),k(!1),R(!1)})),e.next=14;break;case 13:A(J.codeFormatError);case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ee=function(){var e=T(q().mark((function e(n){var r,o,i;return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),"setup"!==Z||U){e.next=20;break}if(k(!1),R(!1),!f(N)){e.next=19;break}return e.next=8,t.updateUserAttributes({telephoneNumber:N});case 8:if(!e.sent){e.next=17;break}return s.isCallableFunction(l)&&l(N),e.next=13,t.verifyTelephoneNumber();case 13:(null==(i=e.sent)?void 0:i.challengeType)===t.ChallengeType.VERIFY_TELEPHONE_NUMBER&&X(i),k(!0),null===(r=v.current)||void 0===r||null===(o=r.querySelector("input"))||void 0===o||o.focus();case 17:e.next=20;break;case 19:G(J.telephoneNumberFormatError);case 20:"update"===Z&&t.setMfaType(t.MFAType.SMS);case 21:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ne=i.useWjecOneThemeStyles(Bi);return r.jsx("section",{css:ne.container},r.jsx(o.SectionTitle,null,J.title),r.jsx("form",{css:ne.form,id:"TelephoneNumberForm",onSubmit:ee,ref:b},r.jsx("ol",{css:ne.steps},r.jsx(Jo,{step:1},"setup"===Z?J.stepOneDescription:J.stepOneUpdateDescription,r.jsx(o.Input,{disabled:U||Y,id:"TelephoneNumberInput",label:J.telephoneNumberLabel,onChange:_,placeholder:J.telephoneNumberPlaceholder,status:Q,statusMessage:W,value:N,width:"200px"})),r.jsx(Jo,{step:2},"setup"===Z?J.stepTwoDescription:J.stepTwoUpdateDescription,"setup"===Z&&r.jsx(o.SecondaryButton,{buttonType:"submit",disabled:Y||!K,icon:Pi,id:"SendCodeButton",label:I?J.reSendCode:J.sendCode,loading:U}),"update"===Z&&r.jsx(o.PrimaryButton,{buttonType:"submit",label:J.useExistingTelephoneNumber,loading:Y})))),"setup"===Z&&r.jsx("form",{css:ne.form,id:"CodeForm",onSubmit:$,ref:v},r.jsx("ol",{css:ne.steps},r.jsx(Jo,{step:3},J.stepThreeDescription,r.jsx(o.Input,{disabled:!I||Y,id:"EnterCodeInput",label:J.codeLabel,maxCharacters:6,onChange:C,placeholder:J.codePlaceholder,status:S?"error":void 0,statusMessage:S,value:E})),r.jsx(Jo,{step:4},J.stepFourDescription,r.jsx(o.PrimaryButton,{buttonType:"submit",disabled:!E,id:"SubmitCodeButton",label:J.submitCode,loading:Y})))))},e.TotpMfaSetup=function(e){var a=e.allowCustomDeviceName,c=void 0!==a&&a,l=e.i18n,d=void 0===l?Ni:l,f=e.onSubmit,p=e.secretKey,g=t.useAuthorization({onError:function(e,n){e===t.AuthAction.VERIFY_TOTP_TOKEN&&"EnableSoftwareTokenMFAException"===n.code&&"Code mismatch"===n.message&&j(k.codeMatchError)}}),m=g.emailAddress,h=g.requestStatuses,v=n.useRef(),x=H(n.useState(""),2),b=x[0],y=x[1],E=H(n.useState(""),2),C=E[0],w=E[1],S=H(n.useState(),2),A=S[0],j=S[1],I=n.useMemo((function(){return"loading"===h[t.AuthAction.SET_MFA_TYPE]||"loading"===h[t.AuthAction.VERIFY_TOTP_TOKEN]}),[h[t.AuthAction.SET_MFA_TYPE],h[t.AuthAction.VERIFY_TOTP_TOKEN]]),k=n.useMemo((function(){return B(B({},Ni),d)}),[d]),O=n.useMemo((function(){return encodeURI("otpauth://totp/WJEC Portal:".concat(m,"?secret=").concat(p,"&issuer=WJEC Portal"))}),[m,p]);n.useEffect((function(){v.current.querySelector("input").focus()}),[]);var M=function(){var e=T(q().mark((function e(n){return q().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.preventDefault(),I){e.next=13;break}if(j(void 0),!/^\d{6}$/.test(b)){e.next=12;break}return s.isCallableFunction(f)&&f(b,C),e.next=8,t.verifyTotp(b);case 8:e.sent&&t.setMfaType(t.MFAType.TOTP),e.next=13;break;case 12:j(k.codeFormatError);case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),R=i.useWjecOneThemeStyles(Hi),P=n.useMemo((function(){var e;return null==p||null===(e=p.match(/.{1,4}/g))||void 0===e?void 0:e.map((function(e,t,o){return r.jsx(n.Fragment,{key:e},e,t<o.length-1&&r.jsx("span",{css:R.secretKeySpacer}))}))}),[p]);return r.jsx("form",{css:R.form,id:"TOTPMfaSetupForm",onSubmit:M,ref:v},r.jsx(o.SectionTitle,null,k.title),r.jsx("ol",{css:R.steps},r.jsx(Jo,{step:1},k.stepOneDescription),r.jsx(Jo,{step:2},k.stepTwoDescription,r.jsx("section",{css:R.qrCodeContainer},r.jsx(u.QRCodeSVG,{css:R.qrCode,id:"QRCode",size:156,value:O}),r.jsx("div",{css:R.secretKeyContainer},r.jsx("h5",{css:R.secretKeyTitle},k.cantScan),k.cantScanHint,r.jsx("code",{css:R.secretKey,id:"SecretKeyDisplay"},P)))),r.jsx(Jo,{step:3},k.stepThreeDescription,r.jsx("fieldset",{css:R.inputFields},r.jsx(o.Input,{autoComplete:"one-time-code",disabled:I,id:"OTPCodeInput",label:k.codeLabel,maxCharacters:6,onChange:y,placeholder:k.codePlaceholder,status:A?"error":void 0,statusMessage:A,value:b,width:"160px"}),c&&r.jsx(o.Input,{disabled:I,id:"DeviceNameInput",label:k.deviceNameLabel,onChange:w,value:C,width:"75%"}))),r.jsx(Jo,{step:4},k.stepFourDescription,r.jsx(o.PrimaryButton,{buttonType:"submit",disabled:!b,id:"SubmitCodeButton",label:k.submitCode,loading:I}))))},e.TotpMfaUpdate=function(e){var a=e.i18n,c=void 0===a?Xi:a,l=e.onNewAppSetup,u=e.onSubmit,d=n.useMemo((function(){return B(B({},Xi),c)}),[c]),f=t.useAuthorization({}).requestStatuses,p=n.useMemo((function(){return"loading"===f[t.AuthAction.REQUEST_TOTP_TOKEN]||"loading"===f[t.AuthAction.SET_MFA_TYPE]}),[f[t.AuthAction.REQUEST_TOTP_TOKEN],f[t.AuthAction.SET_MFA_TYPE]]),g=i.useWjecOneThemeStyles(Yi);return r.jsx("div",{css:g.container},r.jsx(o.SectionTitle,null,d.title),r.jsx("ol",{css:g.steps},r.jsx(Jo,{step:1},d.stepOneDescription,r.jsx(o.SecondaryButton,{label:d.newAppSetup,loading:p,onPress:function(){s.isCallableFunction(l)&&l(),t.setupTotp()}})),r.jsx(Jo,{step:2},d.stepTwoDescription,r.jsx(o.PrimaryButton,{label:d.useExistingTotpConfiguration,loading:p,onPress:function(){p||(s.isCallableFunction(u)&&u(),t.setMfaType(t.MFAType.TOTP))}}))))},e.UserMenu=function(e){var a=e.actions,c=e.centreNumber,l=e.currentPage,u=e.i18n,d=e.onChangeCentreNumber,f=e.onClose,p=e.onOpen,g=e.onPressSignIn,m=e.onPressSignOut,h=e.onPressUserProfile,v=e.open,x=void 0!==v&&v,b=e.profileHref,y=e.signInHref,E=H(i.useWjecOneTheme(),1)[0].colorPalette,C=t.useAuthorization(),w=C.emailAddress,S=C.centrePermissions,A=C.familyName,j=C.name,I=C.givenName,k=C.groups,O=C.isSignedIn,M=C.requestStatuses,R=H(n.useState(c||""),2),T=R[0],P=R[1],Z=H(n.useState(!1),2),F=Z[0],L=Z[1],N=H(n.useState(x),2),_=N[0],D=N[1],W=n.useMemo((function(){return Object.keys(S)}),[S]),G=n.useMemo((function(){return k.includes("WJEC_EMPLOYEES")}),[k]),V=n.useMemo((function(){return"loading"===M[t.AuthAction.SIGN_IN]||"loading"===M[t.AuthAction.SIGN_OUT]}),[M[t.AuthAction.SIGN_IN],M[t.AuthAction.SIGN_OUT]]),z=n.useMemo((function(){return A||I?"".concat(I||""," ").concat(A||"").trim():j}),[A,j,I]),X=n.useMemo((function(){return G||W.length>1}),[W,G]),U=n.useMemo((function(){return B(B({},Ca),u)}),[u]);n.useEffect((function(){c!==T&&P(c)}),[c]),n.useEffect((function(){x!==_&&D(x)}),[x]),n.useEffect((function(){"done"===M[t.AuthAction.SIGN_OUT]&&Y()}),[M[t.AuthAction.SIGN_OUT]]);var Y=function(){L(!1),D(!1),s.isCallableFunction(f)&&f()},J=function(e){s.isCallableFunction(d)&&d(e)},q=n.useMemo((function(){return O?sa:Ei}),[O]),Q=i.useWjecOneThemeStyles(Ra),K=n.useMemo((function(){return r.jsx("div",{css:Q.toggleContainer},r.jsx(o.Button,{color:"transparent",icon:xa,labelColor:E.fontLight},O?r.jsx(n.Fragment,null,c&&r.jsx("span",{css:Q.centreNumber},c),r.jsx("span",{css:Q.toggleLabel},z)):U.signIn))}),[c,O,z]);return r.jsx(o.Popup,{attachment:"floating",onHide:Y,onShow:function(){D(!0),s.isCallableFunction(p)&&p(),P(c)},open:_,padding:"16px",placement:"bottom-end",toggle:K,maxWidth:"350px"},r.jsx("div",{css:Q.container},r.jsx("a",{css:Q.userAction,href:O?b:y,onClick:function(){O?s.isCallableFunction(h)&&h():s.isCallableFunction(g)&&g()}},r.jsx(Ea,{css:Q.userIcon}),r.jsx("div",{css:Q.userDetails},U.welcome,r.jsx("span",{css:Q.username},O?z||w:U.signIn),O&&c&&r.jsx("span",{css:Q.currentCentre},r.jsx(Ki,{css:Q.icon}),c)),r.jsx(q,{css:Q.userActionIcon})),O&&r.jsx(n.Fragment,null,X&&r.jsx("form",{css:Q.centreNumberForm,onSubmit:function(e){e.preventDefault(),/^\d{5}$/.test(T)?(L(!1),J(T)):L(!0)}},G&&r.jsx(n.Fragment,null,r.jsx(o.Input,{inputMode:"numeric",maxCharacters:5,onChange:P,placeholder:U.centreNumber,status:F?"error":void 0,statusMessage:U.selectCentreError,value:T}),r.jsx(o.PrimaryButton,{buttonType:"submit",icon:Ei}),r.jsx(o.IconButton,{icon:function(){return r.jsx(Ki,{css:Q.clearCentreIcon})},onPress:function(){P(""),L(!1),J("")}})),!G&&W.length>1&&r.jsx(o.Select,{label:U.changeCentre,onSelect:J,options:W,placeholder:U.changeCentrePlaceholder,selectedOption:c})),r.jsx(ut,{margin:"16px 0"}),r.jsx("ul",{css:Q.accountActions},l&&r.jsx("li",null,r.jsx(pa,{css:Q.accountActionsIcon}),U.addPageToFavourites.replace("{currentPage}",l)),(null==a?void 0:a.length)>0&&r.jsx(n.Fragment,null,a.map((function(e){var n=e.icon,t=e.id,o=e.label,i=e.onPress;return r.jsx("li",{id:t,key:t,onClick:i},n&&r.jsx(n,{css:Q.accountActionsIcon}),o)}))),r.jsx("li",{onClick:function(){s.isCallableFunction(m)&&m(),t.signOut()}},r.jsx(ra,{css:Q.accountActionsIcon}),U.signOut))),V&&r.jsx("div",{css:Q.loadingOverlay},r.jsx(o.CircularProgress,null))))},e.getAccountType=w,e.getNavigationPermissions=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.state.groups,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w(e),o=n.filter((function(n){return n.startsWith(e)})).map((function(n){return n.substring("".concat(e,":").length)}));return r!==p.SECONDARY||o.includes("NO_ACCESS")?[]:o.length>0?Object.freeze(o):C},e.useAccountType=function(e){var r=t.useAuthorization(),o=r.centrePermissions,i=r.groups,a=r.isSignedIn;return n.useMemo((function(){return a?h(e,o,i):void 0}),[e,o,i,a])},e.useNavigationPermissions=function(e){var r=t.useAuthorization(),o=r.groups,i=r.isSignedIn,a=x(e);return n.useMemo((function(){return i?v(e,o,a):[]}),[a,e,o,i])}}));
|