1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[713],{58439:function(e,t,r){"use strict";var l,n=r(80665);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)({}).hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e}).apply(null,arguments)}t.Z=function(e){return n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),l||(l=n.createElement("path",{fill:"currentColor",d:"M12 20.99c-.29 0-.56-.11-.77-.32l-7.99-8c-.05-.07-.07-.09-.09-.12-.04-.06-.05-.09-.06-.11l-.08-.24c0-.05-.01-.09-.02-.13v-.09l.04-.29.04-.12c.03-.07.04-.1.06-.12.04-.07.06-.09.08-.12 0 0 .01-.02.02-.03s.03-.03.04-.05l.04-.04 7.92-7.92c.41-.41 1.12-.41 1.53 0 .2.2.32.48.32.77s-.11.56-.32.77L6.69 10.9h13.33a1.082 1.082 0 0 1-.11 2.16H6.7l6.15 6.16c.34.44.31 1.06-.08 1.44-.2.2-.48.32-.77.32Z"})))}},55513:function(e,t,r){"use strict";var l,n=r(80665);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)({}).hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e}).apply(null,arguments)}t.Z=function(e){return n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),l||(l=n.createElement("path",{fill:"currentColor",d:"M12 20.99c-.29 0-.56-.11-.77-.32s-.32-.48-.32-.77.11-.56.32-.77l6.07-6.07H3.97a1.082 1.082 0 0 1 .11-2.16H17.3l-6.15-6.16c-.34-.44-.31-1.06.08-1.44.41-.41 1.12-.41 1.53 0l7.99 8c.05.07.07.09.09.12.04.06.05.09.06.11l.08.24c0 .05.01.09.02.13v.09l-.04.29-.04.12c-.03.07-.04.1-.06.12-.04.07-.06.09-.08.12 0 0-.01.02-.02.03s-.03.03-.04.05l-.04.04-7.92 7.92c-.2.2-.48.32-.77.32Z"})))}},95719:function(e,t,r){"use strict";var l,n=r(80665);function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)({}).hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e}).apply(null,arguments)}t.Z=function(e){return n.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),l||(l=n.createElement("path",{fill:"currentColor",d:"M18.56 16c-.23 0-.45-.06-.65-.2l-.11-.08-5.8-4.97-5.79 4.96c-.5.43-1.25.37-1.67-.13-.39-.45-.38-1.13.02-1.57l.09-.09 6.57-5.64c.4-.34.99-.38 1.43-.09l.1.08 6.57 5.63a1.187 1.187 0 0 1-.77 2.09Z"})))}},66269:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/kochkurse",function(){return r(85183)}])},21592:function(e,t,r){"use strict";var l=r(97758);r(80665);var n=r(29123);t.Z=e=>{let{markdown:t,breaks:r=!1,className:s="",staticContent:i=!1,additionalRenderOption:a={}}=e;return t?(0,l.jsx)("div",{className:"[&_p]:[font-size:inherit] [&_p]:mb-4 [&_strong]:[font-size:inherit] [&_strong]:[font-family:DMSans,sans-serif] [&_h1]:mb-2 [&_h2]:mb-2 [&_h3]:mb-2 [&_h4]:mb-2 [&_h4]:mt-8 "+(i?"[&_p]:my-6 [&_h1]:text-[length:var(--font-size-h4)] [&_h2]:text-[length:var(--font-size-h4)] [&_h3]:text-[length:var(--font-size-h4)] [&_h4]:text-[length:var(--font-size-h4)] [&_h1]:mb-2 [&_h2]:mb-2 [&_h3]:mb-2 [&_h4]:mb-2":"")+" "+s,dangerouslySetInnerHTML:{__html:(0,n.Z)(t,a,r)}}):null}},25017:function(e,t,r){"use strict";r.d(t,{G:function(){return a}});var l=r(97758);r(80665);var n=r(67210),s=r(19517),i=r(21592);let a="[&_p]:my-6 [&_h1]:text-[length:var(--font-size-h4)] [&_h2]:text-[length:var(--font-size-h4)] [&_h3]:text-[length:var(--font-size-h4)] [&_h4]:text-[length:var(--font-size-h4)] [&_h1]:mb-2 [&_h2]:mb-2 [&_h3]:mb-2 [&_h4]:mb-2 [&_ul]:ml-[1.2rem] [&_ul]:list-disc [&_ol]:ml-[1.2rem] [&_ol]:list-decimal [&_a]:underline";t.Z=e=>{let{value:t,className:r=""}=e;return(0,n.a3)(t)?(0,l.jsx)(s.Z,{data:t,className:"[&_p]:[font-size:inherit] [&_p]:mb-4 [&_strong]:[font-size:inherit] [&_strong]:[font-family:DMSans,sans-serif] [&_h1]:mb-2 [&_h2]:mb-2 [&_h3]:mb-2 [&_h4]:mb-2 [&_h4]:mt-8 "+r}):"string"==typeof t&&""!==t.trim()?(0,l.jsx)(i.Z,{markdown:t,className:r}):null}},11224:function(e,t,r){"use strict";r.d(t,{SP:function(){return c},dr:function(){return o},mQ:function(){return a},nU:function(){return u}});var l=r(97758),n=r(80665),s=r(95282),i=r(89750);let a=s.fC,o=n.forwardRef((e,t)=>
1{let{className:r,...n}=e;return(0,l.jsx)(s.aV,{ref:t,className:(0,i.cn)("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",r),...n})});o.displayName=s.aV.displayName;let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)(s.xz,{ref:t,className:(0,i.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",r),...n})});c.displayName=s.xz.displayName;let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,l.jsx)(s.VY,{ref:t,className:(0,i.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",r),...n})});u.displayName=s.VY.displayName},29123:function(e,t,r){"use strict";var l=r(62921);t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n={link:(e,t,r)=>r?'<a href="'.concat(e,'" target="_blank">').concat(r,"</a>"):t?'<a href="'.concat(e,'" target="_blank">').concat(t,"</a>"):'<a href="'.concat(e,'" target="_blank">').concat(e,"</a>"),...t};return l.TU.use({renderer:n,breaks:r}),(0,l.TU)(e)}},25774:function(e,t,r){"use strict";var l=r(97758),n=r(80665),s=r(11548),i=r(44358),a=r(58439),o=r(55513);t.Z=e=>{let{children:t,bleed:r=!1}
1=e,[c,u]=(0,n.useState)(null),[d,f]=(0,n.useState)(!1),[h,v]=(0,n.useState)(!0);return t?(0,l.jsxs)("div",{className:"overflow-visible relative",children:[(0,l.jsx)(s.tq,{slidesPerView:1.2,spaceBetween:30,watchSlidesProgress:!0,breakpoints:{768:{slidesPerView:2},1024:{slidesPerView:3}},className:r?i.uk:"".concat(i.uk," ").concat(i.rF),onSwiper:u,onSlideChange:e=>{f(!e.isBeginning),v(!e.isEnd)},onReachEnd:()=>v(!1),children:t}),(0,l.jsxs)("div",{className:i.Zq,children:[(0,l.jsx)("button",{onClick:()=>null==c?void 0:c.slidePrev(),disabled:!d,"aria-label":"zur\xfcck",children:(0,l.jsx)(a.Z,{})}),(0,l.jsx)("button",{onClick:()=>null==c?void 0:c.slideNext(),disabled:!h,"aria-label":"weiter",children:(0,l.jsx)(o.Z,{})})]})]}):null}},44358:function(e,t,r){"use strict";r.d(t,{U8:function(){return s},Zq:function(){return i},rF:function(){return n},uk:function(){return l}});let l="md:max-w-[100vw] !overflow-visible md:w-full",n="[&_.swiper-slide]:transition-opacity [&_.swiper-slide]:duration-300 [&_.swiper-slide:not(.swiper-slide-visible)]:opacity-0",s="items-stretch !flex !h-auto",i="hidden py-3 px-5 lg:flex lg:bottom-[calc(100%+24px)] lg:gap-[10px] lg:absolute lg:right-0 [&_svg]:aspect-square [&_svg]:text-[color:var(--color-foreground)] [&_svg]:block [&_svg]:w-6 [&_button]:transition-all [&_button]:duration-300 [&_button]:m-0 [&_button]:p-0 [&_button:disabled]:opacity-30"},3938:function(e,t,r){"use strict";var l=r(97758),n=r(80665),s=r(87592),i=r.n(s),a=r(67184),o=r(57889),c=r(99600),u=r(72637),d=r(56019),f=r(74729),h=r(61798),v=r(55738),m=r(95723),p=r(59538),g=r.n(p),x=r(26035),b=r(59807),j=r(54626),w=r(75461),_=r(43510);let y=e=>{var t;return(0,w.aQ)(e)?0:null!==(t=(0,w.pc)(e))&&void 0!==t?t:9999};t.Z=e=>{let t,{categories:r,courses:s,cashcows:p,categoryOverride:N=null,resetFilterOnUnmount:k=!1,theme:Z="light",showMoreButton:C=!1,popularCourses:P=null,paginate:S=!1,singlePurchaseMode:E=!1}=e,A=(0,v.Z)(e=>e.currentUserOverview),{cat:T,s:O,pop:z,filter:M}=(0,m.useRouter)().query,{sorting:U,filterCategory:I,filterCustom:G,filterDifficulty:F,showFilter:B,searchQuery:V,setSorting:R,setSearchQuery:D,resetFilters:K,setAvailableCategories:H,setFilterCategory:Q,setCoursesCount:q,setFilterCustom:L}
1=(0,c.Z)(),[W,Y]=(0,n.useState)(s),[J,X]=(0,n.useState)(N),[$,ee]=(0,n.useState)(null),et=(0,n.useRef)(),[er,el]=(0,n.useState)("Unsere Kochkurse"),[en,es]=(0,n.useState)(!1),[ei,ea]=(0,n.useState)(E),[eo,ec]=(0,n.useState)(!1),[eu,ed]=(0,n.useState)(S?1:0),[ef,eh]=(0,n.useState)(S);(0,n.useEffect)(()=>{A&&(el("Meine Kochkurse"),async function(){let e=await x.aF.fetchOverview(),t=e=>Object.entries(e).filter(e=>{let[,t]=e;return t.updatedAt}).sort((e,t)=>{let r=new Date(e[1].updatedAt);return new Date(t[1].updatedAt).getTime()-r.getTime()})[0];ee(e.filter(e=>{let r=s.find(t=>t&&(0,_.nk)(t)===e.courseId);if(!r||!e.progress)return!1;let l=t(e.progress);if(!l)return!1;let n=(0,j.HU)(r,l[0]);return!(!n||n.title.toLowerCase().includes("trailer"))}).map(e=>{let t=s.find(t=>(0,_.nk)(t)===e.courseId);return{progressItem:e,...t}}))}())},[A]);let ev=(0,n.useMemo)(()=>(null!=p?p:[]).map(e=>s.filter(t=>"object"==typeof e?e.id===t.id:e===t.id)).flat(),[p,s]),em=(0,n.useMemo)(()=>{if(!P||0===P.length)return new Map;let e=new Map;return P.forEach((t,r)=>{e.set(t.id,r)}),e},[P]),ep=e=>P&&0!==P.length?[...e].sort((e,t)=>{var r,l;return(null!==(r=em.get(e.id))&&void 0!==r?r:1/0)-(null!==(l=em.get(t.id))&&void 0!==l?l:1/0)}):e;(0,n.useEffect)(()=>{M&&!G&&L(Array.isArray(M)?M[0]:M)},[M]),(0,n.useEffect)(()=>{(async()=>{let e=V||(Array.isArray(O)?O[0]:O);if(O&&(ec(!0),!V&&O&&D(Array.isArray(O)?O[0]:O)),!V&&O&&eo||!e){Y(s);return}let t=(await (0,o.ZP)("courses",e||"")).data.hits.map(e=>s.filter(t=>e.uuid===t.uuid)).flat();if(t.length<4){let e=s.filter(e=>!t.some(t=>t.uuid===e.uuid)).slice(0,6-t.length);t.push(...e)}"1"===z&&(t=ep(t)),Y(t)})()},[V,O,z]),(0,n.useEffect)(()=>{B||K()},[B,K]),(0,n.useEffect)(()=>{en&&es(!1),(async()=>{let e=[...s];if("title"===U?e.sort((e,t)=>e.title.localeCompare(t.title)):"rating"===U&&e.sort((e,t)=>{let r=(0,j.Kn)(e)||0;return((0,j.Kn)(t)||0)-r}),(null==V?void 0:V.length)>0&&(e=[...(await (0,o.ZP)("courses",V||"")).data.hits.map(e=>s.filter(t=>e.uuid===t.uuid)).flat()]),null!=I)et.current=!0,e=e.filter(e=>(0,j.QG)(e).some(e=>(0,d.KY)(e)===I));else if(T&&!et.current){let e=(0,d.aF)(r,T);e&&Q(e)}else N&&!et.current&&Q(String(N));if(F&&(e=e.filter(e=>e.difficulty===F)),G)switch(es(!0),G){case"pinned":e=s.filter(e=>{var t;let r=(0,_.nk)(e);return null!==r&&(null==A?void 0:null===(t=A.pinnedCourses)||void 0===t?void 0:t.includes(String(r)))});break;case"newest":e=s.filter(e=>(0,w.nF)(e)).sort((e,t)=>new Date(t.previewUntil).getTime()-new Date(e.previewUntil).getTime());break;case"comingsoon":e=s.filter(e=>(0,w.d1)(e)).sort((e,t)=>y(e)-y(t));break;case"started":e=$;break;case"bought":e=s.filter(e=>{var t;return null==A?void 0:null===(t=A.realBoughtCoursesId)||void 0===t?void 0:t.includes((0,_.nk)(e))});break;case"beta":e=s.filter(e=>{var t;return(null==A?void 0:null===(t=A.betaCoursesIds)||void 0===t?void 0:t.includes((0,_.nk)(e)))&&"public"!=e.state});break;case"popular":(null==P?void 0:P.length)&&(e=P)}else if(!F&&!I&&!eo&&(V||O)){let t=V||(Array.isArray(O)?O[0]:O);e=[...(await (0,o.ZP)("courses",t||"")).data.hits.map(e=>s.filter(t=>e.uuid===t.uuid)).flat()]}if("1"===z&&(V||O)&&(e=ep(e)),S){let t=e.slice(0,10*eu);eh(e.length>10*eu),Y(t)}else Y(e);q(null==e?void 0:e.length);let t=[...new Set(s.filter(e=>(null==e?void 0:e.difficulty)===F).flatMap(e=>(0,j.QG)(e).map(e=>(0,d.KY)(e))))];H(F?t:null)})()},[I,F,G,U,s,N,A,T,eu,z,O]),(0,n.useEffect)(()=>{ed(1)},[I,F,G,U,s,N,A,T,z,O]),(0,n.useEffect)(()=>()=>{k&&K()},[K]);let eg=()=>{ed(eu+1)},ex=g()({[i().courseOverviewFilter]:!0,[i().themeDark]:"dark"===Z});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{id:"uebersicht",className:"col-span-12 ".concat(ex),children:[!!er&&(0,l.jsx)("h3",{className:"text-center",children:er}),(0,l.jsxs)("div",{className:"".concat(i().topBar," mt-10 pb-6 mb-6 border-b items-stretch flex gap-1 lg:gap-5 flex-wrap lg:flex-nowrap justify-between [&_button]:m-0"),children:[(0,l.jsx)(h.Z,{categories:r,courses:s,hasPopularCourses:null==P?void 0:P.length}
1),!en&&(0,l.jsx)("div",{className:"flex-grow lg:flex-grow-0 w-auto lg:w-[200px] rounded-md [--tw-ring-color:transparent]",children:(0,l.jsxs)(a.Ph,{onValueChange:e=>R(e),defaultValue:"rating","aria-label":"Sortieren nach",children:[(0,l.jsx)(a.i4,{className:"px-4 py-3 !shadow-none gap-[10px] h-full bg-[var(--input-bg)] [--tw-ring-color:transparent]",children:(0,l.jsx)(a.ki,{placeholder:"Sortieren nach"})}),(0,l.jsxs)(a.Bw,{className:"absolute bg-[var(--input-bg,#fff)] border-0",children:[(0,l.jsx)(a.Ql,{value:null,children:"Empfohlen"}),(0,l.jsx)(a.Ql,{value:"title",children:"Alphabetisch"}),(0,l.jsx)(a.Ql,{value:"rating",children:"Beste Bewertung"})]})]})}),(0,l.jsx)(f.Z,{initialShowSearch:!0,onUpdate:D,onClear:()=>{D(null)},placeholder:"Kurse suchen ...",className:"".concat(i().searchBox," rounded-md border w-full lg:w-auto lg:flex-1 px-2 py-1 md:px-4 md:py-3 gap-[10px] !items-center")})]}),(0,l.jsxs)("div",{className:"md:flex gap-10",children:[(0,l.jsx)(d.ZP,{categories:r,className:"".concat(i().filter," w-[350px] hidden lg:block flex-shrink-0 flex-grow-0 [&_label]:text-base"),startedCourses:$,courses:s,hasPopularCourses:null==P?void 0:P.length}),(t=(null==W?void 0:W.length)?W:ev,(0,l.jsxs)("div",{id:"course_top",className:"flex-1 scroll-mt-[250px]",children:[!(null==W?void 0:W.length)&&(0,l.jsxs)("div",{className:"p-5 bg-cream-sepia-background rounded-[10px] mb-5 text-xl text-dark-01-main",children:["Leider haben wir keine passenden Kurse f\xfcr dich gefunden.",(0,l.jsx)("br",{}),"Hier sind einige unserer beliebtesten Kurse, die dir gefallen k\xf6nnten!"]}),(0,l.jsx)(u.Z,{courses:t,fullWidth:!B,startedCourses:$,showPrice:ei,showMoreButton:ef,showMore:()=>eg(),buy:E})]}))]})]}),(0,l.jsx)(b.Z,{})]})}},62050:function(e,t,r){"use strict";var l=r(97758);r(80665);var n=r(40970),s=r(25017);t.Z=e=>{let{className:t="",children:r=null,faqs:i=null,style:a="light"}=e;return(0,l.jsxs)("div",{className:"col-span-12 lg:col-span-8 lg:col-start-3 text-left "+t,children:[(0,l.jsx)("h2",{children:"FAQ"}),(0,l.jsx)("p",{className:"title mb-6",children:"Hier findest du Antworten auf h\xe4ufig gestellte Fragen"}),i&&i.length>0?i.map(e=>(0,l.jsx)(n.Z,{caption:e.question,style:a,children:(0,l.jsx)(s.Z,{value:e.answer})},e.id)):r,(0,l.jsx)("div",{className:"mt-6 opacity-75",children:(0,l.jsxs)("p",{children:["Deine Frage ist noch nicht beantwortet?",(0,l.jsx)("br",{}),"Dann findest du ",(0,l.jsx)("a",{className:"underline cursor-pointer",href:"/faq",children:"hier"})," hoffentlich die Antwort dazu."]})})]})}},40970:function(e,t,r){"use strict";var l=r(97758),n=r(80665),s=r(95719),i=r(62897);let a=(0,n.forwardRef)((e,t)=>{let{caption:r="",children:a,initialCollapsed:o=!1,style:c="light"}=e,[u,d]=(0,n.useState)(o);return(0,n.useImperativeHandle)(t,()=>({open:()=>d(!0),close:()=>d(!1)})),"string"==typeof a&&(a=(0,l.jsx)("p",{children:a})),(0,l.jsxs)("div",{className:"flex flex-col py-4 pr-6 "+("dark"===c?"border-b border-[rgba(255,253,248,0.1)]":"border-b border-[rgba(42,51,73,0.05)]"),children:[(0,l.jsxs)("div",{onClick:()=>d(!u),className:"cursor-pointer flex",children:[(0,l.jsx)("strong",{className:"text-lobster-01-main",children:r}),(0,l.jsx)("div",{className:"ml-auto",children:u?(0,l.jsx)(s.Z,{className:"light"===c?"w-6 h-6":"svg-light w-6 h-6"}):(0,l.jsx)(i.Z,{className:"light"===c?"w-6 h-6":"svg-light w-6 h-6"})})]}),u&&(0,l.jsx)("div",{className:"mt-4",children:a})]})});t.Z=a},77920:function(e,t,r){"use strict";r.d(t,{MC:function(){return l},MW:function(){return n},dl:function(){return a},iG:function(){return s},sy:function(){return i}});let l="w-full",n="rounded-none border-b w-full justify-start gap-0 h-auto p-0 mb-4 border-[color:var(--color-border)] text-[color:var(--color-foreground)]",s="shadow-none text-xl px-5 py-3 block rounded-none relative m-0 text-[color:var(--color-foreground)] data-[state=active]:shadow-none after:absolute after:bottom-[-2px] after:left-0 after:right-0 after:h-1 after:w-full after:bg-current after:rounded-[50px] after:opacity-0 after:transition-opacity after:duration-300 hover:after:bg-lobster-02-soft hover:after:opacity-100 data-[state=active]:after:opacity-100",i="border-t mt
1-10 [&_div[data-state]]:!overflow-visible",a="pb-10"},85183:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return K},default:function(){return H}});var l=r(97758),n=r(80665),s=r(30178),i=r(52372),a=r(89305),o=r(20181),c=r(46371),u=r(22138),d=r(77110),f=r(3938),h=r(55738),v=r(94564),m=r(77451),p=r(11224),g=r(8217),x=r(77920),b=r(44358),j=r(25774),w=e=>{let{content:t=null}=e;return(0,l.jsx)(j.Z,{bleed:!0,children:t})},_=r(23494),y=r(11548),N=r(43510);let k=e=>"items"in e,Z=e=>"__component"in e,C=e=>{let{content:t,showPrice:r}=e;return(0,l.jsx)(g.UQ,{type:"single",collapsible:!0,defaultValue:"1",className:x.sy,children:t.map((e,t)=>(0,l.jsxs)(g.Qd,{value:String(t+1),children:[(0,l.jsx)(g.o4,{className:"text-xl m-0 px-2",children:e.title}),(0,l.jsx)(g.vF,{className:x.dl,children:(0,l.jsx)(w,{content:e.items,type:e.type,showPrice:r},t)})]},t))})},P=e=>{let{content:t,showPrice:r}=e;return(0,l.jsxs)(p.mQ,{defaultValue:"0",children:[(0,l.jsx)(p.dr,{className:x.MW,children:t.map((e,t)=>(0,l.jsx)(p.SP,{value:String(t),className:x.iG,children:e.title},t))}),t.map((e,t)=>(0,l.jsx)(p.nU,{value:String(t),children:(0,l.jsx)(w,{content:e.items,showPrice:r,type:e.type},t)},t))]})};var S=e=>{let{variant:t="cream-01",content:r=null,showPrice:s=!1,title:i=null,subtitle:a=null,courses:o}=e,{width:c}=(0,v.Z)(),[d,f]=(0,n.useState)(!1);if(!r)return null;let h=e=>{let t="object"==typeof e?e.id:e;return(null==o?void 0:o.find(e=>e.id===t||"number"==typeof t&&(0,N.nk)(e)===t))||("object"==typeof e&&"string"==typeof e.id?e:null)},p=(e,t)=>{let r=t.map(h).filter(e=>!!e);return 0===r.length?null:{title:e,type:"courses",items:r.map((e,t)=>{var r;return(0,l.jsx)(y.o5,{className:b.U8,children:(0,l.jsx)(_.Z,{course:e,showPrice:s,linkCategories:!0})},null!==(r=e.id)&&void 0!==r?r:t)})}},g=r.map(e=>{var t,r,l;return e?k(e)?e:Z(e)?"slider.course-tab"===e.__component?p(e.title,null!==(t=e.courses)&&void 0!==t?t:[]):null:p(null!==(r=e.title)&&void 0!==r?r:"",null!==(l=e.courses)&&void 0!==l?l:[]):null}).filter(e=>!!e);return((0,m.Z)(()=>{f(c<=1024)},200,[c]),0===g.length)?null:(0,l.jsx)("div",{className:"w-full overflow-hidden",children:(0,l.jsx)(u.Z,{variant:t,className:x.MC,children:(0,l.jsxs)("div",{className:"col-span-12",children:[(0,l.jsxs)("div",{className:"mb-3 md:mb-10",children:[!!i&&(0,l.jsx)("h2",{className:"",children:i}),!!a&&(0,l.jsx)("div",{className:"text-xl font-bold",children:a})]}),(0,l.jsx)("div",{className:x.MC,children:d?(0,l.jsx)(C,{content:g,showPrice:s}):(0,l.jsx)(P,{content:g,showPrice:s})})]})})})},E=r(26035);let A="shadow-light rounded-[10px] overflow-hidden bg-white grid grid-cols-1 min-[600px]:grid-cols-2",T="h-full row-start-1 col-start-1 overflow-hidden aspect-[16/9] min-[600px]:aspect-auto",O="[&_a]:items-center [&_a]:text-lobster-01-main [&_a]:flex [&_a]:no-underline [&_a_svg]:relative [&_a:hover]:cursor-pointer";var z=r(44808),M=r(97834),U=r(19245),I=r(70279);let G=async(e,t)=>{try{return(await E.kI.getThumbnailUrl(e,t)).url}catch(e){return console.warn("Failed to get thumbnail from service:",e),null}},F=async(e,t,r)=>{let l;if(t&&r){let e=await G(t,r);if(e)return e}if(e&&Array.isArray(e)&&e.length>0){var n;l=null===(n=e[0])||void 0===n?void 0:n.url}return l&&l.startsWith(I.mq)&&(l="https://d2z9jv66wc4wox.cloudfront.net/"+btoa(JSON.stringify({bucket:"7h-strapi",key:l=l.substr(I.mq.length),edits:{resize:{width:700,height:void 0,fit:"cover"}}}))),l};var B=r(54626);let V=e=>{let{className:t="",course:r,progress:s}=e;if(!s)return null;let i="public"!==r.state,a=(0,n.useContext)(M.V),{latestProgress:o,latestVideoId:c,latestVideoTitle:u}=(0,U.mo)(r,s);if(!o)return null;let[d,f]=(0,n.useState)(null);(0,n.useEffect)(()=>{(async()=>{var e,t;let l=(0,B.HU)(r,c),n=(0,N.nk)(r);if(l&&null!==n){let e=await F(l.poster?[{url:l.poster}]:[],l.key,String(n));if(e){f(e);return}}f(null!==(t=null!==(e=null==l?void 0:l.poster)&&void 0!==e?e:(0,B.lE)(r))&&void 0!==t?t:null)})()},[r]);let h=r.title,v=(0,l.jsxs)("a",{children:[" Weitermachen ",(0,l.jsx)(z.Z,{className:"svg-lobster w-6 h-6"})," "]});return(0,l.jsxs)("div",{className:"".concat(A," rounded overflow-hidden h-full ").concat(t),onClick:()=>a.navigateToCourse({...r,state:void 0}),children:[(0,l.jsx)("div",{className:"".concat(T," cursor-pointer"),children:d&&(0,l.jsx)("img",{src:d,className:"w-full h-full object-cover object-center"})}),(0,l.jsxs)("div",{className:"flex flex-col justify-center p-5",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("strong",{className:"text-xl line-clamp-1",children:i?"Testversion":(null==u?void 0:u.length)?u:r.title}),(0,l.jsx)("p",{className:"opacity-50 mt-1 line-clamp-1",children:h})]}),(0,l.jsx)("div",{className:"cursor-pointer mt-6 ".concat(O),onClick:()=>{a.navigateToCourse({...r,state:void 0})},children:v})]})]})};var R=r(62050);let D=e=>{let{className:t="",course:r,video:s}=e;if(!s||!r)return null;
1let i="public"!==r.state,a=(0,n.useContext)(M.V),[o,c]=(0,n.useState)(null);(0,n.useEffect)(()=>{(async()=>{var e,t;let l=(0,N.nk)(r);if(s.key&&null!==l){let e=await F(s.poster?[{url:s.poster}]:[],s.key,String(l));if(e){c(e);return}}c(null!==(t=null!==(e=s.poster)&&void 0!==e?e:(0,B.lE)(r))&&void 0!==t?t:null)})()},[r]);let u=r.title,d=(0,l.jsxs)("a",{children:[" Zur Lektion ",(0,l.jsx)(z.Z,{className:"svg-lobster w-6 h-6"})," "]});return(0,l.jsxs)("div",{className:"".concat(A," rounded overflow-hidden h-full ").concat(t),onClick:()=>a.navigateToCourse(r,!1,s.key),children:[(0,l.jsx)("div",{className:"".concat(T," cursor-pointer"),children:o&&(0,l.jsx)("img",{src:o,className:"w-full h-full object-cover object-center"})}),(0,l.jsxs)("div",{className:"flex flex-col justify-center p-5",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("strong",{className:"text-xl line-clamp-1",children:i?"Testversion":s.title}),(0,l.jsx)("p",{className:"opacity-50 mt-1 line-clamp-1",children:u})]}),(0,l.jsx)("div",{className:"cursor-pointer mt-6 ".concat(O),onClick:()=>{a.navigateToCourse(r,!1,s.key)},children:d})]})]})};var K=!0,H=e=>{let{courses:t,pageConfig:r,text:v,filterCategories:m,cashcows:p,popularCourses:g,faqs:x=null}=e,b=(0,h.Z)(e=>e.currentUserOverview),[j,w]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e={item_list_id:"C001",item_list_name:"Courses Overview",items:t.map(e=>(0,c.GA)(e,void 0,"C001","Courses Overview"))};(0,c.L9)("view_item_list",e)},[]),(0,n.useEffect)(()=>{(async function(){try{let e=await E.aF.fetchOverview(),r=e=>Object.entries(e).filter(e=>{let[,t]=e;return t.updatedAt}).sort((e,t)=>{let r=new Date(e[1].updatedAt);return new Date(t[1].updatedAt).getTime()-r.getTime()})[0],n=e=>t.find(t=>(0,N.nk)(t)===e),s=e.filter(e=>{let t=n(e.courseId);if(!t||!e.progress)return!1;let l=r(e.progress);if(!l)return!1;let s=(0,B.HU)(t,l[0]);return!(!s||s.title.toLowerCase().includes("trailer"))}).filter((e,t)=>{let r=n(e.courseId);if(!r)return!1;let{latestProgress:l}=(0,U.mo)(r,e);return!!l}).map((e,t)=>{let r=n(e.courseId);return!r||(0,U.vP)(r,e)>95?null:(0,l.jsx)(y.o5,{className:"max-w-card md:max-w-section",children:(0,l.jsx)(V,{progress:e,course:r})},r.id)}).slice(0,6),i=e.map(e=>{let t=(0,U.Xe)(e.progress),r=n(e.courseId);return r?t.map(e=>({course:r,marked:e})):[]}).reduce((e,t)=>e.concat(t),[]),a=[];if((null==s?void 0:s.length)>0&&a.push({title:"Zuletzt gesehen",items:s,type:"lections"}),null==i?void 0:i.length){let e=i.map(e=>{let t=(0,B.HU)(e.course,e.marked.lectionId);return t?(0,l.jsx)(y.o5,{children:(0,l.jsx)(D,{course:e.course,video:t})},e.marked.lectionId):null}).filter(Boolean);a.push({title:"Gemerkte Lektionen",items:e,type:"lections"})}(null==a?void 0:a.length)&&w(a)}catch(e){console.warn(e)}})()},[b]),(0,l.jsxs)(s.Z,{pageConfig:r,children:[(0,l.jsx)(d.PB,{title:"Kochkurse von 7hauben | Online kochen lernen von den Besten"}),(0,l.jsxs)("div",{className:"bg-cream",children:[(0,l.jsx)(i.Z,{style:"dark"}),!!b&&(null==j?void 0:j.length)&&(0,l.jsx)(S,{content:j,showPrice:!1,title:"Jetzt weiterschauen"}),(0,l.jsx)(o.default,{text:v}),(0,l.jsx)(u.Z,{variant:"cream-02",children:(0,l.jsx)(f.Z,{categories:m,courses:t,cashcows:p,popularCourses:g})}),(0,l.jsx)(u.Z,{children:(0,l.jsx)(a.default,{courses:t})}),x&&x.length>0&&(0,l.jsx)(u.Z,{ypadding:"both",variant:"cream-02",children:(0,l.jsx)(R.Z,{faqs:x})})]})]})}},89305:function(e,t,r){"use strict";r.r(t);var l=r(97758);r(80665);var n=r(43442);t.default=e=>{let{courses:t}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"col-span-12 text-center",children:[(0,l.jsxs)("h2",{children:["\xdcber 97 %",(0,l.jsx)("br",{})," Zufrieden\xadheitsrate"]}),(0,l.jsx)("strong",{className:"mt-2 block",children:"Unsere Kundinnen und Kunden sind \xfcberzeugt"})]}),(0,l.jsx)("div",{className:"col-span-12",children:(0,l.jsx)("div",{className:"mt-12",children:(0,l.jsx)(n.h,{courses:t,prependCourse:!0})})})]})}},20181:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return g}});var l=r(97758),n=r(80665),s=r(13462),i=r(22138),a=r(97834),o=r(21592),c=r(20986),u=r(46371),d=r(13105),f=r(37365),h=r(30507),v=r(91175),m=e=>{var t,r;let s,{fullWidth:i=!1,fullHeight:o=!1,fluid:c=!0,viewportWidth:u=!1,coverFit:d=!1,className:m=""}
1=e,p=(0,n.useContext)(a.V),g=(0,f.rH)(),x=v.Z,[b,j]=(0,n.useState)(x.calculatePriceForProduct(null==g?void 0:g.abo,p.isGiftcard.current?0:null===(r=p.currentUserOverview)||void 0===r?void 0:null===(t=r.current)||void 0===t?void 0:t.customAboPrice,p.isGiftcard.current));return(0,n.useEffect)(()=>{var e,t;j(x.calculatePriceForProduct(null==g?void 0:g.abo,p.isGiftcard.current?0:null===(t=p.currentUserOverview)||void 0===t?void 0:null===(e=t.current)||void 0===e?void 0:e.customAboPrice,p.isGiftcard.current))},[g]),(null==b?void 0:b.totalPrice)===99||null==b||b.totalPrice,s="https://7h-strapi.s3.eu-central-1.amazonaws.com/mockup_pass_4505b57f72.png",(0,l.jsx)(h.Z,{url:s,className:m,fullWidth:i,fullHeight:o,fluid:c,viewportWidth:u,coverFit:d})},p=r(55738),g=e=>{let{text:t}=e,r=(0,n.useContext)(a.V),f=(0,p.Z)(e=>e.currentUserOverview);return f||(null==f?void 0:f.abo)===!0?null:(0,l.jsxs)(i.Z,{ypadding:"bottom",className:"mt-12",children:[(0,l.jsxs)("div",{className:"col-span-12 lg:col-span-6 flex justify-center flex-col",children:[(0,l.jsx)("h2",{children:"Ein\xa0Pass. Alle\xa0Kurse."}),(0,l.jsxs)("strong",{children:["Zugang zu allen Kochkursen nur ",(0,l.jsx)(c.Z,{})," ",(0,l.jsx)(d.Z,{})," "]}),(0,l.jsx)(o.Z,{className:"mt-4 max-w-section",markdown:null==t?void 0:t.shPass}),(0,l.jsx)("div",{children:(0,l.jsx)(s.Z,{variant:"primary",className:"mt-6",onClick:()=>{r.handlePassBuy(),(0,u.L9)("startNowAction",{section:"courses_text"})},children:"Jetzt loslegen"})})]}),(0,l.jsx)("div",{className:"hidden lg:block lg:col-span-6 cursor-pointer",children:(0,l.jsx)("a",{onClick:()=>{r.handlePassBuy(),(0,u.L9)("startNowAction",{section:"courses_text"})},children:(0,l.jsx)(m,{fullWidth:!0})})})]})}},27681:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});let l=(0,r(22845).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},56414:function(e,t,r){"use strict";var l=r(80665),n=r(44608),s=["mousedown","touchstart"];t.Z=function(e,t,r){void 0===r&&(r=s);var i=(0,l.useRef)(t);(0,l.useEffect)(function(){i.current=t},[t]),(0,l.useEffect)(function(){for(var t=function(t){var r=e.current;r&&!r.contains(t.target)&&i.current(t)},l=0,s=r;l<s.length;l++){var a=s[l];(0,n.on)(document,a,t)}return function(){for(var e=0,l=r;e<l.length;e++){var s=l[e];(0,n.S1)(document,s,t)}}},[r,e])}},91927:function(e,t,r){"use strict";r.d(t,{ck:function(){return N},fC:function(){return m}});var l=r(80665),n=r(64621),s=r(14024),i=r(15328),a=r(12872),o=r(42460),c=r(81478),u=r(97758),d="ToggleGroup",[f,h]=(0,n.b)(d,[i.Pc]),v=(0,i.Pc)(),m=l.forwardRef((e,t)=>{let{type:r,...l}=e;if("single"===r)return(0,u.jsx)(x,{role:"radiogroup",...l,ref:t});if("multiple"===r)return(0,u.jsx)(b,{role:"toolbar",...l,ref:t});throw Error(`Missing prop \`type\` expected on \`${d}\``)});m.displayName=d;var[p,g]=f(d),x=l.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:s=()=>{},...i}=e,[a,c]=(0,o.T)({prop:r,defaultProp:n??"",onChange:s,caller:d});return(0,u.jsx)(p,{scope:e.__scopeToggleGroup,type:"single",value:l.useMemo(()=>a?[a]:[],[a]),onItemActivate:c,onItemDeactivate:l.useCallback(()=>c(""),[c]),children:(0,u.jsx)(_,{...i,ref:t})})}),b=l.forwardRef((e,t)=>{let{value:r,defaultValue:n,onValueChange:s=()=>{},...i}=e,[a,c]=(0,o.T)({prop:r,defaultProp:n??[],onChange:s,caller:d}),f=l.useCallback(e=>c((t=[])=>[...t,e]),[c]),h=l.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,u.jsx)(p,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:f,onItemDeactivate:h,children:(0,u.jsx)(_,{...i,ref:t})})});m.displayName=d;var[j,w]=f(d),_=l.forwardRef((e,t)=>{let{__scopeToggleGroup:r,disabled:l=!1,rovingFocus:n=!0,orientation:a,dir:o,loop:d=!0,...f}=e,h=v(r),m=(0,c.gm)(o),p={dir:m,...f};return(0,u.jsx)(j,{scope:r,rovingFocus:n,disabled:l,children:n?(0,u.jsx)(i.fC,{asChild:!0,...h,orientation:a,dir:m,loop:d,children:(0,u.jsx)(s.WV.div,{...p,ref:t})}):(0,u.jsx)(s.WV.div,{...p,ref:t})})}),y="ToggleGroupItem",N=l.forwardRef((e,t)=>{let r=g(y,e.__scopeToggleGroup),n=w(y,e.__scopeToggleGroup),s=v(e.__scopeToggleGroup),a=r.value.includes(e.value),o=n.disabled||e.disabled,c={...e,pressed:a,disabled:o},d=l.useRef(null);return n.rovingFocus?(0,u.jsx)(i.ck,{asChild:!0,...s,focusable:!o,active:a,ref:d,children:(0,u.jsx)(k,{...c,ref:t})}):(0,u.jsx)(k,{...c,ref:t})});N.displayName=y;var k=l.forwardRef((e,t)=>
1{let{__scopeToggleGroup:r,value:l,...n}=e,s=g(y,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},o="single"===s.type?i:void 0;return(0,u.jsx)(a.Z,{...o,...n,ref:t,onPressedChange:e=>{e?s.onItemActivate(l):s.onItemDeactivate(l)}})})}},function(e){e.O(0,[2534,2376,2667,2154,4427,4032,6741,2951,139,4451,1548,5443,6403,4966,2921,5328,3035,1085,9210,9923,4762,9571,3494,9896,1151,3296,178,3626,3729,2888,9774,179],function(){return e(e.s=66269)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.