PageSourceSearch

https://www.vm.co.mz/_next/static/chunks/3253-a307f30c9811251f.js

js vm.co.mz collected 2026-10-02 02:24:22 UTC 9,492 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3253],{39882:function(e,r,l){var n=l(41799),o=l(69396),s=l(99534),t=l(85893);let i=e=>{var{width:r=45,height:l=44,color:i="#E60000"}=e,a=(0,s.Z)(e,["width","height","color"]);return(0,t.jsxs)("svg",(0,o.Z)((0,n.Z)({width:r,height:l,viewBox:"0 0 45 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a),{children:[(0,t.jsx)("path",{d:"M12.4678 30.9713C11.309 30.9197 9.87757 31.088 8.4606 30.8071C4.33983 29.9891 0.872799 26.4519 0.174643 22.3001C-0.372729 19.0438 0.35228 16.1148 2.55209 13.6072C3.42685 12.6106 4.50817 11.8722 5.71549 11.3341C6.10278 11.1616 6.27525 10.9189 6.37027 10.5068C7.6127 5.15293 10.8618 1.66111 16.2168 0.369111C20.4511 -0.652304 24.2528 0.485815 27.5587 3.29187C29.0273 4.53739 30.1262 6.06694 30.8925 7.82679C31.0691 8.23163 31.3097 8.34627 31.7249 8.32149C33.4404 8.21718 35.132 8.39171 36.7721 8.90707C40.7555 10.1598 42.9946 13.0113 43.8962 16.9607C45.1252 22.3425 42.2799 27.8585 37.2152 30.0697C35.9831 30.6078 34.6559 30.7276 33.3381 30.8567C31.6919 31.0188 30.0384 30.993 28.387 30.9713C27.6775 30.962 27.2427 30.6305 27.1322 30.0511C26.9845 29.2806 27.4916 28.6672 28.3147 28.6548C29.3815 28.6393 30.4494 28.6744 31.5153 28.6383C32.6833 28.599 33.8535 28.5226 35.0029 28.3005C37.3453 27.8482 39.0483 26.4477 40.3259 24.5195C42.5205 21.2074 42.3439 16.9008 39.9396 13.7394C38.5123 11.8629 36.5242 11.0439 34.2624 10.7289C33.1109 10.5688 31.9656 10.637 30.815 10.7217C29.7058 10.8032 29.5065 10.6122 29.1089 9.57734C27.4967 5.39253 24.448 2.91697 20.0122 2.40575C14.7864 1.8026 9.92301 5.41009 8.71054 10.5802C8.60106 11.048 8.51224 11.5221 8.43272 11.9971C8.33874 12.5631 8.02787 12.9101 7.4836 13.1043C4.70233 14.0926 2.99515 16.0374 2.45088 18.9395C1.4811 24.1033 5.74234 28.7632 10.3547 28.6558C12.1435 28.6145 13.9343 28.6517 15.7252 28.6475C16.1579 28.6465 16.5534 28.7302 16.8292 29.0906C17.1132 29.4634 17.169 29.8848 16.9686 30.3072C16.7569 30.7513 16.3727 30.9661 15.8852 30.9703C14.8339 30.9765 13.7835 30.9713 12.4678 30.9713Z",fill:i}),(0,t.jsx)("path",{d:"M20.9287 19.6102C19.2205 21.4517 17.631 23.1671 16.0406 24.8805C15.7824 25.1583 15.5314 25.4495 15.1193 25.4971C14.6112 25.5559 14.1919 25.4082 13.9451 24.9373C13.6982 24.4663 13.7189 24.0006 14.0855 23.5957C14.8591 22.7406 15.6419 21.8947 16.4268 21.0499C17.9832 19.3727 19.5448 17.6996 21.1012 16.0213C21.695 15.381 22.4345 15.3283 22.9911 15.9263C25.3355 18.4453 27.6738 20.9704 30.0089 23.4986C30.4209 23.9448 30.5015 24.4777 30.265 24.9197C30.044 25.3339 29.5255 25.5745 29.035 25.494C28.689 25.4371 28.4514 25.2161 28.2273 24.9734C26.6585 23.2838 25.0887 21.5942 23.523 19.9015C23.4673 19.8405 23.4456 19.7476 23.4084 19.6691C23.3557 19.6959 23.303 19.7218 23.2504 19.7486C23.2504 19.9459 23.2504 20.1431 23.2504 20.3404C23.2504 27.7588 23.2504 35.1773 23.2493 42.5957C23.2493 43.4632 22.892 43.9352 22.2031 43.9951C21.5401 44.0529 21.0216 43.6419 20.9432 42.9809C20.9184 42.7775 20.9297 42.5688 20.9297 42.3623C20.9287 35.0296 20.9297 27.6979 20.9297 20.3652C20.9287 20.1628 20.9287 19.9614 20.9287 19.6102Z",fill:i})]}))};r.Z=i},70974:function(e,r,l){var n=l(85893);l(67294);var o=l(11391);let s=e=>{let{options:r,placeholder:l="-- Seleccione --",value:s,onChange:t,isDisabled:i=!1}=e;return(0,n.jsxs)(o.Ph,{value:s,isDisabled:i,onChange:e=>t(e.target.value),children:[(0,n.jsx)("option",{value:"",children:l}),null==r?void 0:r.map(e=>(0,n.jsx)("option",{value:e.value,children:(null==e?void 0:e.label)||e.value},e.value))]})};r.Z=s},9306:function(e,r,l){var n=l(41799),o=l(69396),s=l(99534),t=l(85893),i=l(15193),a=l(9815),d=l(68527);let c={w:{base:"100%",md:"200px"},fontSize:{base:"md",md:"sm"},h:{base:10,md:9}},x=e=>{var{label:r}=e,l=(0,s.Z)(e,["label"]);return(0,t.jsx)(i.zx,(0,o.Z)((0,n.Z)((0,o.Z)((0,n.Z)({},c),{borderColor:"color.red",color:"color.red",_hover:{color:"color.white",bg:"color.teal",border:"none"}}),l),{children:r}))},h=e=>{var{label:r}=e,l=(0,s.Z)(e,["label"]);return(0,t.jsx)(i.zx,(0,o.Z)((0,n.Z)((0,o.Z)((0,n.Z)({},c),{variant:"primary",px:10,"data-testid":"confirm-text-button"}),l),{children:r}))},u=e=>{let{isOpen:r,onClose:l,onConfirm:n,title:o,message:s,confirmErrorMessage:i,isConfirmLoading:c=!1}=e;return(0,t.jsxs)(a.u_,{onClose:l,isOpen:r,isCentered:!0,children:[(0,t.jsx)(a.ZA,{}),(0,t.jsxs)(a.hz,{borderRadius:"10px",w:{base:"90%",md:"500px"},children:[(0,t.jsx)(a.ol,{"data-testid":"onClose-Btn",fontWeight:"bold",fontSize:"14px"}),(0,t.jsx)(a.fe,{p:8,children:(0,t.jsxs)(d.xu,{textAlign:"center",children:[(0,t.jsx)(d.X6,{fontSize:"xl",mt:4,mb:4,children:o}),(0,t.jsx)(d.xv,{fontSize:"lg",children:s}),i&&(0,t.jsx)(d.xv,{color:"color.red",fontSize:"sm",mt:4,role:"alert",children:i})]})}),(0,t.jsx)(a.mz,{justifyContent:"center",pb:6,children:(0,t.jsxs)(d.Kq,{direction:{base:"column",md:"row"},spacing:4,width:"100%",children:[(0,t.jsx)(x,{label:"N\xe3o, rever informa\xe7\xe3o",onClick:l,isDisabled:c}),(0,t.jsx)(h,{label:"Sim, submeter",onClick:n,isLoading:c})]})})]})]})};r.Z=u},10338:function(e,r,l){var n=l(85893),o=l(68527),s=l(9815),t=l(34651);let i=e=>{let{Icon:r,message:l}=e;return(0,n.jsx)(o.kC,{justifyContent:"center",py:{base:5,md:10},children:(0,n.jsxs)(o.xu,{maxW:"70%",display:"flex",alignItems:"center",flexFlow:"column",children:[r,l]})})},a=e=>{let{onClose:r,isOpen:l,title:a,isSuccess:d,message:c}=e;return(0,n.jsxs)(s.u_,{onClose:r,isOpen:l,isCentered:!0,children:[(0,n.jsx)(s.ZA,{}),(0,n.jsxs)(s.hz,{borderRadius:"10px",position:"absolute",children:[(0,n.jsx)(s.ol,{"data-testid":"onClose-Btn",fontWeight:"bold",fontSize:"14px"}),(0,n.jsx)(s.fe,{p:6,children:(0,n.jsx)(i,{Icon:(0,n.jsx)(t.Ee,{src:d?"/assets/images/faqs/green-check.png":"/assets/images/faqs/red-cancel.png",height:"32px",width:"32px",alt:d?"Success":"Error"}),message:(0,n.jsxs)(o.xu,{display:"flex",flexFlow:"column",paddingTop:2,children:[(0,n.jsx)(o.X6,{fontSize:"xl",textAlign:"center",children:a}),(0,n.jsx)(o.xv,{fontSize:"xl",paddingTop:6,textAlign:"center",children:c})]})})})]})]})};r.Z=a},52646:function(e,r,l){var n=l(41799),o=l(85893),s=l(67294),t=l(20949),i=l(68527),a=l(15193),d=l(4612),c=l(38152),x=l(59876),h=l(39882),u=l(29061),C=l(97384),p=l(57469);let f=e=>{let{label:r,attachmentKey:l,value:f,maxSizeMB:j=5,accepts:m,onChange:g}=e,v=(0,t.ff)("gray.300","gray.600"),b=1048576*j,z=(0,s.useRef)(null),{0:w,1:Z}
1=(0,s.useState)(null),{0:y,1:S}=(0,s.useState)((null==f?void 0:f.file_progress)||0),{0:k,1:_}=(0,s.useState)(!1),{0:E,1:D}=(0,s.useState)(!0),{0:R,1:T}=(0,s.useState)("Falha no carregamento do ficheiro. Tente novamente"),A=e=>{var r;let l=(null===(r=e.target.files)||void 0===r?void 0:r[0])||null;if(Z(l),null==g||g({name:l.name,size:l.size,type:l.type,file_progress:y}),l){if(l.size>b){D(!1),T("O tamanho máximo permitido é de ".concat(j,"MB")),_(!0);return}F(l)}},F=e=>{if(_(!1),S(0),!e)return;let l=new FileReader;l.onloadend=()=>{let o=l.result,s=o.split(",")[1],t={name:r,attachment:[{name:e.name,mimeType:e.type,content:s},]},i=0,a={name:e.name,size:e.size,type:e.type};u.Z.post("".concat((0,C._c)(p.Vs),"/documents"),t,{headers:{"Content-Type":"application/json"},onUploadProgress(e){let{loaded:r,total:l}=e,n=Math.round(100*r/l);i=n,S(n)}}).then(e=>{g&&e.data.id&&e.data.id.length>0&&(_(!1),g((0,n.Z)({id:e.data.id,file_progress:i},a)))}).catch(r=>{g&&g(null),_(!0),S(0),Z(e),console.error("Upload error:",r)})},l.onerror=e=>{console.error("Error reading file:",e)},l.readAsDataURL(e)},I=()=>{w&&F(w)},W=()=>{Z(null),S(0),_(!1),g&&g(null),z.current&&(z.current.value="")};return(0,o.jsxs)(i.xu,{children:[(0,o.jsxs)(i.xu,{border:"2px dashed",borderColor:v,borderRadius:"md",p:4,display:"flex",alignItems:"center",justifyContent:"space-between",w:"full",transition:"border-color 0.2s ease",children:[(0,o.jsxs)(i.kC,{align:"center",gap:4,children:[(0,o.jsx)(h.Z,{}),(0,o.jsxs)(i.xu,{ml:4,children:[(0,o.jsx)(i.xv,{fontWeight:"bold",children:r}),(0,o.jsx)(i.xv,{fontSize:"sm",color:"gray.500",children:"Escolhe o ficheiro ou arraste at\xe9 aqui"})]})]}),(0,o.jsxs)(a.zx,{as:"label",htmlFor:l,colorScheme:"gray",size:"sm",cursor:"pointer",_hover:{color:"white",backgroundColor:"#E60000",borderColor:"#E60000"},children:["Escolher o ficheiro",(0,o.jsx)(d.II,{id:l,type:"file",accept:null!=m?m:".pdf",hidden:!0,ref:z,onChange:A})]})]}),(w||f)&&(0,o.jsxs)(i.xu,{mt:4,p:4,borderWidth:"1px",borderRadius:"md",children:[(0,o.jsxs)(i.kC,{justify:"space-between",align:"center",children:[(0,o.jsx)(i.kC,{align:"center",gap:4,children:(0,o.jsxs)(i.xu,{children:[(0,o.jsx)(i.xv,{fontWeight:"bold",children:null==f?void 0:f.name}),(0,o.jsxs)(i.xv,{fontSize:"sm",color:"gray.500",children:[((null==f?void 0:f.size)/1024/1024).toFixed(2)," MB"]})]})}),(0,o.jsx)(a.hU,{"aria-label":"Clear file",rounded:45,icon:(0,o.jsx)(x.Tw,{}),size:"xs",onClick:W,colorScheme:"red",_hover:{color:"white",backgroundColor:"#E60000",borderColor:"#E60000"}})]}),(0,o.jsxs)(i.xu,{mt:2,children:[(0,o.jsxs)(i.kC,{align:"center",children:[(0,o.jsx)(c.Ex,{rounded:16,value:y,size:"sm",colorScheme:k?"red":"teal",flex:1}),(0,o.jsxs)(i.xv,{ml:2,fontSize:"xs",color:"#6D6D6D",children:[(null==f?void 0:f.file_progress)||y,"%"]})]}),k&&(0,o.jsxs)(i.kC,{justify:"space-between",mt:2,align:"center",children:[(0,o.jsx)(i.xv,{fontSize:"sm",color:"red.500",children:R}),(0,o.jsx)(a.zx,{size:"xs",isDisabled:!E,leftIcon:(0,o.jsx)(x.ny,{}),color:"red.500",variant:"link",onClick:I,_hover:{textDecoration:"underline",color:"red.600"},children:"Tentar novamente"})]})]})]})]})};r.Z=f}}]);

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.