1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8317],{38317:function(e,t,n){n.r(t),n.d(t,{default:function(){return D}});var i=n(67251),o=n(45113);let a=(0,n(44542).Z)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);var r=n(52106),s=n(95142),l=n(65749);let c=e=>{let{className:t}=e;return(0,i.jsxs)("svg",{className:t,width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("mask",{id:"mask0_1738_806",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:(0,i.jsx)("path",{d:"M0 0H32V32H0V0Z",fill:"white"})}),(0,i.jsx)("g",{mask:"url(#mask0_1738_806)",children:(0,i.jsx)("path",{d:"M25.8892 8.90403C27.2626 10.3627 27.9999 11.9987 27.9999 14.6507C27.9999 19.028 25.1186 22.9787 20.8292 25.1587C20.5892 25.2766 20.314 25.3012 20.0568 25.2278C19.7997 25.1544 19.5789 24.9882 19.4372 24.7614C19.0772 24.2054 19.2719 23.464 19.8266 23.104C23.3599 20.804 24.1146 18.0374 24.4319 16.236C23.7159 16.6067 22.7786 16.736 21.8599 16.6507C19.4546 16.428 17.5586 14.4534 17.5586 11.9987C17.5586 10.761 18.0502 9.57404 18.9254 8.69887C19.8006 7.8237 20.9876 7.33203 22.2252 7.33203C23.6559 7.33203 25.0239 7.98536 25.8892 8.90403ZM12.5559 8.90403C13.9292 10.3627 14.6666 11.9987 14.6666 14.6507C14.6666 19.028 11.7852 22.9787 7.4959 25.1587C7.25585 25.2766 6.98062 25.3012 6.72347 25.2278C6.46633 25.1544 6.24556 24.9882 6.1039 24.7614C5.7439 24.2054 5.93856 23.464 6.49323 23.104C10.0266 20.804 10.7812 18.0374 11.0986 16.236C10.3826 16.6067 9.44523 16.736 8.52656 16.6507C6.12123 16.428 4.22656 14.4534 4.22656 11.9987C4.22656 10.761 4.71823 9.57404 5.5934 8.69887C6.46857 7.8237 7.65555 7.33203 8.89323 7.33203C10.3239 7.33203 11.6919 7.98536 12.5572 8.90403H12.5559Z",fill:"#1B2124"})})]})};var u=n(13328),m=n(77157);let d={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function p(e={}){let t,n,i,o;let a=null,r=0,s=!1,l=!1,c=!1,u=!1;function m(){if(!i){if(v()){c=!0;return}s||n.emit("autoplay:play"),function(){let{ownerWindow:e}=n.internalEngine();e.clearTimeout(r),r=e.setTimeout(y,o[n.selectedScrollSnap()]),a=new Date().getTime(),n.emit("autoplay:timerset")}(),s=!0}}function f(){i||(s&&n.emit("autoplay:stop"),function(){let{ownerWindow:e}=n.internalEngine();e.clearTimeout(r),r=0,a=null,n.emit("autoplay:timerstopped")}(),s=!1)}function h(){if(v())return c=s,f();c&&m()}function v(){let{ownerDocument:e}=n.internalEngine();return"hidden"===e.visibilityState}function x(){l||f()}function g(){l||m()}function w(){l=!0,f()}function b(){l=!1,m()}function y(){let{index:e}=n.internalEngine(),i=e.clone().add(1).get(),o=n.scrollSnapList().length-1,a=t.stopOnLastSnap&&i===o;if(n.canScrollNext()?n.scrollNext(u):n.scrollTo(0,u),n.emit("autoplay:select"),a)return f();m()}return{name:"autoplay",options:e,init:function(a,r){n=a;let{mergeOptions:s,optionsAtMedia:l}=r,c=s(d,p.globalOptions);if(t=l(s(c,e)),n.scrollSnapList().length<=1)return;u=t.jump,i=!1,o=function(e,t){let n=e.scrollSnapList();return"number"==typeof t?n.map(()=>t):t(n,e)}(n,t.delay);let{eventStore:v,ownerDocument:y}=n.internalEngine(),M=!!n.internalEngine().options.watchDrag,E=function(e,t){let n=e.rootNode();return t&&t(n)||n}(n,t.rootNode);v.add(y,"visibilitychange",h),M&&n.on("pointerDown",x),M&&!t.stopOnInteraction&&n.on("pointerUp",g),t.stopOnMouseEnter&&v.add(E,"mouseenter",w),t.stopOnMouseEnter&&!t.stopOnInteraction&&v.add(E,"mouseleave",b),t.stopOnFocusIn&&n.on("slideFocusStart",f),t.stopOnFocusIn&&!t.stopOnInteraction&&v.add(n.containerNode(),"focusout",m),t.playOnInit&&m()},destroy:function(){n.off("pointerDown",x).off("pointerUp",g).off("slideFocusStart",f),f(),i=!0,s=!1},play:function(e){void 0!==e&&(u=e),m()},stop:function(){s&&f()},reset:function(){s&&m()},isPlaying:function(){return s},timeUntilNext:function(){return a?o[n.selectedScrollSnap()]-(new Date().getTime()-a):null}}}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function h(e,t){if(e.length!==t.length)throw Error("vectors must be same length");return e.map(function(e,n){return e+t[n]})}function v(e){return Math.max.apply(Math,e.map(Math.abs))}function x(e){return Object.freeze(e),Object.values(e).forEach(function(e){null===e||"object"!=typeof e||Object.isFrozen(e)||x(e)}),e}p.globalOptions=void 0;var g=[1,18,"undefined"!=typeof window&&window.innerHeight||800],w=[-1,-1,-1],b=x({preventWheelAction:!0,reverseSign:[!0,!0,!1]});function y(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:400}}var M=function(e){void 0===e&&(e={});var t,n,i,o,a,r=function(){var e={};function t(t,n){e[t]=(e[t]||[]).filter(function(e){return e!==n})}return x({on:function(n,i){return e[n]=(e[n]||[]).concat(i),function(){return t(n,i)}},off:t,dispatch:function(t,n){t in e&&e[t].forEach(function(e){return e(n)})}})}(),s=r.on,l=r.off,c=r.dispatch,u=b,m=y(),d=!1,p=function(e){Array.isArray(e)?e.forEach(function(e){return N(e)}):N(e)},M=function(e){return(void 0===e&&(e={}),Object.values(e).some(function(e){return null==e}))?u:u=x(f({},b,u,e))},E=function(e){var t=f({event:o,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:m.isMomentum,axisDelta:[0,0,0],axisVelocity:m.axisVelocity,axisMovement:m.axisMovement,get axisMovementProjection(){return h(t.axisMovement,t.axisVelocity.map(function(e){var t;return void 0===t&&(t=.996),e*t/(1-t)}))}},e);c("wheel",f({},t,{previous:a})),a=t},j=function(e,t){var n=u.preventWheelAction,i=t[0],o=t[1],a=t[2];if("boolean"==typeof n)return n;switch(n){case"x":return Math.abs(i)>=e;case"y":return Math.abs(o)>=e;case"z":return Math.abs(a)>=e;default:return!1}},N=function(e){var t,n,i,a,r=(a=function(e,t){if(!t)return e;var n=!0===t?w:t.map(function(e){return e?-1:1});return f({},e,{axisDelta:e.axisDelta.map(function(e,t){return e*n[t]})})}((t=e.deltaX*g[e.deltaMode],n=e.deltaY*g[e.deltaMode],i=(e.deltaZ||0)*g[e.deltaMode],{timeStamp:e.timeStamp,axisDelta:[t,n,i]}),u.reverseSign),f({},a,{axisDelta:a.axisDelta.map(function(e){return Math.min(Math.max(-700,e),700)})})),s=r.axisDelta,l=r.timeStamp,c=v(s),p="boolean"==typeof e.momentum?e.momentum:void 0;if(e.preventDefault&&j(c,s)&&e.preventDefault(),m.isStarted?m.isMomentum&&(!1===p||void 0===p&&c>Math.max(2,2*m.lastAbsDelta))&&(L(!0),F()):F(),void 0===p&&0===c&&Object.is&&Object.is(e.deltaX,-0)){d=!0;return}o=e,void 0!==p&&(m.isMomentum=p,d=!1),m.axisMovement=h(m.axisMovement,s),m.lastAbsDelta=c,m.scrollPointsToMerge.push({axisDelta:s,timeStamp:l}),S(),E({axisDelta:s,isStart:!m.isStartPublished}),m.isStartPublished=!0,A()},S=function(){if(2===m.scrollPointsToMerge.length){var e;m.scrollPoints.unshift({axisDeltaSum:m.scrollPointsToMerge.map(function(e){return e.axisDelta}).reduce(h),timeStamp:(e=m.scrollPointsToMerge.map(function(e){return e.timeStamp})).reduce(function(e,t){return e+t})/e.length}),O(),m.scrollPointsToMerge.length=0,m.scrollPoints.length=1,m.isMomentum||"boolean"==typeof o.momentum||k()}
1else m.isStartPublished||C()},C=function(){var e;m.axisVelocity=(e=m.scrollPointsToMerge)[e.length-1].axisDelta.map(function(e){return e/m.willEndTimeout})},O=function(){var e=m.scrollPoints,t=e[0],n=e[1];if(n&&t){var i=t.timeStamp-n.timeStamp;if(!(i<=0)){var o=t.axisDeltaSum.map(function(e){return e/i}),a=o.map(function(e,t){return e/(m.axisVelocity[t]||1)});m.axisVelocity=o,m.accelerationFactors.push(a),D(i)}}},D=function(e){var t=12*Math.ceil(e/10);m.isMomentum||(t=Math.max(100,2*t)),m.willEndTimeout=Math.min(1e3,Math.round(t))},T=function(e){return 0===e||e<=.96&&e>=.6},k=function(){if(m.accelerationFactors.length>=5){if(d&&(d=!1,v(m.axisVelocity)>=.2)){P();return}var e=m.accelerationFactors.slice(-5);e.every(function(e){var t=!!e.reduce(function(e,t){return e&&e<1&&e===t?1:0}),n=e.filter(T).length===e.length;return t||n})&&P(),m.accelerationFactors=e}},P=function(){m.isMomentum=!0},F=function(){(m=y()).isStarted=!0,m.startTime=Date.now(),a=void 0,d=!1},A=function(){clearTimeout(t),t=setTimeout(L,m.willEndTimeout)},L=function(e){void 0===e&&(e=!1),m.isStarted&&(m.isMomentum&&e?E({isEnding:!0,isMomentumCancel:!0}):E({isEnding:!0}),m.isMomentum=!1,m.isStarted=!1)},U=(n=[],x({observe:function(e){return e.addEventListener("wheel",p,{passive:!1}),n.push(e),function(){return i(e)}},unobserve:i=function(e){e.removeEventListener("wheel",p),n=n.filter(function(t){return t!==e})},disconnect:function(){n.forEach(i)}})),Z=U.observe,_=U.unobserve,I=U.disconnect;return M(e),x({on:s,off:l,observe:Z,unobserve:_,disconnect:I,feedWheel:p,updateOptions:M})},E={active:!0,breakpoints:{},wheelDraggingClass:"is-wheel-dragging",forceWheelAxis:void 0,target:void 0};function j(e){void 0===e&&(e={});var t,n=function(){};return{name:"wheelGestures",options:e,init:function(i,o){var a,r,s,l=o.mergeOptions,c=o.optionsAtMedia,u=l(E,j.globalOptions);t=c(l(u,e));var m=i.internalEngine(),d=null!=(a=t.target)?a:i.containerNode().parentNode,p=null!=(r=t.forceWheelAxis)?r:m.options.axis,f=M({preventWheelAction:p,reverseSign:[!0,!0,!1]});function h(){b=("x"===p?m.containerRect.width:m.containerRect.height)/2}var v=f.observe(d),x=f.on("wheel",function(e){var i=e.axisDelta,o=i[0],a=i[1],r="x"===p?o:a,l="x"===p?a:o,c=e.isMomentum&&e.previous&&!e.previous.isMomentum,u=e.isEnding&&!e.isMomentum||c;!(Math.abs(r)>Math.abs(l))||g||e.isMomentum||y||function(e){try{s=new MouseEvent("mousedown",e.event),D(s)}catch(e){return n()}g=!0,w=0,document.documentElement.addEventListener("mousemove",C,!0),document.documentElement.addEventListener("mouseup",C,!0),document.documentElement.addEventListener("mousedown",C,!0),t.wheelDraggingClass&&d.classList.add(t.wheelDraggingClass)}(e),y&&e.isEnding&&(y=!1),g&&!function(e){var t=T(e),n=t.isAtBoundary,i=t.primaryAxisDelta;if(n&&!e.isMomentum){if((w+=Math.abs(i))>b)return y=!0,N(e),!0}else w=0;return!1}(e)&&(u?N(e):D(O("mousemove",e)))}),g=!1,w=0,b=0,y=!1;function N(e){g=!1,D(O("mouseup",e)),S(),t.wheelDraggingClass&&d.classList.remove(t.wheelDraggingClass)}function S(){document.documentElement.removeEventListener("mousemove",C,!0),document.documentElement.removeEventListener("mouseup",C,!0),document.documentElement.removeEventListener("mousedown",C,!0)}function C(e){g&&e.isTrusted&&e.stopImmediatePropagation()}function O(e,t){if(p===m.options.axis){var n,i,o=t.axisMovement;n=o[0],i=o[1]}else{var a=t.axisMovement;i=a[0],n=a[1]}if(T(t).isAtBoundary){var r=Math.min(w/b,1),l=w*(n>0?-1:1)*(.25+.5*r);n+=l,i+=l}if(!m.options.skipSnaps&&!m.options.dragFree){var c=m.containerRect.width,u=m.containerRect.height;n=n<0?Math.max(n,-c):Math.min(n,c),i=i<0?Math.max(i,-u):Math.min(i,u)}return new MouseEvent(e,{clientX:s.clientX+n,clientY:s.clientY+i,screenX:s.screenX+n,screenY:s.screenY+i,movementX:n,movementY:i,button:0,bubbles:!0,cancelable:!0,composed:!0})}function D(e){i.containerNode().dispatchEvent(e)}function T(e){var t=e.axisDelta,n=t[0],o=t[1],a=i.scrollProgress(),r="x"===p?n:o;return{isAtBoundary:r<0&&!(a<1)||r>0&&!(a>0),primaryAxisDelta:r}}h(),i.on("resize",h),n=function(){v(),x(),i.off("resize",h),S()}},destroy:function(){return n()}}}j.globalOptions=void 0;var N=n(66159),S=n(50123),C=n(64022);let O=e=>e.videoUrl?{url:e.videoUrl,type:l.EG.UPLOADED}:e.videoYoutubeUrl?{url:e.videoYoutubeUrl,type:l.EG.YOUTUBE}:null;var D=e=>{let{cards:t,carouselDuration:n}=e,[d,f]=(0,o.useState)(null),[h,v]=(0,o.useState)({}),{pageData:x}=(0,C.O)(),[g]=(0,m.Z)({loop:!1,align:"start",dragFree:!0},[p({delay:1e3*(n||4),stopOnInteraction:!1,stopOnMouseEnter:!0}),j()]);return t&&0!==t.length?(0,i.jsxs)("div",{className:"w-full gap-8",children:[(0,i.jsx)("div",{className:"",ref:g,children:(0,i.jsx)("div",{className:"flex md:gap-8 gap-4 items-start",children:t.map((e,t)=>{let n=O(e);return(0,i.jsxs)("article",{className:"relative flex flex-col rounded-2xl md:pt-3 pt-1 flex-[0_0_auto] bg-[#F8F8F8CC] w-[296px] md:w-[400px]",children:[e.description&&(0,i.jsxs)("div",{className:"flex flex-col py-3 md:px-6 px-4 md:gap-4 gap-3",children:[(0,i.jsx)("div",{"aria-hidden":!0,
1children:(0,i.jsx)(c,{className:"md:w-8 md:h-8 w-6 h-6"})}),(0,i.jsx)(u.Z,{variant:"regular",className:"text-[#3d3d3d]",weight:"medium",children:e.description})]}),n&&(0,i.jsx)("div",{className:"md:px-6 px-4 py-3",children:(0,i.jsxs)("button",{type:"button",className:"group relative w-full overflow-hidden rounded-xl cursor-pointer bg-[#EAECEF] hover:bg-[#33212433] aspect-[16/9] transition-colors duration-300",onClick:()=>{f(n),N.Z.videoTestimonialClicked({})},"aria-label":"Play video testimonial from ".concat(e.authorName),children:[(0,i.jsx)("span",{className:"absolute inset-0 flex items-center justify-center group-hover:bg-[#33212433] transition-all duration-300",children:(0,i.jsx)("span",{className:"flex items-center justify-center rounded-full w-10 h-10 text-white bg-[#1B2124] group-hover:ring-4 group-hover:ring-[#33212433] ring-0 ring-transparent transition-all duration-300",children:(0,i.jsx)(a,{size:20,fill:"white"})})}),e.videoThumbnail&&(0,i.jsx)(r.Z,{src:e.videoThumbnail,alt:"".concat(e.authorName," testimonial"),width:640,height:360,loading:"lazy",className:"w-full h-full object-cover"})]})}),(0,i.jsxs)("div",{className:"relative flex justify-between pt-3 md:pb-6 pb-3 md:px-6 px-4",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-[6px]",children:[(0,i.jsx)(u.Z,{variant:"heading4",weight:"semi-bold",className:"line-clamp-1 pr-4",children:(0,i.jsx)("span",{className:"text-[#1B2124]",children:e.authorName})}),(e.rank||e.course)&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("span",{className:"text-sm flex items-center gap-2 flex-wrap text-[#3d3d3d]",children:[(0,i.jsx)(u.Z,{variant:"regular",weight:"semi-bold",children:(0,i.jsx)("span",{className:"text-[#6172F3]",children:e.rank})}),e.rank&&e.course&&(0,i.jsx)("span",{className:"text-[#b6bac1]",children:"|"}),(0,i.jsx)(u.Z,{variant:"regular",weight:"medium",children:(0,i.jsx)("span",{className:"text-[#757575]",children:e.course})})]})})]}),(0,i.jsx)("div",{className:"relative",children:(0,i.jsx)("div",{className:"md:w-16 md:h-16 w-[50px] h-[50px] relative overflow-hidden rounded-lg bg-[#C7D7FE]",children:(0,i.jsx)(r.Z,{src:h[t]||e.authorImage||S.F,alt:e.authorName,width:40,height:40,loading:"lazy",onError:()=>v(e=>({...e,[t]:S.F})),className:"md:w-16 md:h-16 w-[50px] h-[50px] object-cover [mask-image:radial-gradient(circle_at_center,black_99%,transparent_100%)] [-webkit-mask-image:linear-gradient(black,black)]"})})})]})]},"".concat(e.authorName,"-").concat(t))})})}),d&&(0,i.jsx)(s.Z,{isOpen:!!d,handleClose:()=>f(null),contentClass:"!static",closeBoxClass:"!right-6 !top-6",children:(0,i.jsx)("div",{className:"w-full aspect-[16/9]",children:d.type===l.EG.YOUTUBE?(0,i.jsx)("iframe",{className:"w-full h-full",src:"".concat(d.url,"?controls=1&mute=0&showinfo=0&rel=0&autoplay=1&loop=1"),allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,referrerPolicy:"no-referrer-when-downgrade",title:"Student testimonial video"}):(0,i.jsx)("video",{src:d.url,playsInline:!0,autoPlay:!0,muted:!0,loop:!0,controls:!0,controlsList:"nofullscreen nodownload",className:"w-full h-full"})})})]}):null}}}]); 2//# sourceMappingURL=8317.6ac3ab0b947ed78f.js.map
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.