1(this["webpackJsonpchef2.0"]=this["webpackJsonpchef2.0"]||[]).push([[25],{188:function(e,t,a){"use strict";a.d(t,"g",(function(){return o})),a.d(t,"m",(function(){return i})),a.d(t,"k",(function(){return s})),a.d(t,"l",(function(){return l})),a.d(t,"n",(function(){return d})),a.d(t,"i",(function(){return u})),a.d(t,"h",(function(){return b})),a.d(t,"a",(function(){return j})),a.d(t,"o",(function(){return p})),a.d(t,"j",(function(){return m})),a.d(t,"b",(function(){return h})),a.d(t,"c",(function(){return g})),a.d(t,"f",(function(){return x})),a.d(t,"d",(function(){return f})),a.d(t,"e",(function(){return O}));var n=a(14),r=a.n(n),c=a(63);function o(e,t,a){if(!t)return;const n=document.createElement("script");n.setAttribute("async",""),n.setAttribute("id",a),n.src=e,t.appendChild(n)}function i(e,t){return e.replace("${variant}",t||500).replace("${channel}","web")}function s(e,t){return parseInt(e/100*t)}function l(e,t,a){const n=r.a.duration(e,"seconds"),o=n.hours(),i=n.minutes(),s=n.days();return t?a?[{value:s.toString().padStart(2,"0"),label:c.a.t("Giorni")},{value:o.toString().padStart(2,"0"),label:c.a.t("Ore")},{value:n.minutes().toString().padStart(2,"0"),label:c.a.t("Minuti")},{value:n.seconds().toString().padStart(2,"0"),label:c.a.t("Secondi")}]:s.toString().padStart(2,"0")+c.a.t("g")+" : "+o.toString().padStart(2,"0")+c.a.t("h")+" : "+n.minutes().toString().padStart(2,"0")+c.a.t("m")+" : "+n.seconds().toString().padStart(2,"0")+c.a.t("s"):s||o?(24*s+o).toString().padStart(2,"0")+":"+n.minutes().toString().padStart(2,"0")+" "+c.a.t("ore"):i.toString().padStart(2,"0")+" min"}function d(e,t){const a=[];for(let n=0;n<e.length;n+=t){const r=e.slice(n,n+t);a.push(r)}return a}function u(e){for(var t=0,a=parseInt(e,10)||0;a>=1024&&++t;)a/=1024;return a.toFixed(a<10&&t>0?1:0)+["bytes","kb","mb","gb"][t]}function b(e){for(var t="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<e;n++)t+=a.charAt(Math.floor(62*Math.random()));return t}function j(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}function p(e){let t=[...e.trainers_list];return(e.trainers_list.length>1?e.trainers_list.reduce(((e,a,n)=>{const r=t.findIndex((e=>e.last_name===a.last_name&&e.first_name!==a.first_name));if(r>-1){const n=a.first_name+" "+c.a.t("e")+" "+t[r].first_name+" "+a.last_name;t=t.filter((e=>e.last_name!==a.last_name)),e.push(n)}else t.find((e=>e.last_name===a.last_name))&&e.push(a.last_name);return e}),[]):[e.trainers_list.length?e.trainers_list[0].first_name+" "+e.trainers_list[0].last_name:""]).join(", ")}function m(e,t){return e.reduce(((e,t)=>(t.items.forEach((t=>{"d"===t.type?"p"!==t.amount_type?(e.total-=t.amount,e.annuaryTotal-=s(e.annuaryTotal,x(e.subtotal,t.amount)+100)):(e.total-=s(e.total,t.amount),e.annuaryTotal-=s(e.annuaryTotal,t.amount)):(e.total+=t.amount,e.subtotal+=t.amount)})),e)),{total:t.amount,subtotal:t.amount,annuaryTotal:t.amount_yearbook})}function h(e,t){for(var a=[],n=0;n<e.length;n+=t)a.push(e.slice(n,n+t));return a}function g(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const t=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(".").map((e=>Number(e)||0)),a=String(e).split(".").map((e=>Number(e)||0)),n=Math.max(t.length,a.length);for(let r=0;r<n;r++){const e=t[r]||0,n=a[r]||0;if(e>n)return 1;if(e<n)return-1}return 0}function x(e,t){return 0===e?t>0?1/0:t<0?-1/0:0:(t-e)/e*100}function f(e){if(null===e||void 0===e||Number.isNaN(Number(e)))return null;const t=Number(e);return"\u20ac ".concat((t/100).toFixed(2).replace(".",","))}function O(e){return e&&null!==e.value&&void 0!==e.value?e.unit?"".concat(e.value," ").concat(e.unit):"".concat(e.value):"-"}},191:function(e,t,a){"use strict";a.d(t,"a",(function(){return b})),a.d(t,"b",(function(){return p})),a.d(t,"c",(function(){return m}));var n=a(0),r=a.n(n),c=a(5),o=a(79),i=a(645),s=a(717),l=a(722),d=a(1);const u=Object(i.a)(l.a)((e=>{let{theme:t}=e;return{textTransform:"none",fontWeight:"bold ",borderRadius:"14px",padding:"10px 24px","&.MuiButton-textPrimary":{color:"#fff",backgroundColor:"#E90133","&.MuiLoadingButton-loading":{color:"transparent"},"& .MuiLoadingButton-loadingIndicator":{color:"#fff"},"&.Mui-disabled":{backgroundColor:"#bcbcbc",opacity:1,color:"#dedede"}},"&.MuiButton-textSecondary":{backgroundColor:"#F5F5F5",color:"#26292D","&.MuiLoadingButton-loading":{color:"transparent"},"& .MuiLoadingButton-loadingIndicator":{color:"#26292D"}},"&:hover":{textDecoration:"none"},"&.Mui-disabled":{opacity:.7},"&.MuiButton-sizeSmall":{padding:"4px 10px",borderRadius:"10px"}}})),b=r.a.forwardRef((function(e,t){return Object(d.jsx)(u,{...e,ref:t})})),j=Object(i.a)(s.a)((e=>{let{theme:t}=e;return{backgroundColor:"#41474e",fontSize:"2rem",padding:"21px","&:hover":{backgroundColor:"#41474e"},"&.Mui-disabled":{backgroundColor:"#41474e",color:"inherit",opacity:.7},"&.MuiIconButton-sizeSmall":{padding:"7px",fontSize:"1.5rem"}}})),p=r.a.forwardRef((function(e,t){return Object(d.jsx)(j,{...e,ref:t})}));function m(e){const{children:t,socialCallBack:a,provider:n,setLoading:i,...s}=e,{i18n:l}=Object(o.a)(),u=Object(c.i)(),j=(r.a.useRef(null),()=>{if(i(!0),"fb"===n&&window.FB.login((e=>{e.authResponse?a(e.authResponse.accessToken):i(!1)}),{scope:"email,public_profile",return_scopes:!0}),"google"===n){localStorage.setItem("return_url",u.pathname+u.search);const e="https://accounts.google.com/o/oauth2/v2/auth?response_type=id_token&client_id=".concat("883622940720-obgi8vlav7j5slpdn2nabt5ah2g5l0gf.apps.googleusercontent.com","&redirect_uri=").concat("https://www.academia.tv/callback/google").concat(u.state?"&state="+encodeURIComponent(JSON.stringify({to:u.state.from.pathname||u.state.from})):"","&scope=openid%20email%20profile&nonce=").concat(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16;const t=new Uint8Array(e);return window.crypto.getRandomValues(t),Array.from(t,(e=>e.toString(16).padStart(2,"0"))).join("")}());window.location.href=e}"apple"===n&&window.AppleID.auth.signIn()});return r.a.useEffect((()=>
1{if("apple"===n)return window.AppleID.auth.init({clientId:"com.chefincamicia.academia.web",scope:"name email",state:"IT",redirectURI:"https://www.academia.tv/login/apple",usePopup:!0}),document.addEventListener("AppleIDSignInOnSuccess",(e=>{a(e.detail.authorization.id_token)})),document.addEventListener("AppleIDSignInOnFailure",(e=>{i(!1)})),()=>{document.removeEventListener("AppleIDSignInOnSuccess",(e=>{a(e.detail.authorization.id_token)})),document.removeEventListener("AppleIDSignInOnFailure",(e=>{i(!1)}))}}),[]),r.a.useEffect((()=>{if("google"===n&&u.hash){const e=new URLSearchParams(u.hash.substring(1));if(e.has("id_token")){i(!0);const t=e.get("id_token");a(t)}}}),[u.hash]),Object(d.jsx)(b,{onClick:()=>j(),...s,children:t})}},192:function(e,t,a){"use strict";var n=a(0),r=a.n(n),c=a(56),o=a(645),i=a(188),s=a(1);const l=Object(o.a)("img")((e=>{let{theme:t}=e;return{}}));t.a=e=>{const{src:t,useSet:a,...n}=e,o=Object(c.a)(),d=r.a.useRef(),[u,b]=r.a.useState();return r.a.useLayoutEffect((()=>{let e;a&&(e={srcSet:["".concat(Object(i.m)(t,2e3)," 2000w"),"".concat(Object(i.m)(t,1200)," 1200w"),"".concat(Object(i.m)(t,800)," 800w"),"".concat(Object(i.m)(t,600)," 600w"),"".concat(Object(i.m)(t,300)," 300w"),"".concat(Object(i.m)(t,100)," 100w")].join(", "),...!!a.sizes&&{sizes:a.sizes.reduce(((e,t)=>(1===t.length?e.push(t[0]):Array.isArray(t[1])?e.push("".concat(o.breakpoints[t[0]](t[1][0],t[1][1]).replace("@media ","")," ").concat(t[2])):e.push("".concat(o.breakpoints[t[0]](t[1]).replace("@media ","")," ").concat(t[2])),e)),[]).join(", ")}}),b({loading:"lazy",src:Object(i.m)(t,d.current.parentNode.clientWidth),...e})}),[t]),Object(s.jsx)(l,{ref:d,...n,...u})}},195:function(e,t,a){"use strict";var n=a(0),r=a.n(n),c=a(5),o=a(79);a(63);t.a=()=>{const{t:e,i18n:t}=Object(o.a)(),{pathname:a}=Object(c.i)(),[n,i]=r.a.useState(!1),[s,l]=r.a.useState(!1),[d,u]=r.a.useState(!1),[b,j]=r.a.useState(!1);return r.a.useEffect((()=>{i(Boolean(Object(c.g)(a,{path:["/".concat(t.language,"/").concat(e("scuola")),"/".concat(t.language,"/").concat(e("scuola"),"/:classSlug"),"/".concat(t.language,"/").concat(e("scuola"),"/:classSlug/").concat(e("moduli")),"/".concat(t.language,"/").concat(e("scuola"),"/:classSlug/").concat(e("moduli"),"/:moduleSlug"),"/".concat(t.language,"/").concat(e("scuola"),"/:classSlug/").concat(e("moduli"),"/:moduleSlug/").concat(e("lezioni"),"/:chapterSlug"),"/".concat(t.language,"/").concat(e("scuola"),"/:classSlug/").concat(e("moduli"),"/:moduleSlug/").concat(e("lezioni"),"/:chapterSlug/:test")]})))}),[a]),r.a.useEffect((()=>{l(Boolean(Object(c.g)(a,{path:["/".concat(t.language,"/").concat(e("scopri"),"/").concat(e("benessere")),"/".concat(t.language,"/").concat(e("benessere")),"/".concat(t.language,"/").concat(e("benessere"),"/:classSlug"),"/".concat(t.language,"/").concat(e("benessere"),"/:classSlug/").concat(e("moduli")),"/".concat(t.language,"/").concat(e("benessere"),"/:classSlug/").concat(e("moduli"),"/:moduleSlug"),"/".concat(t.language,"/").concat(e("benessere"),"/:classSlug/").concat(e("moduli"),"/:moduleSlug/").concat(e("lezioni"),"/:chapterSlug"),"/".concat(t.language,"/").concat(e("benessere"),"/:classSlug/").concat(e("moduli"),"/:moduleSlug/").concat(e("lezioni"),"/:chapterSlug/:test")]})))}),[a]),r.a.useEffect((()=>{u(Boolean(Object(c.g)(a,{path:["/".concat(t.language,"/").concat(e("horeca")),"/".concat(t.language,"/").concat(e("horeca-brand"),"/:brandSlug"),"/".concat(t.language,"/").concat(e("horeca"),"/:courseSlug"),"/".concat(t.language,"/").concat(e("horeca"),"/:courseSlug/").concat(e("lezioni"),"/:lessonSlug"),"/".concat(t.language,"/").concat(e("horeca"),"/:courseSlug/").concat(e("lezioni"),"/:lessonSlug/:test")]})))}),[a]),r.a.useEffect((()=>{j((()=>s?{key:"wellness",translation:e("benessere"),fullTranslation:e("benessere"),layoutColor:"#F3F1EB"}:n?{key:"basics",translation:e("scuola"),fullTranslation:e("La Scuola"),layoutColor:"#121416"}:!!d&&{key:"horeca",translation:e("horeca"),fullTranslation:e("Horeca"),layoutColor:"#121416"}))}),[s,n,d]),{isBasic:n,isWellness:s,isHoreca:d,packageType:b}}},196:function(e,t,a){"use strict";a.d(t,"a",(function(){return O}));var n=a(0),r=a.n(n),c=a(714),o=a(725),i=a(726),s=a(727),l=a(111),d=a(720),u=a(717),b=a(202),j=a.n(b),p=a(656),m=a(1);const h=Object(c.a)({root:{"& .MuiDialog-paper":{backgroundColor:"#26292D",borderRadius:10},"&.wellness":{"& .MuiDialog-paper":{backgroundColor:"#fff"}}}})(o.a),g=Object(c.a)({root:{padding:0}})(i.a),x=Object(c.a)((e=>({root:{padding:0},truncate:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingRight:"30px"},closeButton:{position:"absolute",right:e.spacing(1),top:e.spacing(1),color:e.palette.grey[500]}})))((e=>{const{children:t,classes:a,onClose:n,...r}=e;return Object(m.jsxs)(s.a,{sx:{minHeight:"60px",p:0},...r,children:[t&&Object(m.jsx)(l.a,{p:2.5,pr:6,children:Object(m.jsx)(d.a,{component:"div",className:a.truncate,variant:"body1",children:Object(m.jsx)("b",{children:t})})}),Boolean(n)&&Object(m.jsx)(u.a,{"aria-label":"close",className:a.closeButton,onClick:()=>{n()},size:"large",children:Object(m.jsx)(j.a,{})})]})})),f=r.a.forwardRef((function(e,t){return Object(m.jsx)(p.a,{direction:"up",ref:t,...e})}));function O(e){const{children:t,open:a,title:n,fullScreen:r,handleClose:c,hideTitle:o,...i}=e;return Object(m.jsxs)(h,{fullScreen:r||!1,open:a,onClose:()=>
1c(),TransitionComponent:f,...i,children:[!o&&Object(m.jsx)(x,{onClose:()=>c(),children:n}),Object(m.jsx)(g,{children:t})]})}},198:function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));a(0);var n=a(645),r=a(701),c=a(463),o=a(734),i=a(688),s=a(1);const l=Object(n.a)(r.a)((e=>{let{theme:t}=e;return{fontSize:18,color:"#B1B8BE",fontWeight:"bold","&.Mui-focused":{color:"#B1B8BE"}}})),d=Object(n.a)(c.c)((e=>{let{theme:t}=e;return{borderRadius:10,backgroundColor:"#2F3337",border:"1px solid #42474d",fontSize:16,padding:"10px 12px",color:"#fff",fontFamily:"Raleway",boxSizing:"border-box",height:43,"label + &":{marginTop:t.spacing(3)},"&.MuiAutocomplete-inputRoot":{padding:0,paddingLeft:12},"& .MuiAutocomplete-popupIndicator":{color:"#B1B8BE"},"& .MuiInputBase-input":{position:"relative","&.Mui-disabled":{WebkitTextFillColor:"gray"}},"& .MuiButton-contained":{}}}));function u(e){const{fullWidth:t,label:a,InputProps:n,inputProps:r,InputLabelProps:c,...i}=e;return Object(s.jsxs)(o.a,{fullWidth:t,variant:"standard",children:[Boolean(a)&&Object(s.jsx)(l,{...c,shrink:!0,children:a}),Object(s.jsx)(d,{...i,...n,inputProps:r})]})}const b=Object(n.a)(i.a)((e=>{let{theme:t}=e;return{"& label, & label.Mui-focused, ":{color:"#b1b8be",fontSize:"0.9rem"},"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{borderColor:"#42474d",borderWidth:"1.2px"},"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#b1b8be",borderWidth:"1.2px"},"&.light":{"& label, & label.Mui-focused, ":{color:"#B2B8BD"},"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline":{borderColor:"#B2B8BD",borderWidth:"1.5px"},"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"#B2B8BD",borderWidth:"1.5px"},"& .MuiOutlinedInput-root":{backgroundColor:"#FFF"},"& .MuiOutlinedInput-input":{color:t.palette.dark.main}},"& .MuiOutlinedInput-root":{borderRadius:"10px",backgroundColor:"#26292D"},"& .MuiOutlinedInput-input":{"&.MuiInputBase-inputSizeSmall":{padding:"10px"},padding:"15px",color:"#fff"},"& .MuiInputLabel-outlined":{transform:"translate(14px, 17px) scale(1)"},"& .MuiInputLabel-outlined.MuiInputLabel-shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}));t.b=b},201:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n,r,c=a(0);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},o.apply(null,arguments)}function i(e,t){let{title:a,titleId:i,...s}=e;return c.createElement("svg",o({id:"Livello_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 346.1 61.3",style:{enableBackground:"new 0 0 346.1 61.3"},xmlSpace:"preserve",ref:t,"aria-labelledby":i},s),a?c.createElement("title",{id:i},a):null,n||(n=c.createElement("style",{type:"text/css"},"\n\t.st0{fill:currentColor;}\n")),r||(r=c.createElement("g",null,c.createElement("path",{className:"st0",d:"M42.9,53.5c-4.3-4.7-6.7-10.9-6.7-17.9c0-6.9,2.6-13.2,6.9-17.9s10.1-7.4,16.6-7.4c1.6,0,3.1,0.1,4.7,0.5h0.1 l-1.6,7.9h-0.1c-1-0.3-2.1-0.4-3.2-0.4c-4.3,0-8.4,1.8-11.3,5c-3.1,3.4-4.7,7.4-4.7,12.2c0,9.6,7,17,15.9,17c1.2,0,2.2-0.1,3.2-0.4 h0.1l1.6,7.9h-0.1c-1.7,0.4-3.2,0.5-4.8,0.5C53,60.8,47,58.2,42.9,53.5z"}),c.createElement("path",{className:"st0",d:"M83.3,10.8h3.6V11l15.8,49.5h-8v-0.1l-2.1-6.9H77.7l-2.1,7h-7.9v-0.3L83.3,10.8z M85.1,29.2l-5,15.9h10.1 L85.1,29.2z"}),c.createElement("path",{className:"st0",d:"M16.2,10.8h3.6V11l15.8,49.5h-8v-0.1l-2.1-6.9H10.6l-2.1,7H0.7v-0.3L16.2,10.8z M18,29.2l-4.9,15.9h10.1 L18,29.2z"}),c.createElement("path",{className:"st0",d:"M107.9,10.8h7c6.6,0.1,12.6,2.7,16.8,7.2c4.3,4.4,6.7,10.6,6.7,17.5S136,48.5,131.7,53 c-4.3,4.5-10.1,7.2-16.7,7.4h-7.2V10.8H107.9z M130.9,35.5c0-9.2-6.5-16.1-15.5-16.4v33C124.3,51.7,130.9,44.6,130.9,35.5z"}),c.createElement("path",{className:"st0",d:"M142.8,10.8h23.9v8.3h-16.3v15.8h13.9v8.3h-13.9v8.9h16.4v8.3h-23.9V10.8H142.8z M150.2,0.6h6.3l2.1,7.2h-4.7 L150.2,0.6z"}),c.createElement("path",{className:"st0",d:"M207.7,10.8h3v49.6h-7.5V36.3l-11,19.2l-0.1-0.3l-11-18.9v24.1h-7.5V10.8h3V11L192,39.3L207.7,10.8z"}),c.createElement("path",{className:"st0",d:"M218,60.4V10.8h7.5v49.6H218z"}),c.createElement("path",{className:"st0",d:"M246,10.8h3.6V11l15.8,49.5h-8v-0.1l-2.1-6.9h-14.9l-2.1,7h-7.9v-0.3L246,10.8z M247.9,29.2l-5,15.9H253 L247.9,29.2z"}),c.createElement("polygon",{className:"st0",points:"289.9,60.4 289.9,19.9 281.5,19.9 281.5,10.8 305.7,10.8 305.7,19.9 297.4,19.9 297.4,60.4 "}),c.createElement("polygon",{className:"st0",points:"325.7,60.4 312.1,11 320,11 328.5,41.9 336.7,11 344.6,11 331.4,60.4 "}),c.createElement("rect",{x:274,y:52.9,className:"st0",width:7.5,height:7.5}))))}const s=c.forwardRef(i);a.p},204:function(e,t,a){"use strict";a.d(t,"a",(function(){return u}));a(0);var n=a(645),r=a(736),c=a(690),o=a(1);const i=Object(n.a)("span")((e=>{let{theme:t}=e;return{borderRadius:11,width:28,height:28,backgroundColor:"#555C64",display:"flex",justifyContent:"center",alignItems:"center"}})),s=Object(n.a)(i)({"&:before":{display:"block",width:"45%",height:"45%",backgroundColor:"#fff",borderRadius:"30%",content:'""'}}),l=Object(n.a)(c.a)({"&.small":{"& span:not(.MuiTouchRipple-root)":{width:20,height:20,borderRadius:5}},"&.MuiCheckbox-colorSecondary":{"& span:not(.MuiTouchRipple-root)":{backgroundColor:"#fff",border:"1.2px solid #41474E"},"&.Mui-checked":{"& span:not(.MuiTouchRipple-root)":{"&:before":{backgroundColor:"#41474E"}}}},"&.wellness":{"& .unchecked":{backgroundColor:"#E6E4DC"},"& .checked":{backgroundColor:"#E6E4DC","&:before":{backgroundColor:"#26292D"}}}}),d=Object(n.a)(r.a)((e=>{let{theme:t}=e;return{}}));function u(e){return Object(o.jsx)(d,{control:Object(o.jsx)(l,{c
1olor:"default",icon:Object(o.jsx)(i,{className:"unchecked"}),checkedIcon:Object(o.jsx)(s,{className:"checked"}),...e}),label:e.label||"",variant:"default"})}},205:function(e,t,a){"use strict";t.a={it:"https://www.iubenda.com/termini-e-condizioni/39756041",en:"https://www.iubenda.com/terms-and-conditions/70243759",es:"https://www.iubenda.com/condiciones-de-uso/56970618"}},206:function(e,t,a){"use strict";t.a={it:"https://www.iubenda.com/privacy-policy/39756041",en:"https://www.iubenda.com/privacy-policy/70243759",es:"https://www.iubenda.com/privacy-policy/56970618"}},207:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n,r=a(0);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(null,arguments)}function o(e,t){let{title:a,titleId:o,...i}=e;return r.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":o},i),a?r.createElement("title",{id:o},a):null,n||(n=r.createElement("g",{id:"Raggruppa_5054","data-name":"Raggruppa 5054",transform:"translate(-89 -677)"},r.createElement("rect",{id:"Rettangolo_2144","data-name":"Rettangolo 2144",width:24,height:24,transform:"translate(89 677)",fill:"none"}),r.createElement("g",{id:"Raggruppa_5038","data-name":"Raggruppa 5038",transform:"translate(89.641 679)"},r.createElement("path",{id:"Tracciato_9014","data-name":"Tracciato 9014",d:"M72.65,20.281a.714.714,0,0,1-.682-.5c-.585-1.829-1.4-5.312-2.437-10.361q-.808.745-1.608,1.5a.717.717,0,0,1-.984-1.042c2.109-1.989,4.27-3.923,6.361-5.793C74.547,2.97,75.8,1.854,77.04.719h0a.618.618,0,0,1,.075-.074A1.434,1.434,0,0,1,79.1.74c1.133,1.025,2.265,2.034,3.4,3.042,2.206,1.966,4.488,4,6.708,6.1a.716.716,0,1,1-.984,1.042q-.87-.822-1.752-1.632c-.05.253-.1.519-.155.8-.616,3.161-1.46,7.489-2.166,9.7a.755.755,0,0,1-.686.5s-2.315-.014-3.592-.016a.716.716,0,0,1-.715-.712l-.026-4.088H76.913l.047,4.075a.717.717,0,0,1-.716.725c-1.547,0-3.2.009-3.577.017H72.65m7.935-1.448c.818,0,1.772.008,2.352.011.65-2.249,1.408-6.138,1.973-9.035.119-.61.228-1.17.324-1.652C84,7.037,82.76,5.934,81.546,4.851Q79.833,3.326,78.117,1.78a.709.709,0,0,1-.057-.057c-.016.016-.038.04-.055.055-1.249,1.138-2.5,2.257-3.75,3.375-1.149,1.028-2.321,2.076-3.491,3.14,1.012,5,1.823,8.545,2.413,10.548.561-.005,1.433-.009,2.342-.011l-.047-4.075a.717.717,0,0,1,.716-.725h3.653a.717.717,0,0,1,.716.712Z",transform:"translate(-66.715 -0.29)",fill:"currentColor"})))))}const i=r.forwardRef(o);a.p},208:function(e,t,a){"use strict";a.d(t,"a",(function(){return p}));var n=a(0),r=a.n(n),c=a(645),o=a(111),i=a(649),s=a(720),l=a(188),d=a(14),u=a.n(d),b=a(1);const j=Object(c.a)(o.a)((e=>{let{theme:t}=e;return{backgroundColor:"rgba(234, 0, 51, 0.55)",borderRadius:6,width:64,padding:t.spacing(1,0),textAlign:"center"}}));function p(e){const{end:t,onEnded:a,type:n,variantProps:c,...d}=e,p=r.a.useRef(),m="22:00",[h,g]=r.a.useState(u()(m,"HH:mm").diff(u()(),"seconds")<=0?u()(m,"HH:mm").add(1,"days"):u()(m,"HH:mm")),[x,f]=r.a.useState(h.diff(u()(),"seconds"));return r.a.useEffect((()=>{x<=0&&(a&&t===u()().format("DD-MM-YYYY")&&a(),g(u()(m,"HH:mm").add(1,"days")))}),[x]),r.a.useEffect((()=>{f(h.diff(u()(),"seconds"))}),[h]),r.a.useEffect((()=>(p.current=setInterval((()=>{f((e=>e-1))}),1e3),()=>{clearInterval(p.current)})),[]),n&&"variant"===n?Object(b.jsx)(i.a,{direction:"row",spacing:3,children:Object(l.l)(x,!0,!0).map((e=>Object(b.jsxs)(o.a,{children:[Object(b.jsx)(j,{...!!c&&{...c.timeContainerProps},children:Object(b.jsx)(s.a,{variant:"h6",color:"text.primary",...!!c&&{...c.valueProps},children:Object(b.jsx)("b",{children:e.value})})}),Object(b.jsx)(s.a,{align:"center",color:"text.primary",sx:{fontSize:10,mt:1},...!!c&&{...c.labelProps},children:e.label})]},e.value+e.label)))}):Object(b.jsx)(s.a,{...d,children:Object(l.l)(x,!0)})}},209:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n,r=a(0);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(null,arguments)}function o(e,t){let{title:a,titleId:o,...i}=e;return r.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:24,height:22.4,viewBox:"0 0 24 22.4",ref:t,"aria-labelledby":o},i),a?r.createElement("title",{id:o},a):null,n||(n=r.createElement("g",{id:"Raggruppa_6481","data-name":"Raggruppa 6481",transform:"translate(-0.813 -0.758)"},r.createElement("path",{id:"Poligono_5","data-name":"Poligono 5",d:"M9.315.854a.3.3,0,0,1,.569,0l2.068,6.2a.3.3,0,0,0,.19.19l6.2,2.068a.3.3,0,0,1,0,.569l-6.2,2.068a.3.3,0,0,0-.19.19l-2.068,6.2a.3.3,0,0,1-.569,0l-2.068-6.2a.3.3,0,0,0-.19-.19L.854,9.885a.3.3,0,0,1,0-.569l6.2-2.068a.3.3,0,0,0,.19-.19Z",transform:"translate(0.813 0.758)",fill:"currentColor"}),r.createElement("path",{id:"Poligono_6","data-name":"Poligono 6",d:"M5.315.854a.3.3,0,0,1,.569,0l1.068,3.2a.3.3,0,0,0,.19.19l3.2,1.068a.3.3,0,0,1,0,.569l-3.2,1.068a.3.3,0,0,0-.19.19l-1.068,3.2a.3.3,0,0,1-.569,0l-1.068-3.2a.3.3,0,0,0-.19-.19L.854,5.885a.3.3,0,0,1,0-.569l3.2-1.068a.3.3,0,0,0,.19-.19Z",transform:"translate(13.613 11.958)",fill:"currentColor"}))))}const i=r.forwardRef(o);a.p},211:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n,r,c=a(0);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},o.apply(null,arguments)}function i(e,t){let{title:a,titleId:i,...s}=e;return c.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},s),a?c.createElement("title",{id:i},a):null,n||(n=c.createElement("defs",null,c.createElement("clipPath",{id:"clip-path"},c.createElement("rect",{id:"Rettangolo_2483","data-name":"Rettangolo 2483",width:24,height:20.877})))),r||(r=c.createElement("g",{id:"Raggruppa_6039","data-name":"Raggruppa 6039",transform:"translate(-528 -2795)"},c.createElement("rect",{id:"Rettangolo_2484","data-name":"Rettangolo 2484",width:24,height:24,transform:"translate(528 2795)",fill:"none"}),c.createElement("g",{id:"Raggruppa_6037","data-name":"Raggruppa 6037",transform:"translate(528 2796.562)"},c.createElement("g",{id:"Raggruppa_6037-2","data-name":"Raggruppa 6037",transform:"translate(0 0)",clipPath:"url(#clip-path)"},c.createElement("path",{id:"Tracciato_9180","data-name":"Tracciato 9180",d:"M17.815,4.589A2.553,2.553,0,1,0,13.8,3.213,10.48,10.48,0,0,0,2.571,10.208c-.246.721-.48,1.4,9.935,4.975,5.453,1.871,7.818,2.439,8.9,2.439.779,0,.881-.3.99-.614A10.5,10.5,0,0,0,17.815,4.589m-6.1,2.991a4.376,4.376,0,0,0-3.387,2.664A.783.783,0,1,1,6.9,9.586a5.918,5.918,0,0,1,4.7-3.569.783.783,0,0,1,.107,1.562m3.625-5.343h0a.977.977,0,0,1,.5-.568.99.99,0,1,1-.5.568",transform:"translate(0.111 0)"}),c.createElement("path",{id:"Tracciato_9181","data-name":"Tracciato 9181",d:"M12,20.082A109.064,109.064,0,0,1,.7,19.5a.783.783,0,0,1-.7-.859.8.8,0,0,1,.861-.7,107.533,107.533,0,0,0,22.27,0,.791.791,0,0,1,.861.7.783.783,0,0,1-.7.859,109.064,109.064,0,0,1-11.3.586",transform:"translate(0 0.796)"}))))))}const s=c.forwardRef(i);a.p},212:function(e,t,a){"use strict";a.d(t,"a",(function(){return Je}));var n=a(0),r=a.n(n),c=a(79),o=a(5),i=a(275),s=a(20),l=a(35),d=a(55),u=a(269),b=a(699),j=a(692),p=a(718),m=a(111),h=a(37),g=a(1);const x=r.a.forwardRef((function(e,t){return Object(g.jsx)(j.a,{elevation:6,ref:t,variant:"filled",...e})}));function f(){const{config:e}=r.a.useContext(h.a),{t:t}=Object(c.a)(),{layoutState:a,showError:n}=r.a.useContext(d.a),o={"NOT-AUTHORIZED":t("Sessione utente non valida o scaduta"),"UPGRADE-NEEDED":t("Per utilizzare questa funzionalit\xe0 devi comprare il corso o un abbonamento"),"DUPLICATED[QUIZ]":t("Il quiz per la lezione \xe8 gi\xe0 stato sostenuto"),"DUPLICATED[EMAIL]":t("L'indirizzo email r
1isulta gi\xe0 utilizzato"),"DUPLICATED[EXT_PROFILES]":t("Utente gi\xe0 registrato"),"INVALID[CREDENTIALS]":t("Utente non trovato"),"INVALID[TOKEN]":t("Credenziali non valide"),"INVALID[USERNAME]":t("Campo 'username' non valido"),"INVALID[PASSWORD]":e.password_policy_txt,"INVALID[EMAIL]":t("Email non valida"),"INVALID-GC[SENDER]":t("Campo 'email' mittente non valido"),"INVALID-GC[RECIPIENT]":t("Campo 'email' destinatario non valido"),"INVALID-GC[TOKEN]":t("Codice non valido"),"MISSING[EMAIL]":t("Campo 'email' mancante"),"MISSING[FIRST_NAME]":t("Campo 'nome' mancante"),"MISSING[LAST_NAME]":t("Campo 'cognome' mancante"),"MISSING[SENDER]":t("Campo 'email' mancante"),"NOT-FOUND[TOKEN]":t("Il codice fornito non \xe8 stato trovato"),"NOT-FOUND[REFERRAL_ID]":t("L'utente che ti ha invitato non \xe8 stato trovato"),"Devi accettare le Privacy Policy per proseguire!":t("Devi accettare le Privacy Policy per proseguire!"),"activate-account":t("E-mail da verificare. Ti abbiamo inviato una mail per attivare il tuo account: controlla la tua casella e clicca sul pulsante \u201cAttiva\u201d"),"Si \xe8 verificato un errore durante il caricamento, si prega di riprovare.":t("Si \xe8 verificato un errore durante il caricamento, si prega di riprovare.")};return Object(g.jsx)(b.a,{open:!1!==a.error,autoHideDuration:6e3,onClose:()=>n(!1),children:Object(g.jsxs)(x,{onClose:()=>n(!1),severity:"error",children:[a.error&&a.error.error_message in o?o[a.error.error_message]:t("Ops! Qualcosa \xe8 andato storto..."),a.error&&a.error.action&&Object(g.jsx)(m.a,{mt:1,children:Object(g.jsx)(p.a,{onClick:a.error.action.onClick,sx:{mt:1},color:"secondary",variant:"contained",size:"small",children:Object(g.jsx)("b",{children:a.error.action.label})})})]})})}const O=r.a.forwardRef((function(e,t){return Object(g.jsx)(j.a,{elevation:6,ref:t,variant:"filled",...e})}));function v(){const{layoutState:e,showSuccess:t}=r.a.useContext(d.a);return Object(g.jsx)(b.a,{open:!1!==e.success,autoHideDuration:6e3,onClose:()=>t(!1),children:Object(g.jsx)(O,{onClose:()=>t(!1),severity:"success",children:e.success?e.success.message:""})})}var w=a(645),y=a(28),S=a(205),k=a(206),C=a(719),_=a(705),A=a(716),I=a(720),E=a(721),z=a(700),R=a(646),M=a(647),T=a(648),B=a(201),P=a.p+"static/media/youtube.deabf4eb.svg",
1N=a.p+"static/media/instagram.41f1ea4c.svg",L=a.p+"static/media/facebook.7aec6fb2.svg",D=a.p+"static/media/linkedin.4fbd71db.svg",W=a.p+"static/media/telegram.39b6a7f2.svg",F=a(218),G=a(219),V=a(14),H=a.n(V);const q=Object(w.a)(m.a)((e=>{let{theme:t}=e;return{backgroundColor:"#26292D",color:"#B1B8BE"}}));function Z(e){const{t:t,i18n:a}=Object(c.a)(),n=r.a.useRef();return r.a.useEffect((()=>{window.Trustpilot&&n.current&&window.Trustpilot.loadFromElement(n.current,!0)}),[n]),Object(g.jsx)(q,{children:Object(g.jsx)(C.a,{maxWidth:!1,sx:{maxWidth:1700},children:Object(g.jsx)(_.a,{container:!0,justifyContent:"center",children:Object(g.jsx)(_.a,{item:!0,xs:10,sx:{py:5},children:Object(g.jsxs)(_.a,{container:!0,spacing:5,justifyContent:"space-between",children:[Object(g.jsxs)(_.a,{item:!0,xs:12,md:3,children:[Object(g.jsx)(m.a,{sx:{color:e=>e.palette.text.primary},children:Object(g.jsx)(A.a,{component:B.a,color:"inherit",viewBox:"0 0 346.1 61.3",sx:{fontSize:{xs:"1.6rem"},width:"auto"}})}),Object(g.jsxs)(I.a,{component:"h6",variant:"caption",sx:{mt:2},children:[Object(g.jsxs)(m.a,{componet:"span",sx:{display:{xs:"none",sm:"block"}},children:["Acad\xe8mia.tv s.r.l.",Object(g.jsx)("br",{}),"Via Riva di Trento, 11A",Object(g.jsx)("br",{}),"20139 - Milano (MI) - Italy",Object(g.jsx)("br",{}),"P.IVA: 11454950962",Object(g.jsx)("br",{}),Object(g.jsx)("br",{}),"\xa9 ",H()().year()," Copyright"]}),Object(g.jsxs)(m.a,{componet:"span",sx:{display:{sm:"none"}},children:["Acad\xe8mia.tv s.r.l. Via Riva di Trento, 11A",Object(g.jsx)("br",{}),"20139 - Milano (MI) - Italy P.IVA: 11454950962",Object(g.jsx)("br",{}),Object(g.jsx)("br",{}),"\xa9 ",H()().year()," Copyright"]})]})]}),Object(g.jsxs)(_.a,{item:!0,xs:6,md:3,children:[Object(g.jsx)(I.a,{variant:"h6",color:"textPrimary",sx:{mb:2},children:Object(g.jsx)("b",{children:"About"})}),Object(g.jsxs)(E.a,{children:[Object(g.jsx)(z.a,{disablePadding:!0,children:Object(g.jsx)(R.a,{sx:{px:0},onClick:()=>{Object(y.e)({event:"footer_nav",event_id:"09",event_trigger:"GAevent",event_detail:"terms"}),window.open(S.a[a.language.split("-")[0]],"_blank")},children:Object(g.jsx)(M.a,{children:Object(g.jsx)(I.a,{variant:"subtitle2",children:t("Termini e condizioni")})})})}),Object(g.jsx)(z.a,{disablePadding:!0,children:Object(g.jsx)(R.a,{sx:{px:0},onClick:()=>{Object(y.e)({event:"footer_nav",event_id:"09",event_trigger:"GAevent",event_detail:"privacy"}),window.open(k.a[a.language.split("-")[0]],"_blank")},children:Object(g.jsx)(M.a,{children:Object(g.jsx)(I.a,{variant:"subtitle2",children:t("Privacy policy")})})})}),Object(g.jsx)(z.a,{disablePadding:!0,children:Object(g.jsx)(R.a,{sx:{px:0},onClick:()=>{Object(y.e)({event:"footer_nav",event_id:"09",event_trigger:"GAevent",event_detail:"support"}),window.location="mailto:[email protected]"},children:Object(g.jsx)(M.a,{children:Object(g.jsx)(I.a,{variant:"subtitle2",children:t("Assistenza e supporto")})})})}),"it"===a.language&&Object(g.jsx)(z.a,{disablePadding:!0,children:Object(g.jsx)(R.a,{sx:{px:0},onClick:()=>{Object(y.e)({event:"footer_nav",event_id:"09",event_trigger:"GAevent",event_detail:"partnership"}),window.open("https://ac.academia.tv/business","_blank")},children:Object(g.jsx)(M.a,{children:Object(g.jsx)(I.a,{variant:"subtitle2",children:t("Partnership")})})})})]})]}),Object(g.jsxs)(_.a,{item:!0,xs:6,md:3,children:[Object(g.jsx)(I.a,{variant:"h6",color:"textPrimary",sx:{mb:2},children:Object(g.jsx)("b",{children:"Social"})}),Object(g.jsxs)(E.a,{children:[Object(g.jsx)(z.a,{disablePadding:!0,children:Object(g.jsxs)(R.a,{sx:{px:0},onClick:()=>{Object(y.e)({event:"footer_nav",event_id:"09",event_trigger:"GAevent",event_detail:"telegram"}),window.open("https://t.me/+0atHlu9OHyA4NGM0","_blank")},children:[Object(g.jsx)(T.a,{children:Object(g.jsx)("img",{src:W,width:"20"})}),Object(g.jsx)(M.a,{children:Object(g.jsx)(I.a,{variant:"subtitle2",children:"Telegram"})})]})}),Object(g.jsx)(z.a,{disablePadding:!0,children:Object(g.jsxs)(R.a,{sx:{px:0},onClick:()=>{Object(y.e)({event:"footer_nav",event_id:"09",event_trigger:"GAevent",event_detail:"instagram"}),window.open("https://www.instagram.com/academia_ita/","_blank")},children:[Object(g.jsx)(T.a,{children:Object(g.jsx)("img",{src:N})}),Object(g.jsx)(M.a,{children:Object(g.jsx)(I.a,{variant:"subtitle2",children:"Instagram"})})]})}),Object(g.jsx)(z.a,{disablePadding:!0,children:Object(g.jsxs)(R.a,{sx:{px:0},onClick:()=>{Object(y.e)({event:"footer_nav",event_id:"09",event_trigger:"GAevent",event_detail:"facebook"}),"it"===a.language&&window.open("https://www.facebook.com/IT.academia.tv","_blank"),"en"===a.language&&window.open("https://www.facebook.com/EN.academia.tv","_blank"),"es"===a.language&&window.open("https://www.facebook.com/ES.academia.tv","_blank")},children:[Object(g.jsx)(T.a,{children:Object(g.jsx)("img",{src:L})}),Object(g.jsx)(M.a,{children:Object(g.jsx)(I.a,{variant:"subtitle2",children:"Facebook"})})]})}),Object(g.jsx)(z.a,{disablePadding:!0,children:Object(g.jsxs)(R.a,{sx:{px:0},onClick:()=>{Object(y.e)({event:"footer_nav",event_id:"09",event_trigger:"GAevent",event_detail:"linkedin"}),window.open("https://www.linkedin.com/company/academiachefincamicia/","_blank")},children:[Object(g.jsx)(T.a,{children:Object(g.jsx)("img",{src:D})}),Object(g.jsx)(M.a,{children:Object(g.jsx)(I.a,{variant:"subtitle2",children:"Linkedin"})})]})}),Object(g.jsx)(z.a,{disablePadding:!0,children:Object(g.jsxs)(R.a,{sx:{px:0},onClick:()=>{Object(y.e)({event:"footer_nav",event_id:"09",event_trigger:"GAevent",event_detail:"youtube"}),window.open("https://www.youtube.com/channel/UCGHXbVQuk8T4N7O-_HKCf-g","_blank")},children:[Object(g.jsx)(T.a,{children:Object(g.jsx)("img",{src:P})}),Object(g.jsx)(M.a,{children:Object(g.jsx)(I.a,{variant:"subtitle2",children:"Youtube"})})]})})]})]}),Object(g.jsxs)(_.a,{item:!0,xs:12,md:3,children:[Object(g.jsx)(I.a,{variant:"h6",color:"textPrimary",sx:{mb:4},children:Object(g.jsx)("b",{children:"App"})}),Object(g.jsx)(m.a,{mb:2,children:Object(g.jsx)("img",{src:F.a,width:"150",style:{cursor:"pointer"},onClick:()=>{Object(y.e)({event:"footer_nav",event_id:"09",event_trigger:"GAevent",event_detail:"app_android"}),window.open("https://apps.apple.com/it/app/acad%C3%A8mia/id1502080183","_blank")}})}),Object(g.jsx)("img",{src:G.a,width:"160",style:{cursor:"pointer"},onClick:()=>{Object(y.e)({event:"footer_nav",event_id:"09",event_trigger:"GAevent",event_detail:"app_ios"}),window.open("https://play.google.com/store/apps/details?id=com.chefincamicia.academia","_blank")}})]})]})})})})})}var Y=a(27),U=a(724),X=a(717),J=a(191),K=a(208),Q=a(202),$=a.n(Q);const ee=Object(w.a)(m.a)((e=>{let{theme:t}=e;return{backgroundColor:"#E90133",color:"#fff"}}));function te(e){const{bannerType:t}=e,a=Object(o.i)(),{auth:n}=r.a.useContext(s.a),[i,d]=r.a.useState([]),{request:u,cancelToken:b}=r.a.useContext(l.a),[j,p]=r.a.useState({}),{t:h,i18n:x}=Object(c.a)(),f=new URLSearchParams(a.search).get("nodefcpn")||localStorage.getItem("nodefcpn");return r.a.useEffect((()=>{p(i.reduce(((e,t)=>({...e,[t.title]:!Boolean(sessionStorage.getItem(t.title))})),{}))}),[i]),r.a.useEffect((()=>{t&&(async()=>{const e=b.source(),a=await u("get","/v2/banners/".concat(t,"/top"),e.token);a&&d(a)})()}),[t,n]),Object(g.jsx)(r.a.Fragment,{children:i.map((e=>!Boolean(f)&&Object(g.jsx)(U.a,{in:j[e.title],children:Object(g.jsx)(ee,{sx:{py:1,px:{xs:1,md:3},...Boolean(e.bg_color)&&{backgroundColor:e.bg_color},...Boolean(e.text_color)&&{color:e.text_color}},children:Object(g.jsxs)(_.a,{container:!0,spacing:1,children:[Object(g.jsx)(_.a,{item:!0,xs:9,md:7,sx:{display:"flex",alignItems:"center"},children:Object(g.jsxs)(m.a,{children:[Object(g.jsx)(I.a,{variant:"h6",component:"span",sx:{textShadow:"0 2px 3px rgba(0, 0, 0, 0.2)",textTransform:"uppercase",mr:2,display:{xs:"block",md:"inline"}},children:Object(g.jsx)("b",{children:e.title})}),Object(g.jsx)(I.a,{component:"span",sx:{textShadow:"0 0 2px rgba(0, 0, 0, 0.1)",fontSize:{xs:"0.8rem",md:"1rem"}},children:e.description}),Boolean(e.countdown_enabled)&&Object(g.jsx)(K.a,{end:e.countdown_enabled,onEnded:()=>p((t=>(sessionStorage.setItem(e.title,1),{...t,[e.title]:!1}))),sx:{fontSize:{xs:"0.8rem",md:"1rem"},display:{fontWeight:"bold",xs:"block",md:"none"}}})]})}),Object(g.jsxs)(_.a,{item:!0,xs:5,sx:{textAlign:"right",display:{xs:"none",md:"block"}},children:[Boolean(e.countdown_enabled)&&Object(g.jsx)(K.a,{component:"span",end:e.countdown_enabled,onEnded:()=>p((t=>(sessionStorage.setItem(e.title,1),{...t,[e.title]:!1}))),sx:{fontWeight:"bold"}}),Object(g.jsx)(J.a,{color:"secondary",component:Y.b,target:e.cta_target,to:{pathname:e.cta_url.split("?")[0],search:e.cta_url.split("?")[1]?e.cta_url.split("?")[1]:"",state:{from:a.pathname}},sx:{mx:2,...Boolean(e.button_bg_color)&&{backgroundColor:e.button_bg_color},...Boolean(e.button_text_color)&&{color:e.button_text_color}},children:e.cta_label}),Object(g.jsx)(X.a,{sx:{color:"#fff"},onClick:()=>{p((t=>(sessionStorage.setItem(e.title,1),{...t,[e.title]:!1})))},children:Object(g.jsx)($.a,{fontSize:"large"})})]}),Object(g.jsxs)(_.a,{item:!0,xs:3,sx:{textAlign:"right",display:{xs:"block",md:"none"}},children:[Object(g.jsx)(X.a,{sx:{color:"#fff",p:0},onClick:()=>{p((t=>(sessionStorage.setItem(e.title,1),{...t,[e.title]:!1})))},children:Object(g.jsx)($.a,{fontSize:"large"})}),Object(g.jsx)("br",{}),Object(g.jsx)("br",{}),Object(g.jsx)(J.a,{color:"secondary",component:Y.b,target:e.cta_target,to:{pathname:e.cta_url.split("?")[0],search:e.cta_url.split("?")[1]?e.cta_url.split("?")[1]:"",state:{from:a.pathname}},sx:{fontSize:10,padding:"8px 16px",...Boolean(e.button_bg_color)&&{backgroundColor:e.button_bg_color},...Boolean(e.button_text_color)&&{color:e.button_text_color}},children:Object(g.jsx)("b",{children:e.cta_label})})]})]})})},e.id)))})}var ae=a(223),ne=a(714),re=a(262),ce=a.n(re),oe=a(195),ie=a(81),se=a(
1732),le=a(733),de=a(707),ue=a(222),be=a(260),je=a.n(be),pe=a(226),me=a(207);var he=Object(ne.a)({appBar:{backgroundColor:"transparent",boxShadow:"none",transition:"background-color .5s ease, color .5s ease",color:"#fff",marginBottom:"-75px",position:"relative","& .MuiToolbar-regular":{justifyContent:"space-between",alignItems:"center",minHeight:"75px"}},appBarScrolled:{position:"fixed",backgroundColor:"#27292D",boxShadow:"0px 2px 4px -1px rgb(0 0 0 / 20%), 0px 4px 5px 0px rgb(0 0 0 / 14%), 0px 1px 10px 0px rgb(0 0 0 / 12%)","&.wellness":{backgroundColor:"#EFEDE5",color:"#27292D","& .variant":{color:"#27292D !important"}}},logo:{maxWidth:"221px",width:"100%"}})((function(e){const t=Object(o.h)(),{t:a,i18n:n}=Object(c.a)(),{currentCategory:i}=Object(ie.a)(),l=Object(o.i)(),{packageType:d,isWellness:u}=Object(oe.a)(),{classes:b,headerBg:j}=e,{auth:x}=r.a.useContext(s.a),{config:f}=r.a.useContext(h.a),O=Object(o.g)(l.pathname,{path:"/".concat(n.language,"/").concat(a("cerca"),"/:section?"),exact:!0}),[v,w]=r.a.useState(!1),[S,k]=r.a.useState(!1),C=r.a.useRef(),_=e=>{C.current&&document.documentElement.scrollTop>C.current.offsetTop?w(!0):w(!1)};return r.a.useEffect((()=>(window.addEventListener("scroll",_),()=>{window.removeEventListener("scroll",_)})),[]),Object(g.jsxs)(se.a,{ref:C,className:ce()(b.appBar,{[d.key]:!0,[b.appBarScrolled]:v}),style:{backgroundColor:j||""},children:[Object(g.jsxs)(le.a,{children:[Object(g.jsx)(X.a,{className:ce()(b.menu),color:"inherit",size:"large",component:Y.b,to:"/".concat(n.language,"/").concat(a("cerca")),sx:{display:{md:"none"}},children:Object(g.jsx)(A.a,{component:pe.a,color:"inherit"})}),Object(g.jsxs)(m.a,{sx:{display:"flex",alignItems:"center",flexDirection:{xs:"column",md:"row"},"& img":{width:"100%",mr:{xs:0,md:2},maxWidth:{xs:171,md:221}},"& .MuiChip-root":{mt:1}},children:[Object(g.jsx)(A.a,{onClick:()=>t.push("/"+n.language),component:B.a,color:"inherit",viewBox:"0 0 346.1 61.3",sx:{fontSize:{md:"2.4rem",xs:"1.5rem"},width:"auto",cursor:"pointer"}}),Boolean(d)&&Object(g.jsx)(de.a,{color:d.key,size:"small",label:Object(g.jsx)("b",{children:d.fullTranslation}),component:Y.b,to:"/".concat(n.language,"/").concat(d.translation),clickable:!0,sx:{textTransform:"uppercase",ml:1}}),!!O&&Object(g.jsx)(X.a,{component:Y.b,to:"/".concat(n.language),color:"light",sx:{background:"#333639",ml:3,display:{xs:"none",md:"inline-flex"}},children:Object(g.jsx)(A.a,{component:me.a})})]}),Object(g.jsxs)(m.a,{sx:{display:{xs:"none",md:"inline-flex"}},children:[!Boolean(e.hideSubButton)&&(!x.isAuthenticated||x.isAuthenticated&&x.user&&x.user.data&&!x.user.data.flag_active_subscription&&!u||x.isAuthenticated&&x.user&&x.user.data&&!x.user.data.flag_active_wellness_subscription&&u||x.isAuthenticated&&x.user&&x.user.data&&x.user.data.flag_active_wellness_subscription&&x.user.data.flag_active_subscription&&!x.user.data.flag_active_pro)&&Object(g.jsx)(p.a,{component:Y.b,variant:"contained",color:"primary",size:"large",to:{pathname:"/".concat(n.language,"/paywall"),...!x.isAuthenticated||x.isAuthenticated&&x.user&&x.user.data&&(!x.user.data.flag_active_subscription||!x.user.data.flag_active_wellness_subscription)?{search:"from=".concat(d&&"horeca"!==d.key?d.key:"masterclass")}:{},state:{from:l.pathname}},onClick:e=>{Object(y.e)({event:"cta_click",event_id:"03",event_trigger:"GAevent",event_detail:"buy_".concat(d&&"horeca"!==d.key?d.key:"masterclass"),event_subdetail:e.target.innerText})},style:{color:"white !important"},children:x.user&&x.user.data&&x.user.data.flag_active_wellness_subscription&&x.user.data.flag_active_subscription&&!x.user.data.flag_active_pro?a("Scopri il piano PRO"):a("Inizia ora")}),!Boolean(e.hideSubButton)&&!u&&(!x.isAuthenticated||x.isAuthenticated&&x.user&&x.user.data&&!x.user.data.flag_active_subscription)&&Object(g.jsx)(p.a,{component:Y.b,variant:"contained",size:"large",to:{pathname:Object(o.f)("/:lang/:courses/:courseSlug/:lessons/:lessonSlug",{lang:n.language,courses:a("corsi"),courseSlug:f.free_lesson_course_slug,lessons:a("lezioni"),lessonSlug:f.free_lesson_slug}),state:{from:l.pathname}},onClick:()=>{Object(y.e)({event:"free_lesson",event_id:"03",event_trigger:"GAevent",event_detail:"".concat(i," header")})},color:"secondary",sx:{ml:2},children:a("Guarda lezione gratuita")}),!Boolean(e.hideSubButton)&&u&&d&&(!x.isAuthenticated||x.isAuthenticated&&x.user&&x.user.data&&!x.user.data.flag_active_wellness_subscription)&&Object(g.jsx)(p.a,{component:Y.b,variant:"contained",to:{pathname:Object(o.f)("/:lang/:package/:classSlug/:modules/:moduleSlug/:lessons/:chapterSlug",{lang:n.language,package:d.translation,classSlug:f.wellness_free_lesson_course_pkg_slug,modules:a("moduli"),moduleSlug:f.wellness_free_lesson_course_slug,lessons:a("lezioni"),chapterSlug:f.wellness_free_lesson_slug}),state:{from:l.pathname}},className:ce()(b.button,"variant"),onClick:()=>{Object(y.e)({event:"free_lesson",event_id:"03",event_trigger:"GAevent",event_detail:"".concat(i," header")})},color:"secondary",sx:{ml:2},children:a("Guarda lezione gratuita")})]}),Object(g.jsx)(X.a,{color:"inherit",size:"large",className:"variant",onClick:()=>k(!0),sx:{display:{md:"none"}},children:Object(g.jsx)(je.a,{})}),Object(g.jsxs)(m.a,{sx:{display:{xs:"none",md:"inline-flex"}},children:[Object(g.jsx)(p.a,{variant:"text",color:"white",component:Y.b,to:"/".concat(n.language,"/").concat(a("cerca"),"/").concat(a("corsi"),"?p=1"),sx:{mr:2,textTransform:"capitalize"},activeStyle:{textDecoration:"underline"},className:"variant",children:a("corsi")}),f.recipes_enabled&&Object(g.jsx)(p.a,{variant:"text",color:"white",component:Y.b,to:"/".concat(n.language,"/").concat(a("cerca"),"/").concat(a("ricette"),"?p=1"),sx:{mr:2,textTransform:"capitalize"},activeStyle:{textDecoration:"underline"},className:"variant",children:a("ricette")}),Object(g.jsx)(p.a,{variant:"text",color:"white",component:Y.b,to:"/".concat(n.language,"/").concat(a("cerca"),"/").concat(a("tecniche"),"?p=1"),sx:{mr:2,textTransform:"capitalize"},activeStyle:{textDecoration:"underline"},className:"variant",children:a("tecniche")}),Object(g.jsx)(p.a,{variant:"text",color:"white",component:Y.b,to:"/".concat(n.language,"/").concat(a("cerca")),activeStyle:{textDecoration:"underline"},sx:{mr:2,textTransform:"capitalize"},endIcon:Object(g.jsx)(A.a,{component:pe.a,color:"inherit",sx:{fontSize:"1rem"}}),className:"variant",children:a("cerca")}),Object(g.jsx)(p.a,{variant:"text",color:"white",onClick:()=>k(!0),endIcon:Object(g.jsx)(je.a,{}),className:"variant",children:a("Menu")})]})]}),Object(g.jsx)(ue.a,{open:S,setOpen:k})]})})),ge=a(64),xe=a(196),fe=a(200),Oe=a(231);var ve=()=>{const{layoutState:e,toggleAuthDialog:t}=r.a.useContext(d.a);return Object(g.jsx)(xe.a,{maxWidth:"md",scroll:"body",fullScreen:fe.isMobileOnly,open:e.openAuthDialog,handleClose:()=>{t(!1)},children:Object(g.jsx)(m.a,{sx:{minWidth:{lg:850}},children:Object(g.jsx)(Oe.b,{})})})}
1,we=a(709),ye=a(188),Se=a(204),ke=a(192),Ce=a(659),_e=a(739),Ae=a(697),Ie=a(688),Ee=a(740),ze=a(649),Re=a(729),Me=a(555),Te=a(556),Be=a(29),Pe=a(229),Ne=a.n(Pe),Le=a(241),De=a.n(Le),We=a(242),Fe=a.n(We),Ge=a(281),Ve=a.n(Ge);Object(Be.a)(Ce.a)((e=>{let{theme:t}=e;return{["&.".concat(Me.a.alternativeLabel)]:{top:10,left:"calc(-50% + 16px)",right:"calc(50% + 16px)"},["&.".concat(Me.a.active)]:{["& .".concat(Me.a.line)]:{borderColor:"#e90134"}},["&.".concat(Me.a.completed)]:{["& .".concat(Me.a.line)]:{borderColor:"#e90134"}},["& .".concat(Me.a.line)]:{borderColor:"#42474d",borderTopWidth:3,borderRadius:1}}}));const He=Object(Be.a)("div")((e=>{let{theme:t,ownerState:a}=e;return{color:"currentColor",width:"100%","& .QontoStepIcon-completedIcon":{color:"#fff !important",zIndex:1,fontSize:18},"& .QontoStepIcon-circle":{borderRadius:1.5,height:3,backgroundColor:"currentColor"},["& .".concat(Te.a.iconContainer)]:{paddingRight:0}}})),qe=Object(Be.a)(_e.a)((e=>{let{theme:t}=e;return{flexGrow:1,"&:first-of-type":{paddingLeft:0},"&:last-of-type":{paddingRight:0}}})),Ze=Object(Be.a)(Ae.a)((e=>{let{theme:t}=e;return{width:"100%",color:"#535860","&.error":{color:t.palette.primary.main},"&.active":{color:"#fff","&.wellness":{color:"#E5E4DC"}},["& .".concat(Te.a.iconContainer)]:{width:"100%",paddingRight:0}}}));function Ye(e){const{active:t,completed:a,className:n}=e;return Object(g.jsx)(He,{ownerState:{active:t},className:n,children:Object(g.jsx)("div",{className:"QontoStepIcon-circle "+(a||t?"completed":"")})})}const Ue=e=>{const{t:t}=Object(c.a)(),{auth:a,login:n}=r.a.useContext(s.a),{request:o,cancelToken:i}=r.a.useContext(l.a),{packageType:d,isHoreca:u}=Object(oe.a)(),[b,j]=r.a.useState({first_name:"",last_name:"",register_step:"user-data"});return Object(g.jsx)(_.a,{container:!0,justifyContent:"center",children:Object(g.jsx)(_.a,{item:!0,xs:12,sm:8,lg:6,sx:{textAlign:"center"},children:Object(g.jsxs)(m.a,{textAlign:"center",p:4,children:[Object(g.jsx)(I.a,{variant:"h5",color:"text.primary_".concat(d.key),gutterBottom:!0,children:Object(g.jsx)("b",{children:t("Certificato")})}),Object(g.jsxs)(I.a,{color:"text.secondary_".concat(d.key),children:[t("Per rilasciare il certificato di fine corso \xe8 necessario inserire o confermare il tuo nome e cognome"),"."]}),Object(g.jsx)(m.a,{mt:4,children:Object(g.jsx)(Ie.a,{fullWidth:!0,label:t("Nome"),value:b.first_name,InputProps:{sx:{color:e=>d&&!u?e.palette.text["primary_".concat(d.key)]:e.palette.text.primary}},onChange:e=>j({...b,first_name:e.target.value})})}),Object(g.jsx)(m.a,{mt:2,mb:4,children:Object(g.jsx)(Ie.a,{fullWidth:!0,label:t("Cognome"),value:b.last_name,InputProps:{sx:{color:e=>d&&!u?e.palette.text["primary_".concat(d.key)]:e.palette.text.primary}},onChange:e=>j({...b,last_name:e.target.value})})}),Object(g.jsx)(p.a,{variant:"contained",color:"primary",onClick:()=>{(async()=>{const t=i.source(),r=await o("put","/v2/user",t.token,b);r&&(n({token:a.user.token,data:r}),e.getTest())})()},children:t("Conferma")})]})})})};var Xe=()=>{const{t:e,i18n:t}=Object(c.a)(),a=Object(o.h)(),{packageType:n,isHoreca:i}=Object(oe.a)(),{courseSlug:s,lessonSlug:u,classSlug:b,moduleSlug:j,chapterSlug:h}=Object(o.j)(),{layoutState:x,toggleTest:f}=r.a.useContext(d.a),{request:O,cancelToken:v}=r.a.useContext(l.a),[w,S]=r.a.useState({}),[k,C]=r.a.useState(null),[A,B]=r.a.useState(0),[P,N]=r.a.useState(!1),[L,D]=r.a.useState(!1),[W,F]=r.a.useState(!1),G=n&&!i?{course_id:x.openTest.moduleId}:{lesson_id:x.openTest},V=async()=>{const e=v.source();let t=null;t=n&&!i?await O("get","/v2/course-packages/"+n.key+"/"+x.openTest.classId+"/items/"+x.openTest.moduleId+"/quiz",e.token):await O("get","/v2/lessons/"+x.openTest+"/quiz",e.token),t?(Object(y.a)("lesson_test_question",{...G,question_index:1}),D(!1),C(t)):D(!0)};return r.a.useEffect((()=>{Boolean(x.openTest)&&(Object(y.a)("lesson_test_start",{...G}),V())}),[x.openTest,n]),Object(g.jsxs)(xe.a,{maxWidth:"md",scroll:"body",fullScreen:fe.isMobileOnly,open:Boolean(x.openTest),className:n&&!i?n.key:"",...W&&{hideTitle:!0},handleClose:()=>{f(!1),k&&(n&&!i?a.push(Object(o.f)("/:lang/:package/:classSlug/:modules/:moduleSlug/:lessons/:chapterSlug",{lang:t.language,package:n.translation,classSlug:b,modules:e("moduli"),moduleSlug:j,lessons:e("lezioni"),chapterSlug:h})):a.push(Object(o.f)("/:lang/:courses/:courseSlug/:lessons/:lessonSlug",{lang:t.language,courses:e(i?"horec
1a":"corsi"),courseSlug:s,lessons:e("lezioni"),lessonSlug:u})))},children:[W&&Object(g.jsx)(m.a,{sx:{p:1},children:Object(g.jsx)(X.a,{"aria-label":"close",onClick:()=>{F(!1)},size:"large",color:"light",children:Object(g.jsx)(Ve.a,{})})}),L&&Object(g.jsx)(Ue,{getTest:V}),k&&Object(g.jsx)(r.a.Fragment,{children:Object(g.jsxs)(m.a,{pb:{xs:3,sm:5},px:{xs:3,sm:5,md:10,lg:12},sx:{color:e=>n&&!i?e.palette.text["primary_".concat(n.key)]:e.palette.text.primary},children:[W?Object(g.jsx)(g.Fragment,{children:Object(g.jsx)(I.a,{variant:"caption",gutterBottom:!0,color:"text.primary_".concat(n.key),children:Object(g.jsxs)(we.a,{t:e,children:["Risposte corrette ",{c:W.user_points},"/",{d:W.total_points}]})})}):Object(g.jsx)(g.Fragment,{children:n&&!i?Object(g.jsxs)(r.a.Fragment,{children:[Object(g.jsxs)(I.a,{variant:"caption",gutterBottom:!0,color:"text.primary_".concat(n.key),children:["TEST - ",e("Classe")+" "+k.quiz.course.package.title]}),Object(g.jsx)(I.a,{color:"text.secondary_".concat(n.key),gutterBottom:!0,children:Object(g.jsx)("b",{children:k.quiz.course.title})})]}):Object(g.jsxs)(r.a.Fragment,{children:[Object(g.jsxs)(I.a,{variant:"caption",gutterBottom:!0,sx:{color:"#555C64"},children:["TEST - ",e("Lezione")+" "+k.quiz.lesson.lesson_num]}),Object(g.jsx)(I.a,{color:"textSecondary",gutterBottom:!0,children:Object(g.jsx)("b",{children:k.quiz.lesson.title})})]})}),!Boolean(P)||W?Object(g.jsxs)(r.a.Fragment,{children:[Object(g.jsx)(m.a,{my:2,sx:{maxWidth:{xs:"100%",sm:"70%",lg:"60%"}},children:Object(g.jsx)(Ee.a,{activeStep:A,connector:Object(g.jsx)(r.a.Fragment,{}),children:k.quiz.questions.map(((e,t)=>{const a=e.answers.reduce(((e,t)=>e||!(!t.correct||!t.selected)),!1);return Object(g.jsx)(g.Fragment,{children:Object(g.jsxs)(qe,{children:[W&&Object(g.jsx)(I.a,{variant:"caption",component:"div",align:"center",color:"primary",children:a||t>A?Object(g.jsx)(De.a,{fontSize:"inherit",sx:{color:"transparent"}}):Object(g.jsx)(De.a,{fontSize:"inherit"})}),Object(g.jsx)(Ze,{StepIconComponent:Ye,className:!a&&W&&t<=A?"error":A===t||t<=A?"active ".concat(n?n.key:""):""})]},"step"+e.id)})}))})}),Object(g.jsx)(Ne.a,{enableMouseEvents:!0,index:A,onChangeIndex:e=>{Object(y.a)("lesson_test_question",{...G,question_index:e+1}),B(e)},children:k.quiz.questions.map(((t,a)=>Object(g.jsxs)(m.a,{children:[Object(g.jsx)(I.a,{gutterBottom:!0,color:n&&!i?"text.secondary_".concat(n.key):"text.secondary",children:Object(g.jsx)("b",{children:e("DOMANDA")+" "+(a+1)})}),Object(g.jsx)(I.a,{variant:"h5",gutterBottom:!0,children:Object(g.jsx)("b",{children:t.text})}),Object(g.jsx)(E.a,{sx:{width:"100%"},children:t.answers.map((e=>{const t="checkbox-list-label-".concat(e.id);return Object(g.jsx)(g.Fragment,{children:Object(g.jsx)(z.a,{disablePadding:!0,children:Object(g.jsxs)(R.a,{role:void 0,onClick:()=>{var t,n;W||(t=e.id,n=a,S({...w,[n]:t}))},dense:!0,...W&&{sx:{pl:0}},children:[Object(g.jsx)(T.a,{children:Object(g.jsxs)(ze.a,{direction:"row",alignItems:"center",spacing:1,sx:{},children:[W&&!e.correct&&e.selected&&Object(g.jsx)(De.a,{color:"primary"}),W&&(e.correct&&!e.selected||e.correct&&e.selected)&&Object(g.jsx)(Fe.a,{sx:{color:e=>n&&"wellness"===n.key?"#289D00":e.palette.lightGreen.main}}),W&&!e.correct&&!e.selected&&Object(g.jsx)(m.a,{sx:{width:24}}),Object(g.jsx)(Se.a,{edge:"start",className:n&&!i?n.key:"",checked:Boolean(w[a])&&w[a]===e.id,tabIndex:-1,disableRipple:!0,inputProps:{"aria-labelledby":t},...!W&&{sx:{ml:0}}})]})}),Object(g.jsx)(M.a,{id:t,primaryTypographyProps:{variant:"body1"},children:e.text})]})},e.id)})}))})]},"question"+t.id)))}),Object(g.jsxs)(ze.a,{direction:"row",justifyContent:"space-between",sx:{mt:3},children:[Object(g.jsx)("div",{children:A>0&&Object(g.jsx)(p.a,{variant:"contained",color:"darkGray",onClick:()=>{B(A-1)},children:e("Indietro")})}),Object(g.jsx)("div",{children:Object(g.jsx)(p.a,{variant:"contained",color:"primary",onClick:()=>{(async()=>{const e=A+1;if(e!==k.quiz.questions.length||P||P.test_passed)Object(y.a)("lesson_test_question",{...G,question_index:e+1}),e===k.quiz.questions.length?F(!1):B(e);else{const e=v.source(),t=await O("post",n&&!i?"/v2/course-packages/"+n.key+"/"+x.openTest.classId+"/items/"+x.openTest.moduleId+"/quiz":"/v2/quiz/"+k.quiz.id,e.token,{quiz_id:k.quiz.id,answers:k.quiz.questions.reduce(((e,t,a)=>
1(e.push({question_id:t.id,answer_id:w[a]}),e)),[])});t&&(C({...k,quiz:{...t.quiz}}),t.test_passed?Object(y.a)("lesson_test_completed_success",G):Object(y.a)("lesson_test_completed_failure",G),N(t),F(!1))}})()},disabled:!k.quiz.questions.reduce(((e,t,a)=>!(!e||!Boolean(w[a]))),!0)&&A===k.quiz.questions.length-1,children:e(W?"Avanti":"Conferma")})})]})]}):Object(g.jsx)(m.a,{mt:4,sx:{minWidth:{xs:"auto",sm:"400px",lg:"500px",xl:"650px"},color:e=>n&&!i?e.palette.text["primary_".concat(n.key)]:e.palette.text.primary},children:Object(g.jsx)(_.a,{container:!0,justifyContent:"center",children:Object(g.jsxs)(_.a,{item:!0,xs:12,sm:8,lg:6,sx:{textAlign:"center"},children:[!!P.certificate&&Object(g.jsx)(ke.a,{src:P.certificate.image_url,useSet:!0,sx:{width:76}}),Object(g.jsx)(I.a,{variant:"h4",color:"inherit",gutterBottom:!0,children:Object(g.jsxs)("b",{children:[P.test_passed?e("Complimenti"):e("Che peccato"),"!"]})}),!!P.certificate&&Object(g.jsxs)(g.Fragment,{children:[Object(g.jsxs)(I.a,{color:n&&!i?"text.secondary_".concat(n.key):"#F5F5F5",gutterBottom:!0,children:[e("Hai ottenuto il certificato del corso:"),Object(g.jsx)("br",{}),Object(g.jsx)("b",{children:P.quiz.course.title})]}),Object(g.jsx)(m.a,{sx:{my:2},children:Object(g.jsx)(p.a,{variant:"contained",component:Re.a,href:P.certificate.pdf_url,onClick:()=>Object(y.a)("certificate_download",{course_id:P.course.id}),target:"_blank",rel:"noopener noreferrer",download:!0,color:"primary",children:e("Scarica il certificato")})})]}),Object(g.jsx)(I.a,{color:n&&!i?"text.secondary_".concat(n.key):"#F5F5F5",gutterBottom:!0,children:e("Hai risposto correttamente a")}),Object(g.jsx)(I.a,{variant:"h3",color:n&&!i?"text.secondary_".concat(n.key):"#F5F5F5",gutterBottom:!0,children:Object(g.jsxs)("b",{children:[P.user_points,"/",P.total_points]})}),!P.test_passed&&Object(g.jsxs)(ze.a,{direction:"row",justifyContent:"center",spacing:2,sx:{mt:3},children:[Object(g.jsx)("div",{children:Object(g.jsx)(p.a,{variant:"contained",color:"darkGray",onClick:()=>{B(0),F({total_points:P.total_points,user_points:P.user_points})},sx:{p:"8px 17px",minWidth:135},children:e("Vedi risutalti")})}),Object(g.jsx)("div",{children:Object(g.jsx)(p.a,{variant:"contained",size:"small",color:"secondary",onClick:()=>{B(0),S({}),N(!1),F(!1)},sx:{p:"8px 17px",minWidth:130},children:e("Ripeti il test")})})]}),P.test_passed&&Object(g.jsx)(p.a,{variant:"contained",color:"darkGray",onClick:()=>{B(0),F({total_points:P.total_points,user_points:P.user_points})},sx:{p:"8px 17px",minWidth:130},children:e("Vedi risutalti")}),Boolean(k.lesson_next)&&Object(g.jsxs)(m.a,{my:5,sx:{backgroundColor:"#2F3337",borderRadius:"10px",padding:"13px"},children:[Object(g.jsxs)(_.a,{container:!0,justifyContent:"center",sx:{mb:2},children:[Object(g.jsx)(_.a,{item:!0,xs:5,children:Object(g.jsx)(ke.a,{src:Object(ye.m)(k.lesson_next.img_cover),sx:{width:"100%",borderRadius:"10px"},useSet:{sizes:[["down","md","100vw"],["150px"]]}})}),Object(g.jsxs)(_.a,{item:!0,xs:7,sx:{pl:1},children:[Object(g.jsxs)(I.a,{component:"h6",align:"left",variant:"caption",color:"textSecondary",gutterBottom:!0,children:[e("Lezione")," ",k.lesson_next.lesson_num]}),Object(g.jsx)(I.a,{component:"h6",align:"left",variant:"caption",color:"textPrimary",gutterBottom:!0,children:Object(g.jsx)("b",{children:k.lesson_next.title})})]})]}),Object(g.jsx)(p.a,{variant:"contained",component:Re.a,href:Object(o.f)("/:lang/:courses/:courseSlug/:lessons/:lessonSlug",{lang:t.language,courses:e(i?"horeca":"corsi"),courseSlug:s,lessons:e("lezioni"),lessonSlug:k.lesson_next.slug}),color:"primary",children:e("Prossima lezione")})]})]})})})]})})]})};function Je(e){let{title:t,bg:a,color:n,lesson:b,homeSlogged:j,headerBg:p,hideSubButton:h,disableMaxWidth:x,loading:O,bannerType:w,children:y}=e;const{auth:S}=r.a.useContext(s.a),{t:k,i18n:_}=Object(c.a)(),A=Object(o.i)(),{request:I,cancelToken:E}=r.a.useContext(l.a),{showSuccess:z}=r.a.useContext(d.a),[R,M]=r.a.useState([]),T=new URLSearchParams(A.search),B="en"===_.language.split("-")[0]?"en-GB":_.language.split("-")[0];return r.a.useEffect((()=>
1{if(T.has("sconto")){(async e=>{const t=E.source();await I("post","/v2/renewal-campaigns/"+e,t.token)&&z({message:k("Credito applicato correttamente al tuo prossimo rinnovo! Puoi verificarlo dal men\xf9 > Profilo > Dati account > Pagamenti")})})(T.get("sconto"))}}),[S.isAuthenticated]),r.a.useEffect((()=>{Boolean(window.Android)||(async()=>{const e=E.source(),t=await I("get","/v2/metas",e.token,{path:A.pathname,query:A.search});t&&M(t.metas)})()}),[A]),Object(g.jsxs)(m.a,{bgcolor:a||"",color:n||"",overflow:"hidden",children:[!Boolean(window.Android)&&Object(g.jsxs)(u.a,{titleTemplate:"%s - Acad\xe8mia.tv",title:t,htmlAttributes:{lang:_.language.split("-")[0]},children:[R.map(((e,t)=>r.a.cloneElement(Object(i.a)(e,{replace:e=>{let{attribs:t,children:a}=e;if(t)return"application/ld+json"===t.type&&a&&a.length?Object(g.jsx)("script",{type:"application/ld+json",children:a[0].data}):void 0}}),{key:"meta-"+t}))),Object(g.jsx)("script",{type:"text/javascript",children:'\n var _iub = _iub || [];\n _iub.csConfiguration = {"siteId":1819621,"cookiePolicyId":'.concat({it:39756041,"en-GB":70243759,es:56970618}[B],',"lang":"').concat(B,'"}\n ')}),Object(g.jsx)("script",{type:"text/javascript",src:"https://embeds.iubenda.com/widgets/93c3b528-6db6-11ee-8bfc-5ad8d8c564c0.js"}),Object(g.jsx)("script",{type:"text/javascript",src:"//cdn.iubenda.com/cs/iubenda_cs.js",charset:"UTF-8",async:!0})]}),!Boolean(window.Android)&&Object(g.jsx)(te,{bannerType:w}),!Boolean(window.Android)&&!Boolean(b)&&!Boolean(j)&&Object(g.jsx)(he,{hideSubButton:h,headerBg:p}),Object(g.jsxs)(C.a,{maxWidth:!1,sx:{pb:10,maxWidth:x?"100%":1700,minHeight:"100vh"},children:[y,(O||S.isAuthenticated&&S.user.data&&!S.user.data)&&Object(g.jsx)(ge.a,{}
1),Object(g.jsx)(f,{}),Object(g.jsx)(v,{}),Object(g.jsx)(ve,{}),Object(g.jsx)(Xe,{}),Object(g.jsx)(ae.b,{})]}),!Boolean(window.Android)&&!Boolean(b)&&Object(g.jsx)(Z,{})]})}},215:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n,r,c=a(0);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},o.apply(null,arguments)}function i(e,t){let{title:a,titleId:i,...s}=e;return c.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:29.044,height:29.043,viewBox:"0 0 29.044 29.043",ref:t,"aria-labelledby":i},s),a?c.createElement("title",{id:i},a):null,n||(n=c.createElement("defs",null,c.createElement("style",null,"\n .cls-1{fill:currentColor}\n "))),r||(r=c.createElement("g",{id:"Icon_feather-gift","data-name":"Icon feather-gift",transform:"translate(1 1)"},c.createElement("path",{id:"Tracciato_86","data-name":"Tracciato 86",className:"cls-1",d:"M27.635 32.521H6a1 1 0 0 1-1-1V18a1 1 0 0 1 2 0v12.521h19.635V18a1 1 0 0 1 2 0v13.521a1 1 0 0 1-1 1z",transform:"translate(-3.296 -4.479)"}),c.createElement("path",{id:"Tracciato_87","data-name":"Tracciato 87",className:"cls-1",d:"M3 9.5h27.044a1 1 0 0 1 1 1v6.761a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V10.5a1 1 0 0 1 1-1zm26.044 2H4v4.761h25.044z",transform:"translate(-3 -3.739)"}),c.createElement("path",{id:"Tracciato_88","data-name":"Tracciato 88",className:"cls-1",d:"M18 31.782a1 1 0 0 1-1-1V10.5a1 1 0 0 1 2 0v20.282a1 1 0 0 1-1 1z",transform:"translate(-4.478 -3.739)"}),c.createElement("path",{id:"Tracciato_89","data-name":"Tracciato 89",className:"cls-1",d:"M16.965 10.761H10.88a4.38 4.38 0 1 1 0-8.761c2.322 0 4.291 1.348 5.693 3.9a14.258 14.258 0 0 1 1.372 3.666 1 1 0 0 1-.981 1.2zM10.88 4a2.38 2.38 0 1 0 0 4.761h4.764C15.056 7.021 13.636 4 10.88 4z",transform:"translate(-3.443 -3)"}),c.createElement("path",{id:"Tracciato_90","data-name":"Tracciato 90",className:"cls-1",d:"M24.085 10.761H18a1 1 0 0 1-.981-1.2A14.258 14.258 0 0 1 18.391 5.9c1.4-2.55 3.372-3.9 5.693-3.9a4.38 4.38 0 1 1 0 8.761zm-4.764-2h4.764a2.38 2.38 0 1 0 0-4.761c-2.756 0-4.175 3.021-4.764 4.761z",transform:"translate(-4.478 -3)"}))))}const s=c.forwardRef(i);a.p},216:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n,r=a(0);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(null,arguments)}function o(e,t){let{title:a,titleId:o,...i}=e;return r.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":o},i),a?r.createElement("title",{id:o},a):null,n||(n=r.createElement("g",{id:"Raggruppa_5055","data-name":"Raggruppa 5055",transform:"translate(-41 -717)"},r.createElement("rect",{id:"Rettangolo_2145","data-name":"Rettangolo 2145",width:24,height:24,transform:"translate(41 717)",fill:"none"}),r.createElement("g",{id:"Raggruppa_5023","data-name":"Raggruppa 5023",transform:"translate(41 720)"},r.createElement("path",{id:"Tracciato_9012","data-name":"Tracciato 9012",d:"M20.161,85.737H9.6a.716.716,0,0,1,0-1.433H20.161a.716.716,0,0,1,0,1.433",transform:"translate(-2.519 -66.718)",fill:"currentColor"}),r.createElement("path",{id:"Tracciato_9013","data-name":"Tracciato 9013",d:"M19.952,59.755H3.964A3.968,3.968,0,0,0,0,63.719V71.36a3.968,3.968,0,0,0,3.964,3.964H19.952a3.942,3.942,0,0,0,2.1-.61,2.137,2.137,0,0,0,1.561-1.85,3.955,3.955,0,0,0,.3-1.5V63.719a3.969,3.969,0,0,0-3.964-3.964M14.061,67.87a.737.737,0,0,1-.092.1l-3.084,2.67a.716.716,0,1,1-.969-1.055l.032-.027,2.43-2.1-2.405-1.9a.716.716,0,0,1,.888-1.123l3.085,2.44a.716.716,0,0,1,.117,1",transform:"translate(0 -59.755)",fill:"currentColor"})))))}const i=r.forwardRef(o);a.p},217:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n,r,c,o=a(0);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},i.apply(null,arguments)}function s(e,t){let{title:a,titleId:s,...l}=e;return o.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":s},l),a?o.createElement("title",{id:s},a):null,n||(n=o.createElement("defs",null,o.createElement("clipPath",{id:"clip-path"},o.createElement("rect",{id:"Rettangolo_1948","data-name":"Rettangolo 1948",width:16.794,height:24,fill:"
1currentColor"})))),o.createElement("g",{id:"Raggruppa_4961","data-name":"Raggruppa 4961",transform:"translate(-146 -330)",style:{mixBlendMode:"normal",isolation:"isolate"}},r||(r=o.createElement("g",{id:"Raggruppa_4432","data-name":"Raggruppa 4432",transform:"translate(150 330)"},o.createElement("g",{id:"Raggruppa_4432-2","data-name":"Raggruppa 4432",transform:"translate(0 0)",clipPath:"url(#clip-path)"},o.createElement("path",{id:"Tracciato_8964","data-name":"Tracciato 8964",d:"M16.48.136A.74.74,0,0,0,15.789.05C6.357,3.661,1.095,7.552.148,11.614A4.95,4.95,0,0,0,1.106,16l1.512,1.594A20.909,20.909,0,0,0,1.151,23.2a.74.74,0,0,0,.677.8l.062,0a.741.741,0,0,0,.737-.679,19.813,19.813,0,0,1,1.261-4.915,8.79,8.79,0,0,0,3.311.729,6.17,6.17,0,0,0,3.275-.92c5.938-3.63,6.307-16.895,6.32-17.457A.742.742,0,0,0,16.48.136M9.775,10.527a16.845,16.845,0,0,0-5.123,6.155.74.74,0,1,1-1.323-.665A18.285,18.285,0,0,1,8.9,9.33a.74.74,0,1,1,.871,1.2",transform:"translate(0 0)",fill:"currentColor"})))),c||(c=o.createElement("rect",{id:"Rettangolo_2108","data-name":"Rettangolo 2108",width:24,height:24,transform:"translate(146 330)",fill:"none"}))))}const l=o.forwardRef(s);a.p},218:function(e,t,a){"use strict";t.a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAACQCAMAAABTVb7dAAAAV1BMVEVHcEz///+mpqacnJyjo6OlpaUAAACmpqafn5+lpaUgICAmJiahoaEICAj6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){"use strict";a.d(t,"a",(function(){return i}));var n=a(0),r=a.n(n),c=a(111),o=a(1);function i(e){const{children:t,value:a,index:n,...i}=e;return Object(o.jsx)(c.a,{role:"tabpanel",hidden:a!==n,id:"simple-tabpanel-".concat(n),"aria-labelledby":"simple-tab-".concat(n),...i,children:a===n&&Object(o.jsx)(r.a.Fragment,{children:t})})}},221:function(e,t,a){"use strict";var n=a(0),r=a.n(n),c=a(645),o=a(199),i=a.n(o),s=a(214),l=a.n(s),d=a(111),u=a(717),b=a(1);const j=Object(c.a)(d.a)((e=>{let{theme:t}=e;return{width:"100%",display:"flex",flexWrap:"wrap",backgroundColor:"transparent",position:"relative",[t.breakpoints.down("md")]:{overflow:"hidden"}}})),p=Object(c.a)(d.a)((e=>{let{theme:t}=e;return{width:"100%",flexWrap:"nowrap",alignContent:"flex-start",transform:"translateZ(0)",display:"flex",padding:"2px 2px 10px 2px",overflowY:"hidden",overflowX:"auto",scrollBehavior:"smooth",WebkitOverflowScrolling:"touch","& > div":{marginLeft:t.spacing(1),marginRight:t.spacing(1),[t.breakpoints.up("md")]:{marginRight:t.spacing(2)}},"&.dontScroll":{flexWrap:"wrap"},"& > div:first-child":{marginLeft:0},"& > div:last-child":{marginRight:0}}})),m=Object(c.a)(d.a)((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:t.spacing(-5),color:"#c8ccd0",height:"100%",padding:"0 5px",zIndex:1,display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",[t.breakpoints.down("md")]:{dis
1play:"none"}}}));t.a=e=>{const{dontScroll:t,children:a,onScrollEnd:n,sliderContainerProps:c,sliderContentProps:o}=e,s=r.a.useRef(null),[d,h]=r.a.useState({right:!1,left:!1}),g=e=>{if(!s.current)return;const t=s.current.getBoundingClientRect();Math.round(t.bottom)-window.innerHeight<=0&&n&&n()};return r.a.useEffect((()=>{if(t)return window.removeEventListener("scroll",g),window.addEventListener("scroll",g),()=>{window.removeEventListener("scroll",g)}}),[a]),r.a.useEffect((()=>{!t&&s.current&&s.current.scrollWidth>s.current.offsetWidth&&(0===s.current.scrollLeft&&h({left:!1,right:!0}),s.current.scrollLeft>0&&h({left:!0,right:!0}))}),[t,a,s.current]),Object(b.jsxs)(j,{...c,children:[d.left&&Boolean(s.current)&&Object(b.jsx)(m,{sx:{left:e=>e.spacing(-7),right:"auto"},children:Object(b.jsx)(u.a,{color:"inherit",onClick:()=>s.current.scrollLeft-=Math.round(s.current.offsetWidth),children:Object(b.jsx)(l.a,{fontSize:"large",color:"inherit"})})}),d.right&&Boolean(s.current)&&Object(b.jsx)(m,{sx:{left:"auto",right:e=>e.spacing(-7)},children:Object(b.jsx)(u.a,{color:"inherit",onClick:()=>s.current.scrollLeft+=Math.round(s.current.offsetWidth),children:Object(b.jsx)(i.a,{fontSize:"large",color:"inherit"})})}),Object(b.jsx)(p,{className:t&&"dontScroll",ref:s,onScroll:e=>{const t=Math.round(e.target.scrollLeft),a=e.target.scrollWidth-e.target.offsetWidth;0===t&&h({left:!1,right:!0}),!(t>0&&t<a-10)||d.left&&d.right||h({left:!0,right:!0}),t>=a-10&&d.right&&(h({left:!0,right:!1}),n&&n())},...o,children:a})]})}},222:function(e,t,a){"use strict";a.d(t,"a",(function(){return Ue}));var n=a(0),r=a.n(n),c=a(5),o=a(27),i=a(79),s=a(685),l=a(195),d=a(81),u=a(28),b=a(645),j=a(20),p=a(37),m=a(725),h=a(700),g=a(656),x=a(111),f=a(689),O=a(648),v=a(706),w=a(647),y=a(649),S=a(720),k=a(716),C=a(724),_=a(721),A=a(707),I=a(729),E=a(731),z=a(191),R=a(199),M=a.n(R),T=a(277),B=a.n(T),P=a(717),N=a(202),L=a.n(N),D=a(1);function W(e){return Object(D.jsx)(x.a,{sx:{textAlign:"right",pt:{md:2},mb:{xs:1,md:3}},children:Object(D.jsx)(P.a,{edge:"start","aria-label":"menu",onClick:()=>e.handleBack(),size:"large",sx:{color:"#6B7074"},children:Object(D.jsx)(L.a,{fontSize:"inherit"})})})}var F,G=a.p+"static/media/profile.5d267387.svg",V=a.p+"static/media/login.0472535a.svg",H=a.p+"static/media/blog.6cf6497f.svg";function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},q.apply(null,arguments)}function Z(e,t){let{title:a,titleId:r,...c}=e;return n.createElement("svg",q({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,F||(F=n.createElement("g",{id:"Raggruppa_5056","data-name":"Raggruppa 5056",transform:"translate(-89 -717)"},n.createElement("rect",{id:"Rettangolo_2146","data-name":"Rettangolo 2146",
1width:24,height:24,transform:"translate(89 717)",fill:"none"}),n.createElement("g",{id:"Raggruppa_5039","data-name":"Raggruppa 5039",transform:"translate(89 720)"},n.createElement("path",{id:"Tracciato_9015","data-name":"Tracciato 9015",d:"M69.674,59.288H85.662a3.968,3.968,0,0,1,3.964,3.964v7.641a3.968,3.968,0,0,1-3.964,3.964H69.674a3.968,3.968,0,0,1-3.964-3.964V63.252a3.968,3.968,0,0,1,3.964-3.964M85.662,73.427a2.535,2.535,0,0,0,2.532-2.534V63.252a2.534,2.534,0,0,0-2.532-2.532H69.674a2.534,2.534,0,0,0-2.532,2.532v7.641a2.534,2.534,0,0,0,2.532,2.532Z",transform:"translate(-65.71 -59.288)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9016","data-name":"Tracciato 9016",d:"M85.871,85.27H75.308a.716.716,0,1,1,0-1.433H85.871a.716.716,0,1,1,0,1.433",transform:"translate(-68.23 -66.251)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9017","data-name":"Tracciato 9017",d:"M79.967,72.135a.717.717,0,0,1-.469-1.258l2.43-2.1-2.405-1.9a.716.716,0,0,1,.889-1.123l3.084,2.44a.716.716,0,0,1,.117,1.006.694.694,0,0,1-.092.1l-3.084,2.67a.713.713,0,0,1-.468.175",transform:"translate(-69.551 -61.078)",fill:"currentColor"})))))}const Y=n.forwardRef(Z);var U,X;a.p;function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},J.apply(null,arguments)}function K(e,t){let{title:a,titleId:r,...c}=e;return n.createElement("svg",J({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:24,height:23.997,viewBox:"0 0 24 23.997",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,U||(U=n.createElement("defs",null,n.createElement("clipPath",{id:"clip-path"},n.createElement("rect",{id:"Rettangolo_3480","data-name":"Rettangolo 3480",width:24,height:23.997,fill:"currentColor"})))),X||(X=n.createElement("g",{id:"Raggruppa_9702","data-name":"Raggruppa 9702",clipPath:"url(#clip-path)"},n.createElement("path",{id:"Tracciato_9720","data-name":"Tracciato 9720",d:"M23.98,9.227a.911.911,0,0,0-.249-.791l-.17-.17L18.45,3.156,15.562.268a.918.918,0,0,0-.744-.26C14.806.008,14.8,0,14.784,0H5.525A5.53,5.53,0,0,0,0,5.522V18.475A5.53,5.53,0,0,0,5.525,24H18.476A5.529,5.529,0,0,0,24,18.475V9.324c0-.034-.018-.064-.019-.1M15.829,3.118,20.88,8.169H16.062a.233.233,0,0,1-.233-.234Zm2.647,19.053H5.525a3.7,3.7,0,0,1-3.7-3.7V5.522a3.7,3.7,0,0,1,3.7-3.7H14V7.935A2.063,2.063,0,0,0,16.062,10h6.109v8.479a3.7,3.7,0,0,1-3.7,3.7",transform:"translate(0 0)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9721","data-name":"Tracciato 9721",d:"M11.825,11.25a3.942,3.942,0,0,0-.562-4.87L9.227,4.344A.913.913,0,0,0,7.934,5.634L9.971,7.671a2.1,2.1,0,0,1,.493,2.218L7.033,6.458A.913.913,0,0,0,5.74,7.748l3.421,3.421a2.186,2.186,0,0,1-2.206-.482L4.919,8.652A.913.913,0,0,0,3.627,9.942l2.036,2.036a3.944,3.944,0,0,0,4.87.563l4.826,4.825a.913.913,0,0,0,1.292-1.291Z",transform:"translate(0.843 1.023)",fill:"currentColor"}))))}const Q=n.forwardRef(K);var $;a.p;function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ee.apply(null,arguments)}function te(e,t){let{title:a,titleId:r,...c}=e;return n.createElement("svg",ee({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,$||($=n.createElement("g",{id:"Raggruppa_5064","data-name":"Raggruppa 5064",transform:"translate(-90 -895)"},n.createElement("rect",{id:"Rettangolo_2153","data-name":"Rettangolo 2153",width:24,height:24,transform:"translate(90 895)",fill:"none"}),n.createElement("g",{id:"Raggruppa_5045","data-name":"Raggruppa 5045",transform:"translate(92.504 895.737)"},n.createElement("path",{id:"Tracciato_9020","data-name":"Tracciato 9020",d:"M77.2,329.335a9.494,9.494,0,0,1-7.583-15.2.667.667,0,1,1,1.067.8,8.16,8.16,0,1,0,13.067.034.667.667,0,0,1,1.067-.8,9.493,9.493,0,0,1-7.613,15.165Z",transform:"translate(-67.711 -306.811)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9021","data-name":"Tracciato 9021",d:"M82.807,319.359a1.1,1.1,0,0,1,1.086.917c.009.057.02.116.031.175a3.765,3.765,0,0,1,.081.652,4.108,4.108,0,0,1-4.1,4.1,4.185,4.185,0,0,1-.467-.026,4.14,4.14,0,0,1-3.037-2.03,3.851,3.851,0,0,1-.516-2.823,1.206,1.206,0,0,1,1.177-.957,1.178,1.178,0,0,1,.193.016,16.8,16.8,0,0,0,2.652.16,14.04,14.04,0,0,0,2.608-.151,1.247,1.247,0,0,1,.294-.037M79.9,320.88a19.1,19.1,0,0,1-2.739-.157,2.541,2.541,0,0,0,.377,1.745,2.8,2.8,0,0,0,2.041,1.389,2.865,2.865,0,0,0,.321.018,2.773,2.773,0,0,0,2.77-2.77,2.661,2.661,0,0,0-.052-.37,17.149,17.149,0,0,1-2.717.146",transform:"translate(-70.409 -308.642)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9022","data-name":"Tracciato 9022",d:"M78.732,303.287h.076a2.775,2.775,0,0,1,2.523,1.562,3.07,3.07,0,0,1,1.141-.222,2.667,2.667,0,0,1,2.583,1.816,2.4,2.4,0,0,1,.1.637c0,.049.005.095.009.133v.064a2.667,2.667,0,0,1-2.529,2.8l-.071,0c0,.255-.009.5-.021.747-.01.216-.019.419-.019.621v.009c-.007.525-.432.906-1.262,1.133a9.921,9.921,0,0,1-2.476.257,10.848,10.848,0,0,1-2.511-.245c-.327-.081-1.321-.329-1.321-1.119,0-.208-.009-.418-.019-.639-.011-.25-.
1023-.507-.02-.77a2.712,2.712,0,0,1-2.1-1.1,2.812,2.812,0,0,1-.382-2.538,2.652,2.652,0,0,1,2.575-1.815,2.951,2.951,0,0,1,1.133.228l.014.006a2.7,2.7,0,0,1,2.576-1.568m2.417,2.987a1.09,1.09,0,0,1-.966-.738,1.439,1.439,0,0,0-1.4-.915h-.049a1.383,1.383,0,0,0-1.379.828,1.191,1.191,0,0,1-1.047.8,1.743,1.743,0,0,1-.673-.167,1.618,1.618,0,0,0-.624-.127,1.327,1.327,0,0,0-1.3.881,1.5,1.5,0,0,0,.186,1.35,1.387,1.387,0,0,0,1.155.555h.006a1.074,1.074,0,0,1,1.2,1.234c-.007.261,0,.527.017.807.006.14.013.283.017.429a7.509,7.509,0,0,0,2.5.3,6.779,6.779,0,0,0,2.407-.3c0-.151.011-.3.018-.444.013-.285.026-.555.016-.819a1.182,1.182,0,0,1,.283-.879,1.218,1.218,0,0,1,.9-.316,1.333,1.333,0,0,0,1.422-1.238,1.251,1.251,0,0,0,0-.212c0-.051-.007-.1-.009-.149a1.314,1.314,0,0,0-.037-.3v0a1.32,1.32,0,0,0-1.312-.886,1.762,1.762,0,0,0-.726.161A1.48,1.48,0,0,1,81.149,306.273Z",transform:"translate(-69.236 -303.284)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9023","data-name":"Tracciato 9023",d:"M73.4,332.707a.667.667,0,0,1-.374-1.219,10.457,10.457,0,0,1,11.694,0,.667.667,0,1,1-.747,1.1,9.123,9.123,0,0,0-10.2,0,.665.665,0,0,1-.373.115",transform:"translate(-69.386 -312.089)",fill:"currentColor"})))))}const ae=n.forwardRef(te);a.p;var ne=a(207);a.p;a.p;var re=a(215);var ce,oe;a.p;function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ie.apply(null,arguments)}function se(e,t){let{title:a,titleId:r,...c}=e;return n.createElement("svg",ie({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,ce||(ce=n.createElement("defs",null,n.createElement("clipPath",{id:"clip-path"},n.createElement("rect",{id:"Rettangolo_2159","data-name":"Rettangolo 2159",width:18.442,height:18.442,fill:"currentColor"})))),oe||(oe=n.createElement("g",{id:"Raggruppa_5078","data-name":"Raggruppa 5078",transform:"translate(-90 -1033)"},n.createElement("g",{id:"Raggruppa_5075","data-name":"Raggruppa 5075",transform:"translate(49 -3)"},n.createElement("rect",{id:"Rettangolo_2160","data-name":"Rettangolo 2160",width:24,height:24,transform:"translate(41 1036)",fill:"none"}),n.createElement("g",{id:"Raggruppa_5072","data-name":"Raggruppa 5072",transform:"translate(43.779 1038.999)"},n.createElement("g",{id:"Raggruppa_5071","data-name":"Raggruppa 5071",transform:"translate(0 0.001)",clipPath:"url(#clip-path)"},n.createElement("path",{id:"Tracciato_9061","data-name":"Tracciato 9061",d:"M16.6,1.383a.436.436,0,0,1,.461.461V16.6a.436.436,0,0,1-.461.461H1.844a.436.436,0,0,1-.461-.461V1.844a.436.436,0,0,1,.461-.461ZM16.6,0H1.844A1.85,1.85,0,0,0,0,1.844V16.6a1.85,1.85,0,0,0,1.844,1.844H16.6A1.85,1.85,0,0,0,18.443,16.6V1.844A1.85,1.85,0,0,0,16.6,0",transform:"translate(0 0)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9062","data-name":"Tracciato 9062",d:"M12.954,16.864a.727.727,0,0,1-.737-.737V10.87a.712.712,0,0,1,.737-.645.727.727,0,0,1,.737.737v5.256a.782.782,0,0,1-.737.646",transform:"translate(-3.734 -3.125)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9063","data-name":"Tracciato 9063",d:"M12.914,6.507a.83.83,0,1,1-.83.83.83.83,0,0,1,.83-.83",transform:"translate(-3.693 -1.989)",fill:"currentColor"})))))))}const le=n.forwardRef(se);a.p;var de,ue=a(216);a(211);function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},be.apply(null,arguments)}function je(e,t){let{title:a,titleId:r,...c}=e;return n.createElement("svg",be({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,de||(de=n.createElement("g",{id:"Raggruppa_5063","data-name":"Raggruppa 5063",transform:"translate(-41 -895)"},n.createElement("rect",{id:"Rettangolo_2154","data-name":"Rettangolo 2154",width:24,height:24,transform:"translate(41 895)",fill:"none"}),n.createElement("g",{id:"Raggruppa_5048","data-name":"Raggruppa 5048",transform:"translate(43.503 895.735)"},n.createElement("path",{id:"Tracciato_9047","data-name":"Tracciato 9047",d:"M18.922,315.035a.667.667,0,0,0-1.067.8A8.168,8.168,0,0,1,16.722,326.8a10.4,10.4,0,0,0-10.833,0,8.161,8.161,0,0,1-1.1-11.007A.667.667,0,0,0,3.72,315a9.5,9.5,0,1,0,15.2.042",transform:"translate(-1.809 -307.672)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9048","data-name":"Tracciato 9048",d:"M16.732,320.234c-.035.006-.071.013-.106.023a13.407,13.407,0,0,1-2.63.155,16.515,16.515,0,0,1-2.654-.163,1.207,1.207,0,0,0-1.353.933v.009a3.79,3.79,0,0,0,.509,2.813,4.177,4.177,0,0,0,3.041,2.039,4.1,4.1,0,0,0,4.545-3.608,3.868,3.868,0,0,0,.025-.519,5.649,5.649,0,0,0-.111-.776,1.1,1.1,0,0,0-1.267-.908",transform:"translate(-4.508 -309.5)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9049","data-name":"Tracciato 9049",d:"M9.017,310.942c0,.257.009.513.02.769.009.213.019.425.019.637,0,1.128,2.084,1.365,3.833,1.365,1.7,0,3.72-.241,3.739-1.4,0-.207.01-.414.019-.621.012-.247.023-.5.021-.743.039,0,.078,0,.117-.006a2.667,2.667,0,0,0,2.484-2.811,3.42,3.42,0,0,0-.1-.781l-.021-.076a2.773,2.773,0,0,0-3.564-1.635c-.051.019-.1.039-.151.061a2.757,2.757,0,0,0-2.491-1.554h-.026a2.729,2.729,0,0,0-2.657,1.57q-.1-.046-.2-.082a2.743,2.743,0,0,0-3.51,1.633,2.7,2.7,0,0,0-.17,1.007,2.734,2.734,0,0,0,2.637,2.667",transform:"translate(-3.333 -304.142)",fill:"currentColor"})))))}const pe=n.forwardRef(je);var me;a.p;function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},he.apply(null,arguments)}function ge(e,t){let{title:a,titleId:r,...c}=e;return n.createElement("svg",he({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,me||(me=n.createElement("g",{id:"Raggruppa_5053","data-name":"Raggruppa 5053",transform:"translate(-41 -677)"},n.createElement("rect",{id:"Rettangolo_2142","data-name":"Rettangolo 2142",width:24,height:24,transform:"translate(41 677)",fill:"none"}),n.createElement("g",{id:"Raggruppa_5022","data-name":"Raggruppa 5022",transform:"translate(41.641 679)"},n.createElement("path",{id:"Tracciato_9010","data-name":"Tracciato 9010",d:"M6.777,19.99a.71
15.715,0,0,1-.683-.5c-.585-1.832-1.4-5.316-2.437-10.361q-.807.744-1.607,1.5a.716.716,0,1,1-.984-1.042c2.116-2,4.285-3.937,6.383-5.814,1.232-1.1,2.464-2.2,3.693-3.322a1.134,1.134,0,0,1,.094-.092,1.435,1.435,0,0,1,1.994.09c1.135,1.027,2.271,2.038,3.4,3.048,2.2,1.964,4.484,4,6.7,6.09a.716.716,0,0,1-.984,1.042Q21.48,9.807,20.6,9c-.049.253-.1.519-.155.8-.616,3.161-1.459,7.49-2.167,9.7a.717.717,0,0,1-.682.5h0s-2.315-.014-3.592-.016a.717.717,0,0,1-.715-.711l-.027-4.088H11.04l.047,4.075a.718.718,0,0,1-.716.725c-1.547,0-3.2.008-3.577.018H6.777",transform:"translate(-0.841 0.001)",fill:"currentColor"})))))}const xe=n.forwardRef(ge);var fe;a.p,a(217);function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Oe.apply(null,arguments)}function ve(e,t){let{title:a,titleId:r,...c}=e;return n.createElement("svg",Oe({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,fe||(fe=n.createElement("g",{id:"Raggruppa_5065","data-name":"Raggruppa 5065",transform:"translate(-41 -941)"},n.createElement("rect",{id:"Rettangolo_2155","data-name":"Rettangolo 2155",width:24,height:24,transform:"translate(41 941)",fill:"none"}),n.createElement("g",{id:"Raggruppa_5034","data-name":"Raggruppa 5034",transform:"translate(44 943)"},n.createElement("path",{id:"Tracciato_9050","data-name":"Tracciato 9050",d:"M13.52,377.051H9.161a3.138,3.138,0,0,1,0-6.276c3.933,0,5.014,5.2,5.061,5.419a.717.717,0,0,1-.559.845.745.745,0,0,1-.143.014m-4.359-4.846a1.706,1.706,0,0,0,0,3.411h3.413c-.422-1.246-1.439-3.411-3.413-3.411",transform:"translate(-4.544 -370.775)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9051","data-name":"Tracciato 9051",d:"M20.563,377.051H16.2a.716.716,0,0,1-.717-.716.7.7,0,0,1,.014-.144c.044-.218,1.129-5.416,5.062-5.416a3.138,3.138,0,1,1,0,6.276m-3.413-1.433h3.413a1.706,1.706,0,0,0,.07-3.411h-.07c-1.974,0-2.991,2.164-3.413,3.411",transform:"translate(-7.229 -370.775)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9052","data-name":"Tracciato 9052",d:"M12.054,381.129H4.19a.232.232,0,0,0-.231.231v1.807a.232.232,0,0,0,.231.231h7.863a.232.232,0,0,0,.231-.231V381.36a.232.232,0,0,0-.231-.231",transform:"translate(-3.959 -373.712)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9053","data-name":"Tracciato 9053",d:"M25.3,381.129H17.626a.232.232,0,0,0-.231.231v1.807a.231.231,0,0,0,.23.231H25.3a.232.232,0,0,0,.233-.23h0V381.36a.232.232,0,0,0-.231-.231",transform:"translate(-7.77 -373.712)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9054","data-name":"Tracciato 9054",d:"M12.32,386.3H5.367a.232.232,0,0,0-.231.231v7.79a.232.232,0,0,0,.231.231h6.954a.232.232,0,0,0,.231-.231v-7.79a.232.232,0,0,0-.231-.231",transform:"translate(-4.293 -375.178)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9055","data-name":"Tracciato 9055",d:"M24.673,394.549H17.719a.232.232,0,0,1-.231-.231v-7.79a.232.232,0,0,1,.231-.231h6.954a.232.232,0,0,1,.231.231v7.79a.232.232,0,0,1-.231.231",transform:"translate(-7.796 -375.178)",fill:"currentColor"})))))}const we=n.forwardRef(ve);var ye,Se;a.p,a(225);function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},ke.apply(null,arguments)}function Ce(e,t){let{title:a,titleId:r,...c}=e;return n.createElement("svg",ke({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,ye||(ye=n.createElement("defs",null,n.createElement("clipPath",{id:"clip-path"},n.createElement("rect",{id:"Rettangolo_2159","data-name":"Rettangolo 2159",width:18.442,height:18.442,fill:"currentColor"})))),Se||(Se=n.createElement("g",{id:"Raggruppa_5077","data-name":"Raggruppa 5077",transform:"translate(-41 -1033)"},n.createElement("rect",{id:"Rettangolo_2160","data-name":"Rettangolo 2160",width:24,height:24,transform:"translate(41 1033)",fill:"none"}),n.createElement("g",{id:"Raggruppa_5076","data-name":"Raggruppa 5076",transform:"translate(-0.579)"},n.createElement("rect",{id:"Rettangolo_2161","data-name":"Rettangolo 2161",width:17,height:17,rx:1,transform:"translate(45 1037)",fill:"currentColor"}),n.createElement("g",{id:"Raggruppa_5072","data-name":"Raggruppa 5072",transform:"translate(44.358 1035.999)"},n.createElement("g",{id:"Raggruppa_5071","data-name":"Raggruppa 5071",transform:"translate(0 0.001)",clipPath:"url(#clip-path)"},n.createElement("path",{id:"Tracciato_9061","data-name":"Tracciato 9061",d:"M16.6,1.383a.436.436,0,0,1,.461.461V16.6a.43
16.436,0,0,1-.461.461H1.844a.436.436,0,0,1-.461-.461V1.844a.436.436,0,0,1,.461-.461ZM16.6,0H1.844A1.85,1.85,0,0,0,0,1.844V16.6a1.85,1.85,0,0,0,1.844,1.844H16.6A1.85,1.85,0,0,0,18.443,16.6V1.844A1.85,1.85,0,0,0,16.6,0",transform:"translate(0 0)",fill:"currentColor"}),n.createElement("path",{id:"Tracciato_9062","data-name":"Tracciato 9062",d:"M12.954,16.864a.727.727,0,0,1-.737-.737V10.87a.712.712,0,0,1,.737-.645.727.727,0,0,1,.737.737v5.256a.782.782,0,0,1-.737.646",transform:"translate(-3.734 -3.125)",fill:"#27292d"}),n.createElement("path",{id:"Tracciato_9063","data-name":"Tracciato 9063",d:"M12.914,6.507a.83.83,0,1,1-.83.83.83.83,0,0,1,.83-.83",transform:"translate(-3.693 -1.989)",fill:"#27292d"})))))))}const _e=n.forwardRef(Ce);a.p;var Ae,Ie,Ee,ze,Re,Me=a(230),Te=a(228);function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Be.apply(null,arguments)}function Pe(e,t){let{title:a,titleId:r,...c}=e;return n.createElement("svg",Be({id:"Raggruppa_6522","data-name":"Raggruppa 6522",xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":r},c),a?n.createElement("title",{id:r},a):null,Ae||(Ae=n.createElement("path",{id:"Tracciato_9186","data-name":"Tracciato 9186",d:"M5.816,21.124a2.658,2.658,0,1,1-2.659-2.659A2.659,2.659,0,0,1,5.816,21.124Z",transform:"translate(0.424 -0.707)",fill:"currentColor"})),Ie||(Ie=n.createElement("path",{id:"Tracciato_9186_-_Contorno","data-name":"Tracciato 9186 - Contorno",d:"M3.082,17.465A3.583,3.583,0,1,1-.5,21.048,3.587,3.587,0,0,1,3.082,17.465Zm0,5.317a1.734,1.734,0,1,0-1.733-1.734A1.736,1.736,0,0,0,3.082,22.782Z",transform:"translate(0.5 -0.631)",fill:"currentColor"})),Ee||(Ee=n.createElement("path",{id:"Tracciato_9187","data-name":"Tracciato 9187",d:"M23.611,3.159A2.658,2.658,0,1,1,20.953.5,2.659,2.659,0,0,1,23.611,3.159Z",transform:"translate(-0.536 0.424)",fill:"currentColor"})),ze||(ze=n.createElement("path",{id:"Tracciato_9187_-_Contorno","data-name":"Tracciato 9187 - Contorno",d:"M20.877-.5A3.583,3.583,0,1,1,17.3,3.083,3.587,3.587,0,0,1,20.877-.5Zm0,5.317a1.734,1.734,0,1,0-1.733-1.734A1.736,1.736,0,0,0,20.877,4.817Z",transform:"translate(-0.46 0.5)",fill:"currentColor"})),Re||(Re=n.createElement("path",{id:"Tracciato_9188","data-name":"Tracciato 9188",d:"M15.966,23.5a5.07,5.07,0,0,1-5.093-5.036V4.536A3.191,3.191,0,0,0,7.667,1.366h-.2A3.191,3.191,0,0,0,4.264,4.536v8.135a.944.944,0,0,1-1.888,0V4.536A5.07,5.07,0,0,1,7.469-.5h.2A5.07,5.07,0,0,1,12.76,4.536V18.463a3.206,3.206,0,0,0,6.412,0V10.328a.944.944,0,0,1,1.888,0v8.135A5.071,5.071,0,0,1,15.966,23.5Z",transform:"translate(0.283 0.5)",fill:"currentColor"})))}const Ne=n.forwardRef(Pe);a.p;var Le=a.p+"static/media/comingsoon.2fdcc24c.svg",De=a(254),We=a.n(De),Fe=a(255),Ge=a.n(Fe);const Ve=Object(s.a)((e=>({menuIcon:{color:"#fff",minWidth:"40px",justifyContent:"center",marginRight:"20px"}}))),He=Object(b.a)(m.a)((e=>{let{theme:t}=e;return{"& .MuiPaper-root":{backgroundColor:"#2F3337",color:"#fff"}}})),qe=Object(b.a)(h.a)((e=>{let{theme:t}=e;return{"&.active":{"& .icon":{"&.active":{display:"inline"},"&.inactive":{display:"none"}}},"& .icon":{"&.active":{display:"none"},"&.inactive":{display:"inline"}}}})),Ze=r.a.forwardRef((function(e,t){return Object(D.jsx)(g.a,{direction:"left",ref:t,...e})})),Ye=e=>{const{i18n:t,t:a}=Object(i.a)(),{currentCategory:n}=Object(d.a)(),{packageType:s,isWellness:b}=Object(l.a)(),m=Object(c.i)(),h=Object(c.h)(),{handleMenuClose:g}=e,E=Ve(),{auth:R,logout:T}=r.a.useContext(j.a),{config:P}=r.a.useContext(p.a),[N,L]=r.a.useState({courses:!1,recipes:!1}),[F,q]=r.a.useState(!1);return Object(D.jsxs)(x.a,{p:1,sx:{pb:{xs:10,sm:1}},children:[Object(D.jsx)(W,{handleBack:()=>g()}),Object(D.jsxs)(x.a,{sx:{borderRadius:"14px",backgroundColor:"#555C64",mb:{xs:1,md:3}},children:[Object(D.jsxs)(f.a,{sx:{p:2,display:"flex",width:"100%",textAlign:"left"},onClick:()=>{R.isAuthenticated?q(!F):h.push("/".concat(t.language,"/auth/login"),{from:m.pathname+m.search})},children:[Object(D.jsx)(O.a,{className:E.menuIcon,children:R.isAuthenticated&&R.user&&R.user.data&&R.user.data.img_avatar?Object(D.jsx)(v.a,{src:R.user.data.img_avatar}):Object(D.jsx)("img",{src:R.isAuthenticated?G:V})}),Object(D.jsx)(w.a,{children:Object(D.jsxs)(y.a,{direction:"row",alignItems:"center",spacing:3,children:[Object(D.jsx)(S.a,{fontSize:"inherit",color:"inherit",children:Object(D.jsx)("b",{children:R.isAuthenticated?R.user.data.first_name||a("Profilo"):a("Accedi")})}),R.isAuthenticated&&R.user&&R.user.data&&Object(D.jsxs)(x.a,{sx:{borderRadius:"5px",background:"#41474E",padding:"1px 10px"},children:[Object(D.jsx)(k.a,{component:Me.a,color:"gold",sx:{fontSize:16,verticalAlign:"middle"}}),"\xa0",Object(D.jsx)("b",{children:R.user.data.achievements_count||"0"})]})]})}),R.isAuthenticated&&Object(D.jsx)(r.a.Fragment,{children:F?Object(D.jsx)(B.a,{fontSize:"large"}):Object(D.jsx)(M.a,{fontSize:"large"})})]}),Object(D.jsx)(C.a,{in:F,children:Object(D.jsxs)(_.a,{children:[Object(D.jsxs)(qe,{button:!0,component:o.b,activeStyle:{textDecoration:"underline"},to:"/".concat(t.language,"/user/progress"),children:[Object(D.jsx)(O.a,{className:E.menuIcon}),Object(D.jsx)(w.a,{children:a("I miei progressi")})]}),Object(D.jsxs)(qe,{button:!0,component:o.b,activeStyle:{textDecoration:"underline"},to:"/".concat(t.language,"/user/profile"),children:[Object(D.jsx)(O.a,{className:E.menuIcon}),Object(D.jsx)(w.a,{children:a("Dati account")}
1)]}),Object(D.jsxs)(qe,{component:o.b,activeStyle:{textDecoration:"underline"},to:"/".concat(t.language,"/user/referral"),button:!0,children:[Object(D.jsx)(O.a,{className:E.menuIcon}),Object(D.jsx)(w.a,{children:a("Invita un amico")})]}),Object(D.jsxs)(qe,{activeStyle:{textDecoration:"underline"},onClick:()=>T(),button:!0,sx:{mb:2},children:[Object(D.jsx)(O.a,{className:E.menuIcon}),Object(D.jsx)(w.a,{children:a("Logout")})]})]})})]}),Object(D.jsxs)(_.a,{children:[Object(D.jsxs)(qe,{button:!0,exact:!0,component:o.b,activeStyle:{textDecoration:"underline"},to:"/".concat(t.language),onClick:()=>{Object(u.e)({event:"menu_nav",event_id:"08",event_trigger:"GAevent",event_detail:"home"})},sx:{mb:1},children:[Object(D.jsxs)(O.a,{className:E.menuIcon,children:[Object(D.jsx)(k.a,{className:"icon inactive",component:ne.a,sx:{color:e=>e.palette.text.primary,fontSize:"2rem"}}),Object(D.jsx)(k.a,{className:"icon active",component:xe,sx:{color:e=>e.palette.text.primary,fontSize:"2rem"}})]}),Object(D.jsx)(w.a,{children:Object(D.jsx)("b",{children:a("Home")})})]}),Object(D.jsxs)(qe,{button:!0,onClick:()=>{L({...N,courses:!N.courses})},sx:{mb:1},children:[Object(D.jsxs)(O.a,{className:E.menuIcon,children:[Object(D.jsx)(k.a,{className:"icon inactive",component:Y,sx:{color:e=>e.palette.text.primary,fontSize:"2rem"}}),Object(D.jsx)(k.a,{className:"icon active",component:ue.a,sx:{color:e=>e.palette.text.primary,fontSize:"2rem"}})]}),Object(D.jsx)(w.a,{children:Object(D.jsx)("b",{children:a("Corsi di cucina")})}),N.courses?Object(D.jsx)(We.a,{}):Object(D.jsx)(Ge.a,{})]}),Object(D.jsxs)(C.a,{in:N.courses,children:[Object(D.jsxs)(qe,{button:!0,component:o.b,activeStyle:{textDecoration:"underline"},to:"/".concat(t.language,"/").concat(a("corsi")),onClick:()=>{Object(u.e)({event:"menu_nav",event_id:"08",event_trigger:"GAevent",event_detail:"masterclass"})},sx:{mb:1},children:[Object(D.jsx)(O.a,{className:E.menuIcon}),Object(D.jsx)(w.a,{children:a("MasterClass")})]}),P.basics_enabled&&Object(D.jsxs)(qe,{button:!0,component:o.b,to:"/".concat(t.language,"/").concat(a("scuola")),onClick:()=>{Object(u.e)({event:"menu_nav",event_id:"08",event_trigger:"GAevent",event_detail:"basics"})},sx:{mb:1,"&.active":{"& .text":{textDecoration:"underline"}}},children:[Object(D.jsx)(O.a,{className:E.menuIcon}),Object(D.jsx)(w.a,{children:a("La scuola")})]}),P.horeca_enabled&&Object(D.jsxs)(qe,{button:!0,component:o.b,to:"/".concat(t.language,"/").concat(a("horeca")),onClick:()=>{Object(u.e)({event:"menu_nav",event_id:"08",event_trigger:"GAevent",event_detail:"horeca"})},sx:{mb:1,"&.active":{"& .text":{textDecoration:"underline"}}},children:[Object(D.jsx)(O.a,{className:E.menuIcon}),Object(D.jsx)(w.a,{children:a("HoReCa")})]}),P.wellness_enabled&&Object(D.jsxs)(qe,{button:!0,component:o.b,to:"/".concat(t.language,"/").concat(a("benessere")),onClick:()=>{Object(u.e)({event:"menu_nav",event_id:"08",event_trigger:"GAevent",event_detail:"wellness"})},sx:{mb:1,"&.active":{borderRadius:"14px",py:1.5,background:"#444E43","& .text":{textDecoration:"underline"}}},children:[Object(D.jsx)(O.a,{className:E.menuIcon}),Object(D.jsx)(w.a,{children:a("Benessere")})]})]}),P.recipes_enabled&&Object(D.jsxs)(D.Fragment,{children:[Object(D.jsxs)(qe,{button:!0,onClick:()=>{L({...N,recipes:!N.recipes})},sx:{mb:1},children:[Object(D.jsx)(O.a,{className:E.menuIcon,children:Object(D.jsx)(k.a,{className:"icon inactive",component:Q,sx:{color:e=>e.palette.text.primary,fontSize:"2rem"}})}),Object(D.jsx)(w.a,{children:Object(D.jsx)("b",{children:a("Ricette")})}),Object(D.jsx)(A.a,{color:"white",size:"small",label:Object(D.jsx)("b",{children:a("Novit\xe0")}),sx:{mr:1}}),N.recipes?Object(D.jsx)(We.a,{}):Object(D.jsx)(Ge.a,{})]}),Object(D.jsxs)(C.a,{in:N.recipes,children:[Object(D.jsxs)(qe,{button:!0,component:o.b,activeStyle:{textDecoration:"underline"},to:"/".concat(t.language,"/").concat(a("ricette")),onClick:()=>{Object(u.e)({event:"menu_nav",event_id:"08",event_trigger:"GAevent",event_detail:"recipes"})},sx:{mb:1},children:[Object(D.jsx)(O.a,{className:E.menuIcon}),Object(D.jsx)(w.a,{children:a("Sezione Ricette")})]}),Object(D.jsxs)(qe,{button:!0,component:o.b,activeStyle:{textDecoration:"underline"},to:"/".concat(t.language,"/").concat(a("pasti")),onClick:()=>{Object(u.e)({event:"menu_nav",event_id:"08",event_trigger:"GAevent",event_detail:"meals"})},sx:{mb:1},children:[Object(D.jsx)(O.a,{className:E.menuIcon}),Object(D.jsx)(w.a,{children:a("Pasti")})]}),Object(D.jsxs)(qe,{button:!0,component:o.b,activeStyle:{textDecoration:"underline"},to:"/".concat(t.language,"/user/recipes"),onClick:()=>{Object(u.e)({event:"menu_nav",event_id:"08",event_trigger:"GAevent",event_detail:"favorites_recipes"})},sx:{mb:1},children:[Object(D.jsx)(O.a,{className:E.menuIcon}),Object(D.jsx)(w.a,{children:a("Ricette preferite")})]}),Object(D.jsxs)(qe,{button:!0,component:o.b,activeStyle:{textDecoration:"underline"},to:"/".concat(t.language,"/user/shopping-list"),onClick:()=>{Object(u.e)({event:"menu_nav",event_id:"08",event_trigger:"GAevent",event_detail:"shopping_list"})}
1,sx:{mb:1},children:[Object(D.jsx)(O.a,{className:E.menuIcon}),Object(D.jsx)(w.a,{children:a("Lista della spesa")})]})]})]}),P.learning_paths_enabled&&Object(D.jsxs)(qe,{button:!0,component:o.b,activeStyle:{textDecoration:"underline"},to:"/".concat(t.language,"/").concat(a("percorsi")),onClick:()=>{Object(u.e)({event:"menu_nav",event_id:"08",event_trigger:"GAevent",event_detail:"learning_paths"})},sx:{mb:1},children:[Object(D.jsxs)(O.a,{className:E.menuIcon,children:[Object(D.jsx)(k.a,{className:"icon inactive",component:Te.a,sx:{color:e=>e.palette.text.primary,fontSize:"2rem"}}),Object(D.jsx)(k.a,{className:"icon active",component:Ne,sx:{color:e=>e.palette.text.primary,fontSize:"2rem"}})]}),Object(D.jsx)(w.a,{children:Object(D.jsx)("b",{children:a("Percorsi")})})]}),"it"===t.language&&Object(D.jsxs)(qe,{button:!0,component:I.a,activeStyle:{textDecoration:"underline"},href:"https://ac.academia.tv/comingsoon",onClick:()=>{Object(u.e)({event:"menu_nav",event_id:"08",event_trigger:"GAevent",event_detail:"coming_soon"})},sx:{mb:1},children:[Object(D.jsx)(O.a,{className:E.menuIcon,children:Object(D.jsx)("img",{src:Le,width:"30"})}),Object(D.jsx)(w.a,{children:Object(D.jsx)("b",{children:a("Corsi in arrivo")})})]}),Object(D.jsxs)(qe,{button:!0,component:o.b,activeStyle:{textDecoration:"underline"},to:{pathname:"/".concat(t.language,"/giftcard"),search:"from=".concat(s?s.key:"masterclass")},onClick:()=>{Object(u.e)({event:"menu_nav",event_id:"08",event_trigger:"GAevent",event_detail:"giftcard"})},sx:{mb:1},children:[Object(D.jsxs)(O.a,{className:E.menuIcon,children:[Object(D.jsx)(k.a,{className:"icon inactive",viewBox:"0 0 29.044 29.043",component:re.a,sx:{color:e=>e.palette.text.primary,fontSize:"2rem"}}),Object(D.jsx)(k.a,{className:"icon active",component:we,sx:{color:e=>e.palette.text.primary,fontSize:"2rem"}})]}),Object(D.jsx)(w.a,{children:Object(D.jsx)("b",{children:a("Giftcard - Regalo")})})]}),Object(D.jsxs)(qe,{button:!0,component:o.b,activeStyle:{textDecoration:"underline"},to:"/".concat(t.language,"/").concat(a("maestri")),onClick:()=>{Object(u.e)({event:"menu_nav",event_id:"08",event_trigger:"GAevent",event_detail:"masters"})},sx:{mb:1},children:[Object(D.jsxs)(O.a,{className:E.menuIcon,children:[Object(D.jsx)(k.a,{className:"icon inactive",component:ae,sx:{color:e=>e.palette.text.primary,fontSize:"2.2rem"}}),Object(D.jsx)(k.a,{className:"icon active",component:pe,sx:{color:e=>e.palette.text.primary,fontSize:"2.2rem"}})]}),Object(D.jsx)(w.a,{children:Object(D.jsx)("b",{children:a("I maestri")})})]}),Object(D.jsxs)(qe,{button:!0,component:o.b,activeStyle:{textDecoration:"underline"},to:"/".concat(t.language,"/user/faq"),onClick:()=>{Object(u.e)({event:"menu_nav",event_id:"08",event_trigger:"GAevent",event_detail:"faq"})},sx:{mb:1},children:[Object(D.jsxs)(O.a,{className:E.menuIcon,children:[Object(D.jsx)(k.a,{className:"icon inactive",component:le,sx:{color:e=>e.palette.text.primary,fontSize:"2.2rem"}}),Object(D.jsx)(k.a,{className:"icon active",component:_e,sx:{color:e=>e.palette.text.primary,fontSize:"2.2rem"}})]}),Object(D.jsx)(w.a,{children:Object(D.jsx)("b",{children:a("Domande frequenti")})})]}),"it"===t.language&&Object(D.jsxs)(qe,{button:!0,component:I.a,activeStyle:{textDecoration:"underline"},href:"https://blog.academia.tv/",onClick:()=>{Object(u.e)({event:"menu_nav",event_id:"08",event_trigger:"GAevent",event_detail:"blog"})},sx:{mb:1},children:[Object(D.jsx)(O.a,{className:E.menuIcon,children:Object(D.jsx)("img",{src:H,width:"30"})}),Object(D.jsx)(w.a,{children:Object(D.jsx)("b",{children:a("Blog")})})]}),(!R.isAuthenticated||R.isAuthenticated&&R.user&&R.user.data&&!R.user.data.flag_active_subscription&&!b||R.isAuthenticated&&R.user&&R.user.data&&!R.user.data.flag_active_wellness_subscription&&b)&&Object(D.jsx)(qe,{children:Object(D.jsx)(w.a,{children:Object(D.jsx)(z.a,{fullWidth:!0,component:o.b,to:{pathname:"/".concat(t.language,"/paywall"),search:"from=".concat(s&&"horeca"!==s.key?s.key:"masterclass"),state:{from:m.pathname}},onClick:()=>{Object(u.e)({event:"cta_click",event_id:"03",event_trigger:"GAevent",event_detail:"buy_".concat(s&&"horeca"!==s.key?s.key:"masterclass"),event_subdetail
1:a("Attiva l'abbonamento")})},color:"primary",children:a("Attiva l'abbonamento")})})}),!b&&(!R.isAuthenticated||R.isAuthenticated&&R.user&&R.user.data&&!R.user.data.flag_active_subscription)&&Object(D.jsx)(qe,{children:Object(D.jsx)(w.a,{children:Object(D.jsx)(z.a,{fullWidth:!0,component:o.b,to:{pathname:Object(c.f)("/:lang/:courses/:courseSlug/:lessons/:lessonSlug",{lang:t.language,courses:a("corsi"),courseSlug:P.free_lesson_course_slug,lessons:a("lezioni"),lessonSlug:P.free_lesson_slug}),state:{from:m.pathname}},color:"secondary",onClick:()=>{Object(u.e)({event:"free_lesson",event_id:"03",event_trigger:"GAevent",event_detail:"".concat(n," menu")})},children:a("Guarda lezione gratuita")})})}),b&&s&&(!R.isAuthenticated||R.isAuthenticated&&R.user&&R.user.data&&!R.user.data.flag_active_wellness_subscription)&&Object(D.jsx)(qe,{children:Object(D.jsx)(w.a,{children:Object(D.jsx)(z.a,{fullWidth:!0,component:o.b,to:{pathname:Object(c.f)("/:lang/:package/:classSlug/:modules/:moduleSlug/:lessons/:chapterSlug",{lang:t.language,package:s.translation,classSlug:P.wellness_free_lesson_course_pkg_slug,modules:a("moduli"),moduleSlug:P.wellness_free_lesson_course_slug,lessons:a("lezioni"),chapterSlug:P.wellness_free_lesson_slug}),state:{from:m.pathname}},onClick:()=>{Object(u.e)({event:"free_lesson",event_id:"03",event_trigger:"GAevent",event_detail:"".concat(n," menu")})},color:"secondary",children:a("Guarda lezione gratuita")})})})]})]})};function Ue(e){const t=Object(c.i)(),{open:a,setOpen:n}=e,{auth:o}=r.a.useContext(j.a),[i,s]=r.a.useState(!1),l=()=>{n(!1)};return r.a.useEffect((()=>{i?l():s(!0)}),[o,t.pathname]),Object(D.jsxs)(r.a.Fragment,{children:[Object(D.jsx)(He,{fullScreen:!0,open:a,onClose:l,TransitionComponent:Ze,sx:{display:{xs:"block",sm:"none"}},children:Object(D.jsx)(Ye,{handleMenuClose:l})}),Object(D.jsx)(E.a,{anchor:"right",open:a,onClose:l,sx:{"& .MuiPaper-root":{minWidth:375},display:{xs:"none",sm:"block","& .MuiDrawer-paper":{backgroundColor:"#26292D",color:"#fff"}}},children:Object(D.jsx)(Ye,{handleMenuClose:l})})]})}},223:function(e,t,a){"use strict";a.d(t,"b",(function(){return D})),a.d(t,"a",(function(){return W}));var n,r=a(0),c=a.n(r),o=a(5),i=a(27),s=a(35),l=a(79),d=a(20),u=a(37),b=a(728),j=a(729),p=a(111),m=a(730),h=a(720),g=a(705),x=a(649),f=a(706),O=a(716),v=a(718),w=a(717),y=a(196),S=a(56),k=a(657),C=a(192),_=a(259),A=a.n(_),I=a(209),E=a(227);function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},z.apply(null,arguments)}function R(e,t){let{title:a,titleId:c,...o}=e;return r.createElement("svg",z({xmlns:"http://www.w3.org/2000/svg",width:23.999,height:23.999,viewBox:"0 0 23.999 23.999",ref:t,"aria-labelledby":c},o),a?r.createElement("title",{id:c},a):null,n||(n=r.createElement("g",{id:"Raggruppa_6485","data-name":"Raggruppa 6485",transform:"translate(-1065.517 -221.088)"},r.createElement("path",{id:"My_path_4_","data-name":"My path (4)",d:"M23.6,2H4.4A2.4,2.4,0,0,0,2.012,4.4L2,26l4.8-4.8H23.6A2.407,2.407,0,0,0,26,18.8V4.4A2.407,2.407,0,0,0,23.6,2Zm0,16.8H5.8L4.4,20.2V4.4H23.6Z",transform:"translate(1063.517 219.088)",fill:"currentColor"}),r.createElement("g",{id:"Raggruppa_6115","data-name":"Raggruppa 6115",transform:"translate(1071.824 225.528)"},r.createElement("path",{id:"Poligono_5","data-name":"Poligono 5",d:"M4.269.854a.3.3,0,0,1,.569,0l.806,2.419a.3.3,0,0,0,.19.19l2.419.806a.3.3,0,0,1,0,.569l-2.419.806a.3.3,0,0,0-.19.19L4.838,8.254a.3.3,0,0,1-.569,0L3.463,5.834a.3.3,0,0,0-.19-.19L.854,4.838a.3.3,0,0,1,0-.569l2.419-.806a.3.3,0,0,0,.19-.19Z",transform:"translate(0 0)",fill:"currentColor"}),r.createElement("path",{id:"Poligono_6","data-name":"Poligono 6",d:"M2.372.854a.3.3,0,0,1,.569,0l.332,1a.3.3,0,0,0,.19.19l1,.332a.3.3,0,0,1,0,.569l-1,.332a.3.3,0,0,0-.19.19l-.332,1a.3.3,0,0,1-.569,0l-.332-1a.3.3,0,0,0-.19-.19l-1-.332a.3.3,0,0,1,0-.569l1-.332a.3.3,0,0,0,.19-.19Z",transform:"translate(6.072 5.313)",fill:"currentColor"})))))}const M=r.forwardRef(R);a.p;var T=a.p+"static/media/whatsapp.39072750.svg",B=a(276),P=a.n(B),N=a(1);const L="microphone",D=e=>{const{auth:t}=c.a.useContext(d.a),{config:a}=c.a.useContext(u.a),[n,r]=c.a.useState(null);return Object(N.jsx)(N.Fragment,{children:!Boolean(window.Android)&&!!a&&a.tutor_help_enabled&&!t.isAuthenticated&&Object(N.jsx)(N.Fragment,{children:Object(N.jsx)(b.a,{component:j.a,href:a.tutor_help_url,target:"_blank",color:"white",sx:{position:"fixed",zIndex:1,bottom:16,right:16},children:Object(N.jsx)(C.a,{src:T,sx:{width:40,height:40}})})})})},W=e=>{const{sx:t,buttonProps:a,iconProps:n,variant:r}=e,{t:b,i18n:j}=Object(l.a)(),C=Object(S.a)(),_=Object(o.i)(),z=Object(k.a)(C.breakpoints.down("md")),{auth:R}=c.a.useContext(d.a),{config:T}=c.a.useContext(u.a),[B,D]=c.a.useState(null),{request:W,cancelToken:F}=c.a.useContext(s.a),[G,V]=c.a.useState(!1);return Object(N.jsx)(p.a,{...t,children:!!T&&T.tutor_ai_enabled&&Object(N.jsxs)(N.Fragment,{children:[Object(N.jsx)(m.a,{open:G&&!z&&!!R.user&&!!R.user.data&&R.user.data.flag_active_pro,onClose:()=>{V(!1)},anchorReference:"none",PaperProps:{sx:{position:"fixed",right:24,bottom:24,margin:10,width:400}},children:Object(N.jsx)(p.a,{sx:{width:400,height:"75vh",overflow:"hidden"},children:Object(N.jsx)("iframe",{title:"chatbot",src:T.tutor_ai_url,allow:L,width:"100%",height:"100%",style:{border:"none"}})})}),Object(N.jsx)(y.a,{fullWidth:!0,maxWidth:"lg",scroll:"body",fullScreen:!0,open:G&&z&&!!R.user&&!!R.user.data&&R.user.data.flag_active_pro,handleClose:()=>{V(!1)},children:Object(N.jsx)(p.a,{sx:{width:"100%",height:"100vh",overflow:"hidden"},children:Object(N.jsx)("iframe",{title:"chatbot",src:T.tutor_ai_url,allow:L,width:"100%",height:"100%",style:{border:"none"}})})}),Object(N.jsx)(y.a,{fullWidth:!0,maxWidth:"lg",scroll:"body",fullScreen:z,open:G&&(!!R.user&&!!R.user.data&&!R.user.data.flag_active_pro||!R.isAuthenticated),handleClose:()=>{V(!1)},children:Object(N.jsxs)(p.a,{sx:{px:3,pb:3,textAlign:"center"},children:[Object(N.jsx)(h.a,{variant:"h6",color:"textPrimary",sx:{mb:4},children:Object(N.jsx)("b",{children:b("Che cos\u2019\xe8 il Tutor AI? Come pu\xf2 migliorarmi?")})}),Object(N.jsxs)(g.a,{container:!0,spacing:4,justify:!0,children:[Object(N.jsx)(g.a,{item:!0,xs:12,md:4,children:Object(N.jsxs)(x.a,{alignItems:"center",justifyContent:"center",children:[Object(N.jsx)(f.a,{variant:"rounded",sx:{width:98,height:98,background:"#42474E",borderRadius:"20px",mb:3},children:Object(N.jsx)(O.a,{component:E.a,sx:{color:"#b1b8be",fontSize:45}})}),Object(N.jsx)(h.a,{variant:"h6",color:"textPrimary",sx:{mb:3},children:Object(N.jsx)("b",{children:b("Assistente AI \u2013 Formato dai nostri Maestri")})}),Object(N.jsx)(h.a,{color:"textSecondary",children:b("Il sapere dei pi\xf9 grandi chef del mondo racchiuso in un unico assistente digitale di cucina, creato da Acad\xe8mia.tv.")})]})}),Object(N.jsx)(g.a,{item:!0,xs:12,md:4,children:Object(N.jsxs)(x.a,{alignItems:"center",justifyContent:"center",children:[Object(N.jsx)(f.a,{variant:"rounded",sx:{width:98,height:98,background:"#42474E",borderRadius:"20px",mb:3},children:Object(N.jsx)(P.a,{sx:{color:"#b1b8be",fontSize:45}})}),Object(N.jsx)(h.a,{variant:"h6",color:"textPrimary",sx:{mb:3},children:Object(N.jsx)("b",{children:b("Supporto in tempo reale, e pi\xf9 sicurezza ai fornelli")})}),Object(N.jsx)(h.a,{color:"textSecondary",children:b("Disponibile 24 ore su 24: risponde ai tuoi dubbi, ti guida passo dopo passo nelle ricette e ti aiuta a perfezionarle.")})]})}),Object(N.jsx)(g.a,{item:!0,xs:12,md:4,children:Object(N.jsxs)(x.a,{alignItems:"center",justifyContent:"center",children:[Object(N.jsx)(f.a,{variant:"rounded",sx:{width:98,height:98,background:"#42474E",borderRadius:"20px",mb:3},children:Object(N.jsx)(O.a,{component:M,sx:{color:"#b1b8be",fontSize:45}})}),Object(N.jsx)(h.a,{variant:"h6",color:"textPrimary",sx:{mb:3},children:Object(N.jsx)("b",{children:b("Un\u2019esperienza Premium, su misura per te")})}),Object(N.jsx)(h.a,{color:"textSecondary",children:b("Selezione di ricette, menu personalizzati, planning settimanale: tutto adattato ai tuoi gusti e alle tue esigenze.")})]})})]}),Object(N.jsxs)(x.a,{sx:{mt:4},justifyContent:"center",alignItems:"center",children:[Object(N.jsx)(h.a,{color:"textPrimary",sx:{mb:2,maxWidth:"400px"},children:b("Tutor \xe8 incluso nel piano PRO, insieme a video in 4k, Live e Libri di cucina digitali esclusivi")}),Object(N.jsx)(v.a,{size:"large",variant:"contained",color:"primary",component:i.b,to:{pathname:"/".concat(j.language,"/paywall"),search:"from=masterclass",state:{from:_.pathname}},children:Object(N.jsx)("b",{children:b("Scopri il piano PRO")})})]})]})}),r&&"icon"===r?Object(N.jsx)(w.a,{size:"large",sx:{backgroundColor:"#F7F7F7","&:hover":{backgroundColor:"#E1E1E1"}},onClick:()=>{V(!0)},children:Object(N.jsx)(O.a,{component:I.a,color:"darkVariant",fontSize:"large"})}):Object(N.jsx)(v.a,{fullWidth:!0,variant:"contained",color:"white",size:"large",endIcon:Object(N.jsx)(A.a,{color:"inherit"}),sx:{justifyContent:"space-between"},onClick:()=>{V(!0)},...a,children:Object(N.jsxs)("span",{children:[Object(N.jsx)(O.a,{component:I.a,color:"primary",sx:{verticalAlign:"bottom",mr:1},...n})," ",b("Chiedi al Tutor")]})})]})})}},225:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n,r=a(0);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(null,arguments)}function o(e,t){let{title:a,titleId:o,...i}=e;return r.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":o},i),a?r.createElement("title",{id:o},a):null,n||(n=r.createElement("g",{id:"Raggruppa_5057","data-name":"Raggruppa 5057",transform:"translate(-41 -761)"},r.createElement("rect",{id:"Rettangolo_2147","data-name":"Rettangolo 2147",width:24,height:24,transform:"translate(41 761)",fill:"none"}),r.createElement("g",{id:"Raggruppa_5027","data-name":"Raggruppa 5027",transform:"translate(45 762.37)"},r.createElement("path",{id:"Tracciato_9011","data-name":"Tracciato 9011",d:"M21.459,123.174a.534.534,0,0,0-.208-.042,1.827,1.827,0,0,1,0-3.653.537.537,0,0,0,0-1.075H8.262a2.989,2.989,0,0,0-2.984,2.943V137a2.663,2.663,0,0,0,2.661,2.661H21.168a1.056,1.056,0,0,0,1.054-1.054V124.182a1.048,1.048,0,0,0-.763-1.008m-8.7,7.085a.28.28,0,0,1-.458.21l-.951-.779a.286.286,0,0,0-.358,0l-.963.775a.28.28,0,0,1-.457-.211v-6.047l3.186-.006Zm-4.5-10.78H19a2.9,2.9,0,0,0,0,3.656H8.123a1.771,1.771,0,0,1-1.77-1.758,1.912,1.912,0,0,1,1.91-1.9",transform:"translate(-5.278 -118.404)",fill:"currentColor"})))))}const i=r.forwardRef(o);a.p},226:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}
1));var n=a(0);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},r.apply(null,arguments)}function c(e,t){let{title:a,titleId:c,...o}=e;return n.createElement("svg",r({xmlns:"http://www.w3.org/2000/svg",width:22,height:21.999,viewBox:"0 0 22 21.999",ref:t,"aria-labelledby":c},o),a?n.createElement("title",{id:c},a):null,n.createElement("g",{"data-name":"Raggruppa 3943"},n.createElement("g",{"data-name":"Raggruppa 1954"},n.createElement("path",{"data-name":"Unione 52",d:"m19.683 21.6-3.972-3.974A9.8 9.8 0 0 1 2.872 2.87a9.8 9.8 0 0 1 14.757 12.839l3.971 3.974a1.357 1.357 0 1 1-1.92 1.918zM2.714 9.8A7.089 7.089 0 1 0 9.8 2.715 7.1 7.1 0 0 0 2.714 9.8z",style:{fill:"currentColor"}}))))}const o=n.forwardRef(c);a.p},227:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n,r=a(0);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(null,arguments)}function o(e,t){let{title:a,titleId:o,...i}=e;return r.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"24px",height:"25px",viewBox:"0 0 24 25",ref:t,"aria-labelledby":o},i),a?r.createElement("title",{id:o},a):null,n||(n=r.createElement("defs",null,r.createElement("clipPath",{id:"clip1"},r.createElement("path",{d:"M 10 19 L 23.910156 19 L 23.910156 25 L 10 25 Z M 10 19 "})))),r.createElement("g",{id:"surface1"},r.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"currentColor",fillOpacity:1},d:"M 0 23.320312 L 0 25.109375 L 8.367188 25.109375 L 8.367188 23.320312 C 8.371094 23.121094 8.390625 22.921875 8.425781 22.726562 L 3.3125 22.726562 C 4.894531 21.976562 6.617188 21.570312 8.367188 21.535156 C 8.5 21.535156 8.644531 21.546875 8.773438 21.546875 C 9.21875 20.660156 9.898438 19.914062 10.734375 19.386719 C 9.953125 19.242188 9.164062 19.160156 8.367188 19.148438 C 5.570312 19.148438 0 20.546875 0 23.320312 "}),r.createElement("g",{clipPath:"url(#clip1)",clipRule:"nonzero"},r.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"currentColor",fillOpacity:1},d:"M 17.332031 19.746094 C 15.132812 19.746094 10.757812 20.949219 10.757812 23.324219 L 10.757812 25.109375 L 23.910156 25.109375 L 23.910156 23.324219 C 23.910156 20.949219 19.535156 19.746094 17.335938 19.746094 "})),r.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"currentColor",fillOpacity:1},d:"M 14.71875 16.410156 C 14.992188 16.902344 15.394531 17.304688 15.886719 17.578125 C 16.785156 18.085938 17.882812 18.085938 18.78125 17.578125 C 20.222656 16.78125 20.746094 14.96875 19.945312 13.527344 C 19.148438 12.089844 17.332031 11.570312 15.886719 12.363281 C 14.445312 13.160156 13.921875 14.972656 14.71875 16.410156 "}),r.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"currentColor",fillOpacity:1},d:"M 4.222656 11.585938 C 4.199219 11.765625 4.183594 12.40625 4.183594 12.59375 C 4.183594 14.898438 6.058594 16.765625 8.367188 16.765625 C 10.679688 16.765625 12.550781 14.898438 12.550781 12.59375 C 12.550781 12.402344 12.535156 11.757812 12.511719 11.578125 C 11.734375 11.769531 10.945312 11.910156 10.148438 11.992188 C 10.152344 12.039062 10.160156 12.542969 10.160156 12.59375 C 10.160156 13.582031 9.359375 14.378906 8.367188 14.378906 C 7.378906 14.378906 6.574219 13.582031 6.574219 12.59375 C 6.574219 12.546875 6.585938 12.046875 6.585938 12 C 5.789062 11.925781 5 11.785156 4.222656 11.585938 "}),r.createElement("path",{style:{stroke:"none",fillRule:"nonzero",fill:"currentColor",fillOpacity:1},d:"M 4.296875 7.03125 L 4.296875 9.484375 C 5.609375 9.890625 6.976562 10.085938 8.351562 10.070312 C 9.761719 10.078125 11.167969 9.882812 12.523438 9.484375 L 12.523438 7.007812 C 13.460938 6.785156 14.191406 6.050781 14.402344 5.113281 C 14.617188 4.175781 14.277344 3.195312 13.53125 2.589844 C 12.78125 1.984375 11.753906 1.851562 10.878906 2.253906 C 10.742188 0.972656 9.660156 0 8.367188 0 C 7.078125 0 5.996094 0.972656 5.859375 2.253906 C 4.972656 1.855469 3.9375 1.996094 3.191406 2.617188 C 2.445312 3.238281 2.121094 4.230469 2.355469 5.171875 C 2.59375 6.109375 3.347656 6.832031 4.296875 7.03125 "})))}const i=r.forwardRef(o);a.p},228:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n,r,c,o=a(0);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},i.apply(null,arguments)}function s(e,t){let{title:a,titleId:s,...l}=e;return o.createElement("svg",i({id:"Raggruppa_6521","data-name":"Raggruppa 6521",xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":s},l),a?o.createElement("title",{id:s},a):null,n||(n=o.createElement("path",{id:"Tracciato_9186","data-name":"Tracciato 9186",d:"M3.082,17.465A3.583,3.583,0,1,1-.5,21.048,3.587,3.587,0,0,1,3.082,17.465Zm0,5.317a1.734,1.734,0,1,0-1.733-1.734A1.736,1.736,0,0,0,3.082,22.782Z",transform:"translate(0.5 -0.631)",fill:"currentColor"})),r||(r=o.createElement("path",{id:"Tracciato_9187","data-name":"Tracciato 9187",d:"M20.877-.5A3.583,3.583,0,1,1,17.3,3.083,3.587,3.587,0,0,1,20.877-.5Zm0,5.317a1.734,1.734,0,1,0-1.733-1.734A1.736,1.736,0,0,0,20.877,4.817Z",transform:"translate(-0.46 0.5)",fill:"currentColor"})),c||(c=o.createElement("path",{id:"Tracciato_9188","data-name":"Tracciato 9188",d:"M15.966,23.5a5.07,5.07,0,0,1-5.093-5.036V4.536A3.191,3.191,0,0,0,7.667,1.366h-.2A3.191,3.191,0,0,0,4.264,4.536v8.135a.944.944,0,0,1-1.888,0V4.536A5.07,5.07,0,0,1,7.469-.5h.2A5.07,5.07,0,0,1,12.76,4.536V18.463a3.206,3.206,0,0,0,6.412,0V10.328a.944.944,0,0,1,1.888,0v8.135A5.071,5.071,0,0,1,15.966,23.5Z",transform:"translate(0.283 0.5)",fill:"currentColor"})))}const l=o.forwardRef(s);a.p},230:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n,r,c=a(0);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},o.apply(null,arguments)}function i(e,t){let{title:a,titleId:i,...s}=e;return c.createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},s),a?c.createElement("title",{id:i},a):null,n||(n=c.createElement("defs",null,c.createElement("clipPath",{id:"clip-path"},c.createElement("rect",{transform:"translate(0)",width:24,height:20.326,fill:"currentColor","data-name":"Rettangolo 2256"})))),r||(r=c.createElement("g",{transform:"translate(-443 -449)","data-name":"Raggruppa 5701"},c.createElement("rect",{transform:"translate(443 449)",width:24,height:24,fill:"none","data-name":"Rettangolo 2479"}),c.createElement("g",{transform:"translate(443 451)","data-name":"Raggruppa 5691"},c.createElement("g",{transform:"translate(0)",clipPath:"url(#clip-path)","data-name":"Raggruppa 5159"},c.createElement("path",{transform:"translate(0)",d:"M23.752,1.247a.816.816,0,0,0-.577-.24H20.728c.005-.22.01-.445.01-.673A.333.333,0,0,0,20.4,0H3.588a.333.333,0,0,0-.334.334c0,.23.005.453.01.673H.814A.816.816,0,0,0,0,1.823c0,.162.028,4.005,2.276,6.125a15.017,15.017,0,0,0,4.458,2.711.792.792,0,0,0,.286.051.924.924,0,0,0,.187-.023,29.339,29.339,0,0,0,3.414,2.564.37.37,0,0,0,.033.023V15.2a22.048,22.048,0,0,0-1.98,1.874l-.2,1.039-1.262.786c-.185.137-.253,1.431-.253,1.431h10.09s-.073-1.285-.263-1.431l-1.2-.786-.2-1.037c-1.017-.923-1.593-1.53-2.033-1.861V13.286A27.864,27.864,0,0,0,16.829,10.7a.772.772,0,0,0,.152.015.862.862,0,0,0,.286-.051,15.017,15.017,0,0,0,4.458-2.711C23.972,5.834,24,1.99,24,1.826a.86.86,0,0,0-.248-.579M3.394,6.762a6.952,6.952,0,0,1-1.7-4.122H3.368a13.042,13.042,0,0,0,1.6,5.31A9.959,9.959,0,0,1,3.394,6.762m17.2,0a10.053,10.053,0,0,1-1.535,1.163A13.234,13.234,0,0,0,20.622,2.64H22.3a7.039,7.039,0,0,1-1.709,4.122",fill:"
1currentColor","data-name":"Tracciato 9053"}))))))}const s=c.forwardRef(i);a.p},231:function(e,t,a){"use strict";a.d(t,"a",(function(){return ee})),a.d(t,"b",(function(){return ae}));var n=a(0),r=a.n(n),c=a(79),o=a(709),i=a(28),s=a(36),l=a(205),d=a(206),u=a(220),b=a(192),j=a(163),p=a(188),m=a(200),h=a(685),g=a(645),x=a(5),f=a(27),O=a(20),v=a(35),w=a(37),y=a(55),S=a(198),k=a(204),C=a(232),_=a(191),A=a(111),I=a(705),E=a(720),z=a(717),R=a(738),M=a(729),T=a(229),B=a.n(T),P=a(246),N=a(270),L=a.n(N),D=a(271),W=a.n(D),F=a(266),G=a.n(F),V=a(263),H=a.n(V),q=a(199),Z=a.n(q),Y=a(214),U=a.n(Y),X=a(1);const J=e=>{const{t:t}=Object(c.a)(),{setTab:a}=e,{toggleAuthDialog:n}=r.a.useContext(y.a),{request:o,cancelToken:i}=r.a.useContext(v.a),{auth:s,login:l}=r.a.useContext(O.a),[d,u]=r.a.useState({register_step:"user-profile",first_name:"",last_name:"",mobile_phone:"",location:"",location_id:"",birthday:"",flag_horeca:null});return Object(X.jsxs)(A.a,{px:4,pb:7,children:[Object(X.jsx)(I.a,{container:!0,children:Object(X.jsx)(I.a,{item:!0,xs:!0,children:Object(X.jsxs)(A.a,{mb:6,children:[Object(X.jsx)(E.a,{variant:"subtitle1",children:"1/2"}),Object(X.jsx)(E.a,{variant:"h4",children:Object(X.jsx)("b",{children:t("Dicci qualcosa di te!")})}),Object(X.jsx)(E.a,{variant:"h6",children:t("Ci aiuter\xe0 a migliorare la tua esperienza in piattaforma.")})]})})}),Object(X.jsxs)(I.a,{container:!0,spacing:4,sx:{mb:2},children:[Object(X.jsx)(I.a,{item:!0,xs:12,sm:6,children:Object(X.jsx)(S.b,{fullWidth:!0,label:t("Nome"),value:d.first_name,onChange:e=>u({...d,first_name:e.target.value})})}),Object(X.jsx)(I.a,{item:!0,xs:12,sm:6,children:Object(X.jsx)(S.b,{fullWidth:!0,label:t("Cognome"),value:d.last_name,onChange:e=>u({...d,last_name:e.target.value})})})]}),Object(X.jsxs)(I.a,{container:!0,spacing:4,sx:{mb:2},children:[Object(X.jsx)(I.a,{item:!0,xs:12,sm:6,children:Object(X.jsx)(S.b,{fullWidth:!0,label:t("Data di nascita"),type:"date",value:d.birthday,onChange:e=>u({...d,birthday:e.target.value}),InputLabelProps:{shrink:!0}})}),Object(X.jsx)(I.a,{item:!0,xs:12,sm:6,children:Object(X.jsx)(C.a,{initialValue:d.location,formParams:d,handleAddressSelect:e=>{u((t=>({...t,location_id:e.place_id,location:e.formatted_address})))},renderInput:e=>Object(X.jsx)(S.b,{...e,label:t("Citt\xe0"),fullWidth:!0})})})]}),Object(X.jsxs)(I.a,{container:!0,spacing:4,sx:{mb:2},children:[Object(X.jsx)(I.a,{item:!0,xs:12,sm:6,children:Object(X.jsx)(S.b,{fullWidth:!0,label:t("Numero cellulare"),value:d.mobile_phone,onChange:e=>u({...d,mobile_phone:e.target.value})})}),Object(X.jsxs)(I.a,{item:!0,xs:12,sm:6,children:[Object(X.jsx)(E.a,{children:t("Lavori nel mondo Food & Beverage?")}),Object(X.jsx)(k.a,{label:t("Si"),checked:d.flag_horeca,onChange:e=>u({...d,flag_horeca:!0})}),Object(X.jsx)(k.a,{label:t("No"),checked:!1===d.flag_horeca,onChange:e=>u({...d,flag_horeca:!1})})]})]}),Object(X.jsx)(I.a,{container:!0,spacing:4,children:Object(X.jsx)(I.a,{item:!0,xs:12,sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:Object(X.jsxs)(A.a,{textAlign:"center",children:[Object(X.jsx)(_.a,{fullWidth:m.isMobileOnly,color:"primary",onClick:()=>(async()=>{const e=i.source();await o("put","/v2/user",e.token,d)&&(l({...s.user,data:{...s.user.data,...d}}),a("user-interests"))})(),sx:{mb:2,fontSize:"1.2rem",px:{sm:10}},children:t("Conferma i dati")}),Object(X.jsx)(E.a,{color:"textSecondary",onClick:()=>n(!1),children:t("Non adesso")})]})})})]})},K=Object(g.a)(A.a)((e=>{let{theme:t}=e;return{position:"absolute",top:"10px",right:"10px"}})),Q=Object(h.a)((e=>({imageList:{width:"100%",height:"auto",transform:"translateZ(0)"},image:{borderRadius:"15px",width:"100%"},titleBar:{background:"transparent"},icon:{color:"white",fontSize:"2rem"},imageListItem:{},imageListItemItem:{overflow:"visible"},imageListItemSelected:{position:"relative","&:after":{border:"4px solid white",borderRadius:"15px",position:"absolute",content:'""',top:0,left:0,width:"100%",height:"100%",boxSizing:"border-box"}},forward:{position:"absolute",top:"50%",right:"-10px",color:"#c8ccd0"},backward:{position:"absolute",top:"50%",left:"-10px",color:"#c8ccd0"}}))),$=e=>{const{t:t}=Object(c.a)(),a=Q(),{login:n,auth:o}=r.a.useContext(O.a),{request:l,cancelToken:d}=r.a.useContext(v.a),{toggleAuthDialog:u}=r.a.useContext(y.a),[j,h]=r.a.useState(!1),[g,x]=r.a.useState([]),[f,w]=r.a.useState([]),[S,k]=r.a.useState(0),C=Object(p.n)(g,m.isMobileOnly?6:24),R=async e=>{h(!0),e.preventDefault();const t=d.source();await l("put","/v2/user",t.token,{register_step:"user-interests",interests:f})?(async()=>{const e=d.source(),t=await l("get","/v2/me",e.token);t?(n({token:o.user.token,data:t}),Object(i.e)(Object(i.g)({event:"signup_completed"},t)),Object(i.a)("signup_preferences"),u(!1)):h(!1)})():h(!1)};return r.a.useEffect((()=>{(async()=>{const e=d.source(),t=await l("get","/v2/tags/user-interests",e.token);t&&x(t.tags)})()}),[]),Object(X.jsxs)(A.a,{px:4,pb:4,children:[Object(X.jsx)(I.a,{container:!0,children:Object(X.jsx)(I.a,{item:!0,xs:!0,children:Object(X.jsxs)(A.a,{mb:2,children:[Object(X.jsx)(E.a,{variant:"subtitle1",children:"2/2"}),Object(X.jsx)(E.a,{variant:"h4",children:Object(X.jsx)("b",{children:t("Dicci qualcosa di te!")})}),Object(X.jsx)(E.a,{variant:"h6",children:t("Quali sono i tuoi interessi in cucina?")})]})})}),Object(X.jsxs)(A.a,{position:"relative",px:{xs:0,md:6},mt:3,children:[S>0&&Object(X.jsx)(z.a,{className:a.backward,onClick:()=>k(S-1),size:"large",children:Object(X.jsx)(U.a,{})}),S<C.length-1&&Object(X.jsx)(z.a,{className:a.forward,onClick:()=>k(S+1),size:"large",children:Object(X.jsx)(Z.a,{})}),Object(X.jsx)(B.a,{index:S,onChangeIndex:e=>{k({index:e})},enableMouseEvents:!0,children:C.map(((e,t)=>Object(X.jsx)(I.a,{container:!0,spacing:1,children:e.map((e=>{const t=f.indexOf(e.id)>-1;return Object(X.jsxs)(I.a,{item:!0,xs:6,sm:3,md:2,children:[Object(X.jsxs)(A.a,{position:"relative",className:Object(s.a)(a.imageListItem,{[a.imageListItemSelected]:t}),onClick:()=>{return t=e.id,void w((e=>{const a=[...e],n=e.indexOf(t);return n>-1?a.splice(n,1):a.push(t),a}));var t},children:[t&&Object(X.jsx)(K,{children:Object(X.jsx)(H.a,{className:a.icon})}),Object(X.jsx)(b.a,{className:a.image,src:e.img_cover,alt:e.title,useSet:{sizes:[["down","md","50vw"],["150px"]]}})]}),Object(X.jsx)(A.a,{mt:1,children:Object(X.jsx)(E.a,{children:e.title})})]},e.id)}))},"chunk"+t)))})]}),Object(X.jsx)(I.a,{container:!0,children:Object(X.jsxs)(I.a,{item:!0,xs:!0,children:[Object(X.jsx)(A.a,{mt:4,textAlign:"center",children:Object(X.jsx)(_.a,{fullWidth:m.isMobileOnly,color:"primary",onClick:e=>R(e),sx:{mb:2,fontSize:"1.2rem",px:{sm:15}},loading:j,children:t("Prosegui")})}),Object(X.jsx)(A.a,{textAlign:"center",children:Object(X.jsx)(E.a,{color:"textSecondary",onClick:()=>u(!1),children:t("Non adesso")})})]})})]})},ee=e=>{const{t:t,i18n:a}=Object(c.a)(),n=Object(x.i)(),s=Object(x.h)(),{buy:u,courseId:b}=Object(x.j)(),{auth:p,login:m}=r.a.useContext(O.a),{config:h}=r.a.useContext(w.a),{request:g,cancelToken:C}=r.a.useContext(v.a),{showError:T}=r.a.useContext(y.a),[B,N]=r.a.useState(!1),[D,F]=r.a.useState(!1),[V,H]=r.a.useState(!1),[q,Z]=r.a.useState({email:sessionStorage.getItem("register-email")||"",password:"",flag_updates:!1}),Y=new URLSearchParams(n.search),U=new URLSearchParams(n.hash.substring(1)),J=JSON.parse(U.get("state")),[K,Q,$]=Object(j.a)(["referrals"]),ee=Y.has("to")?Y.get("to"):!(!J||!J.to)&&J.to;ee&&localStorage.setItem("redirectTo",ee);return r.a.useEffect((()=>
1{if(Boolean(p.user)&&Boolean(p.user.data)){Object(i.e)({event:"register",event_id:"05",event_trigger:"GAevent",lead_email:p.user.data.email,event_detail:u?"buy_"+i.f[u]:null});const e=localStorage.getItem("redirectTo");e&&!Boolean(u)?s.push(e):(n.state&&n.state.from&&!Boolean(u)&&s.push(n.state.from),n.state&&n.state.from||Boolean(u)||s.push("/"))}}),[p.user]),Object(X.jsx)(A.a,{children:Object(X.jsx)(I.a,{container:!0,children:Object(X.jsxs)(I.a,{item:!0,xs:!0,children:[Object(X.jsx)(A.a,{mb:2,children:Object(X.jsx)(E.a,{variant:"h5",color:"dark.main",children:Object(X.jsx)("b",{children:Boolean(u)?t("Registrati e vai al pagamento"):t("Iscriviti ad Acad\xe8mia.tv")})})}),Object(X.jsxs)("form",{onSubmit:e=>(async e=>{if(e.preventDefault(),!q.flag_updates)return void T({error_message:t("Devi accettare le Privacy Policy per proseguire!")});N(!0);const a=C.source();let n={...q};const r=K.referrals||null,c=sessionStorage.getItem("x-cic-referral-code"),o=sessionStorage.getItem("x-cic-campaign");c&&(n.referrals={friend_invite:c}),o&&(n.referrals={campaign_id:o}),r&&(n.referrals={...n.referrals,...r},$("referrals",{path:"/"}));const s=await g("post","/v2/register",a.token,n);s?(Object(i.a)("signup_data"),m({token:s.token.token,data:{id:s.token.user_id,email:q.email,profile_status:s.profile_status}})):N(!1)})(e),autoComplete:"new-password",children:[Object(X.jsx)(A.a,{my:2,children:Object(X.jsx)(S.b,{fullWidth:!0,className:"light",label:t("Email"),value:q.email,autoComplete:"new-password",onChange:e=>Z({...q,email:e.target.value})})}),Object(X.jsx)(A.a,{mb:2,children:Object(X.jsx)(S.b,{fullWidth:!0,className:"light",type:D?"text":"password",label:t("Password"),autoComplete:"new-password",value:q.password,onChange:e=>Z({...q,password:e.target.value}),InputProps:{endAdornment:Object(X.jsx)(R.a,{position:"end",children:Object(X.jsx)(z.a,{"aria-label":t("toggle password visibility"),onClick:()=>F(!D),onMouseDown:e=>e.preventDefault(),edge:"end",style:{color:"#B2B8BD"},size:"large",children:D?Object(X.jsx)(L.a,{}):Object(X.jsx)(W.a,{})})})}})}),Object(X.jsxs)(A.a,{pl:1,mb:2,children:[Object(X.jsx)(E.a,{variant:"caption",children:t("La password deve avere almeno:")}),Object(X.jsxs)(A.a,{children:[Object(X.jsx)(E.a,{component:"span",color:"textSecondary",style:/^(.*[a-zA-Z].*)$/.test(q.password)?{color:"#46c455"}:{},children:Object(X.jsx)(G.a,{style:{fontSize:"0.75rem",verticalAlign:"middle",marginRight:"10px"}})}),Object(X.jsx)(E.a,{variant:"caption",children:t("una lettera")})]}),Object(X.jsxs)(A.a,{children:[Object(X.jsx)(E.a,{component:"span",color:"textSecondary",style:/^(.*\d.*)$/.test(q.password)?{color:"#46c455"}:{},children:Object(X.jsx)(G.a,{style:{fontSize:"0.75rem",verticalAlign:"middle",marginRight:"10px"}})}),Object(X.jsx)(E.a,{variant:"caption",children:t("un numero")})]}),Object(X.jsxs)(A.a,{children:[Object(X.jsx)(E.a,{color:"textSecondary",component:"span",style:/^(?=.*[@#.\u20ac_&-,+()*:;!?])/.test(q.password)?{color:"#46c455"}:{},children:Object(X.jsx)(G.a,{style:{fontSize:"0.75rem",verticalAlign:"middle",marginRight:"10px"}})}),Object(X.jsxs)(E.a,{variant:"caption",children:[t("un simbolo")," @#.\u20ac_&-,+()*:;!?"]})]}),Object(X.jsxs)(A.a,{children:[Object(X.jsx)(E.a,{color:"textSecondary",component:"span",style:/^.{8,}$/.test(q.password)?{color:"#46c455"}:{},children:Object(X.jsx)(G.a,{style:{fontSize:"0.75rem",verticalAlign:"middle",marginRight:"10px"}})}),Object(X.jsx)(E.a,{variant:"caption",children:t("8 caratteri")})]})]}),Object(X.jsx)(A.a,{children:Object(X.jsx)(k.a,{label:Object(X.jsxs)(X.Fragment,{children:[Object(X.jsx)(E.a,{variant:"caption",component:"div",gutterBottom:!0,children:Object(X.jsxs)(o.a,{t:t,children:["Compilando il form accetto la ",Object(X.jsx)(M.a,{color:"inherit",onClick:()=>window.open(d.a[a.language.split("-")[0]],"_blank"),children:"Privacy e Policy"})]})}),Object(X.jsx)(E.a,{variant:"caption",component:"div",gutterBottom:!0,children:Object(X.jsxs)(o.a,{t:t,children:["Procedendo acconsenti ai nostri ",Object(X.jsx)(M.a,{color:"inherit",onClick:()=>window.open(l.a[a.language.split("-")[0]],"_blank"),sx:{cursor:"pointer"},children:"T&Cs"}),"."]})}),Object(X.jsx)(E.a,{variant:"caption",component:"div",children:t("Sono consapevole che gli abbonamenti sono soggetti a rinnovo automatico a prezzo pieno")})]}),checked:q.flag_updates,onChange:e=>Z({...q,flag_updates:!q.flag_updates}),sx:{"& .checked":{backgroundColor:"#fff",border:"1px solid #B3B8BD","&:before":{backgroundColor:"#41474E"}},"& .unchecked":{backgroundColor:"#fff",border:"1px solid #B3B8BD"}}})}),V&&Object(X.jsx)(A.a,{sx:{mt:1},children:Object(X.jsx)(E.a,{color:"primary",variant:"caption",children:t("Per iscriversi \xe8 necessario accettare i termini e condizioni")})}),Object(X.jsx)(A.a,{mt:2,children:Object(X.jsx)(_.a,{disabled:!Boolean(q.email)||!q.flag_updates||!new RegExp(h.password_policy).test(q.password),fullWidth:!0,size:"large",type:"submit",color:"primary",loading:B,children:t("Registrati")})}),Object(X.jsx)(A.a,{my:2,textAlign:"center",children:Object(X.jsx)(_.c,{fullWidth:!0,size:"large",variant:"contained",color:"dark",disabled:B,setLoa
1ding:N,provider:"google",...q.flag_updates||U.has("id_token")?{socialCallBack:e=>{(async(e,t)=>{const a=C.source();let n={provider:e,token:t};const r=K.referrals||null,c=sessionStorage.getItem("x-cic-referral-code"),o=sessionStorage.getItem("x-cic-campaign");c&&(n.referrals={friend_invite:c}),o&&(n.referrals={campaign_id:o}),r&&(n.referrals={...n.referrals,...r},$("referrals",{path:"/"}));const s=await g("post","/v2/login",a.token,n);s?("fb"===e&&Object(i.a)("signup_facebook"),"ggl"===e&&Object(i.a)("signup_google"),"app"===e&&Object(i.a)("signup_apple"),m({token:s.token.token,data:{profile_status:s.profile_status}})):N(!1)})("ggl",e)}}:{onClick:()=>{H(!0)}},startIcon:Object(X.jsx)(P.c,{}),children:t("Accedi con Google")})}),Object(X.jsxs)(A.a,{mt:4,textAlign:"center",children:[Object(X.jsx)(E.a,{color:"dark.main",variant:"body2",children:t("Hai gi\xe0 un account?")}),Object(X.jsx)(E.a,{children:Object(X.jsx)(M.a,{component:f.b,color:"dark.main",to:{pathname:"/"+a.language+"/auth/login"+(u?"/"+u+"/"+(b||""):""),search:n.search,state:{...n.state}},underline:"hover",children:Object(X.jsx)("b",{children:t("Accedi")})})})]})]})]})})})},te=(Object(h.a)((e=>({social:{margin:e.spacing(1)}}))),e=>{const{setTab:t}=e,{t:a}=Object(c.a)(),{auth:n}=r.a.useContext(O.a),{request:o,cancelToken:i}=r.a.useContext(v.a),{toggleAuthDialog:s}=r.a.useContext(y.a),[l,d]=r.a.useState(!1),[u,b]=r.a.useState(""),j=sessionStorage.getItem("checkout-purchase-id");return Object(X.jsxs)(A.a,{px:4,pb:4,children:[Object(X.jsx)(I.a,{container:!0,children:Object(X.jsx)(I.a,{item:!0,xs:!0,children:Object(X.jsxs)(A.a,{mb:2,children:[Object(X.jsx)(E.a,{variant:"subtitle1",children:"1/3"}),Object(X.jsx)(E.a,{variant:"h4",children:Object(X.jsx)("b",{children:a("Inserisci il numero della tua tessera Volare")})}),Object(X.jsx)(E.a,{variant:"h6",children:a("Guadagna 10 punti per ogni \u20ac speso")})]})})}),Object(X.jsx)(A.a,{sx:{py:3,textAlign:"center"},children:Object(X.jsx)(S.b,{sx:{width:343},label:a("N\xb0Tessera Volare"),value:u,onChange:e=>b(e.target.value)})}),Object(X.jsx)(I.a,{container:!0,children:Object(X.jsxs)(I.a,{item:!0,xs:!0,children:[Object(X.jsx)(A.a,{mt:4,textAlign:"center",children:Object(X.jsx)(_.a,{fullWidth:m.isMobileOnly,color:"primary",onClick:e=>(async e=>{d(!0),e.preventDefault();const a=i.source();await o("post","/v2/purchases/"+j+"/referral/volare",a.token,{referral_code:u})&&(localStorage.setItem("saved-volare-card",1),sessionStorage.removeItem("checkout-purchase-id"),n.user.data.profile_status.completed?s(!1):t(n.user.data.profile_status.next_step)),d(!1)})(e),sx:{mb:2,fontSize:"1.2rem",px:{sm:15}},loading:l,children:a("Conferma dati")})}),Object(X.jsx)(A.a,{textAlign:"center",children:Object(X.jsx)(E.a,{color:"textSecondary",onClick:()=>s(!1),children:a("Non adesso")})})]})})]})}),ae=()=>{const{auth:e}=r.a.useContext(O.a),t=sessionStorage.getItem("checkout-purchase-id"),[a,n]=r.a.useState(Boolean(t)?"volare-card":e.user.data.profile_status.next_step);return Object(X.jsxs)(A.a,{children:[Object(X.jsx)(u.a,{value:a,index:"volare-card",children:Object(X.jsx)(te,{setTab:n})}),Object(X.jsx)(u.a,{value:a,index:"user-interests",children:Object(X.jsx)($,{setTab:n})}),Object(X.jsx)(u.a,{value:a,index:"user-profile",children:Object(X.jsx)(J,{setTab:n})})]})}},232:function(e,t,a){"use strict";var n=a(0),r=a.n(n),c=a(79),o=a(188),i=a(198),s=a(708),l=a(280),d=a.n(l),u=a(705),b=a(720),j=a(111),p=a(685),m=a(278),h=a.n(m),g=a(279),x=a.n(g),f=a(1);const O={current:null},v={current:null},w=Object(p.a)((e=>({icon:{color:e.palette.text.secondary,marginRight:e.spacing(2)}})));t.a=e=>{const{i18n:t}=Object(c.a)(),[a,n]=(w(),r.a.useState(null)),[l,p]=r.a.useState(""),[m,g]=r.a.useState([]),y=r.a.useRef(!1);"undefined"===typeof window||y.current||(document.querySelector("#google-maps")||Object(o.g)("https://maps.googleapis.com/maps/api/js?key=AIzaSyBu2G_lY5DD9AxeU70GbKkmS6DAFtnq0ws&libraries=places",document.querySelector("head"),"google-maps"),y.current=!0);const S=r.a.useMemo((()=>x()(((e,a)=>{O.current.getPlacePredictions({...e,types:["(cities)"],componentRestrictions:{country:t.language}},a)}),200)),[]),k=r.a.useMemo((()=>x()((t=>{v.current.getDetails({placeId:t},(t=>{e.handleAddressSelect(t,e.formParams)}))}),200)),[e.formParams]);return r.a.useEffect((()=>{let e=!0;
1if(!O.current&&window.google&&window.google.maps&&(O.current=new window.google.maps.places.AutocompleteService,v.current=new window.google.maps.places.PlacesService(document.createElement("div"))),O.current){if(""!==l)return S({input:l},(t=>{if(e){let e=[];a&&(e=[a]),t&&(e=[...e,...t]),g(e)}})),()=>{e=!1};g(a?[a]:[])}}),[a,l,S]),r.a.useEffect((()=>{e.initialValue&&(g([{description:e.initialValue}]),n({description:e.initialValue}))}),[e.initialValue]),Object(f.jsx)(s.a,{id:"google-autocomplete",getOptionLabel:e=>"string"===typeof e?e:e.description,filterOptions:e=>e,options:m,autoComplete:!0,includeInputInList:!0,filterSelectedOptions:!0,disableClearable:!0,value:a,onChange:(e,t)=>{t&&k(t.place_id),g(t?[t,...m]:m),n(t)},onInputChange:(e,t)=>{p(t)},renderInput:Boolean(e.renderInput)?e.renderInput:t=>Object(f.jsx)(i.b,{...t,label:e.label,fullWidth:!0}),renderOption:(e,t)=>{if(Boolean(t.structured_formatting)){const a=t.structured_formatting.main_text_matched_substrings,n=h()(t.structured_formatting.main_text,a.map((e=>[e.offset,e.offset+e.length])));return Object(f.jsx)("li",{...e,children:Object(f.jsxs)(u.a,{container:!0,alignItems:"center",children:[Object(f.jsx)(u.a,{item:!0,children:Object(f.jsx)(j.a,{component:d.a,sx:{color:"text.secondary",mr:2}})}),Object(f.jsxs)(u.a,{item:!0,xs:!0,children:[n.map(((e,t)=>Object(f.jsx)(b.a,{component:"span",variant:"body1",sx:{fontWeight:e.highlight?700:400,color:"#000"},children:e.text},t))),Object(f.jsx)(b.a,{variant:"body2",color:"textSecondary",children:t.structured_formatting.secondary_text})]})]})})}return Object(f.jsx)("li",{...e,children:Object(f.jsxs)(u.a,{container:!0,alignItems:"center",children:[Object(f.jsx)(u.a,{item:!0,children:Object(f.jsx)(j.a,{component:d.a,sx:{color:"text.secondary",mr:2}})}),Object(f.jsx)(u.a,{item:!0,xs:!0,children:Object(f.jsx)(b.a,{component:"span",variant:"body1",sx:{fontWeight:700,color:"#000"},children:t.description})})]})})}})}},236:function(e,t,a){"use strict";var n=a(0),r=a.n(n),c=a(188);t.a=e=>{const{img:t}=e,a=r.a.useRef(),[n,o]=r.a.useState(0),[i,s]=r.a.useState();return r.a.useEffect((()=>{if(!a.current)return;const e=a.current,t=()=>{o(e.clientWidth||0)};t();const n=new ResizeObserver((()=>{t()}));return n.observe(e),()=>n.disconnect()}),[]),r.a.useEffect((()=>{if(t&&a.current){let e=n||a.current.clientWidth;e=e>200?e:200,s("\n image-set(\n ".concat(["url(".concat(Object(c.m)(t,e),") 1x"),"url(".concat(Object(c.m)(t,Math.round(1.5*e)),") 1.5x"),"url(".concat(Object(c.m)(t,Math.round(2*e)),") 2x")].join(", "),"\n )"))}}),[t,n]),{imageSet:i,ref:a}}},243:function(e,t,a){"use strict";t.a=a.p+"static/media/icona-play.74a9d070.png"},244:function(e,t,a){"use strict";var n=a(0),r=a.n(n);var c=(e,t)=>{const[a,n]=r.a.useState(!1);return r.a.useEffect((()=>{const a=new IntersectionObserver(((e,t)=>{e[0].isIntersecting&&(n(!0),t.unobserve(e[0].target),t.disconnect())}),t);return e.current&&a.observe(e.current),()=>a.disconnect()}),[e]),a},o=a(111),i=a(333),s=a(221),l=a(1);const d=e=>{const{smallerImage:t,cols:a,width:n,sx:r,sliderProps:c}=e;return Object(l.jsx)(s.a,{...c,children:Array.from({length:a},((e,c)=>Object(l.jsx)(o.a,{sx:{borderRadius:"10px",overflow:"hidden",width:n||100/a+"%",minWidth:n||346},children:Object(l.jsx)(i.a,{variant:"rect",sx:{height:{xs:t?160:220,lg:a&&2===a?300:t?160:220},...r}})},c)))})};t.a=e=>{const{children:t,loadingProps:a,loadContent:i,LoadingComponent:s}=e,u=Object(n.useRef)(null),b=c(u),[j,p]=r.a.useState(!!i);return r.a.useEffect((()=>{b&&i&&(p(!0),i().then((()=>{setTimeout((()=>{p(!1)}),100)})))}),[b]),Object(l.jsx)(o.a,{ref:u,children:b&&!j?Object(l.jsx)(l.Fragment,{children:t}):Object(l.jsx)(l.Fragment,{children:s?Object(l.jsx)(s,{}):Object(l.jsx)(d,{...a})})})}},247:function(e,t,a){"use strict";var n=a(189);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a(190)),c=a(1),o=(0,r.default)((0,c.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"}),"Bookmark");t.default=o},249:function(e,t,a){"use strict";var n=a(189);
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a(190)),c=a(1),o=(0,r.default)((0,c.jsx)("path",{d:"M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15-5-2.18L7 18V5h10v13z"}),"BookmarkBorder");t.default=o},257:function(e,t,a){"use strict";a.d(t,"a",(function(){return we}));var n=a(0),r=a.n(n),c=a(27),o=a(5),i=a(79),s=(a(20),a(35)),l=a(195),d=a(236),u=a(28),b=a(264),j=a(188),p=a(191),m=(a(244),a(645)),h=a(111),g=a(4),x=a(2),f=a(183),O=a(36),v=a(29),w=a(54),y=a(21),S=a(158),k=a(179);function C(e){return Object(S.a)("MuiImageListItemBar",e)}Object(k.a)("MuiImageListItemBar",["root","positionBottom","positionTop","positionBelow","titleWrap","titleWrapBottom","titleWrapTop","titleWrapBelow","titleWrapActionPosLeft","titleWrapActionPosRight","title","subtitle","actionIcon","actionIconActionPosLeft","actionIconActionPosRight"]);var _=a(1);const A=["actionIcon","actionPosition","className","subtitle","title","position"],I=Object(v.a)("div",{name:"MuiImageListItemBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t["position".concat(Object(y.a)(a.position))]]}})((e=>{let{theme:t,ownerState:a}=e;return Object(x.a)({position:"absolute",left:0,right:0,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:t.typography.fontFamily},"bottom"===a.position&&{bottom:0},"top"===a.position&&{top:0},"below"===a.position&&{position:"relative",background:"transparent",alignItems:"normal"})})),E=Object(v.a)("div",{name:"MuiImageListItemBar",slot:"TitleWrap",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.titleWrap,t["titleWrap".concat(Object(y.a)(a.position))],a.actionIcon&&t["titleWrapActionPos".concat(Object(y.a)(a.actionPosition))]]}})((e=>{let{theme:t,ownerState:a}=e;return Object(x.a)({flexGrow:1,padding:"12px 16px",color:t.palette.common.white,overflow:"hidden"},"below"===a.position&&{padding:"6px 0 12px",color:"inherit"},a.actionIcon&&"left"===a.actionPosition&&{paddingLeft:0},a.actionIcon&&"right"===a.actionPosition&&{paddingRight:0})})),z=Object(v.a)("div",{name:"MuiImageListItemBar",slot:"Title",overridesResolver:(e,t)=>t.title})((e=>{let{theme:t}=e;return{fontSize:t.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}})),R=Object(v.a)("div",{name:"MuiImageListItemBar",slot:"Subtitle",overridesResolver:(e,t)=>t.subtitle})((e=>{let{theme:t}=e;return{fontSize:t.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}})),M=Object(v.a)("div",{name:"MuiImageListItemBar",slot:"ActionIcon",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.actionIcon,t["actionIconActionPos".concat(Object(y.a)(a.actionPosition))]]}})((e=>{let{ownerState:t}=e;return Object(x.a)({},"left"===t.actionPosition&&{order:-1})}));var T=n.forwardRef((function(e,t){const a=Object(w.a)({props:e,name:"MuiImageListItemBar"}),{actionIcon:n,actionPosition:r="right",className:c,subtitle:o,title:i,position:s="bottom"}=a,l=Object(g.a)(a,A),d=Object(x.a)({},a,{position:s,actionPosition:r}),u=(e=>{const{classes:t,position:a,actionIcon:n,actionPosition:r}=e,c={root:["root","position".concat(Object(y.a)(a))],titleWrap:["titleWrap","titleWrap".concat(Object(y.a)(a)),n&&"titleWrapActionPos".concat(Object(y.a)(r))],title:["title"],subtitle:["subtitle"],actionIcon:["actionIcon","actionIconActionPos".concat(Object(y.a)(r))]};return Object(f.a)(c,C,t)})(d);return Object(_.jsxs)(I,Object(x.a)({ownerState:d,className:Object(O.a)(u.root,c),ref:t},l,{children:[Object(_.jsxs)(E,{ownerState:d,className:u.titleWrap,children:[Object(_.jsx)(z,{className:u.title,children:i}),o?Object(_.jsx)(R,{className:u.subtitle,children:o}):null]}),n?Object(_.jsx)(M,{ownerState:d,className:u.actionIcon,children:n}):null]}))})),B=a(720),P=a(717),N=a(707),L=a(705),D=a(716),W=a(334),F=a(706),G=a(199),V=a.n(G),H=a(214),q=a.n(H),Z=a(247),Y=a.n(Z),U=a(249),X=a.n(U),J=a(192),K=a(267),Q=a(268),$=a(282),ee=a(261),te=a(243),ae=a(265);const ne=Object(m.a)(h.a)((e=>{let{theme:t}=e;return{display:"flex",flexWrap:"wrap",backgroundColor:"transparent",position:"relative",marginLeft:"-8px",marginRight:"-8px",[t.breakpoints.down("md")]:{overflow:"hidden"}}})),re=Object(m.a)("ul")((e=>{let{theme:t}=e;return{flexWrap:"nowrap",alignContent:"flex-start",transform:"translateZ(0)",display:"flex",padding:0,margin:0,listStyle:"none",overflowY:"hidden",overflowX:"auto",scrollBehavior:"smooth",WebkitOverflowScrolling:"touch","&.dontScroll":{flexWrap:"wrap",overflow:"hidden",margin:"auto",[t.breakpoints.down("md")]:{justifyContent:"center"},"& > li":{}}}})),ce=Object(m.a)("li")((e=>{let{theme:t}=e;return{position:"relative",boxSizing:"border-box",flexShrink:0,width:"33.33%",minWidth:"346px",minHeight:"fit-content",borderLeft:"8px solid transparent",borderRight:"8px solid transparent",borderTop:"13px solid transparent",borderBottom:"13px solid transparent",[t.breakpoints.down("lg")]:{},"&.l":{"& .content":{maxHeight:"79%"}},"&.tags":{minWidth:"190px",maxWidth:"190px"},"&.t":{minWidth:"190px",maxWidth:"190px",maxHeight:"345px",minHeight:"345px","&:not(.banner) > div:first-of-type":{borderBottomLeftRadius:0,borderBottomRightRadius:0},"&:not(.banner) img":{borderBottomLeftRadius:0,borderBottomRightRadius:0},"&.banner":{minHeight:"200px","& img":{width:"100%"}},"& .content":{backgroundPosition:"top center",backgroundSize:"100%"}},"&.smallerImage":{width:"20%",minWidth:"250px","& > div:first-of-type":{maxHeight:"80%"}},"&.banner":{width:"100%",maxWidth:"none","& > div:first-of-type":{maxHeight:"100%"}}}})),oe=Object(m.a)(h.a)((e=>{let{theme:t}=e;return{backgroundPosition:"center center",backgroundSize:"cover",backgroundRepeat:"no-repeat",borderRadius:"10px",overflow:"hidden",position:"relative",height:"100%",width:"100%",zIndex:"2",marginBottom:"-4px"}})),ie=Object(m.a)(h.a)((e=>{let{theme:t}=e;return{color:"#fff",position:"absolute",left:0,width:"100%",padding:"15px",boxSizing:"border-box",background:"linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%)"}})),se=Object(m.a)(h.a)((e=>{let{theme:t}=e;return{width:"100%",position:"relative",color:"#B1B8BE",height:"auto",zIndex:"1",marginTop:"-10px",paddingTop:"10px",borderBottomLeftRadius:"10px",borderBottomRightRadius:"10px",display:"flex",alignItems:"flex-end",paddingBottom:"3.5%"}})),le=Object(m.a)(h.a)((e=>{let{theme:t}=e;return{width:"175px",position:"absolute",bottom:0,backgroundColor:"#26292D",height:"110px",padding:"16px",boxSizing:"border-box",color:"#fff",borderBottomLeftRadius:"10px",borderBottomRightRadius:"10px",zIndex:3,"& .MuiChip-root":{height:"auto",backgroundColor:"#41474E",borderRadius:"14px",fontSize:"12px",color:"#fff",fontWeight:"bold",padding:"4px 10px","& .MuiChip-label":{padding:0}}}})),de=Object(m.a)(T)((e=>{let{theme:t}=e;return{background:"linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%)",paddingRight:"10px","& .MuiButton-containedSizeSmall":{backgroundColor:"#F5F5F5",fontWeight:"bold",textTransform:"none",color:"#474C53",borderRadius:"12px",padding:"4px 17px"}}})),ue=Object(m.a)(B.a)((e=>{let{theme:t}=e;return{textShadow:"0 3px 6px rgb(0 0 0 / 30%)",lineHeight:1.2,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}})),be=Object(m.a)(p.b)((e=>{let{theme:t}=e;return{position:"absolute",top:"40%",right:"-80px",color:"#c8ccd0","&.wellness":{backgroundColor:"#fff",color:"#BAB8B2"},"&.grey":{backgroundColor:"#D1D1D1",color:"#fff"}}})),je=Object(m.a)(p.b)((e=>{let{theme:t}=e;return{position:"absolute",top:"40%",left:"-80px",color:"#c8ccd0","&.wellness":{backgroundColor:"#fff",color:"#BAB8B2"},"&.grey":{backgroundColor:"#D1D1D1",color:"#fff"}}})),pe=Object(m.a)(P.a)((e=>{let{theme:t}=e;return{position:"absolute",top:"50%",left:"50%",width:"120px",marginTop:"-60px",marginLeft:"-60px",color:"#c8ccd0"}})),me=r.a.forwardRef((e=>{const{children:t,cover:a,sx:n,...r}=e,{imageSet:c,ref:o}=Object(d.a)({img:a});return Object(_.jsx)(oe,{ref:o,...r,sx:{...n,backgroundImage:c},children:t})})),he=e=>{const{t:t}=Object(i.a)(),{item:a,type:n,isBanner:c,payoff:o}=e;return"t"!==n&&"l"!==n||c?"t"===n&&c?Object(_.jsx)(ie,{sx:{top:0,height:"100%",display:"flex",alignItems:{xs:"flex-end",md:"center"},pl:{xs:2,md:8}},children:Object(_.jsxs)(h.a,{children:[a.free&&!a.can_watch&&!o&&Object(_.jsx)(Oe,{payoff:t("Contenuto gratuito")}),o&&Object(_.jsx)(Oe,{payoff:o}),Object(_.jsx)(ue,{variant:"h5",children:Object(_.jsx)("b",{children:a.first_name})}),Object(_.jsx)(ue,{variant:"h3",children:Object(_.jsx)("b",{children:a.last_name})}),a.subtitle&&Object(_.jsx)(ue,{variant:"subtitle1",children:a.subtitle})]})}):Object(_.jsxs)(ie,{bottom:"bigTags"===n?"35%":-1,sx:{..."bigTags"===n&&{background:"none"}},children:["standard"===a.course_type&&Boolean(a.highlights)&&Object(_.jsx)(N.a,{color:"masterclass",size:"small",label:Object(_.jsx)("b",{children:a.highlights}),sx:{mb:1}}),"basics"===a.course_type&&Object(_.jsx)(N.a,{color:"basics",size:"small",label:a.package.title,sx:{mb:1}}),"wellness"===a.course_type&&Object(_.jsx)(N.a,{color:"wellness",size:"small",label:a.package.title,sx:{mb:1}}),"horeca"===a.course_type&&!!a.brands&&a.brands.map((e=>Object(_.jsx)(J.a,{useSet:!0,src:e.img_brand,alt:e.name,sx:{mb:1,height:30,width:"auto"}}))),a.label&&"bigTags"===n&&Object(_.jsx)(ue,{component:"h3",align:"center",variant:"h4",children:Object(_.jsx)("b",{children:a.label})}),a.title&&!c&&"bigTags"!==n&&Object(_.jsx)(ue,{component:"h3",align:"tags"===n?"center":"left",variant:"tags"===n?"subtitle1":"h6",children:Object(_.jsx)("b",{children:a.title})}),a.title&&c&&Object(_.jsx)(ue,{component:"h3",variant:"h4",children:Object(_.jsx)("b",{children:a.title})}),a.subtitle&&Object(_.jsx)(ue,{variant:"subtitle1",children:a.subtitle})]}):"l"===n&&a.has_cooking_box?Object(_.jsx)(ie,{bottom:0,sx:{background:"transparent"},children:Object(_.jsxs)(h.a,{bgcolor:"#fff",color:"#303337",borderRadius:"18px",textAlign:"center",display:"inline-flex",alignItems:"center",pl:2,pr:1,py:"5px",children:[Object(_.jsx)(B.a,{sx:{mr:1},children:Object(_.jsx)("b",{children:t("Box ingredienti")})}),Object(_.jsx)("img",{alt:"",src:ae.a,style:{width:"25px"}})]})}):!a.free||a.can_watch||o?Object(_.jsx)(r.a.Fragment,{}):Object(_.jsx)(ie,{bottom:-1,children:Object(_.jsx)(Oe,{payoff:t("Contenuto gratuito")})})},ge=e=>{const{t:t}=Object(i.a)(),{isWellness:a,isHoreca:n}=Object(l.a)(),{item:c,type:o,smallerImage:d,isBanner:u,showCourseTitle:p}=e,{request:m,cancelToken:g}=r.a.useContext(s.a),[x,f]=r.a.useState(!1),[O,v]=r.a.useState(c.is_favorite);if(("c"===o||"l"===o)&&!u)return Object(_.jsx)(se,{bgcolor:"l"===o||a?"transparent":"#26292D",children:Object(_.jsx)(L.a,{container:!0,justifyContent:"center",children:Object(_.jsxs)(L.a,{item:!0,xs:"l"===o?12:11,children:["undefined"!==typeof c.duration&&"undefined"!==typeof c.progress&&Object(_.jsx)(L.a,{container:!0,children:Object(_.jsx)(L.a,{item:!0,xs:!0,children:Object(_.jsx)(b.a,{duration:c.duration,progress:c.progress,LinearProgressProps:{...a&&{color:"wellness"},...n&&{color:"horeca"}}})})}),"l"===o&&Object(_.jsx)(h.a,{mt:1,children:Object(_.jsxs)(L.a,{container:!0,justifyContent:"space-between",children:[Object(_.jsx)(L.a,{item:!0,xs:d||!1 in c?12:10,children:Object(_.jsxs)(h.a,{textAlign:"left",px:1,children:[Object(_.jsx)(B.a,{variant:"caption",color:"textSecondary",gutterBottom:!0,children:p?c.course_title:Object(_.jsxs)(_.Fragment,{children:[t("Lezione")," ",c.lesson_num]})}),Object(_.jsx)(B.a,{variant:"subtitle2",color:"textPrimary",sx:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},children:Object(_.jsx)("b",{children:c.title})}),c.subtitle&&Object(_.jsx)(B.a,{variant:"caption",gutterBottom:!0,style:{color:"#7e7e7e",textTransform:"uppercase"},children:Object(_.jsx)("b",{children:c.subtitle})})]})}),!d&&"is_favorite"in c&&Object(_.jsxs)(L.a,{item:!0,xs:"auto",children:[Object(_.jsx)(P.a,{sx:{backgroundColor:"#373A40"},color:"white",onClick:()=>{c.is_favorite?(async()=>{const e=g.source();await m("delete","/v2/favorites/lesson/"+c.id,e.token)&&v(!1)})():(async()=>{const e=g.source();await m("post","/v2/favorites",e.token,{lesson_id:c.id})&&f(!0)})()},children:x?Object(_.jsx)(D.a,{component:K.a}):Object(_.jsxs)(_.Fragment,{children:[!O&&Object(_.jsx)(X.a,{}),O&&Object(_.jsx)(Y.a,{})]})}),x&&Object(_.jsx)(B.a,{align:"center",color:"textPrimary",sx:{fontSize:"8px",mt:.5},children:t("Salvata")})]})]})}),"c"===o&&Object(_.jsx)(h.a,{mt:1,children:Object(_.jsxs)(L.a,{container:!0,children:[Object(_.jsx)(L.a,{item:!0,xs:!0,children:Object(_.jsx)(h.a,{textAlign:"left",children:Object(_.jsxs)(B.a,{color:a?"text.secondary_wellness":"text.secondary",variant:"subtitle2",children:[Object(_.jsx)(D.a,{component:ee.a,fontSize:"inherit",color:"inherit",sx:{mr:.5,verticalAlign:"middle"}})," ",Object(j.l)(c.course_duration)]})})}),Object(_.jsx)(L.a,{item:!0,xs:!0,children:Object(_.jsx)(h.a,{textAlign:"center",children:Object(_.jsxs)(B.a,{color:a?"text.secondary_wellness":"text.secondary",variant:"subtitle2",children:[Object(_.jsx)(D.a,{component:Q.a,fontSize:"inherit",color:"inherit",sx:{mr:.5,verticalAlign:"middle"}})," ",c.lesson_completed_count,"/",c.lesson_count," ",t("lezioni")]})})}),Object(_.jsx)(L.a,{item:!0,xs:!0,children:Object(_.jsx)(h.a,{textAlign:"right",children:Object(_.jsxs)(B.a,{color:a?"text.secondary_wellness":"text.secondary",variant:"subtitle2",children:[Object(_.jsx)(D.a,{component:$.a,fontSize:"inherit",color:"inherit",sx:{mr:.5,verticalAlign:"middle"}})," ",c.test_completed_count,"/",c.test_count," ",t("test")]})})})]})})]})})});if("t"===o&&!u){const e=c.tags&&c.tags.split(",")[0];return Object(_.jsxs)(le,{children:[Object(_.jsx)(B.a,{variant:"caption",children:Object(_.jsx)("b",{children:c.first_name})}),Object(_.jsx)(B.a,{variant:"h5",gutterBottom:!0,sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:Object(_.jsx)("b",{children:c.last_name})}),e&&Object(_.jsx)(N.a,{label:e})]})}return Object(_.jsx)(r.a.Fragment,{})},xe=e=>{const{t:t,i18n:a}=Object(i.a)(),{item:n}=e;return Object(_.jsx)(de,{position:"top",sx:{background:"transparent"},title:Object(_.jsx)(N.a,{color:"default",size:"medium",label:Object(j.l)(n.duration),sx:{color:"#fff",fontWeight:"bold",backgroundColor:"rgba(0,0,0,0.5)",borderRadius:"12px"}}),actionIcon:n.test_available&&Object(_.jsx)(p.a,{component:c.b,size:"small",color:"secondary",variant:"contained",to:Object(o.f)("/:lang/:courses/:courseSlug/:lessons/:lessonSlug/test",{lang:a.language,courses:t("corsi"),courseSlug:n.course_slug,lessons:t("lezioni"),lessonSlug:n.slug}),children:t("Fai il test")})})},fe=e=>{const{t:t}=Object(i.a)(),{rank:a,item:n,isRanked:c}=e;return Object(_.jsx)(de,{position:"top",title:Object(_.jsx)(h.a,{sx:{display:"flex"},children:n.trainers_list&&Object(_.jsxs)(r.a.Fragment,{children:[Object(_.jsx)(h.a,{children:Object(_.jsx)(W.a,{max:2,children:n.trainers_list.map((e=>Object(_.jsx)(F.a,{alt:e.first_name+" "+e.last_name,src:Object(j.m)(e.img_portrait,100)},"avatar"+e.id)))})}),Object(_.jsx)(h.a,{pl:1,sx:{maxWidth:"60%",whiteSpace:"normal",lineHeight:1,display:"flex",alignItems:"center"},children:Object(_.jsx)(ue,{variant:"caption",children:Object(_.jsx)("b",{children:Object(j.o)(n)})})})]})}),actionIcon:Object(_.jsxs)(_.Fragment,{children:[n.free&&!n.can_watch&&"horeca"!==n.course_type&&Object(_.jsx)(N.a,{size:"small",color:"white",label:t("Contenuto gratuito"),sx:{fontWeight:"bold",mb:1,display:"flex",...(!Boolean(n.trainers_list)||c)&&{mt:1}}}),c&&Object(_.jsxs)(h.a,{bgcolor:"#fff",color:"#303337",borderRadius:"9px",textAlign:"center",display:"table",px:1,mt:Boolean(n.trainers_list)?0:1,ml:"auto",children:[Object(_.jsx)(B.a,{variant:"caption",children:t("Top")}),Object(_.jsx)(B.a,{variant:"h5",style:{marginTop:"-10px"},children:Object(_.jsx)("b",{children:a+1})})]})]})})},Oe=e=>{const{payoff:t}=e;return Object(_.jsx)(N.a,{size:"small",color:"white",label:t,sx:{fontWeight:"bold"}})},ve=e=>{const{item:t}=e;return Object(_.jsx)(pe,{onClick:()=>e.handleClickItem(t),children:Object(_.jsx)("img",{alt:"",src:te.a,style:{width:"100%",minHeight:"auto"}})})};function we(e){const{t:t,i18n:a}=Object(i.a)(),n=Array.isArray(e.data)?e.data:[e.data],{packageType:s}=Object(l.a)(),d=Object(o.h)(),j=Object(o.i)(),m=[],g=[],x=r.a.useRef(null),[f,O]=r.a.useState({right:!1,left:!1});e.type&&m.push(e.type),e.smallerImage&&m.push("smallerImage"),e.isBanner&
1&m.push("banner"),e.packages&&m.push("basics"),e.dontScroll&&g.push("dontScroll");const v=t=>{if(!x.current)return;const a=x.current.getBoundingClientRect();Math.round(a.bottom)-window.innerHeight<=0&&e.onScrollEnd&&e.onScrollEnd()};r.a.useEffect((()=>{if(e.dontScroll)return window.removeEventListener("scroll",v),window.addEventListener("scroll",v),()=>{window.removeEventListener("scroll",v)}}),[n]);const w=n=>{if("c"===e.handleClickItem&&("standard"===n.course_type&&d.push(Object(o.f)("/:lang/:courses/:courseSlug",{lang:a.language,courses:t("corsi"),courseSlug:n.slug})),"horeca"===n.course_type&&d.push(Object(o.f)("/:lang/horeca/:courseSlug",{lang:a.language,courseSlug:n.slug}))),"l"===e.handleClickItem&&("standard"===n.course_type&&d.push(Object(o.f)("/:lang/:courses/:courseSlug/:lessons/:lessonSlug",{lang:a.language,courses:t("corsi"),courseSlug:n.course_slug,lessons:t("lezioni"),lessonSlug:n.slug}),{from:j.pathname}),"horeca"===n.course_type&&d.push(Object(o.f)("/:lang/horeca/:courseSlug/:lessons/:lessonSlug",{lang:a.language,courseSlug:n.course_slug,lessons:t("lezioni"),lessonSlug:n.slug}),{from:j.pathname}),"basics"===n.course_type&&d.push(Object(o.f)("/:lang/:school/:classSlug/:modules/:moduleSlug/:lessons/:chapterSlug",{lang:a.language,school:t("scuola"),classSlug:n.package.slug,modules:t("moduli"),moduleSlug:n.course_slug,lessons:t("lezioni"),chapterSlug:n.slug}),{from:j.pathname}),"wellness"===n.course_type&&d.push(Object(o.f)("/:lang/:package/:classSlug/:modules/:moduleSlug/:lessons/:chapterSlug",{lang:a.language,package:t("benessere"),classSlug:n.package.slug,modules:t("moduli"),moduleSlug:n.course_slug,lessons:t("lezioni"),chapterSlug:n.slug}),{from:j.pathname})),"lp"===e.handleClickItem&&d.push(Object(o.f)("/:lang/:paths/:pathSlug",{lang:a.language,paths:t("percorsi"),pathSlug:n.slug})),"t"===e.handleClickItem&&(Object(u.a)("open_chef",{chef_id:n.id}),d.push(Object(o.f)("/:lang/:trainers/:trainerSlug",{lang:a.language,trainers:t("maestri"),trainerSlug:n.slug}))),"pc"===e.handleClickItem&&"basics"===n.package_type&&d.push(Object(o.f)("/:lang/:school/:classSlug",{lang:a.language,school:t("scuola"),classSlug:n.slug})),"pc"===e.handleClickItem&&"wellness"===n.package_type&&d.push(Object(o.f)("/:lang/:package/:classSlug",{lang:a.language,package:t("benessere"),classSlug:n.slug})),"c"===e.handleClickItem&&"basics"===n.course_type&&d.push(Object(o.f)("/:lang/:school/:classSlug/:modules/:moduleSlug",{lang:a.language,school:t("scuola"),classSlug:n.package.slug,modules:t("moduli"),moduleSlug:n.slug})),"c"===e.handleClickItem&&"wellness"===n.course_type&&d.push(Object(o.f)("/:lang/:package/:classSlug/:modules/:moduleSlug",{lang:a.language,package:t("benessere"),classSlug:n.package.slug,modules:t("moduli"),moduleSlug:n.slug})),"tags"===e.handleClickItem&&n.filters&&n.filters.filter_keys.length){const e=n.filters.filter_keys.reduce(((e,t,a)=>({...e,[t]:n.filters.filter_values[a]})),{}),r=new URLSearchParams(e);d.push(Object(o.f)("/:lang/:search/:section/?"+r.toString(),{lang:a.language,search:t("cerca"),section:t("corsi")}))}};return r.a.useEffect((()=>{!e.dontScroll&&x.current.scrollWidth>x.current.clientWidth&&O({left:!1,right:!0})}),[n]),Object(_.jsxs)(ne,{children:[f.right&&Object(_.jsx)(be,{onClick:()=>x.current.scrollLeft+=Math.round(x.current.offsetWidth),className:s.key||e.arrowsClassName,size:"small",children:Object(_.jsx)(V.a,{fontSize:"large"})}),f.left&&Object(_.jsx)(je,{onClick:()=>x.current.scrollLeft-=Math.round(x.current.offsetWidth),className:s.key||e.arrowsClassName,size:"small",children:Object(_.jsx)(q.a,{fontSize:"large"})}),Object(_.jsx)(re,{ref:x,className:g.join(" "),onScroll:t=>(t=>{const a=Math.round(t.target.scrollLeft),n=t.target.scrollWidth-t.target.offsetWidth;0===a&&O({left:!1,right:!0}),!(a>0&&a<n)||f.left&&f.right||O({left:!0,right:!0}),a>=n-10&&f.right&&(O({left:!0,right:!1}),e.onScrollEnd&&e.onScrollEnd())})(t),sx:{width:"100%"},children:n.map(((n,r)=>Object(_.jsxs)(ce,{className:m.join(" "),onClick:()=>{(!e.packages&&e.handleClickItem&&!e.play||e.packages&&e.handleClickItem&&n.enabled)&&w(n)},style:e.cols?{width:100/e.cols+"%",cursor:!e.packages&&e.handleClickItem&&!e.play||e.packages&&e.handleClickItem&&n.enabled?"pointer":"default"}:{cursor:!e.packages&&e.handleClickItem&&!e.play||e.packages&&e.handleClickItem&&n.enabled?"pointer":"default",marginBottom:e.dontScroll?"10px":0},children:[Object(_.jsxs)(me,{className:"content",cover:n.img||n.img_cover,sx:{boxSizing:"border-box",height:{xs:e.smallerImage?160:220,lg:e.cols&&2===e.cols?300:e.smallerImage?160:220},"&:hover":{md:{outline:e.packages&&e.handleClickItem&&!e.disableHover||e.forceHover?"2px solid #fff":"none"}}},children:[n.hasOwnProperty("enabled")&&!n.enabled&&Object(_.jsx)(h.a,{sx:{position:"absolute",top:0,left:0,bottom:0,right:0,width:"100%",height:"100%",zIndex:2,background:"rgba(0,0,0,0.7)",display:"flex",justifyContent:"center",alignItems:"center"},children:Object(_.jsx)(B.a,{variant:"h6",color:"textPrimary",sx:{letterSpacing:3},children:Object(_.jsx)("b",{children:n.course_status_text?n.course_status_text:t("PROSSIMAMENTE")})})}
1),!e.type&&e.payoff&&Object(_.jsx)(de,{position:"top",sx:{textAlign:"right",zIndex:2,background:"transparent",top:20,...n.free&&!n.can_watch&&"horeca"!==n.course_type&&{top:50}},actionIcon:Object(_.jsx)(Oe,{payoff:e.payoff})}),"l"===e.type&&e.smallerImage&&e.showBookmark&&n.is_favorite&&Object(_.jsx)(h.a,{sx:{position:"absolute",width:15,height:15,right:15,top:10},children:Object(_.jsx)(Y.a,{color:"white"})}),e.topBar&&Object(_.jsx)(xe,{item:n}),(n.trainers_list||e.isRanked||n.free)&&"l"!==e.type&&Object(_.jsx)(fe,{isRanked:e.isRanked,item:n,rank:r}),e.play&&Object(_.jsx)(ve,{handleClickItem:w,item:n}),Object(_.jsx)(he,{payoff:e.payoff,isBanner:e.isBanner,smallerImage:e.smallerImage,type:e.type,item:n}),Boolean(e.forceProgress)&&Object(_.jsx)(h.a,{sx:{position:"absolute",bottom:0,width:"100%"},children:Object(_.jsx)(b.a,{duration:n[e.forceProgress.duration],progress:n[e.forceProgress.progress]})})]}),!e.hideItemBottomBar&&Object(_.jsx)(ge,{showCourseTitle:e.showCourseTitle,isBanner:e.isBanner,smallerImage:e.smallerImage,type:e.type,item:n}),e.cta&&!n.can_watch&&!n.free&&Object(_.jsx)(h.a,{textAlign:"center",pt:1,children:Object(_.jsx)(p.a,{component:c.b,to:"/"+a.language+"/paywall/"+n.id,color:"primary",children:t("Ottieni il corso")})})]},e.type+n.id+r)))})]})}},261:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n,r=a(0);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(null,arguments)}function o(e,t){let{title:a,titleId:o,...i}=e;return r.createElement("svg",c({id:"Raggruppa_3946","data-name":"Raggruppa 3946",xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":o},i),a?r.createElement("title",{id:o},a):null,n||(n=r.createElement("g",{id:"Raggruppa_5018","data-name":"Raggruppa 5018"},r.createElement("path",{id:"Tracciato_8301","data-name":"Tracciato 8301",d:"M14.95,14.649a.9.9,0,0,1-.4-.095l-4.8-2.4a.9.9,0,0,1-.5-.805v-7.2a.9.9,0,1,1,1.8,0v6.644l4.3,2.15a.9.9,0,0,1-.4,1.705",transform:"translate(1.85 0.65)",fill:"currentColor"}),r.createElement("path",{id:"Tracciato_8302","data-name":"Tracciato 8302",d:"M12,1.8A10.2,10.2,0,1,1,1.8,12,10.211,10.211,0,0,1,12,1.8M12,0A12,12,0,1,0,24,12,12,12,0,0,0,12,0",fill:"currentColor"}))))}const i=r.forwardRef(o);a.p},264:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a(645),r=a(336),c=a(1);const o=Object(n.a)(r.a)((e=>{let{theme:t}=e;return{backgroundColor:"transparent",padding:0,marginTop:"10px","& .MuiMobileStepper-progress":{borderRadius:"5px",width:"100%",backgroundColor:"rgba(0,0,0,0.3) !important"}}}));function i(e){const{duration:t,progress:a,...n}=e;return Object(c.jsx)(o,{variant:"progress",steps:1e3*t,activeStep:1e3*a,position:"static",...n})}},265:function(e,t,a){"use strict";t.a=a.p+"static/media/cookinbox.6c649e8c.svg"},267:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n,r=a(0);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(null,arguments)}function o(e,t){let{title:a,titleId:o,...i}=e;return r.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",ref:t,"aria-labelledby":o},i),a?r.createElement("title",{id:o},a):null,n||(n=r.createElement("path",{d:"m19 21-7-3-7 3V5c0-1.1.9-2 2-2h7c-.63.84-1 1.87-1 3 0 2.76 2.24 5 5 5 .34 0 .68-.03 1-.1zM17.83 9 15 6.17l1.41-1.41 1.41 1.41 3.54-3.54 1.41 1.41z",fill:"currentColor"})))}const i=r.forwardRef(o);a.p},268:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n,r=a(0);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(null,arguments)}function o(e,t){let{title:a,titleId:o,...i}=e;return r.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:23.365,height:23.363,viewBox:"0 0 23.365 23.363",ref:t,"aria-labelledby":o},i),a?r.createElement("title",{id:o},a):null,n||(n=r.createElement("g",null,r.createElement("g",{transform:"translate(0.75 0.75)"},r.createElement("rect",{width:21.864,height:21.863,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:"1.5px",rx:5})),r.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5px",d:"M234.191 356.274l4.77 3.773
1-4.77 4.129",transform:"translate(0.75 0.75) translate(-225.034 -349.228)"}))))}const i=r.forwardRef(o);a.p},282:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n,r,c=a(0);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},o.apply(null,arguments)}function i(e,t){let{title:a,titleId:i,...s}=e;return c.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":i},s),a?c.createElement("title",{id:i},a):null,n||(n=c.createElement("defs",null,c.createElement("clipPath",{id:"clip-path"},c.createElement("rect",{id:"Rettangolo_1604","data-name":"Rettangolo 1604",width:24,height:24,fill:"currentColor"})))),r||(r=c.createElement("g",{id:"Raggruppa_3952","data-name":"Raggruppa 3952",clipPath:"url(#clip-path)"},c.createElement("path",{id:"Tracciato_8712","data-name":"Tracciato 8712",d:"M2.77,0a2.769,2.769,0,1,0,2.77,2.77A2.769,2.769,0,0,0,2.77,0m0,9.23A2.77,2.77,0,1,0,5.539,12,2.769,2.769,0,0,0,2.77,9.23Zm0,9.23a2.77,2.77,0,1,0,2.77,2.77,2.769,2.769,0,0,0-2.77-2.77m20.492,1.552H8.372a.679.679,0,0,0-.738.6v1.2a.679.679,0,0,0,.738.6h14.89a.68.68,0,0,0,.738-.6V20.622a.676.676,0,0,0-.731-.6h-.007Zm0-18.452H8.372a.678.678,0,0,0-.738.594V3.366a.678.678,0,0,0,.738.594h14.89A.679.679,0,0,0,24,3.366v-1.2a.675.675,0,0,0-.732-.6h-.006Zm0,9.23H8.372a.678.678,0,0,0-.738.594V12.6a.678.678,0,0,0,.738.594h14.89A.679.679,0,0,0,24,12.6V11.4a.675.675,0,0,0-.731-.6h-.007Z",fill:"currentColor"}))))}const s=c.forwardRef(i);a.p},333:function(e,t,a){"use strict";var n=a(31),r=a(4),c=a(2),o=a(0),i=a(36),s=a(38),l=a(183),d=a(34),u=a(181),b=a(29),j=a(54),p=a(158),m=a(179);function h(e){return Object(p.a)("MuiSkeleton",e)}Object(m.a)("MuiSkeleton",["root","text","rectangular","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var g,x,f,O,v=a(1);const w=["animation","className","component","height","style","variant","width"];let y,S,k,C;const _=Object(s.c)(y||(y=g||(g=Object(n.a)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"])))),A=Object(s.c)(S||(S=x||(x=Object(n.a)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"])))),I=Object(b.a)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[a.variant],!1!==a.animation&&t[a.animation],a.hasChildren&&t.withChildren,a.hasChildren&&!a.width&&t.fitContent,a.hasChildren&&!a.height&&t.heightAuto]}})((e=>{let{theme:t,ownerState:a}=e;const n=Object(d.d)(t.shape.borderRadius)||"px",r=Object(d.g)(t.shape.borderRadius);return Object(c.a)({display:"block",backgroundColor:Object(u.a)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===a.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(r).concat(n,"/").concat(Math.round(r/.6*10)/10).concat(n),"&:empty:before":{content:'"\\00a0"'}},"circular"===a.variant&&{borderRadius:"50%"},a.hasChildren&&{"& > *":{visibility:"hidden"}},a.hasChildren&&!a.width&&{maxWidth:"fit-content"},a.hasChildren&&!a.height&&{height:"auto"})}),(e=>{let{ownerState:t}=e;return"pulse"===t.animation&&Object(s.b)(k||(k=f||(f=Object(n.a)(["\n animation: "," 1.5s ease-in-out 0.5s infinite;\n "]))),_)}),(e=>{let{ownerState:t,theme:a}=e;return"wave"===t.animation&&Object(s.b)(C||(C=O||(O=Object(n.a)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 1.6s linear 0.5s infinite;\n background: linear-gradient(90deg, transparent, ",", transparent);\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]))),A,a.palette.action.hover)})),E=o.forwardRef((function(e,t){const a=Object(j.a)({props:e,name:"MuiSkeleton"}),{animation:n="pulse",className:o,component:s="span",height:d,style:u,variant:b="text",width:p}=a,m=Object(r.a)(a,w),g=Object(c.a)({},a,{animation:n,component:s,variant:b,hasChildren:Boolean(m.children)}),x=(e=>{const{classes:t,variant:a,animation:n,hasChildren:r,width:c,height:o}=e,i={root:["root",a,n,r&&"withChildren",r&&!c&&"fitContent",r&&!o&&"heightAuto"]};return Object(l.a)(i,h,t)})(g);return Object(v.jsx)(I,Object(c.a)({as:s,ref:t,className:Object(i.a)(x.root,o),ownerState:g},m,{style:Object(c.a)({width:p,height:d},u)}))}));t.a=E},334:function(e,t,a){"use strict";var n=a(4),r=a(2),c=a(0),o=(a(240),a(36)),i=a(183),s=a(29),l=a(54),d=a(706),u=a(158),b=a(179);function j(e){return Object(u.a)("MuiAvatarGroup",e)}var p=Object(b.a)("MuiAvatarGroup",["root","avatar"]),m=a(1);const h=["children","className","max","spacing","variant"],g={small:-16,medium:null},x=Object(s.a)("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>Object(r.a)({["& .".concat(p.avatar)]:t.avatar},t.root)})((e=>{let{theme:t}=e;
1return{"& .MuiAvatar-root":{border:"2px solid ".concat(t.palette.background.default),boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}})),f=Object(s.a)(d.a,{name:"MuiAvatarGroup",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})((e=>{let{theme:t}=e;return{border:"2px solid ".concat(t.palette.background.default),boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}}})),O=c.forwardRef((function(e,t){const a=Object(l.a)({props:e,name:"MuiAvatarGroup"}),{children:s,className:d,max:u=5,spacing:b="medium",variant:p="circular"}=a,O=Object(n.a)(a,h),v=u<2?2:u,w=Object(r.a)({},a,{max:u,spacing:b,variant:p}),y=(e=>{const{classes:t}=e;return Object(i.a)({root:["root"],avatar:["avatar"]},j,t)})(w),S=c.Children.toArray(s).filter((e=>c.isValidElement(e))),k=S.length>v?S.length-v+1:0,C=b&&void 0!==g[b]?g[b]:-b;return Object(m.jsxs)(x,Object(r.a)({ownerState:w,className:Object(o.a)(y.root,d),ref:t},O,{children:[k?Object(m.jsxs)(f,{ownerState:w,className:y.avatar,style:{marginLeft:C},variant:p,children:["+",k]}):null,S.slice(0,S.length-k).reverse().map((e=>c.cloneElement(e,{className:Object(o.a)(e.props.className,y.avatar),style:Object(r.a)({marginLeft:C},e.props.style),variant:e.props.variant||p})))]}))}));t.a=O},336:function(e,t,a){"use strict";var n=a(4),r=a(2),c=a(0),o=a(36),i=a(183),s=a(715),l=a(21),d=a(186),u=a(54),b=a(29),j=a(158),p=a(179);function m(e){return Object(j.a)("MuiMobileStepper",e)}Object(p.a)("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);var h=a(1);const g=["activeStep","backButton","className","LinearProgressProps","nextButton","position","steps","variant"],x=Object(b.a)(s.a,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t["position".concat(Object(l.a)(a.position))]]}})((e=>{let{theme:t,ownerState:a}=e;return Object(r.a)({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:t.palette.background.default,padding:8},"bottom"===a.position&&{position:"fixed",bottom:0,left:0,right:0,zIndex:t.zIndex.mobileStepper},"top"===a.position&&{position:"fixed",top:0,left:0,right:0,zIndex:t.zIndex.mobileStepper})})),f=Object(b.a)("div",{name:"MuiMobileStepper",slot:"Dots",overridesResolver:(e,t)=>t.dots})((e=>{let{ownerState:t}=e;return Object(r.a)({},"dots"===t.variant&&{display:"flex",flexDirection:"row"})})),O=Object(b.a)("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>Object(b.c)(e)&&"dotActive"!==e,overridesResolver:(e,t)=>{const{dotActive:a}=e;return[t.dot,a&&t.dotActive]}})((e=>{let{theme:t,ownerState:a,dotActive:n}=e;return Object(r.a)({},"dots"===a.variant&&Object(r.a)({transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),backgroundColor:t.palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"},n&&{backgroundColor:t.palette.primary.main}))})),v=Object(b.a)(d.a,{name:"MuiMobileStepper",slot:"Progress",overridesResolver:(e,t)=>t.progress})((e=>{let{ownerState:t}=e;return Object(r.a)({},"progress"===t.variant&&{width:"50%"})})),w=c.forwardRef((function(e,t){const a=Object(u.a)({props:e,name:"MuiMobileStepper"}),{activeStep:s=0,backButton:d,className:b,LinearProgressProps:j,nextButton:p,position:w="bottom",steps:y,variant:S="dots"}=a,k=Object(n.a)(a,g),C=Object(r.a)({},a,{activeStep:s,position:w,variant:S}),_=(e=>{const{classes:t,position:a}=e,n={root:["root","position".concat(Object(l.a)(a))],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return Object(i.a)(n,m,t)})(C);return Object(h.jsxs)(x,Object(r.a)({square:!0,elevation:0,className:Object(o.a)(_.root,b),ref:t,ownerState:C},k,{children:[d,"text"===S&&Object(h.jsxs)(c.Fragment,{children:[s+1," / ",y]}),"dots"===S&&Object(h.jsx)(f,{ownerState:C,className:_.dots,children:[...new Array(y)].map(((e,t)=>Object(h.jsx)(O,{className:Object(o.a)(_.dot,t===s&&_.dotActive),ownerState:C,dotActive:t===s},t)))}),"progress"===S&&Object(h.jsx)(v,Object(r.a)({ownerState:C,className:_.progress,variant:"determinate",value:Math.ceil(s/(y-1)*100)},j)),p]}))}));t.a=w},399:function(e,t,a){"use strict";a(0);
1var n=a(645),r=a(723),c=a(720),o=a(111),i=a(1);const s=Object(n.a)(r.a)((e=>{let{theme:t}=e;return{position:"absolute","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}));t.a=e=>{const{value:t,colorText:a,icon:n,...l}=e;return Object(i.jsxs)(o.a,{position:"relative",display:"inline-flex",children:[Object(i.jsx)(r.a,{variant:"determinate",className:l.color,sx:{color:"#3a4045","&.wellness":{color:"#BAB8B2"}},size:77,thickness:4,value:100}),Object(i.jsx)(s,{size:77,thickness:4,variant:"determinate",value:t,...l}),Object(i.jsx)(o.a,{top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",children:Boolean(n)?n:Object(i.jsx)(c.a,{component:"div",color:a||"textPrimary",children:Object(i.jsx)("b",{children:"".concat(t,"%")})})})]})}},443:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n,r=a(0);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(null,arguments)}function o(e,t){let{title:a,titleId:o,...i}=e;return r.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":o},i),a?r.createElement("title",{id:o},a):null,n||(n=r.createElement("g",{id:"Raggruppa_6675","data-name":"Raggruppa 6675",transform:"translate(-532 -1309)"},r.createElement("rect",{id:"Rettangolo_2530","data-name":"Rettangolo 2530",width:24,height:24,transform:"translate(532 1309)",fill:"none"}),r.createElement("path",{id:"Tracciato_9219","data-name":"Tracciato 9219",d:"M10.177,22.944a12.333,12.333,0,0,1-2.005-2.03A4.72,4.72,0,0,0,11.4,15.248a4.726,4.726,0,0,0-3.526,5.269,12.383,12.383,0,0,1-1.664-3.193,12.517,12.517,0,0,1-.549-2.238,4.725,4.725,0,0,0,4.993-3.822A4.727,4.727,0,0,0,5.525,13.83a12.26,12.26,0,0,1,.839-5.1A4.72,4.72,0,0,0,12.252,6.07a4.72,4.72,0,0,0-5.035.925A12.46,12.46,0,0,1,8.762,4.9,4.726,4.726,0,0,0,12.57,0,4.725,4.725,0,0,0,8.226,3.745,13.777,13.777,0,0,0,6.84,5.407,4.726,4.726,0,0,0,4.617.683,4.726,4.726,0,0,0,5.876,6.958,13.43,13.43,0,0,0,4.495,11.1,4.724,4.724,0,0,0,1.184,7.2a4.726,4.726,0,0,0,3.142,5.889A13.572,13.572,0,0,0,4.6,15.926,4.725,4.725,0,0,0,0,14.251a4.726,4.726,0,0,0,5.206,3.765,13.6,13.6,0,0,0,1.561,2.991,4.725,4.725,0,0,0-5.6.382,4.719,4.719,0,0,0,6.443.71,13.464,13.464,0,0,0,1.825,1.769.514.514,0,0,0,.073.051.59.59,0,0,0,.663-.974Z",transform:"translate(538 1309)",fill:"currentColor"}))))}const i=r.forwardRef(o);a.p},444:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n,r=a(0);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},c.apply(null,arguments)}function o(e,t){let{title:a,titleId:o,...i}=e;return r.createElement("svg",c({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",ref:t,"aria-labelledby":o},i),a?r.createElement("title",{id:o},a):null,n||(n=r.createElement("g",{id:"Raggruppa_6674","data-name":"Raggruppa 6674",transform:"translate(-565 -1309)"},r.createElement("rect",{id:"Rettangolo_2531","data-name":"Rettangolo 2531",width:24,height:24,transform:"translate(565 1309)",fill:"none"}),r.createElement("path",{id:"Tracciato_9220","data-name":"Tracciato 9220",d:"M2.4,22.944a12.333,12.333,0,0,0,2.005-2.03,4.72,4.72,0,0,1-3.226-5.666,4.726,4.726,0,0,1,3.526,5.269A12.383,12.383,0,0,0,6.37,17.325a12.517,12.517,0,0,0,.549-2.238,4.725,4.725,0,0,1-4.993-3.822A4.727,4.727,0,0,1,7.052,13.83a12.26,12.26,0,0,0-.839-5.1A4.72,4.72,0,0,1,.325,6.07a4.72,4.72,0,0,1,5.035.925A12.46,12.46,0,0,0,3.816,4.9,4.726,4.726,0,0,1,.008,0,4.725,4.725,0,0,1,4.352,3.745,13.777,13.777,0,0,1,5.737,5.407,4.726,4.726,0,0,1,7.96.683,4.726,4.726,0,0,1,6.7,6.958,13.43,13.43,0,0,1,8.082,11.1a4.724,4.724,0,0,1,3.311-3.9,4.726,4.726,0,0,1-3.142,5.889,13.572,13.572,0,0,1-.271,2.837,4.725,4.725,0,0,1,4.6-1.675,4.726,4.726,0,0,1-5.206,3.765A13.6,13.6,0,0,1,5.81,21.007a4.725,4.725,0,0,1,5.6.382,4.719,4.719,0,0,1-6.443.71,13.464,13.464,0,0,1-1.825,1.769.514.514,0,0,1-.073.051.59.59,0,0,1-.663-.974Z",transform:"translate(571 1309)",fill:"currentColor"}))))}const i=r.forwardRef(o);a.p},564:function(e,t,a){"use strict";var n=a(189);
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a(190)),c=a(1),o=(0,r.default)((0,c.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.default=o},703:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),c=a(27),o=a(79),i=a(709),s=a(645),l=a(212),d=a(192),u=a(257),b=a(56),j=(a(236),a(657)),p=a(35),m=a(20),h=a(221),g=a(188),x=a(689),f=a(111),O=a(717),v=a(649),w=a(716),y=a(706),S=a(720),k=a(721),C=a(700),_=a(648),A=a(647),I=a(705),E=a(728),z=a(191),R=a(399),M=a(14),T=a.n(M),B=a(230),P=a.p+"static/media/certificate_variant.88616508.svg",N=a.p+"static/media/noimage.75a0ec27.svg",L=a(266),D=a.n(L),W=a(564),F=a.n(W),G=a(196),V=a(443),H=a(444),q=a(261),Z=a(202),Y=a.n(Z),U=a(242),X=a.n(U),J=a(1);const K=Object(s.a)(x.a)((e=>{let{theme:t}=e;return{fontFamily:"Raleway",background:"#1D1F22",borderRadius:4,fontSize:12,color:"#545A62",padding:"5px 15px",fontWeight:"bold","&.active":{border:"1px solid #FFFFFF",color:"#fff"}}})),Q=Object(s.a)(f.a)((e=>{let{theme:t}=e;return{boxSizing:"border-box",background:"#1D1F22",borderRadius:"10px",padding:"15px"}})),$=Object(s.a)(f.a)((e=>{let{theme:t}=e;return{position:"relative",marginTop:-25,width:92,height:92}})),ee=e=>{const{t:t}=Object(o.a)(),{achievement:a}=e,{auth:n}=r.a.useContext(m.a),{request:c,cancelToken:i}=r.a.useContext(p.a),[s,l]=r.a.useState(!1),[u,h]=r.a.useState(null),x=Object(b.a)(),I=Object(j.a)(x.breakpoints.down("md"));return Object(J.jsxs)(J.Fragment,{children:[Object(J.jsxs)(G.a,{fullWidth:!0,hideTitle:!0,maxWidth:"xs",scroll:"body",fullScreen:I,open:s,handleClose:()=>{l(!1)},children:[Object(J.jsxs)(f.a,{sx:{position:"relative"},children:[Object(J.jsx)(d.a,{src:null===u||void 0===u?void 0:u.img_cover,alt:null===u||void 0===u?void 0:u.title,sx:{width:"100%",height:"auto",borderRadius:"10px"}}),Object(J.jsx)(O.a,{"aria-label":"close",onClick:()=>{l(!1)},size:"large",sx:{position:"absolute",top:1,right:1,color:"#fff",backgroundColor:"rgba(38, 41, 45, 0.8)",p:1},children:Object(J.jsx)(Y.a,{})})]}),Object(J.jsxs)(f.a,{sx:{position:"relative",mt:"-40px"},children:[Object(J.jsxs)(v.a,{direction:"row",alignItems:"center",justifyContent:"center",children:[Object(J.jsx)(w.a,{component:V.a,color:"gold",sx:{fontSize:50}}),Object(J.jsx)(y.a,{src:n.user.data.img_avatar||N,sx:{width:80,height:80}}),Object(J.jsx)(w.a,{component:H.a,color:"gold",sx:{fontSize:50}})]}),Object(J.jsxs)(f.a,{sx:{p:2,textAlign:"center"},children:[Object(J.jsx)(S.a,{color:"textPrimary",variant:"h5",sx:{mb:1},children:Object(J.jsx)("b",{children:t("Complimenti!")})}),Object(J.jsx)(S.a,{color:"textPrimary",variant:"subtitle1",sx:{mb:3},children:Object(J.jsx)("b",{children:n.user.data.first_name})}),Object(J.jsx)(S.a,{color:"textPrimary",variant:"subtitle1",children:a.title}),Object(J.jsx)(S.a,{color:"textSecondary",variant:"caption",component:"div",sx:{mb:3},children:t("Completamento: {{percent}}",{percent:Math.round(((null===u||void 0===u?void 0:u.course_completed_count)||0)/((null===u||void 0===u?void 0:u.course_count)||0)*100)+"%"})}),Object(J.jsxs)(S.a,{color:"text.secondary",variant:"caption",component:"div",children:[Object(J.jsx)(w.a,{component:q.a,fontSize:"inherit",color:"inherit",sx:{mr:.5,verticalAlign:"middle"}}),Object(J.jsx)(S.a,{component:"span",variant:"caption",color:"text.primary",children:Object(g.l)(null===u||void 0===u?void 0:u.duration)})]}),Object(J.jsx)(v.a,{direction:"row",justifyContent:"center",sx:{my:3},children:Object(J.jsx)(k.a,{dense:!0,disablePadding:!0,children:null===u||void 0===u?void 0:u.bullet_points.map(((e,t)=>Object(J.jsxs)(C.a,{children:[Object(J.jsx)(_.a,{sx:{minWidth:30},children:Object(J.jsx)(X.a,{color:"white",fontSize:"small"})}),Object(J.jsx)(A.a,{primaryTypographyProps:{color:"text.primary",variant:"caption"},primary:Object(J.jsx)("b",{children:e})})]},t)))})})]})]})]}),Object(J.jsx)(Q,{sx:{minWidth:250,cursor:"pointer"},onClick:()=>{(async()=>{const e=i.source(),t=await c("get","/v2/learning-paths/".concat(a.ref_id),e.token);t&&(h(t),l(!0))})()},children:Object(J.jsxs)(v.a,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{width:"100%"},children:[Object(J.jsx)(w.a,{component:V.a,color:"gold",sx:{fontSize:40}}),Object(J.jsx)(S.a,{color:"textPrimary",align:"center",component:"div",variant:"caption",sx:{fontWeight:"bold"},children:a.title}),Object(J.jsx)(w.a,{component:H.a,color:"gold",sx:{fontSize:40}})]})})]})},te=()=>{const{t:e}=Object(o.a)(),{request:t,cancelToken:a}=r.a.useContext(p.a),[n,c]=r.a.useState([]),[i,s]=r.a.useState(!1),[l,d]=r.a.useState(!1),[b,j]=r.a.useState({p:1,c:20,s:"desc"});return r.a.useEffect((()=>{(async()=>{s(!0);const e=a.source(),n=await t("get","/v2/user/courses",e.token,b);n&&n.courses.length&&(d(!0),c((e=>[...e].concat(n.courses)))),s(!1)})()}),[b]),Object(J.jsxs)(f.a,{mt:5,children:[Object(J.jsx)(S.a,{color:"textPrimary",variant:"h6",sx:{mb:1},children:Object(J.jsx)("b",{children:e("I miei corsi")})}),Object(J.jsxs)(f.a,{children:[Object(J.jsx)(K,{className:"desc"===b.s?"active":"",sx:{mr:1},onClick:()=>{c([]),j({...b,s:"desc",p:1})},children:e("Dal pi\xf9 recente")}),Object(J.jsx)(K,{className:"asc"===b.s?"active":"",onClick:()=>{c([]),j({...b,s:"asc",p:1})},children:e("Dal meno recente")})]}),l?Object(J.jsx)(u.a,{handleClickItem:"c",data:n,forceProgress:{duration:"lesson_count",progress:"lesson_completed_count"},onScrollEnd:()=>{i||j({...b,p:b.p+1})}}):Object(J.jsx)(Q,{sx:{mt:2,height:220,display:"flex",alignItems:"center",p:6,width:"fit-content"},children:Object(J.jsxs)(S.a,{color:"textPrimary",children:[Object(J.jsx)("b",{children:e("Ancora non hai visto nessun corso.")}),Object(J.jsx)("br",{}),e("Guarda un corso per ritrovarlo qui")]})})]})},ae=()=>{const{t:e}=Object(o.a)(),{request:t,cancelToken:a}=r.a.useContext(p.a),[n,c]=r.a.useState([]),[i,s]=r.a.useState(!1),[l,d]=r.a.useState(!1),[b,j]=r.a.useState({p:1,c:20,s:"desc"});return r.a.useEffect((()=>{(async()=>{s(!0);const e=a.source(),n=await t("get","/v2/user/learning-paths",e.token,b);n&&n.latest_learning_paths.length&&(d(!0),c((e=>[...e].concat(n.latest_learning_paths)))),s(!1)})()}),[b]),Object(J.jsxs)(f.a,{mt:5,children:[Object(J.jsx)(S.a,{color:"textPrimary",variant:"h6",sx:{mb:1},children:Object(J.jsx)("b",{children:e("Il miei percorsi")})}),Object(J.jsxs)(f.a,{children:[Object(J.jsx)(K,{className:"desc"===b.s?"active":"",sx:{mr:1},onClick:()=>{c([]),j({...b,s:"desc",p:1})},children:e("Dal pi\xf9 recente")}),Object(J.jsx)(K,{className:"asc"===b.s?"active":"",onClick:()=>{c([]),j({...b,s:"asc",p:1})},children:e("Dal meno recente")})]}),l?Object(J.jsx)(u.a,{handleClickItem:"lp",data:n,forceProgress:{duration:"course_count",progress:"course_completed_count"},onScrollEnd:()=>{i||j({...b,p:b.p+1})}}):Object(J.jsx)(Q,{sx:{mt:2,height:220,display:"flex",alignItems:"center",p:6,width:"fit-content"},children:Object(J.jsxs)(S.a,{color:"textPrimary",children:[Object(J.jsx)("b",{children:e("Ancora non hai iniziato nessun percorso.")}),Object(J.jsx)("br",{}),e("Inizia un percorso per ritrovarlo qui")]})})]})},ne=()=>{const{t:e}=Object(o.a)(),{request:t,cancelToken:a}=r.a.useContext(p.a),[n,c]=r.a.useState([]),[i,s]=r.a.useState(!1),[l,d]=r.a.useState(!1),[b,j]=r.a.useState({p:1,c:20,s:"desc"});return r.a.useEffect((()=>{(async()=>{s(!0);const e=a.source(),n=await t("get","/v2/user/lessons",e.token,b);n&&n.lessons.length&&(d(!0),c((e=>[...e].concat(n.lessons)))),s(!1)})()}),[b]),Object(J.jsxs)(f.a,{mt:5,children:[Object(J.jsx)(S.a,{color:"textPrimary",variant:"h6",sx:{mb:1},children:Object(J.jsx)("b",{children:e("Cronologia lezioni")})}),Object(J.jsxs)(f.a,{children:[Object(J.jsx)(K,{className:"desc"===b.s?"active":"",sx:{mr:1},onClick:()=>{c([]),j({...b,s:"desc",p:1})},children:e("Dal pi\xf9 recente")}),Object(J.jsx)(K,{className:"asc"===b.s?"active":"",onClick:()=>{c([]),j({...b,s:"asc",p:1})},children:e("Dal meno recente")})]}),l?Object(J.jsx)(u.a,{handleClickItem:"l",type:"l",data:n,smallerImage:!0,showCourseTitle:!0,onScrollEnd:()=>{i||j({...b,p:b.p+1})}}):Object(J.jsx)(Q,{sx:{mt:2,height:160,display:"flex",alignItems:"center",p:6,width:"fit-content"},children:Object(J.jsxs)(S.a,{color:"textPrimary",children:[Object(J.jsx)("b",{children:e("Ancora non hai visto nessuna lezione.")}),Object(J.jsx)("br",{}),e("Guarda una lezione per ritrovarla qui")]})})]})},re=()=>{const{t:e}=Object(o.a)(),{request:t,cancelToken:a}=r.a.useContext(p.a),[n,c]=r.a.useState([]),[i,s]=r.a.useState(!1),[l,d]=r.a.useState(!1),[b,j]=r.a.useState({p:1,c:20,s:"desc"});return r.a.useEffect((()=>{(async()=>{s(!0);const e=a.source(),n=await t("get","/v2/favorites",e.token,b);n&&n.length&&(d(!0),c((e=>[...e].concat(n)))),s(!1)})()}),[b]),Object(J.jsxs)(f.a,{mt:5,children:[Object(J.jsx)(S.a,{color:"textPrimary",variant:"h6",sx:{mb:1},children:Object(J.jsx)("b",{children:e("Lezioni salvate")})}),Object(J.jsxs)(f.a,{children:[Object(J.jsx)(K,{className:"desc"===b.s?"active":"",sx:{mr:1},onClick:()=>{c([]),j({...b,s:"desc",p:1})},children:e("Dal pi\xf9 recente")}),Object(J.jsx)(K,{className:"asc"===b.s?"active":"",onClick:()=>{c([]),j({...b,s:"asc",p:1})},children:e("Dal meno recente")})]}),l?Object(J.jsx)(u.a,{handleClickItem:"l",type:"l",data:n,smallerImage:!0,showCourseTitle:!0,showBookmark:!0,onScrollEnd:()=>{i||j({...b,p:b.p+1})}}):Object(J.jsx)(Q,{sx:{mt:2,height:160,display:"flex",alignItems:"center",p:6,width:"fit-content"},children:Object(J.jsxs)(S.a,{color:"textPrimary",children:[Object(J.jsx)("b",{children:e("Ancora non hai salvato nessuna lezione.")}),Object(J.jsx)("br",{}),e("Salva una lezione per ritrovarla qui")]})})]})},ce=()=>{const{t:e}=Object(o.a)(),{request:t,cancelToken:a}=r.a.useContext(p.a),[n,c]=r.a.useState([]),[i,s]=r.a.useState(!1),[l,u]=r.a.useState(!1),[b,j]=r.a.useState({p:1,c:20,s:"desc"});return r.a.useEffect((()=>{(async()=>{s(!0);const e=a.source(),n=await t("get","/v2/user/certificates",e.token,b);n&&n.certificates.length&&(u(!0),c((e=>[...e].concat(n.certificates)))),s(!1)})()}),[b]),Object(J.jsxs)(f.a,{mt:5,children:[Object(J.jsx)(S.a,{color:"textPrimary",variant:"h6",sx:{mb:1},children:Object(J.jsx)("b",{children:e("Le mie certificazioni")})}),Object(J.jsxs)(f.a,{sx:{mb:2},children:[Object(J.jsx)(K,{className:"desc"===b.s?"active":"",sx:{mr:1},onClick:()=>{c([]),j({...b,s:"desc",p:1})},children:e("Dal pi\xf9 recente")}),Object(J.jsx)(K,{className:"asc"===b.s?"active":"",onClick:()=>{c([]),j({...b,s:"asc",p:1})},children:e("Dal meno recente")})]}),Object(J.jsx)(f.a,{sx:{mx:-1},children:l?Object(J.jsx)(h.a,{onScrollEnd:()=>{i||j({...b,p:b.p+1})},children:Object(g.b)(n,2).map(((t,a)=>Object(J.jsx)(f.a,{sx:{minWidth:360,width:{xs:"100%",lg:"30%"}},children:t.map((t=>Object(J.jsx)(Q,{sx:{py:3,mb:2},children:Object(J.jsxs)(v.a,{direction:"row",alignItems:"center",spacing:2,children:[Object(J.jsx)(y.a,{variant:"rounded",sx:{backgroundColor:"#32363B",width:42,he
1ight:42,color:"white"},children:Object(J.jsx)(d.a,{src:P})}),Object(J.jsx)(S.a,{color:"textPrimary",sx:{pr:2,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:Object(J.jsx)("b",{children:t.course.title})}),Object(J.jsx)(f.a,{sx:{ml:"auto !important"},children:Object(J.jsx)(z.a,{variant:"contained",color:"secondary",size:"small",href:t.pdf_url,target:"_blank",children:e("Scarica")})})]})},t.id)))},"chunk"+a)))}):Object(J.jsx)(Q,{sx:{mt:2,height:160,display:"flex",alignItems:"center",p:6,width:"fit-content"},children:Object(J.jsxs)(S.a,{color:"textPrimary",children:[Object(J.jsx)("b",{children:e("Ancora non hai superato alcun test.")}),Object(J.jsx)("br",{}),e("Rispondi correttamente alle domande di un corso per trovare qui il tuo certificato")]})})})]})},oe=e=>{const{ratings:t}=e,{t:a}=Object(o.a)();return Object(J.jsxs)(f.a,{sx:{mt:2},children:[Object(J.jsxs)(v.a,{direction:"row",sx:{height:"10px",borderRadius:"5px",overflow:"hidden",background:"#121416"},children:[Object(J.jsx)(f.a,{sx:{height:"10px",backgroundColor:"#FD4A4A",flexGrow:t.chef_rating}}),Object(J.jsx)(f.a,{sx:{height:"10px",backgroundColor:"#38D9FF",flexGrow:t.pastry_rating}}),Object(J.jsx)(f.a,{sx:{height:"10px",backgroundColor:"#FFC915",flexGrow:t.baker_rating}}),Object(J.jsx)(f.a,{sx:{height:"10px",backgroundColor:"#931FFF",flexGrow:t.other_rating}})]}),Object(J.jsxs)(v.a,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{mt:2},children:[Object(J.jsxs)(v.a,{direction:"row",alignItems:"center",spacing:1,children:[Object(J.jsx)(D.a,{sx:{fontSize:15,color:"#FD4A4A"}}),Object(J.jsx)(S.a,{component:"span",variant:"caption",color:"textPrimary",children:a("Cucina")})]}),Object(J.jsxs)(v.a,{direction:"row",alignItems:"center",spacing:1,children:[Object(J.jsx)(D.a,{sx:{fontSize:15,color:"#38D9FF"}}),Object(J.jsx)(S.a,{component:"span",variant:"caption",color:"textPrimary",children:a("Pasticceria")})]}),Object(J.jsxs)(v.a,{direction:"row",alignItems:"center",spacing:1,children:[Object(J.jsx)(D.a,{sx:{fontSize:15,color:"#FFC915"}}),Object(J.jsx)(S.a,{component:"span",variant:"caption",color:"textPrimary",children:a("Panetteria")})]}),Object(J.jsxs)(v.a,{direction:"row",alignItems:"center",spacing:1,children:[Object(J.jsx)(D.a,{sx:{fontSize:15,color:"#931FFF"}}),Object(J.jsx)(S.a,{component:"span",variant:"caption",color:"textPrimary",children:a("Altro")})]})]})]})};t.default=()=>{const{t:e,i18n:t}=Object(o.a)(),{auth:a,login:n}=r.a.useContext(m.a),{request:s,cancelToken:u}=r.a.useContext(p.a),[b,j]=r.a.useState();return r.a.useEffect((()=>{(async()=>{const e=u.source(),t=await s("get","/v2/user/progress",e.token);if(t){let e={...t};const r=e.profile_progress.achievements_count;j(e.profile_progress),delete e.profile_progress,n({...a.user,data:{achievements_count:r,...e}})}})()}),[]),Object(J.jsx)(l.a,{title:e("I miei progressi"),bg:"#121416",loading:!Boolean(b),children:Boolean(b)&&Object(J.jsx)(I.a,{container:!0,justifyContent:"center",children:Object(J.jsxs)(I.a,{item:!0,xs:11,sm:10,sx:{pt:12},children:[Object(J.jsx)(S.a,{variant:"h5",color:"textPrimary",gutterBottom:!0,children:Object(J.jsx)("b",{children:e("I miei progressi")})}),Object(J.jsx)(f.a,{mt:6,children:Object(J.jsxs)(I.a,{container:!0,spacing:2,children:[Object(J.jsx)(I.a,{item:!0,xs:12,sm:6,xl:4,children:Object(J.jsxs)(Q,{children:[Object(J.jsxs)(v.a,{direction:"row",spacing:3,children:[Object(J.jsxs)($,{children:[Object(J.jsx)("input",{accept:"image/*",style:{display:"none"},id:"upload-avatar",type:"file",onChange:e=>{(async e=>{var t=new FormData;t.append("img_attachment",e);const r=u.source(),c=await s("post","/v2/upload/avatar",r.token,t,null,{upload:!0});c&&n({...a.user,data:{...a.user.data,img_avatar:c.url}})})(e.target.files[0])}}),Object(J.jsx)("label",{htmlFor:"upload-avatar",children:Object(J.jsx)(x.a,{component:"span",children:Object(J.jsx)(y.a,{src:a.user.data.img_avatar||N,sx:{width:92,height:92}})})})]}),Object(J.jsxs)(f.a,{children:[Object(J.jsxs)(v.a,{direction:"row",spacing:3,sx:{mb:.3},alignItems:"center",children:[Object(J.jsx)(S.a,{variant:"h4",color:"textPrimary",children:Object(J.jsx)("b",{children:a.user.data.first_name||e("Il tuo nome?")})}),!Boolean(a.user.data.first_name)&&Object(J.jsx)(E.a,{color:"secondary",size:"small",component:c.b,to:"/".concat(t.language,"/user/profile"),sx:{width:24,height:24,minHeight:"auto"},children:Object(J.jsx)(F.a,{fontSize:"small"})})]}),Object(J.jsxs)(v.a,{direction:"row",spacing:1,alignItems:"center",children:[Object(J.jsx)(w.a,{component:B.a,color:"gold",fontSize:"small"}),Object(J.jsxs)(S.a,{color:"textPrimary",children:[b.achievements_count," ",e("trofei")]})]})]})]}),Object(J.jsx)(oe,{ratings:b.ratings})]})}),b.current_challenges.map((t=>Object(J.jsx)(I.a,{item:!0,xs:12,sm:6,xl:4,children:Object(J.jsxs)(Q,{children:[Object(J.jsxs)(S.a,{sx:{color:"#C4CAD5",textTransform:"lowercase"},children:[Object(J.jsx)(S.a,{component:"span",variant:"h4",color:"textPrimary",children:Object(J.jsx)("b",{children:t.progress})}),"/",t.total," ",t.label]}),Object(J.jsxs)(v.a,{direction:"row",justifyContent:"space-between",alignItems:"flex-end",sx:{mt:1},children:[Object(J.jsx)(S.a,{color:"textPrimary",children:t.challenge_type_label}),t.challenge_completed?Object(J.jsxs)(f.a,{children:[Object(J.jsxs)(S.a,{color:"gold.main",component:"span",children:[e("Raggiunto!")," ",Object(J.jsx)("b",{children:"+1"})]}),Object(J.jsx)(w.a,{component:B.a,color:"gold",sx:{ml:.5,verticalAlign:"text-bottom"}})]}):Object(J.jsx)(w.a,{component:B.a,sx:{color:"#42464d"}})]}),Object(J.jsx)(f.a,{sx:{mt:2,mb:1,height:5,backgroundColor:"#121416",borderRadius:"2.5px",overflow:"hidden"},children:Object(J.jsx)(f.a,{sx:{height:5,width:100*t.progress/t.total+"%",borderRadius:"2.5px",backgroundColor:"#FFC915"}})}),Object(J.jsx)(S.a,{component:"div",variant:"caption",color:"#C4CAD5",sx:{mb:.5},children:Object(J.jsxs)(i.a,{t:e,children:["Mancano ",{c:T()(t.challenge_end).diff(T()(),"days")}," giorni"]})})]})},t.label))),Object(J.jsx)(I.a,{item:!0,xs:12,sm:6,xl:4,alignSelf:"stretch",children:Object(J.jsx)(v.a,{sx:{boxSizing:"border-box",padding:"20px 15px",height:"100%"},justifyContent:"space-around",children:b.global_challenges.map((e=>Object(J.jsxs)(S.a,{children:[Object(J.jsxs)(S.a,{component:"span",color:"#C4CAD5",children:[e.label,":"]}
1),"\xa0",Object(J.jsx)(S.a,{component:"span",color:"textPrimary",children:Object(J.jsx)("b",{children:e.value})})]},e.label)))})})]})}),Object(J.jsxs)(f.a,{sx:{mt:3,position:"relative"},children:[a.user.data.hidden&&Object(J.jsx)(f.a,{sx:{position:"absolute",top:0,left:e=>({xs:e.spacing(-2),md:"-5%"}),width:{xs:"100vw",md:"115%"},height:"100%",backdropFilter:"blur(10px)",display:"flex",justifyContent:"center",zIndex:10,textAlign:"center"},children:Object(J.jsxs)(f.a,{sx:{mt:6,px:4},children:[Object(J.jsx)(S.a,{color:"textPrimary",variant:"h5",sx:{mb:3},children:Object(J.jsx)("b",{children:e("Il tuo abbonamento \xe8 scaduto")})}),Object(J.jsx)(S.a,{color:"textPrimary",children:e("Per accedere ai tuoi progressi, scaricare ricettari, certificati e tornare a guardare i corsi:")}),Object(J.jsx)(z.a,{variant:"contained",color:"primary",size:"large",sx:{mt:3},component:c.b,to:"/".concat(t.language,"/paywall"),children:e("Riattiva l'abbonamento")})]})}),Object(J.jsxs)(f.a,{children:[Object(J.jsx)(I.a,{container:!0,sx:{mb:1},children:Object(J.jsx)(I.a,{item:!0,xs:12,children:Object(J.jsx)(h.a,{children:b.latest_achievements.map(((e,t)=>Object(J.jsx)(ee,{achievement:e},e.id)))})})}),Object(J.jsx)(I.a,{container:!0,spacing:2,children:b.general_counters.map((e=>Object(J.jsx)(I.a,{item:!0,xs:12,sm:6,xl:4,children:Object(J.jsx)(Q,{children:Object(J.jsxs)(v.a,{direction:"row",alignItems:"center",spacing:4,children:[Object(J.jsx)(f.a,{children:Object(J.jsx)(R.a,{color:"primary",value:Math.round(100*e.count/e.total),icon:Object(J.jsx)(d.a,{src:e.img,sx:{width:30}})})}),Object(J.jsx)(f.a,{children:Object(J.jsxs)(S.a,{sx:{color:"#C4CAD5"},children:[Object(J.jsx)(S.a,{component:"span",variant:"h4",color:"textPrimary",children:Object(J.jsx)("b",{children:e.count})}),"/",e.total,Object(J.jsx)("br",{}),e.label]})})]})})},e.label)))})]}),Object(J.jsx)(f.a,{sx:{mt:3},children:Object(J.jsx)(I.a,{container:!0,spacing:2,children:b.catalog_counters.map((e=>Object(J.jsx)(I.a,{item:!0,xs:12,sm:6,xl:4,children:Object(J.jsx)(Q,{sx:{backgroundColor:"#"+e.item_bg_color},children:Object(J.jsxs)(v.a,{direction:"row",alignItems:"center",spacing:4,children:[Object(J.jsx)(f.a,{children:Object(J.jsx)(R.a,{sx:{color:"#"+e.item_progress_color},value:Math.round(100*e.count/e.total),icon:Object(J.jsx)(d.a,{src:e.img,sx:{width:30}})})}),Object(J.jsx)(f.a,{children:Object(J.jsxs)(S.a,{sx:{color:"#C4CAD5"},children:[Object(J.jsx)(S.a,{component:"span",variant:"h4",color:"textPrimary",children:Object(J.jsx)("b",{children:e.count})}),"/",e.total,Object(J.jsx)("br",{}),e.label]})})]})})},e.label)))})}),Object(J.jsx)(te,{}),Object(J.jsx)(ae,{}),Object(J.jsx)(ne,{}),Object(J.jsx)(re,{}),Object(J.jsx)(ce,{})]})]})})})}}}]);
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.