wjec-one 4.0.21 → 4.1.0
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/README.md +71 -99
- package/auth/index.d.ts +183 -183
- package/auth/index.js +1 -3
- package/config/babel.config.js +3 -11
- package/config/eslint-config.js +3 -3
- package/config/utils.js +19 -7
- package/config/webpack.config.js +19 -3
- package/index.d.ts +1690 -1665
- package/index.js +44 -1
- package/layout/index.d.ts +55 -55
- package/layout/index.js +1 -1
- package/localization/index.d.ts +35 -37
- package/localization/index.js +1 -1
- package/package.json +25 -28
- package/portal/index.d.ts +264 -248
- package/portal/index.js +9 -3
- package/scripts/test.js +0 -1
- package/services/index.d.ts +102 -102
- package/services/index.js +1 -3
- package/store/index.d.ts +61 -61
- package/store/index.js +1 -1
- package/store/utils/index.d.ts +1 -1
- package/store/utils/index.js +1 -1
- package/test/setupTests.ts +1 -1
- package/test/setupTestsAfterEnv.ts +15 -0
- package/theme/index.d.ts +427 -79
- package/theme/index.js +1 -1
- package/umd/auth/index.js +1 -3
- package/umd/index.js +44 -1
- package/umd/layout/index.js +1 -1
- package/umd/localization/index.js +1 -1
- package/umd/portal/index.js +9 -3
- package/umd/services/index.js +1 -3
- package/umd/store/index.js +1 -1
- package/umd/store/utils/index.js +1 -1
- package/umd/theme/index.js +1 -1
- package/umd/utils/index.js +1 -3
- package/utils/index.d.ts +150 -140
- package/utils/index.js +1 -3
- package/wjec-one-project.d.ts +1 -0
package/umd/portal/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
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}({}),m=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}({}),h=Object.freeze([m.SECONDARY_SECURE_RESOURCES]),g=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]:g(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):h},x=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.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 y,b,E,w=Object.freeze([m.SECONDARY_SECURE_RESOURCES]),S=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 C(){return C=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},C.apply(null,arguments)}var A,j=function(e,n){return f.createElement("svg",C({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},y||(y=f.createElement("path",{fill:"#fff",d:"M0 0h1440v144H0z"}))),b||(b=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"})))))},k=n.forwardRef(j),O=function(e){var n=e.colorPalette;return{divider:r.css("border-radius:",o.StylePalette.borderRadius,";background-color:",n.primaryLight,";height:4px;width:100%;")}};function M(e,n){this.v=e,this.k=n}function R(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 T(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 I(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(e){T(i,r,o,a,s,"next",e)}function s(e){T(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 F(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 L(){return L=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},L.apply(null,arguments)}function _(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 Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){F(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function D(){
|
|
2
|
-
|
|
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])}}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("wjec-one/auth"),require("@emotion/core"),require("wjec-one"),require("wjec-one/theme"),require("wjec-one/utils"),require("wjec-one/localization"),require("wjec-one/store"),require("qrcode.react")):"function"==typeof define&&define.amd?define(["exports","react","wjec-one/auth","@emotion/core","wjec-one","wjec-one/theme","wjec-one/utils","wjec-one/localization","wjec-one/store","qrcode.react"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).WJECOnePortal={},e.React,e.WJECOneAuth,e.emotionCore,e.WJECOne,e.WJECOneTheme,e.WJECOneUtils,e.WJECOneLocalization,e.WJECOneStore,e.qrcode.react)}(this,function(e,t,n,r,o,a,s,i,c,l){"use strict";function u(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var d=u(t);let 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}({});const m=Object.freeze([g.SECONDARY_SECURE_RESOURCES]),h=(e,t=n.state.centrePermissions,r=n.state.groups)=>{let o;return r.includes("WJEC_EMPLOYEES")?o=p.WJEC_EMPLOYEE:r.includes("APPOINTEES")?o=p.APPOINTEE:e&&(o=t[e]),o},f=(e,t=n.state.groups,r=h(e))=>{const o=t.filter(t=>t.startsWith(e)).map(t=>t.substring(`${e}:`.length));return r!==p.SECONDARY||o.includes("NO_ACCESS")?[]:o.length>0?Object.freeze(o):m},v=e=>{const{centrePermissions:r,groups:o,isSignedIn:a}=n.useAuthorization();return t.useMemo(()=>a?h(e,r,o):void 0,[e,r,o,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={}));const x=Object.freeze([g.SECONDARY_SECURE_RESOURCES]),E=(e,t=n.state.centrePermissions,r=n.state.groups)=>{let o;return r.includes("WJEC_EMPLOYEES")?o=p.WJEC_EMPLOYEE:r.includes("APPOINTEES")?o=p.APPOINTEE:e&&(o=t[e]),o};var y,b,C;function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(null,arguments)}var S=function(e,t){return d.createElement("svg",w({viewBox:"0 0 1440 4",fill:"none",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),d.createElement("g",{clipPath:"url(#a)"},d.createElement("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:1440,height:144},y||(y=d.createElement("path",{fill:"#fff",d:"M0 0h1440v144H0z"}))),b||(b=d.createElement("g",{mask:"url(#b)"},d.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"}),d.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"}),d.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"}),d.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"})))),C||(C=d.createElement("defs",null,d.createElement("clipPath",{id:"a"},d.createElement("rect",{width:1440,height:4,rx:2,fill:"#fff"})))))},A=t.forwardRef(S);const j=({colorPalette:e})=>({divider:r.css("border-radius:",o.StylePalette.borderRadius,";background-color:",e.primaryLight,";height:4px;width:100%;")});var M;function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(null,arguments)}var O,R,T,I=function(e,t){return d.createElement("svg",k({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),M||(M=d.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"})))},P=t.forwardRef(I);function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L.apply(null,arguments)}var F=function(e,t){return d.createElement("svg",L({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),O||(O=d.createElement("path",{d:"M9.167 15h1.666v-1.667H9.167V15Z",fill:"currentColor"})),R||(R=d.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"})),T||(T=d.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"})))},_=t.forwardRef(F);var Z={name:"1ffk778",styles:"font-size:12px;font-weight:400;line-height:135%;margin:5px 0 0;"},N={name:"r6ddtx",styles:"&:not(:last-child){margin-bottom:5px;}"},B={name:"6ewv58",styles:"font-size:16px;font-weight:600;line-height:150%;margin:0;"};const W=({colorPalette:e})=>({applicationVersion:r.css("border-top:1px solid ",e.border,";font-size:12px;margin-top:10px;padding-top:10px;"),helpMessage:Z,icon:r.css("color:",e.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:",e.neutral,";& > svg{color:",e.secondary,";}}"),linkIcon:r.css("color:",e.fontLight,";margin-right:10px;transition:color 100ms linear;width:20px;"),option:N,options:r.css("border-top:1px solid ",e.border,";list-style:none;margin:10px 0 0;min-width:200px;padding:10px 0 0;"),title:B});var D,z,V,G,U;function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y.apply(null,arguments)}var H,X,J,q,$,Q=function(e,t){return d.createElement("svg",Y({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),D||(D=d.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"})),z||(z=d.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"})),V||(V=d.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"})),G||(G=d.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"})),U||(U=d.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"})))},K=t.forwardRef(Q);function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ee.apply(null,arguments)}var te,ne=function(e,t){return d.createElement("svg",ee({viewBox:"0 0 298 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),H||(H=d.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"})),X||(X=d.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"})),J||(J=d.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"})),q||(q=d.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"})),$||($=d.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"})))},re=t.forwardRef(ne),oe=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",primary:"#007DB2",primaryDark:"#00628C",primaryDarkActive:"#004766",primaryLight:"#E5F8FF",primaryLightActive:"#CCF1FF",primaryLightest:"#E5F7FF",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"});function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ae.apply(null,arguments)}var se=function(e,t){return d.createElement("svg",ae({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),te||(te=d.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"})))},ie=t.forwardRef(se);function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(null,arguments)}const le={name:"1bhjuxx",styles:"box-sizing:border-box;&::after,&::before,& *,& *::after,& *::before{box-sizing:inherit;}"};oe.highlight;const ue={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"};var de={name:"8zn5ov",styles:"align-items:center;display:flex;margin:0 auto;width:100%;"},pe={name:"eeoqsk",styles:"height:25px;margin-right:10px;"};const ge=({colorPalette:e})=>({container:de,copyright:r.css("border-left:1px solid ",e.border,";color:",e.fontLight,";font-size:12px;padding-left:10px;"),footer:r.css(le,";align-items:center;display:flex;justify-content:flex-start;padding:24px 30px 22px;width:100%;"),logo:pe});var me;function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},he.apply(null,arguments)}var fe=function(e,t){return d.createElement("svg",he({viewBox:"0 0 89 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),me||(me=d.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"})))},ve=t.forwardRef(fe);var xe={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;}"},Ee={name:"1q99sw",styles:"border-bottom-color:#fff;"},ye={name:"u1jr60",styles:"height:40px;"},be={name:"1455w9v",styles:"align-items:center;display:flex;flex:1;gap:24px;max-width:100%;min-width:175px;overflow:hidden;position:relative;"},Ce={name:"1v1z1e",styles:"grid-column:1;justify-content:flex-start;justify-self:start;"},we={name:"njo7am",styles:"gap:16px;grid-column:3;justify-content:flex-end;justify-self:end;"};const Se=({colorPalette:e})=>({container:xe,header:r.css(le,";background-color:#fff;border-bottom:1px solid ",e.border,";padding:8px 16px;position:sticky;top:0;width:100%;z-index:1;"),headerNoBorder:Ee,homeLink:r.css("cursor:pointer;:hover > svg{color:",e.font,";}"),logo:ye,logoContainer:r.css("border-left:1px solid ",e.border,";min-height:40px;padding-left:24px;"),menuContainer:be,menuContainerLeft:Ce,menuContainerRight:we,title:r.css(ue,";align-items:center;color:",e.fontLight,";display:inline-flex;font-size:18px;font-weight:400;line-height:32px;margin:0;max-width:100%;padding:5px 10px;")});var Ae;function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},je.apply(null,arguments)}var Me=function(e,t){return d.createElement("svg",je({viewBox:"0 0 89 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ae||(Ae=d.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"})))},ke=t.forwardRef(Me);const Oe=({id:e,logo:n,maxWidth:o=1280,menusLeft:i,menusRight:c,onPressPageTitle:l,pageTitleHref:u,pageTitle:d=r.jsx(ke,{style:{height:"16px"}})})=>{const[{brand:p}]=a.useWjecOneTheme(),g=t.useMemo(()=>{return e=n,s.isPlainObject(e)&&Object.hasOwn(e,"eduqas")&&Object.hasOwn(e,"wjec")?n[p]:n;var e},[p,n]),m=a.useWjecOneThemeStyles(_e);return r.jsx("header",{css:m.header,id:e},r.jsx("div",{css:r.css([m.container,{maxWidth:`${o}px`}])},r.jsx("section",{css:r.css([m.menuContainer,m.menuContainerLeft])},i),d&&(void 0!==l||u?r.jsx("a",{css:m.homeLink,href:u,id:e?`${e}_pageTitle`:void 0,onClick:l},r.jsx("h1",{css:m.title},d)):r.jsx("h1",{css:m.title},d)),r.jsx("section",{css:r.css([m.menuContainer,m.menuContainerRight])},c,g&&r.jsx("div",{css:m.logoContainer},r.jsx(g,{css:m.logo})))))};var Re={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;}"},Te={name:"1q99sw",styles:"border-bottom-color:#fff;"},Ie={name:"u1jr60",styles:"height:40px;"},Pe={name:"1455w9v",styles:"align-items:center;display:flex;flex:1;gap:24px;max-width:100%;min-width:175px;overflow:hidden;position:relative;"},Le={name:"1v1z1e",styles:"grid-column:1;justify-content:flex-start;justify-self:start;"},Fe={name:"njo7am",styles:"gap:16px;grid-column:3;justify-content:flex-end;justify-self:end;"};const _e=({colorPalette:e})=>({container:Re,header:r.css(le,";background-color:#fff;border-bottom:1px solid ",e.border,";padding:8px 16px;position:sticky;top:0;width:100%;z-index:1;"),headerNoBorder:Te,homeLink:r.css("cursor:pointer;:hover > svg{color:",e.font,";}"),logo:Ie,logoContainer:r.css("border-left:1px solid ",e.border,";min-height:40px;padding-left:24px;"),menuContainer:Pe,menuContainerLeft:Le,menuContainerRight:Fe,title:r.css(ue,";align-items:center;color:",e.fontLight,";display:inline-flex;font-size:18px;font-weight:400;line-height:32px;margin:0;max-width:100%;padding:5px 10px;")});var Ze,Ne,Be,We,De;function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ze.apply(null,arguments)}var Ve,Ge,Ue,Ye,He,Xe=function(e,t){return d.createElement("svg",ze({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ze||(Ze=d.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"})),Ne||(Ne=d.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"})),Be||(Be=d.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"})),We||(We=d.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"})),De||(De=d.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"})))},Je=t.forwardRef(Xe);function qe(){return qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qe.apply(null,arguments)}var $e=function(e,t){return d.createElement("svg",qe({viewBox:"0 0 298 154",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Ve||(Ve=d.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"})),Ge||(Ge=d.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"})),Ue||(Ue=d.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"})),Ye||(Ye=d.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"})),He||(He=d.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"})))},Qe=t.forwardRef($e);const Ke=({i18n:e={copyrightMessage:`Copyright WJEC CBAC Ltd ${(new Date).getFullYear()}`},logos:t=[Je,Qe],maxWidth:n=1280})=>{const o=a.useWjecOneThemeStyles(nt);return r.jsx("footer",{css:o.footer},r.jsx("div",{css:r.css([o.container,{maxWidth:`${n}px`}])},t.map((e,t)=>r.jsx(e,{key:`logo_${t}`,css:o.logo})),r.jsx("span",{css:o.copyright},e.copyrightMessage)))};var et={name:"8zn5ov",styles:"align-items:center;display:flex;margin:0 auto;width:100%;"},tt={name:"eeoqsk",styles:"height:25px;margin-right:10px;"};const nt=({colorPalette:e})=>({container:et,copyright:r.css("border-left:1px solid ",e.border,";color:",e.fontLight,";font-size:12px;padding-left:10px;"),footer:r.css(le,";align-items:center;display:flex;justify-content:flex-start;padding:24px 30px 22px;width:100%;"),logo:tt}),rt={content:{name:"nkc6ia",styles:"box-sizing:border-box;display:flex;flex:1;margin:0 auto;position:relative;width:100%;"},pageWrapper:r.css(le,";display:flex;flex-direction:column;height:100%;min-height:100vh;")};var ot={name:"v15t89",styles:"flex-shrink:0;width:24px;"},at={name:"bxntb3",styles:"display:flex;flex-direction:column;font-size:16px;gap:16px;line-height:14px;list-style:none;margin:0;padding:0;"};const st=({colorPalette:e})=>({icon:ot,locales:at,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:",e.neutral,";}")});let it=function(e){return e.FAVOURITES="favouritesGroup",e}({}),ct=function(e){return e.FAVOURITES="favouritesSection",e.SEARCH="searchSection",e}({});const lt=Object.freeze({"cy-gb":{[it.FAVOURITES]:"Fy Hoff Gymwysiadau",[ct.FAVOURITES]:"Fy Ffefrynnau",[ct.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",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":{[it.FAVOURITES]:"My Favourite Applications",[ct.FAVOURITES]:"My Favourites",[ct.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",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?"}});var ut,dt,pt;function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gt.apply(null,arguments)}var mt=function(e,t){return d.createElement("svg",gt({viewBox:"0 0 1440 4",fill:"none",preserveAspectRatio:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),d.createElement("g",{clipPath:"url(#a)"},d.createElement("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:1440,height:144},ut||(ut=d.createElement("path",{fill:"#fff",d:"M0 0h1440v144H0z"}))),dt||(dt=d.createElement("g",{mask:"url(#b)"},d.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"}),d.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"}),d.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"}),d.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"})))),pt||(pt=d.createElement("defs",null,d.createElement("clipPath",{id:"a"},d.createElement("rect",{width:1440,height:4,rx:2,fill:"#fff"})))))},ht=t.forwardRef(mt);const ft=({margin:e="20px 0"})=>{const t=a.useWjecOneThemeStyles(vt);return r.jsx(ht,{css:r.css([t.divider,{margin:e}]),height:"4px",width:"100%"})},vt=({colorPalette:e})=>({divider:r.css("border-radius:",o.StylePalette.borderRadius,";background-color:",e.primaryLight,";height:4px;width:100%;")});var xt,Et;function yt(){return yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yt.apply(null,arguments)}var bt,Ct,wt=function(e,t){return d.createElement("svg",yt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),xt||(xt=d.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"})),Et||(Et=d.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"})))},St=t.forwardRef(wt);function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},At.apply(null,arguments)}var jt,Mt,kt=function(e,t){return d.createElement("svg",At({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),bt||(bt=d.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"})),Ct||(Ct=d.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"})))},Ot=t.forwardRef(kt);function Rt(){return Rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rt.apply(null,arguments)}var Tt,It,Pt=function(e,t){return d.createElement("svg",Rt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),jt||(jt=d.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"})),Mt||(Mt=d.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"})))},Lt=t.forwardRef(Pt);function Ft(){return Ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ft.apply(null,arguments)}var _t,Zt,Nt=function(e,t){return d.createElement("svg",Ft({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Tt||(Tt=d.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"})),It||(It=d.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"})))},Bt=t.forwardRef(Nt);function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(null,arguments)}var Dt,zt,Vt=function(e,t){return d.createElement("svg",Wt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),_t||(_t=d.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"})),Zt||(Zt=d.createElement("path",{d:"M12 16v-4m0-4h.01",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Gt=t.forwardRef(Vt);function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ut.apply(null,arguments)}var Yt,Ht,Xt=function(e,t){return d.createElement("svg",Ut({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Dt||(Dt=d.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=d.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"})))},Jt=t.forwardRef(Xt);function qt(){return qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qt.apply(null,arguments)}var $t,Qt,Kt=function(e,t){return d.createElement("svg",qt({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Yt||(Yt=d.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"})),Ht||(Ht=d.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"})))},en=t.forwardRef(Kt);function tn(){return tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tn.apply(null,arguments)}var nn,rn,on=function(e,t){return d.createElement("svg",tn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),$t||($t=d.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"})),Qt||(Qt=d.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"})))},an=t.forwardRef(on);function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sn.apply(null,arguments)}var cn,ln=function(e,t){return d.createElement("svg",sn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),nn||(nn=d.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"})),rn||(rn=d.createElement("path",{d:"M17 21V3m2.5 0h-5m5 18h-5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},un=t.forwardRef(ln);function dn(){return dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dn.apply(null,arguments)}var pn=function(e,t){return d.createElement("svg",dn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),cn||(cn=d.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"})))},gn=t.forwardRef(pn),mn=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}(mn||{});const hn=s.debounce(e=>{s.dispatchAnalyticsEvent(mn.SEARCH,{searchTerm:e})},1e3);var fn;function vn(){return vn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vn.apply(null,arguments)}var xn,En=function(e,t){return d.createElement("svg",vn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),fn||(fn=d.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"})))},yn=t.forwardRef(En);function bn(){return bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bn.apply(null,arguments)}var Cn=function(e,t){return d.createElement("svg",bn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),xn||(xn=d.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"})))},wn=t.forwardRef(Cn);const Sn=({isFavourite:e,isSignedIn:n,link:i,onToggleFavourite:c,strings:l,togglingFavourites:u})=>{const[{colorPalette:d}]=a.useWjecOneTheme(),p=t.useMemo(()=>e?wn:yn,[e]),g=t.useMemo(()=>u.includes(i.linkId),[i,u]);return r.jsx("li",{css:An.categoryLink},r.jsx("a",{href:`https://${i.url}`,id:i.linkId,onClick:()=>{(({url:e})=>{s.dispatchAnalyticsEvent(mn.NAVIGATE,{url:e})})(i)}},i.linkName),n&&r.jsx("button",{css:An.toggleFavourite,onClick:()=>c(i),title:e?l.removeFromFavourites:l.addToFavourites,"data-is-favourite":e},g?r.jsx(o.CircularProgress,{color:d.neutralDark}):r.jsx(p,{"aria-hidden":!0,css:An.favouriteIcon})))},An={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;}'}},jn=({favourites:e,id:n,isSignedIn:o,label:a,links:s,name:i,onToggleFavourite:c,strings:l,togglingFavourites:u})=>{const d=t.useMemo(()=>a||(Object.hasOwn(l,i)?l[i]:i),[a,i,l]),p=t.useMemo(()=>s.sort(({linkName:e},{linkName:t})=>e.localeCompare(t)).map(t=>r.jsx(Sn,{isFavourite:e?.includes(t.linkId),isSignedIn:o,key:t.linkId,link:t,onToggleFavourite:c,strings:l,togglingFavourites:u})),[e,s,u]);return r.jsx("div",{css:Mn.category,id:n},r.jsx("h3",{css:Mn.categoryTitle},d),r.jsx("menu",{css:Mn.categoryLinks},p))},Mn={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;"}},kn=({favourites:e,idPrefix:n,isSignedIn:o,links:a={},onToggleFavourite:s,strings:i,togglingFavourites:c})=>{const l=t.useMemo(()=>e?.length>0?Object.values(a).reduce((t,{groups:n})=>[...t,...Object.values(n).map(({links:t})=>t.filter(({linkId:t})=>e.includes(t))).flat()],[]):[],[a,e]);return r.jsx(jn,{favourites:e,id:`${n}FavouriteLinks`,isSignedIn:o,links:l,name:it.FAVOURITES,onToggleFavourite:s,strings:i,togglingFavourites:c})};var On,Rn;function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tn.apply(null,arguments)}var In,Pn=function(e,t){return d.createElement("svg",Tn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),On||(On=d.createElement("path",{opacity:.4,d:"M16 11a5 5 0 0 0-5-5",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Rn||(Rn=d.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"})))},Ln=t.forwardRef(Pn);function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(null,arguments)}var _n=function(e,t){return d.createElement("svg",Fn({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),In||(In=d.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"})))},Zn=t.forwardRef(_n);const Nn=({favourites:e,idPrefix:n,isSignedIn:a,links:s={},onClear:i,onToggleFavourite:c,searchTerm:l,strings:u,togglingFavourites:d})=>{const p=t.useMemo(()=>{const e=new RegExp(`\\b${l}`,"i");return l?Object.values(s).reduce((t,{groups:n})=>[...t,...Object.values(n).map(({links:t})=>t.filter(({linkName:t})=>e.test(t))).flat()],[]):[]},[s,l]),g=t.useMemo(()=>u?.searchResults?.replace("{count}",p.length.toString())?.replace("{searchTerm}",l),[p,l]);return p.length>0?r.jsx(jn,{favourites:e,id:`${n}SearchResults`,isSignedIn:a,label:g,links:p,name:ct.SEARCH,onToggleFavourite:c,strings:u,togglingFavourites:d}):r.jsx("div",{css:Bn.noResults},r.jsx(Ln,{"aria-hidden":!0,css:Bn.noResultsIcon}),r.jsx("p",{css:Bn.noResultsMessage},r.jsx(o.Emphasis,null,u.noResultsTitle),u.noResultsMessage),r.jsx(o.PrimaryButton,{icon:Zn,id:`${n}ResetAllServicesSearch`,label:u.resetYourSearch,onPress:i}))},Bn={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;"}};var Wn,Dn;function zn(){return zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zn.apply(null,arguments)}var Vn,Gn=function(e,t){return d.createElement("svg",zn({viewBox:"0 0 1440 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),d.createElement("mask",{id:"a",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:1440,height:150},Wn||(Wn=d.createElement("path",{fill:"#fff",d:"M0 0h1440v150H0z"}))),Dn||(Dn=d.createElement("g",{mask:"url(#a)"},d.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"}),d.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"}),d.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"}),d.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"}))))},Un=t.forwardRef(Gn);function Yn(){return Yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yn.apply(null,arguments)}var Hn=function(e,t){return d.createElement("svg",Yn({viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Vn||(Vn=d.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"})))},Xn=t.forwardRef(Hn);const Jn=({id:e,onPressSignIn:t,strings:n})=>r.jsx("div",{css:qn.container,id:e},r.jsx(Un,{css:qn.headerShapes}),r.jsx(o.Emphasis,null,n.signinCardTitle),n.signinCardMessage,r.jsx(o.PrimaryButton,{icon:Xn,label:n.signIn,onPress:t})),qn={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%;"}},$n=({favourites:e,idPrefix:n,isSignedIn:o,links:a,onClearSearch:s,onPressSignIn:i,onToggleFavourite:c,searchTerm:l,selectedSection:u,strings:d,togglingFavourites:p})=>{const g=t.useMemo(()=>a?.[u]?.groups||[],[a,u]);return r.jsx("section",{css:Qn.linksContainer,id:`${n}LinksSection`},u===ct.SEARCH?r.jsx(Nn,{favourites:e,idPrefix:n,isSignedIn:o,links:a,onClear:s,onToggleFavourite:c,searchTerm:l,strings:d,togglingFavourites:p}):u===ct.FAVOURITES?r.jsx(kn,{favourites:e,idPrefix:n,isSignedIn:o,links:a,onToggleFavourite:c,strings:d,togglingFavourites:p}):r.jsx(t.Fragment,null,g.map(({groupName:t,links:a})=>r.jsx(jn,{favourites:e,id:`${n}Group_${t.replace(/\s/g,"")}`,isSignedIn:o,key:t,links:a,name:t,onToggleFavourite:c,strings:d,togglingFavourites:p})),!o&&r.jsx(Jn,{id:`${n}SigninCard`,onPressSignIn:i,strings:d})))},Qn={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;}")},Kn=({id:e,isLoading:t,onClose:n,onConfirm:a,strings:s})=>r.jsx(o.Modal,{actionButton:s.removeFavouriteConfirmation,actionLoading:t,actionType:"negative",cancelButton:s.cancel,closeOnCancel:!t,closeOnClickOutside:!t,id:e,maxWidth:"400px",onAction:a,onClose:n,open:!0,showCloseIcon:!1},s.removeFavouriteConfirmationMessage),er=({id:e,isLowlighted:t,isSelected:n,onSelect:o,section:a})=>{const{icon:s,name:i}=a;return r.jsx("li",{css:r.css([tr.section,t&&tr.sectionLowlight,n&&tr.sectionSelected]),id:e,onClick:()=>o(a),key:i},r.jsx(s,{css:tr.sectionIcon})," ",i)},tr={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);}"}};var nr;function rr(){return rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rr.apply(null,arguments)}var or=function(e,t){return d.createElement("svg",rr({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),nr||(nr=d.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"})))},ar=t.forwardRef(or);const sr=({idPrefix:e,isSignedIn:n,links:o={},onSelect:a,selectedSection:s,strings:i})=>{const c=t=>`${e}:${t}`,l=t.useMemo(()=>Object.keys(o),[o]);return r.jsx("menu",{css:ir.sections,id:`${e}SectionsMenu`},s===ct.SEARCH&&r.jsx(er,{id:c("searchResults"),isSelected:!0,onSelect:()=>a(ct.SEARCH),section:{icon:ar,name:i[ct.SEARCH]}}),l.map(e=>{const t=(e=>{switch(e){case"duocolour_building-05":return St;case"duocolour_clipboard-attachment":return Ot;case"duocolour_clipboard-check":return Lt;case"duocolour_file-search-01":return Bt;case"duocolour_info-circle":return Gt;case"duocolour_lock-04":return Jt;case"duocolour_presentation-chart-02":return en;case"duocolour_settings-01":return an;case"duocolour_text-input":return un;default:return gn}})(o[e].sectionIcon),n=Object.hasOwn(i,e)?i[e]:e;return r.jsx(er,{id:c(o[e].sectionId),isLowlighted:s===ct.SEARCH,isSelected:s===e,key:e,onSelect:()=>a(e),section:{icon:t,name:n}})}),n&&r.jsx(er,{id:c("myFavourites"),isLowlighted:s===ct.SEARCH,isSelected:s===ct.FAVOURITES,onSelect:()=>a(ct.FAVOURITES),section:{icon:yn,name:i[ct.FAVOURITES]}}))},ir={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;")},cr=(e=0,t=1)=>{const n=Math.ceil(e),r=Math.floor(t);return Math.floor(Math.random()*(r-n+1))+n},lr=({height:e="100%",margin:t="0",padding:n="0",width:o="100%"})=>{const s=a.useWjecOneThemeStyles(ur);return r.jsx("div",{css:r.css([s.skeletonBlock,{height:e,margin:t,padding:n,width:o}])})},ur=({colorPalette:e})=>({skeletonBlock:r.css("animation:",dr," 1500ms infinite linear;background-color:",e.neutral,";background-image:linear-gradient(110deg,#ececec 10%,#f5f5f5 20%,#ececec 35%);background-size:200% 100%;border-radius:",o.StylePalette.borderRadius,";")}),dr=r.keyframes`
|
|
2
|
+
to {
|
|
3
|
+
background-position-x: -200%;
|
|
4
|
+
}
|
|
5
|
+
`,pr=()=>{const e=a.useWjecOneThemeStyles(hr),n=t.useMemo(()=>[...Array(cr(4,8))].map(()=>cr(75,350)),[]),o=t.useMemo(()=>[...Array(cr(3,6))].map((e,t)=>t),[]);return r.jsx("div",{css:e.container},r.jsx("div",{css:e.leftPanel},o.map(e=>r.jsx(lr,{key:e,height:"40px",margin:"0 0 8px"}))),r.jsx("div",{css:e.rightPanel},n.map((t,n)=>r.jsx("div",{key:n,css:e.group},r.jsx(lr,{height:"25px",margin:"0 0 16px",width:"33%"}),r.jsx(lr,{height:`${t}px`})))))};var gr={name:"mkgnve",styles:"display:flex;height:100%;width:100%;"},mr={name:"a0ijs6",styles:"break-inside:avoid;margin-bottom:50px;min-width:220px;"};const hr=({colorPalette:e})=>({container:gr,group:mr,leftPanel:r.css("border-right:1px solid ",e.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;}")}),fr=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"});let vr=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}({});const xr=c.createSimpleAction(vr.SET_CURRENT_CHALLENGE),Er=c.createSimpleAction(vr.SET_CURRENT_MODE),yr=c.createSimpleAction(vr.SET_EMAIL_ADDRESS),br=c.createSimpleAction(vr.SET_ERROR_TYPE),Cr=c.createSimpleAction(vr.SET_LOCALIZATION_STRINGS),wr=c.createSimpleAction(vr.SET_PASSWORD),Sr=c.createSimpleAction(vr.SET_USERNAME),Ar=c.createSimpleAction(vr.SET_USERNAME_ICON),jr=c.createSimpleAction(vr.SET_USE_EMAIL_ADDRESS_AS_USERNAME),Mr=(e,{payload:t,type:n})=>{switch(n){case vr.SET_CURRENT_CHALLENGE:return Object.freeze({...e,currentChallenge:t});case vr.SET_CURRENT_MODE:return Object.freeze({...e,currentMode:t});case vr.SET_EMAIL_ADDRESS:return e.useEmailAddressAsUsername?Object.freeze({...e,emailAddress:t,username:t}):Object.freeze({...e,emailAddress:t});case vr.SET_ERROR_TYPE:return Object.freeze({...e,errorType:t});case vr.SET_LOCALIZATION_STRINGS:return Object.freeze({...e,i18n:t});case vr.SET_PASSWORD:return Object.freeze({...e,password:t});case vr.SET_USE_EMAIL_ADDRESS_AS_USERNAME:return Object.freeze({...e,useEmailAddressAsUsername:t});case vr.SET_USERNAME:return e.useEmailAddressAsUsername?Object.freeze({...e,emailAddress:t,username:t}):Object.freeze({...e,username:t});case vr.SET_USERNAME_ICON:return Object.freeze({...e,usernameIcon:t});default:return e}};var kr;function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Or.apply(null,arguments)}var Rr=function(e,t){return d.createElement("svg",Or({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),kr||(kr=d.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"})))},Tr=t.forwardRef(Rr);const Ir=Object.freeze({currentChallenge:void 0,currentMode:"signIn",emailAddress:void 0,errorType:void 0,i18n:fr,password:void 0,useEmailAddressAsUsername:!1,username:void 0,usernameIcon:Tr}),Pr=t.createContext([Ir,void 0]),Lr=({children:e,...n})=>{const[o,a]=t.useReducer(Mr,Ir,e=>((e,t)=>{const n={...e};return Object.entries(t).forEach(([e,t])=>{void 0!==t&&(n[e]=t)}),Object.freeze(n)})(e,n));return r.jsx(Pr.Provider,{value:[o,a]},e)},Fr=()=>t.useContext(Pr),_r=(e,n=e=>e.querySelector("input"))=>{t.useEffect(()=>{n(e.current).focus()},[])},Zr=(e,r)=>{const{requestStatuses:o}=n.useAuthorization(),a=t.useMemo(()=>Array.isArray(r)?r:[r],[r]),[s,i]=t.useState(!1);return t.useEffect(()=>{let t=!0;return s&&e().finally(()=>{t&&i(!1)}),()=>{t=!1}},[s]),{callSigninFormAction:()=>i(!0),loading:s||a.some(e=>"loading"===o[e])}},Nr={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;}"}};var Br;function Wr(){return Wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wr.apply(null,arguments)}var Dr=function(e,t){return d.createElement("svg",Wr({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Br||(Br=d.createElement("path",{d:"M5 12h14m0 0-7-7m7 7-7 7",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},zr=t.forwardRef(Dr);const Vr=({passwordValidator:e=()=>!0})=>{const{requestStatuses:a}=n.useAuthorization(),[{currentChallenge:s,errorType:i,i18n:c}]=Fr(),[l,u]=t.useState(),[d,p]=t.useState(""),g=t.useRef(void 0);_r(g);const m=t.useMemo(()=>"loading"===a[n.AuthAction.FORCE_CHANGE_PASSWORD]||"loading"===a[n.AuthAction.GET_USER_PREFERENCES],[a[n.AuthAction.FORCE_CHANGE_PASSWORD],a[n.AuthAction.GET_USER_PREFERENCES]]),h=t.useMemo(()=>void 0!==l||i===n.AuthAction.FORCE_CHANGE_PASSWORD?"error":void 0,[l,i]);return r.jsx("form",{css:Nr.form,id:"NewPasswordForm",onSubmit:t=>{if(t.preventDefault(),s.challengeType===n.ChallengeType.NEW_PASSWORD_REQUIRED&&!m){const t=!!d,n=e(d);t?n||u(c.passwordValidationError):u(c.passwordMissingError),t&&n&&(u(void 0),s.completeChallenge(d))}},ref:g},r.jsx(o.Password,{description:c.passwordHint,disabled:m,id:"NewPasswordInput",label:c.newPasswordLabel,onChange:p,status:h,statusMessage:l,value:d}),r.jsx("fieldset",{css:Nr.formControls},r.jsx(o.PrimaryButton,{buttonType:"submit",icon:zr,iconPosition:"right",id:"NewPasswordButton",label:c.submitPassword,loading:m,size:"small"})))},Gr=({onCancel:e,onSubmitRequestCode:i})=>{const{requestStatuses:c}=n.useAuthorization(),[{currentMode:l,errorType:u,i18n:d,useEmailAddressAsUsername:p,username:g},m]=Fr(),h=t.useRef(void 0);_r(h);const[f,v]=t.useState(!1),x=t.useMemo(()=>"loading"===c[n.AuthAction.REQUEST_PASSWORD_RESET],[c[n.AuthAction.REQUEST_PASSWORD_RESET]]),E=t.useMemo(()=>f||u===n.AuthAction.REQUEST_PASSWORD_RESET?"error":void 0,[u,f]),y=a.useWjecOneThemeStyles(Ur);return r.jsx("form",{css:Nr.form,id:"RequestPasswordResetForm",onSubmit:async e=>{if(e.preventDefault(),!x)if(g){v(!1),s.isCallableFunction(i)&&i(g);await n.requestPasswordReset(g)&&m(Er("forgotPasswordSubmitCode"))}else v(!0)},ref:h},r.jsx("fieldset",{css:Nr.fieldsSection},r.jsx(o.Input,{autoComplete:p?"email":"username",disabled:x,icon:Tr,id:p?"EmailInput":"UsernameInput",label:d.usernameLabel,onChange:e=>{m(yr(e))},placeholder:d.usernamePlaceholder,status:E,statusMessage:f&&!g&&d.usernameMissingError,value:g}),r.jsx("a",{css:y.haveCode,id:"HaveCodeLink",onClick:()=>{m(Er("forgotPasswordSubmitCode"))}},d.haveCode)),r.jsx("fieldset",{css:Nr.formControls},r.jsx(o.Button,{disabled:x,id:"CancelButton",label:d.cancel,onPress:()=>{s.isCallableFunction(e)&&e(l),m(Er("signIn"))},size:"small"}),r.jsx(o.PrimaryButton,{buttonType:"submit",icon:zr,iconPosition:"right",id:"SendReminderButton",label:d.sendReminder,loading:x,size:"small"})))},Ur=({colorPalette:e})=>({haveCode:r.css("align-self:flex-end;color:",e.secondaryDark,";cursor:pointer;display:inline-block;font-size:16px;font-weight:400;line-height:24px;margin-top:10px;")}),Yr=({onCancel:e,onSubmitNewPassword:a,passwordValidator:i=()=>!0})=>{const{requestStatuses:c}=n.useAuthorization(),[{currentMode:l,errorType:u,i18n:d,useEmailAddressAsUsername:p,username:g,usernameIcon:m},h]=Fr(),f=t.useRef(void 0);_r(f);const[v,x]=t.useState(""),[E,y]=t.useState(""),[b,C]=t.useState(""),[w,S]=t.useState(""),[A,j]=t.useState(""),M=t.useMemo(()=>"loading"===c[n.AuthAction.COMPLETE_PASSWORD_RESET],[c[n.AuthAction.COMPLETE_PASSWORD_RESET]]),k=t.useMemo(()=>u===n.AuthAction.COMPLETE_PASSWORD_RESET?"error":void 0,[u]),O=()=>{const e=""!==v,t=""!==b,n=i(b),r=""!==g;return y(e?"":"codeMissing"),j(r?"":d.usernameMissingError),t?n||S("passwordValidationError"):S("passwordMissingError"),e&&t&&n&&r},R=t.useMemo(()=>"codeMissing"===E?d.codeMissingError:"",[d,E]),T=t.useMemo(()=>{switch(w){case"passwordMissingError":return d.passwordMissingError;case"passwordValidationError":return d.passwordValidationError;default:return""}},[w,d]);return r.jsx("form",{css:Nr.form,id:"NewPasswordForm",onSubmit:async e=>{if(e.preventDefault(),!M){if(O()){y(""),S(""),j(""),s.isCallableFunction(a)&&a(b,v);await n.completePasswordReset(g,v,b)&&h(Er("signIn"))}}},ref:f},r.jsx(o.Input,{autoComplete:p?"email":"username",disabled:M,icon:m,id:p?"EmailInput":"UsernameInput",label:d.usernameLabel,onChange:e=>{h(Sr(e))},placeholder:d.usernamePlaceholder,status:k||(A?"error":void 0),statusMessage:A,value:g}),r.jsx(o.VerificationCodeInput,{description:d.codeDescription,disabled:M,id:"CodeInput",label:d.codeLabel,onChange:x,placeholder:d.codePlaceholder,status:k||(E?"error":void 0),statusMessage:R}),r.jsx(o.Password,{description:d.passwordHint,disabled:M,id:"NewPasswordInput",label:d.newPasswordLabel,onChange:C,status:k||(w?"error":void 0),statusMessage:T,value:b}),r.jsx("fieldset",{css:Nr.formControls},r.jsx(o.Button,{disabled:M,id:"CancelButton",label:d.cancel,onPress:()=>{s.isCallableFunction(e)&&e(l),h(Er("signIn"))},size:"small"}),r.jsx(o.PrimaryButton,{buttonType:"submit",icon:zr,iconPosition:"right",id:"NewPasswordButton",label:d.submitPassword,loading:M,size:"small"})))},Hr=Object.freeze(["cbac.co.uk","wjec.co.uk","eduqas.co.uk"]),Xr=Object.freeze(["wjec-appointees.co.uk"]),Jr=({onSignIn:e,onSubmitSignIn:i})=>{const[{errorType:c,i18n:l,password:u,useEmailAddressAsUsername:d,username:p,usernameIcon:g},m]=Fr(),h=t.useRef(void 0);_r(h);const[f,v]=t.useState(!1),[x,E]=t.useState(!1),y=t.useMemo(()=>p&&Hr.some(e=>p.toLocaleLowerCase().endsWith(e)),[p]),b=t.useMemo(()=>p&&Xr.some(e=>p.toLocaleLowerCase().endsWith(e)),[p]),{callSigninFormAction:C,loading:w}=Zr(async()=>{await n.signIn(p,u).then(()=>{s.isCallableFunction(e)&&e()})},[n.AuthAction.GET_USER_PREFERENCES,n.AuthAction.SIGN_IN]),S=t.useMemo(()=>"signIn"===c||f?"error":void 0,[c,f]);t.useEffect(()=>{v(!1)},[x]),t.useEffect(()=>{(y||b)&&E(!1)},[y,b]);const A=a.useWjecOneThemeStyles(qr);return r.jsx("form",{css:Nr.form,id:"SignInForm",onSubmit:e=>{e.preventDefault(),!w&&p?(v(!1),!p||y||b||(E(!0),p&&u?(v(!1),s.isCallableFunction(i)&&i(p,u),C()):v(!0)),y&&!b&&n.externalSignIn("AzureWJECMain"),!y&&b&&n.externalSignIn("AzureWJECOPP")):v(!0)},ref:h},r.jsx(o.Input,{autoComplete:d?"email":"username",disabled:w,icon:g,id:d?"EmailInput":"UsernameInput",label:l.usernameLabel,onChange:e=>{e||E(!1),m(Sr(e))},placeholder:l.usernamePlaceholder,status:S,statusMessage:f&&!p&&l.usernameMissingError,value:p}),x&&r.jsx("fieldset",{css:Nr.fieldsSection},r.jsx(o.Password,{disabled:w,id:"PasswordInput",label:l.passwordLabel,onChange:e=>{m(wr(e))},status:S,statusMessage:f&&!u&&l.passwordMissingError,value:u})),r.jsx(o.PrimaryButton,{buttonType:"submit",icon:zr,iconPosition:"right",id:"SignInButton",label:l.next,loading:w}),x&&r.jsx("a",{css:A.forgotPassword,id:"ForgotPasswordLink",onClick:()=>{m(Er("forgotPasswordRequestCode"))},"data-disabled":w},l.forgotPassword))},qr=({colorPalette:e})=>({appointeesSignin:r.css("border:none;border-top:2px solid ",e.border,";color:",e.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:",e.primaryDark,';cursor:pointer;display:inline-block;font-size:12px;font-weight:600;line-height:16px;&[data-disabled="true"]{opacity:0.5;pointer-events:none;}')}),$r=({mfaAttemptLimit:e,onCancel:i,showResendCode:c})=>{const[{currentChallenge:l,currentMode:u,i18n:d,password:p,username:g},m]=Fr(),h=t.useRef(void 0);_r(h);const[f,v]=t.useState(""),[x,E]=t.useState(),[y,b]=t.useState(),C=t.useMemo(()=>(l?.challengeType===n.ChallengeType.EMAIL_MFA||l?.challengeType===n.ChallengeType.SMS_MFA)&&c,[l?.challengeType,c]),w=t.useMemo(()=>{let t;if("object"==typeof e)switch(l?.challengeType){case n.ChallengeType.EMAIL_MFA:t=e[n.MFAType.EMAIL];break;case n.ChallengeType.SMS_MFA:t=e[n.MFAType.SMS];break;case n.ChallengeType.TOTP_MFA:t=e[n.MFAType.TOTP]}else t=e;return t},[l?.challengeType,e]),S=t.useMemo(()=>{switch(l?.challengeType){case n.ChallengeType.EMAIL_MFA:case n.ChallengeType.SMS_MFA:case n.ChallengeType.TOTP_MFA:return l.attemptNumber;default:return 1}},[l]),A=t.useMemo(()=>w&&S>w,[w,S]);t.useEffect(()=>{w&&S>1&&(E(S<w?"warning":"error"),b("mfaAttemptWarning"))},[w,S,d]);const{callSigninFormAction:j,loading:M}=Zr(async()=>{await l.completeChallenge(f)},[n.AuthAction.GET_USER_PREFERENCES,n.AuthAction.SUBMIT_MFA_CODE]),k=t.useCallback((e,t)=>{"confirmSignIn"===e&&Object.hasOwn(t,"code")&&"CodeMismatchException"===t.code&&(E("error"),b("codeMatchError"))},[]);n.useAuthorization({onError:k});const O=t.useMemo(()=>{switch(y){case"mfaAttemptWarning":return d.mfaAttemptWarning.replace("{current}",S?.toString()).replace("{exhausted}",(S-1)?.toString()).replace("{max}",w?.toString());case"codeMatchError":return d.codeMatchError;case"codeFormatError":return d.codeFormatError;default:return""}},[d,y]),R=a.useWjecOneThemeStyles(Qr);return r.jsx("form",{css:Nr.form,id:"MfaCodeForm",onSubmit:e=>{const t=(e=>/^\d{6}$/.test(e))(f);if(e.preventDefault(),!A&&!M)if(t)switch(E(void 0),b(void 0),l?.challengeType){case n.ChallengeType.EMAIL_MFA:case n.ChallengeType.SMS_MFA:case n.ChallengeType.TOTP_MFA:j();break;default:s.developerWarning(`Unhandled challenge type: ${l?.challengeType}`)}else E("error"),b("codeFormatError")},ref:h},r.jsx("fieldset",{css:Nr.fieldsSection},r.jsx(o.VerificationCodeInput,{description:d.codeDescription,disabled:A||M,id:"CodeInput",label:d.codeLabel,onChange:v,placeholder:d.codePlaceholder,status:x,statusMessage:O}),C&&r.jsx("a",{css:R.formOption,id:"ResendCodeLink",onClick:()=>{n.signIn(g,p)},"data-disabled":M},d.resendCode)),r.jsx("fieldset",{css:Nr.formControls},r.jsx(o.Button,{disabled:M,id:"CancelButton",label:d.cancel,onPress:()=>{s.isCallableFunction(i)&&i(u),m(Er("signIn"))},size:"small"}),r.jsx(o.PrimaryButton,{buttonType:"submit",disabled:A,icon:zr,iconPosition:"right",id:"SubmitCodeButton",label:d.submitCode,loading:M,size:"small"})))},Qr=({colorPalette:e})=>({formOption:r.css("align-self:flex-end;color:",e.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;}')}),Kr=({children:e,step:t})=>{const n=a.useWjecOneThemeStyles(eo);return r.jsx("li",{css:n.container,"data-step":t},e)},eo=({colorPalette:e})=>({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:",e.neutral,";border-radius:10px;bottom:0;content:attr(data-step);color:",e.font,";display:flex;flex-shrink:0;font-weight:700;justify-content:center;left:0;position:absolute;top:0;width:18px;}")}),to=(e,r,o)=>{const a=v(r),s=(e=>{const{groups:r,isSignedIn:o}=n.useAuthorization(),a=v(e);return t.useMemo(()=>o?f(e,r,a):[],[a,e,r,o])})(r),i=[...n.state.groups,...s];return t.useMemo(()=>{const t={},n=e?.[o]||{};for(const e in n)for(const r of n[e].groups){const o=r.links.filter(({accessGroups:e=[]})=>0===e.length||e.includes(a)||e.some(e=>i.includes(e)));o.length>0&&(t[e]||(t[e]={...n[e],groups:[]}),t[e].groups.push({...r,links:o}))}return t},[a,e,o,s])};var no,ro;function oo(){return oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oo.apply(null,arguments)}var ao,so=function(e,t){return d.createElement("svg",oo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),no||(no=d.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"})),ro||(ro=d.createElement("path",{d:"m15 9-6 6m0-6 6 6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},io=t.forwardRef(so);function co(){return co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},co.apply(null,arguments)}var lo=function(e,t){return d.createElement("svg",co({viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),ao||(ao=d.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"})))},uo=t.forwardRef(lo);var po={name:"hyf6y2",styles:"display:flex;flex-direction:column;margin:0 auto;max-width:var(--max-width);width:100%;"},go={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);}"},mo={name:"9751jc",styles:'margin:0 auto;position:relative;width:400px;& input[type="text"]:not(input[value=""]){padding-right:40px;}'};const ho=({colorPalette:e})=>({clearSearchButton:r.css("background-color:transparent;border:none;cursor:pointer;height:40px;outline-color:",e.primary,";padding:8px;position:absolute;right:0;top:0;width:40px;"),clearSearchIcon:r.css("color:",e.errorDark,";"),container:r.css("--border-color:",e.border,";--max-width:1280px;--horizontal-padding:24px;--neutral:",e.neutral,";--neutral-dark:",e.neutralDark,";--offset-top:71px;--secondary:",e.secondary,";--secondary-dark:",e.secondaryDark,";--text-color:",e.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:po,menuContainer:go,searchContainer:mo}),fo={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;"}},vo=({i18n:e,mfaAttemptLimit:o,mode:a,onCancel:i,onChangeMode:c,onError:l,onSignIn:u,onSubmitNewPassword:d,onSubmitRequestCode:p,onSubmitSignIn:g,passwordValidator:m,showResendCode:h=!0,useEmailAddressAsUsername:f,usernameIcon:v})=>{const[{currentMode:x},E]=Fr(),y=t.useCallback(e=>{switch(E(xr(e)),e.challengeType){case n.ChallengeType.NEW_PASSWORD_REQUIRED:E(Er("forcePasswordChange"));break;case n.ChallengeType.EMAIL_MFA:case n.ChallengeType.SMS_MFA:case n.ChallengeType.TOTP_MFA:E(Er("confirmSignIn"))}},[]),b=t.useCallback((e,t)=>{s.isCallableFunction(l)&&l(x,t),E(br(e))},[x]);return n.useAuthorization({onChallenge:y,onError:b}),(e=>{const[n,r]=Fr(),o=t.useMemo(()=>({...fr,...e}),[e]);t.useEffect(()=>{r(Cr(o))},[o])})(e),t.useEffect(()=>{s.isCallableFunction(c)&&c(x),E(br(void 0)),"confirmSignIn"!==x&&E(wr(void 0))},[x]),(e=>{const[{currentMode:n,useEmailAddressAsUsername:r,usernameIcon:o},a]=Fr();t.useEffect(()=>{e.mode&&e.mode!==n&&a(Er(e.mode))},[e?.mode]),t.useEffect(()=>{void 0!==e.useEmailAddressAsUsername&&e.useEmailAddressAsUsername!==r&&a(jr(e.useEmailAddressAsUsername))},[e?.useEmailAddressAsUsername]),t.useEffect(()=>{e.usernameIcon&&e.usernameIcon!==o&&a(Ar(e.usernameIcon))},[e?.usernameIcon])})({mode:a,useEmailAddressAsUsername:f,usernameIcon:v}),"forcePasswordChange"===x?r.jsx(Vr,{passwordValidator:m}):"forgotPasswordRequestCode"===x?r.jsx(Gr,{onCancel:i,onSubmitRequestCode:p}):"forgotPasswordSubmitCode"===x?r.jsx(Yr,{onCancel:i,onSubmitNewPassword:d,passwordValidator:m}):"confirmSignIn"===x?r.jsx($r,{mfaAttemptLimit:o,onCancel:i,showResendCode:h}):r.jsx(Jr,{onSignIn:u,onSubmitSignIn:g})},xo=({colorPalette:e})=>({skeletonBlock:r.css("animation:",Eo," 1500ms infinite linear;background-color:",e.neutral,";background-image:linear-gradient(110deg,#ececec 10%,#f5f5f5 20%,#ececec 35%);background-size:200% 100%;border-radius:",o.StylePalette.borderRadius,";")}),Eo=r.keyframes`
|
|
6
|
+
to {
|
|
7
|
+
background-position-x: -200%;
|
|
8
|
+
}
|
|
9
|
+
`,yo={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"},bo=({colorPalette:e})=>({form:r.css("align-items:flex-start;color:",e.font,";display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;gap:32px;line-height:24px;overflow:hidden;")});var Co;function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wo.apply(null,arguments)}var So,Ao,jo=function(e,t){return d.createElement("svg",wo({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Co||(Co=d.createElement("path",{d:"M5 12h14m0 0-7-7m7 7-7 7",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))},Mo=t.forwardRef(jo);function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ko.apply(null,arguments)}var Oo=function(e,t){return d.createElement("svg",ko({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),So||(So=d.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"})),Ao||(Ao=d.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"})))},Ro=t.forwardRef(Oo);const To={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"};var Io={name:"ug8j3x",styles:"margin:16px 0 24px;"},Po={name:"guxhko",styles:"font-size:20px;font-weight:400;line-height:32px;margin:0;"};const Lo=({colorPalette:e})=>({container:r.css("align-items:center;color:",e.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:",e.secondaryDark,";height:100px;& > path{stroke-width:0.5;}"),message:Io,title:Po});var Fo;function _o(){return _o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_o.apply(null,arguments)}var Zo=function(e,t){return d.createElement("svg",_o({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),Fo||(Fo=d.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"})))},No=t.forwardRef(Zo);const Bo={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"};var Wo={name:"nrkrjg",styles:"display:flex;flex-direction:column;gap:24px;& >:first-child{margin-bottom:8px;}"},Do={name:"1k9hmir",styles:"list-style:none;margin:0;padding:0;width:100%;"};const zo=({colorPalette:e})=>({container:Wo,form:r.css("color:",e.font,";display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;gap:16px;line-height:24px;overflow:hidden;"),steps:Do}),Vo={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"};var Go={name:"1yqngoq",styles:"border:none;display:flex;gap:16px;margin:0;padding:0;"},Uo={name:"6su6fj",styles:"flex-shrink:0;"},Yo={name:"1isqi06",styles:"display:flex;gap:24px;margin:0 16px 8px;"},Ho={name:"1ygg5wq",styles:"display:flex;flex-direction:column;font-size:inherit;"},Xo={name:"12z0wuy",styles:"margin-right:8px;"},Jo={name:"1k9hmir",styles:"list-style:none;margin:0;padding:0;width:100%;"};const qo=({colorPalette:e})=>({form:r.css("color:",e.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:Go,qrCode:Uo,qrCodeContainer:Yo,secretKey:r.css("background-color:",e.neutral,";font-family:'Montserrat',sans-serif;padding:8px;word-break:break-all;"),secretKeyContainer:Ho,secretKeySpacer:Xo,secretKeyTitle:r.css("color:",e.neutralDark,";margin:0;font-size:inherit;font-weight:500;"),steps:Jo}),$o={newAppSetup:"Set up authenticator app",stepOneDescription:r.jsx(t.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"};var Qo={name:"1k9hmir",styles:"list-style:none;margin:0;padding:0;width:100%;"};const Ko=({colorPalette:e})=>({container:r.css("color:",e.font,";display:flex;flex-direction:column;font-family:'Montserrat',sans-serif;font-size:16px;gap:32px;line-height:24px;overflow:hidden;"),steps:Qo});var ea;function ta(){return ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ta.apply(null,arguments)}var na,ra=function(e,t){return d.createElement("svg",ta({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),ea||(ea=d.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"})))},oa=t.forwardRef(ra);function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aa.apply(null,arguments)}var sa,ia,ca=function(e,t){return d.createElement("svg",aa({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),na||(na=d.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"})))},la=t.forwardRef(ca);function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ua.apply(null,arguments)}var da,pa=function(e,t){return d.createElement("svg",ua({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),sa||(sa=d.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"})),ia||(ia=d.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"})))},ga=t.forwardRef(pa);function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ma.apply(null,arguments)}var ha,fa,va,xa=function(e,t){return d.createElement("svg",ma({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),da||(da=d.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"})))},Ea=t.forwardRef(xa);function ya(){return ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ya.apply(null,arguments)}var ba,Ca,wa=function(e,t){return d.createElement("svg",ya({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),ha||(ha=d.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"})),fa||(fa=d.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"})),va||(va=d.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"})))},Sa=t.forwardRef(wa);function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aa.apply(null,arguments)}var ja=function(e,t){return d.createElement("svg",Aa({viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),ba||(ba=d.createElement("rect",{width:40,height:40,rx:20,fill:"#C0E8F0"})),Ca||(Ca=d.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"})))},Ma=t.forwardRef(ja);const ka={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"};var Oa={name:"fv3lde",styles:"align-items:center;display:flex;"},Ra={name:"1uthhvt",styles:"display:flex;gap:8px;margin-top:8px;"},Ta={name:"j7qwjs",styles:"display:flex;flex-direction:column;"},Ia={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;"},Pa={name:"qcb6m9",styles:"height:24px;margin-right:8px;width:24px;"},La={name:"nxd1e0",styles:"align-items:center;background-color:rgba(255,255,255,0.75);display:flex;inset:0;justify-content:center;position:absolute;"},Fa={name:"1fr0ud0",styles:"max-width:200px;& > button{max-width:100%;}"},_a={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"};const Za=({colorPalette:e})=>({accountActions:r.css("list-style:none;margin:0;min-width:250px;padding:0;& > li{align-items:center;border-radius:",o.StylePalette.borderRadius,";color:",e.font,";display:flex;font-size:16px;font-weight:400;line-height:24px;padding:4px 8px;&:not(:last-child){margin-bottom:8px;}&:hover{background-color:",e.neutral,";cursor:pointer;}}"),accountActionsIcon:r.css("color:",e.fontLight,";flex-shrink:0;margin-right:8px;width:24px;"),centre:Oa,centreNumber:r.css("background-color:",e.secondaryLight,";border-radius:8px;color:",e.secondaryDark,";font-size:12px;font-weight:600;line-height:16px;margin-right:4px;padding:4px;"),centreNumberForm:Ra,clearCentreIcon:r.css("color:",e.error,";width:24px;"),container:Ta,currentCentre:Ia,icon:Pa,loadingOverlay:La,toggleContainer:Fa,toggleLabel:_a,userAction:r.css("--centre-icon-color:",e.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:",e.primary,";background-color:",e.neutral,";cursor:pointer;}"),userActionIcon:r.css("color:",e.fontLight,";flex-shrink:0;margin-left:10px;width:24px;"),userDetails:r.css("color:",e.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:",e.neutralDark,";flex-shrink:0;margin-right:8px;width:40px;"),username:r.css("color:",e.font,";font-size:16px;font-weight:600;line-height:24px;margin-top:4px;word-wrap:balance;")});e.DEFAULT_SECONDARY_ACCESS_GROUPS=x,e.Divider=({margin:e="20px 0"})=>{const t=a.useWjecOneThemeStyles(j);return r.jsx(A,{css:r.css([t.divider,{margin:e}]),height:"4px",width:"100%"})},e.EmailMfaSetup=({i18n:e=yo,onSubmit:i})=>{const{preferences:c,requestStatuses:l}=n.useAuthorization(),[u,d]=t.useState(),[p,g]=t.useState(void 0!==c?.emailMfaAccepted);t.useEffect(()=>{const e=void 0!==c.emailMfaAccepted;e!==p&&g(e)},[c?.emailMfaAccepted]);const m=t.useMemo(()=>"loading"===l[n.AuthAction.SET_MFA_TYPE]||"loading"===l[n.AuthAction.UPDATE_USER_PREFERENCES],[l[n.AuthAction.SET_MFA_TYPE],l[n.AuthAction.UPDATE_USER_PREFERENCES]]),h=t.useMemo(()=>({...yo,...e}),[e]),f=a.useWjecOneThemeStyles(bo);return r.jsx("form",{css:f.form,onSubmit:e=>{e.preventDefault(),m||(p?(d(void 0),s.isCallableFunction(i)&&i(),n.setMfaType(n.MFAType.EMAIL).then(()=>{n.updateUserPreferences({emailMfaAccepted:new Date})})):d(h.confirmationMissingError))}},r.jsx(o.SectionTitle,null,h.title),h.disclaimer,r.jsx(o.CheckBox,{checked:p,disabled:m,id:"ConfirmMfaCheckbox",label:h.confirmationMessage,onChange:g,status:u?"error":void 0,statusMessage:u}),r.jsx(o.PrimaryButton,{buttonType:"submit",disabled:!p,id:"UseEmailMfaButton",label:h.submitConfirmation,loading:m}))},e.Footer=({i18n:e={copyrightMessage:`Copyright WJEC CBAC Ltd ${(new Date).getFullYear()}`},logos:t=[K,re],maxWidth:n=1280})=>{const o=a.useWjecOneThemeStyles(ge);return r.jsx("footer",{css:o.footer},r.jsx("div",{css:r.css([o.container,{maxWidth:`${n}px`}])},t.map((e,t)=>r.jsx(e,{key:`logo_${t}`,css:o.logo})),r.jsx("span",{css:o.copyright},e.copyrightMessage)))},e.Header=({id:e,logo:n,maxWidth:o=1280,menusLeft:i,menusRight:c,onPressPageTitle:l,pageTitleHref:u,pageTitle:d=r.jsx(ve,{style:{height:"16px"}})})=>{const[{brand:p}]=a.useWjecOneTheme(),g=t.useMemo(()=>{return e=n,s.isPlainObject(e)&&Object.hasOwn(e,"eduqas")&&Object.hasOwn(e,"wjec")?n[p]:n;var e},[p,n]),m=a.useWjecOneThemeStyles(Se);return r.jsx("header",{css:m.header,id:e},r.jsx("div",{css:r.css([m.container,{maxWidth:`${o}px`}])},r.jsx("section",{css:r.css([m.menuContainer,m.menuContainerLeft])},i),d&&(void 0!==l||u?r.jsx("a",{css:m.homeLink,href:u,id:e?`${e}_pageTitle`:void 0,onClick:l},r.jsx("h1",{css:m.title},d)):r.jsx("h1",{css:m.title},d)),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=({applicationVersion:e,description:n="Not sure where to begin? Our handy guides and frequently asked questions will help get you on your way.",options:s=[],title:i="Need Help?"})=>{const[{colorPalette:c}]=a.useWjecOneTheme(),l=a.useWjecOneThemeStyles(W),u=t.useMemo(()=>s.map(({href:e,icon:t,label:n,onPress:o},a)=>r.jsx("li",{key:`option_${a}_${n}`,css:l.option},r.jsx("a",{css:l.link,href:e,onClick:o,rel:"noopener noreferrer",target:"_blank"},r.jsx(t,{css:l.linkIcon})," ",n))),[s]);return r.jsx(o.Popup,{attachment:"floating",maxHeight:"350px",padding:"20px",toggle:r.jsx(o.Button,{color:"transparent",icon:_,iconColor:c.fontLight},r.jsx(P,{css:l.icon}))},r.jsx("h4",{css:l.title},i),r.jsx("p",{css:l.helpMessage},n),s.length>0&&r.jsx("ul",{css:l.options},u),e&&r.jsx("div",{css:l.applicationVersion},e))},e.LocalizationMenu=({icons:e,id:n,keySuffix:s="",open:c=!1,showLocaleNameInList:l=!0,showSelectedLocaleName:u=!e})=>{const[{availableLocales:d,locale:p,strings:g},m]=i.useLocalization(),[{colorPalette:h}]=a.useWjecOneTheme(),[f,v]=t.useState(c);t.useEffect(()=>{c!==f&&v(c)},[c]);const x=e=>`${String(e)}${s}`,E=a.useWjecOneThemeStyles(st),y=t.useMemo(()=>r.jsx(o.Button,{color:"transparent",labelColor:h.fontLight},e&&r.jsx(e[p],{css:E.icon}),u&&(g[x(p)]||`${String(p)}${s}`)),[h,s,p,g]);return r.jsx(o.Popup,{attachment:"floating",id:n,open:f,onHide:()=>v(!1),onShow:()=>v(!0),padding:"16px",placement:"bottom-end",toggle:y},r.jsx("ul",{css:E.locales},d?.map(t=>{const n=l&&(g[x(t)]||`${String(t)}${s}`);return r.jsx("li",{css:E.option,key:t.toString(),onClick:(o=t,()=>{m(i.selectLocale(o)),v(!1)})},e&&r.jsx(e[t],{css:E.icon}),n);var o})))},e.MfaSetupSuccess=({i18n:e=To,onRedirect:n,redirectTimer:i=5e3,remainingTimeFormatter:c=e=>r.jsx("b",null,Math.round(e/1e3)," second(s)")})=>{const l=t.useRef(!1),u=t.useRef(Date.now()),[d,p]=t.useState(i),g=t.useMemo(()=>({...To,i18n:e}),[e]),m=t.useMemo(()=>s.formattedStringToPlainText(g.redirectMessage).split(/({[^}]+})/g).map(e=>r.jsx(t.Fragment,{key:e},e.match(/{timer}/)?c(d):e)),[g,d]);t.useEffect(()=>{let e;return d>0?e=self.setTimeout(()=>{const e=Date.now(),t=e-u.current;p(d-t),u.current=e},1e3):h(),()=>{self.clearTimeout(e)}},[d]);const h=()=>{!l.current&&s.isCallableFunction(n)&&(l.current=!0,p(0),n())},f=a.useWjecOneThemeStyles(Lo);return r.jsx("div",{css:f.container},r.jsx(Ro,{css:f.icon}),r.jsx("h4",{css:f.title},g.title),g.description,r.jsx("p",{css:f.message},m),r.jsx(o.PrimaryButton,{icon:Mo,iconPosition:"right",id:"ContinueToPortalButton",label:g.continueButtonLabel,onPress:h}))},e.Navigation=({centreNumber:e,i18n:i,idPrefix:c="navigation",links:l={},loading:u,locale:d="en-gb",maxWidth:p,offsetTop:g,onError:m,onPressSignIn:h,open:f,padding:v})=>{const{isInitialized:x,isSignedIn:E,preferences:{favouriteLinks:y=[]}}=n.useAuthorization(),b=to(l,e,d),[C,w]=t.useState(),[S,A]=t.useState(""),[j,M]=t.useState(Object.keys(b||{})[0]),k=t.useMemo(()=>u||!x,[x,u]),O=t.useMemo(()=>({...lt[d],...i}),[i,d]),[R,T]=t.useState([]),I=t.useRef(void 0),P=t.useRef(void 0),L=t.useRef(void 0);t.useEffect(()=>{f&&b?Object.keys(b).includes(j)||M(Object.keys(b)[0]):M(void 0)},[b,f]),t.useEffect(()=>{f||A("")},[f]),t.useLayoutEffect(()=>{let e=!0;return f&&requestAnimationFrame(()=>{e&&I.current.removeAttribute("data-offset")}),()=>{e=!1}},[f]);const F=e=>{j!==ct.SEARCH&&""!==e?(P.current=j,M(ct.SEARCH)):void 0!==P.current&&""===e&&(M(P.current),P.current=void 0,L.current.querySelector("input").focus()),A(e),hn(e)},_=(e,t)=>{T(t=>[...t,e.linkId]);const r="add"===t?[...y,e.linkId]:y.filter(t=>t!==e.linkId);n.updateUserPreferences({favouriteLinks:r}).then(n=>{n?(w(void 0),"add"===t?(({linkId:e})=>{s.dispatchAnalyticsEvent(mn.ADD_FAVOURITE,{linkId:e})})(e):(({linkId:e})=>{s.dispatchAnalyticsEvent(mn.REMOVE_FAVOURITE,{linkId:e})})(e)):s.isCallableFunction(m)&&m("toggleFavourite",e)}).catch(()=>{s.isCallableFunction(m)&&m("toggleFavourite",e)}).finally(()=>{T(t=>t.filter(t=>t!==e.linkId))})},Z=a.useWjecOneThemeStyles(ho);return f&&r.jsx("nav",{css:Z.container,id:`${c}Container`,style:{"--horizontal-padding":v,"--max-width":p,"--offset-top":g}},r.jsx("div",{css:Z.innerContainer},r.jsx("form",{css:Z.searchContainer,id:`${c}SearchForm`,onReset:()=>F(""),onSubmit:e=>e.preventDefault(),ref:L},r.jsx(o.Input,{icon:uo,id:`${c}SearchAllServices`,onChange:F,placeholder:O.searchAllServices,value:S,width:"100%"}),S&&r.jsx("button",{css:Z.clearSearchButton,type:"reset"},r.jsx(io,{"aria-hidden":!0,css:Z.clearSearchIcon}))),r.jsx("section",{ref:I,css:Z.menuContainer,"data-offset":!0},k&&r.jsx(pr,null),!k&&r.jsx(t.Fragment,null,r.jsx(sr,{idPrefix:c,isSignedIn:E,links:b,onSelect:e=>{j===ct.SEARCH&&e!==ct.SEARCH&&A(""),M(e)},selectedSection:j,strings:O}),r.jsx($n,{favourites:y,idPrefix:c,isSignedIn:E,links:b,onClearSearch:()=>F(""),onPressSignIn:h,onToggleFavourite:e=>{y.includes(e.linkId)?w(e):_(e,"add")},searchTerm:S,selectedSection:j,strings:O,togglingFavourites:R})))),C&&r.jsx(Kn,{id:`${c}RemoveFavouriteModal`,isLoading:R.includes(C?.linkId),onClose:()=>w(void 0),onConfirm:()=>{_(C,"remove")},strings:O}))},e.NotificationsStack=({children:e,i18n:n={showLess:"Show less",showMore:"Show more"},visibleCount:s=3})=>{const[i,c]=t.useState(!1),l=t.Children.toArray(e),[{colorPalette:u}]=a.useWjecOneTheme();return r.jsx("div",{css:fo.notificationStackContainer},r.jsx("div",{css:fo.notificationStack},l.slice(0,i?1/0:s).map(e=>e)),l.length>s&&r.jsx("div",{css:fo.showMore},r.jsx(o.Button,{color:u.neutral,onPress:()=>{c(!i)}},i?n.showLess:`${n.showMore} (${l.length-s})`,r.jsx(ie,{css:r.css([fo.moreIcon,i&&fo.moreIconArrowOpen],"production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk5vdGlmaWNhdGlvblN0YWNrLmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1QjJCIiwiZmlsZSI6Ik5vdGlmaWNhdGlvblN0YWNrLmpzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IHsgQnV0dG9uLCBTdHlsZVBhbGV0dGUgfSBmcm9tICd3amVjLW9uZSc7XG5pbXBvcnQgeyB1c2VXamVjT25lVGhlbWUgfSBmcm9tICd3amVjLW9uZS90aGVtZSc7XG5pbXBvcnQgQ2FyZXREb3duSWNvbiBmcm9tICdzcmMvYXNzZXRzL2ljb25zL2NhcmV0X2Rvd24uc3ZnJztcbmV4cG9ydCBjb25zdCBOb3RpZmljYXRpb25zU3RhY2sgPSAoeyBjaGlsZHJlbiwgaTE4biA9IHsgc2hvd0xlc3M6ICdTaG93IGxlc3MnLCBzaG93TW9yZTogJ1Nob3cgbW9yZScgfSwgdmlzaWJsZUNvdW50ID0gMyB9KSA9PiB7XG4gICAgY29uc3QgW3Nob3dNb3JlLCBzZXRTaG93TW9yZV0gPSB1c2VTdGF0ZShmYWxzZSk7XG4gICAgY29uc3QgY2hpbGRyZW5BcnJheSA9IFJlYWN0LkNoaWxkcmVuLnRvQXJyYXkoY2hpbGRyZW4pO1xuICAgIGNvbnN0IFt7IGNvbG9yUGFsZXR0ZSB9XSA9IHVzZVdqZWNPbmVUaGVtZSgpO1xuICAgIHJldHVybiAoPGRpdiBjc3M9e3N0eWxlcy5ub3RpZmljYXRpb25TdGFja0NvbnRhaW5lcn0+XHJcbiAgICAgIDxkaXYgY3NzPXtzdHlsZXMubm90aWZpY2F0aW9uU3RhY2t9PlxyXG5cclxuICAgICAgICB7Y2hpbGRyZW5BcnJheS5zbGljZSgwLCBzaG93TW9yZSA/IEluZmluaXR5IDogdmlzaWJsZUNvdW50KS5tYXAoKChjaGlsZCkgPT4gKGNoaWxkKSkpfVxyXG5cclxuICAgICAgPC9kaXY+XHJcblxyXG4gICAgICB7Y2hpbGRyZW5BcnJheS5sZW5ndGggPiB2aXNpYmxlQ291bnQgJiYgKDxkaXYgY3NzPXtzdHlsZXMuc2hvd01vcmV9PlxyXG4gICAgICAgICAgPEJ1dHRvbiBjb2xvcj17Y29sb3JQYWxldHRlLm5ldXRyYWx9IG9uUHJlc3M9eygpID0+IHtcbiAgICAgICAgICAgICAgICBzZXRTaG93TW9yZSghc2hvd01vcmUpO1xuICAgICAgICAgICAgfX0+XHJcbiAgICAgICAgICAgIHtzaG93TW9yZVxuICAgICAgICAgICAgICAgID8gaTE4bi5zaG93TGVzc1xuICAgICAgICAgICAgICAgIDogYCR7aTE4bi5zaG93TW9yZX0gKCR7Y2hpbGRyZW5BcnJheS5sZW5ndGggLSB2aXNpYmxlQ291bnR9KWB9XHJcbiAgICAgICAgICAgIDxDYXJldERvd25JY29uIGNzcz17W3N0eWxlcy5tb3JlSWNvbiwgc2hvd01vcmUgJiYgc3R5bGVzLm1vcmVJY29uQXJyb3dPcGVuXX0vPlxyXG4gICAgICAgICAgPC9CdXR0b24+XHJcbiAgICAgICAgPC9kaXY+KX1cclxuICAgIDwvZGl2Pik7XG59O1xuY29uc3Qgc3R5bGVzID0ge1xuICAgIG1vcmVJY29uOiBjc3MgYFxyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xyXG4gICAgaGVpZ2h0OiAyNHB4O1xyXG4gIGAsXG4gICAgbW9yZUljb25BcnJvd09wZW46IGNzcyBgXHJcbiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgxODBkZWcpO1xyXG4gIGAsXG4gICAgbm90aWZpY2F0aW9uU3RhY2s6IGNzcyBgXHJcbiAgICAke1N0eWxlUGFsZXR0ZS5zY3JvbGxiYXJ9O1xyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XHJcbiAgICBnYXA6IDE2cHg7XHJcbiAgICBvdmVyZmxvdy15OiBhdXRvO1xyXG4gICAgcGFkZGluZzogMjRweCA4cHggMDtcclxuICAgIHBvaW50ZXItZXZlbnRzOiBhbGw7XHJcbiAgYCxcbiAgICBub3RpZmljYXRpb25TdGFja0NvbnRhaW5lcjogY3NzIGBcclxuICAgIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xyXG4gICAgYm9yZGVyOiBub25lO1xyXG4gICAgYm94LXNpemluZzogYm9yZGVyLWJveDtcclxuICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xyXG4gICAgZ2FwOiAxNnB4O1xyXG4gICAgbWF4LWhlaWdodDogMTAwJTtcclxuICAgIG92ZXJmbG93LXk6IGF1dG87XHJcbiAgICBwb2ludGVyLWV2ZW50czogbm9uZTtcclxuICBgLFxuICAgIHNob3dNb3JlOiBjc3MgYFxyXG4gICAganVzdGlmeS1pdGVtczogc3RyZXRjaDtcclxuICAgIHBvaW50ZXItZXZlbnRzOiBhbGw7XHJcbiAgYFxufTtcbiJdfQ== */")}))))},e.Page=({children:e,footerProps:t,headerProps:n,maxWidth:o=1280,padding:a="32px 32px 0"})=>r.jsx("div",{css:rt.pageWrapper},r.jsx(Oe,ce({},n,{maxWidth:o})),r.jsx("main",{css:r.css([rt.content,{maxWidth:o,padding:a}])},e),r.jsx(Ke,ce({},t,{maxWidth:o}))),e.SigninForm=e=>r.jsx(Lr,{currentMode:e.mode,useEmailAddressAsUsername:e.useEmailAddressAsUsername,usernameIcon:e.usernameIcon},r.jsx(vo,e)),e.SkeletonBlock=({height:e="100%",margin:t="0",padding:n="0",width:o="100%"})=>{const s=a.useWjecOneThemeStyles(xo);return r.jsx("div",{css:r.css([s.skeletonBlock,{height:e,margin:t,padding:n,width:o}])})},e.SmsMfaSetup=({i18n:e=Bo,onSendCode:i,onSubmit:c,telephoneNumberValidator:l=e=>/^\+[1-9][0-9\s]{0,24}$/.test(e)})=>{const{requestStatuses:u,telephoneNumber:d,telephoneNumberVerified:p}=n.useAuthorization({}),g=t.useRef(void 0),m=t.useRef(!1),h=t.useRef(void 0),[f,v]=t.useState(""),[x,E]=t.useState(),[y,b]=t.useState(!1),[C,w]=t.useState(!1),[S,A]=t.useState(d&&p?"update":"setup"),[j,M]=t.useState(d),[k,O]=t.useState(),[R,T]=t.useState(),I=t.useMemo(()=>"loading"===u[n.AuthAction.UPDATE_USER_ATTRIBUTES],[u[n.AuthAction.UPDATE_USER_ATTRIBUTES]]),P=t.useMemo(()=>"loading"===u[n.AuthAction.SET_MFA_TYPE]||"loading"===u[n.AuthAction.VERIFY_TELEPHONE_NUMBER],[u[n.AuthAction.SET_MFA_TYPE],u[n.AuthAction.VERIFY_TELEPHONE_NUMBER]]),L=t.useMemo(()=>({...Bo,...e}),[e]),F=t.useMemo(()=>{let e;return"setup"===S&&k&&(e="error"),"update"===S&&d===j&&p&&(e="success"),e},[d,p,S,j,k]),_=t.useMemo(()=>l(j),[j]);t.useEffect(()=>{"setup"!==S||m.current||(h.current.querySelector("input").focus(),m.current=!0)},[S]),t.useEffect(()=>{!C&&"setup"===S&&p&&j===d&&A("update"),"update"===S&&j!==d&&A("setup")},[d,p,C,S,j]);const Z=a.useWjecOneThemeStyles(zo);return r.jsx("section",{css:Z.container},r.jsx(o.SectionTitle,null,L.title),r.jsx("form",{css:Z.form,id:"TelephoneNumberForm",onSubmit:async e=>{if(e.preventDefault(),"setup"===S&&!I){b(!1),w(!1);if(l(j)){if(await n.updateUserAttributes({telephoneNumber:j})){s.isCallableFunction(i)&&i(j);const e=await n.verifyTelephoneNumber();e?.challengeType===n.ChallengeType.VERIFY_TELEPHONE_NUMBER&&T(e),b(!0),g.current?.querySelector("input")?.focus()}}else O(L.telephoneNumberFormatError)}"update"===S&&n.setMfaType(n.MFAType.SMS)},ref:h},r.jsx("ol",{css:Z.steps},r.jsx(Kr,{step:1},"setup"===S?L.stepOneDescription:L.stepOneUpdateDescription,r.jsx(o.Input,{disabled:I||P,id:"TelephoneNumberInput",label:L.telephoneNumberLabel,onChange:M,placeholder:L.telephoneNumberPlaceholder,status:F,statusMessage:k,value:j,width:"200px"})),r.jsx(Kr,{step:2},"setup"===S?L.stepTwoDescription:L.stepTwoUpdateDescription,"setup"===S&&r.jsx(o.SecondaryButton,{buttonType:"submit",disabled:P||!_,icon:No,id:"SendCodeButton",label:y?L.reSendCode:L.sendCode,loading:I}),"update"===S&&r.jsx(o.PrimaryButton,{buttonType:"submit",label:L.useExistingTelephoneNumber,loading:P})))),"setup"===S&&r.jsx("form",{css:Z.form,id:"CodeForm",onSubmit:async e=>{if(e.preventDefault(),!P){w(!0);if(/^\d{6}$/.test(f)){E(void 0),s.isCallableFunction(c)&&c(f);await(R?.completeChallenge(f))&&n.setMfaType(n.MFAType.SMS).then(()=>{v(""),b(!1),w(!1)})}else E(L.codeFormatError)}},ref:g},r.jsx("ol",{css:Z.steps},r.jsx(Kr,{step:3},L.stepThreeDescription,r.jsx(o.Input,{disabled:!y||P,id:"EnterCodeInput",label:L.codeLabel,maxCharacters:6,onChange:v,placeholder:L.codePlaceholder,status:x?"error":void 0,statusMessage:x,value:f})),r.jsx(Kr,{step:4},L.stepFourDescription,r.jsx(o.PrimaryButton,{buttonType:"submit",disabled:!f,id:"SubmitCodeButton",label:L.submitCode,loading:P})))))},e.TotpMfaSetup=({allowCustomDeviceName:e=!1,i18n:i=Vo,onSubmit:c,secretKey:u})=>{const{emailAddress:d,requestStatuses:p}=n.useAuthorization({onError:(e,t)=>{e===n.AuthAction.VERIFY_TOTP_TOKEN&&"EnableSoftwareTokenMFAException"===t.code&&"Code mismatch"===t.message&&E(b.codeMatchError)}}),g=t.useRef(void 0),[m,h]=t.useState(""),[f,v]=t.useState(""),[x,E]=t.useState(),y=t.useMemo(()=>"loading"===p[n.AuthAction.SET_MFA_TYPE]||"loading"===p[n.AuthAction.VERIFY_TOTP_TOKEN],[p[n.AuthAction.SET_MFA_TYPE],p[n.AuthAction.VERIFY_TOTP_TOKEN]]),b=t.useMemo(()=>({...Vo,...i}),[i]),C=t.useMemo(()=>encodeURI(`otpauth://totp/WJEC Portal:${d}?secret=${u}&issuer=WJEC Portal`),[d,u]);t.useEffect(()=>{g.current.querySelector("input").focus()},[]);const w=a.useWjecOneThemeStyles(qo),S=t.useMemo(()=>u?.match(/.{1,4}/g)?.map((e,n,o)=>r.jsx(t.Fragment,{key:e},e,n<o.length-1&&r.jsx("span",{css:w.secretKeySpacer}))),[u]);return r.jsx("form",{css:w.form,id:"TOTPMfaSetupForm",onSubmit:async e=>{if(e.preventDefault(),!y){E(void 0);if(/^\d{6}$/.test(m)){s.isCallableFunction(c)&&c(m,f);await n.verifyTotp(m)&&n.setMfaType(n.MFAType.TOTP)}else E(b.codeFormatError)}},ref:g},r.jsx(o.SectionTitle,null,b.title),r.jsx("ol",{css:w.steps},r.jsx(Kr,{step:1},b.stepOneDescription),r.jsx(Kr,{step:2},b.stepTwoDescription,r.jsx("section",{css:w.qrCodeContainer},r.jsx(l.QRCodeSVG,{css:w.qrCode,id:"QRCode",size:156,value:C}),r.jsx("div",{css:w.secretKeyContainer},r.jsx("h5",{css:w.secretKeyTitle},b.cantScan),b.cantScanHint,r.jsx("code",{css:w.secretKey,id:"SecretKeyDisplay"},S)))),r.jsx(Kr,{step:3},b.stepThreeDescription,r.jsx("fieldset",{css:w.inputFields},r.jsx(o.Input,{autoComplete:"one-time-code",disabled:y,id:"OTPCodeInput",label:b.codeLabel,maxCharacters:6,onChange:h,placeholder:b.codePlaceholder,status:x?"error":void 0,statusMessage:x,value:m,width:"160px"}),e&&r.jsx(o.Input,{disabled:y,id:"DeviceNameInput",label:b.deviceNameLabel,onChange:v,value:f,width:"75%"}))),r.jsx(Kr,{step:4},b.stepFourDescription,r.jsx(o.PrimaryButton,{buttonType:"submit",disabled:!m,id:"SubmitCodeButton",label:b.submitCode,loading:y}))))},e.TotpMfaUpdate=({i18n:e=$o,onNewAppSetup:i,onSubmit:c})=>{const l=t.useMemo(()=>({...$o,...e}),[e]),{requestStatuses:u}=n.useAuthorization({}),d=t.useMemo(()=>"loading"===u[n.AuthAction.REQUEST_TOTP_TOKEN]||"loading"===u[n.AuthAction.SET_MFA_TYPE],[u[n.AuthAction.REQUEST_TOTP_TOKEN],u[n.AuthAction.SET_MFA_TYPE]]),p=a.useWjecOneThemeStyles(Ko);return r.jsx("div",{css:p.container},r.jsx(o.SectionTitle,null,l.title),r.jsx("ol",{css:p.steps},r.jsx(Kr,{step:1},l.stepOneDescription,r.jsx(o.SecondaryButton,{label:l.newAppSetup,loading:d,onPress:()=>{s.isCallableFunction(i)&&i(),n.setupTotp()}})),r.jsx(Kr,{step:2},l.stepTwoDescription,r.jsx(o.PrimaryButton,{label:l.useExistingTotpConfiguration,loading:d,onPress:()=>{d||(s.isCallableFunction(c)&&c(),n.setMfaType(n.MFAType.TOTP))}}))))},e.UserMenu=({actions:e,centreNumber:i,currentPage:c,i18n:l,onChangeCentreNumber:u,onClose:d,onOpen:p,onPressSignIn:g,onPressSignOut:m,onPressUserProfile:h,open:f=!1,profileHref:v,signInHref:x})=>{const[{colorPalette:E}]=a.useWjecOneTheme(),{emailAddress:y,centrePermissions:b,familyName:C,name:w,givenName:S,groups:A,isSignedIn:j,requestStatuses:M}=n.useAuthorization(),[k,O]=t.useState(i||""),[R,T]=t.useState(!1),[I,P]=t.useState(f),L=t.useMemo(()=>Object.keys(b),[b]),F=t.useMemo(()=>A.includes("WJEC_EMPLOYEES"),[A]),_=t.useMemo(()=>"loading"===M[n.AuthAction.SIGN_IN]||"loading"===M[n.AuthAction.SIGN_OUT],[M[n.AuthAction.SIGN_IN],M[n.AuthAction.SIGN_OUT]]),Z=t.useMemo(()=>C||S?`${S||""} ${C||""}`.trim():w,[C,w,S]),N=t.useMemo(()=>F||L.length>1,[L,F]),B=t.useMemo(()=>({...ka,...l}),[l]);t.useEffect(()=>{i!==k&&O(i)},[i]),t.useEffect(()=>{f!==I&&P(f)},[f]),t.useEffect(()=>{"done"===M[n.AuthAction.SIGN_OUT]&&W()},[M[n.AuthAction.SIGN_OUT]]);const W=()=>{T(!1),P(!1),s.isCallableFunction(d)&&d()},D=e=>{s.isCallableFunction(u)&&u(e)},z=t.useMemo(()=>j?ga:Mo,[j]),V=a.useWjecOneThemeStyles(Za),G=t.useMemo(()=>r.jsx("div",{css:V.toggleContainer},r.jsx(o.Button,{color:"transparent",icon:Sa,labelColor:E.fontLight},j?r.jsx(t.Fragment,null,i&&r.jsx("span",{css:V.centreNumber},i),r.jsx("span",{css:V.toggleLabel},Z)):B.signIn)),[i,j,Z]);return r.jsx(o.Popup,{attachment:"floating",onHide:W,onShow:()=>{P(!0),s.isCallableFunction(p)&&p(),O(i)},open:I,padding:"16px",placement:"bottom-end",toggle:G,maxWidth:"350px"},r.jsx("div",{css:V.container},r.jsx("a",{css:V.userAction,href:j?v:x,onClick:()=>{j?s.isCallableFunction(h)&&h():s.isCallableFunction(g)&&g()}},r.jsx(Ma,{css:V.userIcon}),r.jsx("div",{css:V.userDetails},B.welcome,r.jsx("span",{css:V.username},j?Z||y:B.signIn),j&&i&&r.jsx("span",{css:V.currentCentre},r.jsx(oa,{css:V.icon}),i)),r.jsx(z,{css:V.userActionIcon})),j&&r.jsx(t.Fragment,null,N&&r.jsx("form",{css:V.centreNumberForm,onSubmit:e=>{e.preventDefault(),/^\d{5}$/.test(k)?(T(!1),D(k)):T(!0)}},F&&r.jsx(t.Fragment,null,r.jsx(o.Input,{inputMode:"numeric",maxCharacters:5,onChange:O,placeholder:B.centreNumber,status:R?"error":void 0,statusMessage:B.selectCentreError,value:k}),r.jsx(o.PrimaryButton,{ariaLabel:"submitButton",buttonType:"submit",icon:Mo}),r.jsx(o.IconButton,{ariaLabel:"clearButton",icon:()=>r.jsx(oa,{css:V.clearCentreIcon}),onPress:()=>{O(""),T(!1),D("")}})),!F&&L.length>1&&r.jsx(o.Select,{label:B.changeCentre,onSelect:D,options:L,placeholder:B.changeCentrePlaceholder,selectedOption:i})),r.jsx(ft,{margin:"16px 0"}),r.jsx("ul",{css:V.accountActions},c&&r.jsx("li",null,r.jsx(Ea,{css:V.accountActionsIcon}),B.addPageToFavourites.replace("{currentPage}",c)),e?.length>0&&r.jsx(t.Fragment,null,e.map(({icon:e,id:t,label:n,onPress:o})=>r.jsx("li",{id:t,key:t,onClick:o},e&&r.jsx(e,{css:V.accountActionsIcon}),n))),r.jsx("li",{onClick:()=>{s.isCallableFunction(m)&&m(),n.signOut()}},r.jsx(la,{css:V.accountActionsIcon}),B.signOut))),_&&r.jsx("div",{css:V.loadingOverlay},r.jsx(o.CircularProgress,{ariaLabel:"loading"}))))},e.getAccountType=E,e.getNavigationPermissions=(e,t=n.state.groups,r=E(e))=>{const o=t.filter(t=>t.startsWith(e)).map(t=>t.substring(`${e}:`.length));return r!==p.SECONDARY||o.includes("NO_ACCESS")?[]:o.length>0?Object.freeze(o):x},e.useAccountType=e=>{const{centrePermissions:r,groups:o,isSignedIn:a}=n.useAuthorization();return t.useMemo(()=>a?h(e,r,o):void 0,[e,r,o,a])},e.useNavigationPermissions=e=>{const{groups:r,isSignedIn:o}=n.useAuthorization(),a=v(e);return t.useMemo(()=>o?f(e,r,a):[],[a,e,r,o])}});
|