1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5372],{15372:function(e,n,t){t.d(n,{f:function(){return D}});var o=t(85893),l=t(67294),i=t(2249),a=t(60526),d=t(30381),r=t.n(d),s=t(11163),c=t.n(s),u=t(39513),m=t(85444),v=t(28090),p=t(34448),h=t(9080),f=t(47057),x=t(87400),g=t(65172),_=t(70377),b=t(36462),w=e=>{let{closeToast:n}=e;return(0,o.jsxs)(p.Row,{className:"items-center justify-between",children:[(0,o.jsxs)(p.Row,{className:"items-center",children:[(0,o.jsx)(_.Info,{color:"#fff",size:20}),(0,o.jsx)(b.x,{className:"text-white ml-2",variant:"small",children:"Voc\xea selecionou pelo menos 2 consultas para a mesma semana"})]}),(0,o.jsx)(b.x,{className:"text-white underline",variant:"small",onClick:n,children:"OK!"})]})},y=t(55331),j=t(76042),k=t(60400),C=t(76220),Y=t(99052),S=t(17702),N=t(30651);let D=e=>{var n;let{schedules:t,selectedTime:d,consultationAmount:s,isLoading:m,handleDelete:_,showWarnings:b,isSearch:D,isPsychologist:I,currentSchedule:H,clinicId:E,matchCategory:A,consultationsData:P,daysQuantity:O,selectedEdit:z,mobileSelect:R,setSelectedEdit:q,selectedDate:Z,setSelectedDate:B,isPostEvaluation:F,setIsDisabledLoading:V,handleRemoveConsultation:L,psychologistInfo:W,showBookmarks:J,benefitInfo:T,showNotifications:Q,handleMultipleScheduling:K}=e,{isAllowedToPurchaseWithCreditCard:$}=(0,k.r)(),[G,U]=(0,l.useState)([]),[X,ee]=(0,l.useState)([]),en=null==t?void 0:t.schedule;d(G);let{user:et}=(0,C.a)(),{timezone:eo}=(0,l.useContext)(y.Z),[el,ei]=(0,l.useState)(!1);(0,l.useEffect)(()=>{ei(!0)},[]);let ea=(0,l.useCallback)(e=>{var n,t,o,l,i,a,d,r,s,c,u,m,v,p,h,f;let x=X.priceValue||0,g=X.priceCurrency||"BRL",_={professional:{...W,name:(null==W?void 0:W.name)||"",prof_register:(null==W?void 0:W.crp)||(null==W?void 0:W.prof_register)||"",social_thumb:(null==W?void 0:W.avatar)||(null==W?void 0:W.social_thumb)||"",crp:(null==W?void 0:W.crp)||(null==W?void 0:W.prof_register)||""},occurrence:{date:X.date,time:X.time,price:{value:x,currency:g},is_teleconf:X.is_teleconf||!0},checkout:{consultation_value:x,total_value:x,balance:{billing_account_use:(null==e?void 0:null===(n=e.balance)||void 0===n?void 0:n.billing_account_use)||0,b2b_use:(null==e?void 0:null===(t=e.balance)||void 0===t?void 0:t.b2b_use)||!1,coupon_use:(null==e?void 0:null===(o=e.balance)||void 0===o?void 0:o.coupon_use)||!1,total_value:{to_be_paid:(null==e?void 0:null===(i=e.balance)||void 0===i?void 0:null===(l=i.total_value)||void 0===l?void 0:l.to_be_paid)||x}},consultations:[{date:X.date,time:X.time,professional:{...W,prof_register:(null==W?void 0:W.crp)||(null==W?void 0:W.prof_register)||""}}]}};return{status:"Pagamento Autorizado",payment_method:(null==e?void 0:null===(d=e.payments)||void 0===d?void 0:null===(a=d[0])||void 0===a?void 0:a.payment_method)||"Cart\xe3o de Cr\xe9dito",payment:{bank_slip:(null==e?void 0:null===(r=e.payment)||void 0===r?void 0:r.bank_slip)||null,pix:(null==e?void 0:null===(s=e.payment)||void 0===s?void 0:s.pix)||null,url:(null==e?void 0:null===(c=e.payment)||void 0===c?void 0:c.url)||null},consultation_amount:1,consultations:[_],benefit:(null==e?void 0:null===(u=e.balance)||void 0===u?void 0:u.b2b_use)||!1,coupon_use:(null==e?void 0:null===(m=e.balance)||void 0===m?void 0:m.coupon_use)||!1,total_amount:x,isMonthplan:(null==e?void 0:e.origin)==="Plano mensal",balance:{b2b_use:(null==e?void 0:null===(v=e.balance)||void 0===v?void 0:v.b2b_use)||!1,coupon_use:(null==e?void 0:null===(p=e.balance)||void 0===p?void 0:p.coupon_use)||!1,total_value:{to_be_paid:(null==e?void 0:null===(f=e.balance)||void 0===f?void 0:null===(h=f.total_value)||void 0===h?void 0:h.to_be_paid)||x}}}},[X,W]),ed=(0,l.useCallback)(e=>{var n,t,o,l,i,a,d;let r=ea((null==e?void 0:null===(t=e.data)||void 0===t?void 0:null===(n=t.content)||void 0===n?void 0:n.checkout)||(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.checkout));isNaN(r.total_amount)&&(r.total_amount=X.priceValue||0),r.balance&&isNaN(r.balance.total_value.to_be_paid)&&(r.balance.total_value.to_be_paid=X.priceValue||0),(0,Y.x5)({variant:"PRINCIPAL",value:r.total_amount,items:[{item_id:null===(i=r.consultations[0])||void 0===i?void 0:null===(l=i.professional)||void 0===l?void 0:l.id,item_name:null===(d=r.consultations[0])||void 0===d?void 0:null===(a=d.professional)||void 0===a?void 0:a.name,price:r.total_amount}]}),sessionStorage.setItem("checkout_payment",JSON.stringify(r)),c().push("/agendamento-realizado")},[ea,X]),{isLoading:er,mutateAsync:es}=(0,j.mp)(null==et?void 0:et.id,{onSuccess:ed,onError:e=>{var n,t,o;let l=null==e?void 0:null===(o=e.response)||void 0===o?void 0:null===(t=o.data)||void 0===t?void 0:null===(n=t.log_content)||void 0===n?void 0:n.error_code;u.Am.error((null===S.Oc||void 0===S.Oc?void 0:S.Oc[l])||S.Oc.default,{autoClose:5e3})}}),{isLoading:ec,mutateAsync:eu}=(0,j.Wn)(null==et?void 0:et.id,{onSuccess:e=>{var n,t,o,l,d,r;let{checkout:u}=e,m=(null==u?void 0:u.consultations_success)||[];(0,a.bc)(i.w.checkout.generated,{value:null!==(r=null==u?void 0:null===(t=u.balance)||void 0===t?void 0:null===(n=t.total_value)||void 0===n?void 0:n.to_be_paid)&&void 0!==r?r:null==u?void 0:u.total_value,quantity:m.length||s||1,appointments_ids:m.map(e=>{var n,t,o,l,i,a;return null!==(a=null!==(i=null!==(l=null==e?void 0:null===(n=e.occurrence)||void 0===n?void 0:n.id)&&void 0!==l?l:null==e?void 0:null===(t=e.ocurrence)||void 0===t?void 0:t.id)&&void 0!==i?i:null==e?void 0:null===(o=e.consultation)||void 0===o?void 0:o.id)&&void 0!==a?a:null==e?void 0:e.id}
1).filter(Boolean).join(",")}),c().push({pathname:"/agendar-consultas/finalizar-pagamento",query:{checkoutId:null==u?void 0:u.id,timezone:(null==u?void 0:null===(d=u.consultations_success)||void 0===d?void 0:null===(l=d[0])||void 0===l?void 0:null===(o=l.ocurrence)||void 0===o?void 0:o.timezone)||eo,newCheckout:"generateNewCheckout"}})},onError:e=>{var n,t,o,l;let i=eh(e);if(null==e?void 0:null===(l=e.response)||void 0===l?void 0:null===(o=l.data)||void 0===o?void 0:null===(t=o.log_content)||void 0===t?void 0:null===(n=t.traceback)||void 0===n?void 0:n.includes("NotAuthenticated"))return ef(!1);u.Am.error(i,{autoClose:!1})}}),em=(e,n)=>r()(e).month()!==r()(n).month(),ev=()=>{let e=[{item_name:null==X?void 0:X.psico_name,item_id:null==X?void 0:X.psico_id,price:null==X?void 0:X.priceValue,quantity:1}],n=null==X?void 0:X.priceValue;(0,Y.$o)(e,n,"PRINCIPAL")},ep=(0,l.useCallback)(function(e){var n,t;let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("available"!==e.status)return;(0,a.bc)(i.w.schedule.select_slot_clicked);let l=r()(e.date+e.time,"YYYY-MM-DD HH:mm").format("YYYY-MM-DD HH:mm"),d=em(e.date,r()().format("YYYYMMD"))?(null==e?void 0:null===(n=e.contract_price)||void 0===n?void 0:n.value)==="0.00"||!J:G.length<(null==T?void 0:T.total)-(null==T?void 0:T.used)&&((null==e?void 0:null===(t=e.contract_price)||void 0===t?void 0:t.value)==="0.00"||!J)||(null==T?void 0:T.frequency)==="",s={id:e.id,start:l,date:e.date,time:e.time,is_corporate_consultation:d,timezone:eo,schedule_id:e.schedule_id,isoWeek:r()(e.date).clone().isoWeek()};U(D?[s]:[...G,s]),o&&ee({...H,priceCurrency:e.price.currency,priceValue:e.price.value,id:e.id,date:e.date,time:e.time,schedule_id:e.schedule_id,clinicId:E,matchCategory:A})},[G,d,H]),eh=e=>{var n,t,o,l,i,a,d,r,s,c,u,m;return(null===(o=e.response)||void 0===o?void 0:null===(t=o.data)||void 0===t?void 0:null===(n=t.log_content)||void 0===n?void 0:n.error_code)==="professional_not_in_partnership"?"Infelizmente, esse psic\xf3logo n\xe3o atende o seu benef\xedcio corporativo":(null===(a=e.response)||void 0===a?void 0:null===(i=a.data)||void 0===i?void 0:null===(l=i.log_content)||void 0===l?void 0:l.error_code)==="schedule_conflicts"||(null===(s=e.response)||void 0===s?void 0:null===(r=s.data)||void 0===r?void 0:null===(d=r.log_content)||void 0===d?void 0:d.error_code)==="unavailable_time"?"O hor\xe1rio selecionado n\xe3o est\xe1 mais dispon\xedvel. Por favor, tente outro hor\xe1rio.":(null===(m=e.response)||void 0===m?void 0:null===(u=m.data)||void 0===u?void 0:null===(c=u.log_content)||void 0===c?void 0:c.error_code)==="contract_use_exceeded"?"Voc\xea atingiu o n\xfamero m\xe1ximo de consultas do seu benef\xedcio. Para mais informa\xe7\xf5es sobre limita\xe7\xf5es de consultas, entre em contato com a sua empresa.":"Ocorreu um problema, tente novamente mais tarde"},ef=async()=>{c().push({pathname:"/sou-paciente-carrinho",query:{...X}})},ex=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];try{if(ev(),!(null==et?void 0:et.id)){var n,t;let e=(0,N.x7)(),o=null==e?void 0:null===(t=e.integration)||void 0===t?void 0:null===(n=t.contract)||void 0===n?void 0:n.id,l=null==e?void 0:e.token;c().push({pathname:"/sou-paciente-carrinho",query:{...X,...l&&{presignup_token:l},...o&&{contract_id:o}}});return}let o={amount:1,schedule_id:E,consultations:[{professional_id:X.psico_id,start:G[0].start,date:X.date,time:X.time,timezone:""===X.timezone?eo:X.timezone,schedule_id:X.schedule_id,available_teleconf:X.is_teleconf||!0}],...(0,N.OJ)()};e?await es(o):await eu(o)}catch(e){console.error("Erro no agendamento:",e)}};return(0,l.useEffect)(()=>{b&&G.length>=2&&G[G.length-1].isoWeek===G[G.length-2].isoWeek&&u.Am.info(w,{position:"bottom-left",closeOnClick:!0,autoClose:3e3})},[G,b]),(0,o.jsxs)(p.Column,{className:"h-full w-fit items-center justify-center",children:[(0,o.jsx)(p.Row,{children:(null==t?void 0:null===(n=t.appointments)||void 0===n?void 0:n.length)&&!m&&t?(0,o.jsx)(p.Column,{className:"w-full flex-wrap",children:(0,o.jsxs)(p.Column,{className:"w-full",style:{height:D?"250px":"auto"},children:[(0,o.jsx)(x.J,{isSearch:F||D,isPsychologist:I,appointments:D?null==t?void 0:t.appointments.slice(0,5):null==t?void 0:t.appointments.slice(0,O),schedule:en}),(0,o.jsx)(g.D,{user:et,daysQuantity:O,consultationsData:P,isSearch:F||D,showWarnings:b,consultationAmount:s,schedule:en,selectSchedule:function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];return ep(...n,!0)},selected:G,handleDelete:F||D?()=>U([]):_,selectedEdit:z,setSelectedEdit:q,mobileSelect:R,selectedDate:Z,setSelectedDate:B,handleRemoveConsultation:L,setIsDisabledLoading:V,psychologistInfo:W,showBookmarks:J,benefitInfo:T})]})}):(0,o.jsx)(p.Row,{className:"h-[316px] w-full items-center justify-center",children:(0,o.jsx)(M,{src:"/static/images/match-maker/loader.svg",alt:"loading"})})}),el&&D&&(0,o.jsxs)(p.Column,{className:"mt-6 w-full items-start",children:[!!et&&(0,o.jsx)(v.z,{className:"mb-2 h-12 w-full",variant:"text",onClick:()=>K(W),children:"Agendar m\xfaltiplas consultas"}),(0,o.jsxs)(p.Row,{className:"w-full",children:[$&&(0,o.jsx)(v.z,{className:"mr-4 h-12 w-full text-xs",disabled:0===G.length||er,variant:"primary",onClick:()=>ex(!0),children:er?(0,o.jsx)(f.a,{size:24}):"Agendar com 1-clique"}),(0,o.jsx)(v.z,{className:"h-12 w-full",disabled:0===G.length||ec,variant:$?"primary-outlined":"primary",onClick:()=>ex(),children:ec?(0,o.jsx)(f.a,{size:24}):"Agendar"})]})]}),(Q||I||(0,N.SB)(769))&&(0,o.jsx)(h.Z,{dataType:"billet-notice",selectedDate:Z,setSelectedDate:e=>(void 0).setState({selectedDate:e}),variant:F?"postEvaluation":"inCalendar"})]})};D.defaultProps={selectedTime:()=>{},handleDelete:()=>{}};let I=(0,m.F4)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),M=m.ZP.img.withConfig({componentId:"sc-3889eee5-0"})(["width:60px;animation:"," 2s linear infinite;"],I)},87400:function(e,n,t){t.d(n,{J:function(){return s}});var o=t(85893);t(67294);
1var l=t(45697),i=t.n(l),a=t(85444),d=t(34448),r=t(36462);let s=e=>{let{isSearch:n,appointments:t}=e;return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(u,{className:"w-full justify-start",children:t.map((e,t)=>(0,o.jsx)(c,{isSearch:n,children:(0,o.jsx)(d.Row,{className:"items-center justify-center rounded-sm bg-white",style:{width:n?"43px":"50px",height:n?"45px":"58px"},children:(0,o.jsxs)(d.Column,{className:"justify-center",children:[(0,o.jsx)(r.x,{variant:"small",className:"font-normal text-gray-800",children:e.dayName}),(0,o.jsx)(r.x,{className:"".concat(n?"leading-5":"leading-normal"," ").concat(n?"mt-0":"mt-1"," font-semibold text-gray-800"),variant:"tiny",children:e.date})]})})},t))})})};s.propTypes={appointments:i().array.isRequired};let c=(0,a.ZP)(d.Column).withConfig({componentId:"sc-6ea4f1e7-0"})(e=>{let{isSearch:n}=e;return"\n ".concat(n?"\n @media (max-width: 320px) {\n margin-right: 4px;\n }\n @media (min-width: 321px) {\n margin-right: 12px;\n }\n @media (min-width: 425px) {\n margin-left: 15px;\n margin-right: 0px;\n }\n ":"margin-right: 20px;","\n\n")}),u=(0,a.ZP)(d.Row).withConfig({componentId:"sc-6ea4f1e7-1"})(["div:first-child{margin-left:0px;}"])},65172:function(e,n,t){t.d(n,{D:function(){return _}});var o=t(85893),l=t(67294),i=t(30381),a=t.n(i),d=t(45697),r=t.n(d),s=t(39513),c=t(85444),u=t(28680),m=t(34471),v=t(30651),p=t(34448),h=t(70377),f=t(36462),x=t(36877),g=t(76042);let _=e=>{let{isSearch:n,schedule:t,selectSchedule:i,selected:d,handleDelete:r,consultationsData:c,daysQuantity:x,selectedEdit:_,mobileSelect:C,setSelectedEdit:Y,consultationAmount:S,setSelectedDate:N,handleRemoveConsultation:D,setIsDisabledLoading:I,user:M,psychologistInfo:H,showBookmarks:E,benefitInfo:A}=e,[P,O]=(0,l.useState)(0),[z,R]=(0,l.useState)([]),[q,Z]=(0,l.useState)([]),[B,F]=(0,l.useState)(!1),[V,L]=(0,l.useState)(!1),{frontend_is_outside_benefit_coverage_range_visible:W}=(0,u.g)("frontend_is_outside_benefit_coverage_range_visible"),J=Object.values(z).every(e=>0===e.length),T=n?5:x,Q=e=>{e>P&&s.Am.warning("O limite de uso do benef\xedcio foi atingido para o per\xedodo."),O(e)},K=e=>"00:00"!==e.time?e.date:a()(e.date,"YYYYMMDD").subtract(1,"day").format("YYYYMMDD"),$=e=>"23:30"!==e.time?e.date:a()(e.date,"YYYYMMDD").add(1,"day").format("YYYYMMDD");(0,l.useEffect)(()=>{if(t){var e;if((null===(e=Object.keys(t))||void 0===e?void 0:e.length)>T){let e=Object.keys(t).pop();delete t[e]}}R(Object.values((()=>{let e={};return Object.keys(t).forEach(n=>{e[n]=t[n].filter((e,n,t)=>n===t.findIndex(n=>n.date===e.date&&n.time===e.time))}),e})())),document.querySelector(".close-btn")&&F(!0)},[t,B]),(0,l.useEffect)(()=>{G(),d.length||Z([])},[]);let G=async()=>{try{var e,n;I(!0);let t=d.length&&(null==M?void 0:null===(n=M.contract)||void 0===n?void 0:null===(e=n.features)||void 0===e?void 0:e.allow_contract_use_exceed)===!1?await U():[];Q(t.length);let o=ee().flat().concat(t.flat());Z(o)}catch(e){console.log(e)}finally{I(!1)}},U=async()=>{let e=Object.values(t).flat(),n=d.at(-1),o=d.map(e=>a()((null==e?void 0:e.date)+(null==e?void 0:e.time),"YYYYMMDDHH:mm").format().substring(0,19)),l=a()((null==n?void 0:n.date)+(null==n?void 0:n.time),"YYYYMMDDHH:mm").format().substring(0,19),i={professional_id:null==H?void 0:H.id,consultations:o.slice(0,-1),latest:l};await (0,g._E)(null==M?void 0:M.id,i).then(t=>{var o,l,i;let{data:r}=t;return L(null==r?void 0:null===(o=r.content)||void 0===o?void 0:o.block_all_calendar),(null==r?void 0:null===(l=r.content)||void 0===l?void 0:l.available)||(d.pop(),D(d.indexOf(n)),s.Am.error("Voc\xea atingiu o n\xfamero m\xe1ximo de consultas do seu benef\xedcio. Para mais informa\xe7\xf5es sobre limita\xe7\xf5es de consultas, entre em contato com a sua empresa.",{toastId:"toast-id",autoClose:6e3})),null==r?void 0:null===(i=r.content)||void 0===i?void 0:i.block_ranges.map(n=>{let t=X(a()(n[0]),a()(n[1]));return e.filter(e=>t.includes(null==e?void 0:e.date))})}).catch(e=>{console.log(e)})},X=(e,n)=>{let t=e.clone(),o=[];for(;t.isSameOrBefore(n);)o.push(t.format("YYYYMMDD")),t.add(1,"days");return o},ee=()=>{let e=[];return d.map(t=>{n||(e.push({id:t.id,time:a()(t.time,"HH:mm").add(30,"minutes").format("HH:mm"),date:$(t)}),e.push({id:t.id,time:a()(t.time,"HH:mm").subtract(30,"minutes").format("HH:mm"),date:K(t)}))}),e},en=(0,l.useCallback)(e=>{let t=null==d?void 0:d.filter(n=>n.id.includes(e.id));if(!(t.length||et(e))){if(t.length){r(e.id);return}(document.querySelector(".close-btn")||B||d.length!==S||n)&&((document.querySelector(".close-btn")||B)&&!n&&r(_),C&&Y(e.id),!t.length>
10&&"available"===e.status&&!q.some(n=>n.time===e.time&&n.date===e.date)&&(d.filter(e=>{var n;return!(null===(n=t[0])||void 0===n?void 0:n.includes(e))}),i(e)),F(!1),N(e.date+e.time),(0,m.Qr)(e)||d.push(e))}},[d,i]),et=e=>{var n,t,o,l;if((null==M?void 0:null===(n=M.contract)||void 0===n?void 0:n.valid_until)&&!(null==M?void 0:null===(o=M.contract)||void 0===o?void 0:null===(t=o.features)||void 0===t?void 0:t.allow_schedulling_after_contract_range)){let n=a()(null==M?void 0:null===(l=M.contract)||void 0===l?void 0:l.valid_until).format("YYYYMMDD");return a()(null==e?void 0:e.date).isAfter(n)}},eo=e=>(null==d?void 0:d.filter(n=>n.id.includes(e.id))).length||et(e)||"unavailable"===e.status||q.some(n=>n.time===e.time&&n.date===e.date);return(0,o.jsx)(o.Fragment,{children:J?(0,o.jsx)(p.Column,{className:"items-center w-[240px] sm:w-[310px] mt-[110px]",children:(0,o.jsx)(f.x,{variant:"tiny",children:"N\xe3o h\xe1 hor\xe1rios dispon\xedveis para essas datas!"})}):(0,o.jsx)(w,{id:"hours-calendar",className:"justify-start",children:z.map((e,t)=>(0,o.jsx)(b,{isSearch:n,children:e.map((e,l)=>{var i;return(0,o.jsxs)(y,{"data-testid":"SlotId_".concat(null==e?void 0:e.id),id:"SlotId_".concat(null==e?void 0:e.id),isSearch:n,isSafari:(0,v.Fm)(),children:[(null==c?void 0:c.find(n=>n[2]===e.id&&"schedulable"!==n[0]))?(0,o.jsx)(j,{indexRowsHours:l,indexColumnsDays:t,variant:0===l?"down":"",className:"bg-[#f8f8f8] shadow-[0px_1px_8px_#00000024] rounded w-[70px] py-[5px] px-[5px]",hoverElement:(0,o.jsx)(k,{onClick:()=>!eo(e)&&en(e),variant:"small",isSearch:n,isScheduled:d.find(n=>n.id===e.id),className:"py-[5px] font-bold",disabled:et(e)||"unavailable"===e.status||q.some(n=>n.time===e.time&&n.date===e.date),checked:d.filter(n=>n.id===e.id),children:a()(e.time,"HH:mm").format("HH:mm")}),children:(0,o.jsxs)(f.x,{variant:"tiny",className:"text-[#4e5657] font-bold",children:["Consulta"," ",(null==c?void 0:c.findIndex(n=>n[2]===e.id))+1]})}):(0,o.jsxs)(p.Column,{className:"relative",children:[W&&E&&d.length>=A.total-A.used&&(null==e?void 0:null===(i=e.contract_price)||void 0===i?void 0:i.value)>0&&!eo(e)&&(0,o.jsx)(p.Row,{className:"absolute top-[13px] left-[37px]",children:(0,o.jsx)(h.BookmarkPrice,{size:"16px",color:"#FFA938"})}),(0,o.jsx)(k,{onClick:()=>!eo(e)&&en(e),variant:"small",isSearch:n,isScheduled:d.find(n=>n.id===e.id),className:"py-[5px] font-bold",disabled:et(e)||V||"unavailable"===e.status||q.some(n=>n.time===e.time&&n.date===e.date),checked:d.filter(n=>n.id===e.id),children:a()(e.time,"HH:mm").format("HH:mm")})]}),!n&&d.find(n=>n.id===e.id)&&(null==c?void 0:c.find(n=>n[2]===e.id&&"schedulable"===n[0]))&&(0,o.jsx)(p.Column,{className:"mt-[10px] mr-0 mb-0 -ml-2.5 close-btn"})]},e.id)})},JSON.stringify({app:e,index:t})))})})};_.propTypes={schedule:r().object.isRequired,selectSchedule:r().func.isRequired};let b=(0,c.ZP)(p.Column).withConfig({componentId:"sc-f2ddb3e5-0"})(e=>{let{isSearch:n}=e;return"\n\n width: ".concat(n?"64px":"72px",";\n\n @media (max-width: 320px) {\n width: ").concat(n?"47px":"70px",";\n }\n @media (min-width: 321px) {\n width: ").concat(n?"55px":"70px",";\n }\n @media (min-width: 425px) {\n width: ").concat(n?"58px":"70px",";\n }\n")}),w=(0,c.ZP)(p.Row).withConfig({componentId:"sc-f2ddb3e5-1"})(e=>{let{theme:{colors:n}}=e;return"\n overflow: auto;\n max-height: 250px;\n scrollbar-width: thin;\n min-height: 100px;\n width: fit-content;\n\n ::-webkit-scrollbar {\n width: 3px;\n height: 3px;\n background-color: ".concat(n.gray.n200,";\n }\n ::-webkit-scrollbar-thumb {\n background-color: #babac0;\n border-radius: 16px;\n }\n ::-webkit-scrollbar-button {\n display: none;\n }\n")}),y=(0,c.ZP)(p.Row).withConfig({componentId:"sc-f2ddb3e5-2"})(e=>{let{isSearch:n,isSafari:t}=e;return"\n ".concat(n?"\n max-width: 43px;\n\n @media (max-width: 320px) {\n margin-right: 4px;\n }\n @media (min-width: 321px) {\n margin-right: 12px;\n }\n @media (min-width: 425px) {\n margin-right: 0px;\n\n }\n ":"margin-right: 20px;\n max-width: 50px;\n ","\n ").concat(t&&"\n display: -webkit-box;\n ","\n\n")}),j=(0,c.ZP)(x.u).withConfig({componentId:"sc-f2ddb3e5-3"})(e=>{let{indexRowsHours:n,indexColumnsDays:t}=e;return"\n margin-top: -20px;\n margin-left: -10px;\n ".concat(0===n&&"\n margin-top: 32px;\n margin-left: 55px;\n ",";\n ").concat(0===t&&0===n&&"\n margin-top: 32px;\n left: 0 !important;\n margin-left: 0;\n ",";\n ").concat(0===t&&0!==n&&"\n margin-left: 0px;\n ",";\n ").concat(6===t&&"\n margin-left: 43px;\n ",";\n ")}),k=(0,c.ZP)(f.x).withConfig({componentId:"sc-f2ddb3e5-4"})(e=>{let{theme:{colors:n},disabled:t,checked:o,isScheduled:l,isSearch:i}=e;
1return"\n color: ".concat(t?n.gray.n300:"#27AE60",";\n cursor: pointer;\n font-weight: 600;\n font-size: 12px;\n border-radius: 3px;\n background-color: ").concat(t?"transparent":"#27AE601C",";\n\n\n ").concat(i?"min-width: 43px;\n margin-top: 12px;":"min-width: 50px;\n margin-top: 15px;","\n\n ").concat(t?"cursor: not-allowed;":"&:hover {\n background-color: #27AE60;\n color: ".concat(n.white,";\n font-weight: bold;\n }"),"\n ").concat(o.length>0&&"\n border-radius: 3px;\n color: #DB0000;\n background-color: #FBE3E3;\n cursor: not-allowed;\n &:hover {\n color: #DB0000;\n background-color: #FBE3E3;\n }\n ","\n ").concat(l&&" color: ".concat(n.white,";\n background-color: ").concat(n.primary,";"),"\n\n ").concat(i&&o.length>0&&" color: ".concat(n.white,";\n background-color: ").concat(n.primary,";\n cursor: pointer;\n &:hover {\n color: ").concat(n.white,";\n background-color: ").concat(n.primary,";\n }\n "),"\n")})},9080:function(e,n,t){var o=t(85893),l=t(67294),i=t(30381),a=t.n(i),d=t(45697),r=t.n(d),s=t(98388),c=t(55331),u=t(64748),m=t(70377),v=t(36462),p=t(76220);let h={inSearchCard:"mr-[40px] mt-[10px] max-h-[75px]",inSearchCardVideo:"mr-[40px] mt-[10px] max-h-[75px]",inCalendar:"mt-[10px]",postEvaluation:"my-5 self-center"},f=e=>{let{dataType:n,selectedDate:t,variant:i,className:d}=e,[r,f]=(0,l.useState)(""),[x,g]=(0,l.useState)(""),[_,b]=(0,l.useState)(!1),{timezone:w}=(0,l.useContext)(c.Z),{user:y,shouldHideConsultationValue:j}=(0,p.a)();if((0,l.useEffect)(()=>{"billet-notice"===n&&g(u.rS.colors.gray.n400)},[]),(0,l.useEffect)(()=>{if(!t)return b(!1);try{let e=!j;if("billet-notice"===n&&e){let e=sessionStorage.getItem("next_bank_date"),n=a()(e),o=n.format("YYYYMMDD"),l=n.format("HH:mm"),i=n.format("DD"),d=n.format("MMM");if(sessionStorage.setItem("bank_slip_day",o),sessionStorage.setItem("bank_slip_time",l),sessionStorage.setItem("bank_formated_month",d),f("Esse hor\xe1rio n\xe3o pode ser pago com boleto, se quiser usar esse meio de pagamento selecione um hor\xe1rio a partir das ".concat(l," de ").concat(i," ").concat(d,".")),a()(t,"YYYYMMDDHH:mm").isBefore(n))return b(!0);b(!1)}}catch(e){console.log(e)}},[t,w,y,j]),_){let e=i?h[i]:"";return(0,o.jsxs)("div",{className:(0,s.m6)("flex w-full items-center self-end rounded p-4",x&&"bg-gray-700",e,d),children:[(0,o.jsx)("div",{className:"flex",children:(0,o.jsx)(m.FilledInfo,{color:x,size:"20px"})}),(0,o.jsx)("div",{className:"ml-5",children:(0,o.jsx)(v.x,{variant:"small",className:"text-left text-white",children:r})})]})}return(0,o.jsx)(o.Fragment,{})};f.defaultProps={variant:""},f.propTypes={variant:r().string,className:r().string},n.Z=f}}]); 2//# sourceMappingURL=5372-2da2df54f2d0fccb.js.map
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.