1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6535],{91291:function(e,n,s){"use strict";s.d(n,{J:function(){return h}});var i="https://js.stripe.com/v3",t=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,l=function(){for(var e=document.querySelectorAll('script[src^="'.concat(i,'"]')),n=0;n<e.length;n++){var s=e[n];if(t.test(s.src))return s}return null},r=function(e){var n=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",s=document.createElement("script");s.src="".concat(i).concat(n);var t=document.head||document.body;if(!t)throw Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return t.appendChild(s),s},a=function(e,n){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.52.0",startTime:n})},c=null,o=function(e,n,s){if(null===e)return null;var i=e.apply(void 0,n);return a(i,s),i},u=Promise.resolve().then(function(){return null!==c?c:c=new Promise(function(e,n){if("undefined"==typeof window||"undefined"==typeof document){e(null);return}if(window.Stripe,window.Stripe){e(window.Stripe);return}try{var s=l();s||(s=r(null)),s.addEventListener("load",function(){window.Stripe?e(window.Stripe):n(Error("Stripe.js not available"))}),s.addEventListener("error",function(){n(Error("Failed to load Stripe.js"))})}catch(i){n(i);return}})}),d=!1;u.catch(function(e){d||console.warn(e)});var h=function(){for(var e=arguments.length,n=Array(e),s=0;s<e;s++)n[s]=arguments[s];d=!0;var i=Date.now();return u.then(function(e){return o(e,n,i)})}},58333:function(e,n,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/subscription",function(){return s(96392)}])},15406:function(e,n,s){"use strict";s.d(n,{BH:function(){return t},pn:function(){return l},tL:function(){return r},ut:function(){return i}}),s(34155);let i="reminder_test",t={starter:{name:"Starter",courseLimit:1,monthlyDisplayGbp:16,annualBilledMonthlyGbp:16,checkoutEnabled:!0},professional:{name:"Professional",courseLimit:5,monthlyDisplayGbp:59,annualBilledMonthlyGbp:59,checkoutEnabled:!0},enterprise:{name:"Enterprise",courseLimit:999,monthlyDisplayGbp:199,annualBilledMonthlyGbp:199,checkoutEnabled:!1},reminder_test:{name:"Reminder test",courseLimit:5,monthlyDisplayGbp:1,annualBilledMonthlyGbp:1,
1checkoutEnabled:!0}};function l(e,n){if("starter"===e||"professional"===e||"enterprise"===e||e===i)return e;if("number"==typeof n){if(n>=999)return"enterprise";if(n>=5)return"professional"}return"starter"}function r(e,n){return t[l(e,n)].name}},96392:function(e,n,s){"use strict";s.r(n),s.d(n,{default:function(){return N}});var i=s(85893),t=s(9008),l=s.n(t),r=s(41664),a=s.n(r),c=s(11163),o=s(67294),u=s(91291),d=s(35861),h=s(67067),p=s(64745),m=s(15406),b=s(38052),f=s(77131),x=s(88404);function g(e){var n,s,i;let t="object"==typeof e.description?null===(n=e.description)||void 0===n?void 0:n.title:void 0;return t||e.title||"Course ".concat(null!==(i=null!==(s=e.course_id)&&void 0!==s?s:e.id)&&void 0!==i?i:"")}function j(e){var n;let s=null!==(n=e.course_id)&&void 0!==n?n:e.id;return"number"==typeof s?s:null}function w(e){let n=g(e);return"Pharmacovigilance"===e.category&&e.language?"".concat(n," (").concat(e.language,")"):n}function S(e){if(!e.language)return null;if("GCP"===e.category&&"GCP R3"===e.group)return"GCP|GCP R3|ICH GCP R3";let n=e.language.trim();if(!n)return null;let s=g(e).trim(),i=s.toLowerCase(),t=n.toLowerCase();for(let l of[" in ".concat(t)," (".concat(t,")")," - ".concat(t)])if(i.endsWith(l)){s=s.slice(0,s.length-l.length).trim();break}return"".concat(e.category||"other","|").concat(e.group||"ungrouped","|").concat(s.toLowerCase())}let v={GCP:"Good Clinical Practice",Pharmacovigilance:"Pharmacovigilance",GDP:"Good Distribution Practice",GMP:"Good Manufacturing Practice",MDR:"Medical Device Regulation",AI:"AI Clinical",GLP:"Good Laboratory Practice",COMPLIANCE:"Compliance & Ethics","Regulatory Affairs":"Regulatory Affairs","Research Compliance":"Research Compliance","Health & Safety":"Health & Safety",QA:"Quality Assurance",Biostatistics:"Biostatistics","Pharmaceutical Medicine":"Pharmaceutical Medicine",other:"Other Courses"};function y(e,n,s){let i=new Set,t=[];for(let l of e){if("all"!==s&&l.category!==s)continue;let r=n(l);!r||i.has(r)||(i.add(r),t.push(r))}return t}function N(){var e,n,s;let t=(0,c.useRouter)(),{token:r,user:N,authHydrated:_=!1}=(0,o.useContext)(d.S),{countryCode:C,countryName:k,loading:P,displayCurrencySymbol:L,convertToDisplayPrice:D}=(0,b.h)(),E=(0,f.Kg)(C),G=!P&&E,[B,M]=(0,o.useState)(1),[A,F]=(0,o.useState)(!1),[T,R]=(0,o.useState)("professional"),[z,H]=(0,o.useState)(null),[I,O]=(0,o.useState)([]),[W,Y]=(0,o.useState)([]),[q,J]=(0,o.useState)({}),[K,U]=(0,o.useState)(!0),[V,Q]=(0,o.useState)(!0),[X,$]=(0,o.useState)(!1),[Z,ee]=(0,o.useState)(null),[en,es]=(0,o.useState)("all"),[ei,et]=(0,o.useState)("all"),[el,er]=(0,o.useState)(""),ea=(0,o.useRef)(!1),ec="1"===t.query.canceled,eo=(0,o.useCallback)(async()=>{if(!r){H(null),U(!1);return}try{let e=await fetch("".concat(p.Mr,"/subscription/me"),{headers:{Authorization:"Bearer ".concat(r)}}),n=await e.json();H(n)}catch(s){H(null)}finally{U(!1)}},[r]);async function eu(){Q(!0);try{O((0,h.yh)())}catch(e){O([])}finally{Q(!1)}}(0,o.useEffect)(()=>{eo()},[eo]),(0,o.useEffect)(()=>{eu()},[]),(0,o.useEffect)(()=>{if(_&&!P){if(!r){t.replace("/login?redirect=".concat(encodeURIComponent("/subscription")));return}G||t.replace("/")}},[_,P,r,G,t]),(0,o.useEffect)(()=>{if(!_||!r||!G||ea.current)return;ea.current=!0;let e="undefined"!=typeof document&&document.referrer||void 0;fetch("".concat(p.Mr,"/page-visits"),{method:"POST",headers:{Authorization:"Bearer ".concat(r),"Content-Type":"application/json"},body:JSON.stringify({pageKey:"subscription",page:"/subscription",country:C||void 0,countryName:k||void 0,referrer:e})}).catch(()=>{})},[_,r,G,C,k]);let ed=m.BH[T].courseLimit,eh=A?"year":"month",ep=(0,o.useMemo)(()=>y(I,e=>e.category,"all").sort((s,i)=>(null!==(e=v[s])&&void 0!==e?e:s).localeCompare(null!==(n=v[i])&&void 0!==n?n:i)),[I]),em=(0,o.useMemo)(()=>y(I,e=>e.group,en),[I,en]),eb="all"!==ei&&em.includes(ei)?ei:null;(0,o.useEffect)(()=>{"all"===ei||em.includes(ei)||et("all")},[ei,em]);let ef=(0,o.useMemo)(()=>{let e=el.trim().toLowerCase();return I.filter(n=>{if("all"!==en&&n.category!==en||eb&&n.group!==eb)return!1;if(e){let s=g(n).toLowerCase();if(!s.includes(e))return!1}return!0})},[I,en,eb,el]),ex=(0,o.useMemo)(()=>{let e=[],n=new Map,s=new Set;for(let i of ef){let t=j(i);if(null==t)continue;let l=S(i);if(!l)continue;let r=n.get(l)||[];r.push({id:t,label:i.language||"Language",course:i}),n.set(l,r)}for(let a of ef){let c=j(a);if(null==c)continue;let o=S(a),u=o&&n.get(o)||[],d=new Set(u.map(e=>e.label.toLowerCase())).size,h=d>1;if(o&&h){if(s.has(o))continue;s.add(o);let p=u.find(e=>"english"===e.label.toLowerCase())||u[0];
1e.push({key:"lang-".concat(o),baseCourse:p.course,languageOptions:u});continue}e.push({key:function(e){var n;return e.link||String(null!==(n=j(e))&&void 0!==n?n:"")}(a),baseCourse:a,languageOptions:null})}return e},[ef]),eg=()=>{es("all"),et("all"),er("")},ej=e=>{let n=m.BH[e];return e===m.ut?n.monthlyDisplayGbp:A?12*n.annualBilledMonthlyGbp:n.monthlyDisplayGbp},ew=e=>D(e).toLocaleString("en"),eS=T===m.ut,ev=eS?"/day":A?"/year":"/month",ey=e=>{Y(n=>n.includes(e)?n.filter(n=>n!==e):n.length>=ed?n:[...n,e])},eN=(e,n,s)=>{n!==s&&(J(n=>({...n,[e]:s})),Y(e=>{if(!e.includes(n))return e;let i=e.filter(e=>e!==n);return i.includes(s)||i.length>=ed?i:[...i,s]}))},e_=async()=>{if(ee(null),"enterprise"!==T){if(W.length<1||W.length>ed){ee("Select between 1 and ".concat(ed," course(s)."));return}$(!0);try{let e=await fetch("".concat(p.Mr,"/subscription/checkout"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(r)},body:JSON.stringify({plan:T,interval:eh,courseIds:W,countryCode:C,marketingAttribution:(0,x.id)()})}),n=await e.json();if(!e.ok){ee((null==n?void 0:n.error)||"Could not start checkout.");return}let s=null!==p.Yw&&void 0!==p.Yw?p.Yw:"";if(!s){ee("Stripe publishable key is not configured.");return}let i=await (0,u.J)(s);i&&n.id&&await i.redirectToCheckout({sessionId:n.id})}catch(t){ee((null==t?void 0:t.message)||"Checkout failed.")}finally{$(!1)}}},eC=e=>{if("enterprise"===e){t.push("/contact");return}R(e),Y([]),J({}),es("all"),et("all"),M(2)},ek=null==z?void 0:z.subscription;return _?r&&G?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l(),{children:[(0,i.jsx)("title",{children:"Subscriptions â Whitehall Training"}),(0,i.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,i.jsx)("link",{href:"https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:opsz,[email protected],300;9..40,400;9..40,500;9..40,600&display=swap",rel:"stylesheet"})]}
1),(0,i.jsxs)("div",{className:"whSubscriptionPage",children:[(0,i.jsx)("div",{className:"whSub_progress",children:(0,i.jsx)("div",{className:"whSub_progressFill",style:{width:"".concat(1===B?33:66,"%")}})}),(0,i.jsxs)("div",{className:"whSub_steps",children:[(0,i.jsxs)("div",{className:"whSub_step ".concat(1===B?"active":"done"),onClick:()=>M(1),role:"button",tabIndex:0,onKeyDown:e=>"Enter"===e.key&&M(1),children:[(0,i.jsx)("span",{className:"whSub_stepNum",children:"1"}),(0,i.jsx)("span",{children:"Choose plan"})]}),(0,i.jsx)("span",{style:{opacity:.35},children:"âº"}),(0,i.jsxs)("div",{className:"whSub_step ".concat(2===B?"active":""),children:[(0,i.jsx)("span",{className:"whSub_stepNum",children:"2"}),(0,i.jsx)("span",{children:"Courses & pay"})]})]}),(0,i.jsxs)("div",{children:[ec&&(0,i.jsx)("div",{className:"whSub_banner",style:{marginTop:16},children:"Checkout was cancelled. You can try again when you are ready."}),!K&&r&&(null==z?void 0:z.hasSubscription)&&ek&&(0,i.jsxs)("div",{className:"whSub_banner",children:["You have an active"," ",(0,i.jsx)("strong",{children:(0,m.tL)(ek.plan,ek.courseLimit)})," ","subscription","pending_course_selection"===ek.selectionStatus&&(0,i.jsxs)(i.Fragment,{children:[" ","â ",(0,i.jsx)("strong",{children:"select your courses this period"})]}),ek.nextPeriodSelectionOpen&&(0,i.jsxs)(i.Fragment,{children:[" ","â ",(0,i.jsx)("strong",{children:"choose courses for next period"})]})," ",ek.currentPeriodEnd&&(0,i.jsxs)("span",{children:["(current period ends"," ",new Date(ek.currentPeriodEnd).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}),ek.cancelAtPeriodEnd?" \xb7 then cancels":"",")"]}),". ",(0,i.jsx)(a(),{href:"/profile",children:"Account"})]}),!K&&r&&z&&!z.hasSubscription&&(0,i.jsxs)("div",{className:"whSub_banner",children:["You are signed in as a learner. Subscribe below to access included courses each period, or"," ",(0,i.jsx)(a(),{href:"/course-finder",children:"buy individual courses"}),"."]}),1===B&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"whSub_hero",children:[(0,i.jsx)("div",{className:"whSub_eyebrow",children:"⦠Subscriptions"}),(0,i.jsxs)("h1",{className:"whSub_title",children:["Continuous learning,",(0,i.jsx)("br",{}),(0,i.jsx)("em",{children:"always current"})]}),(0,i.jsx)("p",{className:"whSub_sub",children:"GCP, PV, GMP, GDP, MDR & AI Clinical â stay ahead of regulatory change."}),(0,i.jsxs)("p",{className:"whSub_sub",style:{marginTop:2,fontSize:13,fontWeight:600,color:"var(--wh-accent)"},children:["To ensure you get the full benefit of the platform, the subscription includes a minimum usage period of ",90," days. Following this period, you are free to cancel your subscription whenever needed."," ","View "," ",(0,i.jsx)(a(),{href:"/faq#subscription-terms-and-conditions",children:"Terms & Conditions"}),"."]})]}),(0,i.jsxs)("div",{className:"whSub_plans",children:[(0,i.jsxs)("div",{className:"whSub_billing",children:[(0,i.jsx)("span",{className:A?"":"active-label",children:"Monthly"}),(0,i.jsx)("button",{type:"button",className:"whSub_toggle ".concat(A?"annual":""),onClick:()=>F(!A),"aria-label":"Toggle annual billing",children:(0,i.jsx)("span",{className:"whSub_knob"})}),(0,i.jsx)("span",{className:A?"active-label":"",children:"Annual"}),(0,i.jsx)("span",{className:"whSub_save",children:"Save vs monthly"})]}),(0,i.jsx)("div",{className:"whSub_grid",children:["starter","professional","enterprise"].map(e=>{let n=m.BH[e];return(0,i.jsxs)("div",{className:"whSub_planCard ".concat("professional"===e?"featured":""," ").concat(T===e?"selected":""),onClick:()=>{if("enterprise"===e){t.push("/contact");return}R(e)},role:"presentation",children:["professional"===e&&(0,i.jsx)("div",{className:"whSub_badge",children:"Most popular"}),"enterprise"===e&&(0,i.jsx)("div",{className:"whSub_badge gold",children:"Teams"}),(0,i.jsx)("div",{style:{fontSize:22,marginBottom:4},children:"starter"===e?"\uD83C\uDF93":"professional"===e?"\uD83C\uDFC5":"\uD83C\uDFE2"}),(0,i.jsx)("div",{className:"whSub_planName",children:n.name}),(0,i.jsxs)("div",{className:"whSub_tagline",children:["starter"===e&&"For individuals needing one core certification","professional"===e&&"For compliance professionals","enterprise"===e&&"For teams and organisations"]}),(0,i.jsxs)("div",{className:"whSub_priceRow",children:[P?(0,i.jsx)("span",{className:"whSub_amount",children:"â¦"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"whSub_currency",children:L}),(0,i.jsx)("span",{className:"whSub_amount",children:ew(ej(e))})]}),(0,i.jsx)("span",{className:"whSub_period",children:ev})]}),(0,i.jsx)("div",{className:"whSub_note",children:"\xa0"}),(0,i.jsx)("hr",{className:"whSub_divider"}),(0,i.jsxs)("ul",{className:"whSub_features",children:[(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"whSub_ok",children:"â"}),(0,i.jsxs)("span",{children:[(0,i.jsx)("strong",{children:999===n.courseLimit?"Unlimited":n.courseLimit})," ","course",1===n.courseLimit?"":"s"," / period"]})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"whSub_ok",children:"â"}),(0,i.jsx)("span",{children:"CPD certificates"})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"whSub_ok",children:"â"}),(0,i.jsx)("span",{children:"Progress tracking"})]})]}),(0,i.jsx)("button",{type:"button",className:"whSub_btn ".concat("professional"===e?"primary":"enterprise"===e?"gold":"outline"),onClick:n=>{n.stopPropagation(),eC(e)},children:"enterprise"===e?"Contact us":"Continue"})]},e)})}),(null==z?void 0:z.reminderTestAvailable)&&(0,i.jsxs)("div",{className:"whSub_planCard ".concat(T===m.ut?"selected":""),style:{marginTop:16,maxWidth:360},onClick:()=>R(m.ut),role:"presentation",children:[(0,i.jsx)("div",{className:"whSub_badge",children:"Internal test"}),(0,i.jsx)("div",{className:"whSub_planName",children:m.BH[m.ut].name}),(0,i.jsx)("div",{className:"whSub_tagline",children:"Daily billing â reminder and next-period pre-select only"}),(0,i.jsxs)("div",{className:"whSub_priceRow",children:[P?(0,i.jsx)("span",{className:"whSub_amount",children:"â¦"}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"whSub_currency",children:L}),(0,i.jsx)("span",{className:"whSub_amount",children:ew(ej(m.ut))})]}),(0,i.jsx)("span",{className:"whSub_period",children:"/day"})]}),(0,i.jsx)("hr",{className:"whSub_divider"}),(0,i.jsxs)("ul",{className:"whSub_features",children:[(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"whSub_ok",children:"â"}),(0,i.jsxs)("span",{children:[(0,i.jsx)("strong",{children:m.BH[m.ut].courseLimit})," ","courses / period"]})]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("span",{className:"whSub_ok",children:"â"}),(0,i.jsx)("span",{children:"Next-period window opens immediately"})]})]}),(0,i.jsx)("button",{type:"button",className:"whSub_btn outline",onClick:e=>{e.stopPropagation(),eC(m.ut)},children:"Continue"})]})]})]}),2===B&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"whSub_hero",style:{padding:"28px 20px 24px"},children:[(0,i.jsx)("div",{className:"whSub_eyebrow",children:"Step 2"}),(0,i.jsxs)("h1",{className:"whSub_title",style:{fontSize:28},children:["Choose your ",(0,i.jsx)("em",{children:"courses"})]}),(0,i.jsxs)("p",{className:"whSub_sub",style:{fontSize:14},children:["Pick up to ",ed," course(s) for this subscription. You can change selection rules each billing period after renewal (see subscription docs)."]})]}),(0,i.jsxs)("div",{className:"whSub_courseWrap",children:[(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"whSub_compare",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{style:{fontSize:12,color:"var(--wh-muted)"},children:"Your plan"}),(0,i.jsxs)("div",{style:{fontWeight:700,color:"var(--wh-navy)",fontSize:15},children:[m.BH[T].name," â"," ",L,ew(ej(T)),ev]})]}),(0,i.jsx)("button",{type:"button",className:"whSub_changePlan",onClick:()=>M(1),children:"â Change plan"})]}),(0,i.jsx)("h2",{className:"whSub_sectionTitle",children:"Available courses"}),(0,i.jsx)("p",{className:"whSub_sectionSub",children:V?"Loading c
1atalogueâ¦":"".concat(ex.length," courses loaded.")}),(0,i.jsxs)("div",{className:"whSub_filters",children:[(0,i.jsxs)("div",{className:"whSub_filtersHeader",children:[(0,i.jsx)("span",{children:"Filter courses"}),(0,i.jsx)("button",{type:"button",className:"whSub_filterClear",onClick:eg,disabled:"all"===en&&"all"===ei&&0===el.trim().length,children:"Clear filters"})]}),(0,i.jsxs)("label",{className:"whSub_filterField",children:[(0,i.jsx)("span",{children:"Course title"}),(0,i.jsx)("input",{type:"text",value:el,onChange:e=>er(e.target.value),placeholder:"Search by title","aria-label":"Search courses by title"})]}),(0,i.jsxs)("label",{className:"whSub_filterField",children:[(0,i.jsx)("span",{children:"Category"}),(0,i.jsxs)("select",{value:en,onChange:e=>{es(e.target.value),et("all")},children:[(0,i.jsx)("option",{value:"all",children:"All categories"}),ep.map(e=>(0,i.jsx)("option",{value:e,children:null!==(s=v[e])&&void 0!==s?s:e},e))]})]}),(0,i.jsxs)("label",{className:"whSub_filterField",children:[(0,i.jsx)("span",{children:"Group"}),(0,i.jsxs)("select",{value:ei,onChange:e=>et(e.target.value),disabled:0===em.length,children:[(0,i.jsx)("option",{value:"all",children:"All groups"}),em.map(e=>(0,i.jsx)("option",{value:e,children:e},e))]},"".concat(en,"-group"))]})]}),(0,i.jsx)("div",{className:"whSub_courseList",children:ex.map(e=>{var n,s;let t=e.languageOptions,l=null!=t?t:[],r=l.find(e=>"english"===e.label.toLowerCase())||l[0]||null,a=t?null!==(s=q[e.key])&&void 0!==s?s:null==r?void 0:r.id:null,c=t&&((null===(n=l.find(e=>e.id===a))||void 0===n?void 0:n.course)||(null==r?void 0:r.course))||e.baseCourse,o=j(c);if(null==o)return null;let u=W.includes(o),d=W.length>=ed&&!u,h=Boolean(t)&&((null==t?void 0:t.length)||0)>1,p=l.length;return(0,i.jsxs)("div",{className:"whSub_courseRow ".concat(u?"selected":""," ").concat(d?"dim":""," ").concat(h?"withLanguage":""),children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"whSub_courseName",children:c.link?(0,i.jsx)("a",{href:c.link,target:"_blank",rel:"noopener noreferrer",className:"whSub_courseLink",onClick:e=>e.stopPropagation(),children:w(c)}):w(c)}),(0,i.jsxs)("div",{className:"whSub_meta",children:[c.duration&&(0,i.jsxs)("span",{children:["â± ",c.duration," "]}),null!=c.points&&(0,i.jsxs)("span",{children:["\uD83C\uDFC6 ",c.points," CPD"]})," ",c.level&&(0,i.jsx)("span",{className:"whSub_courseLevel ".concat(function(e){let n=(e||"").toLowerCase();return n.includes("professional")?"levelProfessional":n.includes("beginner")&&n.includes("intermediate")?"levelBeginnerIntermediate":n.includes("intermediate")?"levelIntermediate":n.includes("beginner")?"levelBeginner":""}(c.level)).trim(),children:c.level.charAt(0).toUpperCase()+c.level.slice(1)})]}),h&&(0,i.jsxs)("label",{className:"whSub_courseLanguage",children:[(0,i.jsxs)("span",{children:["Choose language (",p," ","options)"]}),(0,i.jsx)("select",{value:String(a),onChange:n=>eN(e.key,o,Number(n.target.value)),onClick:e=>e.stopPropagation(),children:l.map(e=>(0,i.jsx)("option",{value:e.id,children:e.label},e.id))})]})]}),(0,i.jsx)("button",{type:"button",className:"whSub_add",disabled:d,onClick:()=>ey(o),"aria-label":u?"Remove course":"Add course",children:u?"\xd7":"+"})]},e.key)})})]}),(0,i.jsxs)("aside",{className:"whSub_summary",children:[(0,i.jsx)("div",{className:"whSub_sumTitle",children:"Your subscription"}),(0,i.jsxs)("div",{className:"whSub_sumLine",children:[(0,i.jsx)("span",{children:m.BH[T].name}),(0,i.jsxs)("span",{children:[L,ew(ej(T)),eS?"/day":A?"/yr":"/mo"]})]}),(0,i.jsxs)("div",{style:{fontSize:12,color:"var(--wh-muted)",marginBottom:8},children:["Selected (",W.length,"/",ed,"):"]}),(0,i.jsxs)("div",{className:"whSub_selList",children:[0===W.length&&(0,i.jsx)("span",{style:{color:"var(--wh-muted)",fontStyle:"italic"},children:"No courses yet"}),W.map(e=>{let n=I.find(n=>j(n)===e);return(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)("span",{className:"whSub_selTitle",children:n?w(n):e}),(0,i.jsx)("button",{type:"button",className:"whSub_changePlan",onClick:()=>ey(e),children:"\xd7"})]},e)})]}),(0,i.jsx)("hr",{className:"whSub_divider",style:{borderStyle:"dashed"}}),(0,i.jsxs)("div",{className:"whSub_sumLine total",children:[(0,i.jsx)("span",{children:"Due at Stripe"}),(0,i.jsx)("span",{children:"Checkout â"})]}),Z&&(0,i.jsx)("p",{style:{color:"var(--wh-error)",fontSize:13,marginTop:8},children:Z}),(0,i.jsx)("button",{type:"button",className:"whSub_btn primary",style:{marginTop:14},disabled:X||W.length<1,onClick:e_,children:X?"Redirectingâ¦":"Continue to secure checkout"}),(0,i.jsx)("p",{className:"whSub_noteSmall",children:"Billing is processed by Stripe. Price
1s exclude VAT where applicable."})]})]})]})]})]})]}):null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l(),{children:(0,i.jsx)("title",{children:"Subscriptions â Whitehall Training"})}),(0,i.jsx)("div",{className:"container py-5 text-center text-muted",children:"Loadingâ¦"})]})}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=58333)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.