1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2401,5205],{31977:function(e,n,t){Promise.resolve().then(t.bind(t,74628)),Promise.resolve().then(t.bind(t,9244)),Promise.resolve().then(t.bind(t,42426)),Promise.resolve().then(t.bind(t,91810)),Promise.resolve().then(t.bind(t,19803)),Promise.resolve().then(t.t.bind(t,65878,23)),Promise.resolve().then(t.t.bind(t,72972,23))},13495:function(e,n,t){"use strict";t.d(n,{y:function(){return o}});var r=t(33583),i=t(57437),a=t(2265);function o(e){var n=e.children,t=e.minHeight,o=e.rootMargin,s=void 0===o?"200px 0px":o,l=(0,a.useRef)(null),u=(0,r._)((0,a.useState)(!1),2),d=u[0],c=u[1];return(0,a.useEffect)(function(){var e=l.current;if(e){if("undefined"==typeof IntersectionObserver){c(!0);return}var n=new IntersectionObserver(function(e){(0,r._)(e,1)[0].isIntersecting&&(c(!0),n.disconnect())},{rootMargin:s});return n.observe(e),function(){return n.disconnect()}}},[s]),(0,i.jsx)("div",{ref:l,style:d?void 0:{minHeight:void 0===t?280:t},children:d?n:null})}},44791:function(e,n,t){"use strict";t.r(n),t.d(n,{ExpertQuoteCard:function(){return s}});var r=t(57437),i=t(33145),a=t(27648),o=t(29781);function s(e){var n,t,s,l,u=e.data,d=e.embedded;if(!u)return null;var c=u.author,f=u.paragraphs||[],h=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"relative mt-[15px]",children:(0,r.jsxs)("div",{className:"relative flex flex-col gap-[14px] rounded-xl bg-teal-100 p-6",children:[u.quoteIcon&&(0,r.jsx)("img",{src:u.quoteIcon,alt:"","aria-hidden":!0,className:"absolute -top-[15px] left-[19px] h-[30px] w-10",width:40,height:30}),u.tag&&(0,r.jsx)("p",{className:"text-lg-font font-bold capitalize leading-[26px] text-teal-900",children:(0,o.dW)(u.tag)}),f.map(function(e,n){return(0,r.jsx)("p",{className:"text-sm-font font-normal leading-[22px] text-black-900",children:(0,o.dW)(e)},n)})]})}),c&&(0,r.jsxs)("div",{className:"mt-4 flex items-center gap-4",children:[c.photo&&(0,r.jsx)("div",{className:"relative size-14 shrink-0 overflow-hidden rounded-[48px] bg-blue-100",children:(0,r.jsx)(i.default,{src:c.photo,alt:c.name||"",width:56,height:56,className:"size-full object-cover"})}),(0,r.jsxs)("div",{className:"flex min-w-0 flex-col",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[c.name&&(0,r.jsx)("p",{className:"text-sm-font font-semibold leading-[22px] text-black-900",children:c.name}),c.socialUrl&&c.socialIcon&&(0,r.jsx)(a.default,{href:c.socialUrl,target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)("img",{src:c.socialIcon,alt:"LinkedIn",className:"size-[18px]",width:18,height:18})})]}),c.designation&&(0,r.jsx)("p",{className:"text-xxs-font font-medium leading-4 text-black-700",children:c.designation})]})]})]});return d?(0,r.jsx)("div",{id:(null===(s=u.ui)||void 0===s?void 0:s.id)||u.section_id,className:(0,o.cn)(null===(l=u.ui)||void 0===l?void 0:l.class),children:h}):(0,r.jsx)("section",{id:(null===(n=u.ui)||void 0===n?void 0:n.id)||u.section_id||"expert-quote-section",className:(0,o.cn)("bg-white px-4 py-8 md:px-6",null===(t=u.ui)||void 0===t?void 0:t.class),children:(0,r.jsx)("div",{className:"mx-auto max-w-[750px]",children:h})})}},74628:function(e,n,t){"use strict";t.r(n),t.d(n,{ScholarshipListFullWidthSections:function(){return S}});var r=t(57437),i=t(13495),a=t(44791),o=t(5194),s=t(1780),l=t(30166),u=(0,l.default)(function(){return t.e(3384).then(t.bind(t,3384)).then(function(e){return{default:e.DestinationsSection}})},{loadableGenerated:{webpack:function(){return[3384]}},ssr:!0}),d=(0,l.default)(function(){return t.e(1229).then(t.bind(t,11229)).then(function(e){return{default:e.BlogSection}})},{loadableGenerated:{webpack:function(){return[11229]}},ssr:!0}),c=(0,l.default)(function(){return t.e(2371).then(t.bind(t,82371)).then(function(e){return{default:e.FeaturesSection}})},{loadableGenerated:{webpack:function(){return[82371]}},ssr:!0}),f=(0,l.default)(function(){return t.e(2109).then(t.bind(t,12109)).then(function(e){return{default:e.EligibilityBannerSection}})},{loadableGenerated:{webpack:function(){return[12109]}},ssr:!1,loading:function(){return(0,r.jsx)("div",{className:"min-h-[280px]"})}}),h=(0,l.default)(function(){return Promise.resolve().then(t.bind(t,99154)).then(function(e){return{default:e.CarouselCard}})},{loadableGenerated:{webpack:function(){return[99154]}},ssr:!0}),x=(0,l.default)(function(){return Promise.resolve().then(t.bind(t,90850)).then(function(e){return{default:e.PartnerPromotionalCardWidget}})},{loadableGenerated:{webpack:function(){return[90850]}},ssr:!0}),v=(0,l.default)(function(){return t.e(2486).then(t.bind(t,72486)).then(function(e){return{default:e.ScholarshipListingFaq}})},{loadableGenerated:{webpack:function(){return[72486]}},ssr:!0}),m=(0,l.default)(function(){return t.e(397).then(t.bind(t,20397)).then(function(e){return{default:e.ScholarshipListingGuides}})},{loadableGenerated:{webpack:function(){return[20397]}},ssr:!0}),p=(0,l.default)(function(){return t.e(8926).then(t.bind(t,88926)).then(function(e){return{default:e.RecentScholarshipsGrid}})},{loadableGenerated:{webpack:function(){return[88926]}},ssr:!0}),g=(0,l.default)(function(){return t.e(6597).then(t.bind(t,16597)).then(function(e){return{default:e.VideoHeroPromo}})},{loadableGenerated:{webpack:function(){return[16597]}},ssr:!1,loading:function(){return(0,r.jsx)("div",{className:"min-h-[320px]"})}}),b=(0,l.default)(function(){return Promise.resolve().then(t.bind(t,44791)).then(function(e){return{default:e.ExpertQuoteCard}})},{loadableGenerated:{webpack:function(){return[44791]}},ssr:!0}),w=(0,l.default)(function(){return t.e(3806).then(t.bind(t,93806)).then(function(e){return{default:e.ContentListSection}})},{loadableGenerated:{webpack:function(){return[93806]}},ssr:!0}),j=(0,l.default)(function(){return t.e(1332).then(t.bind(t,41332)).then(function(e){return{default:e.DosAndDontsSection}})},{loadableGenerated:{webpack:function(){return[41332]}},ssr:!0}),y=(0,l.default)(function(){return t.e(6834).then(t.bind(t,46834)).then(function(e){return{default:e.ScholarshipOverview}})},{loadableGenerated:{webpack:function(){return[46834]}},ssr:!0});function N(e){var n,t,i,a,l=e.sectionKey,N=e.section,C=e.embedded,k=void 0!==C&&C;if(!N)return null;switch(N.sectionCategory){case"cardCtaGridSection":return(0,r.jsx)(u,{data:N,headerAlign:"left"});
1case"recentScholarshipsGrid":return(0,r.jsx)(p,{data:N});case"videoHeroPromo":return(0,r.jsx)(g,{data:N});case"expertQuoteCard":return(0,r.jsx)(b,{data:N,embedded:k});case"contentList":return(0,r.jsx)(w,{data:N,embedded:k});case"partnerPromotionalCard":return(0,r.jsx)(x,{data:N.data||N,ui:N.ui,cardKey:l});case"guideCards":return(0,r.jsx)(m,{data:N,embedded:k});case"mixedContent":return(0,r.jsx)(y,{data:N});case"promotionalCarousel":return(0,r.jsx)(h,{card:(null==N?void 0:null===(n=N.data)||void 0===n?void 0:n.type)==="carousel"&&N.data.items?(0,s._)((0,o._)({},N),{items:N.data.items}):N,cardKey:l});case"dosAndDonts":return(0,r.jsx)(j,{data:N,embedded:k});case"featuresGrid":return(0,r.jsx)(c,{data:N,embedded:k});case"eligibilityBannerSection":return(0,r.jsx)(f,{data:(0,s._)((0,o._)({},N),{tagline:N.tagline||N.tag||(null===(t=N.header)||void 0===t?void 0:t.tag),title:N.title||N.heading||(null===(i=N.header)||void 0===i?void 0:i.title),checklist:N.checklist||N.features||[],form:N.form||{title:(null===(a=N.cta)||void 0===a?void 0:a.label)||"Check Your Eligibility Now",cta:N.cta}})});case"blogListingSection":return(0,r.jsx)(d,{data:N});case"faqs":case"faqSection":return(0,r.jsx)(v,{data:N});default:return null}}var C=t(49170),k=t(29781);function _(e){var n,t,i,a,o,s,l,u,d=e.form;if(!d)return null;var c=d.title||(null===(n=d.submitButton)||void 0===n?void 0:n.label),f=(null===(a=d.submitButton)||void 0===a?void 0:null===(i=a.action)||void 0===i?void 0:null===(t=i.payload)||void 0===t?void 0:t.url)||(null===(s=d.submitButton)||void 0===s?void 0:null===(o=s.action)||void 0===o?void 0:o.endpoint);return(0,r.jsx)("div",{id:(null===(l=d.ui)||void 0===l?void 0:l.id)||d.section_id||"sidebar-eligibility-form",className:(0,k.cn)("w-full lg:w-[360px]","lg:right-[max(1rem,calc((100vw-1140px)/2))] lg:top-24 lg:z-20",null===(u=d.ui)||void 0===u?void 0:u.class),children:(0,r.jsx)(C.LoginSection,{variant:"inline",title:c,pageUrl:"string"==typeof f&&f.startsWith("/")?f:void 0,className:(0,k.cn)("!w-full !max-w-none md:!min-w-0 md:!max-w-none","!rounded-2xl !border !border-black-400 !bg-white !p-4 !shadow-[0_0_8px_rgb(from_var(--black-950)_r_g_b_/_0.1)] md:!p-5"),onSuccess:function(){}})})}function S(e){var n,t=e.fullWidthSections;if(!(null==t?void 0:t.cards))return null;var o=(null===(n=t.cardOrder)||void 0===n?void 0:n.cards)||Object.keys(t.cards),s=t.cards;return(0,r.jsx)("div",{className:"w-full",children:o.map(function(e){var n,t,o=s[e];return o?"expertQuoteCard"===o.sectionCategory&&((null==o?void 0:null===(n=o.form)||void 0===n?void 0:n.sectionCategory)==="sidebarForm"||(null==o?void 0:o.sectionCategory)==="sidebarForm")?(0,r.jsx)(i.y,{minHeight:420,rootMargin:"300px 0px",children:(0,r.jsx)("section",{id:(null===(t=o.ui)||void 0===t?void 0:t.id)||o.section_id||e,className:"relative bg-white px-4 py-8 md:px-6 md:py-10",children:(0,r.jsxs)("div",{className:"mx-auto grid max-w-[1140px] grid-cols-1 gap-8 lg:grid-cols-[minmax(0,750px)_360px] lg:items-start lg:justify-between lg:gap-[30px]",children:[(0,r.jsx)("div",{className:"min-w-0",children:(0,r.jsx)(a.ExpertQuoteCard,{data:o,embedded:!0})}),(0,r.jsxs)("div",{className:"relative w-full",children:[(0,r.jsx)("div",{className:"hidden lg:block lg:h-[1px]","aria-hidden":!0}),(0,r.jsx)(_,{form:o.form})]})]})})},e):(null==o?void 0:o.showHalfWidth)===!0||(null==o?void 0:o.showHalfWidth)==="true"||"partnerPromotionalCard"===o.sectionCategory?(0,r.jsx)(i.y,{minHeight:280,rootMargin:"300px 0px",children:(0,r.jsx)("section",{className:"bg-white px-4 py-6 md:px-6 md:py-8",children:(0,r.jsx)("div",{className:"mx-auto w-full max-w-[1140px]",children:(0,r.jsx)("div",{className:"w-full max-w-[750px]",children:(0,r.jsx)(N,{sectionKey:e,section:o,embedded:!0})})})})},e):(0,r.jsx)(i.y,{minHeight:320,rootMargin:"300px 0px",children:(0,r.jsx)(N,{sectionKey:e,section:o})},e):null})})}t(57550)},9244:function(e,n,t){"use strict";t.d(n,{DeadlinesCardCta:function(){return u}});var r=t(57437),i=t(99376),a=t(29781),o=t(82966),s=t(1249),l=t(600);function u(e){var n,t=e.bottomCta,u=(0,i.usePathname)();if(!(null==t?void 0:t.url)&&!(null==t?void 0:t.summary)&&!(null==t?void 0:t.label))return null;var d=function(e){if(t.url){e.preventDefault();try{var n=new URL(t.url,window.location.origin),r=n.pathname.replace(/\/+$/,"")||"/",i=(u||"").replace(/\/+$/,"")||"/";if(r===i||(0,s.Un)(r))(0,l.c)(r,n.searchParams);else{window.location.assign(t.url);return}}catch(e){window.location.assign(t.url);return}}(0,s.YL)()},c=(0,r.jsxs)(r.Fragment,{children:[t.summary&&(0,r.jsx)("span",{className:"text-center text-xxs-font font-semibold leading-4 text-teal-950 lg:text-left lg:text-xs-font lg:font-medium lg:leading-5 lg:text-black-900 [&_strong]:font-bold [&_strong]:text-teal-900 [&_b]:font-bold [&_b]:text-teal-900",children:(0,a.dW)(t.summary)}),t.label&&(0,r.jsxs)("span",{className:"inline-flex shrink-0 items-center justify-center gap-2 text-xs-font font-bold leading-5 text-teal-900 lg:text-sm-font lg:leading-[22px]",children:[t.label,(null===(n=t.icon)||void 0===n?void 0:n.url)&&(0,r.jsx)(o.PM,{className:"h-3 w-[7.2px] text-teal-900"})]})]}),f="flex w-full flex-col items-center rounded-[64px] bg-white px-4 py-1 transition-opacity hover:opacity-90 lg:flex-row lg:items-center lg:justify-between lg:gap-3 lg:rou
1nded-none lg:bg-transparent lg:px-0 lg:py-0";return t.url?(0,r.jsx)("a",{href:t.url,className:f,onClick:d,children:c}):(0,r.jsx)("button",{type:"button",className:f,onClick:d,children:c})}},42426:function(e,n,t){"use strict";t.d(n,{DeadlinesCountdown:function(){return l}});var r=t(33583),i=t(57437),a=t(2265);function o(e){var n=e.label,t=e.value;return(0,i.jsxs)("div",{className:"flex h-16 min-w-0 flex-1 flex-col items-center justify-center rounded-lg border border-white/30 bg-white shadow-[0_0_10px_rgb(from_var(--black-950)_r_g_b_/_0.3)] lg:h-20",children:[(0,i.jsx)("span",{className:"text-xl-font font-bold capitalize leading-[30px] text-teal-900 lg:text-5xl-font lg:leading-[46px]",children:t}),(0,i.jsx)("span",{className:"text-xs-font font-medium leading-[18px] text-black-700 lg:leading-5",children:n})]})}function s(e){return String(Math.max(0,e)).padStart(2,"0")}function l(e){var n,t,l,u,d=(n=e.initial,l=(t=(0,r._)((0,a.useState)(function(){var e,t,r,i;return{days:null!==(e=null==n?void 0:n.days)&&void 0!==e?e:0,hours:null!==(t=null==n?void 0:n.hours)&&void 0!==t?t:0,minutes:null!==(r=null==n?void 0:n.minutes)&&void 0!==r?r:0,seconds:null!==(i=null==n?void 0:n.seconds)&&void 0!==i?i:0}}),2))[0],u=t[1],(0,a.useEffect)(function(){var e,t,r,i;u({days:null!==(e=null==n?void 0:n.days)&&void 0!==e?e:0,hours:null!==(t=null==n?void 0:n.hours)&&void 0!==t?t:0,minutes:null!==(r=null==n?void 0:n.minutes)&&void 0!==r?r:0,seconds:null!==(i=null==n?void 0:n.seconds)&&void 0!==i?i:0})},[null==n?void 0:n.days,null==n?void 0:n.hours,null==n?void 0:n.minutes,null==n?void 0:n.seconds]),(0,a.useEffect)(function(){var e=window.setInterval(function(){u(function(e){var n=e.days,t=e.hours,r=e.minutes,i=e.seconds;return 0===n&&0===t&&0===r&&0===i?e:((i-=1)<0&&(i=59,r-=1),r<0&&(r=59,t-=1),t<0&&(t=23,n-=1),n<0)?{days:0,hours:0,minutes:0,seconds:0}:{days:n,hours:t,minutes:r,seconds:i}})},1e3);return function(){return window.clearInterval(e)}},[]),l),c=(0,a.useMemo)(function(){return[{label:"Days",value:s(d.days)},{label:"Hrs",value:s(d.hours)},{label:"Min",value:s(d.minutes)},{label:"Sec",value:s(d.seconds)}]},[d.days,d.hours,d.minutes,d.seconds]);return(0,i.jsx)("div",{className:"w-full rounded-[10px] bg-gradient-to-t from-teal-950 to-teal-700 p-1.5 lg:rounded-xl lg:p-3",children:(0,i.jsx)("div",{className:"flex w-full items-center gap-1 lg:gap-2",children:c.map(function(e,n){return(0,i.jsxs)("div",{className:"contents",children:[(0,i.jsx)(o,{label:e.label,value:e.value}),n<c.length-1&&(0,i.jsx)("span",{className:"shrink-0 text-4xl-font font-medium leading-7 text-white",children:":"})]},e.label)})})})}},99639:function(e,n,t){"use strict";var r=t(83464),i=t(72086),a=t(22461),o=r.Z.create({baseURL:i.hi.baseUrl,timeout:i.hi.timeout,headers:{"Content-Type":"application/json"},withCredentials:!0});o.interceptors.request.use(function(e){((null===(n=e.url)||void 0===n?void 0:n.startsWith("http://"))||(null===(t=e.url)||void 0===t?void 0:t.startsWith("https://")))&&(e.baseURL=""),e.withCredentials=!0;var n,t,r=localStorage.getItem("token");return r&&e.headers&&(e.headers.Authorization="Bearer ".concat(r)),e},function(e){return Promise.reject(e)}),o.interceptors.response.use(function(e){var n=e.data;if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}if(n&&"object"==typeof n&&!Array.isArray(n)&&(!1===n.success||!1===n.status)){var t=n.msg||n.message||"Request failed";a.D&&a.D.showError(t);var r=Error(t);return r.response=e,r.isAxiosError=!0,Promise.reject(r)}return e},function(e){if(e.response){var n,t,r,i=e.response.status;if(401===i)return localStorage.removeItem("token"),window.location.href="/login",Promise.reject(e);i>=400&&a.D.showError((null==(r=null===(n=e.response)||void 0===n?void 0:n.data)?void 0:r.success)===!1&&(null==r?void 0:r.msg)||(null==r?void 0:r.msg)?r.msg:(null==r?void 0:r.message)?r.message:(null==r?void 0:r.error)?"string"==typeof r.error?r.error:r.error.message||"An error occurred":(null===(t=e.response)||void 0===t?void 0:t.statusText)?e.response.statusText:e.message?e.message:"An unexpected error occurred. Please try again.")}else e.request&&a.D.showError(e.message||"Network error. Please check your connection and try again.");return Promise.reject(e)}),n.Z=o},55205:function(e,n,t){"use strict";t.r(n),t.d(n,{fetchHeaderDataClient:function(){return l}});var r=t(2403),i=t(5853),a=t(99639),o=t(99268),s=t(49372);function l(e){return u.apply(this,arguments)}function u(){return(u=(0,r._)(function(e){var n,t,r,l;return(0,i.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),t={payload:{}},e&&(t.payload.slug=e),[4,a.Z.post(s.dV.header.clientUrl,t,{headers:{Accept:"application/json","Content-Type":"application/json","X-API-Key":s.dV.apiKey},withCredentials:!0})];case 1:return[2,{data:(null===(n=(r=i.sent()).data)||void 0===n?void 0:n.data)||r.data}];case 2:throw l=i.sent(),o.k.error(l instanceof Error?l:Error("Failed to fetch header data"),{operation:"fetchHeaderDataClient",slug:e}),l;case 3:return[2]}})})).apply(this,arguments)}},66948:function(e,n,t){"use strict";t.d(n,{C:function(){return a},T:function(){return i}});var r=t(68575),i=function(){return(0,r.I0)()},a=r.v9},93703:function(e,n,t){"use strict";t.d(n,{DZ:function(){return u},Gg:function(){return s},Mo:function(){return l},Yy:function(){return o},f0:function(){return a}});var r=(0,t(39867).oM)({name:"ui",initialState:{sidebarOpen:!0,bottomNavVisible:!0,drawerOpen:!1,countryDrawerOpen:!1,selectedCountry:null,isLoginModalOpen:!1,loginModalConfig:void 0},reducers:{toggleSidebar:function(e){e.sidebarOpen=!e.sidebarOpen},setSidebarOpen:function(e,n){e.sidebarOpen=n.payload},setBottomNavVisible:function(e,n){e.bottomNavVisible=n.payload},setDrawerOpen:function(e,n){e.drawerOpen=n.payload},setCountryDrawerOpen:function(e,n){e.countryDrawerOpen=n.payload},setSelectedCountry:function(e,n){e.selectedCountry=n.payload},openLoginModal:function(e,n){e.isLoginModalOpen=!0,e.loginModalConfig=n.payload},closeLoginModal:function(e){e.isLoginModalOpen=!1}}}),i=r.actions;i.toggleSidebar,i.setSidebarOpen,i.setBottomNavVisible;var a=i.setDrawerOpen,o=i.setCountryDrawerOpen,s=i.setSelectedCountry,l=i.openLoginModal,u=i.closeLoginModal;n.ZP=r.reducer},6752:function(e,n,t){"use strict";t.d(n,{HeaderProvider:function(){return s},Jv:function(){return u},h3:function(){return l},pI:function(){return o}});var r=t(33583),i=t(57437),a=t(2265),o=(0,a.createContext)(null);function s(e){var n=e.children,t=e.headerData,s=e.fullHeaderData,l=(0,r._)((0,a.useState)(t),2),u=l[0],d=l[1],c=(0,r._)((0,a.useState)(s||null),2),f=c[0],h=c[1];return(0,i.jsx)(o.Provider,{value:{headerData:u,setHeaderData:d,fullHeaderData:f,setFullHeaderData:h},children:n})}function l(){var e,n=(0,a.useContext)(o);return null!==(e=null==n?void 0:n.headerData)&&void 0!==e?e:null}function u(){var e=(0,a.useContext)(o);if(!e)throw Error("useHeaderContext must be used within HeaderProvider");return e}},22461:function(e,n,t){"use strict";t.d(n,{ToastProvider:function(){return f},D:function(){return d},p:function(){return h}});var r=t(2473),i=t(33583),a=t(60076),o=t(57437),s=t(2265),l=t(82966),u=function(e){var n=e.message,t=e.variant,r=void 0===t?"info":t,i=e.onClose,a=e.className,s=e.showCloseButton,u={success:{bg:"bg-green-50",text:"text-green-800"},error:{bg:"bg-red-100",text:"text-red-850"},warning:{bg:"bg-yellow-25",text:"text-amber-800"},info:{bg:"bg-sky-50",text:"text-sky-700"}}[r];return(0,o.jsxs)("div",{className:"\n ".concat(u.bg,"\n flex\n gap-2\n items-start\n px-3\n py-2\n rounded-lg\n ").concat(void 0===a?"":a,"\n ").trim().replace(/\s+/g," "),children:[(0,o.jsx)("div",{className:"".concat(u.text," flex-shrink-0"),children:function(){var e="w-4 h-[18px] flex-shrink-0";switch(r){case"success":return(0,o.jsx)("div",{className:e,children:(0,o.jsx)(l.nQ,{})});case"error":return(0,o.jsx)("div",{className:e,children:(0,o.jsx)(l.Pz,{})});case"warning":return(0,o.jsx)("div",{className:e,children:(0,o.jsx)(l.aN,{})});case"info":return(0,o.jsx)("div",{className:e,children:(0,o.jsx)(l.sz,{})});default:return null}}()}),(0,o.jsx)("div",{className:"".concat(u.text," text-xs-font font-semibold leading-5 flex-1"),children:"string"==typeof n?(0,o.jsx)("p",{className:"mb-0",children:n}):n}),(void 0===s||s)&&i&&(0,o.jsx)("button",{onClick:function(e){e.stopPropagation(),i&&i()},className:"".concat(u.text," w-4 h-[18px] flex-shrink-0 flex items-center justify-center hover:opacity-70 transition-opacity"),"aria-label":"Close toast",children:(0,o.jsx)(l.Tw,{className:"w-3.5 h-3.5"})})]})},d=new(function(){function e(){(0,r._)(this,e),this.showErrorFn=null}var n=e.prototype;return n.setShowError=function(e){this.showErrorFn=e},n.showError=function(e,n){var t=this;this.showErrorFn?this.showErrorFn(e,n):setTimeout(function(){t.showErrorFn?t.showErrorFn(e,n):console.error("Toast Error (ToastProvider not ready):",e)},100)},e}()),c=(0,s.createContext)(void 0);
1function f(e){var n=e.children,t=(0,i._)((0,s.useState)([]),2),r=t[0],l=t[1],f=(0,s.useCallback)(function(e){l(function(n){return n.filter(function(n){return n.id!==e})})},[]),h=(0,s.useCallback)(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4e3,r=Math.random().toString(36).substring(7),i={id:r,message:e,type:n,duration:t};l(function(e){return(0,a._)(e).concat([i])}),t>0&&setTimeout(function(){f(r)},t)},[f]),x=(0,s.useCallback)(function(e,n){return h(e,"success",n)},[h]),v=(0,s.useCallback)(function(e,n){return h(e,"error",n)},[h]);(0,s.useEffect)(function(){return d.setShowError(v),function(){d.setShowError(function(){})}},[v]);var m=(0,s.useCallback)(function(e,n){return h(e,"warning",n)},[h]),p=(0,s.useCallback)(function(e,n){return h(e,"info",n)},[h]);return(0,o.jsxs)(c.Provider,{value:{showToast:h,showSuccess:x,showError:v,showWarning:m,showInfo:p},children:[n,(0,o.jsx)("div",{className:"fixed top-4 right-4 z-[9999] flex flex-col gap-2 max-w-md",children:r.map(function(e){return(0,o.jsx)(u,{message:e.message,variant:e.type,onClose:function(){return f(e.id)},className:"shadow-lg"},e.id)})})]})}function h(){var e=(0,s.useContext)(c);if(void 0===e)throw Error("useToast must be used within a ToastProvider");return e}},57550:function(){}},function(e){e.O(0,[2540,7559,2972,6632,5020,7142,3464,4257,2966,2717,887,2691,2762,9170,4897,2971,2117,1744],function(){return e(e.s=31977)}),_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.