1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,845588,392653,529657,e=>{"use strict";var t=e.i(391398),r=e.i(191788);e.i(664157);var a=e.i(271179),s=e.i(914497),n=e.i(386547);function i(e){let{name:r,searchName:a,searchRansack:s,isSelectedOption:n,columnIdentifier:i,rowIdentifier:o,isExclusiveSearch:l,onClickMethod:c,onSelectOption:d}=e;return(0,t.jsxs)("div",{role:"button",onClick:function(){d({row:o,column:i}),c({search:a,ransack:s,isExclusiveSearch:l})},className:"flex items-center gap-1 p-1 cursor-pointer hover:bg-zinc-200 transition-colors rounded",children:[(0,t.jsx)("input",{type:"checkbox",checked:n,"aria-label":"search-term",onChange:()=>{},className:"size-3 cursor-pointer accent-color_action flex-shrink-0",readOnly:!0}),(0,t.jsx)("span",{className:"text-base text-gray-800 select-none whitespace-nowrap text-ellipsis lg:overflow-hidden max-w-40 lg:max-w-64 pr-2 lg:pr-0",children:r})]})}function o(e){let{title:r,selectedFilter:a,optionsValues:o,rowIdentifier:l,isExclusiveSearch:c,onSelectFilter:d,onSelectOption:h,onClickMethod:u,scheme:m}=e,x=a?.title===r;return(0,t.jsxs)("div",{className:(0,n.cn)("editorial"===m?"max-md:w-[45%]":"","relative overflow-visible"),children:[(0,t.jsxs)("div",{className:(0,n.cn)(x?"border-color_action":"border-font_title_block","editorial"===m?"max-md:w-full max-md:justify-between":"","mb-[0.625rem] box-border inline-flex cursor-pointer items-center gap-x-[0.5rem] overflow-visible border px-[0.4375rem] py-[0.25rem]"),role:"button",onClick:()=>{d()},children:[(0,t.jsx)("span",{className:(0,n.cn)("editorial"===m?"text-[12px] font-[450] tracking-[-0.02em] uppercase lg:text-[14px]":"text-[0.875rem]","text-font_title_block"),children:r}),(0,t.jsx)(s.MdKeyboardArrowDown,{className:(0,n.cn)(x?"text-color_action rotate-180":"text-font_title_block rotate-0","h-[1.25rem] w-[1.25rem] transition-transform duration-400 ease-in-out")})]}),!!a&&a.title===r&&(0,t.jsx)("div",{className:"bg-background_secondary absolute top-full z-[3] box-border block max-h-[25rem] overflow-y-auto p-[0.9375rem] shadow-[0px_10px_16px_8px_rgba(0,0,0,0.10)]",children:a.filtersValues.map(({name:e,searchName:r,isSubtitle:s},n)=>s?(0,t.jsx)("h3",{className:"text-action_color py-4 text-center text-2xl",children:e},`${e}-${n}`):(0,t.jsx)(i,{name:e,searchName:r,searchRansack:a.searchRansack,isSelectedOption:o[n],columnIdentifier:n,rowIdentifier:l,isExclusiveSearch:c,onClickMethod:u,onSelectOption:h},e))})]})}function l({title:e,isOn:r,onClick:a}){return(0,t.jsxs)("div",{role:"button",className:"mb-4 inline-flex cursor-pointer items-center gap-2 max-sm:min-w-[45%]",onClick:a,children:[(0,t.jsx)("div",{className:`relative h-[31px] w-[51px] rounded-2xl transition-colors ${r?"bg-color_action":"bg-font_placeholder"}`,children:(0,t.jsx)("div",{className:`bg-background_input absolute top-1/2 h-[27px] w-[27px] -translate-y-1/2 rounded-full shadow transition-transform ${r?"translate-x-[22px]":"translate-x-[2px]"}`})}),(0,t.jsx)("span",{className:"text-font_title_block text-xs font-[450] -tracking-[2%] uppercase select-none md:text-sm",children:e})]})}e.s(["FilterOption",0,i],392653),e.s(["FilterSearch",0,function(e){let{t:s}=(0,a.useTranslation)(),{filters:n,onClickMethod:i,filterParams:c,scheme:d}=e,[h,u]=(0,r.useState)(function(){return n.map(e=>e.filtersValues.map(e=>e.isDefaultSelected))}),[m,x]=(0,r.useState)(void 0);function f({row:e,column:t}){n[e].isResourceFilters?u(r=>{let a=r.map(e=>e.map(()=>!1)),s=!r[e][t];return n[e].isExclusiveSearch&&(a[e]=a[e].map(()=>!1)),a[e][t]=s,a}):u(r=>{let a=r.map(e=>e.slice()),s=!a[e][t];return n[e].isExclusiveSearch&&(a[e]=a[e].map(()=>!1)),a[e][t]=s,a})}return(0,r.useEffect)(()=>{c&&u(n.map(e=>e.filtersValues.map(t=>{var r;return(c[({"q[categories_name_in]":"categories","q[sub_categories_name_in]":"subcategories",isPaid:"isPaid",isFeatured:"isFeatured",format:"format",state:"state",isJourney:"isJourney",resource:"resource"})[r=e.searchRansack]||r]||[]).includes(t.searchName)})))},[c,n]),(0,t.jsxs)("div",{className:"flex w-full flex-col items-start justify-start gap-6 md:flex-row md:justify-between",children:[(0,t.jsx)("div",{className:"relative flex w-full flex-wrap gap-x-[0.625rem]",children:n.map((e,a)=>(0,t.jsx)(r.Fragment,{children:e?.filtersValues?.length>
10&&("editorial"===d&&"isJourney"===e.searchRansack?(0,t.jsx)(l,{title:e.title,isOn:h[a][0],onClick:()=>{f({row:a,column:0}),i({search:e.filtersValues[0].searchName,ransack:e.searchRansack,isExclusiveSearch:e.isExclusiveSearch})}}):"editorial"===d&&"isPaid"===e.searchRansack?(0,t.jsx)(l,{title:e?.filtersValues[1]?.name??e.title,isOn:h[a][1],onClick:()=>{f({row:a,column:1}),i({search:e.filtersValues[1].searchName,ransack:e.searchRansack,isExclusiveSearch:e.isExclusiveSearch})}}):"editorial"===d&&"resource"!==e.searchRansack||"editorial"!==d?(0,t.jsx)(o,{title:e.title,selectedFilter:m,optionsValues:h[a],isExclusiveSearch:n[a].isExclusiveSearch,rowIdentifier:a,onClickMethod:i,onSelectFilter:()=>{m&&m.title===e.title?x(void 0):x(e)},onSelectOption:f,scheme:d},e.title):(0,t.jsx)(t.Fragment,{}))},e.searchRansack))}),"editorial"===d&&n.map((e,r)=>{if(!e?.filtersValues?.length||"resource"!==e.searchRansack)return null;let a=+!!h[r][0],n=e.filtersValues[a];return(0,t.jsx)("button",{onClick:()=>{f({row:r,column:a}),i({search:n.searchName,ransack:e.searchRansack,isExclusiveSearch:e.isExclusiveSearch})},className:"text-action_color text-sm leading-4 font-[450] text-nowrap uppercase hover:opacity-80",style:{textDecoration:"underline solid",textUnderlineOffset:"50%",textDecorationThickness:"9%",textDecorationSkipInk:"none"},children:s("search-by",{ns:"search",name:n.name})},r)})]})}],529657),e.s([],845588)},124416,131529,e=>{"use strict";var t=e.i(391398),r=e.i(985596);e.i(54617);var a=e.i(323614),s=e.i(41158),n=e.i(352644);function i({socialLinks:e,linksSection:r,copyInfo:o,showCopyInfo:l}){let c=[{key:"whatsapp",Icon:n.BsChatDots,url:e.whatsapp},{key:"youtube",Icon:n.BsYoutube,url:e.youtube},{key:"facebook",Icon:n.BsFacebook,url:e.facebook},{key:"instagram",Icon:n.BsInstagram,url:e.instagram},{key:"email",Icon:n.BsEnvelope,url:e.email}].filter(e=>!!e.url),d=r.flatMap(e=>e.items);return(0,t.jsx)("footer",{className:"w-full",children:(0,t.jsx)(a.Container,{config:{paddingBottom:"small",paddingTop:"small",paddingLeft:"standard",paddingRight:"standard"},children:(0,t.jsxs)("div",{className:"flex flex-col gap-6 lg:flex-row lg:items-center lg:justify-between lg:gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-6 lg:flex-row lg:items-center lg:gap-14",children:[(0,t.jsx)("div",{className:"flex flex-wrap gap-4",children:c.map(({key:e,Icon:r,url:a})=>(0,t.jsx)(s.default,{href:a,target:"_blank",rel:"noopener noreferrer",className:"opacity-80 transition-opacity hover:opacity-100",children:(0,t.jsx)(r,{size:20,className:"fill-font_action"})},e))}),d.length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-10",children:d.map(e=>(0,t.jsx)(s.default,{href:e.link,className:"text-font_footer text-xs underline opacity-70 transition-opacity hover:opacity-100",children:e.name},e.link+e.name))})]}),l&&o?.text&&(0,t.jsx)("p",{className:"text-font_footer text-[10px] leading-relaxed whitespace-pre-line opacity-50 lg:text-right",children:o.text})]})})})}var o=e.i(191788);e.i(664157);var l=e.i(978410),c=e.i(271179),d=e.i(386547),h=e.i(844085);function u(){let{navigate:e,getPathname:t,getQuery:r,getAsPath:a}=(0,h.useAppNavigation)(),s=r(),n=t(),i=a();function o(t){t&&e({pathname:n,query:s},{locale:t},i)}return[{title:"PT",locale:"pt-BR",onClickMethod:o},{title:"EN",locale:"en",onClickMethod:o},{title:"ES",locale:"es",onClickMethod:o}]}function m(e){let{t:r}=(0,c.useTranslation)(),{logo:a,linksSection:s,socialLinks:i,copyInfo:h,showLogo:m,showLanguageTitle:x,showCopyInfo:f,hideLanguageOptions:g}=e,p=u(),b=l.i18n?.language?.toLowerCase()==="pt-br"?"pt-BR":l.i18n?.language??"pt-BR",C=m?4:3;return(0,t.jsxs)("div",{className:"bg-background_footer p-[4.375rem]",children:[(0,t.jsxs)("div",{className:(0,d.cn)("grid grid-cols-2 items-baseline gap-y-4 lg:grid-rows-1 lg:gap-x-3",C<4?"lg:grid-cols-[auto_1fr_auto]":"lg:grid-cols-[auto_1fr_1fr_1fr]"),children:[!!m&&(0,t.jsx)("div",{className:"max-lg:col-span-1 max-lg:row-span-1",children:(0,t.jsx)("img",{className:"block h-auto w-full max-w-10 object-contain",src:a,alt:"Logo"})}),(0,t.jsxs)("div",{className:"flex gap-[1.0rem] max-lg:col-span-1 max-lg:row-span-1 lg:gap-x-[1.6rem]",children:[!!i.whatsapp&&(0,t.jsx)("a",{href:i.whatsapp,target:"_blank",rel:"noopener noreferrer","aria-label":"WhatsApp",className:"block max-h-[3rem] leading-[initial]",children:(0,t.jsx)(n.BsWhatsapp,{className:"text-font_footer text-[1.2rem] md:text-[1.1rem]","aria-hidden":"true"})}),!!i.youtube&&(0,t.jsx)("a",{href:i.youtube,target:"_blank",rel:"noopener noreferrer","aria-label":"YouTube",className:"block max-h-[3rem] leading-[initial]",children:(0,t.jsx)(n.BsYoutube,{className:"text-font_footer text-[1.2rem] md:text-[1.1rem]","aria-hidden":"true"})}),!!i.facebook&&(0,t.jsx)("a",{href:i.facebook,target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook",className:"block max-h-[3rem] leading-[initial]",children:(0,t.jsx)(n.BsF
1acebook,{className:"text-font_footer text-[1.2rem] md:text-[1.1rem]","aria-hidden":"true"})}),!!i.instagram&&(0,t.jsx)("a",{href:i.instagram,target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram",className:"block max-h-[3rem] leading-[initial]",children:(0,t.jsx)(n.BsInstagram,{className:"text-font_footer text-[1.2rem] md:text-[1.1rem]","aria-hidden":"true"})}),!!i.email&&(0,t.jsx)("a",{href:i.email,target:"_blank",rel:"noopener noreferrer","aria-label":"Email",className:"block max-h-[3rem] leading-[initial]",children:(0,t.jsx)(n.BsEnvelope,{className:"text-font_footer text-[1.2rem] md:text-[1.1rem]","aria-hidden":"true"})})]}),(0,t.jsx)("div",{className:(0,d.cn)("flex flex-col gap-2 max-lg:col-span-2 max-lg:row-start-2 max-lg:row-end-3 max-lg:mt-5 lg:flex lg:flex-row lg:gap-10",C<4?"lg:justify-end":"lg:justify-center"),children:s.map((e,r)=>(0,t.jsx)(o.Fragment,{children:(0,t.jsxs)("div",{children:[!!e.title&&(0,t.jsx)("h3",{className:"text-font_footer mb-[2rem] text-[calc(1.2*10/var(--brand-base)*1rem)] font-bold",children:e.title}),(0,t.jsx)("ul",{children:e.items.map(e=>(0,t.jsx)("li",{className:"after:origin-bottom-center after:bg-color_action relative mb-[1.5rem] inline-block list-none after:absolute after:bottom-0 after:left-0 after:h-[2px] after:w-full after:scale-x-0 after:transition-transform after:duration-250 after:ease-out last:mb-0 hover:after:scale-x-100",children:(0,t.jsx)("a",{className:"text-font_footer hover:text-font_footer text-[calc(1.2*10/var(--brand-base)*1rem)] font-bold no-underline hover:no-underline",href:e.link,children:e.name})},e.link+e.name))})]})},e.title+r))}),!g&&(0,t.jsxs)("div",{className:"max-lg:col-span-2 max-lg:row-start-3 max-lg:row-end-4 max-lg:justify-self-start lg:justify-self-end",children:[x&&(0,t.jsx)("h3",{className:"text-font_footer mb-[2rem] text-[calc(1.2*10/var(--brand-base)*1rem)] font-bold",children:r("language",{ns:"common"})}),(0,t.jsx)("div",{children:p.map(({locale:e,title:r,onClickMethod:a})=>{let s=e===b;return(0,t.jsx)("button",{className:(0,d.cn)("text-font_footer relative mr-[1.6rem] inline-block cursor-pointer border-none bg-transparent text-[calc(1.2*10/var(--brand-base)*1rem)] font-bold no-underline after:absolute after:bottom-0 after:left-1/2 after:h-[0.2rem] after:w-full after:-translate-x-1/2 after:transition-transform after:duration-250 after:ease-out",`${s?"after:bg-color_action after:scale-x-100":"after:bg-color_action after:scale-x-0 hover:after:scale-x-100"}`),onClick:()=>{a(e)},children:r},r)})})]})]}),f&&(0,t.jsxs)(t.Fragment,{children:[!!h.text&&(0,t.jsx)("p",{className:"text-footer-font mt-[5rem] text-[1.4rem]",children:h.text}),(0,t.jsxs)("div",{className:"bg-background-secondary mt-[4rem] flex min-h-[2rem] items-center justify-center gap-x-[2rem] py-[1rem]",children:[(0,t.jsx)("span",{className:"text-footer-font text-[1.2rem]",children:h.title}),(0,t.jsx)("img",{className:"block w-full max-w-[10rem] object-contain",src:h.logo,alt:"copyright logo"})]})]})]})}var x=e.i(126019);function f(e){let{t:r}=(0,c.useTranslation)(),{logo:i,linksSection:o,socialLinks:d,copyInfo:h,showLogo:m,showLanguageTitle:f,showCopyInfo:g,hideLanguageOptions:p}=e,b=u(),C=l.i18n?.language??"pt-BR",j=[{key:"whatsapp",Icon:n.BsWhatsapp,url:d.whatsapp},{key:"youtube",Icon:n.BsYoutube,url:d.youtube},{key:"facebook",Icon:n.BsFacebook,url:d.facebook},{key:"instagram",Icon:n.BsInstagram,url:d.instagram},{key:"email",Icon:n.BsEnvelope,url:d.email}].filter(e=>!!e.url);return(0,t.jsx)("footer",{className:"mt-2 bg-white",children:(0,t.jsxs)(a.Container,{className:"pt-8 pb-12",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-y-8 lg:flex-row lg:items-center lg:justify-between lg:gap-x-12",children:[!!m&&(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)("div",{className:"relative h-16 w-full max-w-40",children:(0,t.jsx)(x.default,{src:i,alt:"Logo",fill:!0,className:"object-contain",sizes:"160px"})})}),(0,t.jsx)("div",{className:"flex gap-x-6 lg:gap-x-10",children:j.map(({key:e,Icon:r,url:a})=>(0,t.jsx)(s.default,{href:a,target:"_blank",rel:"noopener noreferrer",className:"max-h-12 leading-none",children:(0,t.jsx)(r,{className:"text-base text-neutral-800 transition-transform hover:scale-115"})},e))}),(0,t.jsx)("div",{className:"flex flex-col gap-y-4 lg:flex-1 lg:flex-row lg:justify-end lg:gap-x-8",children:o.flatMap(e=>e.items.map(e=>(0,t.jsx)("div",{className:"after:bg-color_action after:origin-bottom-center hover:after:origin-bottom-center relative leading-none whitespace-nowrap after:absolute after:-bottom-1 after:left-0 after:h-0.5 after:w-full after:scale-x-0 after:transition-transform after:duration-250 after:ease-out after:content-[''] hover:after:scale-x-100",children:(0,t.jsx)(s.default,{href:e.link,className:"text-xs leading-none font-bold text-neutral-800 hover:text-neutral-800 hover:no-underline",children:e.name})},e.link+e.name)))}),!p&&(0,t.jsxs)("div",{className:"flex-shrink-0",children:[f&&(0,t.jsx)("h3",{className:"mb-8 text-xs text-neutral-800",children:r("language",{ns:"common"})}),(0,t.jsx)("div",{className:"flex gap-x-5",children:b.map(({locale:e,title:r,onClickMethod:a})=>(0,t.jsx)("button",{onClick:()=>{a(e)},className:`relative inline-block cursor-pointer border-none bg-transparent text-xs font-bold text-neutral-800 no-underline after:absolute after:bottom-0 after:left-1/2 after:h-0.5 after:w-full after:-translate-x-1/2 after:content-[''] ${e===C?"after:bg-color_action":"after:bg-transparent"}`,children:r},r))})]})]}),g&&(0,t.jsxs)(t.Fragment,{children:[!!h.text&&(0,t.jsx)("p",{className:"mt-20 text-sm text-neutral-800",children:h.text}),(0,t.jsxs)("div",{className:"bg-background_secondary mt-16 flex min-h-8 items-center justify-center gap-x-8 py-4",children:[(0,t.jsx)("span",{className:"text-lg text-neutral-800",children:h.title}),(0,t.jsx)("div",{className:"relative h-12 w-full max-w-40",children:(0,t.jsx)(x.default,{src:h.logo,alt:"Copy Logo",fill:!0,className:"object-contain",sizes:"160px"})})]})]})]})})}e.s(["Footer",0,function(e){let{scheme:a}=e,s=(0,r.resolveScheme)(a,r.schemeAliases.footer,"standard"),n={standard:(0,t.jsx)(m,{copyInfo:e.copyInfo,linksSection:e.linksSection,logo:e.logo,showCopyInfo:e.showCopyInfo,showLanguageTitle:e.showLanguageTitle,hideLanguageOptions:e.hideLanguageOptions,showLogo:e.showLogo,socialLinks:e.socialLinks}),rich:(0,t.jsx)(f,{copyInfo:e.copyInfo,linksSection:e.linksSection,logo:e.logo,showCopyInfo:e.showCopyInfo,showLanguageTitle:e.showLanguageTitle,hideLanguageOptions:e.hideLanguageOptions,showLogo:e.showLogo,socialLinks:e.socialLinks}),minimal:(0,t.jsx)(t.Fragment,{}),editorial:(0,t.jsx)(i,{copyInfo:e.copyInfo,linksSection:e.linksSection,logo:e.logo,showCopyInfo:e.showCopyInfo,showLanguageTitle:e.showLanguageTitle,hideLanguageOptions:e.hideLanguageOptions,showLogo:e.showLogo,socialLinks:e.socialLinks})};return n[s]??n[a]??n.standard}],131529),e.s([],124416)},293749,e=>{"use strict";var t=e.i(391398);
1e.s(["default",0,function(){return(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M15 18L9 12L15 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}])},446877,897793,662423,845662,311228,852532,e=>{"use strict";var t=e.i(391398),r=e.i(191788),a=e.i(752999),s=e.i(348669),n=e.i(413362);e.i(54617);var i=e.i(323614);e.i(960745);var o=e.i(856395);e.i(723909);var l=e.i(157671),c=e.i(642085),d=e.i(799122),h=e.i(510896),u=e.i(274924),m=e.i(741654),x=e.i(157478),f=e.i(618178),g=e.i(390930),p=e.i(468716),b=e.i(439897),C=e.i(144690),j=e.i(183639);e.i(664157);var w=e.i(271179),v=e.i(41158),k=e.i(461531),y=e.i(293749),_=e.i(897055);function N({size:e=24}){return(0,t.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function M(){return(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M12.8333 4.96996V2.32163C12.8333 1.49913 12.46 1.16663 11.5325 1.16663H9.17583C8.24833 1.16663 7.875 1.49913 7.875 2.32163V4.96413C7.875 5.79246 8.24833 6.11913 9.17583 6.11913H11.5325C12.46 6.12496 12.8333 5.79246 12.8333 4.96996Z",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M12.8333 11.5325V9.17583C12.8333 8.24833 12.46 7.875 11.5325 7.875H9.17583C8.24833 7.875 7.875 8.24833 7.875 9.17583V11.5325C7.875 12.46 8.24833 12.8333 9.17583 12.8333H11.5325C12.46 12.8333 12.8333 12.46 12.8333 11.5325Z",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M6.12533 4.96996V2.32163C6.12533 1.49913 5.75199 1.16663 4.82449 1.16663H2.46783C1.54033 1.16663 1.16699 1.49913 1.16699 2.32163V4.96413C1.16699 5.79246 1.54033 6.11913 2.46783 6.11913H4.82449C5.75199 6.12496 6.12533 5.79246 6.12533 4.96996Z",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M6.12533 11.5325V9.17583C6.12533 8.24833 5.75199 7.875 4.82449 7.875H2.46783C1.54033 7.875 1.16699 8.24833 1.16699 9.17583V11.5325C1.16699 12.46 1.54033 12.8333 2.46783 12.8333H4.82449C5.75199 12.8333 6.12533 12.46 6.12533 11.5325Z",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function B({items:e=[]}){let{t:a}=(0,w.useTranslation)("header"),[s,n]=(0,r.useState)(!1),[o,l]=(0,r.useState)(null),[c,d]=(0,r.useState)(!1),[h,u]=(0,r.useState)(!1),[m,x]=(0,r.useState)(!1),f=(0,r.useRef)(null),g=(0,r.useRef)(null),p=e.filter(e=>e.showInDesktop),b=()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{l(null)},180)},C=(0,r.useCallback)(()=>{if(g.current){let{scrollLeft:e,scrollWidth:t,clientWidth:r}=g.current,a=t>r+5;d(a),u(e>5),x(a&&e<t-r-5)}},[]),j=e=>{if(g.current){let t=g.current.scrollLeft,r="left"===e?Math.max(0,t-300):t+300;g.current.scrollTo({left:r,behavior:"smooth"})}};if((0,r.useEffect)(()=>{let e=g.current;if(!e)return;let t=setTimeout(C,100);e.addEventListener("scroll",C);let r=new ResizeObserver(C);return r.observe(e),()=>{clearTimeout(t),e.removeEventListener("scroll",C),r.disconnect()}},[e,C]),(0,r.useEffect)(()=>()=>{f.current&&clearTimeout(f.current)},[]),!e||0===e.length)return null;let S=p.filter(e=>e.subcategories&&e.subcategories.length>0);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"bg-background_header relative hidden w-full border-t border-neutral-800 lg:block",children:[s?(0,t.jsx)("div",{className:"w-full bg-white",children:(0,t.jsx)(i.Container,{className:"",children:(0,t.jsx)("div",{className:"py-4",children:(0,t.jsxs)("button",{onClick:()=>n(!1),className:"flex items-center gap-2 text-base font-medium text-neutral-700 transition-colors hover:text-neutral-900","aria-label":"Close categories menu",children:[(0,t.jsx)(N,{size:18}),a("close-categories")]})})})}):(0,t.jsx)(i.Container,{children:(0,t.jsxs)("nav",{className:"relative flex items-center gap-12 py-3",children:[(0,t.jsxs)("button",{onClick:()=>n(!s),className:"text-font_header [&_svg]:stroke-font_header mr-20 flex flex-shrink-0 items-center gap-3 text-base font-medium transition-colors hover:text-neutral-300","aria-label":"Open all categories menu",children:[(0,t.jsx)(M,{}),a("all-categories")]}),(0,t.jsx)("div",{className:"relative flex-1 overflow-hidden",children:(0,t.jsxs)("div",{ref:g,className:"flex items-center gap-10 overflow-x-auto scroll-smooth [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:[(0,t.jsx)("div",{className:"flex-1"}),p.map(e=>(0,t.jsx)("div",{className:"relative flex-shrink-0",onMouseEnter:()=>{var t;return e.subcategories&&e.subcategories.length>0?(t=e.id,void(f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{l(t)},50))):void 0},onMouseLeave:b,children:function(e){let r=e.target?e.target:"external_link"===e.linkType?"_blank":void 0,a="text-font_header block py-1 text-base whitespace-nowrap transition-colors hover:text-neutral-300 hover:no-underline",s=e.subcategories&&e.subcategories.length>0;if(e.href)return(0,t.jsx)(v.default,{href:e.href,target:r,rel:"_blank"===r?"noopener noreferrer":void 0,className:a,children:e.label});if(s){let r=`/search?resource=courses&categories=${encodeURIComponent(e.label)}`;return(0,t.jsx)(v.default,{href:r,className:a,children:e.label})}return(0,t.jsx)("span",{className:"text-font_header block cursor-pointer py-1 text-base whitespace-nowrap transition-colors hover:text-neutral-300",children:e.label})}(e)},e.id))]})}),c&&(0,t.jsxs)("div",{className:"ml-4 flex flex-shrink-0 items-center gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>j("left"),disabled:!h,className:`text-font_header p-1 transition-opacity ${h?"cursor-pointer opacity-100 hover:opacity-70":"cursor-not-allowed opacity-30"}`,"aria-label":"Scroll left",children:(0,t.jsx)(y.default,{})}),(0,t.jsx)("button",{type:"button",onClick:()=>j("right"),disabled:!m,className:`text-font_header p-1 transition-opacity ${m?"curs
1or-pointer opacity-100 hover:opacity-70":"cursor-not-allowed opacity-30"}`,"aria-label":"Scroll right",children:(0,t.jsx)(_.default,{})})]})]})}),o&&(0,t.jsx)("div",{className:"animate-in fade-in slide-in-from-top-1 absolute top-full right-0 left-0 z-40 duration-200",onMouseEnter:()=>{f.current&&clearTimeout(f.current)},onMouseLeave:b,children:(0,t.jsx)("div",{className:"border-t border-neutral-200 bg-white shadow-lg",children:(0,t.jsxs)(i.Container,{className:"px-6 pt-6 pb-9",children:[(0,t.jsx)("h3",{className:"mb-4 text-base font-semibold text-neutral-900",children:p.find(e=>e.id===o)?.label}),(0,t.jsx)("div",{className:"grid grid-flow-col grid-cols-4 grid-rows-4 gap-x-12 gap-y-1",children:p.find(e=>e.id===o)?.subcategories?.map((e,r)=>(0,t.jsx)(v.default,{href:e.href,...e.isExternal&&{target:"_blank",rel:"noopener noreferrer"},className:"inline-block max-w-fit py-1 text-base font-medium text-neutral-600 transition-colors hover:text-neutral-700",children:e.label},r))})]})})})]}),s&&(0,t.jsx)("div",{className:"animate-in slide-in-from-top-2 fade-in absolute top-full right-0 left-0 z-50 bg-white shadow-lg duration-300",children:(0,t.jsx)(i.Container,{className:"py-6",children:(0,t.jsx)("div",{className:"space-y-2",children:[0,1].map(e=>(0,t.jsxs)("div",{children:[e>0&&(0,t.jsx)("hr",{className:"border-t border-neutral-200"}),(0,t.jsx)("div",{className:"grid grid-cols-5 gap-4",children:S.slice(5*e,(e+1)*5).map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-4 text-base font-semibold text-neutral-900",children:e.label}),(0,t.jsxs)("ul",{className:"space-y-6",children:[e.subcategories?.slice(0,4).map((e,r)=>(0,t.jsx)("li",{children:(0,t.jsx)(v.default,{href:e.href,...e.isExternal&&{target:"_blank",rel:"noopener noreferrer"},className:"block text-base text-neutral-700 transition-colors hover:text-neutral-900",children:e.label})},r)),e.subcategories&&e.subcategories.length>4&&(0,t.jsx)("li",{className:"pt-4",children:(0,t.jsxs)(v.default,{href:e.href||`/search?resource=courses&categories=${encodeURIComponent(e.label)}`,className:"inline-flex items-center gap-1 text-base font-medium text-neutral-900 transition-all hover:gap-2",children:[a("view-all"),(0,t.jsx)(k.default,{})]})})]})]},e.id))})]},e))})})})]})}e.s(["FeaturedHeader",0,function(e){let w=e.navigationItems,{filter_params:v}=(0,a.useSearchContextState)(),{componentMethods:k,componentLabels:y,disableSignup:_=!1}=e,[N,M]=(0,r.useState)(!1),[S,L]=(0,r.useState)(""),T=y?.hasSearchEnabled??!1,{items:I}=(0,n.useNavigation)({enabled:!w}),R=w||I,P=R.filter(e=>e.showInMobile),{handleChangeSearchText:F,hasClickedSearchButton:z,setIsSearchModalOpen:H}=(0,s.useCreateSearchMethods)();function A(){M(!1)}function E(){if(S.trim())window.location.href=`/search?searchText=${encodeURIComponent(S.trim())}`;else{if(T&&!z)return void H(!0);T||k.searchMethod()}}return(0,t.jsxs)("header",{className:"bg-background_header relative box-border",children:[(0,t.jsxs)(i.Container,{className:"py-5",children:[z&&(0,t.jsx)(o.ClientHeaderSearchComponent,{handleChangeSearchText:F,setIsSearchModalOpen:H}),(0,t.jsxs)("nav",{className:"flex h-full items-center justify-between lg:hidden",children:[(0,t.jsxs)("div",{className:"flex items-center gap-5",children:[(0,t.jsx)(g.default,{onClick:function(){M(!0)}}),(0,t.jsx)("div",{onClick:E,children:(0,t.jsx)(p.default,{})})]}),(0,t.jsx)(c.Logo,{logoHeight:{mobile:"36px",desktop:"48px"},src:y.headerLogo,alt:"brand-logo",onClick:k.homeLink,className:"mr-6"}),(0,t.jsx)("div",{onClick:k.loginMethod,children:(0,t.jsx)(b.default,{})})]}),(0,t.jsxs)("nav",{className:"hidden h-full items-center justify-between lg:flex",children:[(0,t.jsx)(c.Logo,{logoHeight:{mobile:"36px",desktop:"36px"},src:y.headerLogo,alt:"brand-logo",onClick:k.homeLink,className:"transition-all hover:opacity-85"}),(0,t.jsx)("div",{className:"mx-6 flex flex-1 items-center justify-end",children:z?(0,t.jsx)(x.SearchBar,{value:v.searchText,placeholder:y.searchButtonText,onChange:F,onClose:()=>H(!1)}):(0,t.jsxs)("div",{className:"hover:ring-color_action flex w-53.5 items-center gap-3 rounded-sm border border-gray-300 bg-white px-3 py-1.5 transition-all hover:ring-2",children:[(0,t.jsx)("input",{type:"text",value:S,placeholder:y.searchButtonText,onChange:e=>L(e.target.value),onKeyDown:function(e){"Enter"===e.key&&E()},className:"min-w-0 flex-1 border-0 bg-transparent text-base text-gray-900 outline-none placeholder:text-gray-500"}),(0,t.jsx)("div",{onClick:E,className:"flex-shrink-0 cursor-pointer rounded p-1 transition-colors hover:[&_path]:fill-neutral-900 [&_svg]:size-4 [&_svg]:transition-all",children:(0,t.jsx)(p.default,{})})]})}),(0,t.jsx)("div",{className:"flex items-center gap-4",children:(0,t.jsx)(l.DesktopAuthButtons,{isAuthenticated:!!y.isUserAuthenticated,userName:y.userName,hello:y.hello,onLogin:k.loginMethod,onProfile:k.profileMethod,userIcon:(0,t.jsx)(C.default,{})})})]}),(0,t.jsxs)(d.MobileMenu,{isOpen:N,onClose:A,children:[(0,t.jsx)("div",{className:"bg-background_header px-6 pt-6",children:(0,t.jsx)(h.MobileMenuHeader,{onClose:A,isAuthenticated:!!y.isUserAuthenticated,userName:y.userName,greeting:y.hello,logoutText:y.leaveButtonText,loginText:y.logInButtonText,signUpText:y.signUpButtonText,onLogout:k.logOutMethod,onLogin:k.loginMethod,onSignUp:k.signUpMethod,disableSignup:_})}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,t.jsx)("ul",{className:"space-y-4 bg-white py-6",children:P.map(e=>(0,t.jsx)(u.MobileMenuNavigationItem,{label:e.label,onClick:()=>{let t;return t="external_link"===e.linkType||"_blank"===e.target,void(e.href&&(t?window.open(e.href,"_blank","noopener,noreferrer"):window.location.href=e.href),A())}},e.id))})}),(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(m.MobileMenuSocialLinks,{links:[{icon:(0,t.jsx)(j.default,{}),label:"Youtube",onClick:k.youtubeMethod},{icon:(0,t.jsx)(f.default,{}),label:"Facebook",onClick:k.facebookMethod}]})})]})]}),(0,t.jsx)(B,{items:R})]})}],446877);var S=e.i(6600);let L="4rem",T="",I="auto",R="3rem";function P(e){if("string"==typeof e&&e.trim().toLowerCase().endsWith("rem")){let t=parseFloat(e);return(0,S.legacyRem)(t)}return e}e.s(["HeaderLogo",0,function({src:e,logoStyles:r,onClick:a}){return(0,t.jsx)("img",{src:e,alt:"Logo",loading:"eager",decoding:"async",className:"cursor-pointer object-contain",draggable:!1,style:{width:r.width,maxHeight:r.maxHeight},onClick:a})},"getLogoStyles",0,function(e){let t=e&&e.mobile,r=e&&e.desktop,a=t?P(e.mobile):T,s=r?P(e.desktop):R;return{mobile:{width:t?"auto":L,maxHeight:a},desktop:{width:r?"auto":I,maxHeight:s}}}],897793),e.s(["DesktopNav",0,function({linkList:e,menuFontSize:r}){return(0,t.jsx)("nav",{className:"flex items-center gap-12",children:e.map(({link:e,title:a},s)=>(0,t.jsxs)("a",{href:e,className:"text-font_header group relative cursor-pointer text-sm leading-5 whitespace-nowrap uppercase no-underline",style:r?{fontSize:`${.625*r}rem`}:void 0,children:[a,(0,t.jsx)("span",{className:"bg-font_header absolute bottom-0 left-1/2 h-px w-0 -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]},s))})}],662423);var F=e.i(330404);e.s(["DesktopSearch",0,function({hasSearchButton:e,onClickSearch:r}){return e?(0,t.jsx)("button",{className:"text-font_header flex cursor-pointer items-center border-none bg-transparent px-2",onClick:r,"aria-label":"Search",children:(0,t.jsx)(F.HiOutlineMagnifyingGlass,{className:"size-5 transition-transform duration-200 ease-in-out hover:scale-115"})}):null}],845662),e.s(["DesktopAuthButtons",0,function({signUpButtonText:e,logInButtonText:r,onSignUp:a,onLogin:s,disableSignup:n=!1}){return(0,t.jsxs)("section",{className:"flex w-fit flex-nowrap gap-4",children:[(0,t.jsx)("button",{className:"text-font_header border-font_header flex w-fit cursor-pointer items-center border bg-transparent px-4 py-2.5 text-sm font-medium uppercase transition-colors hover:opacity-80",onClick:s,"aria-label":"Login",children:r}),!n&&(0,t.jsx)("button",{className:"text-background_header border-font_header bg-font_header flex w-fit cursor-pointer items-center border border-none px-4 py-2.5 text-sm font-medium uppercase transition-colors hover:opacity-80",onClick:a,"aria-label":"Sign Up",children:e})]})}],311228);var z=e.i(306845);e.s(["BiAward",0,function(e){return(0,z.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5 8.999c0 1.902.765 3.627 2 4.89V21a.998.998 0 0 0 1.447.895L12 20.118l3.553 1.776a.992.992
10 0 0 .972-.043c.295-.183.475-.504.475-.851v-7.11a6.976 6.976 0 0 0 2-4.891C19 5.14 15.86 2 12 2S5 5.14 5 8.999zm7.447 9.106a1 1 0 0 0-.895 0L9 19.382v-4.067c.911.434 1.926.685 3 .685s2.089-.25 3-.685v4.066l-2.553-1.276zM12 4c2.756 0 5 2.242 5 4.999A5.006 5.006 0 0 1 12 14c-2.757 0-5-2.243-5-5.001A5.005 5.005 0 0 1 12 4z"},child:[]}]})(e)},"BiChevronDown",0,function(e){return(0,z.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16.293 9.293 12 13.586 7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z"},child:[]}]})(e)},"BiChevronUp",0,function(e){return(0,z.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m6.293 13.293 1.414 1.414L12 10.414l4.293 4.293 1.414-1.414L12 7.586z"},child:[]}]})(e)},"BiLogOut",0,function(e){return(0,z.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16 13v-2H7V8l-5 4 5 4v-3z"},child:[]},{tag:"path",attr:{d:"M20 3h-9c-1.103 0-2 .897-2 2v4h2V5h9v14h-9v-4H9v4c0 1.103.897 2 2 2h9c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2z"},child:[]}]})(e)}],852532)},986616,650083,e=>{"use strict";var t=e.i(391398),r=e.i(446877),a=e.i(191788),s=e.i(533289),n=e.i(266460),i=e.i(897793),o=e.i(662423),l=e.i(845662),c=e.i(311228),d=e.i(502432),h=e.i(896731),u=e.i(792426),m=e.i(852532),x=e.i(352644),f=e.i(841783),g=e.i(587405),p=e.i(914497),b=e.i(306845);function C(e){return(0,b.GenIcon)({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M7.50061 0.875C9.50223 0.87533 11.1254 2.49835 11.1256 4.5C11.1254 6.15524 10.0147 7.54948 8.49866 7.9834C9.69596 8.12806 10.7226 8.55058 11.4957 9.3125C12.4775 10.2802 12.9743 11.7208 12.9742 13.6006C12.9739 13.8626 12.7617 14.0752 12.4996 14.0752C12.2377 14.075 12.0254 13.8625 12.025 13.6006C12.0251 11.8806 11.5718 10.7206 10.8287 9.98828C10.0843 9.25473 8.97269 8.87501 7.49963 8.875C6.02676 8.87507 4.91492 9.25482 4.17053 9.98828C3.42772 10.7206 2.97424 11.8809 2.97424 13.6006C2.9739 13.8626 2.76176 14.0752 2.49963 14.0752C2.23769 14.075 2.02537 13.8625 2.02502 13.6006C2.02502 11.7211 2.52208 10.2802 3.50354 9.3125C4.27606 8.55116 5.30254 8.12935 6.49866 7.98438C4.98407 7.5496 3.87578 6.15428 3.87561 4.5C3.87582 2.49815 5.49871 0.875 7.50061 0.875ZM7.50061 1.82422C6.02338 1.82422 4.82504 3.02282 4.82483 4.5C4.82504 5.97718 6.02338 7.1748 7.50061 7.1748C8.97756 7.17447 10.1752 5.97698 10.1754 4.5C10.1752 3.02302 8.97756 1.82455 7.50061 1.82422Z",fill:"currentColor"},child:[]}]})(e)}function j(e){return(0,b.GenIcon)({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{d:"M13.6006 11.0098C13.8286 11.0563 14 11.2583 14 11.5C14 11.7417 13.8286 11.9437 13.6006 11.9902L13.5 12H1.5C1.22386 12 1 11.7761 1 11.5C1 11.2239 1.22386 11 1.5 11H13.5L13.6006 11.0098ZM13.6006 7.00977C13.8286 7.05629 14 7.25829 14 7.5C14 7.74171 13.8286 7.94371 13.6006 7.99
1023L13.5 8H1.5C1.22386 8 1 7.77614 1 7.5C1 7.22386 1.22386 7 1.5 7H13.5L13.6006 7.00977ZM13.6006 3.00977C13.8286 3.05629 14 3.25829 14 3.5C14 3.74171 13.8286 3.94371 13.6006 3.99023L13.5 4H1.5C1.22386 4 1 3.77614 1 3.5C1 3.22386 1.22386 3 1.5 3H13.5L13.6006 3.00977Z",fill:"currentColor"},child:[]}]})(e)}var w=e.i(386547);let v=(0,w.cn)("flex items-center w-fit border-none bg-transparent font-semibold cursor-pointer text-left hover:opacity-80","text-font_header [&_svg]:stroke-font_header [&_svg]:text-font_header");function k({userPicture:e,userName:r,greeting:s,showMenu:n,onToggleMenu:i,menuItems:o,leaveButtonText:l,onLogout:c,balances:b,rewardProps:j,rewards:y,componentMethods:_,componentLabels:N}){let[M,B]=(0,a.useState)(!1),S=(0,a.useRef)(null);(0,a.useEffect)(()=>{B(!1);let e=S.current;e&&e.complete&&0===e.naturalWidth&&B(!0)},[e]);let L={tickets:()=>(0,t.jsxs)("button",{className:(0,w.cn)(v,"gap-2.5 text-base"),onClick:_.myPresentialTicketsMethod,"aria-label":"My Tickets",children:[(0,t.jsx)(f.FaTicketAlt,{className:"size-5"}),N.myTicketsButtonText]}),courses:()=>(0,t.jsxs)("button",{className:(0,w.cn)(v,"gap-2.5 text-base"),onClick:_.myCoursesMethod,"aria-label":"My Courses",children:["my-courses"===N.myCoursesButtonText?(0,t.jsx)(x.BsBook,{}):(0,t.jsx)(f.FaPlay,{}),N.myCoursesButtonText]}),certificates:()=>(0,t.jsxs)("button",{className:(0,w.cn)(v,"gap-2.5 text-base"),onClick:_.certificatesMethod,"aria-label":"My Certificates",children:[(0,t.jsx)(m.BiAward,{className:"size-5"}),N.myCertificates]}),purchases:()=>(0,t.jsxs)("button",{className:(0,w.cn)(v,"gap-2.5 text-base"),onClick:_.myPurchasesMethod,"aria-label":"My Purchases",children:[(0,t.jsx)(p.MdOutlineStorefront,{className:"size-5"}),N.myPurchasesButtonText]}),rescues:()=>y.length>0?(0,t.jsxs)("button",{className:(0,w.cn)(v,"gap-2.5 text-base"),onClick:_.rescuesMethod,"aria-label":"Rescues",children:[(0,t.jsx)(d.default,{}),N.rescuesButtonText]}):(0,t.jsx)(t.Fragment,{}),itemsStore:()=>y.length>0?(0,t.jsxs)("button",{className:(0,w.cn)(v,"gap-2.5 text-base"),onClick:_.itemsStoreMethod,"aria-label":"Items Store",children:[(0,t.jsx)(h.default,{}),N.itemsStoreButtonText]}):(0,t.jsx)(t.Fragment,{}),profile:()=>(0,t.jsxs)("button",{className:(0,w.cn)(v,"gap-2.5 text-base"),onClick:_.profileMethod,"aria-label":"My Profile",children:[(0,t.jsx)(C,{className:"size-5"}),N.myProfileButtonText]})};return(0,t.jsxs)("div",{className:(0,w.cn)(b.length>0?"md:w-max":"","inline-flex items-center justify-end gap-3"),children:[b.length>0&&(0,t.jsx)(u.default,{modalRef:j.modalRef,balances:b,selectedRewardId:j.selectedRewardId,onSelectReward:j.onSelectReward,hasAvailableRedeem:void 0!==j.loginTriggers.find(e=>e.reward_id===j.selectedRewardId),onRedeem:()=>{let e=j.loginTriggers.find(e=>e.reward_id===j.selectedRewardId);e&&null!=e.id&&j.redeemTriggerReward(e.id)},isLoadingEarnMore:j.isLoadingActiveTriggers,isRedeeming:j.isLoadingRedeem,onClickEarnMore:j.openEarnMoreRewardsModal}),(0,t.jsxs)("button",{className:"text-font_header [&_svg]:text-font_header [&_path]:text-font_header [&_polyline]:text-font_header [&_line]:text-font_header bg-background_secondary group relative flex w-fit cursor-pointer items-center gap-2 border-none px-4 py-1.5 text-base font-medium hover:shadow-sm",onClick:i,"aria-label":"User menu",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 transition-all duration-200 ease-in-out group-hover:opacity-80",children:[e&&!M?(0,t.jsx)("img",{ref:S,src:e,alt:"User Picture",loading:"lazy",className:"outline-background_tertiary flex size-7 cursor-pointer items-center object-cover outline",onError:()=>B(!0)}):(0,t.jsx)("div",{className:"bg-background_header outline-background_tertiary text-font_action flex size-7 items-center justify-center text-sm font-semibold outline select-none",children:r?.charAt(0).toUpperCase()}),(0,t.jsxs)("p",{className:"text-action_color [&>svg]:text-font_header flex items-center text-sm leading-4 font-medium uppercase [&>svg]:ml-1 [&>svg]:size-4",children:[s," ",r,n?(0,t.jsx)(m.BiChevronUp,{}):(0,t.jsx)(m.BiChevronDown,{})]})]}),n&&(0,t.jsxs)("section",{className:"bg-background_header absolute top-14 right-0 flex h-auto w-sm flex-col gap-5 rounded-md p-5 shadow-[0px_4px_20px_rgba(0,0,0,0.06)]",onClick:e=>{e.stopPropagation()},children:[o.map((e,r)=>{let a=L[e];return a?(0,t.jsx)(a,{},r):null}),(0,t.jsx)("div",{className:"bg-font_header h-px w-full"}),(0,t.jsxs)("button",{className:(0,w.cn)(v,"gap-2.5 text-base"),onClick:()=>{c()},"aria-label":"Logout",children:[(0,t.jsx)(g.FiLogOut,{className:"size-5"}),l]})]})]})]})}var y=e.i(330404),_=e.i(712987),N=e.i(589649);let M="cursor-pointer text-font_title_block mb-6 text-xl leading-5",B="text-font_title_block flex w-full cursor-pointer items-center justify-between border-none bg-transparent text-left text-xl font-extrabold uppercase no-underline";function S({componentLabels:e,componentMethods:r,isShown:s,isUserAuthenticated:n,headerRewardBalanceProps:i,hasGamification:o,hasGamificationStore:l,disableSignup:c=!1}){let[d,h]=(0,a.useState)(!1),m=(0,a.useRef)(null);return(0,a.useEffect)(()=>{h(!1);let e=m.current;
1e&&e.complete&&0===e.naturalWidth&&h(!0)},[e.userPicture]),(0,t.jsxs)("section",{className:(0,w.cn)("bg-background_main fixed top-[var(--header-height,50px)] left-0 z-9 flex h-[calc(100dvh-var(--header-height,50px))] w-full flex-col overflow-hidden transition-transform duration-600 ease-in-out",s?"translate-x-0":"translate-x-[200%]"),children:[(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto p-6",children:[!!e.linkList.length&&!!e?.hasNavbar&&(0,t.jsx)("ul",{className:"list-none p-0",children:!!e.linkList.length&&e.linkList.map(({title:e,link:r})=>(0,t.jsx)("li",{className:M,children:(0,t.jsxs)("a",{href:r,className:B,children:[e,(0,t.jsx)(N.FaArrowRight,{className:"text-font_title_block size-4"})]})},r))}),!!n&&(0,t.jsxs)("ul",{className:"list-none p-0",children:[(0,t.jsx)("li",{className:M,children:(0,t.jsxs)("button",{className:B,onClick:r.myPurchasesMethod,"aria-label":"My Purchases",children:[e.myPurchasesButtonText,(0,t.jsx)(N.FaArrowRight,{className:"text-font_title_block size-4"})]})}),(0,t.jsx)("li",{className:M,children:(0,t.jsxs)("button",{className:B,onClick:r.certificatesMethod,"aria-label":"My Certificates",children:[e.myCertificates,(0,t.jsx)(N.FaArrowRight,{className:"text-font_title_block size-4"})]})}),o&&(0,t.jsx)("li",{className:M,children:(0,t.jsxs)("button",{className:B,onClick:r.rescuesMethod,"aria-label":"My Rescues",children:[e.rescuesButtonText,(0,t.jsx)(N.FaArrowRight,{className:"text-font_title_block size-4"})]})}),l&&(0,t.jsx)("li",{className:M,children:(0,t.jsxs)("button",{className:B,onClick:r.itemsStoreMethod,"aria-label":"Gamification Store",children:[e.itemsStoreButtonText,(0,t.jsx)(N.FaArrowRight,{className:"text-font_title_block size-4"})]})})]})]}),(0,t.jsx)("hr",{className:"border-font_header border-t"}),(0,t.jsxs)("div",{className:"bg-background_main flex-shrink-0 px-6 pt-4 pb-8",children:[n?(0,t.jsxs)("div",{className:"flex w-full flex-col gap-y-2",children:[i&&(i?.balances?.length??0)>0&&(0,t.jsx)(u.default,{...i}),(0,t.jsxs)("button",{onClick:r.profileMethod,className:"flex w-full cursor-pointer items-center justify-between border-none bg-transparent p-0 py-1.5","aria-label":"My Profile",children:[(0,t.jsxs)("p",{className:"text-action_color flex items-center text-xl uppercase",children:[e.hello," ",e.userName]}),e.userPicture&&!d?(0,t.jsx)("img",{ref:m,src:e.userPicture,alt:"User",loading:"lazy",className:"outline-background_tertiary flex size-10 cursor-pointer items-center object-cover outline",onError:()=>h(!0)}):(0,t.jsx)("div",{className:"bg-background_header outline-background_tertiary text-font_action flex size-10 items-center justify-center text-xl font-medium outline select-none",children:e.userName?.charAt(0).toUpperCase()})]}),(0,t.jsxs)("ul",{className:"list-none p-0",children:[(0,t.jsx)("li",{className:M,children:(0,t.jsxs)("button",{className:B,onClick:r.myCoursesMethod,"aria-label":"My Courses",children:[e.myCoursesButtonText,(0,t.jsx)(N.FaArrowRight,{className:"text-font_title_block size-4"})]})}),(0,t.jsx)("li",{className:"text-font_title_block mb-3 text-xl leading-5",children:(0,t.jsxs)("button",{className:B,onClick:r.profileMethod,"aria-label":"My Profile",children:[e.myProfileButtonText,(0,t.jsx)(N.FaArrowRight,{className:"text-font_title_block size-4"})]})})]}),(0,t.jsx)("button",{className:"text-font_title_block border-font_title_block flex w-full cursor-pointer items-center justify-center gap-x-2.5 border bg-transparent p-3.5 text-sm font-medium uppercase",onClick:r.logOutMethod,"aria-label":"Log Out",children:e.leaveButtonText})]}):(0,t.jsxs)("div",{className:"flex w-full flex-col gap-y-3",children:[(0,t.jsx)("button",{className:"text-font_header border-font_header flex w-full cursor-pointer items-center justify-center gap-x-2.5 border bg-transparent p-4 text-sm font-medium uppercase",onClick:r.loginMethod,"aria-label":"Log In",children:e.logInButtonText}),!c&&(0,t.jsx)("button",{className:"text-background_header bg-font_header flex cursor-pointer items-center justify-center gap-x-2.5 border-0 p-4 text-sm font-medium uppercase",onClick:r.signUpMethod,"aria-label":"Sign Up",children:e.signUpButtonText})]}),(0,t.jsxs)("div",{className:"mt-4 flex flex-wrap justify-center gap-x-8 gap-y-3",children:[(0,t.jsx)("button",{onClick:r.youtubeMethod,className:"text-font_header flex cursor-pointer items-center gap-x-2 border-none bg-transparent","aria-label":"YouTube",children:(0,t.jsx)(x.BsYoutube,{className:"size-4"})}),(0,t.jsx)("button",{onClick:r.facebookMethod,className:"text-font_header flex cursor-pointer items-center gap-x-2 border-none bg-transparent","aria-label":"Facebook",children:(0,t.jsx)(x.BsFacebook,{className:"size-4"})}),(0,t.jsx)("button",{onClick:r.instagramMethod,className:"text-font_header flex cursor-pointer items-center gap-x-2 border-none bg-transparent","aria-label":"Instagram",children:(0,t.jsx)(x.BsInstagram,{className:"size-4"})}),(0,t.jsx)("button",{onClick:r.whatsappMethod,className:"text-font_header flex cursor-pointer items-center gap-x-2 border-none bg-transparent","aria-label":"WhatsApp",children:(0,t.jsx)(x.BsWhatsapp,{className:"size-4"})})]})]})]})}function L({sideBarRef:e,sideBarProps:r,logoSrc:a,logoStyles:s,hasSearchButton:n,isUserAuthenticated:o,isMenuOpen:l,userPicture:c,onToggleSideMenu:d,onCloseSideMenu:h,onClickSearch:u,onClickLogo:m,onOpenUserMenu:x,onLogin:f}){return(0,t.jsxs)("div",{ref:e,className:"bg-background_header text-font_header box-border flex max-h-25 min-h-12 w-full items-center justify-between px-4 py-2",children:[(0,t.jsx)("div",{className:"flex items-center gap-3",children:(0,t.jsx)(i.HeaderLogo,{src:a,logoStyles:s,onClick:m})}),(0,t.jsx)(S,{...r}),(0,t.jsxs)("section",{className:"flex min-h-12 flex-row flex-nowrap items-center justify-center gap-6",children:[!!n&&(0,t.jsx)("button",{className:"text-font_header [&>svg]:text-font_header size-5 cursor-pointer border-none bg-transparent",onClick:u,"aria-label":"Search",children:(0,t.jsx)(y.HiOutlineMagnifyingGlass,{className:"size-5"})}),l?(0,t.jsx)("button",{className:"text-font_header [&>svg]:text-font_header size-5 cursor-pointer border-none bg-transparent",onClick:h,"aria-label":"Close Menu",children:(0,t.jsx)(_.TfiClose,{className:"size-4"})}):(0,t.jsx)("button",{className:"text-font_header [&>svg]:text-font_header size-5 cursor-pointer border-none bg-transparent",onClick:d,"aria-label":"Menu",children:(0,t.jsx)(j,{className:"size-5"})})]})]})}function T({componentLabels:e,componentMethods:r,hasGamification:d,hasGamificationStore:h,disableSignup:u=!1}){let m=(0,a.useRef)(null),x=(0,a.useRef)(null),[f,g]=(0,a.useState)(!1),[p,b]=(0,a.useState)(!1);(0,a.useEffect)(()=>(document.body.style.overflow=f?"hidden":"",()=>{document.body.style.overflow=""}),[f]);let[C,j]=(0,a.useState)(null),[w,v]=(0,a.useState)(null),{userTriggersRedeem:{balances:y,loginTriggers:_},isLoadingActiveTriggers:N,isLoadingRedeem:M,rewards:B}=(0,n.useGamificationState)(),{redeemTriggerReward:S,openEarnMoreRewardsModal:I}=(0,n.useGamificationEvents)(),R=(0,a.useRef)(null);(0,s.default)(R,()=>{j(null)});let P=(0,a.useRef)(null);(0,s.default)(P,()=>{v(null)});let[F,z]=(0,a.useState)(0),H=(0,a.useMemo)(()=>F>=1024,[F]),A=()=>{x.current&&document.documentElement.style.setProperty("--header-height",`${x.current.offsetHeight}px`)},E=()=>{z(window.innerWidth),A()};function V(){b(e=>!e)}(0,a.useLayoutEffect)(()=>(0===F&&z(window.innerWidth),A(),window.addEventListener("resize",E),()=>{window.removeEventListener("resize",E)}));let U=(0,i.getLogoStyles)(e.logoHeight),$=e.sideMenuItems&&e.sideMenuItems.length>0?e.sideMenuItems:["courses","tickets","certificates","purchases","itemsStore","rescues","profile"],O={componentLabels:{currentUrl:e.currentUrl,hasNavbar:e.hasNavbar,highlightsButtonText:e.highlightsButtonText,linkList:e.linkList,logInButtonText:e.logInButtonText,signUpButtonText:e.signUpButtonText,myCoursesButtonText:e.myCoursesButtonText,myCertificates:e.myCertificates,myProfileButtonText:e.myProfileButtonText,myTicketsButtonText:e.myTicketsButtonText,leaveButtonText:e.leaveButtonText,sideMenuItems:e.sideMenuItems,menuFontSize:e.menuFontSize,myPurchasesButtonText:e.myPurchasesButtonText,rescuesButtonText:e.rescuesButtonText,itemsStoreButtonText:e.itemsStoreButtonText,hello:e.hello,userName:e.userName,userPicture:e.userPicture},componentMethods:{handleSideBarVisibility:()=>{g(!1)},highlightsLink:r.highlightsLink,loginMethod:r.loginMethod,logOutMethod:r.logOutMethod,myCoursesMethod:r.myCoursesMethod,profileMethod:r.profileMethod,signUpMethod:r.signUpMethod,navigationAction:r.navigationAction,certificatesMethod:r.certificatesMethod,myPresentialTicketsMethod:r.myPresentialTicketsMethod,myPurchasesMethod:r.myPurchasesMethod,rescuesMethod:r.rescuesMethod,itemsStoreMethod:r.itemsStoreMethod,youtubeMethod:r.youtubeMethod,facebookMethod:r.facebookMethod,instagramMethod:r.instagramMethod,whatsappMethod:r.whatsappMethod},isShown:f,isUserAuthenticated:e.isUserAuthenticated,headerRewardBalanceProps:{modalRef:P,balances:y??[],selectedRewardId:w,onSelectReward:v,hasAvailableRedeem:void 0!==_.find(e=>e.reward_id===w),onRedeem:()=>{let e=_.find(e=>e.reward_id===w);e&&null!=e.id&&S(e.id)},isLoadingEarnMore:N,isRedeeming:M,onClickEarnMore:I},hasGamification:d&&B.length>0,hasGamificationStore:h&&B.length>0,disableSignup:u};return(0,t.jsx)("header",{ref:x,className:`top-0 z-9 box-border ${!H&&f?"sticky":"relative"}`,children:H?(0,t.jsxs)("div",{className:"bg-background_header text-font_header box-border flex h-auto max-h-25 min-h-10 w-full items-center justify-between px-7.5 py-3.5",children:[(0,t.jsx)(i.HeaderLogo,{src:e.headerLogo,logoStyles:U.desktop,onClick:r.homeLink}),(0,t.jsxs)("div",{className:"flex items-center gap-6",children:[e.hasNavbar&&(0,t.jsx)(o.DesktopNav,{linkList:e.linkList,menuFontSize:e.menuFontSize}),(0,t.jsx)(l.DesktopSearch,{hasSearchButton:!!e.hasSearchButton,onClickSearch:r.searchMethod}),e.isUserAuthenticated?(0,t.jsx)(k,{userPicture:e.userPicture,userName:e.userName,showMenu:p,onToggleMenu:V,menuItems:$,leaveButtonText:e.leaveButtonText,onLogout:()=>{b(!1),r.logOutMethod()},balances:y??[],rewardProps:{modalRef:R,selectedRewardId:C,onSelectReward:j,loginTriggers:_,redeemTriggerReward:S,isLoadingActiveTriggers:N,isLoadingRedeem:M,openEarnMoreRewardsModal:I},rewards:B,componentMethods:r,componentLabels:e,greeting:e.hello}):(0,t.jsx)(c.DesktopAuthButtons,{signUpButtonText:e.signUpButtonText,logInButtonText:e.logInButtonText,onSignUp:r.signUpMethod,onLogin:r.loginMethod,disableSignup:u})]})]}):(0,t.jsx)(L,{sideBarRef:m,sideBarProps:O,logoSrc:e.headerLogo,logoStyles:U.mobile,hasSearchButton:!!e.hasSearchButton,isUserAuthenticated:e.isUserAuthenticated,isMenuOpen:f,userPicture:e.userPicture,onToggleSideMenu:()=>g(!0),onCloseSideMenu:()=>g(!1),onClickSearch:r.searchMethod,onClickLogo:r.homeLink,onOpenUserMenu:V,onLogin:r.loginMethod})})}var I=e.i(752999),R=e.i(126019),P=e.i(348669);e.i(960745);var F=e.i(856395),z=e.i(954296);function H(){return(0,t.jsx)("svg",{width:"25",height:"33",viewBox:"0 0 36 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M17.7273 0.429688C7.95249 0.429688 0 7.72792 0 16.6985C0 25.6685 7.95249 32.9674 17.7273 32.9674
1C27.5013 32.9674 35.4545 25.6685 35.4545 16.6985C35.4545 7.72792 27.5028 0.429688 17.7273 0.429688ZM22.1359 17.2713H19.2518V26.7052H14.9781C14.9781 26.7052 14.9781 21.5505 14.9781 17.2713H12.9466V13.937H14.9781V11.7804C14.9781 10.2358 15.7779 7.82229 19.2911 7.82229L22.4579 7.83343V11.07C22.4579 11.07 20.5335 11.07 20.1594 11.07C19.7852 11.07 19.2532 11.2417 19.2532 11.9783V13.9377H22.5093L22.1359 17.2713Z",fill:"currentColor"})})}function A(){return(0,t.jsxs)("svg",{width:"36",height:"34",viewBox:"0 0 36 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M26.5909 0.946045H8.86364C3.98907 0.946045 0 4.60684 0 9.08027V25.3495C0 29.8217 3.98907 33.4837 8.86364 33.4837H26.5909C31.4655 33.4837 35.4545 29.8217 35.4545 25.3495V9.08027C35.4545 4.60684 31.4655 0.946045 26.5909 0.946045ZM32.4999 25.3495C32.4999 28.3388 29.8501 30.7722 26.5909 30.7722H8.86364C5.60582 30.7722 2.95469 28.3388 2.95469 25.3495V9.08027C2.95469 6.09015 5.60582 3.65758 8.86364 3.65758H26.5909C29.8501 3.65758 32.4999 6.09015 32.4999 9.08027V25.3495Z",fill:"white"}),(0,t.jsx)("path",{d:"M27.3312 10.4359C28.555 10.4359 29.5471 9.52543 29.5471 8.40233C29.5471 7.27923 28.555 6.36877 27.3312 6.36877C26.1074 6.36877 25.1153 7.27923 25.1153 8.40233C25.1153 9.52543 26.1074 10.4359 27.3312 10.4359Z",fill:"white"}),(0,t.jsx)("path",{d:"M17.7273 9.0802C12.831 9.0802 8.86364 12.7215 8.86364 17.2144C8.86364 21.7057 12.831 25.3494 17.7273 25.3494C22.6222 25.3494 26.5909 21.7057 26.5909 17.2144C26.5909 12.7215 22.6222 9.0802 17.7273 9.0802ZM17.7273 22.6379C14.4641 22.6379 11.8183 20.2099 11.8183 17.2144C11.8183 14.219 14.4641 11.7917 17.7273 11.7917C20.9905 11.7917 23.6362 14.219 23.6362 17.2144C23.6362 20.2099 20.9905 22.6379 17.7273 22.6379Z",fill:"white"})]})}function E(){return(0,t.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_32_39)",children:[(0,t.jsx)("path",{d:"M4.80122 16.4063H21.0935C21.8701 16.4063 22.4997 15.7766 22.4997 15C22.4997 14.2234 21.8701 13.5938 21.0935 13.5938H4.80122L6.61939 11.7756C7.16858 11.2264 7.16858 10.3361 6.61939 9.78689C6.0703 9.2377 5.17987 9.2377 4.63069 9.78689L0.412151 14.0055C0.379245 14.0384 0.34812 14.0729 0.318683 14.1089C0.305839 14.1246 0.294683 14.1412 0.282589 14.1572C0.26712 14.1778 0.251183 14.198 0.236839 14.2195C0.223714 14.239 0.212371 14.2594 0.200371 14.2795C0.18884 14.2988 0.176746 14.3176 0.166152 14.3375C0.15509 14.3581 0.145809 14.3793 0.135871 14.4003C0.126121 14.4208 0.115903 14.4411 0.107184 14.4621C0.0987464 14.4826 0.091809 14.5035 0.0844028 14.5243C0.0762466 14.5468 0.0676216 14.569 0.0606842 14.592C0.054403 14.6128 0.0498093 14.6339 0.0445593 14.655C0.0386531 14.6784 0.0320906 14.7016 0.0274031 14.7254C0.0226219 14.7497 0.0197157 14.7743 0.016247 14.7987C0.013247 14.8196 0.00921576 14.8403 0.00715328 14.8614C0.0026533 14.9068 0.000309569 14.9525 0.00021582 14.998C0.00021582 14.9987 0.00012207 14.9994 0.00012207 15.0001C0.00012207 15.0008 0.00021582 15.0015 0.00021582 15.0022C0.000309569 15.0478 0.0026533 15.0934 0.00715328 15.1389C0.00921576 15.1598 0.0131532 15.1801 0.0160595 15.2008C0.0196219 15.2256 0.0225282 15.2503 0.0274031 15.2749C0.0320906 15.2985 0.0385593 15.3214 0.0444655 15.3445C0.0498093 15.3658 0.0544967 15.3873 0.0608717 15.4084C0.0677154 15.431 0.0762466 15.4528 0.0841215 15.4749C0.0917152 15.4961 0.0986527 15.5174 0.107278 15.5382C0.115809 15.5589 0.12584 15.5786 0.135402 15.5988C0.145527 15.6203 0.15509 15.6419 0.16634 15.663C0.176652 15.6822 0.188371 15.7005 0.199527 15.7192C0.211808 15.7399 0.223527 15.7608 0.237027 15.7809C0.250714 15.8015 0.265995 15.8207 0.280714 15.8405C0.293464 15.8574 0.305276 15.875 0.31887 15.8915C0.346901 15.9256 0.37662 15.9583 0.407651 15.9897C0.409151 15.9912 0.41037 15.9929 0.411869 15.9944L4.63059 20.2132C4.90528 20.4878 5.26509 20.6252 5.62499 20.6252C5.9848 20.6251 6.3448 20.4878 6.6193 20.2133C7.16848 19.6641 7.16848 18.7738 6.61939 18.2246L4.80122 16.4063Z",fill:"white"}),(0,t.jsx)("path",{d:"M28.5938 2.34375H10.7814C10.0047 2.34375 9.37512 2.97337 9.37512 3.74999V9.37496C9.37512 10.1516 10.0047 10.7812 10.7814 10.7812C11.558 10.7812 12.1876 10.1516 12.1876 9.37496V5.15623H27.187
15V24.8437H12.1876V20.6249C12.1876 19.8483 11.558 19.2186 10.7814 19.2186C10.0047 19.2186 9.37512 19.8483 9.37512 20.6249V26.2499C9.37512 27.0266 10.0047 27.6562 10.7814 27.6562H28.5938C29.3704 27.6562 30 27.0266 30 26.2499V3.74999C30 2.97337 29.3704 2.34375 28.5938 2.34375Z",fill:"white"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_32_39",children:(0,t.jsx)("rect",{width:"30",height:"30",fill:"white"})})})]})}function V({onClick:e}){return(0,t.jsxs)("svg",{width:"23",height:"21",viewBox:"0 0 23 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:e,role:"button","aria-label":"Open menu",children:[(0,t.jsx)("rect",{y:"19",width:"17",height:"2",rx:"1",fill:"#C4C4C4"}),(0,t.jsx)("rect",{y:"9",width:"23",height:"2",rx:"1",fill:"#C4C4C4"}),(0,t.jsx)("rect",{width:"20",height:"2",rx:"1",fill:"#C4C4C4"})]})}function U(){return(0,t.jsxs)("svg",{width:"16",height:"18",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M13.817 14.5105V14.5104C13.8193 13.7513 13.6698 12.9994 13.3776 12.2988C13.0853 11.5983 12.6561 10.9633 12.1151 10.4309C12.0488 10.3673 11.9957 10.2912 11.9591 10.207C11.9223 10.1226 11.9028 10.0318 11.9015 9.93975C11.9002 9.84775 11.9173 9.75641 11.9517 9.67107C11.9861 9.58572 12.0371 9.50808 12.1018 9.44265C12.1665 9.37723 12.2436 9.32535 12.3286 9.29001C12.4135 9.25468 12.5047 9.23662 12.5967 9.23687C12.6887 9.23712 12.7797 9.25568 12.8645 9.29147C12.9491 9.3272 13.0258 9.37939 13.0901 9.445C13.0902 9.44512 13.0903 9.44523 13.0904 9.44535L13.0547 9.48031C13.722 10.1367 14.2514 10.9197 14.6119 11.7836C14.9724 12.6474 15.1566 13.5745 15.1537 14.5105H13.817ZM13.817 14.5105C13.817 14.684 13.6911 14.8902 13.4277 15.1053C13.1665 15.3187 12.7794 15.533 12.2796 15.7239C11.2805 16.1055 9.83917 16.3906 8.07687 16.3906C6.31457 16.3906 4.87324 16.1054 3.87417 15.7236C3.3744 15.5325 2.98724 15.3181 2.72603 15.1046C2.46263 14.8893 2.33673 14.683 2.33673 14.5092L2.33673 14.5091C2.33458 13.7552 2.48199 13.0084 2.77043 12.3119C3.05883 11.6154 3.4825 10.9831 4.01692 10.4514C4.08255 10.3874 4.13483 10.311 4.17073 10.2266C4.20666 10.1421 4.22546 10.0513 4.22605 9.95955C4.22663 9.86777 4.20898 9.77678 4.17412 9.69186C4.13926 9.60695 4.08789 9.5298 4.02298 9.46489C3.95808 9.39998 3.88093 9.34861 3.79601 9.31375C3.7111 9.2789 3.62011 9.26125 3.52832 9.26183C3.43653 9.26241 3.34577 9.28121 3.2613 9.31714C3.17696 9.35302 3.10056 9.40527 3.03654 9.47086C2.37282 10.1312 1.84665 10.9166 1.4885 11.7816C1.13031 12.6467 0.947288 13.5743 0.95003 14.5106M13.817 14.5105L15.2037 14.5107C15.2036 15.5885 14.264 16.4045 12.9207 16.9488C11.5728 17.4948 9.7969 17.7773 8.07687 17.7773C6.35684 17.7773 4.5809 17.4948 3.23306 16.9488C1.88969 16.4045 0.950073 15.5885 0.95003 14.5106M0.95003 14.5106C0.95003 14.5106 0.95003 14.5106 0.95003 14.5105H1.00003L0.950031 14.5107C0.950031 14.5107 0.95003 14.5106 0.95003 14.5106Z",fill:"#fff",stroke:"#fff",strokeWidth:"0.1"}),(0,t.jsx)("path",{d:"M8.07663 10.0569H8.07669C8.97727 10.0569 9.85764 9.78984 10.6064 9.2895C11.3553 8.78916 11.9389 8.07801 12.2835 7.24598C12.6282 6.41394 12.7183 5.4984 12.5426 4.61511C12.3669 3.73183 11.9333 2.92049 11.2965 2.28368C10.6596 1.64686 9.8483 1.21319 8.96502 1.0375C8.08174 0.8618 7.16619 0.951973 6.33416 1.29661C5.50213 1.64125 4.79097 2.22488 4.29064 2.97369C3.7903 3.7225 3.52324 4.60286 3.52324 5.50345L3.52324 5.5035C3.52464 6.71071 4.00481 7.86807 4.85844 8.7217C5.71206 9.57532 6.86942 10.0555 8.07663 10.0569ZM8.07675 2.3367C8.70305 2.33671 9.31529 2.52244 9.83604 2.87039C10.3568 3.21836 10.7627 3.71294 11.0024 4.29159C11.2421 4.87023 11.3048 5.50696 11.1826 6.12125C11.0604 6.73554 10.7588 7.2998 10.3159 7.74267C9.87304 8.18555 9.30878 8.48716 8.69449 8.60935C8.0802 8.73153 7.44347 8.66882 6.86483 8.42914C6.28618 8.18946 5.7916 7.78357 5.44363 7.2628C5.09568 6.74204 4.90995 6.12981 4.90994 5.50351C4.91093 4.66392 5.24489 3.85901 5.83857 3.26533C6.43225 2.67165 7.23716 2.33769 8.07675 2.3367Z",fill:"#fff",stroke:"#ff",strokeWidth:"0.1"})]})}function $(){return(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M19.6959 18.2168L14.7656 13.2662C16.0332 11.8113 16.7278 9.98069 16.7278 8.07499C16.7278 3.62251 12.9757 0 8.36391 0C3.75212 0 0 3.62251 0 8.07499C0 12.5275 3.75212 16.15 8.36391 16.15C10.0952 16.15 11.7451 15.6458 13.1557 14.6888L18.1235 19.677C18.3311 19.8852 18.6104 20 18.9097 20C19.193 20 19.4617 19.8957 19.6657 19.7061C20.0992 19.3034 20.113 18.6357 19.6959 18.2168ZM8.36391 2.10652C11.7727 2.10652 14.5459 4.78391 14.5459 8.07499C14.5459 11.3661 11.7727 14.0435 8.36391 14.0435C4.95507 14.0435 2.18189 11.3661 2.18189 8.07499C2.18189 4.78391 4.95507 2.10652 8.36391 2.10652Z",fill:"#BDBDBD"})})}function O(){return(0,t.jsxs)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M15.3438 0.9H3.65625C2.13637 0.9 0.9 2.13637 0.9 3.65625V4.98438C0.9 5.40637 1.24207 5.74844 1.66406 5.74844C2.08605 5.74844 2.42813 5.40637 2.42813 4.98438V3.65625C2.42813 2.97915 2.97915 2.42813 3.65625 2.42813H15.3438C16.0209 2.42813 16.5719 2.97915 16.5719 3.65625V15.3438C16.5719 16.02
109 16.0209 16.5719 15.3438 16.5719H3.65625C2.97915 16.5719 2.42813 16.0209 2.42813 15.3438V14.0156C2.42813 13.5936 2.08605 13.2516 1.66406 13.2516C1.24207 13.2516 0.9 13.5936 0.9 14.0156V15.3438C0.9 16.8636 2.13637 18.1 3.65625 18.1H15.3438C16.8636 18.1 18.1 16.8636 18.1 15.3438V3.65625C18.1 2.13637 16.8636 0.9 15.3438 0.9Z",fill:"white",stroke:"white",strokeWidth:"0.2"}),(0,t.jsx)("path",{d:"M12.2243 8.02039L12.2243 8.02036L9.74119 5.53956C9.44267 5.2413 8.9589 5.24154 8.66065 5.54005C8.3624 5.83857 8.36263 6.32234 8.66115 6.62059L8.66115 6.62059L11.144 9.10113C11.144 9.10114 11.144 9.10115 11.144 9.10116C11.3638 9.32103 11.3638 9.67897 11.144 9.89883L11.1419 9.9009L11.1411 9.90177L11.1407 9.90219L8.65759 12.4162L8.72834 12.4861L8.65759 12.4162C8.36106 12.7164 8.36404 13.2002 8.66428 13.4967C8.81314 13.6438 9.00735 13.7172 9.20115 13.7172C9.39812 13.7172 9.59535 13.6413 9.74478 13.49L12.2262 10.9777C12.2263 10.9776 12.2263 10.9776 12.2264 10.9775C13.0404 10.1616 13.0397 8.83581 12.2243 8.02039Z",fill:"white",stroke:"white",strokeWidth:"0.2"}),(0,t.jsx)("path",{d:"M8.73633 8.73594H1.66406C1.24207 8.73594 0.9 9.07801 0.9 9.5C0.9 9.92199 1.24207 10.2641 1.66406 10.2641H8.73633C9.15832 10.2641 9.50039 9.92199 9.50039 9.5C9.50039 9.07801 9.15832 8.73594 8.73633 8.73594Z",fill:"white",stroke:"white",strokeWidth:"0.2"})]})}function D(){return(0,t.jsxs)("svg",{width:"36",height:"35",viewBox:"0 0 36 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M30.2154 5.50178C26.8816 2.27202 22.4466 0.492199 17.7265 0.490356C13.0169 0.490356 8.57487 2.2686 5.21911 5.49756C1.85739 8.73205 0.00433211 13.0305 0 17.5854V17.5906V17.5938C0.000541514 20.3507 0.745394 23.1318 2.15929 25.6704L0.0484655 35L9.75321 32.8534C12.2111 34.058 14.9536 34.693 17.7197 34.6941H17.7267C22.4355 34.6941 26.8775 32.9156 30.2338 29.6863C33.5985 26.4492 35.4524 22.1563 35.4545 17.5985C35.4559 13.0729 33.5955 8.77681 30.2154 5.50178ZM17.7265 32.0006H17.7202C15.2366 31.9996 12.7757 31.3932 10.6039 30.2466L10.145 30.0044L3.69177 31.4317L5.09348 25.237L4.82327 24.7839C3.47977 22.531 2.76984 20.0439 2.76984 17.5909C2.77499 9.65093 9.4838 3.18379 17.7259 3.18379C21.7077 3.18537 25.449 4.68637 28.2605 7.40982C31.1146 10.1754 32.6858 13.7935 32.6844 17.5977C32.6812 25.5396 25.971 32.0006 17.7265 32.0006Z",fill:"white"}),(0,t.jsx)("path",{d:"M12.3891 9.11768H11.5532C11.2623 9.11768 10.7899 9.21803 10.3903 9.61866C9.99043 10.0195 8.86363 10.9885 8.86363 12.9592C8.86363 14.9298 10.4267 16.8339 10.6445 17.1014C10.8627 17.3687 13.6618 21.5418 18.095 23.1473C21.7794 24.4814 22.5294 24.2161 23.3288 24.1492C24.1285 24.0827 25.9095 23.1806 26.2729 22.2454C26.6364 21.3103 26.6364 20.5085 26.5275 20.341C26.4183 20.1741 26.1273 20.074 25.6913 19.8739C25.2551 19.6734 23.1174 18.6881 22.7175 18.5542C22.3176 18.4208 22.027 18.354 21.736 18.7552C21.4451 19.1555 20.5886 20.0818 20.334 20.3491C20.0798 20.6166 19.8252 20.6502 19.389 20.4497C18.9527 20.2487 17.5623 19.8183 15.8961 18.4541C14.5993 17.3923 13.6993 16.0383 13.4448 15.6374C13.1905 15.2368 13.4177 15.02 13.6364 14.8201C13.8324 14.6408 14.0972 14.3955 14.3153 14.1618C14.5331 13.9278 14.5952 13.7609 14.7408 13.4937C14.8861 13.2264 14.8133 12.9924 14.7044 12.7922C14.5952 12.5918 13.7582 10.6112 13.3702 9.8191H13.3705C13.0438 9.15202 12.6998 9.12948 12.3891 9.11768Z",fill:"white"})]})}function G(){return(0,t.jsx)("svg",{width:"36",height:"25",viewBox:"0 0 36 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M34.9602 3.99383C34.7741 2.48541 33.3111 1.03897 31.7804 0.845191C22.4459 -0.281731 13.0068 -0.281731 3.67543 0.845191C2.14339 1.03855 0.680345 2.48541 0.494239 3.99383C-0.164746 9.52213 -0.164746 14.8824 0.494239 20.4094C0.680345 21.9179 2.14339 23.3656 3.67543 23.5581C13.0068 24.685 22.4463 24.685 31.7804 23.5581C33.3111 23.366 34.7741 21.9179 34.9602 20.4094C35.6193 14.8829 35.6193 9.52213 34.9602 3.99383ZM14.7725 17.9441V6.46088L23.6363 12.2027L14.7725 17.9441Z",fill:"white"})})}function Z(e){let{filter_params:r}=(0,I.useSearchContextState)(),{componentMethods:i,componentLabels:o,disableSignup:l=!1}=e,[c,d]=(0,a.useState)(!1),[h,m]=(0,a.useState)(null),[x,f]=(0,a.useState)(null),g=o?.hasSearchEnabled??!1,{userTriggersRedeem:{balances:p,loginTriggers:b},isLoadingActiveTriggers:C,isLoadingRedeem:j,rewards:v}=(0,n.useGamificationState)(),{redeemTriggerReward:k,openEarnMoreRewardsModal:y}=(0,n.useGamificationEvents)(),{handleChangeSearchText:N,hasClickedSearchButton:M,setIsSearchModalOpen:B}=(0,P.useCreateSearchMethods)(),S=(0,a.useRef)(null);(0,s.default)(S,()=>{m(null)});let L=(0,a.useRef)(null);function T(){g&&!M?B(!0):g||i.searchMethod()}(0,s.default)(L,()=>{f(null)});
1let Z=o.logoHeight?.mobile?"w-auto":"w-[4rem]",W=o.logoHeight?.desktop?"lg:w-auto":"lg:w-[4rem]",q=o.logoHeight?.mobile??"";return(0,t.jsxs)("header",{className:"bg-background_header relative box-border h-[5.8rem] py-[1.5rem] lg:h-[5rem]",children:[M&&(0,t.jsx)(F.ClientHeaderSearchComponent,{handleChangeSearchText:N,setIsSearchModalOpen:B}),(0,t.jsxs)("div",{className:"px-[1.5rem]",children:[(0,t.jsxs)("nav",{className:"flex h-full items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex cursor-pointer gap-x-[2rem]",children:[(0,t.jsx)(V,{onClick:function(){d(!0)}}),(0,t.jsxs)("div",{className:"hidden lg:flex lg:items-center lg:justify-center lg:gap-x-[1rem]",children:[(0,t.jsx)("button",{onClick:T,"aria-label":"Open search",children:(0,t.jsx)($,{"aria-hidden":"true"})}),M?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("input",{className:"text-font_header h-[1rem] w-[35rem] rounded-[1rem] border-none bg-transparent px-[0.3rem] py-[0.5rem] text-[1rem] transition-all duration-200 ease-in-out outline-none",type:"text",defaultValue:r.searchText,placeholder:o.searchButtonText,onChange:e=>{N(e.target.value)}}),(0,t.jsx)("div",{onClick:()=>{B(!1)},role:"button","aria-label":"Close search",children:(0,t.jsx)(z.CloseIcon,{"aria-hidden":"true"})})]})}):(0,t.jsx)("span",{className:"text-font_header text-[0.875rem] font-semibold",onClick:T,children:o.searchButtonText})]})]}),(0,t.jsx)(R.default,{src:o.headerLogo,alt:"brand-logo",width:200,height:80,onClick:i.homeLink,className:(0,w.cn)("cursor-pointer object-contain",Z,W),style:{maxHeight:q}}),(0,t.jsx)("div",{className:"lg:hidden",onClick:g?()=>{B(!0)}:i.searchMethod,children:(0,t.jsx)($,{})}),!o.isUserAuthenticated&&(0,t.jsxs)("div",{className:"hidden lg:flex lg:items-center lg:justify-center lg:gap-x-[2rem]",children:[(0,t.jsxs)("button",{className:"text-font_header flex cursor-pointer gap-x-[1rem] border-0 bg-transparent text-[0.875rem]",onClick:i.loginMethod,children:[(0,t.jsx)(O,{})," ",o.logInButtonText]}),!l&&(0,t.jsxs)("button",{className:"bg-color_action text-font_action box-border flex w-full cursor-pointer items-center justify-center gap-x-[1rem] rounded-[0.3rem] py-[0.3rem] text-[0.875rem] lg:p-[0.3rem]",onClick:i.signUpMethod,children:[(0,t.jsx)(U,{})," ",o.signUpButtonText]})]}),!!o.isUserAuthenticated&&(0,t.jsxs)("div",{className:"hidden items-center justify-start gap-2 md:inline-flex",children:[p.length>0&&(0,t.jsx)(u.default,{modalRef:S,balances:p,selectedRewardId:h,onSelectReward:m,hasAvailableRedeem:void 0!==b.find(e=>e.reward_id===h),onRedeem:()=>{let e=b.find(e=>e.reward_id===h);e&&null!=e.id&&k(e.id)},isLoadingEarnMore:C,isRedeeming:j,onClickEarnMore:y}),(0,t.jsxs)("span",{className:"lg:text-font_header hidden lg:block lg:text-[1rem]",children:[o.hello," ",o.userName]})]})]}),(0,t.jsxs)("div",{className:(0,w.cn)("bg-background_header fixed top-0 z-[2000] box-border h-screen w-full px-[2rem] py-[2.5rem] transition-all duration-400 ease-in-out lg:max-w-[60vw]",c?"left-0":"left-[-100%]"),children:[(0,t.jsx)(_.TfiClose,{className:"text-font_header h-[1.25rem] w-[1.25rem]",role:"button","aria-label":"close",onClick:function(){d(!1)}}),(0,t.jsxs)("div",{className:"flex min-h-[80vh] flex-col justify-between lg:max-w-[100rem] lg:flex-row lg:items-center lg:justify-between",children:[(0,t.jsxs)("ul",{className:"m-0 p-0 pt-[2rem] lg:pt-[1rem]",children:[(0,t.jsx)("li",{className:"mb-[1rem]",children:(0,t.jsx)("span",{className:"text-font_header before:bg-color_action relative mb-[1.7rem] block cursor-pointer text-[1.625rem] font-semibold before:absolute before:bottom-0 before:h-[0.3rem] before:w-0 before:opacity-0 before:transition-all before:duration-300 last:mb-0 lg:inline-block lg:h-[3rem] lg:text-[2.5rem] lg:hover:before:w-full lg:hover:before:opacity-100",onClick:i.homeLink,children:"Home"})}),!o.isUserAuthenticated&&(0,t.jsx)("li",{className:"mb-[1.5rem]",children:(0,t.jsx)("span",{className:"text-font_header before:bg-color_action relative mb-[1.7rem] block cursor-pointer text-[1.625rem] font-semibold before:absolute before:bottom-0 before:h-[0.3rem] before:w-0 before:opacity-0 before:transition-all before:duration-300 last:mb-0 lg:inline-block lg:h-[3rem] lg:text-[2.5rem] lg:hover:before:w-full lg:hover:before:opacity-100",onClick:i.startHere,children:o.startHere})}),!!o.isUserAuthenticated&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{className:"mb-[1.5rem]",children:(0,t.jsx)("span",{className:"text-font_header before:bg-color_action relative mb-[1.7rem] block cursor-pointer text-[1.625rem] font-semibold before:absolute before:bottom-0 before:h-[0.3rem] before:w-0 before:opacity-0 before:transition-all before:duration-300 last:mb-0 lg:inline-block lg:h-[3rem] lg:text-[2.5rem] lg:hover:before:w-full lg:hover:before:opacity-100",onClick:i.profileMethod,children:o.myProfileButtonText})}),(0,t.jsx)("li",{className:"mb-[1.5rem]",children:(0,t.jsx)("span",{className:"text-font_header before:bg-color_action relative mb-[1.7rem] block cursor-pointer text-[1.625rem] font-semibold before:absolute before:bottom-0 before:h-[0.3rem] before:w-0 before:opacity-0 before:transition-all before:duration-300 last:mb-0 lg:inline-block lg:h-[3rem] lg:text-[2.5rem] lg:hover:before:w-full lg:hover:before:opacity-100",onClick:i.myCoursesMethod,children:o.myCoursesButtonText})}),(0,t.jsx)("li",{className:"mb-[1.5rem]",children:(0,t.jsx)("span",{className:"text-font_header before:bg-color_action relative mb-[1.7rem] block cursor-pointer text-[1.625rem] font-semibold before:absolute before:bottom-0 before:h-[0.3rem] before:w-0 before:opacity-0 before:transition-all before:duration-300 last:mb-0 lg:inline-block lg:h-[3rem] lg:text-[2.5rem] lg:hover:before:w-full lg:hover:before:opacity-100",onClick:i.certificatesMethod,children:o.myCertificates})}),(0,t.jsx)("li",{className:"mb-[1.5rem]",children:(0,t.jsx)("span",{className:"text-font_header before:bg-color_action relative mb-[1.7rem] block cursor-pointer text-[1.625rem] font-semibold before:absolute before:bottom-0 before:h-[0.3rem] before:w-0 before:opacity-0 before:transition-all before:duration-300 last:mb-0 lg:inline-block lg:h-[3rem] lg:text-[2.5rem] lg:hover:before:w-full lg:hover:before:opacity-100",onClick:i.myPurchasesMethod,children:o.myPurchasesButtonText})}),e.hasGamificationStore&&v.length>0&&(0,t.jsx)("li",{className:"mb-[1.5rem]",children:(0,t.jsx)("span",{className:"text-font_header before:bg-color_action relative mb-[1.7rem] block cursor-pointer text-[1.625rem] font-semibold before:absolute before:bottom-0 before:h-[0.3rem] before:w-0 before:opacity-0 before:transition-all before:duration-300 last:mb-0 lg:inline-block lg:h-[3rem] lg:text-[2.5rem] lg:hover:before:w-full lg:hover:before:opacity-100",onClick:i.itemsStoreMethod,children:o.itemsStoreButtonText})}),e.hasGamification&&v.length>0&&(0,t.jsx)("li",{className:"mb-[1.5rem]",children:(0,t.jsx)("span",{className:"text-font_header before:bg-color_action relative mb-[1.7rem] block cursor-pointer text-[1.625rem] font-semibold before:absolute before:bottom-0 before:h-[0.3rem] before:w-0 before:opacity-0 before:transition-all before:duration-300 last:mb-0 lg:inline-block lg:h-[3rem] lg:text-[2.5rem] lg:hover:before:w-full lg:hover:before:opacity-100",onClick:i.rescuesMethod,children:o.rescuesButtonText})}),(0,t.jsx)("li",{className:"mb-[1.5rem]",children:(0,t.jsx)("span",{className:"text-font_header before:bg-color_action relative mb-[1.7rem] block cursor-pointer text-[1.625rem] font-semibold before:absolute before:bottom-0 before:h-[0.3rem] before:w-0 before:opacity-0 before:transition-all before:duration-300 last:mb-0 lg:inline-block lg:h-[3rem] lg:text-[2.5rem] lg:hover:before:w-full lg:hover:before:opacity-100",onClick:i.startHere,children:o.startHere})})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-y-[2rem] pb-[2rem] lg:w-[23rem] lg:shrink-0 lg:pr-20",children:[!
1o.isUserAuthenticated&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{className:"border-font_header text-font_header box-border flex w-full cursor-pointer items-center justify-center gap-x-[1rem] rounded-[0.1rem] border bg-transparent py-[0.3rem] text-[1rem] lg:py-[0.5rem] lg:text-[1.5rem]",onClick:i.loginMethod,children:[(0,t.jsx)(O,{})," ",o.logInButtonText]}),!l&&(0,t.jsxs)("button",{className:"bg-color_action text-font_header box-border flex w-full cursor-pointer items-center justify-center gap-x-[1rem] rounded-[0.3rem] py-[0.3rem] text-[1rem] lg:py-[0.8rem] lg:text-[1.5rem]",onClick:i.signUpMethod,children:[(0,t.jsx)(U,{})," ",o.signUpButtonText]})]}),!!o.isUserAuthenticated&&(0,t.jsxs)(t.Fragment,{children:[p.length>0&&(0,t.jsx)("div",{className:"bg-background_main w-full self-stretch rounded p-3 md:hidden",children:(0,t.jsx)(u.default,{modalRef:L,balances:p,selectedRewardId:x,onSelectReward:f,hasAvailableRedeem:void 0!==b.find(e=>e.reward_id===x),onRedeem:()=>{let e=b.find(e=>e.reward_id===x);e&&null!=e.id&&k(e.id)},isLoadingEarnMore:C,isRedeeming:j,onClickEarnMore:y})}),(0,t.jsxs)("span",{className:"lg:text-font_header hidden text-center lg:block lg:text-[2rem]",children:[o.hello," ",o.userName]}),(0,t.jsxs)("button",{className:"border-font_header text-font_header box-border flex w-full cursor-pointer items-center justify-center gap-x-[1rem] rounded-[0.3rem] border bg-transparent py-[0.3rem] text-[1rem] lg:py-[1rem] lg:text-[1.5rem]",children:[(0,t.jsx)(E,{})," ",o.leaveButtonText]})]})]})]}),(0,t.jsxs)("div",{className:"mt-[1.5rem] flex gap-x-[2rem]",children:[(0,t.jsxs)("div",{className:"text-color_action flex cursor-pointer items-center justify-center gap-x-[0.6rem] text-[1rem]",onClick:i.youtubeMethod,children:[(0,t.jsx)(G,{})," ",(0,t.jsx)("span",{className:"text-font_header hidden font-semibold capitalize lg:inline lg:text-[1.2rem]",children:"youtube"})]}),(0,t.jsxs)("div",{className:"text-color_action flex cursor-pointer items-center justify-center gap-x-[0.6rem] text-[1rem]",onClick:i.facebookMethod,children:[(0,t.jsx)(H,{})," ",(0,t.jsx)("span",{className:"text-font_header hidden font-semibold capitalize lg:inline lg:text-[1.2rem]",children:"facebook"})]}),(0,t.jsxs)("div",{className:"text-color_action flex cursor-pointer items-center justify-center gap-x-[0.6rem] text-[1rem]",onClick:i.instagramMethod,children:[(0,t.jsx)(A,{})," ",(0,t.jsx)("span",{className:"text-font_header hidden font-semibold capitalize lg:inline lg:text-[1.2rem]",children:"instagram"})]}),(0,t.jsxs)("div",{className:"text-color_action flex cursor-pointer items-center justify-center gap-x-[0.6rem] text-[1rem]",onClick:i.whatsappMethod,children:[(0,t.jsx)(D,{})," ",(0,t.jsx)("span",{className:"text-font_header hidden font-semibold capitalize lg:inline lg:text-[1.2rem]",children:"whatsapp"})]})]})]})]})]})}var W=e.i(245371),q=e.i(6600),J=e.i(114524),K=e.i(518329),Y=e.i(339626),Q=e.i(41158),X=e.i(506390);function ee({componentLabels:e,componentMethods:r,isShown:a,isUserAuthenticated:s,headerRewardBalanceProps:n,hasGamification:i,hasGamificationStore:o,disableSignup:l=!1}){return(0,t.jsxs)("section",{className:(0,w.cn)("bg-background_main absolute top-0 left-0 z-[9] box-border flex h-screen w-[90%] flex-col justify-baseline px-[2rem] py-[3em] transition-transform duration-700 ease-in-out",a?"translate-x-0":"-translate-x-[200%]"),children:[(0,t.jsx)("button",{className:"mb-[2rem] h-[2rem] w-[2rem] cursor-pointer border-none bg-transparent",type:"button","aria-label":"Close menu",onClick:r.handleSideBarVisibility,children:(0,t.jsx)(X.GrClose,{className:"fill-font_title_block stroke-font_title_block text-font_title_block",size:(0,q.legacyRem)(2),"aria-hidden":"true"})}),!!s&&(0,t.jsxs)("ul",{className:"list-none p-0",children:[(0,t.jsx)("li",{className:"text-font_title_block mb-[1rem] cursor-pointer pl-[5%] text-[2rem] leading-[2rem]",children:(0,t.jsx)("button",{className:"text-font_title_block cursor-pointer border-none bg-transparent text-left text-[1.3rem]",onClick:r.myCoursesMethod,children:e.myCoursesButtonText})}),(0,t.jsx)("li",{className:"text-font_title_block mb-[1rem] cursor-pointer pl-[5%] text-[2rem] leading-[2rem]",children:(0,t.jsx)("button",{className:"text-font_title_block cursor-pointer border-none bg-transparent text-left text-[1.3rem]",onClick:r.myPurchasesMethod,children:e.myPurchasesButtonText})}),(0,t.jsx)("li",{className:"text-font_title_block mb-[1rem] cursor-pointer pl-[5%] text-[2rem] leading-[2rem]",children:(0,t.jsx)("button",{className:"text-font_title_block cursor-pointer border-none bg-transparent text-left text-[1.3rem]",onClick:r.profileMethod,children:e.myProfileButtonText})}),(0,t.jsx)("li",{className:"text-font_title_block mb-[1rem] cursor-pointer pl-[5%] text-[2rem] leading-[2rem]",children:(0,t.jsx)("button",{className:"text-font_title_block cursor-pointer border-none bg-transparent text-left text-[1.3rem]",onClick:r.certificatesMethod,children:e.myCertificates})}),i&&(0,t.jsx)("li",{className:"text-font_title_block mb-[1rem] cursor-pointer pl-[5%] text-[2rem] leading-[2rem]",children:(0,t.jsx)("button",{className:"text-font_title_block cursor-pointer border-none bg-transparent text-left text-[1.3rem]",onClick:r.rescuesMethod,children:e.rescuesButtonText})}),o&&(0,t.jsx)("li",{className:"text-font_title_block mb-[1rem] cursor-pointer pl-[5%] text-[2rem] leading-[2rem]",children:(0,t.jsx)("button",{className:"text-font_title_block cursor-pointer border-none bg-transparent text-left text-[1.3rem]",onClick:r.itemsStoreMethod,children:e.itemsStoreButtonText})})]}),!!e.linkList.length&&!!e?.hasNavbar&&(0,t.jsx)("ul",{className:"list-none p-0",children:!!e.linkList.length&&e.linkList.map(({title:e,link:r})=>(0,t.jsx)("li",{className:"text-font_title_block mb-[1rem] cursor-pointer pl-[5%] text-[2rem] leading-[2rem]",children:(0,t.jsx)(Q.default,{href:r,className:"text-font_title_block cursor-pointer border-none bg-transparent text-left text-[1.3rem] no-underline",children:e})},r))}),(0,t.jsxs)("button",{className:"text-color_action flex h-auto w-fit cursor-pointer items-start border-none bg-transparent text-[1rem] no-underline",onClick:r.highlightsLink,children:[(0,t.jsx)(W.AiFillFire,{className:"text-color_action mr-[0.4rem]"}),e.highlightsButtonText]}),(0,t.jsxs)("section",{className:"mt-auto flex w-full flex-col items-center justify-between",children:[s?(0,t.jsxs)("div",{className:"flex w-full flex-col gap-y-8",children:[n&&(n?.balances?.length??0)>0&&(0,t.jsx)(u.default,{...n}),(0,t.jsxs)("button",{className:"text-font_title_block flex cursor-pointer items-center justify-center gap-x-4 border-0 bg-transparent text-[0.9rem] font-bold",onClick:r.logOutMethod,children:[(0,t.jsx)(m.BiLogOut,{className:"text-font_title_block h-[1rem] w-[1rem]"})," ",e.leaveButtonText]})]}):(0,t.jsxs)("div",{className:"flex w-full flex-col gap-y-8",children:[!l&&(0,t.jsxs)("button",{className:"text-font_title_block flex cursor-pointer items-center justify-center gap-x-2 border-0 bg-transparent text-[0.9rem] font-bold",onClick:r.signUpMethod,children:[(0,t.jsx)(C,{className:"text-color_action h-[1rem] w-[1rem]"})," ",e.signUpButtonText]}),(0,t.jsxs)("button",{className:"bg-color_action text-font_action flex w-full cursor-pointer items-center justify-center gap-x-4 border-0 p-2 text-[1rem] font-bold",onClick:r.loginMethod,children:[(0,t.jsx)(g.FiLogIn,{className:"text-font_header h-[1rem] w-[1rem]"})," ",e.logInButtonText]})]}),(0,t.jsxs)("section",{className:"mt-16 box-border flex w-full items-center justify-between px-[20%]",children:[(0,t.jsx)(x.BsWhatsapp,{className:"text-font_title_block h-4 w-4 cursor-pointer"}),(0,t.jsx)(x.BsYoutube,{className:"text-font_title_block h-4 w-4 cursor-pointer"}),(0,t.jsx)(x.BsFacebook,{className:"text-font_title_block h-4 w-4 cursor-pointer"}),(0,t.jsx)(x.BsInstagram,{className:"text-font_title_block h-4 w-4 cursor-pointer"})]})]})]})}function et({componentLabels:e,componentMethods:r,hasGamification:i,hasGamificationStore:o,disableSignup:l=!1}){let c=(0,a.useRef)(null),b=(0,a.useRef)(null),[v,k]=(0,a.useState)(!1),[_,N]=(0,a.useState)(!1),[M,B]=(0,a.useState)(null),[S,L]=(0,a.useState)(null),T=e?.hasSearchEnabled??!1,{hasCl
1ickedSearchButton:H,setIsSearchModalOpen:A,handleChangeSearchText:E}=(0,P.useCreateSearchMethods)(),{filter_params:V}=(0,I.useSearchContextState)(),{userTriggersRedeem:{balances:U,loginTriggers:$},isLoadingActiveTriggers:O,isLoadingRedeem:D,rewards:G}=(0,n.useGamificationState)(),{redeemTriggerReward:Z,openEarnMoreRewardsModal:Q}=(0,n.useGamificationEvents)(),X=(0,a.useRef)(null);(0,s.default)(X,()=>{B(null)});let er=(0,a.useRef)(null);(0,s.default)(er,()=>{L(null)});let[ea,es]=(0,a.useState)(0),en=(0,a.useMemo)(()=>ea>=1024,[ea]),ei=()=>{es(window.innerWidth)},eo=U?.find(e=>e?.levels&&e.levels.length>0),el=eo?.levels?.[eo.levels.length-1]||void 0;function ec(){N(e=>!e)}(0,a.useLayoutEffect)(()=>(0===ea&&es(window.innerWidth),window.addEventListener("resize",ei),()=>{window.removeEventListener("resize",ei)}));let ed={componentLabels:{currentUrl:e.currentUrl,hasNavbar:e.hasNavbar,highlightsButtonText:e.highlightsButtonText,linkList:e.linkList,logInButtonText:e.logInButtonText,signUpButtonText:e.signUpButtonText,myCoursesButtonText:e.myCoursesButtonText,myCertificates:e.myCertificates,myProfileButtonText:e.myProfileButtonText,myTicketsButtonText:e.myTicketsButtonText,leaveButtonText:e.leaveButtonText,sideMenuItems:e.sideMenuItems,menuFontSize:e.menuFontSize,myPurchasesButtonText:e.myPurchasesButtonText,rescuesButtonText:e.rescuesButtonText,itemsStoreButtonText:e.itemsStoreButtonText,hello:e.hello},componentMethods:{handleSideBarVisibility:()=>{k(!1)},highlightsLink:r.highlightsLink,loginMethod:r.loginMethod,logOutMethod:r.logOutMethod,myCoursesMethod:r.myCoursesMethod,profileMethod:r.profileMethod,signUpMethod:r.signUpMethod,navigationAction:r.navigationAction,certificatesMethod:r.certificatesMethod,myPresentialTicketsMethod:r.myPresentialTicketsMethod,myPurchasesMethod:r.myPurchasesMethod,rescuesMethod:r.rescuesMethod,itemsStoreMethod:r.itemsStoreMethod,facebookMethod:r.facebookMethod,instagramMethod:r.instagramMethod,whatsappMethod:r.whatsappMethod,youtubeMethod:r.youtubeMethod},isShown:v,isUserAuthenticated:e.isUserAuthenticated,headerRewardBalanceProps:{modalRef:er,balances:U??[],selectedRewardId:S,onSelectReward:L,hasAvailableRedeem:void 0!==$.find(e=>e.reward_id===S),onRedeem:()=>{let e=$.find(e=>e.reward_id===S);e&&null!=e.id&&Z(e.id)},isLoadingEarnMore:O,isRedeeming:D,onClickEarnMore:Q},hasGamification:i&&G.length>0,hasGamificationStore:o&&G.length>0,disableSignup:l},eh={tickets:()=>(0,t.jsxs)("button",{className:"text-font_header flex w-fit cursor-pointer items-center gap-x-[0.5rem] border-none bg-transparent text-left text-[1rem] font-semibold",onClick:r.myPresentialTicketsMethod,children:[(0,t.jsx)(f.FaTicketAlt,{className:"stroke-font_header text-font_header h-[1.3rem] w-[1.3rem]"}),e.myTicketsButtonText]}),courses:()=>(0,t.jsxs)("button",{className:"text-font_header flex w-fit cursor-pointer items-center gap-x-[0.5rem] border-none bg-transparent text-left text-[1rem] font-semibold",onClick:r.myCoursesMethod,children:["my-courses"===e.myCoursesButtonText?(0,t.jsx)(x.BsBook,{className:"stroke-font_header text-font_header h-[1.3rem] w-[1.3rem]"}):(0,t.jsx)(f.FaPlay,{className:"stroke-font_header text-font_header h-[1.3rem] w-[1.3rem]"}),e.myCoursesButtonText]}),certificates:()=>(0,t.jsxs)("button",{className:"text-font_header flex w-fit cursor-pointer items-center gap-x-[0.5rem] border-none bg-transparent text-left text-[1rem] font-semibold",onClick:r.certificatesMethod,children:[(0,t.jsx)(m.BiAward,{className:"stroke-font_header text-font_header h-[1.3rem] w-[1.3rem]"}),e.myCertificates]}),purchases:()=>(0,t.jsxs)("button",{className:"text-font_header flex w-fit cursor-pointer items-center gap-x-[0.5rem] border-none bg-transparent text-left text-[1rem] font-semibold",onClick:r.myPurchasesMethod,children:[(0,t.jsx)(p.MdOutlineStorefront,{className:"stroke-font_header text-font_header h-[1.3rem] w-[1.3rem]"}),e.myPurchasesButtonText]}),rescues:()=>G.length>0?(0,t.jsxs)("button",{className:"text-font_header flex w-fit cursor-pointer items-center gap-x-[0.5rem] border-none bg-transparent text-left text-[1rem] font-semibold",onClick:r.rescuesMethod,children:[(0,t.jsx)(d.default,{}),e.rescuesButtonText]}):(0,t.jsx)(t.Fragment,{}),itemsStore:()=>G.length>0?(0,t.jsxs)("button",{className:"text-font_header flex w-fit cursor-pointer items-center gap-x-[0.5rem] border-none bg-transparent text-left text-[1rem] font-semibold",onClick:r.itemsStoreMethod,children:[(0,t.jsx)(h.default,{}),e.itemsStoreButtonText]}):(0,t.jsx)(t.Fragment,{}),profile:()=>(0,t.jsxs)("button",{className:"text-font_header flex w-fit cursor-pointer items-center gap-x-[0.5rem] border-none bg-transparent text-left text-[1rem] font-semibold",onClick:r.profileMethod,children:[(0,t.jsx)(C,{className:"stroke-font_header text-font_header h-[1.3rem] w-[1.3rem]"}),e.myProfileButtonText]})},eu=e.sideMenuItems&&e.sideMenuItems.length>0?e.sideMenuItems:["courses","tickets","certificates","purchases","itemsStore","rescues","profile"];
1function em(){T&&!H?A(!0):T||r.searchMethod()}let ex=e.logoHeight?.mobile?"w-auto":"w-[4rem]",ef=e.logoHeight?.desktop?"lg:w-auto max-h-20":"lg:w-[4rem]",eg=e.logoHeight?.mobile??"";return(0,t.jsxs)("header",{className:"sticky top-0 z-[9] box-border lg:relative",ref:b,children:[H&&(0,t.jsx)(F.ClientHeaderSearchComponent,{handleChangeSearchText:E,setIsSearchModalOpen:A}),en?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"bg-background_header text-font_header box-border flex h-auto max-h-[5rem] min-h-[4rem] w-full items-center justify-center py-[2rem]",children:[(0,t.jsx)(t.Fragment,{children:!!e.hasSearchButton&&(0,t.jsxs)("button",{className:"text-color_action absolute left-[6rem] flex h-[3rem] w-fit cursor-pointer items-center gap-x-[0.7rem] border-none bg-transparent text-[1rem] font-medium",onClick:em,children:[(0,t.jsx)(y.HiOutlineMagnifyingGlass,{size:(0,q.legacyRem)(2)}),H?(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("input",{className:"text-font_header h-[1rem] w-[35rem] rounded-[1rem] border-none bg-transparent px-[0.3rem] py-[0.5rem] text-[1rem] transition-all duration-200 ease-in-out outline-none",type:"text",defaultValue:V.searchText,placeholder:e.searchButtonText,onChange:e=>{E(e.target.value)}}),(0,t.jsx)("button",{className:"cursor-pointer border-0 bg-transparent p-0",type:"button","aria-label":"Close search",onClick:()=>{A(!1)},children:(0,t.jsx)(z.CloseIcon,{"aria-hidden":"true"})})]}):(0,t.jsx)("p",{className:"text-font_header",children:e.searchButtonText})]})}),(0,t.jsx)(R.default,{src:e.headerLogo,alt:"brand-logo",width:200,height:80,onClick:r.homeLink,className:(0,w.cn)("cursor-pointer object-contain",ex,ef),style:{maxHeight:eg}}),e.isUserAuthenticated?(0,t.jsxs)("div",{className:(0,w.cn)("absolute right-1.5 inline-flex items-center justify-end gap-3",`${U.length>0?"md:w-[610px]":""}`),children:[U.length>0&&(0,t.jsx)(u.default,{modalRef:X,balances:U,selectedRewardId:M,onSelectReward:B,hasAvailableRedeem:void 0!==$.find(e=>e.reward_id===M),onRedeem:()=>{let e=$.find(e=>e.reward_id===M);e&&null!=e.id&&Z(e.id)},isLoadingEarnMore:O,isRedeeming:D,onClickEarnMore:Q}),(0,t.jsxs)("button",{className:"text-font_header flex w-fit cursor-pointer items-center gap-x-[0.7rem] border-none bg-transparent text-[1rem] font-medium",onClick:ec,"aria-haspopup":"true","aria-expanded":_,children:[e.userPicture&&(0,t.jsxs)("span",{className:"relative inline-flex h-14 w-14 items-center justify-center",style:{color:el?.color},children:[el&&(0,t.jsx)("span",{className:"pointer-events-none absolute top-1/2 left-1/2 z-0 flex size-16 -translate-x-1/2 -translate-y-1/2 scale-[0.575] items-center justify-center",children:(0,t.jsx)(J.default,{})}),(0,t.jsx)(R.default,{className:"relative z-[1] h-[2.3rem] w-[2.3rem] cursor-pointer rounded-full",src:e.userPicture,alt:"User profile picture",width:37,height:37}),el&&(0,t.jsx)("span",{className:"bg-background_main pointer-events-none absolute -bottom-[1px] left-1/2 z-[2] flex h-5 w-5 -translate-x-1/2 items-center justify-center rounded-full",children:(0,t.jsx)("span",{className:"absolute z-[3] flex size-full items-center justify-center rounded-full p-[0.3rem] [&_svg]:stroke-2",style:{color:el.color,backgroundColor:(0,Y.colorWithOpacity)(el.color,.2)},children:el.icon?(0,t.jsx)("img",{src:el.icon,alt:el.name,width:10,height:10,className:"h-[0.9rem] w-[0.9rem] object-contain"}):(0,t.jsx)(K.default,{color:el.color})})})]}),(0,t.jsxs)("p",{className:"text-font_header flex items-center text-[1rem]",children:[e.userName,_?(0,t.jsx)(m.BiChevronUp,{"aria-hidden":"true"}):(0,t.jsx)(m.BiChevronDown,{"aria-hidden":"true"})]}),_&&(0,t.jsxs)("section",{className:"bg-background_header absolute top-[5.6rem] right-0 flex h-auto w-[16rem] flex-col gap-y-[1.5rem] rounded-[0.5rem] px-[1.5rem] py-[1rem] shadow-[0px_4px_20px_rgba(0,0,0,0.06)]",onClick:e=>{e.stopPropagation()},children:[eu.map((e,r)=>{let a=eh[e];return a?(0,t.jsx)(a,{},r):null}),(0,t.jsx)("div",{className:"bg-font_header h-[1px] w-full"}),(0,t.jsxs)("button",{className:"text-font_header flex w-fit cursor-pointer items-center gap-x-[1rem] border-none bg-transparent text-left text-[1rem] font-semibold",onClick:()=>{N(!1),r.logOutMethod()},children:[(0,t.jsx)(g.FiLogOut,{className:"stroke-font_header text-font_header h-[1.25rem] w-[1.25rem]","aria-hidden":"true"}),e.leaveButtonText]})]})]})]}):(0,t.jsxs)("section",{className:"absolute right-[3.5rem] flex h-[2rem] w-fit flex-nowrap gap-x-[2rem]",children:[!l&&(0,t.jsxs)("button",{className:"text-font_header flex w-fit cursor-pointer items-center gap-x-[0.4rem] border-none bg-transparent text-[1rem] font-medium hover:opacity-80",onClick:r.signUpMethod,children:[(0,t.jsx)(C,{size:20,"aria-hidden":"true",className:"text-font_header"}),e.signUpButtonText]}),(0,t.jsxs)("button",{className:"bg-color_action text-font_action flex w-fit cursor-pointer items-center gap-x-[0.5rem] px-[1.5rem] hover:opacity-80",onClick:r.loginMethod,children:[(0,t.jsx)(g.FiLogIn,{className:"text-font_action h-[1.25rem] w-[1.25rem]","aria-hidden":"true"}),e.logInButtonText]})]})]}),e.hasNavbar&&(0,t.jsxs)("nav",{className:"bg-background_header text-font_header box-border flex h-[3rem] w-full items-center justify-evenly border-t border-white/10 px-[6rem]",children:[(0,t.jsxs)("button",{className:"text-color_action absolute left-[4rem] flex h-auto w-fit cursor-pointer flex-row items-start gap-2 border-none bg-transparent text-[0.875rem]",onClick:r.highlightsLink,"aria-label":e.highlightsButtonText,children:[(0,t.jsx)(W.AiFillFire,{"aria-hidden":"true",className:"text-color_action"}),e.highlightsButtonText]}),(0,t.jsx)("ul",{className:"flex w-fit list-none justify-around ga
1p-[3rem]",children:e.linkList.map(({link:e,title:r},a)=>(0,t.jsx)("li",{className:"text-font_header inline cursor-pointer list-none text-[0.875rem]",children:(0,t.jsx)("a",{className:"text-font_header cursor-pointer border-none bg-transparent text-[0.875rem] no-underline",href:e,children:r})},a))})]})]}):(0,t.jsxs)("div",{className:"bg-background_header text-font_header box-border flex h-[4.2rem] w-full items-center justify-center py-[1rem]",ref:c,children:[(0,t.jsx)(ee,{...ed}),(0,t.jsxs)("section",{className:"absolute left-[2rem] flex flex-row flex-nowrap gap-x-[2rem]",children:[(0,t.jsx)("button",{className:"text-font_header h-[2.5rem] w-[2.5rem] cursor-pointer border-none bg-transparent","aria-label":"Open menu",onClick:()=>{k(!0)},children:(0,t.jsx)(j,{"aria-hidden":"true",className:"h-[1.6rem] w-[1.6rem]"})}),(0,t.jsx)(t.Fragment,{children:!!e.hasSearchButton&&(0,t.jsx)("button",{className:"text-font_header mt-1 h-[2rem] w-[2rem] cursor-pointer border-none bg-transparent","aria-label":e.searchButtonText,onClick:em,children:(0,t.jsx)(y.HiOutlineMagnifyingGlass,{"aria-hidden":"true",className:"h-[1.6rem] w-[1.6rem]"})})})]}),(0,t.jsx)(R.default,{src:e.headerLogo,alt:"logo",width:200,height:80,onClick:r.homeLink,className:(0,w.cn)("cursor-pointer object-contain",ex,ef),style:{maxHeight:eg}}),e.isUserAuthenticated?(0,t.jsx)("div",{className:"absolute right-[2rem] w-fit",children:(0,t.jsx)("button",{className:"cursor-pointer border-none bg-transparent p-0",type:"button","aria-label":"Open user menu",onClick:ec,children:(0,t.jsxs)("span",{className:"relative inline-flex h-14 w-14 items-center justify-center",style:{color:el?.color},children:[el&&(0,t.jsx)("span",{className:"pointer-events-none absolute top-1/2 left-1/2 z-0 flex size-16 -translate-x-1/2 -translate-y-1/2 scale-[0.575] items-center justify-center",children:(0,t.jsx)(J.default,{})}),(0,t.jsx)(R.default,{className:"relative z-[1] h-[2.3rem] w-[2.3rem] cursor-pointer rounded-full",src:e.userPicture,alt:e.userName??"User profile picture",width:37,height:37}),el&&(0,t.jsx)("span",{className:"bg-background_main pointer-events-none absolute -bottom-[1px] left-1/2 z-[2] flex h-6 w-6 -translate-x-1/2 items-center justify-center rounded-full",children:(0,t.jsx)("span",{className:"absolute z-[3] flex size-full items-center justify-center rounded-full p-[0.3rem] [&_svg]:stroke-2",style:{color:el.color,backgroundColor:(0,Y.colorWithOpacity)(el.color,.2)},children:el.icon?(0,t.jsx)("img",{src:el.icon,alt:el.name,width:10,height:10,className:"h-[0.9rem] w-[0.9rem] object-contain"}):(0,t.jsx)("span",{style:{color:el.color,display:"flex"},children:(0,t.jsx)(K.default,{})})})})]})})}):(0,t.jsx)("button",{className:"absolute right-[2rem] mr-[1rem] h-[2.5rem] w-[2.5rem] cursor-pointer border-none bg-transparent","aria-label":e.logInButtonText,onClick:r.loginMethod,children:(0,t.jsx)(g.FiLogIn,{"aria-hidden":"true",className:"text-font_header h-[1.6rem] w-[1.6rem]"})})]})]})}var er=e.i(985596);e.s(["Header",0,function({scheme:e,componentLabels:a,componentMethods:s,hasGamification:n,hasGamificationStore:i,disableSignup:o=!1}){let l=(0,er.resolveScheme)(e,er.schemeAliases.header,"standard"),c={currentUrl:"",hasNavbar:!1,hasSearchButton:!1,hasSearchEnabled:!1,headerLogo:"",hello:"",highlightsButtonText:"",isUserAuthenticated:!1,leaveButtonText:"",linkList:[],logInButtonText:"",myCertificates:"",myCoursesButtonText:"",myPurchasesButtonText:"",rescuesButtonText:"",itemsStoreButtonText:"",myProfileButtonText:"",myTicketsButtonText:"",searchButtonText:"",signUpButtonText:"",startHere:"",userName:"",userPicture:"",sideMenuItems:[],menuFontSize:0,logoHeight:{mobile:"",desktop:""}},d={certificatesMethod:()=>null,myPresentialTicketsMethod:()=>null,facebookMethod:()=>null,highlightsLink:()=>null,homeLink:()=>null,instagramMethod:()=>null,loginMethod:()=>null,logOutMethod:()=>null,myCoursesMethod:()=>null,profileMethod:()=>null,searchMethod:()=>null,signUpMethod:()=>null,startHere:()=>null,whatsappMethod:()=>null,youtubeMethod:()=>null,navigationAction:()=>null,onChangeSearchText:()=>null,myPurchasesMethod:()=>null,rescuesMethod:()=>null,itemsStoreMethod:()=>null},h={standard:(0,t.jsx)(et,{componentLabels:a??c,componentMethods:s??d,hasGamification:n,hasGamificationStore:i,disableSignup:o}),minimal:(0,t.jsx)(Z,{componentLabels:a??c,componentMethods:s??d,hasGamification:n,hasGamificationStore:i,disableSignup:o}),featured:(0,t.jsx)(r.FeaturedHeader,{componentLabels:a??c,componentMethods:s??d,disableSignup:o}),inline:(0,t.jsx)(T,{componentLabels:a??c,componentMethods:s??d,hasGamification:n,hasGamificationStore:i,disableSignup:o})};return h[l]??h[e]??h.standard}],650083),e.s([],986616)},918565,888054,e=>{"use strict";var t=e.i(391398),r=e.i(191788),a=e.i(245371),s=e.i(386547);e.i(518400);var n=e.i(217891),i=e.i(992017);e.s(["PaginatedCardList",0,function(e){let{scheme:o,cardCollection:l,showButtonViewMore:c,viewMoreButtonAction:d,componentLabels:h,gridConfig:u}=e,[m,x]=r.default.useState("hidden loading");return l.length>0?(0,t.jsxs)("div",{className:(0,s.cn)("text-font_title_block font-inherit bg-transparent","detailed"===o&&"mx-auto py-0"),children:[(0,t.jsxs)("h2",{className:(0,s.cn)("relative m-0 mb-5 text-2xl font-semibold lg:text-3xl","tagsData"===o?"font-font_title uppercase":"font-inherit"),children:[h.title,h.searchText&&(0,t.jsxs)("span",{className:"text-action_color",children:[" ",h.searchText]})]}),(0,t.jsx)("div",{className:(0,s.cn)(u?(0,s.cn)("grid max-w-[84.375rem]",(0,i.resolveGridClasses)(u)):(0,s.cn)("flex max-w-full flex-wrap justify-start gap-3.75 lg:gap-3 xl:gap-5","detailed"===o&&"grid max-w-[84.375rem] grid-cols-1 md:grid-cols-2 md:gap-2 lg:grid-cols-3 xl:grid-cols-3")),children:l.map(({backgroundImage:e,onClickButtonMethod:r,onClickCardMethod:a,data:s,rewardTag:i},l)=>(0,t.jsx)("div",{children:(0,t.jsx)(n.Card,{scheme:o,backgroundImage:e,onClickButtonMethod:r,onClickCardMethod:a,data:s,componentLabels:h,rewardTag:i,index:l,setIsLoading:x,isLoading:m})},l))}),c&&(0,t.jsxs)("div",{role:"button","aria-label":"view-more",onClick:d,className:"mt-10 flex cursor-pointer items-center justify-center gap-x-2",children:[(0,t.jsx)("span",{className:"text-base",children:h.viewMoreButtonText}),(0,t.jsx)(a.AiOutlineRightCircle,{className:"fill-color_action size-5 rotate-90"})]})]}):(0,t.jsx)(t.Fragment,{})}],888054),e.s([],918565)},636814,765010,e=>{"use strict";var t=e.i(391398),r=e.i(126019);
1e.s(["SearchItemsList",0,function(e){let{collection:a,componentLabels:s}=e;return(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-inherit m-0 mb-10 text-[1.5rem] text-inherit lg:text-[1.9rem]",children:s.title}),(0,t.jsx)("div",{className:"flex flex-wrap justify-start gap-x-5",children:a.map(e=>(0,t.jsxs)("div",{className:"flex shrink-0 cursor-pointer flex-col items-center",onClick:e.onClickMethod,children:[(0,t.jsx)(r.default,{className:"border-color_action box-border h-[7.5rem] w-[7.5rem] rounded-full border-[4px] object-cover object-center lg:h-[11.8rem] lg:w-[11.8rem]",alt:e.text,src:e.imageSrc,width:304,height:304}),(0,t.jsx)("p",{className:"text-font_title_block mx-0 mt-5 mb-0 max-w-[14ch] text-center font-['Quattrocento',sans-serif] text-[1rem]",children:e.text})]},e.id))})]})}],765010),e.s([],636814)},960745,856395,157671,954296,157478,642085,799122,510896,897055,274924,741654,723909,618178,390930,468716,439897,144690,183639,461531,e=>{"use strict";var t=e.i(391398),r=e.i(191788),a=e.i(336386),s=e.i(640581),n=e.i(752999),i=e.i(893930);e.i(664157);var o=e.i(978410),l=e.i(271179),c=e.i(844085),d=e.i(21492),h=e.i(659392),u=e.i(494506);e.i(845588);var m=e.i(529657);e.i(918565);var x=e.i(888054);e.i(636814);var f=e.i(765010);e.i(905756);var g=e.i(826659);function p(){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,t.jsx)("path",{d:"M13 0.999998L1 13M1 0.999998L13 13",stroke:"#262626",strokeWidth:"2"})})}var b=e.i(760814);function C(){let e=(0,b.useTheme)();return(0,t.jsx)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M23.6351 22.3602L17.7187 16.4194C19.2399 14.6735 20.0734 12.4768 20.0734 10.19C20.0734 4.84701 15.5708 0.5 10.0367 0.5C4.50255 0.5 0 4.84701 0 10.19C0 15.533 4.50255 19.88 10.0367 19.88C12.1143 19.88 14.0941 19.275 15.7868 18.1265L21.7482 24.1124C21.9974 24.3622 22.3325 24.5 22.6916 24.5C23.0316 24.5 23.3541 24.3749 23.5989 24.1474C24.119 23.6641 24.1356 22.8628 23.6351 22.3602ZM10.0367 3.02782C14.1273 3.02782 17.4551 6.24069 17.4551 10.19C17.4551 14.1393 14.1273 17.3522 10.0367 17.3522C5.94608 17.3522 2.61827 14.1393 2.61827 10.19C2.61827 6.24069 5.94608 3.02782 10.0367 3.02782Z",fill:e?.color_action??"black"})})}var j=e.i(6600);let w=b.default.div.withConfig({componentId:"sc-98facfe0-0"})` 2 ${({$height:e})=>b.css` 3 position: fixed; 4 width: 100%; 5 min-height: 100vh; 6 7 background-color: rgba(0, 0, 0, 0.5); 8 top: 100%; 9 z-index: 1000; 10 11 @media (min-width: 1024px) { 12 position: absolute; 13 ${e&&b.css` 14 min-height: ${e+"px"}; 15 `} 16 } 17 `} 18`,v=b.default.div.withConfig({componentId:"sc-98facfe0-1"})` 19 ${({theme:e})=>b.css` 20 background-color: ${e.background_main}; 21 min-height: 100vh; 22 width: 100%; 23 position: fixed; 24 top: 0; 25 height: 0; 26 height: 100vh; 27 width: 100%; 28 overflow-x: auto; 29 30 @media (min-width: 1024px) { 31 position: relative; 32 height: auto; 33 min-height: ${(0,j.legacyRem)(50)}; 34 } 35 `} 36`,k=b.default.div.withConfig({componentId:"sc-98facfe0-2"})` 37 display: flex; 38 flex-direction: column; 39 justify-content: space-between; 40 height: 100%; 41 min-height: ${(0,j.legacyRem)(30)}; 42`,y=b.default.div.withConfig({componentId:"sc-98facfe0-3"})` 43 ${({theme:e})=>b.css` 44 padding: 24px; 45 border-bottom: 1px solid ${e.font_title_block}; 46 `} 47`,_=b.default.button.withConfig({componentId:"sc-98facfe0-4"})` 48 ${({theme:e})=>b.css` 49 display: block; 50 color: ${e.color_action}; 51 font-size: 12px; 52 font-weight: 500; 53 margin: 0 auto; 54 padding: 20px; 55 56 cursor: pointer; 57 58 @media (min-width: 1024px) { 59 padding-bottom: 20px; 60 } 61 `} 62`,N=b.default.div.withConfig({componentId:"sc-98facfe0-5"})` 63 padding-left: 24px; 64 padding-right: 24px; 65 padding-top: 24px; 66 min-height: 100vh; 67 overflow-y: auto; 68 69 @media (min-width: 1024px) { 70 min-height: auto; 71 overflow-y: initial; 72 } 73`,M=b.default.div.withConfig({componentId:"sc-98facfe0-6"})` 74 display: flex; 75 justify-content: space-between; 76 align-items: center; 77 padding: 24px; 78 padding-bottom: 0; 79 align-items: center; 80 81 @media (min-width: 1024px) { 82 display: none; 83 } 84`,B=b.default.div.withConfig({componentId:"sc-98facfe0-7"})` 85 display: flex; 86 column-gap: 8px; 87 align-items: center; 88 width: 100%; 89`,S=b.default.div.withConfig({componentId:"sc-98facfe0-8"})` 90 svg { 91 width: 18px; 92 height: 18px; 93 } 94`,L=b.default.input.withConfig({componentId:"sc-98facfe0-9"})` 95 ${({theme:e})=>b.css` 96 height: ${(0,j.legacyRem)(2)}; 97 border: none; 98 padding: ${(0,j.legacyRem)(.5)} ${(0,j.legacyRem)(.3)}; 99 font-size: ${(0,j.legacyRem)(1.6)}; 100 border-radius: ${(0,j.legacyRem)(1)}; 101 background-color: transparent; 102 color: ${e.font_header}; 103 transition: all 0.2s ease-in-out; 104 width: 100%; 105 `} 106`,T=b.default.div.withConfig({componentId:"sc-98facfe0-10"})` 107 ${({theme:e})=>b.css` 108 cursor: pointer; 109 path { 110 stroke: ${e.font_title_block}; 111 } 112 `} 113`;b.default.div.withConfig({componentId:"sc-98facfe0-11"})` 114 padding: 24px; 115 padding-bottom: 0; 116`;let I=b.default.div.withConfig({componentId:"sc-98facfe0-12"})` 117 display: flex; 118 justify-content: center; 119 flex-direction: column; 120 align-items: center; 121 min-height: ${(0,j.legacyRem)(20)}; 122`;function R(){return(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,t.jsx)("path",{d:"M13 0.999998L1 13M1 0.999998L13 13",stroke:"currentColor",strokeWidth:"2"})})}e.s(["ClientHeaderSearchComponent",0,function({handleChangeSearchText:e,setIsSearchModalOpen:b}){let j={ns:"common"},{navigate:R}=(0,c.useAppNavigation)(),{data:P}=(0,i.useQuery)({queryKey:["categories"],queryFn:async()=>await (0,a.getAllCategories)()}),{data:F}=(0,i.useQuery)({queryKey:["cities"],queryFn:async()=>await (0,s.getCities)()}),{pageComponents:z}=(0,d.useComponentSettings)("search"),H=z.find(e=>"filter-search"===e.title),A=z.find(e=>"search-output"===e.title),{filter_params:E,data:V,isSearching:U}
122=(0,n.useSearchContextState)(),{setSearchFilter:$}=(0,n.useSearchContextActions)(),{t:O}=(0,l.useTranslation)(),{createFilters:D}=(0,u.useCreateFilters)({filters:H?.rules?.filters,translate:O,categories:P,cities:F}),G=V.courses.slice(0,4),Z=V.teachers.slice(0,4),W=E.resource[0]||"courses",q=(0,r.useMemo)(D,[D,W,P?.categories?.length,F?.length]);return(0,t.jsx)(w,{onClick:function(e){e.target===e.currentTarget&&b(!1)},$height:document.body.scrollHeight,children:(0,t.jsxs)(v,{children:[(0,t.jsxs)(M,{children:[(0,t.jsxs)(B,{children:[(0,t.jsx)(S,{children:(0,t.jsx)(C,{})}),(0,t.jsx)(L,{type:"text",placeholder:O("search-placeholder",{ns:"search"})||"",defaultValue:E.searchText,ref:e=>e?.focus(),onChange:t=>{e(t.target.value)}})]}),(0,t.jsx)(T,{onClick:()=>{b(!1)},children:(0,t.jsx)(p,{})})]}),(0,t.jsxs)(k,{children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(y,{children:(0,t.jsx)(m.FilterSearch,{filters:q,onClickMethod:function(e){let{ransack:t,search:r,isExclusiveSearch:a}=e;a?function(e){let{urlFilterName:t,search:r}=e;$("set_unique_filter_param",{param:t,value:r})}({urlFilterName:t,search:r}):function(e){let{urlFilterName:t,search:r}=e;$("set_multiple_filter_param",{param:t,value:r})}({urlFilterName:t,search:r})},scheme:"standard"},W+q.length)}),U&&(0,t.jsx)(I,{children:(0,t.jsx)(g.LoaderSpinner,{useWhite:!1})}),!U&&!!G.length&&"courses"===W&&(0,t.jsx)(N,{children:(0,t.jsx)(x.PaginatedCardList,{cardCollection:(0,h.CreateCardList)({courses:G,navigationFunction:R,translateFunction:O,canHover:!1,basePath:"/",authRequiredShow:!1,currency:o.i18n?.language??"pt-BR",scheme:A?.rules?.scheme,stepEventName:"view_course_search"}),scheme:A?.rules?.scheme??"",componentLabels:{alternativePrice:O("free",j),buttonText:O("experience",j),labelPrice:O("from",j),title:O("more-searched-courses",{ns:"search"}),viewMoreButtonText:O("see-more",{ns:"common"})},showButtonViewMore:!1,viewMoreButtonAction:()=>null})}),!U&&!!Z.length&&"teachers"===W&&(0,t.jsx)(N,{children:(0,t.jsx)(f.SearchItemsList,{collection:Z.map(e=>({imageSrc:e.image??"/default.png",text:e.name,onClickMethod:async()=>await R(`/teachers/${e.id}`),id:e.id})),componentLabels:{title:O("more-searched-teachers",{ns:"search"})}})})]}),("courses"===W&&V.courses.length>4||"teachers"===W&&V.teachers.length>4)&&!U&&(0,t.jsx)(_,{onClick:function(){let e=new URLSearchParams(window.location.search);R(`/search?${e.toString()}`)},children:O("see-all-results",{ns:"search"})})]})]})})}],856395),e.s([],960745),e.s(["DesktopAuthButtons",0,function({isAuthenticated:e,userName:r,hello:a,onLogin:s,onProfile:n,userIcon:i}){return e?(0,t.jsxs)("button",{onClick:n,className:"flex cursor-pointer items-center gap-2 border-0 bg-transparent transition-opacity hover:opacity-80 [&_path]:fill-white [&_svg]:fill-white","aria-label":"view profile",children:[i,(0,t.jsxs)("div",{className:"flex flex-col items-start",children:[(0,t.jsx)("span",{className:"text-xs text-neutral-300",children:a}),(0,t.jsx)("span",{className:"text-base font-medium text-white",children:r})]})]}):(0,t.jsxs)("button",{onClick:s,className:"flex cursor-pointer items-center gap-2 border-0 bg-transparent transition-opacity hover:opacity-80 [&_path]:fill-white [&_svg]:fill-white","aria-label":"login or create account",children:[i,(0,t.jsxs)("div",{className:"flex flex-col items-start",children:[(0,t.jsx)("span",{className:"text-xs text-neutral-300",children:"Entrar ou criar"}),(0,t.jsx)("span",{className:"text-base font-medium text-white",children:"Minha Conta"})]})]})}],157671),e.s(["CloseIcon",0,R],954296),e.s(["SearchBar",0,function({value:e,placeholder:r,onChange:a,onClose:s}){return(0,t.jsxs)("div",{className:"flex w-full max-w-53.5 items-center gap-3 rounded-lg border border-gray-300 bg-white px-4 py-2",children:[(0,t.jsx)("input",{type:"text",defaultValue:e,placeholder:r,onChange:e=>a(e.target.value),className:"flex-1 border-0 bg-transparent text-base text-gray-900 outline-none placeholder:text-gray-500"}),(0,t.jsx)("div",{onClick:s,className:"flex-shrink-0 cursor-pointer [&_path]:stroke-gray-600 [&_svg]:size-5",children:(0,t.jsx)(R,{})})]})}],157478),e.s(["Logo",0,function({src:e,alt:r,onClick:a,logoHeight:s,className:n}){let i={mobile:{width:(0,j.legacyRem)(5.4),height:""},desktop:{width:(0,j.legacyRem)(5.4),height:""}},o=s?.mobile,l=o?s.mobile:i.mobile.height,c=o?"auto":i.mobile.width;return(0,t.jsx)("img",{src:e,alt:r,loading:"eager",onClick:a,className:`curs
122or-pointer object-contain ${n}`,style:{width:c,maxHeight:l}})}],642085),e.s(["MobileMenu",0,function({isOpen:e,onClose:r,children:a}){return(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsx)("div",{onClick:r,className:"fixed inset-0 z-[1999] bg-black/50 backdrop-blur-xs transition-opacity duration-300"}),(0,t.jsx)("div",{className:`fixed top-0 z-[2000] flex h-screen w-[85%] max-w-[400px] flex-col overflow-hidden bg-white transition-all duration-300 ${e?"left-0":"left-[-100%]"}`,children:a})]})}],799122);var P=e.i(712987);function F(){return(0,t.jsxs)("svg",{width:"25",height:"25",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_32_39)",children:[(0,t.jsx)("path",{d:"M4.80122 16.4063H21.0935C21.8701 16.4063 22.4997 15.7766 22.4997 15C22.4997 14.2234 21.8701 13.5938 21.0935 13.5938H4.80122L6.61939 11.7756C7.16858 11.2264 7.16858 10.3361 6.61939 9.78689C6.0703 9.2377 5.17987 9.2377 4.63069 9.78689L0.412151 14.0055C0.379245 14.0384 0.34812 14.0729 0.318683 14.1089C0.305839 14.1246 0.294683 14.1412 0.282589 14.1572C0.26712 14.1778 0.251183 14.198 0.236839 14.2195C0.223714 14.239 0.212371 14.2594 0.200371 14.2795C0.18884 14.2988 0.176746 14.3176 0.166152 14.3375C0.15509 14.3581 0.145809 14.3793 0.135871 14.4003C0.126121 14.4208 0.115903 14.4411 0.107184 14.4621C0.0987464 14.4826 0.091809 14.5035 0.0844028 14.5243C0.0762466 14.5468 0.0676216 14.569 0.0606842 14.592C0.054403 14.6128 0.0498093 14.6339 0.0445593 14.655C0.0386531 14.6784 0.0320906 14.7016 0.0274031 14.7254C0.0226219 14.7497 0.0197157 14.7743 0.016247 14.7987C0.013247 14.8196 0.00921576 14.8403 0.00715328 14.8614C0.0026533 14.9068 0.000309569 14.9525 0.00021582 14.998C0.00021582 14.9987 0.00012207 14.9994 0.00012207 15.0001C0.00012207 15.0008 0.00021582 15.0015 0.00021582 15.0022C0.000309569 15.0478 0.0026533 15.0934 0.00715328 15.1389C0.00921576 15.1598 0.0131532 15.1801 0.0160595 15.2008C0.0196219 15.2256 0.0225282 15.2503 0.0274031 15.2749C0.0320906 15.2985 0.0385593 15.3214 0.0444655 15.3445C0.0498093 15.3658 0.0544967 15.3873 0.0608717 15.4084C0.0677154 15.431 0.0762466 15.4528 0.0841215 15.4749C0.0917152 15.4961 0.0986527 15.5174 0.107278 15.5382C0.115809 15.5589 0.12584 15.5786 0.135402 15.5988C0.145527 15.6203 0.15509 15.6419 0.16634 15.663C0.176652 15.6822 0.188371 15.7005 0.199527 15.7192C0.211808 15.7399 0.223527 15.7608 0.237027 15.7809C0.250714 15.8015 0.265995 15.8207 0.280714 15.8405C0.293464 15.8574 0.305276 15.875 0.31887 15.8915C0.346901 15.9256 0.37662 15.9583 0.407651 15.9897C0.409151 15.9912 0.41037 15.9929 0.411869 15.9944L4.63059 20.2132C4.90528 20.4878 5.26509 20.6252 5.62499 20.6252C5.9848 20.6251 6.3448 20.4878 6.6193 20.2133C7.16848 19.6641 7.16848 18.7738 6.61939 18.2246L4.80122 16.4063Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M28.5938 2.34375H10.7814C10.0047 2.34375 9.37512 2.97337 9.37512 3.74999V9.37496C9.37512 10.1516 10.0047 10.7812 10.7814 10.7812C11.558 10.7812 12.1876 10.1516 12.1876 9.37496V5.15623H27.1875V24.8437H12.1876V20.6249C12.1876 19.8483 11.558 19.2186 10.7814 19.2186C10.0047 19.2186 9.37512 19.8483 9.37512 20.6249V26.2499C9.37512 27.0266 10.0047 27.6562 10.7814 27.6562H28.5938C29.3704 27.6562 30 27.0266 30 26.2499V3.74999C30 2.97337 29.3704 2.34375 28.5938 2.34375Z",fill:"currentColor"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_32_39",children:(0,t.jsx)("rect",{width:"30",height:"30",fill:"currentColor"})})})]})}function z(){return(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M9 18L15 12L9 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}e.s(["MobileMenuHeader",0,function({onClose:e,isAuthenticated:r,userName:a,greeting:s,logoutText:n,loginText:i,signUpText:o,onLogout:l,onLogin:c,onSignUp:d,disableSignup:h=!1}){return(0,t.jsxs)("div",{className:"mb-12",children:[(0,t.jsx)("div",{className:"flex items-center justify-end",children:(0,t.jsx)(P.TfiClose,{onClick:e,className:"text-font_header mb-10 size-5 cursor-pointer"})}
122),r?(0,t.jsxs)("div",{className:"flex flex-col gap-4 bg-black text-white",children:[(0,t.jsxs)("h2",{className:"mb-4 text-center text-4xl font-semibold",children:[s," ",a]}),(0,t.jsxs)("button",{onClick:l,className:"flex w-full cursor-pointer items-center justify-center gap-2.5 rounded border border-white bg-transparent px-4 py-2 text-base text-white [&_svg]:size-4","aria-label":"logout",children:[(0,t.jsx)(F,{}),n]})]}):(0,t.jsxs)("div",{className:"mb-6 flex gap-4",children:[(0,t.jsx)("button",{onClick:c,className:"h-12 flex-1 cursor-pointer border-0 bg-white px-6 text-base font-medium whitespace-nowrap text-zinc-900","aria-label":"login",children:i||"Entrar"}),!h&&(0,t.jsx)("button",{onClick:d,className:"h-12 flex-1 cursor-pointer border border-white bg-black px-6 text-base font-medium whitespace-nowrap text-white","aria-label":"sign up",children:o||"Criar conta"})]})]})}],510896),e.s(["default",0,z],897055),e.s(["MobileMenuNavigationItem",0,function({label:e,onClick:r,icon:a}){return(0,t.jsx)("li",{className:"list-none px-6",children:(0,t.jsxs)("button",{onClick:r,className:"flex w-full cursor-pointer items-center justify-between border-neutral-200 bg-transparent text-xl text-neutral-800 transition-colors hover:bg-neutral-50","aria-label":`navigate to ${e}`,children:[(0,t.jsx)("span",{className:"font-normal",children:e}),a||(0,t.jsx)(z,{})]})})}],274924),e.s(["MobileMenuSocialLinks",0,function({links:e}){return(0,t.jsx)("div",{className:"flex items-center justify-start gap-8 px-6 py-6",children:e.map((e,r)=>(0,t.jsxs)("button",{onClick:e.onClick,className:"flex cursor-pointer items-center gap-3 border-0 bg-transparent text-neutral-800","aria-label":"social media link",children:[(0,t.jsx)("div",{className:"[&_path]:fill-neutral-800 [&_svg]:size-4",children:e.icon}),(0,t.jsx)("span",{className:"text-base font-normal",children:e.label})]},r))})}],741654),e.s([],723909),e.s(["default",0,function(){return(0,t.jsx)("svg",{width:"36",height:"33",viewBox:"0 0 36 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M17.7273 0.429688C7.95249 0.429688 0 7.72792 0 16.6985C0 25.6685 7.95249 32.9674 17.7273 32.9674C27.5013 32.9674 35.4545 25.6685 35.4545 16.6985C35.4545 7.72792 27.5028 0.429688 17.7273 0.429688ZM22.1359 17.2713H19.2518V26.7052H14.9781C14.9781 26.7052 14.9781 21.5505 14.9781 17.2713H12.9466V13.937H14.9781V11.7804C14.9781 10.2358 15.7779 7.82229 19.2911 7.82229L22.4579 7.83343V11.07C22.4579 11.07 20.5335 11.07 20.1594 11.07C19.7852 11.07 19.2532 11.2417 19.2532 11.9783V13.9377H22.5093L22.1359 17.2713Z",fill:"white"})})}],618178),e.s(["default",0,function({onClick:e}){return(0,t.jsxs)("svg",{onClick:e,width:"22",height:"20",viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"cursor-pointer",children:[(0,t.jsx)("rect",{y:"18.0957",width:"16.2609",height:"1.90476",rx:"0.952381",fill:"#FEFEFE"}),(0,t.jsx)("rect",{y:"8.57227",width:"22",height:"1.90476",rx:"0.952381",fill:"#FEFEFE"}),(0,t.jsx)("rect",{width:"19.1304",height:"1.90476",rx:"0.952381",fill:"#FEFEFE"})]})}],390930),e.s(["default",0,function(){return(0,t.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M19.6959 18.2168L14.7656 13.2662C16.0332 11.8113 16.7278 9.98069 16.7278 8.07499C16.7278 3.62251 12.9757 0 8.36391 0C3.75212 0 0 3.62251 0 8.07499C0 12.5275 3.75212 16.15 8.36391 16.15C10.0952 16.15 11.7451 15.6458 13.1557 14.6888L18.1235 19.677C18.3311 19.8852 18.6104 20 18.9097 20C19.193 20 19.4617 19.8957 19.6657 19.7061C20.0992 19.3034 20.113 18.6357 19.6959 18.2168ZM8.36391 2.10652C11.7727 2.10652 14.5459 4.78391 14.5459 8.07499C14.5459 11.3661 11.7727 14.0435 8.36391 14.0435C4.95507 14.0435 2.18189 11.3661 2.18189 8.07499C2.18189 4.78391 4.95507 2.10652 8.36391 2.10652Z",fill:"#BDBDBD"})})}],468716),e.s(["default",0,function(){return(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M8 16V14.2222H14.2222V1.77778H8V0H14.2222C14.7111 0 15.1298 0.173926 15.4782 0.521778C15.8261 0.870222 16 1.28889 16 1.77778V14.2222C16 14.7111 15.8261 15.1298 15.4782 15.4782C15.1298 15.8261 14.7111 16 14.2222 16H8ZM6.22222 12.4444L5 11.1556L7.26667 8.88889H0V7.11111H7.26667L5 4.84444L6.22222 3.55556L10.6667 8L6.22222 12.4444Z",fill:"#FEFEFE"})})}],439897),e.s(["default",0,function(){return(0,t.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.3575 16.126C13.3996 14.2913 9.64109 14.2913 6.68316 16.126C6.52197 16.226 6.34535 16.3303 6.16034 16.4397C5.47624 16.844 4.6775 17.316 4.12061 17.8838C3.77489 18.2363 3.62752 18.5271 3.60395 18.7517C3.58523 18.9301 3.62852 19.2242 4.06112 19.6535C5.05554 20.6404 6.06601 21.25 7.28756 21.25H15.7531C16.9746 21.25 17.9851 20.6404 18.9795 19.6535C19.4121 19.2242 19.4554 18.9301 19.4367 18.7517C19.4131 18.5271 19.2658 18.2363 18.92 17.8838C18.3631 17.316 17.5644 16.844 16.8803
12216.4397C16.6953 16.3303 16.5187 16.226 16.3575 16.126ZM17.0942 14.8372C17.2059 14.9064 17.3438 14.9875 17.5 15.0793C18.1843 15.4814 19.2187 16.0893 19.9273 16.8118C20.3705 17.2637 20.7916 17.8592 20.8682 18.5888C20.9496 19.3646 20.6247 20.0927 19.9728 20.7396C18.8482 21.8556 17.4987 22.75 15.7531 22.75H7.28756C5.54198 22.75 4.19243 21.8556 3.06784 20.7396C2.41598 20.0927 2.09106 19.3646 2.17247 18.5888C2.24903 17.8592 2.67013 17.2637 3.11334 16.8118C3.82198 16.0893 4.85639 15.4814 5.54069 15.0793C5.69685 14.9875 5.83477 14.9064 5.94644 14.8372C9.35832 12.7209 13.6823 12.7209 17.0942 14.8372Z",fill:"#E7E4E7"}),(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5203 2.75C9.5321 2.75 7.92033 4.42893 7.92033 6.5C7.92033 8.57107 9.5321 10.25 11.5203 10.25C13.5086 10.25 15.1203 8.57107 15.1203 6.5C15.1203 4.42893 13.5086 2.75 11.5203 2.75ZM6.48033 6.5C6.48033 3.6005 8.73681 1.25 11.5203 1.25C14.3038 1.25 16.5603 3.6005 16.5603 6.5C16.5603 9.39949 14.3038 11.75 11.5203 11.75C8.73681 11.75 6.48033 9.39949 6.48033 6.5Z",fill:"#E7E4E7"})]})}],144690),e.s(["default",0,function(){return(0,t.jsx)("svg",{width:"25",height:"25",viewBox:"0 0 36 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M34.9602 3.99383C34.7741 2.48541 33.3111 1.03897 31.7804 0.845191C22.4459 -0.281731 13.0068 -0.281731 3.67543 0.845191C2.14339 1.03855 0.680345 2.48541 0.494239 3.99383C-0.164746 9.52213 -0.164746 14.8824 0.494239 20.4094C0.680345 21.9179 2.14339 23.3656 3.67543 23.5581C13.0068 24.685 22.4463 24.685 31.7804 23.5581C33.3111 23.366 34.7741 21.9179 34.9602 20.4094C35.6193 14.8829 35.6193 9.52213 34.9602 3.99383ZM14.7725 17.9441V6.46088L23.6363 12.2027L14.7725 17.9441Z",fill:"currentColor"})})}],183639),e.s(["default",0,function(){return(0,t.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M10.8223 4.44751L15.3748 9.00001L10.8223 13.5525",stroke:"#0C0C0C",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M2.625 9H15.2475",stroke:"#0C0C0C",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})}],461531)},21492,e=>{"use strict";e.i(907392),e.i(731589).SharedContentRepositoryInstance;var t=e.i(640492),r=e.i(249395);async function a({pageId:e,origin:s,componentTitle:n}){let i=`${r.contentServiceUrl}/brand-components?q[page_eq]=${e}`;return await (0,t.FetchService)({origin:s,url:n?i+`&q[title_eq]=${n}`:i,method:"GET"})}var s=e.i(893930);e.s(["useComponentSettings",0,function(e){let{data:t}=(0,s.useQuery)({queryKey:[e],queryFn:r});async function r(){let{data:t}=await a({pageId:e});return t.brand_components}return{pageComponents:t||[]}}],21492)},494506,e=>{"use strict";var t=e.i(752999);let r=["resource","categories","subcategories","format","isPaid","isFeatured","state"];e.s(["useCreateFilters",0,({filters:e=r,translate:a,categories:s,subcategories:n,categoriesWithSubcategories:i,cities:o})=>{let{filter_params:l}=(0,t.useSearchContextState)(),c={ns:"search"},d={ns:"common"},h=l.resource[0]||"courses";return{createFilters:()=>{let t={resource:()=>({isResourceFilters:!0,isExclusiveSearch:!0,title:a("search-for",c),searchRansack:"resource",filtersValues:[{name:a("courses",d),searchName:"courses",isDefaultSelected:"courses"===h},{name:a("teachers",d),searchName:"teachers",isDefaultSelected:"teachers"===h}]}),categories:()=>s?.categories?.length?{isResourceFilters:!1,isExclusiveSearch:!1,title:a("categories",c),searchRansack:"q[categories_name_in]",filtersValues:s.categories.map(e=>({name:e.name,searchName:e.name,isDefaultSelected:Array.isArray(l.categories)?l.categories.includes(e.name):l.categories===e.name}))}:null,subcategories:()=>{let e=l.categories||[];if(!i?.length||0===e.length)return null;let t=i.filter(t=>e.includes(t.name)).flatMap(e=>e.subcategories);return t.length?{isResourceFilters:!1,isExclusiveSearch:!1,title:a("subcategories",c),searchRansack:"q[sub_categories_name_in]",filtersValues:t.map(e=>({name:e.name,searchName:e.name,isDefaultSelected:l.subcategories?.includes(e.name)}))}:null},format:()=>({isResourceFilters:!1,isExclusiveSearch:!0,title:a("formats",c),searchRansack:"format",f
122iltersValues:[{name:a("live",d),searchName:"live",isDefaultSelected:"live"===l.format[0]},{name:a("online",d),searchName:"online",isDefaultSelected:"online"===l.format[0]},{name:a("presential",d),searchName:"presential",isDefaultSelected:"presential"===l.format[0]}]}),isPaid:()=>({isResourceFilters:!1,isExclusiveSearch:!0,title:a("modalities",c),searchRansack:"isPaid",filtersValues:[{name:a("paid",c),searchName:"true",isDefaultSelected:"true"===l.isPaid[0]},{name:a("free",c),searchName:"false",isDefaultSelected:"false"===l.isPaid[0]}]}),isFeatured:()=>({isResourceFilters:!1,isExclusiveSearch:!0,title:a("highlights",c),searchRansack:"isFeatured",filtersValues:[{name:a("highlights",c),searchName:"true",isDefaultSelected:"true"===l.isFeatured[0]}]}),state:()=>{if(!o?.length)return null;let e=o.reduce((e,t)=>(e[t.country]||(e[t.country]=[]),e[t.country].includes(t.state)||e[t.country].push(t.state),e),{}),t=Object.keys(e);return 1===t.length&&"Brasil"===t[0]?{isResourceFilters:!1,isExclusiveSearch:!0,title:"Localidade",searchRansack:"state",filtersValues:e.Brasil.map(e=>({name:e,searchName:`{"state": "${e}"}`,isDefaultSelected:l.state[0]===`{"state": "${e}"}`}))}:{isResourceFilters:!1,isExclusiveSearch:!0,title:a("locality",c),searchRansack:"state",filtersValues:t.flatMap(t=>[{name:t,searchName:`{"country": "${t}"}`,isDefaultSelected:!1,isSubtitle:!0},...e[t].map(e=>({name:` ${e}`,searchName:`{"state": "${e}", "country": "${t}"}`,isDefaultSelected:l.state[0]===`{"state": "${e}", "country": "${t}"}`}))])}},isJourney:()=>({isResourceFilters:!1,isExclusiveSearch:!0,title:a("journey",c),searchRansack:"isJourney",filtersValues:[{name:a("journey",c),searchName:"true",isDefaultSelected:"true"===l.isJourney[0]}]})};return e.flatMap(e=>"courses"!==h&&"resource"!==e?[]:t[e]?t[e]()??[]:[])}}}])},348669,413362,336386,640581,e=>{"use strict";let t,r;var a=e.i(191788),s=e.i(752999);e.s(["useCreateSearchMethods",0,function(){let[e,t]=(0,a.useState)(!1),{setSearchFilter:r}=(0,s.useSearchContextActions)(),n=(0,a.useRef)(void 0);return(0,a.useEffect)(()=>{function t(){e&&window.innerWidth<1024?window.document.body.style.overflow="hidden":window.document.body.style.overflow="initial"}return t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e,window.innerWidth]),{hasClickedSearchButton:e,setIsSearchModalOpen:function(e){t(e)},handleChangeSearchText:function(e){n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{r("set_unique_filter_param",{param:"searchText",value:e})},1e3)}}}],348669),e.s(["useNavigation",0,function(e={}){let{token:t,enabled:r=!0}=e,[s,n]=(0,a.useState)([]),[i,o]=(0,a.useState)(!0),[l,c]=(0,a.useState)(!1),[d,h]=(0,a.useState)(null);return(0,a.useEffect)(()=>{r?(async()=>{try{o(!0),c(!1),h(null);let e={};t&&(e.Authorization=`Bearer ${t}`);let r=await fetch("https://content.evob.pro/navigations",{headers:e}),a=await r.json(),s=function(e){let{navigation:t,all_categories:r}=e;return t.filter(e=>e.show_in_desktop||e.show_in_mobile).sort((e,t)=>e.order-t.order).map(e=>(function(e,t){let r={id:e.id.toString(),label:e.label,linkType:e.link_type,href:function(e){if(e&&"null"!==e)return e}(e.href),target:e.target,showInMobile:e.show_in_mobile,showInDesktop:e.show_in_desktop,visibility:e.visibility};if("category"===e.link_type){let a=null!==e.category?t.find(t=>t.id===e.category.id):t.find(t=>t.name.toLowerCase()===e.label.toLowerCase());if(a){let e=a.sub_categories&&0!==a.sub_categories.length?a.sub_categories.map(e=>({id:e.id.toString(),label:e.name,href:`/search?resource=courses&categories=${encodeURIComponent(a.name)}&subcategories=${encodeURIComponent(e.name)}`,isExternal:!1})):[];if(e.length>0)return{...r,subcategories:e}}}return r})(e,r))}(a);n(s)}catch(e){c(!0),h(e instanceof Error?e:Error("Unknown error"))}finally{o(!1)}})():o(!1)},[t,r]),{items:s,isLoading:i,isError:l,error:d}}],413362),e.i(907392);var n=e.i(731589);let i=(t=n.SharedContentRepositoryInstance,async e=>{try{return await t.getAllCategories(e)}catch(e){return{categories:[],pagination:{total_pages:0,current_page:0,per_page:0,total_items:0}}}});e.s(["getAllCategories",0,i],336386);let o=(r=n.SharedContentRepositoryInstance,async e=>{try{return await r.getCities(e)}catch(e){return[]}});e.s(["getCities",0,o],640581)},352644,e=>{"use strict";var t=e.i(306845);e.s(["BsBook",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M1 2.828c.885-.37 2.154-.769 3.388-.893 1.33-.134 2.458.063 3.112.752v9.746c-.935-.53-2.12-.603-3.213-.493-1.18.12-2.37.461-3.287.811zm7.5-.141c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783"},child:[]}]})(e)},"BsCameraVideo",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M0 5a2 2 0 0 1 2-2h7.5a2 2 0 0 1 1.983 1.738l3.11-1.382A1 1 0 0 1 16 4.269v7.462a1 1 0 0 1-1.406.913l-3.111-1.382A2 2 0 0 1 9.5 13H2a2 2 0 0 1-2-2zm11.5 5.175 3.5 1.556V4.269l-3.5 1.556zM2 4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h7.5a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1z"},child:[]}]})(e)},"BsChatDots",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m4 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"},child:[]},{tag:"path",attr:{d:"m2.165 15.803.02-.004c1.83-.363 2.948-.842 3.468-1.105A9 9 0 0 0 8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6a10.4 10.4 0 0 1-.524 2.318l-.003.011a11 11 0 0 1-.244.637c-.079.186.074.394.273.362a22 22 0 0 0 .693-.125m.8-3.108a1 1 0 0 0-.287-.801C1.618 10.83 1 9.468 1 8c0-3.192 3.004-6 7-6s7 2.808 7 6-3.004 6-7 6a8 8 0 0 1-2.088-.272 1 1 0 0 0-.711.074c-.387.196-1.24.57-2.634.893a11 11 0 0 0 .398-2"},child:[]}]})(e)},"BsChevronDown",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"},child:[]}]})(e)},"BsDash",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8"},child:[]}]})(e)},"BsEnvelope",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1zm13 2.383-4.708 2.825L1
1225 11.105zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741M1 11.105l4.708-2.897L1 5.383z"},child:[]}]})(e)},"BsFacebook",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951"},child:[]}]})(e)},"BsFillPauseFill",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5m5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5"},child:[]}]})(e)},"BsFillPlayFill",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393"},child:[]}]})(e)},"BsInstagram",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.9 3.9 0 0 0-1.417.923A3.9 3.9 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.9 3.9 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.9 3.9 0 0 0-.923-1.417A3.9 3.9 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599s.453.546.598.92c.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.5 2.5 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.5 2.5 0 0 1-.92-.598 2.5 2.5 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233s.008-2.388.046-3.231c.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92s.546-.453.92-.598c.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92m-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217m0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334"},child:[]}]})(e)},"BsPatchCheck",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.354 6.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7 8.793l2.646-2.647a.5.5 0 0 1 .708 0"},child:[]},{tag:"path",attr:{d:"m10.273 2.513-.921-.944.715-.698.622.637.89-.011a2.89 2.89 0 0 1 2.924 2.924l-.01.89.636.622a2.89 2.89 0 0 1 0 4.134l-.637.622.011.89a2.89 2.89 0 0 1-2.924 2.924l-.89-.01-.622.636a2.89 2.89 0 0 1-4.134 0l-.622-.637-.89.011a2.89 2.89 0 0 1-2.924-2.924l.01-.89-.636-.622a2.89 2.89 0 0 1 0-4.134l.637-.622-.011-.89a2.89 2.89 0 0 1 2.924-2.924l.89.01.622-.636a2.89 2.89 0 0 1 4.134 0l-.715.698a1.89 1.89 0 0 0-2.704 0l-.92.944-1.32-.016a1.89 1.89 0 0 0-1.911 1.912l.016 1.318-.944.921a1.89 1.89 0 0 0 0 2.704l.944.92-.016 1.32a1.89 1.89 0 0 0 1.912 1.911l1.318-.016.921.944a1.89 1.89 0 0 0 2.704 0l.92-.944 1.32.016a1.89 1.89 0 0 0 1.911-1.912l-.016-1.318.944-.921a1.89 1.89 0 0 0 0-2.704l-.944-.92.016-1.32a1.89 1.89 0 0 0-1.912-1.911z"},child:[]}]})(e)},"BsPatchPlus",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 5.5a.5.5 0 0 1 .5.5v1.5H10a.5.5 0 0 1 0 1H8.5V10a.5.5 0 0 1-1 0V8.5H6a.5.5 0 0 1 0-1h1.5V6a.5.5 0 0 1 .5-.5"},child:[]},{tag:"path",attr:{d:"m10.273 2.513-.921-.944.715-.698.622.637.89-.011a2.89 2.89 0 0 1 2.924 2.924l-.01.89.636.622a2.89 2.89 0 0 1 0 4.134l-.637.622.011.89a2.89 2.89 0 0 1-2.924 2.924l-.89-.01-.622.636a2.89 2.89 0 0 1-4.134 0l-.622-.637-.89.011a2.89 2.89 0 0 1-2.924-2.924l.01-.89-.636-.622a2.89 2.89 0 0 1 0-4.134l.637-.622-.011-.89a2.89 2.89 0 0 1 2.924-2.924l.89.01.622-.636a2.89 2.89 0 0 1 4.134 0l-.715.698a1.89 1.89 0 0 0-2.704 0l-.92.944-1.32-.016a1.89 1.89 0 0 0-1.911 1.912l.016 1.318-.944.921a1.89 1.89 0 0 0 0 2.704l.944.92-.016 1.32a1.89 1.89 0 0 0 1.912 1.911l1.318-.016.921.944a1.89 1.89 0 0 0 2.704 0l.92-.944 1.32.016a1.89 1.89 0 0 0 1.911-1.912l-.016-1.318.944-.921a1.89 1.89 0 0 0 0-2.704l-.944-.92.016-1.32a1.89 1.89 0 0 0-1.912-1.911z"},child:[]}]})(e)},"BsPlayBtn",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6.79 5.093A.5.5 0 0 0 6 5.5v5a.5.5 0 0 0 .79.407l3.5-2.5a.5.5 0 0 0 0-.814z"},child:[]},{tag:"path",attr:{d:"M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm15 0a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1z"},child:[]}]})(e)},"BsPlus",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4"}
122,child:[]}]})(e)},"BsTwitter",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.026 15c6.038 0 9.341-5.003 9.341-9.334q.002-.211-.006-.422A6.7 6.7 0 0 0 16 3.542a6.7 6.7 0 0 1-1.889.518 3.3 3.3 0 0 0 1.447-1.817 6.5 6.5 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.32 9.32 0 0 1-6.767-3.429 3.29 3.29 0 0 0 1.018 4.382A3.3 3.3 0 0 1 .64 6.575v.045a3.29 3.29 0 0 0 2.632 3.218 3.2 3.2 0 0 1-.865.115 3 3 0 0 1-.614-.057 3.28 3.28 0 0 0 3.067 2.277A6.6 6.6 0 0 1 .78 13.58a6 6 0 0 1-.78-.045A9.34 9.34 0 0 0 5.026 15"},child:[]}]})(e)},"BsWhatsapp",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654s.71 1.916.81 2.049c.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232"},child:[]}]})(e)},"BsYoutube",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.01 2.01 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.01 2.01 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31 31 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.01 2.01 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A100 100 0 0 1 7.858 2zM6.4 5.209v4.818l4.157-2.408z"},child:[]}]})(e)}])},587405,e=>{"use strict";var t=e.i(306845);e.s(["FiCalendar",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(e)},"FiInfo",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"12",y1:"16",x2:"12",y2:"12"},child:[]},{tag:"line",attr:{x1:"12",y1:"8",x2:"12.01",y2:"8"},child:[]}]})(e)},"FiLogIn",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"},child:[]},{tag:"polyline",attr:{points:"10 17 15 12 10 7"},child:[]},{tag:"line",attr:{x1:"15",y1:"12",x2:"3",y2:"12"},child:[]}]})(e)},"FiLogOut",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"},child:[]},{tag:"polyline",attr:{points:"16 17 21 12 16 7"},child:[]},{tag:"line",attr:{x1:"21",y1:"12",x2:"9",y2:"12"},child:[]}]})(e)},"FiMonitor",0,function(e){return(0,t.GenIcon)({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"8",y1:"21",x2:"16",y2:"21"},child:[]},{tag:"line",attr:{x1:"12",y1:"17",x2:"12",y2:"21"},child:[]}]})(e)}])},752999,e=>{"use strict";e.s(["V2SearchProvider",()=>M,"createInitialSearchState",()=>N,"useSearchContextActions",()=>S,"useSearchContextState",()=>B],752999);var t=e.i(391398),r=e.i(191788),a=e.i(511322),s=e.i(844085),n=e.i(839245),i=e.i(75761),o=e.i(420380),l=e.i(761225);class c extends l.RootAPI{constructor(){super("content")}getCoursesData=async e=>{let{query:t}=e;try{let e=await this.read({url:`/courses${t}`,skipAuth:!0});return(0,i.right)(o.Result.ok(e.data))}catch(e){return(0,i.left)(e)}};getTeachersData=async e=>{let{query:t}=e;try{let e=await this.read({url:`/teachers${t}`,skipAuth:!0});return(0,i.right)(o.Result.ok(e.data))}catch(e){return(0,i.left)(e)}}}let d=new c,h=new class{service;constructor(e){this.service=e}getCoursesData=async e=>{try{let t=await this.service.getCoursesData(e);if(t.isLeft())return await Promise.reject(t.value);return t.value.getValue()}catch(e){return await Promise.reject(e)}};getTeachersData=async e=>{try{let t=await this.service.getTeachersData(e);if(t.isLeft())return await Promise.reject(t.value);return t.value.getValue()}catch(e){return await Promise.reject(e)}}}(d),u=async e=>await h.getCoursesData(e),m=async e=>await h.getTeachersData(e);async function x(e,t,r){if("courses"===t){let t=await u({query:r});e({type:"set_courses_data",payload:{data:t.courses,isThereNextPagination:w(t.pagination)}})}if("teachers"===t){let t=await m({query:r});e({type:"set_teachers_data",payload:{data:t.teachers,isThereNextPagination:w(t.pagination)}})}}function f(e,{param:t,value:r}){var a;let s,n={"q[categories_name_in]":"categories","q[sub_categories_name_in]":"subcategories",isPaid:"isPaid",isFeatured:"isFeatured",format:"format",state:"state",isJourney:"isJourney",resource:"resource"}[a=t]||a;return"resource"===n&&r===e[n][0]?{...e}:"resource"===n&&"teachers"===r?{resource:["teachers"],searchText:e.searchText,categories:[],subcategories:[],format:[],isFeatured:[],isJourney:[],isPaid:[],state:[],perPage:["8"]}:Array.isArray(s=e[n])&&s[0]===r?{...e,[n]:[]}:{...e,[n]:[r]}}function g(e,{param:t,value:r}){var a;let s,n={"q[categories_name_in]":"categories","q[sub_categories_name_in]":"subcategories",isPaid:"isPaid",isFeatured:"isFeatured",format:"format",state:"state",isJourney:"isJourney"}[a=t]||a;return Array.isArray(s=e[n])&&s.includes(r)?{...e,[n]:[...e[n].filter(e=>e!==r)]}:{...e,[n]:[...e[n],r]}}function p(e){return Object.entries(e).reduce((e,[t,r])=>({...e,[t]:Array.isArray(r)?r:[r]}),{})}function b(e,t){let r="courses"===t.resource[0]&&e?.id?({default:void 0,2:"&order_by_store_id=14"})[e.id]??"":"",a=t.isJourney.length>0?"&q[categories_name_in][]=Discovery&q[categories_name_in][]=Essential Craft&q[categories_name_in][]=Advanced Craft&q[categories_name_in][]=Expert Craft":"";return`${r}${a}`}function C(e,t,r){let a=Object.entries(e).filter(([e,r])=>r.length>0&&!!t[e]&&"resource"!==e).map(([e,r])=>r.map(r=>`${t[e]}=${encodeURIComponent(r)}`).join("&")).join("&");return`${a?`?${a}`:""}${r}`}function j(e){return Object.entries(e).filter(([e])=>"perPage"!==e).map(([e,t])=>t.map(t=>`${e}=${t}`).join("&")).join("&")}function w(e){return e.current_page<e.total_pages}function v(e){return"courses"===e?(0,n.createCoursesQueryParamKeysDictionary)():(0,n.createTeachersQueryParamKeysDictionary)()}function k(e,t){switch(t.type){case"initialize_filter_params":return{...e,filter_params:{...e.filter_params,...p(t.payload)}};case"set_unique_filter_param":{let{param:r,value:a}=t.payload;return{...e,filter_params:f(e.filter_params,{param:r,value:a})}}case"set_multiple_filter_param":{let{param:r,value:a}=t.payload;return{...e,filter_params:g(e.filter_params,{param:r,value:a})}}case"set_courses_data":return{...e,isSearching:!1,isThereNextPagination:t.payload.isThereNextPagination,data:{courses:[...t.payload.data],teachers:[]}};case"set_teachers_data":return{...e,isSearching:!1,isThereNextPagination:t.payload.isThereNextPagination,data:{teachers:[...t.payload.data],courses:[]}};case"set_is_searching":return{...e,isSearching:t.payload};case"increase_per_page":return{...e,filter_params:{...e.filter_params,perPage:[String(t.payload)]}};case"reset_search":return N();default:return{...e}}}let y=(0,r.createContext)(N()),_=(0,r.createContext)({setSearchFilter:async()=>{await Promise.resolve()},setInitialSearch:async()=>{await Promise.resolve()},increasePerPage:async()=>{await Promise.resolve()},resetSearch:()=>{}});function N(e){return{isSearching:!0,isThereNextPagination:!1,data:{courses:[],teachers:[]},filter_params:{resource:["courses"],searchText:[],categories:[],subcategories:[],format:[],isFeatured:[],isJourney:[],isPaid:[],state:[],perPage:["8"]},...e}}function M({children:e,brand:n}){var i;let o=(0,a.useBrandContext)(),{navigate:l,getQuery:c}=(0,s.useAppNavigation)(),d=c(),[h,u]=(0,r.useReducer)(k,N()),m=(i=n??o,{setInitialSearch:async e=>{let t={...h.filter_params,...p(e)}
122,r=b(i,t),a=e.resource||"courses",s=C(t,v(a),r);u({type:"initialize_filter_params",payload:e}),window.location.href.includes("/search")&&l({query:j(t)},{shallow:!0}),await x(u,a,s)},setFilterSearch:async(e,{param:t,value:r})=>{let a="set_multiple_filter_param"===e?g(h.filter_params,{param:t,value:r}):f(h.filter_params,{param:t,value:r}),s=b(i,a),n="resource"===t?r:a.resource[0],o=C(a,v(n),s);u({type:"set_is_searching",payload:!0}),window.location.href.includes("/search")&&l({query:j(a)},{shallow:!0}),u({type:e,payload:{param:t,value:r}}),await x(u,n,o)},increasePerPage:async()=>{let e=b(i,h.filter_params),t=h.filter_params.resource[0],r=Number(h.filter_params.perPage[0])+8,a=C({...h.filter_params,perPage:[String(r)]},v(t),e);u({type:"increase_per_page",payload:r}),await x(u,t,a)},resetSearch:()=>{u({type:"reset_search"})}});return(0,r.useEffect)(()=>{m.setInitialSearch(d)},[]),(0,t.jsx)(y.Provider,{value:h,children:(0,t.jsx)(_.Provider,{value:{setSearchFilter:m.setFilterSearch,setInitialSearch:m.setInitialSearch,increasePerPage:m.increasePerPage,resetSearch:m.resetSearch},children:e})})}function B(){return(0,r.useContext)(y)}function S(){return(0,r.useContext)(_)}},992017,e=>{"use strict";var t=e.i(386547);let r={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6"},a={1:"sm:grid-cols-1",2:"sm:grid-cols-2",3:"sm:grid-cols-3",4:"sm:grid-cols-4",5:"sm:grid-cols-5",6:"sm:grid-cols-6"},s={1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6"},n={small:"gap-2 md:gap-3",standard:"gap-4 md:gap-6",large:"gap-6 md:gap-10"},i={columns:{mobile:1,tablet:2,desktop:3},gap:"standard"};e.s(["GRID_COMPONENT_DEFAULTS",0,{profileList:{columns:{mobile:1,desktop:2},gap:"large"},paginatedCardList:{columns:{mobile:1,tablet:2,desktop:3},gap:"standard"}},"resolveGridClasses",0,function(e){let{columns:o={},gap:l}=e??i;return(0,t.cn)(null!=o.mobile&&r[o.mobile],null!=o.tablet&&a[o.tablet],null!=o.desktop&&s[o.desktop],n[l??"standard"])}])}]);
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.