1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8962],{6462:(e,t,n)=>{Promise.resolve().then(n.bind(n,46160)),Promise.resolve().then(n.t.bind(n,6874,23)),Promise.resolve().then(n.bind(n,98706)),Promise.resolve().then(n.bind(n,37205))},18986:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(32850);function a(e,t,n,a){if(!e||a===n||null==a||!t)return;let l=(0,r.DT)(t),{name:i,...o}=e;o.path||(o.path=""!==l?l:"/");let s=`${i}=${a};`;for(let[e,t]of Object.entries(o))s+=`${"maxAge"===e?"max-age":e}`,"boolean"!=typeof t&&(s+="="+t),s+=";";document.cookie=s}},23225:(e,t,n)=>{"use strict";n.d(t,{FD:()=>y,MY:()=>l,PJ:()=>i,Wl:()=>s,XP:()=>f,_x:()=>a,bL:()=>h,po:()=>c,ql:()=>u,wO:()=>o,yL:()=>g});var r=n(49509);function a(e){return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&!function(e){let t="object"==typeof e?e.pathname:e;return null!=t&&!t.startsWith("/")}(e)}function l(e,t){return e.replace(RegExp(`^${t}`),"")||"/"}function i(e,t){let n=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),n+=t}function o(e,t){return t===e||t.startsWith(`${e}/`)}function s(e,t,n){return"string"==typeof e?e:e[t]||n}function c(e){let t=function(){try{return"true"===r.env._next_intl_trailing_slash}catch{return!1}}();if("/"!==e){let n=e.endsWith("/");t&&!n?e+="/":!t&&n&&(e=e.slice(0,-1))}return e}function u(e,t){let n=c(e),r=c(t);return(function(e){let t=e.replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"?(.*)").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)");return RegExp(`^${t}$`)})(n).test(r)}function f(e,t){return"never"!==t.mode&&t.prefixes?.[e]||h(e)}function h(e){return"/"+e}function m(e){return e.includes("[[...")}function d(e){return e.includes("[...")}function p(e){return e.includes("[")}function x(e,t){let n=e.split("/"),r=t.split("/"),a=Math.max(n.length,r.length);for(let e=0;e<a;e++){let t=n[e],a=r[e];if(!t&&a)return -1;if(t&&!a)return 1;if(t||a){if(!p(t)&&p(a))return -1;if(p(t)&&!p(a))return 1;if(!d(t)&&d(a))return -1;if(d(t)&&!d(a))return 1;if(!m(t)&&m(a))return -1;if(m(t)&&!m(a))return 1}}return 0}function y(e){return e.sort(x)}function g(e){return"function"==typeof e.then}},32850:(e,t,n)=>{"use strict";n.d(t,{DT:()=>s,FP:()=>i,TK:()=>a,Zn:()=>l,aM:()=>o,x3:()=>c});var r=n(23225);function a(e){return"string"==typeof e?{pathname:e}:e}function l(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.append(n,String(e))}):t.set(n,String(r));return"?"+t.toString()}function i({pathname:e,locale:t,params:n,pathnames:a,query:i}){function o(e){let t=a[e];return t||(t=e),t}function s(e,a){let o=(0,r.Wl)(e,t,a);return n&&Object.entries(n).forEach(([e,t])=>{let n,r;Array.isArray(t)?(n=`(\\[)?\\[...${e}\\](\\])?`,r=t.map(e=>String(e)).join("/")):(n=`\\[${e}\\]`,r=String(t)),o=o.replace(RegExp(n,"g"),r)}),o=o.replace(/\[\[\.\.\..+\]\]/g,""),o=(0,r.po)(o),i&&(o+=l(i)),o}if("string"==typeof e)return s(o(e),e);{let{pathname:t,...n}=e;return{...n,pathname:s(o(t),t)}}}function o(e,t,n){let a=(0,r.FD)(Object.keys(n)),l=decodeURI(t);for(let t of a){let a=n[t];if("string"==typeof a){if((0,r.ql)(a,l))return t}else if((0,r.ql)((0,r.Wl)(a,e,t),l))return t}return t}function s(e,t=window.location.pathname){return"/"===e?t:t.replace(e,"")}function c(e,t,n,a){let l,{mode:i}=n.localePrefix;return void 0!==a?l=a:(0,r._x)(e)&&("always"===i?l=!0:"as-needed"===i&&(l=n.domains?!n.domains.some(e=>e.defaultLocale===t):t!==n.defaultLocale)),l?(0,r.PJ)((0,r.XP)(t,n.localePrefix),e):e}},37205:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var r=n(95155),a=n(8073);let l=e=>{let{children:t,delay:n=0}=e;return(0,r.jsx)(a.P.div,{initial:{opacity:0,y:100},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:n},children:t})}},46160:(e,t,n)=>{"use strict";n.d(t,{default:()=>c});var r=n(6874),a=n(35695),l=n(12115),i=n(53385),o=n(18986),s=n(95155),c=(0,l.forwardRef)(function(e,t){let{href:n,locale:l,localeCookie:c,onClick:u,prefetch:f,...h}=e,m=(0,i.Ym)(),d=null!=l&&l!==m,p=(0,a.usePathname)();return d&&(f=!1),(0,s.jsx)(r,{ref:t,href:n,hrefLang:d?l:void 0,onClick:function(e){(0,o.A)(c,p,m,l),u&&u(e)},prefetch:f,...h})})},59434:(e,t,n)=>{"use strict";n.d(t,{cn:()=>i,q:()=>o});var r=n(52596),a=n(39688),l=n(12115);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.QP)((0,r.$)(t))}function o(e){return e.split(/(<br\s*\/?>)/g).map((e,t)=>e.match(/<br\s*\/?>/)?l.createElement("br",{key:"br-".concat(t)}):e.split(/(\*\*.*?\*\*)/g).map((e,n)=>{if(e.startsWith("**")&&e.endsWith("**")){let r=e.slice(2,-2);return l.createElement("strong",{key:"".concat(t,"-").concat(n)},r)}return e})).flat()}},98706:(e,t,n)=>{"use strict";n.d(t,{default:()=>y});var r=n(95155),a=n(12115),l=n(66766),i=n(6874),o=n.n(i),s=n(59434),c=n(67269),u=n(27677);n(2252),n(26661);var f=n(8073);let h=function(e){let{children:t}=e,[n,l]=(0,a.useState)(!1);return(0,a.useEffect)(()=>
1{l(!0)},[]),(0,r.jsx)(f.P.div,{initial:{opacity:0,y:50},animate:{opacity:+!!n,y:50*!n},transition:{duration:.8,ease:"easeOut"},className:"",children:t})};var m=n(35695),d=n(38564);let p=function(e){let{testimonials:t}=e,n=(0,m.useRouter)(),a=(0,m.usePathname)(),i=a.includes("fitness")||a.includes("sport"),o=t.filter(e=>i?"fitness"===e.course:"cookery&hospitality"===e.course).filter(e=>e.message);if(0===o.length)return null;let s=()=>{n.push("/abm-student-insights")};return(0,r.jsx)("div",{className:"hidden md:block absolute bottom-40 md:right-4 lg:right-100 2xl:right-200 w-[280px] z-50",children:(0,r.jsx)(u.RC,{spaceBetween:0,className:"bg-black/60 overflow-hidden",modules:[c.Ij],autoplay:{delay:3e3,disableOnInteraction:!1},loop:!0,children:o.map(e=>(0,r.jsx)(u.qr,{children:(0,r.jsxs)("div",{onClick:s,className:"cursor-pointer px-20 pt-6",children:[(0,r.jsx)("div",{className:"flex justify-center mb-15",children:(0,r.jsx)("div",{className:"w-50 h-50 rounded-full overflow-hidden",children:(0,r.jsx)(l.default,{src:e.image,alt:e.name,width:60,height:60,className:"object-cover w-full h-full"})})}),e.rating&&(0,r.jsx)("div",{className:"flex justify-center mb-10",children:Array.from({length:e.rating}).map((e,t)=>(0,r.jsx)(d.A,{size:16,className:"fill-yellow-400 text-yellow-400"},t))}),(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsxs)("p",{className:"text-sm text-white mb-10 line-clamp-3",children:['"',e.message,'"']}),(0,r.jsxs)("p",{className:"text-xs text-gray-50 font-medium",children:["- ",e.name]})]})]})},e.id))})})};function x(){let[e,t]=(0,a.useState)([]),[n,l]=(0,a.useState)(!0);return((0,a.useEffect)(()=>{(async function(){try{let e=await fetch("/api/testimonials");if(e.ok){let n=await e.json();t(n)}}catch(e){console.error("Failed to fetch testimonials:",e)}finally{l(!1)}})()},[]),n)?null:(0,r.jsx)(p,{testimonials:e})}let y=function(e){let{slides:t,dimmed:n,isNeedContactBtn:i,hideBrochureButton:f=!1,autoplayDelay:m=4e3}=e,[d,p]=a.useState("common/ABM_Brochure_2026_final_web_f.pdf");a.useEffect(()=>{fetch("/api/site-settings?key=brochure_url").then(e=>e.json()).then(e=>{e.brochure_url&&p(e.brochure_url)}).catch(()=>{})},[]);let y=e=>(null==e?void 0:e.match(/\.(mp4|webm|ogg)$/i))||e.includes("youtube"),g=e=>{if(!e.includes("youtube.com/embed/"))return null;let t=e.match(/youtube\.com\/embed\/([^?&]+)/);return t?t[1]:null},b=e=>{if(!e||e.startsWith("/")||e.startsWith("./"))return{type:"direct",value:e};if(!e.startsWith("http://")&&!e.startsWith("https://"))return{type:"key",value:e};try{if(new URL(e).searchParams.has("X-Amz-Algorithm"))return{type:"signed-url",value:e};return{type:"direct",value:e}}catch(t){return{type:"direct",value:e}}},w=async()=>{let e=window.open("","_blank");e&&(e.document.title="Loading...");try{let t=b(d);if("direct"===t.type){e?e.location.href=d:window.open(d,"_blank");return}let n="key"===t.type?"key=".concat(encodeURIComponent(t.value)):"url=".concat(encodeURIComponent(t.value)),r=await fetch("/api/r2/get-url?".concat(n)),a=await r.json(),l=null==a?void 0:a.url;if(!r.ok||!l)throw Error("Failed to refresh brochure URL");e?e.location.href=l:window.open(l,"_blank")}catch(t){e?e.location.href=d:window.open(d,"_blank")}},v=async e=>{e.preventDefault(),await w()};return(0,r.jsxs)("div",{className:"w-full h-[calc(100vh-160px)] md:h-700 relative",children:[(0,r.jsx)(u.RC,{navigation:!0,modules:[c.Vx,c.Ij,c.dK,c.Ze],autoplay:{delay:m,disableOnInteraction:!1},loop:!0,pagination:{clickable:!0},className:"w-full h-full",slidesPerView:1,children:t.map((e,t)=>(0,r.jsxs)(u.qr,{className:"relative",children:[n&&n,y(e.imgPath)?(0,r.jsx)("iframe",{className:"w-full h-full",src:(()=>{let t=g(e.imgPath);if(t){let n=e.imgPath.includes("?")?"&":"?";return"".concat(e.imgPath).concat(n,"autoplay=1&mute=1&loop=1&playlist=").concat(t,"&controls=0")}return"".concat(e.imgPath,"&autoplay=1&mute=1&loop=1&controls=0")})(),title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0}
1):(0,r.jsx)(l.default,{src:e.imgPath,alt:"banner_image",fill:!0,quality:100,className:"md:object-center object-cover"}),(0,r.jsxs)("div",{className:"absolute px-40 md:px-80 inset-0 flex flex-col justify-end z-20 pb-50",children:[(0,r.jsxs)(h,{children:[(0,r.jsx)("h1",{className:(0,s.cn)("text-white text-4xl md:text-6xl font-bold drop-shadow-lg max-w-1000",i?"pb-50":"pb-0"),children:e.title}),e.subtitle&&(0,r.jsx)("h2",{className:"font-[family-name:var(--font-montserrat)] text-white text-xl md:text-2xl font-bold drop-shadow-lg max-w-1000 pt-10",children:e.subtitle}),e.content&&(0,r.jsx)("p",{className:"font-[family-name:var(--font-montserrat)] text-white text-base leading-tight md:text-2xl drop-shadow-lg max-w-1000 pt-10 font-normal whitespace-pre-line",children:e.content})]}),!f&&(e.linkButton?(0,r.jsx)(o(),{target:e.linkButton.target||"_blank",href:e.linkButton.href,className:"font-[family-name:var(--font-montserrat)] text-white! py-10 px-20 bg-primary text-center md:w-max h-max mt-20 hover:bg-primary-bk transition-all",children:e.linkButton.text}):(0,r.jsx)(o(),{target:"_blank",href:d,rel:"noopener noreferrer",onClick:v,className:"font-[family-name:var(--font-montserrat)] text-white! py-10 px-20 bg-primary text-center md:w-max h-max mt-20 hover:bg-primary-bk transition-all",children:"ABM Course Guide 2026"}))]})]},t))}),(0,r.jsx)(x,{})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[8118,6874,3063,1084,8073,4906,3385,8441,1684,7358],()=>t(6462)),_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.