1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3459],{5968:function(n,e){var t=null===""?void 0:"".trim(),r={urlServer:t||"http://localhost:8000"},i={urlServer:t||window.location.origin},a=window.location.href.match("localhost")?r:i;e.Z=a},3459:function(n,e,t){t.r(e),t.d(e,{default:function(){return On}});var r,i,a,o,c,s,l,d,u,p,x,f,h,g,m,v,b,Z,j,w,k,P,y,z,D,_,F,S,M,C,$,E,A,I,R,T,Y=t(5861),Q=t(9439),W=t(4687),q=t.n(W),B=t(7313),H=t(3347),U=t(3925),L=t(3135),N=t(6467),O=t(6204),V=function(){var n=(0,Y.Z)(q().mark((function n(){var e,t;return q().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,O.Z.get("/api/public/lessons");case 2:return t=n.sent,n.abrupt("return",null!==(e=t.data)&&void 0!==e?e:[]);case 4:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),G=t(168),J=t(8485),K=J.ZP.div(r||(r=(0,G.Z)(["\n min-height: calc(100vh - 80px);\n background-color: #fffaf0;\n /* 69px do header fixo (.app-header) + respiro */\n padding: 85px 16px 24px;\n display: flex;\n flex-direction: column;\n align-items: center;
1\n"]))),X=J.ZP.div(i||(i=(0,G.Z)(["\n width: 100%;\n max-width: 640px;\n display: flex;\n flex-direction: column;\n gap: 16px;\n"]))),nn=J.ZP.h1(a||(a=(0,G.Z)(["\n font-size: 22px;\n font-weight: 700;\n color: #333333;\n margin: 8px 0 0;\n text-align: center;\n"]))),en=J.ZP.div(o||(o=(0,G.Z)(["\n background-color: #ffffff;\n border-radius: 16px;\n padding: 16px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);\n"]))),tn=J.ZP.div(c||(c=(0,G.Z)(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 12px;\n"]))),rn=J.ZP.button(s||(s=(0,G.Z)(["\n background: none;\n border: none;\n font-size: 24px;\n line-height: 1;\n color: #333333;\n cursor: pointer;\n padding: 4px 12px;\n border-radius: 8px;\n\n &:hover {\n background-color: #fff3cd;\n }\n"]))),an=J.ZP.span(l||(l=(0,G.Z)(["\n font-size: 15px;\n font-weight: 600;\n color: #333333;\n text-transform: capitalize;\n"]))),on=J.ZP.div(d||(d=(0,G.Z)(["\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 4px;\n\n & + & {\n margin-top: 8px;\n }\n"]))),cn=J.ZP.span(u||(u=(0,G.Z)(["\n text-align: center;\n font-size: 12px;\n font-weight: 600;\n color: #999999;\n margin-bottom: 6px;\n"]))),sn=J.ZP.button(p||(p=(0,G.Z)(["\n background: none;\n border: none;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n cursor: ",";\n opacity: ",";\n padding: 0;\n"])),(function(n){return n.$isPast?"default":"pointer"}),(function(n){return n.$isPast?.4:1})),ln=J.ZP.span(x||(x=(0,G.Z)(["\n width: 38px;\n height: 38px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 15px;\n font-weight: 600;\n color: #333333;\n background-color: ",";\n transition: background-color 0.15s ease;\n\n ",":hover & {\n background-color: ",";\n }\n"])),(function(n){return n.$selected?"#FFD700":"transparent"}),sn,(function(n){return n.$selected?"#FFD700":"#FFF3CD"})),dn=J.ZP.span(f||(f=(0,G.Z)(["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: #ffd700;\n visibility: ",";\n"])),(function(n){return n.$visible?"visible":"hidden"})),un=J.ZP.h2(h||(h=(0,G.Z)(["\n font-size: 16px;\n font-weight: 700;\n color: #333333;\n margin: 4px 0 0;\n text-transform: capitalize;\n"]))),pn=J.ZP.div(g||(g=(0,G.Z)(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n"]))),xn=J.ZP.div(m||(m=(0,G.Z)(["\n background-color: #ffffff;\n border-radius: 12px;\n padding: 14px;\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);\n display: flex;\n flex-direction: column;\n gap: 10px;\n cursor: ",";\n opacity: ",";\n transition: box-shadow 0.15s ease;\n\n &:hover {\n box-shadow: ",";\n }\n"])),(function(n){return n.$disabled?"default":"pointer"}),(function(n){return n.$disabled?.7:1}),(function(n){return n.$disabled?"0 2px 6px rgba(0, 0, 0, 0.08)":"0 4px 12px rgba(0, 0, 0, 0.14)"})),fn=J.ZP.div(v||(v=(0,G.Z)(["\n display: flex;\n align-items: flex-start;\n gap: 12px;\n"]))),hn=J.ZP.div(b||(b=(0,G.Z)(["\n width: 52px;\n height: 52px;\n border-radius: 50%;\n background-color: #ffd700;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n flex-shrink: 0;\n"]))),gn=J.ZP.img(Z||(Z=(0,G.Z)(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n"]))),mn=J.ZP.span(j||(j=(0,G.Z)(["\n font-size: 20px;\n font-weight: 700;\n color: #333333;\n"]))),vn=J.ZP.div(w||(w=(0,G.Z)(["\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n"]))),bn=J.ZP.span(k||(k=(0,G.Z)(["\n font-size: 16px;\n font-weight: 700;\n color: #333333;\n"]))),Zn=J.ZP.span(P||(P=(0,G.Z)(["\n font-size: 14px;\n color: #666666;\n"]))),jn=J.ZP.span(y||(y=(0,G.Z)(["\n font-size: 14px;\n color: #888888;\n"]))),wn=J.ZP.span(z||(z=(0,G.Z)(["\n font-size: 13px;\n color: #999999;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n overflow: hidden;\n"]))),kn=J.ZP.div(D||(D=(0,G.Z)(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n"]))),Pn={book:{background:"#FFD700",text:"#333333"},full:{background:"#DCE9FB",text:"#2F5FA3"},muted:{background:"#EEEEEE",text:"#999999"}},yn=J.ZP.span(_||(_=(0,G.Z)(["\n padding: 6px 16px;\n border-radius: 20px;\n font-size: 13px;\n font-weight: 700;\n background-color: ",";\n color: ",";\n"])),(function(n){var e=n.$kind;return Pn[e].background}),(function(n){var e=n.$kind;return Pn[e].text})),zn=J.ZP.span(F||(F=(0,G.Z)(["\n font-size: 22px;\n color: #cccccc;\n"]))),Dn=J.ZP.div(S||(S=(0,G.Z)(["\n text-align: center;
1\n color: #999999;\n font-size: 15px;\n padding: 32px 0;\n"]))),_n=J.ZP.div(M||(M=(0,G.Z)(["\n text-align: center;\n color: #999999;\n font-size: 15px;\n padding: 32px 0;\n"]))),Fn=J.ZP.a(C||(C=(0,G.Z)(["\n position: fixed;\n right: 20px;\n bottom: 20px;\n width: 60px;\n height: 60px;\n border-radius: 50%;\n background-color: #25d366;\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);\n z-index: 1000;\n transition: transform 0.15s ease, box-shadow 0.15s ease;\n\n &:hover {\n transform: scale(1.08);\n box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);\n }\n\n svg {\n width: 34px;\n height: 34px;\n fill: #ffffff;\n }\n"]))),Sn=J.ZP.div($||($=(0,G.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 16px;\n padding: 8px 8px 16px;\n text-align: center;\n"]))),Mn=J.ZP.p(E||(E=(0,G.Z)(["\n font-size: 15px;\n color: #555555;\n margin: 0;\n max-width: 380px;\n"]))),Cn=J.ZP.div(A||(A=(0,G.Z)(["\n display: flex;\n gap: 32px;\n flex-wrap: wrap;\n justify-content: center;
1\n"]))),$n=J.ZP.a(I||(I=(0,G.Z)(["\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 8px;\n text-decoration: none;\n color: #333333;\n"]))),En=J.ZP.span(R||(R=(0,G.Z)(["\n font-size: 14px;\n font-weight: 700;\n"]))),An=J.ZP.div(T||(T=(0,G.Z)(["\n background-color: #ffffff;\n border: 1px solid #eeeeee;\n border-radius: 12px;\n padding: 12px;\n"]))),In=t(6417),Rn="https://apps.apple.com/br/app/iluminarte/id6759834465",Tn="https://play.google.com/store/apps/details?id=com.iluminarte.iluminartapp",Yn="https://wa.me/5531991288899?text=".concat(encodeURIComponent("Ol\xe1! Vi o calend\xe1rio de atividades no site e quero mais informa\xe7\xf5es. \ud83d\ude0a")),Qn=["D","S","T","Q","Q","S","S"],Wn=["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"],qn=["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],Bn=function(n){var e=n.getFullYear(),t=String(n.getMonth()+1).padStart(2,"0"),r=String(n.getDate()).padStart(2,"0");return"".concat(e,"-").concat(t,"-").concat(r)},Hn=function(n){var e=Wn[n.getDay()],t=n.getDate(),r=qn[n.getMonth()];return"".concat(e,", ").concat(t," de ").concat(r)},Un=function(n,e){return new Date(n.getFullYear(),n.getMonth(),n.getDate()+e)},Ln=function(n){var e=new Date(n);e.setHours(0,0,0,0);var t=new Date;return t.setHours(0,0,0,0),e.getTime()<t.getTime()},Nn=function(n,e){if(!n.schedules||0===n.schedules.length)return!1;var t=Bn(e),r=e.getDay();return n.schedules.some((function(e){return n.is_recurring&&null!==e.day_of_week&&void 0!==e.day_of_week?e.day_of_week===r:!!e.specific_date&&e.specific_date.split("T")[0]===t}))},On=function(){var n=new Date,e=(0,B.useState)(function(n){var e=new Date(n.getFullYear(),n.getMonth(),n.getDate());return Un(e,-e.getDay())}(n)),t=(0,Q.Z)(e,2),r=t[0],i=t[1],a=(0,B.useState)(n),o=(0,Q.Z)(a,2),c=o[0],s=o[1],l=(0,B.useState)([]),d=(0,Q.Z)(l,2),u=d[0],p=d[1],x=(0,B.useState)(!0),f=(0,Q.Z)(x,2),h=f[0],g=f[1],m=(0,B.useState)(!1),v=(0,Q.Z)(m,2),b=v[0],Z=v[1];(0,B.useEffect)((function(){var n=function(){var n=(0,Y.Z)(q().mark((function n(){var e;return q().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,V();case 3:e=n.sent,p(e),n.next=10;break;case 7:n.prev=7,n.t0=n.catch(0),p([]);case 10:return n.prev=10,g(!1),n.finish(10);case 13:case"end":return n.stop()}}),n,null,[[0,7,10,13]])})));return function(){return n.apply(this,arguments)}}();n()}),[]);var j=(0,B.useMemo)((function(){return Array.from({length:14},(function(n,e){return Un(r,e)}))}),[r]),w=(0,B.useMemo)((function(){return Un(r,13)}),[r]),k=(0,B.useMemo)((function(){var n=r,e=w,t=n.getDate(),i=e.getDate(),a=qn[n.getMonth()],o=qn[e.getMonth()],c=n.getFullYear(),s=e.getFullYear();return n.getMonth()===e.getMonth()&&c===s?"".concat(t," - ").concat(i," de ").concat(a," ").concat(c):c===s?"".concat(t," ").concat(a," - ").concat(i," ").concat(o," ").concat(c):"".concat(t," ").concat(a," ").concat(c," - ").concat(i," ").concat(o," ").concat(s)}),[r,w]),P=(0,B.useMemo)((function(){var n=new Set;return j.forEach((function(e){u.some((function(n){return Nn(n,e)}))&&n.add(Bn(e))})),n}),[u,j]),y=(0,B.useMemo)((function(){return u.filter((function(n){return Nn(n,c)})).sort((function(n,e){var t,r,i,a,o=(null===(t=n.schedules)||void 0===t||null===(r=t[0])||void 0===r?void 0:r.start_time)||"",c=(null===(i=e.schedules)||void 0===i||null===(a=i[0])||void 0===a?void 0:a.start_time)||"";return o.localeCompare(c)}))}),[u,c]),z=(0,B.useMemo)((function(){return Ln(c)}),[c]);return(0,In.jsxs)(K,{children:[(0,In.jsxs)(X,{children:[(0,In.jsx)(nn,{children:"Calend\xe1rio de Atividades"}),(0,In.jsxs)(en,{children:[(0,In.jsxs)(tn,{children:[(0,In.jsx)(rn,{onClick:function(){var n=Un(r,-14);i(n);var e=new Date;e.setHours(0,0,0,0);var t=Un(n,13);s(e>=n&&e<=t?new Date:n)},"aria-label":"Duas semanas anteriores",children:"\u2039"}),(0,In.jsx)(an,{children:k}),(0,In.jsx)(rn,{onClick:function(){var n=Un(r,14);i(n),s(n)},"aria-label":"Pr\xf3ximas duas semanas",children:"\u203a"})]}),(0,In.jsx)(on,{children:Qn.map((function(n,e){return(0,In.jsx)(cn,{children:n},"".concat(n,"-").concat(e))}))}),[j.slice(0,7),j.slice(7,14)].map((function(n){return(0,In.jsx)(on,{children:n.map((function(n){var e=Bn(n),t=Ln(n);return(0,In.jsxs)(sn,{$isPast:t,disabled:t,onClick:function(){return s(n)},children:[(0,In.jsx)(ln,{$selected:e===Bn(c),children:n.getDate()}),(0,In.jsx)(dn,{$visible:P.has(e)})]},e)}))},Bn(n[0]))}))]}),(0,In.jsx)(un,{children:Hn(c)}),h&&(0,In.jsx)(_n,{children:"Carregando aulas..."}),!h&&0===y.length&&(0,In.jsx)(Dn,{children:"N\xe3o h\xe1 aulas para este dia"}),!h&&y.length>0&&(0,In.jsx)(pn,{children:y.map((function(n){var e,t,r,i,a,o=function(n){var e,t,r,i,a,o,c=(null===(e=n.schedules)||void 0===e||null===(t=e[0])||void 0===t||null===(r=t.start_time)||void 0===r?void 0:r.substring(0,5))||"",s=(null===(i=n.schedules)||void 0===i||null===(a=i[0])||void 0===a||null===(o=a.end_time)||void 0===o?void 0:o.substring(0,5))||"";return c&&s?"".concat(c,"-").concat(s):""}(n),s=(null===(e=n.name)||void 0===e?void 0:e.trim())||"Aula",l=null===(t=n.description)||void 0===t?void 0:t.trim(),d=(null===(r=n.room)||void 0===r?void 0:r.name)||"",u=n.teacher?"".concat(n.teacher.first_name||""," ").concat(n.teacher.last_name||"").trim():"Professor",p=Bn(c),x=parseInt(n.capacity||"0",10),f=null!==(i=null===(a=n.booked_counts_by_date)||void 0===a?void 0:a[p])&&void 0!==i?i:0,h=Number.isFinite(x)&&x>0?Math.max(0,x-f):0,g="Reservar",m="book";return z?(g="Encerrada",m="muted"):!z&&0===h&&(g="Esgotada",m="full"),
1(0,In.jsxs)(xn,{$disabled:z,onClick:function(){z||Z(!0)},children:[(0,In.jsxs)(fn,{children:[(0,In.jsx)(hn,{children:n.image_url?(0,In.jsx)(gn,{src:n.image_url,alt:s}):(0,In.jsx)(mn,{children:u.charAt(0).toUpperCase()})}),(0,In.jsxs)(vn,{children:[(0,In.jsx)(bn,{children:s}),(0,In.jsxs)(Zn,{children:[o,d?" - ".concat(d):""]}),(0,In.jsx)(jn,{children:u}),l?(0,In.jsx)(wn,{children:l}):null]})]}),(0,In.jsxs)(kn,{children:[(0,In.jsx)(yn,{$kind:m,children:g}),z?null:(0,In.jsx)(zn,{children:"\u203a"})]})]},n.id)}))})]}),(0,In.jsx)(Fn,{href:Yn,target:"_blank",rel:"noopener noreferrer","aria-label":"Falar com a Iluminarte no WhatsApp",children:(0,In.jsx)("svg",{viewBox:"0 0 32 32","aria-hidden":"true",children:(0,In.jsx)("path",{d:"M16.004 3.2c-7.06 0-12.8 5.74-12.8 12.8 0 2.26.59 4.46 1.71 6.4L3.2 28.8l6.58-1.67a12.74 12.74 0 0 0 6.22 1.62h.01c7.06 0 12.79-5.74 12.79-12.8 0-3.42-1.33-6.63-3.75-9.05a12.72 12.72 0 0 0-9.05-3.7zm0 23.36h-.01a10.6 10.6 0 0 1-5.4-1.48l-.39-.23-4.02 1.02 1.07-3.92-.25-.4a10.55 10.55 0 0 1-1.63-5.65c0-5.87 4.78-10.64 10.65-10.64 2.84 0 5.51 1.11 7.52 3.12a10.57 10.57 0 0 1 3.11 7.53c0 5.87-4.78 10.65-10.65 10.65zm5.84-7.97c-.32-.16-1.89-.93-2.19-1.04-.29-.11-.51-.16-.72.16-.21.32-.82 1.04-1.01 1.25-.19.21-.37.24-.69.08-.32-.16-1.35-.5-2.57-1.59-.95-.85-1.59-1.9-1.78-2.22-.19-.32-.02-.49.14-.65.14-.14.32-.37.48-.56.16-.19.21-.32.32-.53.11-.21.05-.4-.03-.56-.08-.16-.72-1.73-.98-2.37-.26-.62-.52-.54-.72-.55h-.61c-.21 0-.56.08-.85.4-.29.32-1.12 1.09-1.12 2.66s1.15 3.09 1.31 3.3c.16.21 2.26 3.45 5.47 4.84.76.33 1.36.53 1.82.67.77.25 1.47.21 2.02.13.62-.09 1.89-.77 2.16-1.52.27-.75.27-1.39.19-1.52-.08-.13-.29-.21-.61-.37z"})})}),(0,In.jsxs)(U.Z,{open:b,onClose:function(){return Z(!1)},maxWidth:"sm",fullWidth:!0,children:[(0,In.jsx)(L.Z,{sx:{textAlign:"center",fontWeight:700},children:"Baixe o aplicativo Iluminarte"}),(0,In.jsx)(N.Z,{children:(0,In.jsxs)(Sn,{children:[(0,In.jsx)(Mn,{children:"Para finalizar a sua reserva, baixe o aplicativo Iluminarte no seu celular. Aponte a c\xe2mera para o QR code da sua loja:"}),(0,In.jsxs)(Cn,{children:[(0,In.jsxs)($n,{href:Tn,target:"_blank",rel:"noopener noreferrer",children:[(0,In.jsx)(An,{children:(0,In.jsx)(H.ZP,{value:Tn,size:140})}),(0,In.jsx)(En,{children:"Android"})]}),(0,In.jsxs)($n,{href:Rn,target:"_blank",rel:"noopener noreferrer",children:[(0,In.jsx)(An,{children:(0,In.jsx)(H.ZP,{value:Rn,size:140})}),(0,In.jsx)(En,{children:"iPhone (iOS)"})]})]}),(0,In.jsx)(Mn,{children:"Voc\xea tamb\xe9m pode tocar no QR code para abrir a loja diretamente."})]})})]})]})}},6204:function(n,e,t){var r=t(1881),i=t.n(r),a=t(5968),o=i().create({baseURL:a.Z.urlServer,timeout:72e4,headers:{"Content-Type":"application/json"}});e.Z=o}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.