PageSourceSearch

https://www.companyhero.com/_next/static/chunks/pages/app/salas/confirmacao-cf3c1ef3bb35e1de.js

js companyhero.com collected 2026-10-01 10:41:15 UTC 6,975 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[29933],{9602:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/salas/confirmacao",function(){return o(68852)}])},68852:function(e,t,o){"use strict";o.r(t);var n=o(85893),s=o(67294),r=o(39691),a=o(63144),i=o.n(a),c=o(12918),u=o.n(c),l=o(80254),d=o(90008),p=o(47041),f=o(4670),h=o(26272),m=o(41329),x=o(61697),_=o(36637),C=o(53740),g=o(7136);let{Title:k,Text:E}=C.default,payMeetingBooking=e=>{if(e.errorCode)return(0,n.jsx)(u(),{statusCode:e.errorCode});let{user:t}=(0,s.useContext)(r.S),o="";(0,s.useEffect)(()=>{if(t){let o=e.booking.security_token;if(!t.companies_id.includes(o))return(0,n.jsx)(u(),{statusCode:"Voc\xea nao tem autoriza\xe7\xe2o para acessar esta p\xe1gina"})}},[t]);let{booking:a}=e;return o="CONFIRMED"==a.status||"ACCEPTED"==a.status?(0,n.jsx)(x.Z,{booking:a}):"REJECTED"==a.status?(0,n.jsx)(_.Z,{back:"/app/salas"}):(0,n.jsx)(m.Z,{...e}),(0,n.jsxs)("section",{className:"padding smallPadding notMobilePadding",children:["REJECTED"!=a.status&&"ACCEPTED"!=a.status&&"CONFIRMED"!=a.status&&(0,n.jsxs)("div",{className:"container mobilePadding",style:{textAlign:"center"},children:[(0,n.jsx)(k,{level:1,children:"Sua reserva est\xe1 quase pronta!"}),(0,n.jsxs)(E,{className:"subtitle",children:["Agora voc\xea s\xf3 precisa realizar o pagamento em no m\xe1ximo 1h para confirmar sua reserva!",(0,n.jsx)("br",{}),"[ Pagamentos s\xf3 por cart\xe3o de cr\xe9dito ]"]})]},"0"),(0,n.jsx)("div",{style:{margin:"30px auto 50px"},children:(0,n.jsx)(g.Card,{style:{maxWidth:"1000px"},className:"centerDiv noPadding",children:o})})]})};payMeetingBooking.getInitialProps=async function(e){let{page:t,ref:o}=e.query,n=0,s=await l.V.getEventSerializer(o);if(!s)return{errorCode:"Esta reserva n\xe3o existe"};let r=(0,p.getCookie)(e,"token"),a=await d.eZ.getRoom(s.product_id).then(e=>e.data).catch(e=>!1);if(!a)return{errorCode:"Esta sala n\xe3o existe"};let c=s.profile.subdomain,{pricing:u}=a,f="external",m="plan_lowest_price";if(c.includes("int-")&&(f="internal"),"day"==s.period&&"internal"==f?m="credits_day":"internal"==f?m="credits":"day"==s.period&&"external"==f&&(m="plan_lowest_price_day"),"credits_day"==m?s.price=u[f][m]:s.price=u[f][m]*s.hours,r&&"UNDECIDED"==s.status&&"internal"==f){if("user_id"in e.req.cookies&&(s.user_logged_in_id=e.req.cookies.user_id),"use_credits"==(n=await h.C.checkAndCharge(s.security_token,s.price,s)).action){let e=await l.V.confirmEvent(s).then(e=>!0);e&&(s.status="CONFIRMED")}else s.price=n.credits_to_charge}"internal"==f&&(s.price*="50");let x=await d.eZ.getPlan("salas_de_reuniao_membros").then(e=>e.data),_=await i()("".concat("https://smartstore.herosvc.com/api","/v2/forms/checkout-salas-de-reuniao-clientes/")),C=await _.json();return{page:t,errorCode:!1,room:{...a},checkoutForm:{...C},credits_calculation:n,subitem_line:{...s.subitem_line},plan:{...x},booking:{...s},meeting_id:o}},t.default=(0,f.FR)(payMeetingBooking)},4670:function(e,t,o){"use strict";o.d(t,{FR:function(){return ProtectRoute},Ko:function(){return ProtectRouteAndCheckIfHasRoleAccess},Qx:function(){return ProtectRouteAndCheckIfIsEnterprise},Xy:function(){return AdminRoute},cS:function(){return ProtectRouteAndVerifyAnsweredICP},jr:function(){return ProtectRouteAndCheckIfHasIndicationAccess}});var n=o(85893),s=o(67294),r=o(39691),a=o(11163),i=o(89552),c=o(47041);let SpinLoader=()=>(0,n.jsx)(i.default,{size:"large",style:{margin:"60px auto 0px",padding:"70px",height:"100px",display:"table",textAlign:"center"}}),ComponentView=e=>{let{Component:t,user:o,className:s,componentProps:r}=e;return(0,n.jsx)("div",{className:"loggedIn_layout ".concat(s),children:(0,n.jsx)(t,{...arguments,user:o,...r})})};function ProtectRoute(e){return t=>{let{user:o,userLoading:i,logout:c,answeredICPform:u,isRegisterICPFeatureOn:l}=(0,s.useContext)(r.S),d=(0,a.useRouter)();return((0,s.useEffect)(()=>{if(o||i||(c(),d.push("/login?logout=true&back=".concat(d.asPath,"&as=").concat(d.route))),o&&!i&&o.is_blocked){let redirectToBlocked=async()=>{await d.push("/blocked?from=".concat(d.asPath)),c()};redirectToBlocked()}},[i,o]),!o||i)?(0,n.jsx)(SpinLoader,{}):(0,n.jsx)(ComponentView,{Component:e,user:o,componentProps:t})}}function AdminRoute(e){return()=>{let{user:t,userLoading:o,logout:i}=(0,s.useContext)(r.S),c=(0,a.useRouter)();return((0,s.useEffect)(()=>{t||o||(i(),c.push("/login?logout=true&back=".concat(c.asPath,"&as=").concat(c.route))),t&&!t.is_staff&&c.replace("/app/home")},[o,t]),!t||o||t&&!t.is_staff)?(0,n.jsx)(SpinLoader,{}):(0,n.jsx)(ComponentView,{Component:e,user:t})}}function ProtectRouteAndCheckIfIsEnterprise(e){return()=>{let{user:t,userLoading:o,defaultCompanyObject:i}
1=(0,s.useContext)(r.S),c=(0,a.useRouter)(),[u,l]=(0,s.useState)(!0);return((0,s.useEffect)(()=>{t||o||c.push("/login?logout=true&back=".concat(c.asPath,"&as=").concat(c.route)),t&&i&&i.is_enterprise_customer&&c.push("/app/home"),i&&(i.access_roles.includes("legalizacao-b2b2b")||i.access_roles.includes("influencer")?l(!1):c.push("/app/home"))},[o,t,i]),u)?(0,n.jsx)(SpinLoader,{}):(0,n.jsx)(ComponentView,{Component:e,user:t})}}function ProtectRouteAndCheckIfHasIndicationAccess(e){return()=>{let{user:t,userLoading:o,defaultCompanyObject:i}=(0,s.useContext)(r.S),c=(0,a.useRouter)(),[u,l]=(0,s.useState)(!0);return((0,s.useEffect)(()=>{t||o||c.push("/login?logout=true&back=".concat(c.asPath,"&as=").concat(c.route)),t&&i&&i.is_enterprise_customer&&c.push("/app/home"),i&&(i.access_roles.includes("dashboard-cad")||i.access_roles.includes("influencer")?l(!1):c.push("/app/home"))},[o,t,i,c]),u)?(0,n.jsx)(SpinLoader,{}):(0,n.jsx)(ComponentView,{Component:e,user:t})}}function ProtectRouteAndCheckIfHasRoleAccess(e){let{Component:t,roleList:o=[],logicalOperator:i="AND"}=e;return()=>{let{user:e,userLoading:c,defaultCompanyObject:u}
1=(0,s.useContext)(r.S),l=(0,a.useRouter)(),[d,p]=(0,s.useState)(!0);return((0,s.useEffect)(()=>{if(e||c||l.push("/login?logout=true&back=".concat(l.asPath,"&as=").concat(l.route)),e&&u&&u.is_enterprise_customer&&l.push("/app/home"),u){let e=o.map(e=>u.access_roles.includes(e)),t="AND"===i?e.every(e=>!!e):e.some(e=>!!e);t?p(!1):l.push("/app/home")}},[c,e,u,l]),d)?(0,n.jsx)(SpinLoader,{}):(0,n.jsx)(ComponentView,{Component:t,user:e})}}function ProtectRouteAndVerifyAnsweredICP(e){return t=>{let{user:o,userLoading:i,logout:u,answeredICPform:l}=(0,s.useContext)(r.S);(0,c.getCookie)("_aicpf");let d=(0,a.useRouter)();return((0,s.useEffect)(()=>{if(o||i||(u(),d.push("/login?logout=true&back=".concat(d.asPath,"&as=").concat(d.route))),o&&!i&&o.is_blocked){let redirectToBlocked=async()=>{await d.push("/blocked?from=".concat(d.asPath)),u()};redirectToBlocked()}},[i,o]),!o||i)?(0,n.jsx)(SpinLoader,{}):(0,n.jsx)(ComponentView,{Component:e,user:o,componentProps:t})}}}},function(e){e.O(0,[94976,97948,23636,25675,69843,97538,73818,1852,56590,74806,77028,73323,20849,36194,64545,61697,7163,49774,92888,40179],function(){return e(e.s=9602)}),_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.