PageSourceSearch

https://portal.barramansa.rj.gov.br/_next/static/chunks/7284.bfa890060907a979.js

js barramansa.rj.gov.br collected 2026-10-02 16:39:45 UTC 16,037 bytes, 15 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7284],{6742:(e,t,o)=>{o.d(t,{A:()=>n});var n=(0,o(80858).A)("file-barcode","IconFileBarcode",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z",key:"svg-1"}],["path",{d:"M8 13h1v3h-1z",key:"svg-2"}],["path",{d:"M12 13v3",key:"svg-3"}],["path",{d:"M15 13h1v3h-1z",key:"svg-4"}]])},16480:(e,t,o)=>{o.d(t,{A:()=>n});var n=(0,o(80858).A)("plus","IconPlus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]])},17284:(e,t,o)=>{o.r(t),o.d(t,{default:()=>N});var n=o(2947),r=(0,o(80858).A)("calendar","IconCalendar",[["path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v4",key:"svg-2"}],["path",{d:"M4 11h16",key:"svg-3"}],["path",{d:"M11 15h1",key:"svg-4"}],["path",{d:"M12 15v3",key:"svg-5"}]]),s=o(74962),l=o(54913),a=o(6742),i=o(16480),d=o(77348),c=o(57681),u=o(39188),p=o(61783),h=o(53368),m=o(35277),g=o(96643),f=o(79497),v=o(87578),y=o(30719),b=o(81298),x=o(13706),w=o(44576),k=o(66358),E=o(79770),A=o(17946);function N(){var e,t,o,N,j,C;let S=(0,h.useRouter)(),P=(0,c.useMutationState)({filters:{mutationKey:["add-schedule"]},select:e=>e.state.data}),M=(null==P?void 0:P.length)?P[P.length-1]:{},{data:T}=(0,v.B)(),R=(null==T||null==(e=T.results)?void 0:e.length)?T.results[0]:void 0,{data:z}=(0,y._)({service:R}),{profile:F}=(0,k.A)(),I=(null==z?void 0:z.results)||[],L=(null==M?void 0:M.for_dependent)?null==M||null==(t=M.dependents)?void 0:t.name:(0,A.m)({name:(null==F?void 0:F.name)||"",presentSocialName:(null==F?void 0:F.present_social_name)||!1,socialName:(null==F?void 0:F.social_name)||""}),W=(null==M?void 0:M.for_dependent)?(0,E.L)((null==M||null==(o=M.dependents)?void 0:o.cpf)||""):(0,E.L)((null==F?void 0:F.cpf)||""),D=(null==I||null==(j=I.find(e=>{var t;return(null==e||null==(t=e.unit)?void 0:t.id)===(null==M?void 0:M.unit)}))||null==(N=j.unit)?void 0:N.name)||"",H=(null==M?void 0:M.date)?(0,u.GP)((0,p.H)(null==M?void 0:M.date),"dd/MM/yyyy"):"",_=(null==M||null==(C=M.hour)?void 0:C.split(":").slice(0,2).join(":"))||"",q=(null==M?void 0:M.protocol)||"",B=(0,g.useRef)(null),O=(0,f.R)({contentRef:B}),$=[{title:"Data",icon:(0,n.jsx)(r,{size:20}),description:H},{title:"Hor\xe1rio",icon:(0,n.jsx)(s.A,{size:20}),description:_},{title:"Local do atendimento",icon:(0,n.jsx)(l.A,{size:20}),description:D},{title:"Protocolo",icon:(0,n.jsx)(a.A,{size:20}),description:q}];return(0,n.jsx)(x.b,{title:"",buttons:[{onClick:()=>{window.location.reload()},position:"left",variant:"ghost",title:(0,n.jsxs)("div",{className:"flex gap-2",children:[(0,n.jsx)(i.A,{size:20,className:"cursor-pointer text-portal-400"}),(0,n.jsx)("label",{className:"cursor-pointer text-portal-700",children:"Fazer novo agendamento"})]})},{onClick:()=>{S.push("/workspace/minhas-solicitacoes?page=1&filter=type&option=Agendamento")},position:"right",title:"Ver meus agendamentos",className:"bg-portal-50 rounded-lg"},{onClick:O,position:"right",variant:"secondary",title:"Imprimir comprovante"}],children:(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,n.jsx)("div",{className:"pb-4",children:(0,n.jsx)(d.A,{className:"rounded-full bg-green-100 p-2 text-green-600",size:40})}),(0,n.jsx)("h2",{className:"text-2xl font-bold leading-8 text-gray-900",children:"O agendamento foi realizado!"}),(0,n.jsx)("p",{className:"text-sm font-normal leading-5",children:"Enviamos no e-mail cadastrado o comprovante de agendamento."}),(0,n.jsxs)("div",{ref:B,"data-testid":"comprovante",className:"w-full print:m-10 print:w-auto",children:[(0,n.jsxs)(w.Zp,{className:"my-5 w-full rounded-md bg-gray-50 p-5 text-gray-900 shadow-none",children:[(0,n.jsx)("h1",{className:"mb-7 hidden text-3xl font-bold text-gray-900 print:block",children:null==R?void 0:R.title}),(0,n.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row",children:[(0,n.jsxs)("div",{className:"flex-grow",children:[(0,n.jsxs)("div",{className:"pb-6",children:[(0,n.jsx)("h3",{className:"text-2xl font-bold text-gray-900",children:L}),(0,n.jsx)("span",{className:"text-gray-500",children:W})]}),(0,n.jsx)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:$.map((e,t)=>(0,n.jsxs)("div",{children:[(0,n.jsxs)("label",{className:"mb-1 flex items-center gap-1 text-sm font-medium leading-5 text-gray-500",children:[e.icon,e.title]}),(0,n.jsx)("p",{className:"text-base font-medium leading-6",children:e.description})]},t))})]}),(0,n.jsx)("div",{className:"mt-4 md:mt-0",children:(0,n.jsx)(m.Ay,{value:"",size:120})})]})]}),(0,n.jsx)("div",{className:"mt-3 w-full",children:(0,n.jsx)(b.f,{className:"[-webkit-print-color-adjust:exact] [print-color-adjust:exact]",children:(0,n.jsx)("p",{children:"Caso n\xe3o possa comparecer, voc\xea pode cancelar o atendimento em at\xe9 1 hora antes do hor\xe1rio agendado."})})}),(0,n.jsx)("div",{className:"mt-3 w-full",children:(0,n.jsx)(b.Hv,{className:"[-webkit-print-color-adjust:exact] [print-color-adjust:exact]",children:(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Aten\xe7\xe3o:"})," o n\xe3o comparecimento sem cancelamento pr\xe9vio dentro do prazo estabelecido poder\xe1 resultar em impedimento tempor\xe1rio para novos agendamentos. Caso n\xe3o possa comparecer, cancele seu agendamento com anteced\xeancia."]})})})]})]})})}},17946:(e,t,o)=>{o.d(t,{m:()=>n});let n=e=>{let{name:t,presentSocialName:o,socialName:n}=e;return o?n:t}},54913:(e,t,o)=>{o.d(t,{A:()=>n});var n=(0,o(80858).A)("map-pin","IconMapPin",[["path",{d:"M9 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z",key:"svg-1"}]])},66358:(e,t,o)=>{o.d(t,{default:()=>u,A:()=>p});var n=o(2947),r=o(70813),s=o(96643),l=o(85522),a=o(50719),i=o(99754);let d=(0,i.createServerReference)("7ff202cfa974cdf77e17b80df2f96cde2dbb665aef",i.callServer,void 0,i.findSourceMapURL,"deleteCookie"),c=(0,s.createContext)(null);function u(e){let{children:t}
1=e,[o,i]=(0,s.useState)(!1),{data:u,isLoading:p,isSuccess:h}=(0,r.useQuery)((0,l.j)({queryKey:["profile","me"],queryFn:()=>(0,a.K)("/api/sso/users/me"),retry:!1}));async function m(){await d("token"),i(!1)}return(0,s.useEffect)(()=>{h&&u&&i(!0)},[h,u]),(0,n.jsx)(c.Provider,{value:{isAuthenticated:o,profile:u,isLoading:p,authenticate:function(){i(!0)},logout:m},children:t})}let p=()=>{let e=(0,s.useContext)(c);if(!e)throw Error("AuthContext do not exist");return e}},74962:(e,t,o)=>{o.d(t,{A:()=>n});var n=(0,o(80858).A)("clock","IconClock",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]])},79497:(e,t,o)=>{o.d(t,{R:()=>u});var n=o(96643);let r="printWindow";function s({level:e="error",messages:t,suppressErrors:o=!1}){o||("error"===e?console.error(t):"warning"===e?console.warn(t):console.debug(t))}function l(e,t){if(t||!e){let e=document.getElementById(r);e&&document.body.removeChild(e)}}function a(e){return e instanceof Error?e:Error("Unknown Error")}function i(e,t){let{documentTitle:o,onAfterPrint:n,onPrintError:r,preserveAfterPrint:i,print:d,suppressErrors:c}=t;setTimeout(()=>{if(e.contentWindow){let t=function(){n?.(),l(i)};if(e.contentWindow.focus(),d)d(e).then(t).catch(e=>{r?r("print",a(e)):s({messages:["An error was thrown by the specified `print` function"],suppressErrors:c})});else{if(e.contentWindow.print){let t=e.contentDocument?.title??"",n=e.ownerDocument.title,r="function"==typeof o?o():o;r&&(e.ownerDocument.title=r,e.contentDocument&&(e.contentDocument.title=r)),e.contentWindow.print(),r&&(e.ownerDocument.title=n,e.contentDocument&&(e.contentDocument.title=t))}else s({messages:["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."],suppressErrors:c});[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(e=>(navigator.userAgent??navigator.vendor??("opera"in window&&window.opera)).match(e))?setTimeout(t,500):t()}}else s({messages:["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/MatthewHerbst/react-to-print/issues/"],suppressErrors:c})},500)}function d(e){let t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null),n=o.nextNode();for(;n;)t.push(n),n=o.nextNode();return t}let c=`
2    @page {
3        /* Remove browser default header (title) and footer (url) */
4        margin: 0;
5    }
6    @media print {
7        body {
8            /* Tell browsers to print background colors */
9            color-adjust: exact; /* Firefox. This is an older version of "print-color-adjust" */
10            print-color-adjust: exact; /* Firefox/Safari */
11            -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */
12        }
13    }
14`;function u({bodyClass:e,contentRef:t,copyShadowRoots:o,documentTitle:u,fonts:p,ignoreGlobalStyles:h,nonce:m,onAfterPrint:g,onBeforePrint:f,onPrintError:v,pageStyle:y,preserveAfterPrint:b,print:x,printIframeProps:w,suppressErrors:k}){return(0,n.useCallback)(n=>{function E(){let l={bodyClass:e,contentRef:t,copyShadowRoots:o,documentTitle:u,fonts:p,ignoreGlobalStyles:h,nonce:m,onAfterPrint:g,onPrintError:v,pageStyle:y,preserveAfterPrint:b,print:x,suppressErrors:k},f=function(e){let t=document.createElement("iframe");return t.width=`${document.documentElement.clientWidth}px`,t.height=`${document.documentElement.clientHeight}px`,t.style.position="absolute",t.style.top=`-${document.documentElement.clientHeight+100}px`,t.style.left=`-${document.documentElement.clientWidth+100}px`,t.id=r,t.srcdoc="<!DOCTYPE html>",e&&(e.allow&&(t.allow=e.allow),void 0!==e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),void 0!==e.sandbox&&(t.sandbox=e.sandbox)),t}(w),E=function(e,t){let{contentRef:o,fonts:n,ignoreGlobalStyles:r,suppressErrors:l}=t,a=function({contentRef:e,optionalContent:t,suppressErrors:o}){return t&&"function"==typeof t?(e&&s({level:"warning",messages:['"react-to-print" received a `contentRef` option and an optional-content param passed to its callback. The `contentRef` option will be ignored.']}
14),t()):e?e.current:void s({messages:['"react-to-print" did not receive a `contentRef` option or a optional-content param pass to its callback.'],suppressErrors:o})}({contentRef:o,optionalContent:e,suppressErrors:l});if(!a)return;let i=a.cloneNode(!0),d=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),c=i.querySelectorAll("img"),u=i.querySelectorAll("video"),p=n?n.length:0,h=(r?0:d.length)+c.length+u.length+p;return{contentNode:a,clonedContentNode:i,clonedImgNodes:c,clonedVideoNodes:u,numResourcesToLoad:h,originalCanvasNodes:a.querySelectorAll("canvas")}}(n,l);if(!E)return void s({messages:["There is nothing to print"],suppressErrors:k});f.onload=()=>{!function(e,t,o){let{contentNode:n,clonedContentNode:r,clonedImgNodes:l,clonedVideoNodes:u,numResourcesToLoad:p,originalCanvasNodes:h}=t,{bodyClass:m,fonts:g,ignoreGlobalStyles:f,pageStyle:v,nonce:y,suppressErrors:b,copyShadowRoots:x}=o,w=[],k=[];function E(t,n){if(w.includes(t))return void s({level:"debug",messages:["Tried to mark a resource that has already been handled",t],suppressErrors:b});n?(s({messages:['"react-to-print" was unable to load a resource but will continue attempting to print the page',...n],suppressErrors:b}),k.push(t)):w.push(t),w.length+k.length===p&&i(e,o)}e.onload=null;let A=e.contentDocument??e.contentWindow?.document;if(A){let t=A.body.appendChild(r);x&&function e(t,o,n){let r=d(t),l=d(o);if(r.length!==l.length)return void s({messages:["When cloning shadow root content, source and target elements have different size. `onBeforePrint` likely resolved too early.",t,o],suppressErrors:n});for(let t=0;t<r.length;t++){let o=r[t],s=l[t],a=o.shadowRoot;if(null!==a){let t=s.attachShadow({mode:a.mode});t.innerHTML=a.innerHTML,e(a,t,n)}}}(n,t,!!b),g&&(e.contentDocument?.fonts&&e.contentWindow?.FontFace?g.forEach(t=>{let o=new FontFace(t.family,t.source,{weight:t.weight,style:t.style});e.contentDocument.fonts.add(o),o.loaded.then(()=>{E(o)}).catch(e=>{E(o,["Failed loading the font:",o,"Load error:",a(e)])})}):(g.forEach(e=>{E(e)}),s({messages:['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'],suppressErrors:b})));let o=A.createElement("style");y&&(o.setAttribute("nonce",y),A.head.setAttribute("nonce",y)),o.appendChild(A.createTextNode(v??c)),A.head.appendChild(o),m&&A.body.classList.add(...m.split(" "));let i=A.querySelectorAll("canvas");for(let e=0;e<h.length;++e){let t=h[e],o=i[e];if(void 0===o){s({messages:["A canvas element could not be copied for printing, has it loaded? `onBeforePrint` likely resolved too early.",t],suppressErrors:b});continue}let n=o.getContext("2d");n&&n.drawImage(t,0,0)}for(let e=0;e<l.length;e++){let t=l[e],o=t.getAttribute("src");if(o){let e=new Image;e.onload=()=>{E(t)},e.onerror=(e,o,n,r,s)=>{E(t,["Error loading <img>",t,"Error",s])},e.src=o}else E(t,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it.',t])}for(let e=0;e<u.length;e++){let t=u[e];t.preload="auto";let o=t.getAttribute("poster");if(o){let e=new Image;e.onload=()=>{E(t)},e.onerror=(e,n,r,s,l)=>{E(t,["Error loading video poster",o,"for video",t,"Error:",l])},e.src=o}else t.readyState>=2?E(t):t.src?(t.onloadeddata=()=>{E(t)},t.onerror=(e,o,n,r,s)=>{E(t,["Error loading video",t,"Error",s])},t.onstalled=()=>{E(t,["Loading video stalled, skipping",t])}):E(t,["Error loading video, `src` is empty",t])}let p="select",w=n.querySelectorAll(p),k=A.querySelectorAll(p);for(let e=0;e<w.length;e++)k[e].value=w[e].value;if(!f){let e=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']");for(let t=0,o=e.length;t<o;++t){let o=e[t];if("style"===o.tagName.toLowerCase()){let e=A.createElement(o.tagName),n=o.sheet;if(n){let r="";try{let e=n.cssRules.length;for(let t=0;t<e;++t)"string"==typeof n.cssRules[t].cssText&&(r+=`${n.cssRules[t].cssText}\r
15`)}catch(e){s({messages:["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/MatthewHerbst/react-to-
15print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",o,`Original error: ${a(e).message}`],level:"warning"})}e.setAttribute("id",`react-to-print-${t}`),y&&e.setAttribute("nonce",y),e.appendChild(A.createTextNode(r)),A.head.appendChild(e)}}else if(o.getAttribute("href"))if(o.hasAttribute("disabled"))s({messages:["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",o],level:"warning"}),E(o);else{let e=A.createElement(o.tagName);for(let t=0,n=o.attributes.length;t<n;++t){let n=o.attributes[t];n&&e.setAttribute(n.nodeName,n.nodeValue??"")}e.onload=()=>{E(e)},e.onerror=(t,o,n,r,s)=>{E(e,["Failed to load",e,"Error:",s])},y&&e.setAttribute("nonce",y),A.head.appendChild(e)}else s({messages:["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",o],level:"warning"}),E(o)}}}0===p&&i(e,o)}(f,E,l)},document.body.appendChild(f)}l(b,!0),f?f().then(()=>{E()}).catch(e=>{v?.("onBeforePrint",a(e))}):E()},[e,t,o,u,p,h,m,g,f,v,y,b,w,x,k])}}}]);

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.