(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2520],{77214:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/courses",function(){return s(8708)}])},10510:function(e,t,s){"use strict";s.d(t,{W:function(){return LoadingCard}});var i=s(85893),r=s(74820);let LoadingCard=e=>{let{showImage:t=!0}=e;return(0,i.jsx)(r.J,{role:"status",className:"h-full",children:(0,i.jsxs)(r.J.Body,{className:"flex h-full animate-pulse flex-col p-4",children:[t&&(0,i.jsx)("div",{className:"aspect-h-9 aspect-w-16 mb-6 overflow-hidden",children:(0,i.jsx)("div",{className:"absolute bottom-0 left-0 right-0 top-0 flex h-full w-full items-center justify-center rounded-2xl  bg-gray",children:(0,i.jsxs)("svg",{className:"h-10 w-10 text-gray-200 dark:text-gray-600","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 20",children:[(0,i.jsx)("path",{d:"M14.066 0H7v5a2 2 0 0 1-2 2H0v11a1.97 1.97 0 0 0 1.934 2h12.132A1.97 1.97 0 0 0 16 18V2a1.97 1.97 0 0 0-1.934-2ZM10.5 6a1.5 1.5 0 1 1 0 2.999A1.5 1.5 0 0 1 10.5 6Zm2.221 10.515a1 1 0 0 1-.858.485h-8a1 1 0 0 1-.9-1.43L5.6 10.039a.978.978 0 0 1 .936-.57 1 1 0 0 1 .9.632l1.181 2.981.541-1a.945.945 0 0 1 .883-.522 1 1 0 0 1 .879.529l1.832 3.438a1 1 0 0 1-.031.988Z"}),(0,i.jsx)("path",{d:"M5 5V.13a2.96 2.96 0 0 0-1.293.749L.879 3.707A2.98 2.98 0 0 0 .13 5H5Z"})]})})}),(0,i.jsxs)("div",{className:"flex flex-1 flex-col space-y-2",children:[(0,i.jsx)("div",{className:"h-2.5 w-1/3 rounded-full bg-gray"}),(0,i.jsx)("div",{className:"h-2 w-full rounded-full bg-gray"}),(0,i.jsx)("div",{className:"h-2 w-full rounded-full bg-gray"})]})]})})}},8708:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return N},default:function(){return StoreCourses}});var i=s(85893),r=s(67294),a=s(41664),n=s.n(a),l=s(11163),o=s(6316),c=s(10510),d=s(58035),u=s(77032),m=s(32433),h=s(62683),g=s(52423),p=s(97192),f=s(86702),x=s(64841),v=s(69751),y=s(29227),j=s(66610),_=s(74820),b=s(7395);let w=[...f.QA,"store","account","chapter_contents"];var N=!0;function StoreCourses(){var e;let{t}=(0,h.Y)(w),[s,a]=(0,r.useState)({}),{data:N}=(0,p.G)(),{set:C}=(0,u.ry)(),k=(0,l.useRouter)(),{data:L,loadMore:S,canLoadMore:P,isFetching:F,isLoading:E}=(0,u.MQ)(g.Cs,{limit:10,filters:null!==(e=(0,f.dD)(k.asPath).filters)&&void 0!==e?e:null}),handleFilter=()=>{C({filters:s},"all")};return(0,r.useEffect)(()=>{a((0,f.dD)(k.asPath).filters)},[k.asPath]),(0,m.Z)(["courses-page"]),(0,i.jsxs)(o.Layout,{children:[(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@graph":[(0,x.Z)([{name:t("common:section_titles_home_page"),id:"https://".concat(null==N?void 0:N.domain)},{name:t("common:all_courses"),id:"https://".concat(null==N?void 0:N.domain,"/courses")}]),L&&L.length>0?{"@type":"ItemList",itemListElement:null==L?void 0:L.map((e,t)=>({"@type":"ListItem",position:t+1,item:(0,v.Z)(e,N)}))}:{}]})}}),(0,i.jsx)(d.V,{title:t("common:section_titles_courses")}),(0,i.jsxs)(o.Layout.Container,{children:[(0,i.jsxs)(_.t,{className:"mb-4 text-gray-700 md:!mb-8",children:[(0,i.jsx)(n(),{href:"/",children:(0,i.jsx)(_.u.Body,{className:"font-normal text-gray-700",children:t("common:section_titles_home_page")})}),(0,i.jsx)(_.u.Body,{className:"font-normal text-gray-700",children:t("store:all_courses")})]}),(0,i.jsx)(_.u.Heading,{level:"h5",as:"h1",children:t("store:all_courses"),className:"mb-8"}),(0,i.jsx)("div",{className:"grid gap-8",children:(0,i.jsx)(_.J,{id:"all",className:"bg-gray-100 lg:!border-none lg:!bg-transparent",children:(0,i.jsx)(_.J.Body,{className:"lg:!p-0",children:(0,i.jsxs)(_.G,{columns:{xl:4,lg:6},children:[(0,i.jsxs)(_.G.Cell,{columnSpan:{xl:1,lg:2},children:[(0,i.jsx)("div",{className:"hidden lg:!block",children:(0,i.jsx)(o.FilteringCard,{filters:{type:"course_category"},setFilters:a,handleFilter:handleFilter})}),(0,i.jsx)(_.D,{className:"mb-4 block rounded-2xl border border-gray-400 bg-white lg:!hidden",children:e=>{let{isOpen:s}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.D.Button,{children:(0,i.jsxs)("div",{className:"flex flex-grow flex-row items-center justify-between",children:[(0,i.jsx)("div",{className:"flex items-center",children:(0,i.jsx)("div",{className:"flex flex-col items-start",children:(0,i.jsx)(_.u.Text,{size:"sm",className:"line-clamp-1 font-bold",children:(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)(_.s,{color:"gray",variant:"soft",children:(0,i.jsx)(y.Z,{})}),(0,i.jsx)(_.u.Body,{as:"p",size:"md",children:t("common:filter")})]})})})}),(0,i.jsx)(_.s,{size:"sm",variant:"soft",color:"gray",children:(0,i.jsx)(j.Z,{className:(0,b.cn)("transition-all duration-300 ease-in-out",s?"":"rotate-180 transform")})})]})}),(0,i.jsx)(_.D.Content,{className:"mt-2 gap-3 p-4",children:(0,i.jsx)(o.FilteringCard,{filters:{type:"course_category"},setFilters:a,handleFilter:handleFilter})})]})}})]}),(0,i.jsx)(_.G.Cell,{columnSpan:{xl:3,lg:4},children:(0,i.jsx)(o.ProductSectionCard,{className:"p-0 lg:!p-6",children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_.G,{columns:{md:2},children:E?Array.from({length:3},(e,t)=>(0,i.jsx)(_.G.Cell,{children:(0,i.jsx)(c.W,{},t)},t)):null==L?void 0:L.map((e,t)=>(0,i.jsx)(_.G.Cell,{children:(0,i.jsx)(o.CourseCard,{course:e,hasBadge:!1})},t))}),P&&(0,i.jsx)("div",{className:"mt-4 flex w-full justify-center",children:(0,i.jsx)(_.B,{size:"md",isLoading:F,disabled:F,onClick:S,children:t("account:show_more")})})]})})})]})})})})]})]})}},64841:function(e,t){"use strict";t.Z=function(e){return{"@type":"BreadcrumbList",itemListElement:e.map((e,t)=>({"@type":"ListItem",position:t+1,item:{name:e.name,"@id":e.id,url:e.id}}))}}},69751:function(e,t){"use strict";t.Z=function(e,t,s,i){var r,a;if(!e||!t)return{};let n=e.intro_video?{"@type":"VideoObject",name:"".concat(e.title," Intro Video"),description:e.summary||e.description||e.meta_description||"",thumbnailUrl:e.thumbnail||void 0,uploadDate:e.created_at,contentUrl:e.intro_video.url,embedUrl:"youtube"===e.intro_video.provider?"https://www.youtube.com/embed/".concat(e.intro_video.provider_id):e.intro_video.url}:void 0;return{"@type":"Course","@id":"https://".concat(t.domain,"/courses/").concat(e.slug),url:"https://".concat(t.domain,"/courses/").concat(e.slug),name:e.title,description:e.summary||e.description||e.meta_description||"",keywords:e.meta_keywords.length>0?null===(r=e.meta_keywords)||void 0===r?void 0:r.join(", "):void 0,coursePrerequisites:e.requirements.length>0?e.requirements:void 0,thumbnailUrl:e.thumbnail||void 0,educationalLevel:e.difficulty?{"@type":"DefinedTerm",name:e.difficulty.name,url:"https://".concat(t.domain,"/courses/difficulties/").concat(e.difficulty.slug)}:void 0,courseCode:e.slug,totalHistoricalEnrollment:e.enrollments_count,assesses:e.outcomes.length>0?e.outcomes:void 0,inLanguage:t.locale,timeRequired:"PT".concat(e.duration,"S"),dateCreated:e.created_at,dateModified:e.updated_at,datePublished:e.publish_at,hasCourseInstance:{"@type":"CourseInstance",courseMode:"Online",courseWorkload:"PT".concat(e.duration,"S")},genre:e.category?e.category.name:void 0,syllabusSections:e.chapters&&e.chapters.length>0?e.chapters.map(e=>({"@type":"Syllabus",name:e.title})):void 0,creator:e.settings&&e.settings.show_content_instructor?null===(a=e.instructors)||void 0===a?void 0:a.map(e=>({"@type":"Person",name:e.name})):void 0,provider:{"@type":"Organization",name:t.title,description:t.meta_description||void 0,keywords:t.meta_keywords.length>0?t.meta_keywords:void 0,logo:t.logo||t.favicon||void 0,url:"https://".concat(t.domain)},publisher:{"@type":"Organization",name:t.title,image:t.logo||t.favicon||void 0,url:"https://".concat(t.domain)},isAccessibleForFree:0===e.price,offers:{"@type":"AggregateOffer",category:0===e.price?"Free":"Paid",availability:e.in_stock?"https://schema.org/InStock":"https://schema.org/OutOfStock",priceCurrency:t.currency,highPrice:e.sales_price?e.sales_price/100:e.price?e.price/100:0,lowPrice:e.price?e.price/100:0},educationalCredentialAwarded:e.settings&&e.settings.certificate_enabled?{"@type":"EducationalOccupationalCredential",name:e.title,credentialCategory:"certificate"}:void 0,aggregateRating:s&&i?{"@type":"AggregateRating",ratingValue:s,reviewCount:i}:void 0,video:n}}},29227:function(e,t,s){"use strict";var i=s(67294);let r=i.forwardRef(function({title:e,titleId:t,...s},r){return i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},s),e?i.createElement("title",{id:t},e):null,i.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"}))});t.Z=r}},function(e){e.O(0,[2141,9211,536,9774,2888,179],function(){return e(e.s=77214)}),_N_E=e.O()}]);