PageSourceSearch

https://www.fitlab.pro/_next/static/chunks/pages/nutri/plano_alimentar-83f84d9735a38cde.js

js fitlab.pro collected 2026-10-09 04:48:38 UTC 11,086 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8508],{12706:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/nutri/plano_alimentar",function(){return n(21262)}])},38318:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(85893);let r=n(15437).zo.div.withConfig({componentId:"sc-9c212366-0"})(["max-width:1472px;"]);var o=e=>{let{children:t}=e;return(0,i.jsx)(r,{children:(0,i.jsx)(i.Fragment,{children:t})})}},33881:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(85893);let r=n(15437).zo.input.withConfig({componentId:"sc-791f2511-0"})(["width:90%;height:2.5rem;border:2px solid #60bfd6;border-radius:1rem;padding:0 1rem;font-size:1rem;font-family:'Lato',sans-serif;font-weight:600;color:#60bfd6;outline:none;transition:0.3s;display:flex;::placeholder{color:#60bfd6;}"]);var o=e=>{let{searchContent:t,setSearchContent:n,placeholder:o}=e;return(0,i.jsx)(r,{type:"text",placeholder:o||"Fa\xe7a uma busca...",value:t,onChange:e=>{n(e.target.value)},maxLength:80})}},6898:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(85893);let r=n(15437).zo.p.withConfig({componentId:"sc-130b2bcf-0"})(["font-size:2rem;font-weight:800;font-family:'Lato',sans-serif;color:#4f6772;"]);var o=e=>{let{title:t}=e;return(0,i.jsx)(r,{children:t})}},89519:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(85893),r=n(11894),o=n(15437);let a=o.zo.div.withConfig({componentId:"sc-d229a0c0-0"})(["display:flex;flex-direction:column;padding:20px;background-color:",";border-radius:10px;margin-bottom:10px;border:1px solid #e5e5e5;"],e=>{let{theme:t}=e;return t.colors.neutral[100]}),l=o.zo.div.withConfig({componentId:"sc-d229a0c0-1"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;"]),s=o.zo.div.withConfig({componentId:"sc-d229a0c0-2"})([""]),c=o.zo.li.withConfig({componentId:"sc-d229a0c0-3"})(["font-size:16px;font-weight:500;font-family:'Lato',sans-serif;list-style:disc;"]),d=o.zo.a.withConfig({componentId:"sc-d229a0c0-4"})(["font-size:1.8rem;font-weight:500;font-family:'Lato',sans-serif;transition:0.3s;cursor:pointer;&:hover{color:#1e90ff;}@media (max-width:768px){font-size:1.2rem;}"]),u=o.zo.a.withConfig({componentId:"sc-d229a0c0-5"})(["cursor:pointer;display:flex;padding:5px;justify-content:center;align-items:center;transition:0.3s;border-radius:5px;&:hover{background-color:#ebe4e4;}"]);var f=n(51587),m=n(67294),h=n(62634),p=e=>{var t,n,o,p;let{mealPlan:g}=e,{id:v,name:x,status:w,is_viewed:y,created_at:b,user:Z}=g,{userData:V,getWhoAmI:j}=(0,h.Z)(),A=null==Z?void 0:Z.id,z=null!==(n=null==Z?void 0:Z.name)&&void 0!==n?n:"Usu\xe1rio indispon\xedvel",C=null!==(o=null==Z?void 0:Z.email)&&void 0!==o?o:"—",E=null!==(p=null==g?void 0:null===(t=g.nutri)||void 0===t?void 0:t.name)&&void 0!==p?p:"—";return(0,m.useEffect)(()=>{j()},[]),(0,i.jsxs)(a,{children:[(0,i.jsxs)(l,{children:[(0,i.jsx)(d,{href:"/nutri/usuario/".concat(A,"?iframe=true"),children:z}),(0,i.jsx)(u,{href:"/nutri/plano_alimentar/".concat(v,"?iframe=true&userId=").concat(A),children:(0,i.jsx)(r.a,{size:24,color:"#576266"})})]}),(0,i.jsxs)(s,{children:[(0,i.jsxs)(c,{children:["Email: ",C]}),x&&(0,i.jsxs)(c,{children:["Nome do plano: ",x]}),(0,i.jsxs)(c,{children:["Visualizado: ",y?"Sim":"N\xe3o"]}),(0,i.jsxs)(c,{children:["Status: ","completed"===w?"Finalizado":"Pendente"]}),(null==V?void 0:V.admin)&&b&&(0,i.jsxs)(c,{children:["Criado em: ",(0,f.Ny)(b)]}),(0,i.jsxs)(c,{children:["Nutri: ",E]})]})]})}},38801:function(e,t,n){"use strict";n.d(t,{$F:function(){return l},A:function(){return s},ZX:function(){return o},aW:function(){return d},bS:function(){return r},iP:function(){return c},uv:function(){return a}});var i=n(15437);let r=i.zo.div.withConfig({componentId:"sc-a0a8c86f-0"})(["display:flex;flex-direction:column;gap:2rem;margin-bottom:1.5rem;"]),o=i.zo.div.withConfig({componentId:"sc-a0a8c86f-1"})(["display:flex;gap:2rem;margin:2rem 0;padding:30px;border-radius:15px;background-color:#f3f4f9;"]),a=i.zo.div.withConfig({componentId:"sc-a0a8c86f-2"})(["@media (max-width:901px){display:none;}"]),l=i.zo.div.withConfig({componentId:"sc-a0a8c86f-3"})(["display:none;@media (max-width:901px){display:flex;flex-direction:column;gap:2rem;justify-content:center;align-items:center;}"]),s=i.zo.p.withConfig({componentId:"sc-a0a8c86f-4"})(["font-size:1.5rem;font-weight:800;font-family:'Lato',sans-serif;color:#4f6772;text-align:center;"]),c=i.zo.div.withConfig({componentId:"sc-a0a8c86f-5"})(["display:flex;flex-direction:column;gap:2rem;padding:1rem;background-color:#f3f4f9;border-radius:15px;"]),d=i.zo.div.withConfig({componentId:"sc-a0a8c86f-6"})(["background-color:#fff;display:flex;flex-direction:column;min-height:100vh;gap:1.5rem;"])},21262:function(e,t,n){"use strict";n.r(t);var i=n(85893),r=n(71175),o=n(38318),a=n(33881),l=n(6898),s=n(72164),c=n(47643),d=n(38801),u=n(85576),f=n(67294),m=n(18357),h=n(69439),p=n(89519);t.default=()=>{let[e,t]=(0,f.useState)(""),[n,g]=(0,f.useState)([]),[v,x]=(0,f.useState)(!0),[w,y]=(0,f.useState)(1),[b,Z]=(0,f.useState)({}),{ref:V,inView:j}=(0,m.YD)({threshold:.5}),A=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;x(!0);try{var n;let{data:i}=await (0,r.Bx)("api","v1","user_meal_plans?page=".concat(""!==e?1:t).concat(""!==e?"&search=".concat(e):"")),o=Array.isArray(null==i?void 0:i.items)?i.items:[],a=null!==(n=null==i?void 0:i.pagination)&&void 0!==n?n:{};Z(a),g(e=>1===t?o:[...Array.isArray(e)?e:[],...o])}catch(e){console.log(e)}finally{x(!1)}};return(0,f.useEffect)(()=>{""!==e?A():w>=1&&A(w)},[w,e]),(0,f.useEffect)(()=>{j&&!v&&w<(null==b?void 0:b.total_pages)&&y(e=>e+1)},[j,v,w,null==b?void 0:b.total_pages]),(0,i.jsxs)(o.Z,{children:[(0,i.jsxs)(d.bS,{children:[(0,i.jsx)(l.Z,{title:"Planos Alimentares"}),(0,i.jsx)(a.Z,{placeholder:"BUSCAR POR USU\xc1RIO",searchContent:e,setSearchContent:t})]}),(0,i.jsx)(i.Fragment,{children:null==n?void 0:n.map(e=>(0,i.jsx)(p.Z,{mealPlan:e},e.id))}),(0,i.jsx)("div",{ref:V}),v&&(0,i.jsx)(c.i4,{children:(0,i.jsx)(u.Z,{options:{animationData:h},style:{width:"5%"}})}),(null==b?void 0:b.total_pages)===w&&(0,i.jsx)(s.ic,{children:"N\xe3o possui mais planos"}),(null==n?void 0:n.length)===0&&(0,i.jsx)(s.ic,{children:"Nenhum plano encontrado"})]})}},11894:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var i=n(67294),r=n(27589);let o=new Map([["bold",i.createElement(i.Fragment,null,i.createElement("path",{d:"M232.49,55.51l-32-32a12,12,0,0,0-17,0l-96,96A12,12,0,0,0,84,128v32a12,12,0,0,0,12,12h32a12,12,0,0,0,8.49-3.51l96-96A12,12,0,0,0,232.49,55.51ZM192,49l15,15L196,75,181,60Zm-69,99H108V133l56-56,15,15Zm105-7.43V208a20,20,0,0,1-20,20H48a20,20,0,0,1-20-20V48A20,20,0,0,1,48,28h67.43a12,12,0,0,1,0,24H52V204H204V140.57a12,12,0,0,1,24,0Z"}))],["duotone",i.createElement(i.Fragment,null,i.createElement("path",{d:"M200,88l-72,72H96V128l72-72Z",opacity:"0.2"}),i.createElement("path",{d:"M229.66,58.34l-32-32a8,8,0,0,0-11.32,0l-96,96A8,8,0,0,0,88,128v32a8,8,0,0,0,8,8h32a8,8,0,0,0,5.66-2.34l96-96A8,8,0,0,0,229.66,58.34ZM124.69,152H104V131.31l64-64L188.69,88ZM200,76.69,179.31,56,192,43.31,212.69,64ZM224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Z"}))],["fill",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Zm5.66-58.34-96,96A8,8,0,0,1,128,168H96a8,8,0,0,1-8-8V128a8,8,0,0,1,2.34-5.66l96-96a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,229.66,69.66Zm-17-5.66L192,43.31,179.31,56,200,76.69Z"}))],["light",i.createElement(i.Fragment,null,i.createElement("path",{d:"M228.24,59.76l-32-32a6,6,0,0,0-8.48,0l-96,96A6,6,0,0,0,90,128v32a6,6,0,0,0,6,6h32a6,6,0,0,0,4.24-1.76l96-96A6,6,0,0,0,228.24,59.76ZM125.51,154H102V130.49l66-66L191.51,88ZM200,79.51,176.49,56,192,40.49,215.51,64ZM222,128v80a14,14,0,0,1-14,14H48a14,14,0,0,1-14-14V48A14,14,0,0,1,48,34h80a6,6,0,0,1,0,12H48a2,2,0,0,0-2,2V208a2,2,0,0,0,2,2H208a2,2,0,0,0,2-2V128a6,6,0,0,1,12,0Z"}))],["regular",i.createElement(i.Fragment,null,i.createElement("path",{d:"M229.66,58.34l-32-32a8,8,0,0,0-11.32,0l-96,96A8,8,0,0,0,88,128v32a8,8,0,0,0,8,8h32a8,8,0,0,0,5.66-2.34l96-96A8,8,0,0,0,229.66,58.34ZM124.69,152H104V131.31l64-64L188.69,88ZM200,76.69,179.31,56,192,43.31,212.69,64ZM224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Z"}))],["thin",i.createElement(i.Fragment,null,i.createElement("path",{d:"M226.83,61.17l-32-32a4,4,0,0,0-5.66,0l-96,96A4,4,0,0,0,92,128v32a4,4,0,0,0,4,4h32a4,4,0,0,0,2.83-1.17l96-96A4,4,0,0,0,226.83,61.17Z
1M126.34,156H100V129.66l68-68L194.34,88ZM200,82.34,173.66,56,192,37.66,218.34,64ZM220,128v80a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V48A12,12,0,0,1,48,36h80a4,4,0,0,1,0,8H48a4,4,0,0,0-4,4V208a4,4,0,0,0,4,4H208a4,4,0,0,0,4-4V128a4,4,0,0,1,8,0Z"}))]]),a=i.forwardRef((e,t)=>i.createElement(r.Z,{ref:t,...e,weights:o}));a.displayName="NotePencilIcon";let l=a},18357:function(e,t,n){"use strict";n.d(t,{YD:function(){return c}});var i=n(67294),r=Object.defineProperty,o=new Map,a=new WeakMap,l=0,s=void 0;function c({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:c,triggerOnce:d,skip:u,initialInView:f,fallbackInView:m,onChange:h}={}){var p;let[g,v]=i.useState(null),x=i.useRef(h),[w,y]=i.useState({inView:!!f,entry:void 0});x.current=h,i.useEffect(()=>{let i;if(!u&&g)return i=function(e,t,n={},i=s){if(void 0===window.IntersectionObserver&&void 0!==i){let r=e.getBoundingClientRect();return t(i,{isIntersecting:i,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}let{id:r,observer:c,elements:d}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?(n=e.root)?(a.has(n)||(l+=1,a.set(n,l.toString())),a.get(n)):"0":e[t]}`}).toString(),n=o.get(t);if(!n){let i;let r=new Map,a=new IntersectionObserver(t=>{t.forEach(t=>{var n;let o=t.isIntersecting&&i.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(n=r.get(t.target))||n.forEach(e=>{e(o,t)})})},e);i=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},o.set(t,n)}return n}(n),u=d.get(e)||[];return d.has(e)||d.set(e,u),u.push(t),c.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(d.delete(e),c.unobserve(e)),0===d.size&&(c.disconnect(),o.delete(r))}}(g,(e,t)=>{y({inView:e,entry:t}),x.current&&x.current(e,t),t.isIntersecting&&d&&i&&(i(),i=void 0)},{root:c,rootMargin:r,threshold:e,trackVisibility:n,delay:t},m),()=>{i&&i()}},[Array.isArray(e)?e.toString():e,g,c,r,d,u,n,m,t]);let b=null==(p=w.entry)?void 0:p.target,Z=i.useRef(void 0);g||!b||d||u||Z.current===b||(Z.current=b,y({inView:!!f,entry:void 0}));let V=[v,w.inView,w.entry];return V.ref=V[0],V.inView=V[1],V.entry=V[2],V}i.Component}},function(e){e.O(0,[4885,8086,9774,2888,179],function(){return e(e.s=12706)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.