1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[889,5415],{45670:function(e,t,n){"use strict";n.d(t,{ZP:function(){return r},_i:function(){return s},pQ:function(){return c},uU:function(){return l}});var i=n(67294),a=n(85893);let o=i.createContext(null);function r(e){let{children:t,value:n}=e,r=function(){let[e,t]=i.useState(null);return i.useEffect(()=>{t(`mui-p-${Math.round(1e5*Math.random())}`)},[]),e}(),s=i.useMemo(()=>({idPrefix:r,value:n}),[r,n]);return(0,a.jsx)(o.Provider,{value:s,children:t})}function s(){return i.useContext(o)}function l(e,t){let{idPrefix:n}=e;return null===n?null:`${e.idPrefix}-P-${t}`}function c(e,t){let{idPrefix:n}=e;return null===n?null:`${e.idPrefix}-T-${t}`}},55050:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(87462),a=n(63366),o=n(67294),r=n(90512),s=n(77527),l=n(29567),c=n(94780),d=n(34867);function u(e){return(0,d.ZP)("MuiTabPanel",e)}(0,n(1588).Z)("MuiTabPanel",["root"]);var x=n(45670),p=n(85893);let m=["children","className","value"],h=e=>{let{classes:t}=e;return(0,c.Z)({root:["root"]},u,t)},g=(0,s.ZP)("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)}));var f=o.forwardRef(function(e,t){let n=(0,l.Z)({props:e,name:"MuiTabPanel"}),{children:o,className:s,value:c}=n,d=(0,a.Z)(n,m),u=(0,i.Z)({},n),f=h(u),Z=(0,x._i)();if(null===Z)throw TypeError("No TabContext provided");let j=(0,x.uU)(Z,c),b=(0,x.pQ)(Z,c);return(0,p.jsx)(g,(0,i.Z)({"aria-labelledby":b,className:(0,r.Z)(f.root,s),hidden:c!==Z.value,id:j,ref:t,role:"tabpanel",ownerState:u},d,{children:c===Z.value&&o}))})},93197:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/envelopes/[id]",function(){return n(76737)}])},95639:function(e,t,n){"use strict";var i=n(64836);t.Z=void 0;var a=i(n(33651)),o=n(85893);t.Z=(0,a.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},95371:function(e,t,n){"use strict";var i=n(64836);t.Z=void 0;var a=i(n(33651)),o=n(85893);t.Z=(0,a.default)((0,o.jsx)("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zm-1-4-1.41-1.41L13 12.17V4h-2v8.17L8.41 9.59 7 11l5 5z"}),"FileDownloadOutlined")},58047:function(e,t,n){"use strict";var i=n(64836);t.Z=void 0;var a=i(n(33651)),o=n(85893);t.Z=(0,a.default)((0,o.jsx)("path",{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12zM16 17H5V7h11l3.55 5z"}),"LabelOutlined")},77306:function(e,t,n){"use strict";var i=n(64836);t.Z=void 0;var a=i(n(33651)),o=n(85893);t.Z=(0,a.default)((0,o.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert")},47765:function(e,t,n){"use strict";var i=n(64836);t.Z=void 0;var a=i(n(33651)),o=n(85893);t.Z=(0,a.default)((0,o.jsx)("path",{d:"M14.17 5 19 9.83V19H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59M7 15h10v2H7zm0-4h10v2H7zm0-4h7v2H7z"}),"TextSnippetOutlined")},28907:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var i=n(63366),a=n(87462),o=n(67294),r=n(90512),s=n(94780),l=n(8480),c=n(66643),d=n(44001),u=n(77527),x=n(1588),p=n(34867);function m(e){return(0,p.ZP)("MuiTab",e)}let h=(0,x.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);var g=n(85893);let f=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Z=e=>{let{classes:t,textColor:n,fullWidth:i,wrapped:a,icon:o,label:r,selected:l,disabled:d}=e,u={root:["root",o&&r&&"labelIcon","textColor".concat((0,c.Z)(n)),i&&"fullWidth",a&&"wrapped",l&&"selected",d&&"disabled"],iconWrapper:["iconWrapper"]};return(0,s.Z)(u,m,t)},j=(0,u.ZP)(l.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t["textColor".concat((0,c.Z)(n.textColor))],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{["& .".concat(h.iconWrapper)]:t.
1iconWrapper}]}})(e=>{let{theme:t,ownerState:n}=e;return(0,a.Z)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},n.label&&{flexDirection:"top"===n.iconPosition||"bottom"===n.iconPosition?"column":"row"},{lineHeight:1.25},n.icon&&n.label&&{minHeight:72,paddingTop:9,paddingBottom:9,["& > .".concat(h.iconWrapper)]:(0,a.Z)({},"top"===n.iconPosition&&{marginBottom:6},"bottom"===n.iconPosition&&{marginTop:6},"start"===n.iconPosition&&{marginRight:t.spacing(1)},"end"===n.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===n.textColor&&{color:"inherit",opacity:.6,["&.".concat(h.selected)]:{opacity:1},["&.".concat(h.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(h.selected)]:{color:(t.vars||t).palette.primary.main},["&.".concat(h.disabled)]:{color:(t.vars||t).palette.text.disabled}},"secondary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(h.selected)]:{color:(t.vars||t).palette.secondary.main},["&.".concat(h.disabled)]:{color:(t.vars||t).palette.text.disabled}},n.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},n.wrapped&&{fontSize:t.typography.pxToRem(12)})});var b=o.forwardRef(function(e,t){let n=(0,d.i)({props:e,name:"MuiTab"}),{className:s,disabled:l=!1,disableFocusRipple:c=!1,fullWidth:u,icon:x,iconPosition:p="top",indicator:m,label:h,onChange:b,onClick:v,onFocus:_,selected:y,selectionFollowsFocus:w,textColor:E="inherit",value:S,wrapped:C=!1}=n,F=(0,i.Z)(n,f),M=(0,a.Z)({},n,{disabled:l,disableFocusRipple:c,selected:y,icon:!!x,iconPosition:p,label:!!h,fullWidth:u,textColor:E,wrapped:C}),z=Z(M),I=x&&h&&o.isValidElement(x)?o.cloneElement(x,{className:(0,r.Z)(z.iconWrapper,x.props.className)}):x;return(0,g.jsxs)(j,(0,a.Z)({focusRipple:!c,className:(0,r.Z)(z.root,s),ref:t,role:"tab","aria-selected":y,disabled:l,onClick:e=>{!y&&b&&b(e,S),v&&v(e)},onFocus:e=>{w&&!y&&b&&b(e,S),_&&_(e)},ownerState:M,tabIndex:y?0:-1},F,{children:["top"===p||"start"===p?(0,g.jsxs)(o.Fragment,{children:[I,h]}):(0,g.jsxs)(o.Fragment,{children:[h,I]}),m]}))})},54956:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(85893),a=n(67294),o=n(21201);let r={lg:{size:44,fontSize:18},md:{size:36,fontSize:16},sm:{size:32,fontSize:16},xs:{size:28,fontSize:14},xxs:{size:24,fontSize:12}},s=[{background:"#D7F9E5",color:"#1B1B55"},{background:"#AAE1FF",color:"#1B1B55"},{background:"#FFD78A",color:"#1B1B55"}],l=e=>{if("string"!=typeof e||""===e.trim())return console.warn("getColorFromString recibi\xf3 un valor inv\xe1lido:",e),s[0];let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);let n=Math.abs(t%s.length);return s[n]};var c=function(e){var t,n;let{name:s,size:c="md",showBorder:d,displayText:u,sx:x,...p}=e,{background:m,color:h}=(0,a.useMemo)(()=>l(s),[s]),g=r[c],f=null!==(n=null==s?void 0:null===(t=s[0])||void 0===t?void 0:t.toUpperCase())&&void 0!==n?n:"?";return(0,i.jsx)(o.Z,{sx:{background:m,color:h,height:g.size,width:g.size,fontSize:g.fontSize,fontWeight:600,border:d?"1px solid":"none",borderColor:h,justifyContent:"center",alignItems:"center",lineHeight:"unset",...x},...p,children:void 0!==u?u:f})}},64615:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var i=n(85893),a=n(25675),o=n.n(a),r=n(67421),s=n(18745),l=n(83490),c=n(30055),d=n(96788),u=n(69522),x=n(77527),p=n(14959);let m=(0,x.ZP)(p.Z)(e=>{let{theme:t}=e;return{"&.MuiLinearProgress-root ":{backgroundColor:"light"===t.palette.mode?"#E7ECF5":"#252635"}}}),h=(e,t)=>100===e?"light"===t?"#008547":"#24DE9C":"#568DE0";var g=function(e){let{value:t,max:n,text:a,isMonochrome:x,isExpired:p,...g}=e,f=(0,s.Z)(),{t:Z}=(0,r.$G)(),j=e=>(e-0)*100/(n-0),b=(()=>{let e="dark"===f.palette.mode;if(p)return e?f.palette.error.dark:f.palette.error.main;let n=j(t);return 100===n?e?f.palette.success.dark:f.palette.success.main:n>50?e?f.palette.info.dark:f.palette.info.main:e?f.palette.warning.dark:f.palette.warning.main})();return(0,i.jsxs)(c.Z,{alignItems:"flex-start",width:"117px",sx:{gap:1,...g.sx},children:[(0,i.jsx)(l.Z,{width:"100%",mr:1,children:(0,i.jsx)(m,{variant:"determinate",value:j(t)||1,sx:{"& .MuiLinearProgress-bar":{backgroundColor:x?h(j(t),f.palette.mode):b}}})}),(0,i.jsx)(l.Z,{minWidth:35,children:p?(0,i.jsxs)(d.Z,{sx:{fontSize:"12px",display:"flex",alignItems:"center",gap:"5px",color:f.palette.error.main},children:[Z("pages.documents.documents_filters_options.expired"),(0,i.jsx)(u.v,{size:15,weight:"fill",color:f.palette.error.main})]}):100===j(t)?(0,i.jsxs)(d.Z,{sx:{fontSize:"12px",display:"flex",alignItems:"center",gap:"5px",color:x?h(j(t),f.palette.mode):b},children:["".concat(t," / ").concat(n),(0,i.jsx)(o(),{width:15,height:15,src:"/assets/icons/check.svg",alt:"check"})]}):(0,i.jsxs)(d.Z,{fontSize:"12px",children:["".concat(t," / ").concat(n)," ",a]})})]})}},24190:function(e,t,n){"use strict";var i=n(85893),a=n(34262),o=n(67294),r=n(4336),s=n(30055),l=n(96788);let c=(0,o.forwardRef)((e,t)=>{let{name:n,accept:s,onChange:l,buttonText:c,multiple:d,disabled:u,sx:x}=e,p=(0,o.useRef)(null);return(0,o.useImperativeHandle)(t,()=>({reset:()=>{p.current&&(p.current.value="")}})),(0,i.jsxs)(r.Z,{startIcon:(0,i.jsx)(a.p,{size:20}),variant:"outlined",color:"primary",component:"label",disabled:u,sx:x,children:[c,(0,i.jsx)("input",{ref:p,type:"file",name:n,accept:s,onChange:l,multiple:d,hidden:!0})]})});c.displayName="ButtonFile";let d=(0,o.forwardRef)((e,t)=>{let{name:n,accept:a,onChange:o,buttonText:r="Examinar",multiple:d=!1,disabled:u=!1,caption:x="No se ha seleccionado ning\xfan archivo",hideCaption:p=!1,sx:m}=e;return(0,i.jsx)(i.Fragment,{children:p?(0,i.jsx)(c,{ref:t,name:n,accept:a,onChange:o,buttonText:r,multiple:d,disabled:u,sx:m}):(0,i.jsxs)(s.Z,{direction:{xs:"column",md:"row"},alignItems:"center",spacing:2,children:[(0,i.jsx)(c,{ref:t,name:n,accept:a,onChange:o,buttonText:r,multiple:d,disabled:u,sx:m}),(0,i.jsx)(l.Z,{variant:"caption",maxWidth:"35ch",noWrap:!0,children:x})]})})});d.displayName="InputFile",t.Z=d},20641:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var i=n(85893),a=n(96788),o=n(83490),r=n(30055),s=n(97182),l=n(18745),c=n(38614);let d=(0,n(77527).ZP)(r.Z)(e=>{let{theme:t}=e;return{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",display:"flex",zIndex:1300,backgroundColor:"white",background:"light"===t.palette.mode?"#FFFFFF":"\n radial-gradient(circle at top center, rgb(3, 0, 147, 0.28), transparent 50%),\n radial-gradient(circle at center left, rgb(52, 9, 24, 0.25), transparent 50%),\n radial-gradient(circle at center right, rgb(0, 64, 60, 0.2), transparent 50%),\n #090916\n",backgroundSize:"cover",backgroundRepeat:"no-repeat"}});var u=function(e){let{onClose:t,title:n,children:u}=e,x="light"===(0,l.Z)().palette.mode;return(0,i.jsxs)(d,{children:[(0,i.jsx)(r.Z,{children:(0,i.jsxs)(r.Z,{direction:"column",spacing:0,textAlign:"center",marginTop:11,children:[n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Z,{marginBottom:3,children:(0,i.jsx)(s.Z,{sx:{color:x?"#3D8AFF":"#A6D8FF"}})}),(0,i.jsx)(a.Z,{color:"text.primary",textAlign:"center",fontSize:18,lineHeight:"22px",fontWeight:600,marginBottom:2,children:n})]}),u]})}),x&&(0,i.jsx)(c.Z,{})]})}},53427:function(e,t,n){"use strict";n.r(t);var i=n(85893),a=n(55015),o=n(31209),r=n(67421),s=n(67294),l=n(76105),c=n(85979),d=n(83490),u=n(4336),x=n(56912),p=n(52857),m=n(30055),h=n(2853);n(94113),n(70035);var g=n(59037),f=n(32191);f.default.GlobalWorkerOptions.workerSrc="//unpkg.com/pdfjs-dist@".concat(f.default.version,"/build/pdf.worker.min.js"),t.default=function(e){let{file:t,renderTextLayer:n=!0,setPages:f,title:Z,showButtons:j,...b}
1=e,[v,_]=(0,s.useState)(0),[y,w]=(0,s.useState)(1),[E,S]=(0,s.useState)(0),[C,F]=(0,s.useState)(1),M=E===v,z=(0,s.useRef)(null),I=(0,s.useRef)({}),[V,H]=(0,s.useState)(0),{t:k}=(0,r.$G)();(0,s.useEffect)(()=>{function e(){z.current&&H(z.current.clientWidth)}return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[]),(0,s.useEffect)(()=>{let e=document.createElement("style");return e.innerHTML="\n .react-pdf__Page__canvas {\n width: 100% !important;\n height: auto !important;\n }\n ",document.head.appendChild(e),function(){document.head.removeChild(e)}},[]);let W=e=>{e>=1&&e<=1.75&&w(e)};function A(e){S(e),F(e+1),!(e<0)&&I.current[e]&&I.current[e].scrollIntoView({behavior:"smooth"})}return(0,i.jsxs)(h.H,{ref:z,...b,children:[(0,i.jsx)(h.U,{sx:{transform:"scale(".concat(y,")")},loading:null,onLoadSuccess:function(e){let{numPages:t}=e;_(t),z.current&&H(z.current.clientWidth),f&&f(t)},renderMode:"canvas",file:t,children:[...Array(v).keys()].map((e,t)=>(0,i.jsx)(d.Z,{ref:t=>{I.current[e]=t},sx:{backgroundColor:"#FFFFFF",boxShadow:"0px 3.92px 11.76px 0px rgba(32, 33, 95, 0.16)",width:"100%",mt:2,display:"flex",justifyContent:"center","& .react-pdf__Page__canvas":{width:"100% !important",height:"auto !important"}},children:(0,i.jsx)(g.Z,{className:"pdf-page",loading:null,pageNumber:t+1,renderTextLayer:n,width:V||void 0})},t))}),(0,i.jsx)(m.Z,{flexDirection:"column",alignItems:"center",justifyContent:"center",children:(0,i.jsxs)(m.Z,{sx:{position:"fixed",zIndex:100,bottom:{xs:"80px",sm:"50px"},background:"#fff",boxShadow:"0px 4px 10px rgba(0, 0, 0, 0.15)",border:"1px solid #000",borderRadius:"4px",px:1,fontSize:"16px",gap:1},flexDirection:"row",alignItems:"center",justifyContent:"left",children:[(0,i.jsxs)(m.Z,{direction:"row",children:[(0,i.jsx)(p.Z,{onClick:()=>W(y-.25),children:(0,i.jsx)(a.Z,{size:20})}),(0,i.jsx)(p.Z,{onClick:()=>W(y+.25),children:(0,i.jsx)(o.k,{size:20})})]}),(0,i.jsx)(x.Z,{orientation:"vertical",flexItem:!0}),(0,i.jsx)(u.Z,{sx:{padding:0,color:"#000",minWidth:"30px"},onClick:()=>(function(){let e=E-1;e>=0&&A(e)})(),children:(0,i.jsx)(l.Z,{sx:{width:"1.3em",height:"1.3em"}})}),(0,i.jsx)("input",{type:"number",min:1,value:C,"data-pages":v,onChange:function(e){let t=e.target.getAttribute("data-pages"),n=e.target.value-1;!M&&n<t&&A(n)},style:{width:"43px",height:"28px",border:"1px solid #ccc",textAlign:"center",borderRadius:"4px",marginRight:"5px",fontSize:"15px"}}),"de ",v,(0,i.jsx)(u.Z,{sx:{padding:0,color:"#000",minWidth:"30px"},onClick:()=>(function(e){let t=E+1;!M&&t<e&&A(t)})(v),disabled:E===v,children:(0,i.jsx)(c.Z,{sx:{width:"1.3em",height:"1.3em"}})})]})})]})}},2853:function(e,t,n){"use strict";n.d(t,{H:function(){return s},U:function(){return r}});var i=n(16085),a=n(77527),o=n(83490);let r=(0,a.ZP)(i.Z)(e=>{let{theme:t}=e;return{height:"auto",transformOrigin:"top left",width:"100%","& .react-pdf__Page":{width:"100%"}}}),s=(0,a.ZP)(o.Z)(e=>{let{theme:t}=e;return{marginInline:"auto",paddingTop:t.spacing(1),paddingBottom:t.spacing(2),width:"100%"}})},71098:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var i=n(85893),a=n(67421),o=n(30055),r=n(96788),s=n(67204);function l(e){if(null==e)return"";let t=Number(e);if(isNaN(t))return"";let n=new Date(1e3*t);return isNaN(n.getTime())?"":(0,s.Z)(n,"MMM d - HH:mm 'hrs.'")}var c=n(73355),d=n(20370),u=function(e){let{person:t,isDocumentRejected:n,rejectingSigner:s,statusToTypeMap:u,getStatusLabel:x}=e,{t:p}=(0,a.$G)();return n?t.email===(null==s?void 0:s.email)?(0,i.jsxs)(o.Z,{direction:"column",alignItems:"flex-end",children:[(0,i.jsx)(c.Z,{label:p("pages.document_detail.status.rejected"),sx:{bgcolor:"#FFD8E1",".MuiChip-label":{color:"#E1145E !important"}}}),(0,i.jsx)(r.Z,{fontSize:12,color:"#767699",mt:.5,children:l(null==s?void 0:s.terms_reject_at)})]}):t.status===d.w.CONFIRMED?function(){let e=l(t.signature_created_at);return(0,i.jsxs)(o.Z,{direction:"column",alignItems:"flex-end",spacing:.5,children:[(0,i.jsxs)(o.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,i.jsx)(c.Z,{label:
1x(t.role,t.status),type:"success"}),(0,i.jsx)(c.Z,{label:p("common.cancelled"),sx:{bgcolor:"#E7E7E7",".MuiChip-label":{color:"#767699 !important"}}})]}),e&&(0,i.jsx)(r.Z,{fontSize:12,color:"#767699",children:e})]})}():(0,i.jsx)(c.Z,{label:p("common.cancelled"),sx:{bgcolor:"#E7E7E7",".MuiChip-label":{color:"#767699 !important"}}}):(0,i.jsxs)(o.Z,{direction:"column",alignItems:"flex-end",children:[(0,i.jsx)(c.Z,{label:x(t.role,t.status),type:u[t.status]||"default"}),t.status===d.w.CONFIRMED&&(0,i.jsx)(r.Z,{fontSize:12,color:"#767699",mt:.5,children:l(t.signature_created_at)})]})}},57470:function(e,t,n){"use strict";var i=n(85893),a=n(67421),o=n(69522),r=n(67204),s=n(36602),l=n(30055),c=n(96788);t.Z=function(e){let{rejectionDate:t,rejectionReason:n}=e,{t:d}=(0,a.$G)();return(0,i.jsxs)(l.Z,{sx:{flexDirection:"row",p:"10px",gap:1,border:"1px solid #E1145E",borderRadius:"4px",backgroundColor:"#FEF3F7"},children:[(0,i.jsx)(l.Z,{sx:{mt:"2px"},children:(0,i.jsx)(o.a,{size:18,color:"#E1145E"})}),(0,i.jsxs)(l.Z,{children:[(0,i.jsxs)(c.Z,{sx:{fontSize:"14px",color:"#E1145E"},children:[d("pages.document_detail.status.rejected")," -"," ",function(e){if(!e)return"";let t=new Date(1e3*e);return isNaN(t.getTime())?"":(0,r.Z)(t,"dd MMM yyyy",{locale:s.Z})}(t)]}),(0,i.jsx)(c.Z,{sx:{fontSize:"12px",color:"#1B1B55",mt:1},children:(0,i.jsxs)(c.Z,{sx:{fontWeight:600,fontSize:"12px"},children:[d("pages.document_detail.rejection_reason"),":"," ",(0,i.jsxs)(c.Z,{component:"span",sx:{fontStyle:"italic",fontSize:"12px"},children:["â",n,"â"]})]})})]})]})}},81274:function(e,t,n){"use strict";n.d(t,{e:function(){return u}});var i=n(85893),a=n(86501),o=n(69522),r=n(67294),s=n(49566),l=n(41140),c=n(67421);let d="components.tagSelector";function u(e,t){let{t:n}=(0,c.$G)(),[u,x]=(0,r.useState)(!1),[p,m]=(0,r.useState)([]),[h,g]=(0,r.useState)([]),f=Array.isArray(e),Z=f?e:[e],j=Z[0]||"";async function b(e){return(x(!0),f)?Promise.all(Z.map(n=>s.ht.assignTags({tags:e,taggable:{["".concat(t,"_id")]:n}}))).then(e=>!0).catch(e=>(console.error("Error assigning tags to multiple items:",e),!1)).finally(()=>x(!1)):s.ht.assignTags({tags:e,taggable:{["".concat(t,"_id")]:j}}).then(e=>!0).catch(e=>!1).finally(()=>x(!1))}async function v(e){if(m(e),!await b(e)){a.ZP.error(n("".concat(d,".errors.generic")),{...l.P,icon:(0,i.jsx)(o.v,{size:24,color:"#F3A1BF"})}),m(h);return}g(e)}return(0,r.useEffect)(()=>{j&&(x(!0),f?Promise.all(Z.map(e=>s.ht.assignedTags({taggable:{["".concat(t,"_id")]:e}}))).then(e=>{if(0===e.length){m([]);return}m(e[0].data.filter(t=>e.every(e=>e.data.includes(t))))}).catch(e=>{console.error(e),a.ZP.error(n("".concat(d,".errors.generic")),{...l.P,icon:(0,i.jsx)(o.v,{size:24,color:"#F3A1BF"})})}).finally(()=>{x(!1)}):s.ht.assignedTags({taggable:{["".concat(t,"_id")]:j}}).then(e=>{m(e.data)}).catch(e=>{console.error(e),a.ZP.error(n("".concat(d,".errors.generic")),{...l.P,icon:(0,i.jsx)(o.v,{size:24,color:"#F3A1BF"})})}).finally(()=>{x(!1)}))},[j,f]),(0,r.useEffect)(()=>{0===h.length&&g(p)},[p]),{loading:u,selectedTagIds:p,handleTagSelectorChange:v,setSelectedTagIds:m}}},50526:function(e,t,n){"use strict";var i=n(85893),a=n(69522),o=n(24998),r=n(67421),s=n(86501),l=n(67294),c=n(83490),d=n(10980),u=n(52857),x=n(75527),p=n(96788),m=n(49566),h=n(41140),g=n(13631),f=n(17998);t.Z=function(e){let{selectedTagIds:t,onTagsChange:n,disabled:Z}=e,{t:j}=(0,r.$G)(),[b,v]=(0,l.useState)(!1),[_,y]=l.useState(null),[w,E]=(0,l.useState)([]),S=(0,l.useRef)(null),C=!!_,F=C?"tag-selector-popover":void 0;return(0,l.useEffect)(()=>{if(S.current)return E(S.current);v(!0),m.ht.getTags().then(e=>{S.current=e.data,E(e.data)}).catch(e=>{console.error(e),s.ZP.error(j("".concat("components.tagSelector",".errors.generic")),{...h.P,icon:(0,i.jsx)(a.v,{size:24,color:"#F3A1BF"})})}).finally(()=>{v(!1)})},[]),(0,i.jsx)(d.d,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:function(){y(null)},children:(0,i.jsxs)(c.Z,{children:[(0,i.jsx)(g.Z,{placement:"bottom-start",title:(0,i.jsxs)(c.Z,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:[(0,i.jsx)(p.Z,{sx:{fontSize:12,fontWeight:600},children:"Asignar etiquetas aqu\xed"}),(0,i.jsx)(p.Z,{sx:{fontSize:12,fontWeight:500},children:"\xbfPara qu\xe9 sirven las etiquetas en tus documentos? Te ayudan a organizar mejor y encontrar lo que necesitas m\xe1s r\xe1pido."})]}),children:(0,i.jsx)(u.Z,{onClick:function(e){y(_?null:e.currentTarget)},children:t.length?(0,i.jsx)(o.u,{size:20,weight:"duotone",color:"#1B1B55"}):(0,i.jsx)(o.u,{size:20,color:"#767699"})})}),C&&(0,i.jsx)(x.Z,{id:F,open:C,anchorEl:_,placement:"bottom-start",sx:{zIndex:1300,width:220},children:(0,i.jsx)(f.Z,{open:!0,tags:w,setTags:E,selectedTagIds:t,onTagsChange:n,hideTags:!0,size:"small",popupIcon:null,...b||Z?{getOptionDisabled:e=>!0}:null})})]})})}},20370:function(e,t,n){"use strict";n.d(t,{w:function(){return i}});let i={PENDING:"pending",CONFIRMED:"confirmed",REVIEWED:"reviewed",VIEWED:"viewed"}},76737:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return tA}});var i,a,o,r,s=n(85893),l=n(67294),c=n(11163),d=n(9008),u=n.n(d),x=n(49566),p=n(30055),m=n(67421),h=n(24896),g=n(56912),f=n(52857),Z=n(96788),j=n(86344),b=n(81274),v=n(50526);(i=o||(o={})).SIGNED="signed",i.REJECTED="rejected",i.IN_PROGRESS="in_progress",i.PENDING="pending";let _={signed:{bgcolor:"#A6FFDF",color:"#008547"},rejected:{bgcolor:"#FFD8E1",color:"#E1145E"},in_progress:{bgcolor:"#E3E7EB",color:"text.primary"},pending:{bgcolor:"#E3E7EB",color:"text.primary"}},y=(0,l.memo)(v.Z);var w=function(e){let{envelopeData:t,documentInfo:n}=e,{t:i}=(0,m.$G)(),a=(0,c.useRouter)(),{loading:o,selectedTagIds:r,handleTagSelectorChange:l}=(0,b.e)(t.id,"envelope"),d=function(e){if(e.rejected)return{style:_.rejected,label:i("pages.document_detail.status.rejected")};let t=e.status;return{style:_[t]||_.in_progress,label:i("pages.document_detail.tabs.status.statuses.".concat(t))}}(t);return(0,s.jsx)(p.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{width:"100vw",px:2,py:"12px",borderBottom:"1px solid #D3E2F7",height:"64px",background:"linear-gradient(to bottom, rgba(43, 156, 237, 0.13) 0%, rgba(43, 156, 237, 0.0
1) 100%)"},children:(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",sx:{gap:2,flex:1},children:[(0,s.jsx)(f.Z,{onClick:function(){a.push(j.Z.DOCUMENTS)},children:(0,s.jsx)(h.X,{size:20,color:"#1B1B55"})}),(0,s.jsx)(Z.Z,{sx:{fontSize:18,fontWeight:600},children:t.name}),(0,s.jsx)(g.Z,{flexItem:!0,orientation:"vertical"}),(0,s.jsx)(y,{selectedTagIds:r,onTagsChange:l}),t.status&&(0,s.jsx)(Z.Z,{sx:{fontSize:12,borderRadius:"2px",fontWeight:500,px:1,...d.style},children:d.label})]})})},E=n(61941),S=n(95262),C=n(83490),F=n(4336),M=n(28907),z=n(45670),I=n(77527),V=n(66568),H=n(55050);let k=(0,I.ZP)(V.Z)(e=>{let{theme:t}=e;return{"& .MuiTabs-flexContainer":{gap:"20px","& .Mui-selected":{fontWeight:600}},"& .MuiTab-root":{padding:0,minWidth:"auto",textTransform:"none"}}}),W=(0,I.ZP)(H.Z)(e=>{let{theme:t}=e;return{paddingInline:0,paddingTop:0,height:"100%",padding:0,overflowY:"auto",background:"#f7f8fa"}});var A=n(36602),R=n(67204),D=n(38550),P=n(92141),T=n(86948),B=n(25675),L=n.n(B),N=n(81873),O=n(93454),G=n(76592),$=n(19827),q=n(8863),U=n(25026),Q=n(70360),Y=n(46577);let K=(0,I.ZP)(q.Z)(e=>{let{theme:t}=e;return{fontSize:14,fontWeight:600}}),X=(0,I.ZP)(q.Z)(e=>{let{theme:t}=e;return{fontSize:14}});var J=n(41140),ee=n(40230),et=function(e){let{id:t,onDelete:n,...i}=e,[a,o]=(0,l.useState)(!1),{t:r}=(0,m.$G)();return(0,s.jsx)(ee.Z,{...i,title:"Eliminar carpeta",titleIcon:(0,s.jsx)(L(),{src:"/assets/icons/documents/warning.svg",alt:"Trash",width:32,height:32}),actions:(0,s.jsxs)(p.Z,{direction:"row",sx:{gap:2},children:[(0,s.jsx)(F.Z,{sx:{ml:"auto"},variant:"text",color:"primary",onClick:e.onClose,children:r("common.cancel")}),(0,s.jsx)(F.Z,{variant:"contained",color:"error",onClick:function(){!function(e){x.Ib.deleteAttachmentFilesById(e).then(e=>{J.Z.success("Se ha eliminado el archivo correctamente"),i.onClose(),n()}).catch(e=>{J.Z.error("Ocurri\xf3 un error al eliminar el archivo")}).finally(()=>{o(!1)})}(t)},children:r("pages.document_detail.tabs.attachments.delete_confirm")})]}),sx:{".MuiDialog-paper":{maxHeight:"1000px"}},children:(0,s.jsxs)(p.Z,{sx:{width:"380px",height:"100%"},children:[(0,s.jsx)(Z.Z,{sx:{fontWeight:600,fontSize:"16px"},gutterBottom:!0,children:r("pages.document_detail.tabs.attachments.delete_confirmation")}),(0,s.jsx)(Z.Z,{sx:{fontWeight:400,fontSize:"16px"},gutterBottom:!0,children:r("pages.document_detail.tabs.attachments.cannot_undo")})]})})},en=n(24190),ei=n(33318),ea=n(18745),eo=n(25837),er=n(12166),es=n(87406),el=n(27151),ec=n(85533),ed=n(40492);let eu=(0,s.jsx)(el.Z,{fontSize:"small"}),ex=(0,s.jsx)(es.Z,{fontSize:"small"}),ep={documentId:"",email:"",fullname:"",sendEmail:!0,filesRequire:[],comments:""};var em=function(e){let{open:t,onClose:n,id:i,onInviteToUpload:a}=e,o=(0,ea.Z)(),[r,c]=(0,l.useState)(!1),[d,u]=(0,l.useState)(ep),[h,g]=(0,l.useState)([]),[f,j]=(0,l.useState)([]),{t:b}=(0,m.$G)();function v(e){u(t=>({...t,[e.target.name]:e.target.value}))}return(0,l.useEffect)(()=>{u(e=>({...e,documentId:i})),x.Ib.getAttachmentTypes().then(e=>{g(e.data)}).catch(e=>{J.Z.error(b("pages.document_detail.tabs.attachments.fetch_attachment_types_error"))}).finally(()=>{c(!1)})},[i]),(0,s.jsx)(ee.Z,{open:t,onClose:n,maxWidth:"sm",fullWidth:!0,title:b("pages.document_detail.tabs.attachments.send_invite_dialog_title"),titleIcon:(0,s.jsx)(L(),{src:"/assets/icons/documents/clip.svg",alt:"Trash",width:32,height:32}),sx:{".MuiDialog-paper":{maxHeight:"1000px"}},actions:(0,s.jsxs)(p.Z,{direction:"row",sx:{gap:2},children:[(0,s.jsx)(F.Z,{sx:{ml:"auto"},variant:"text",color:"primary",onClick:n,children:b("common.cancel")}),(0,s.jsx)(F.Z,{type:"submit",disabled:r,variant:"contained",color:"primary",onClick:function(){c(!0),x.Ib.postAttachment({...d,filesRequire:f.map(e=>e.name)}).then(e=>{J.Z.success(b("pages.document_detail.tabs.attachments.send_invite_success")),n(),a(),u(ep),j([])}).catch(e=>{J.Z.error(b("pages.document_detail.tabs.attachments.send_invite_error"))}).finally(()=>{c(!1)})},children:b("pages.document_detail.tabs.attachments.send_request")})]}),children:(0,s.jsxs)(p.Z,{component:"form",children:[(0,s.jsx)(Z.Z,{fontWeight:600,mb:3,mt:1,children:b("pages.document_detail.tabs.attachments.request_data")}),(0,s.jsxs)(ec.Z,{sx:{color:"text.primary"},children:[(0,s.jsxs)(Z.Z,{fontSize:14,fontWeight:600,mb:1,children:[b("pages.document_detail.tabs.attachments.request_form_full_name")," ","*"]}),(0,s.jsx)(ed.Z,{type:"text",name:"fullname",placeholder:"p. ej. Juan Ram\xedrez",size:"small",fullWidth:!0,value:d.fullname,onChange:v})]}),(0,s.jsxs)(ec.Z,{sx:{color:"text.primary",mt:3},children:[(0,s.jsxs)(Z.Z,{fontSize:14,fontWeight:600,mb:1,children:[b("pages.document_detail.tabs.attachments.request_form_email")," *"]}),(0,s.jsx)(ed.Z,{type:"email",name:"email",placeholder:"p. ej. [email protected]",size:"small",fullWidth:!0,value:d.email,onChange:v})]}),(0,s.jsx)(Z.Z,{fontSize:14,fontWeight:600,mb:2,mt:4,children:b("pages.document_detail.tabs.attachments.request_form_which_documents")}),(0,s.jsx)(eo.Z,{value:f,onChange:(e,t)=>
1j(t),id:"filesRequire",multiple:!0,options:h,disableCloseOnSelect:!0,getOptionLabel:e=>e.name,renderOption:(e,t,n)=>{let{selected:i}=n,{...a}=e;return(0,s.jsxs)("li",{...a,children:[(0,s.jsx)(er.Z,{icon:eu,checkedIcon:ex,style:{marginRight:8},checked:i}),t.name]})},renderInput:e=>{let{InputProps:t,...n}=e;return(0,s.jsx)(ed.Z,{...n,type:"text",name:"filesRequire",InputProps:{...t,autoComplete:"off",startAdornment:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ei.Y,{color:o.palette.text.primary,size:20}),t.startAdornment]})},placeholder:b("pages.document_detail.tabs.attachments.search_by_file_name"),size:"small",fullWidth:!0})}}),(0,s.jsx)(Z.Z,{fontSize:12,color:"#767699",fontStyle:"italic",mt:"8px",children:b("pages.document_detail.tabs.attachments.select_files")}),(0,s.jsxs)(ec.Z,{sx:{color:"text.primary",mt:3},children:[(0,s.jsx)(Z.Z,{fontSize:14,fontWeight:600,mb:1,children:b("pages.document_detail.tabs.attachments.request_form_comments")}),(0,s.jsx)(ed.Z,{type:"text",name:"comments",rows:3,multiline:!0,placeholder:"p. ej. Se requiere documentos no mayor a 3 meses de antig\xfcedad",size:"small",fullWidth:!0,value:d.comments,onChange:v})]})]})})},eh=function(e){let{id:t}=e,{t:n}=(0,m.$G)(),[i,a]=(0,l.useState)(!1),[o,r]=(0,l.useState)(!1),[c,d]=(0,l.useState)([]),[u,h]=(0,l.useState)(!1),[j,b]=(0,l.useState)([]),[v,_]=(0,l.useState)(),[y,w]=(0,l.useState)(!1);function E(){r(e=>!e)}function S(e){if(e){_(e),w(!0);return}_(void 0),w(!1)}return(0,l.useEffect)(()=>{t&&(a(!0),x.Ib.getAttachments({documentId:t}).then(e=>{d(e.data)}).catch(e=>{console.error(e)}).finally(()=>{a(!1)}),function(e){x.Ib.getAttachmentFiles({documentId:e}).then(e=>{b(e.data)}).catch(e=>{J.Z.error("Ocurri\xf3 un error al obtener el listado de archivos")}).finally(()=>{a(!1)})}(t),r(!1))},[t,o]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(p.Z,{sx:{px:4},children:[(0,s.jsxs)(p.Z,{direction:"row",justifyContent:"space-between",alignItems:"flex-start",sx:{width:"100%",maxWidth:"796px",mx:"auto",p:3,mt:4,background:"#FFFFFF",borderRadius:"4px",border:"1px solid #E9EAF0"},children:[(0,s.jsxs)(p.Z,{spacing:1,children:[(0,s.jsxs)(Z.Z,{sx:{fontWeight:600,fontSize:"18px",display:"flex",alignItems:"center",gap:1},children:[n("pages.document_detail.tabs.attachments.upload_files_to_document"),(0,s.jsx)(D.H,{size:20,color:"#3D8AFF"})]}),(0,s.jsx)(Z.Z,{fontSize:14,color:"#767798",children:n("pages.document_detail.tabs.attachments.file_types_allowed")})]}),(0,s.jsx)(p.Z,{spacing:1,children:(0,s.jsx)(en.Z,{name:"selectFiles",accept:".docx,.pdf,.doc",multiple:!0,buttonText:n("pages.document_detail.tabs.attachments.select_files"),hideCaption:!0,onChange:function(e){let{files:n}=e.target;if(!n)return J.Z.error("No se han seleccionado archivos");a(!0),x.Ib.postAttachmentFiles({documentId:t,files:n,filesContent:void 0}).then(e=>{J.Z.success("Se ha subido el archivo correctamente"),r(!0)}).catch(e=>{J.Z.error("Ocurri\xf3 un error al subir el archivo")}).finally(()=>{a(!1)})}})})]}),(0,s.jsx)(p.Z,{sx:{width:"100%",maxWidth:"796px",mx:"auto"},children:(0,s.jsx)(U.Z,{component:O.Z,sx:{mt:2,boxShadow:"none",border:"1px solid #E9EAF0"},children:(0,s.jsxs)(G.Z,{sx:{minWidth:650},"aria-label":"simple table",children:[(0,s.jsx)(Q.Z,{children:(0,s.jsxs)(Y.Z,{children:[(0,s.jsx)(K,{children:n("pages.document_detail.tabs.attachments.file")}),(0,s.jsx)(K,{children:n("pages.document_detail.tabs.attachments.requested_to")}),(0,s.jsx)(K,{children:n("pages.document_detail.tabs.attachments.date")}),(0,s.jsx)(q.Z,{size:"small"})]})}),(0,s.jsxs)($.Z,{children:[c.map(e=>(0,s.jsx)(Y.Z,{sx:{"&:last-child td, &:last-child th":{border:0},"& .MuiTableCell-root, & .MuiTypography-root":{fontSize:14,color:"text.secondary"}},children:e.attachments.filter(e=>"pending"===e.status).map(t=>(0,s.jsxs)(l.Fragment,{children:[(0,s.jsx)(X,{component:"th",scope:"row",children:(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",spacing:2,children:[(0,s.jsx)(L(),{src:"/assets/icons/file-disabled.svg",width:32,height:32,alt:""}),(0,s.jsx)(Z.Z,{children:t.filename})]})}),(0,s.jsx)(X,{children:e.fullname}),(0,s.jsx)(X,{children:(0,R.Z)(new Date(e.created_at),"MMM dd, yyyy",{locale:A.Z})}),(0,s.jsx)(X,{size:"small",className:"actions-column",children:(0,s.jsx)(N.Z,{color:"success",className:"actions-column__chip",label:"Pendiente",sx:{height:"20px",borderRadius:"2px",background:"#E9EDF0",color:"text.primary",fontSize:12,fontWeight:500,"& .MuiChip-label":{padding:"1px 4px"}}})})]},t._id))},e._id)),j.map(e=>(0,s.jsxs)(Y.Z,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[(0,s.jsx)(X,{component:"th",scope:"row",children:(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",spacing:2,children:[(0,s.jsx)(L(),{src:"/assets/icons/file.svg",width:32,height:32,alt:""}),(0,s.jsx)(Z.Z,{fontSize:14,children:e.filename})]})}),(0,s.jsx)(X,{children:"external_user_id"in e.attach_request?e.attach_request.fullname:""}),(0,s.jsx)(X,{children:(0,R.Z)(new Date(e.created_at),"MMM dd, yyyy",{locale:A.Z})}),(0,s.jsxs)(X,{size:"small",className:"actions-column",sx:{minWidth:"125px",alignItems:"flex-end","& .actions-column__actions":{display:"none"},"&:hover":{"& .actions-column__actions":{display:"flex"},"& .actions-column__chip":{display:"none"}}},children:[(0,s.jsx)(N.Z,{color:"success",className:"actions-column__chip",label:"Adjunto",sx:{height:"20px",borderRadius:"2px",background:"#A6FFDF",color:"#008547",fontSize:12,fontWeight:500,"& .MuiChip-label":{padding:"1px 4px"}}}),(0,s.jsxs)(p.Z,{className:"actions-column__actions",direction:"row",spacing:1,children:[(0,s.jsx)(f.Z,{onClick:()=>{a(!0),x.Ib.showAttachmentFileById(e._id).then(t=>{let n=window.URL.createObjectURL(t),i=document.createElement("a");i.href=n,i.setAttribute("download",e.filename),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n),J.Z.success("Se ha descargado el archivo correctamente")}).catch(e=>{J.Z.error("Ocurri\xf3 un error al descargar el archivo")}).finally(()=>{a(!1)})},children:(0,s.jsx)(P.M,{size:20})}),(0,s.jsx)(g.Z,{orientation:"vertical",flexItem:!0}),(0,s.jsx)(f.Z,{onClick:()=>
1S(e._id),children:(0,s.jsx)(T.r,{color:"#E1145E",size:20})})]})]})]},e._id))]})]})})})]}),(0,s.jsx)(em,{open:u,onClose:function(){h(e=>!e)},id:t,onInviteToUpload:E}),v&&(0,s.jsx)(et,{open:y,onClose:()=>S(),id:v,onDelete:E})]})},eg=n(13631),ef=n(83205),eZ=n(25381),ej=n(15972);let eb=(0,I.ZP)(F.Z)(e=>{let{theme:t}=e;return{color:t.palette.text.primary,"& .document-selector-button__file-name":{maxWidth:"270px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},"& .document-selector-button__file-extension":{background:"#FCB7B7",marginLeft:"8px",padding:"1px 4px",borderRadius:"2px",fontSize:12,fontWeight:500,height:"20px",display:"flex",alignItems:"center"},"& .MuiButton-endIcon":{fontSize:20,marginLeft:"12px"}}});var ev=function(e){let{documents:t,selectedDocumentIndex:n,onDocumentChange:i}=e,[a,o]=(0,l.useState)(null),r=!!a;function c(){o(null)}return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(eb,{id:"document-selector-button","aria-controls":r?"document-selector":void 0,"aria-haspopup":"true","aria-expanded":r?"true":void 0,onClick:function(e){o(e.currentTarget)},endIcon:(0,s.jsx)(ef.ch,{}),children:[(0,s.jsx)(C.Z,{className:"document-selector-button__file-name",component:"span",children:t[n].name}),(0,s.jsx)(C.Z,{className:"document-selector-button__file-extension",component:"span",children:"PDF"})]}),(0,s.jsx)(eZ.Z,{id:"document-selector",anchorEl:a,open:r,onClose:c,MenuListProps:{"aria-labelledby":"document-selector-button"},sx:{"& .MuiPaper-root":{minWidth:250}},children:t.map((e,t)=>(0,s.jsx)(ej.Z,{selected:n===t,onClick:()=>{i(e.document_id),c()},children:e.name},e.document_id))})]})},e_=n(53427),ey=function(e){let{filePath:t}=e;return(0,s.jsx)(p.Z,{sx:{height:"100%",flex:1,px:4,py:2},children:t?(0,s.jsx)(e_.default,{file:t,renderTextLayer:!1}):(0,s.jsx)(Z.Z,{variant:"h6",color:"error",textAlign:"center",mt:4,children:"No se pudo encontrar tu documento"})})},ew=n(62770),eE=n(20070),eS=n(55193);let eC=(0,I.ZP)(q.Z)(e=>{let{theme:t}=e;return{fontSize:14,fontWeight:600}}),eF=(0,I.ZP)(q.Z)(e=>{let{theme:t}=e;return{fontSize:14}});var eM=n(88468),ez=n(82169),eI=n(6897),eV=n(65806),eH=n(31121),ek=n(92878);let eW=/^[\w\d\-_ñÃáéÃóúÃÃÃÃÃ\s]+$/,eA="pages.document_detail.tabs.reminders";var eR=function(e){let{documentId:t,onCreate:n,...i}=e,{t:a}=(0,m.$G)(),[o,r]=(0,l.useState)(""),[c,d]=(0,l.useState)(3),[u,h]=(0,l.useState)(),[g,j]=(0,l.useState)(null),b=e=>{let{name:t,value:n}=e.target;if("folder-name"!==t)return d(parseInt(n));r(n)};return(0,s.jsxs)(ee.Z,{...i,maxWidth:"xs",fullWidth:!0,title:"Agregar recordatorio",titleIcon:(0,s.jsx)(L(),{src:"/assets/icons/clock.svg",alt:"Trash",width:32,height:32}),actions:(0,s.jsxs)(p.Z,{direction:"row",sx:{gap:2},children:[(0,s.jsx)(F.Z,{variant:"text",sx:{mr:1,fontSize:"16px"},onClick:e.onClose,children:a("common.cancel")}),(0,s.jsx)(F.Z,{disabled:0==o.length,variant:"contained",color:"primary",sx:{fontSize:"16px"},onClick:function(){return eW.test(o)?o&&t&&g&&c?void(function(e){x.Vh.postReminder(e).then(e=>{J.Z.success("Recordatorio creado correctamente")}).catch(e=>{J.Z.error("Ocurri\xf3 un problema al crear el recordatorio")}).finally(()=>{})}({documentId:t,reminderText:o,dueDate:(0,R.Z)(g,"yyyy-MM-dd"),typeNotificationDate:c,reminder:o,notificationDate:u&&4===c?(0,R.Z)(u,"yyyy-MM-dd"):void 0}),e.onClose(),r(""),d(3),h(null),j(null),n()):J.Z.error("Verifica los datos del formulario e int\xe9ntalo nuevamente"):J.Z.error("El nombre del recordatorio s\xf3lo puede contener caracteres alfanum\xe9ricos, guiones y espacios")},children:a("".concat(eA,".dialogs.add.create_reminder"))})]}),children:[(0,s.jsxs)(Z.Z,{sx:{fontWeight:600,fontSize:"14px"},gutterBottom:!0,children:[a("".concat(eA,".dialogs.add.add_reminder"))," *"]}),(0,s.jsx)(ed.Z,{name:"folder-name",placeholder:"p. ej. Recordatorio de revisi\xf3n",size:"small",fullWidth:!0,value:o,onChange:b,inputProps:{maxLength:30}}),(0,s.jsx)(eI.Z,{sx:{mt:2},children:(0,s.jsxs)(ek.Z,{name:"notification-date",value:c,onChange:b,children:[(0,s.jsx)(eV.Z,{sx:{height:"35px"},value:3,control:(0,s.jsx)(eH.Z,{color:"success"}),label:a("".concat(eA,".same_day"))}),(0,s.jsx)(eV.Z,{sx:{height:"35px"},value:2,control:(0,s.jsx)(eH.Z,{color:"success"}),label:a("".concat(eA,".a_day_before"))}),(0,s.jsx)(eV.Z,{sx:{height:"35px"},value:1,control:(0,s.jsx)(eH.Z,{color:"success"}),label:a("".concat(eA,".a_week_before"))}),(0,s.jsx)(eV.Z,{sx:{height:"35px"},value:4,control:(0,s.jsx)(eH.Z,{color:"success"}),label:a("".concat(eA,".custom_date"))})]})}),4===c&&(0,s.jsx)(ez.M,{name:"custom-date",value:u,onChange:e=>h(e),format:"dd/MM/yyyy",slots:{openPickerIcon:eM.R},slotProps:{inputAdornment:{position:"start"},openPickerButton:{sx:{color:"#29B2FF"}}},sx:{marginLeft:"32px",width:"calc(100% - 32px)","& .MuiInputBase-input":{padding:"8.5px 0"}}}),(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",sx:{marginTop:"24px",marginBottom:"6px"},children:[(0,s.jsxs)(Z.Z,{sx:{fontWeight:600,fontSize:"14px",marginBottom:0},gutterBottom:!0,children:[a("".concat(eA,".dialogs.add.due_date"))," *"]}),(0,s.jsx)(eg.Z,{title:(0,s.jsxs)(s.Fragment,{children:[a("".concat(eA,".due_date_tooltip_1"))," ",(0,s.jsx)("br",{}),a("".concat(eA,".due_date_tooltip_2"))]}),arrow:!0,placement:"right",children:(0,s.jsx)(f.Z,{sx:{padding:0,marginLeft:"6px"},children:(0,s.jsx)(D.H,{size:18,color:"#29B2FF"})})})]}),(0,s.jsx)(ez.M,{name:"due-date",value:g,onChange:e=>j(e),format:"dd/MM/yyyy",slots:{openPickerIcon:eM.R},slotProps:{textField:{fullWidth:!0},inputAdornment:{position:"start"},openPickerButton:{sx:{color:"#29B2FF"}}},sx:{"& .MuiInputBase-input":{padding:"8.5px 0"}}})]})},eD=function(e){let{id:t,onDelete:n,...i}=e;
1return(0,s.jsx)(ee.Z,{...i,title:"Eliminar recordatorio",titleIcon:(0,s.jsx)(L(),{src:"/assets/icons/documents/warning.svg",alt:"Trash",width:32,height:32}),actions:(0,s.jsxs)(p.Z,{direction:"row",sx:{gap:2},children:[(0,s.jsx)(F.Z,{sx:{ml:"auto"},variant:"text",color:"primary",onClick:e.onClose,children:"Cancelar"}),(0,s.jsx)(F.Z,{variant:"contained",color:"error",onClick:function(){!function(t){x.Vh.deleteReminderById(t).then(e=>{console.log(e)}).catch(e=>{console.error(e),J.Z.error("Ocurri\xf3 un problema al eliminar el recordatorio")}).finally(()=>{n(),e.onClose()})}(t)},children:"Eliminar recordatorio"})]}),sx:{".MuiDialog-paper":{maxHeight:"1000px"}},children:(0,s.jsxs)(p.Z,{sx:{width:"380px",height:"100%"},children:[(0,s.jsx)(Z.Z,{sx:{fontWeight:600,fontSize:"16px"},gutterBottom:!0,children:"\xbfDeseas eliminar este recordatorio?"}),(0,s.jsx)(Z.Z,{sx:{fontWeight:400,fontSize:"16px"},gutterBottom:!0,children:"Esta acci\xf3n no se puede deshacer"})]})})},eP=n(22980);let eT=/^[\w\d\-_ñÃáéÃóúÃÃÃÃÃ\s]+$/,eB="pages.document_detail.tabs.reminders",eL={_id:"",reminder_text:"",user_documents_organization_id:"",due_date:"",type_notification_date:3,user_id:"",notification_date:"",updated_at:"",created_at:""};var eN=function(e){let{id:t,onUpdate:n,...i}=e,{t:a}=(0,m.$G)(),[o,r]=(0,l.useState)(eL),[c,d]=(0,l.useState)(),[u,h]=(0,l.useState)(),{reminder_text:g,type_notification_date:j}=o,b=e=>{let{name:t,value:n}=e.target;r(e=>({...e,[t]:"type_notification_date"===t?parseInt(n):n}))};return(0,l.useEffect)(()=>{if(!e.data)return;r(e.data);let t=(0,eP.Z)(e.data.due_date);h(new Date(t.getTime()+6e4*t.getTimezoneOffset())),d(e.data.notification_date?(0,eP.Z)(e.data.notification_date):null)},[e.data]),(0,s.jsxs)(ee.Z,{...i,maxWidth:"xs",fullWidth:!0,title:"Editar recordatorio",titleIcon:(0,s.jsx)(L(),{src:"/assets/icons/clock.svg",alt:"Trash",width:32,height:32}),actions:(0,s.jsxs)(p.Z,{direction:"row",sx:{gap:2},children:[(0,s.jsx)(F.Z,{variant:"text",sx:{mr:1,fontSize:"16px"},onClick:e.onClose,children:a("common.cancel")}),(0,s.jsx)(F.Z,{disabled:0==g.length,variant:"contained",color:"primary",sx:{fontSize:"16px"},onClick:function(){return eT.test(g)?t&&g&&j&&u?void(function(e,t){x.Vh.putReminderById(e,t).then(e=>{J.Z.success("Recordatorio actualizado correctamente")}).catch(e=>{J.Z.error("Ocurri\xf3 un problema al actualizar el recordatorio")}).finally(()=>{n()})}(t,{reminderText:g,dueDate:(0,R.Z)(u,"yyyy-MM-dd"),typeNotificationDate:j,notificationDate:c&&4===j?(0,R.Z)(c,"yyyy-MM-dd"):void 0}),e.onClose(),r(eL),d(null),h(null)):J.Z.error("Verifica los datos del formulario e int\xe9ntalo nuevamente"):J.Z.error("El nombre del recordatorio s\xf3lo puede contener caracteres alfanum\xe9ricos, guiones y espacios")},children:a("common.save")})]}),children:[(0,s.jsxs)(Z.Z,{sx:{fontWeight:600,fontSize:"14px"},gutterBottom:!0,children:[a("".concat(eB,".dialogs.add.add_reminder"))," *"]}),(0,s.jsx)(ed.Z,{name:"reminder_text",placeholder:"p. ej. Recordatorio de revisi\xf3n",size:"small",fullWidth:!0,value:g,onChange:b}),(0,s.jsx)(eI.Z,{sx:{mt:2},children:(0,s.jsxs)(ek.Z,{name:"type_notification_date",value:j,onChange:b,children:[(0,s.jsx)(eV.Z,{sx:{height:"35px"},value:3,control:(0,s.jsx)(eH.Z,{color:"success"}),label:a("".concat(eB,".same_day"))}),(0,s.jsx)(eV.Z,{sx:{height:"35px"},value:2,control:(0,s.jsx)(eH.Z,{color:"success"}),label:a("".concat(eB,".a_day_before"))}),(0,s.jsx)(eV.Z,{sx:{height:"35px"},value:1,control:(0,s.jsx)(eH.Z,{color:"success"}),label:a("".concat(eB,".a_week_before"))}),(0,s.jsx)(eV.Z,{sx:{height:"35px"},value:4,control:(0,s.jsx)(eH.Z,{color:"success"}),label:a("".concat(eB,".custom_date"))})]})}),4===j&&(0,s.jsx)(ez.M,{name:"notification_date",value:c,onChange:e=>d(e),format:"dd/MM/yyyy",slots:{openPickerIcon:eM.R},slotProps:{inputAdornment:{position:"start"},openPickerButton:{sx:{color:"#29B2FF"}}},sx:{marginLeft:"32px",width:"calc(100% - 32px)","& .MuiInputBase-input":{padding:"8.5px 0"}}}),(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",sx:{marginTop:"24px",marginBottom:"6px"},children:[(0,s.jsxs)(Z.Z,{sx:{fontWeight:600,fontSize:"14px",marginBottom:0},gutterBottom:!0,children:[a("".concat(eB,".dialogs.add.due_date"))," *"]}),(0,s.jsx)(eg.Z,{title:(0,s.jsxs)(s.Fragment,{children:[a("".concat(eB,".due_date_tooltip_1"))," ",(0,s.jsx)("br",{}),a("".concat(eB,".due_date_tooltip_2"))]}),arrow:!0,placement:"right",children:(0,s.jsx)(f.Z,{sx:{padding:0,marginLeft:"6px"},children:(0,s.jsx)(D.H,{size:18,color:"#29B2FF"})})})]}),(0,s.jsx)(ez.M,{name:"due_date",value:u,onChange:e=>h(e),format:"dd/MM/yyyy",slots:{openPickerIcon:eM.R},slotProps:{textField:{fullWidth:!0},inputAdornment:{position:"start"},openPickerButton:{sx:{color:"#29B2FF"}}},sx:{"& .MuiInputBase-input":{padding:"8.5px 0"}}})]})};let eO="pages.document_detail.tabs.reminders";function eG(e){let{documentId:t}=e,{t:n}=(0,m.$G)(),[i,a]=(0,l.useState)(!1),[o,r]=(0,l.useState)([]),[c,d]=(0,l.useState)(null),[u,h]=(0,l.useState)(!1),[j,b]=(0,l.useState)(!1),[v,_]=(0,l.useState)(!1);function y(){h(e=>!e)}function w(e){return(0,R.Z)(new Date(function(e){let[t,n,i]=e.split("-").map(e=>parseInt(e));return[t,n-1,i].toString()}(e)),"MMM dd, yyyy",{locale:A.Z})}return(0,l.useEffect)(()=>{(i||t)&&(function(e){x.Vh.getReminders({documentId:e}).then(e=>{r(e.data)}).catch(e=>{J.Z.error("Ocurri\xf3 un problema al obtener los recordatorios")}).finally(()=>{})}(t),a(!1))},[i,t]),(0,s.jsxs)(p.Z,{sx:{px:8,pt:3,height:"100%",background:"#f7f8fa"},children:[(0,s.jsxs)(p.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,s.jsx)(Z.Z,{fontSize:18,fontWeight:600,children:n("pages.document_detail.tabs.reminders.create_reminders_for_documents")}),(0,s.jsx)(F.Z,{onClick:y,variant:"outlined",startIcon:(0,s.jsx)(ew.v,{size:20}),children:n("pages.document_detail.tabs.reminders.new_reminder")})]}),(0,s.jsx)(U.Z,{component:O.Z,sx:{mt:2,boxShadow:"none",border:"1px solid #E9EAF0"},children:(0,s.jsxs)(G.Z,{sx:{minWidth:650},"aria-label":"simple table",children:[(0,s.jsx)(Q.Z,{children:(0,s.jsxs)(Y.Z,{children:[(0,s.jsx)(eC,{children:n("pages.document_detail.tabs.reminders.reminder")}),(0,s.jsx)(eC,{children:n("pages.document_detail.tabs.reminders.created_on")}),(0,s.jsx)(eC,{children:n("pages.document_detail.tabs.reminders.reminder_date")}),(0,s.jsx)(q.Z,{size:"small"})]})}),(0,s.jsx)($.Z,{children:o.length>=1&&o.map(e=>(0,s.jsxs)(Y.Z,{sx:{"&:last-child td, &:last-child th":{border:0}},children:[(0,s.jsx)(eF,{component:"th",scope:"row",children:(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",spacing:2,children:[(0,s.jsx)(p.Z,{sx:{background:"#F8EDFF",padding:"4px",borderRadius:"25px"},children:(0,s.jsx)(eE.S,{color:"#683289",size:20})}),(0,s.jsx)(Z.Z,{fontSize:14,children:e.reminder_text})]})}),(0,s.jsx)(eF,{children:w(e.created_at)}),(0,s.jsx)(eF,{children:4!==e.type_notification_date?function(e){switch(e){case 1:return n("".concat(eO,".a_week_before"));case 2:return n("".concat(eO,".a_day_before"));case 3:return n("".concat(eO,".same_day"));case 4:return n("".concat(eO,".custom_date"))}}(e.type_notification_date):w(e.notification_date)}),(0,s.jsx)(eF,{size:"small",children:(0,s.jsxs)(p.Z,{direction:"row",spacing:1,children:[(0,s.jsx)(f.Z,{onClick:()=>(function(e){x.Vh.getReminderById(e._id).then(e=>{d(e),_(!0)})})(e),children:(0,s.jsx)(eS.G,{color:"#767699",size:20})}),(0,s.jsx)(g.Z,{orientation:"vertical",flexItem:!0}),(0,s.jsx)(f.Z,{onClick:()=>{d(e),b(!0)},children:(0,s.jsx)(T.r,{color:"#E1145E",size:20})})]})})]},e._id))})]})}),(0,s.jsx)(eR,{onClose:y,open:u,documentId:t,onCreate:()=>a(!0)}),c&&j&&(0,s.jsx)(eD,{onClose:function(){d(null),b(!1)},open:j,id:c._id,onDelete:()=>a(!0)}),c&&v&&(0,s.jsx)(eN,{onClose:function(){d(null),_(!1)},open:v,id:c._id,data:c,onUpdate:()=>a(!0)})]})}let e$="pages.document_detail.tabs";function eq(e){let{documentUrl:t,id:n,onDocumentChange:i,documents:a}=e,{t:o}=(0,m.$G)(),[r,c]=(0,l.useState)("1"),d=[{name:"".concat(o("".concat(e$,".document.title")),"s (").concat(a.length,")")},{name:o("".concat(e$,".attachments.title"))},{name:o("".concat(e$,".reminders.title"))}],u=(0,l.useMemo)(()=>a.flatMap(e=>e.document_id),[a]),x=(0,l.useMemo)(()=>u.findIndex(e=>e===n),[n]),h=0===x,g=x===u.length-1,f=h?"":a[x-1].name,Z=g?"":a[x+1].name;return(0,s.jsxs)(z.ZP,{value:r,children:[(0,s.jsxs)(p.Z,{sx:{flexDirection:"row",justifyContent:"flex-start",borderBottom:1,borderColor:"#D3E2F7",pl:8,pr:4,height:"48px"},children:[(0,s.jsx)(k,{onChange:function(e,t){c(t)},"aria-label":"document preview tabs",children:d.map((e,t)=>(0,s.jsx)(M.Z,{label:e.name,disableRipple:!0,value:String(t+1)},t))}),"1"===r&&(0,s.jsxs)(p.Z,{sx:{marginLeft:"auto",flexDirection:"row",alignItems:"center",gap:1,"& .MuiButton-root":{minHeight:"32px",height:"32px",borderColor:"#D3E2F7",color:"text.primary","& .MuiButton-startIcon":{marginRight:"6px"},"& .MuiButton-endIcon":{marginLeft:"6px"}}},children:[(0,s.jsx)(eg.Z,{title:f,children:(0,s.jsx)(F.Z,{variant:"outlined",size:"small",onClick:function(){i(u[x-1])},color:"inherit",startIcon:(0,s.jsx)(E.W,{size:16}
1),disabled:h,children:o("pages.envelopes.envelope_config.document_toolbar.previous")})}),(0,s.jsx)(eg.Z,{title:Z,children:(0,s.jsx)(F.Z,{variant:"outlined",size:"small",onClick:function(){i(u[x+1])},color:"inherit",endIcon:(0,s.jsx)(S.T,{size:16}),disabled:g,children:o("pages.envelopes.envelope_config.document_toolbar.next")})})]})]}),(0,s.jsxs)(W,{value:"1",children:[(0,s.jsx)(C.Z,{sx:{pl:8,mt:"14px"},children:(0,s.jsx)(ev,{documents:a,selectedDocumentIndex:x,onDocumentChange:i})}),t&&(0,s.jsx)(ey,{filePath:t})]}),(0,s.jsx)(W,{value:"2",children:(0,s.jsx)(eh,{id:n})}),(0,s.jsx)(W,{value:"3",children:(0,s.jsx)(eG,{documentId:n})})]})}(a=r||(r={})).Documents="1",a.Attachments="2",a.Reminders="3";let eU=(0,I.ZP)(V.Z)(e=>{let{theme:t}=e;return{"& .MuiTabs-flexContainer":{gap:"20px","& .Mui-selected":{fontWeight:600}},"& .MuiTab-root":{padding:0,minWidth:"auto",textTransform:"none"}}}),eQ=(0,I.ZP)(H.Z)(e=>{let{theme:t}=e;return{paddingInline:0,paddingTop:0,height:"100%",padding:0,overflowY:"auto"}});var eY=n(54956),eK=n(95371),eX=n(47765),eJ=n(58047),e0=function(e){var t,n,i,a;let{documentInfo:o}=e,r=null!==(i=null==o?void 0:null===(t=o.Blockchain)||void 0===t?void 0:t.blockchain)&&void 0!==i?i:[];console.log("BLOCKInfo: ",r,null!==(a=null==o?void 0:null===(n=o.Blockchain)||void 0===n?void 0:n.certificate)&&void 0!==a?a:[]);let{t:l}=(0,m.$G)(),c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"EEEE d, MMM yyyy - HH:mm:ss";if(!e||isNaN(e)||e<=0)return console.error("Invalid timestamp value"),null;let n=new Date(1e3*e);return(0,R.Z)(n,t,{locale:A.Z})};return(0,s.jsxs)(C.Z,{sx:{px:4,pt:3},children:[(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",children:[(0,s.jsxs)(Z.Z,{sx:{maxWidth:"350px"},children:[l("pages.document_detail.tabs.blockchain.detailsMessage"),":"]}),(0,s.jsx)(F.Z,{variant:"outlined",startIcon:(0,s.jsx)(eK.Z,{}),sx:e=>({background:"light"===e.palette.mode?"":"rgba(141, 200, 255, 0.04)",color:"light"===e.palette.mode?"linear-gradient(71.74deg, #29B2FF -2.45%, #1338FF 100%);":e.palette.text.primary,borderColor:open?"#2481FF":"light"===e.palette.mode?"linear-gradient(71.74deg, #29B2FF -2.45%, #1338FF 100%);":"rgba(37, 38, 53, 1)",width:"100%"}),children:l("pages.document_detail.tabs.blockchain.downloadButton")})]}),(0,s.jsx)(g.Z,{sx:{my:2,borderColor:"#D3E2F7"}}),r.length&&r.map((e,t)=>(0,s.jsxs)(s.Fragment,{children:["document.upload"==e.type&&(0,s.jsxs)(Z.Z,{sx:{minWidth:"250px"},fontSize:16,fontWeight:500,py:1.5,children:[t,"."," ",l("pages.document_detail.tabs.blockchain.initialText")]}),"participant.sign"==e.type&&(0,s.jsxs)(Z.Z,{sx:{minWidth:"250px"},fontSize:16,fontWeight:500,py:1.5,children:[t,". ",l("pages.document_detail.tabs.blockchain.signedText")]}),"document.certificate"==e.type&&(0,s.jsxs)(Z.Z,{sx:{minWidth:"250px"},fontSize:16,fontWeight:500,py:1.5,children:[t,"."," ",l("pages.document_detail.tabs.blockchain.conservationText")]}),(0,s.jsxs)(p.Z,{direction:"row",spacing:2,alignItems:"center",children:[(0,s.jsx)(eY.Z,{size:"sm",name:e.name}),(0,s.jsxs)(p.Z,{children:[(0,s.jsx)(Z.Z,{fontSize:14,fontWeight:600,children:e.name}),(0,s.jsx)(Z.Z,{fontSize:14,color:"#767699",children:c(e.nft_txid_created_at)})]})]}),(0,s.jsxs)(p.Z,{direction:"row",spacing:2,ml:6,py:1,alignItems:"center",children:[(0,s.jsx)(p.Z,{sx:{width:"28px",height:"28px",background:"linear-gradient(71.74deg, rgba(41, 178, 255, 0.3) -2.45%, rgba(19, 56, 255, 0.3) 100%)",borderRadius:"50%",padding:"2px"},children:(0,s.jsx)(eX.Z,{sx:{fill:"#fff"}})}),(0,s.jsxs)(p.Z,{children:[(0,s.jsx)(Z.Z,{fontSize:12,fontWeight:600,children:"Versi\xf3n del documento"}),(0,s.jsx)(Z.Z,{fontSize:12,color:"#767699",sx:{whiteSpace:"normal",overflowWrap:"anywhere"},children:e.ipfs_hash})]})]}),(0,s.jsxs)(p.Z,{direction:"row",spacing:2,ml:6,py:1,alignItems:"center",children:[(0,s.jsx)(p.Z,{sx:{width:"28px",height:"28px",background:"linear-gradient(71.74deg, rgba(41, 178, 255, 0.3) -2.45%, rgba(19, 56, 255, 0.3) 100%)",borderRadius:"50%",padding:"2px"},children:(0,s.jsx)(eJ.Z,{sx:{fill:"#fff",outlineColor:"#000"}})}),(0,s.jsxs)(p.Z,{children:[(0,s.jsx)(Z.Z,{fontSize:12,fontWeight:600,children:"Hash del documento:"}),(0,s.jsx)(Z.Z,{fontSize:12,color:"#767699",sx:{whiteSpace:"normal",overflowWrap:"anywhere"},children:e.nft_txid})]})]})]})),(0,s.jsx)(g.Z,{sx:{my:2,borderColor:"#D3E2F7"}})]})},e1=function(e){var t,n,i,a;let{documentInfo:o}=e,{t:r}=(0,m.$G)();return(0,s.jsxs)(C.Z,{sx:{px:4,pt:3},children:[(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",children:[(0,s.jsxs)(Z.Z,{sx:{minWidth:"250px"},children:[r("pages.document_detail.tabs.info.file_name"),":"]}),(0,s.jsx)(Z.Z,{fontSize:14,fontWeight:600,children:null==o?void 0:o.name})]}),(0,s.jsx)(g.Z,{sx:{my:2,borderColor:"#D3E2F7"}}),(null==o?void 0:o.size)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",children:[(0,s.jsxs)(Z.Z,{sx:{minWidth:"250px"},children:[r("pages.document_detail.tabs.info.size"),":"]}),(0,s.jsx)(Z.Z,{fontSize:14,fontWeight:600,children:(null==o?void 0:o.size)&&"".concat(null==o?void 0:o.size," kb")})]}),(0,s.jsx)(g.Z,{sx:{my:2,borderColor:"#D3E2F7"}})]}),(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",children:[(0,s.jsxs)(Z.Z,{sx:{minWidth:"250px"},children:[r("pages.document_detail.tabs.info.type"),":"]}),(0,s.jsx)(Z.Z,{fontSize:14,fontWeight:600,children:null==o?void 0:null===(t=o.organization_document)||void 0===t?void 0:t.name})]}),(0,s.jsx)(g.Z,{sx:{my:2,borderColor:"#D3E2F7"}}),(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",children:[(0,s.jsxs)(Z.Z,{sx:{minWidth:"250px"},children:[r("pages.document_detail.tabs.info.uploaded_by"),":"]}),(0,s.jsxs)(p.Z,{direction:"row",spacing:2,alignItems:"center",children:[(0,s.jsx)(eY.Z,{size:"sm",name:(null==o?void 0:null===(n=o.user)||void 0===n?void 0:n.name)||""}),(0,s.jsxs)(p.Z,{children:[(0,s.jsx)(Z.Z,{fontSize:14,fontWeight:600,children:null==o?void 0:null===(i=o.user)||void 0===i?void 0:i.name}),(0,s.jsx)(Z.Z,{fontSize:14,color:"#767699",children:null==o?void 0:null===(a=o.user)||void 0===a?void 0:a.email})]})]})]}),(0,s.jsx)(g.Z,{sx:{my:2,borderColor:"#D3E2F7"}}),(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",children:[(0,s.jsxs)(Z.Z,{sx:{minWidth:"250px"},children:[r("pages.document_detail.tabs.info.uploaded_date"),":"]}),(0,s.jsx)(Z.Z,{fontSize:14,fontWeight:600,children:o&&(0,R.Z)(new Date(null==o?void 0:o.created_at),"dd MMM, yyyy")})]}),(0,s.jsx)(g.Z,{sx:{my:2,borderColor:"#D3E2F7"}})]})},e2=n(97182),e8=n(7002),e4=n(96689),e6=n(17952),e3=n(77069),e5=n(12119),e7=n(24022),e9=n(91927),te=n(73183);let tt={"Validaci\xf3n de la invitaci\xf3n":"invitationValidation","Inicio de sesi\xf3n del firmante":"login","Env\xedo del c\xf3digo de verificaci\xf3n":"verificationCodeRequest","Verificaci\xf3n del c\xf3digo recibido":"verificationCodeSuccess","Env\xedo de la encuesta del firmante":"signerSurvey","Obtener documentos con coordenadas":"documentViewWithCoordinates","Aprobar documento":"documentApproved","Rechazar documento":"documentRejected","Obtener documentos de la invitaci\xf3n":"signatureProcessDocumentsView","Identificaci\xf3n biom\xe9trica frontal v\xeda archivo":"biometricFrontIdentificationFile","Comparar similitud OCR del firmante":"ocrComparison","Identificaci\xf3n biom\xe9trica reversa v\xeda archivo":"biometricBackIdentificationFile","Selfie v\xeda archivo":"selfieCaptureFile","Verificaci\xf3n de vida (lifeproof) v\xeda archivo":"livenessTestFile","Reconocimiento de audio":"livenessTestAudio","Firma v\xeda archivo":"signedDocumentsFile","Enviar token para contrase\xf1a":"resetPasswordTokenReceived","Restablecer contrase\xf1a":"passwordRecovery","Identificaci\xf3n biom\xe9trica frontal con OCR":"biometricFrontIdentificationOCR","Identificaci\xf3n biom\xe9trica frontal":"biometricFrontIdentificationSuccess","Identificaci\xf3n biom\xe9trica reversa con OCR":"biometricBackIdentificationOCR","Identificaci\xf3n biom\xe9trica reversa":"biometricBackIdentificationSuccess",Selfie:"selfieCapture","Reconocimiento facial":"facialRecognitionSuccess","Identificaci\xf3n biom\xe9trica completa":"biometricIdentificationCompleted","Validaci\xf3n de INE":"ineValidated","Obtener documentos para eFirma":"eSignatureDocumentsCapture","Guardar firma":"saveSignatureDocuments","Guardar revisi\xf3n":"documentReviewed","Firmar documento":"documentSigned","Subir video para verificaci\xf3n de vida pasiva":"videoUploadPassiveLiveness","Creaci\xf3n de documento para firma":"documentCreationForSignature"};var tn=function(e){let{description:t}=e,n=function(e){let{t}=(0,m.$G)("translation",{keyPrefix:"pages.document_detail.tabs.history.events"}),n=tt[e];return n?t(n):e}(t);return(0,s.jsx)(Z.Z,{sx:{fontSize:14,fontWeight:600},children:n})},ti=function(e){let{logHistory:t}=e,{t:n,i18n:i}=(0,m.$G)("translation",{keyPrefix:"pages.document_detail.tabs.history"}),[a,o]=(0,l.useState)(Object.keys(t)[0]),r="d '".concat(n("of"),"' MMM, yyyy - HH:mm '").concat(n("hours"),"'"),c=e=>(t,n)=>{o(!!n&&e)};return(0,s.jsx)(s.Fragment,{children:Object.entries(t).map((e,t)=>{let[o,l]=e;return(0,s.jsxs)(e3.Z,{expanded:a===o,onChange:c(o),sx:{"&.MuiPaper-root":{boxShadow:"unset"}
1,"& .MuiAccordionSummary-content":{margin:"24px 0","&.Mui-expanded":{margin:"16px 0 20px 0"}}},children:[(0,s.jsx)(e7.Z,{expandIcon:(0,s.jsx)(e8.p,{size:20}),"aria-controls":"panel".concat(t,"-content"),id:"panel".concat(t,"-header"),children:(0,s.jsx)(Z.Z,{sx:{fontSize:16,fontWeight:500},children:(0,e9.f)(o)})}),(0,s.jsx)(e5.Z,{children:(0,s.jsx)(p.Z,{gap:"24px",children:l.map((e,t)=>(0,s.jsxs)(p.Z,{children:[(0,s.jsx)(tn,{description:e.descripcion}),(0,s.jsx)(Z.Z,{sx:{marginTop:"4px",fontSize:12,fontWeight:500,color:"text.secondary"},children:(0,R.Z)(new Date(e.fecha),r,{locale:function(){switch(i.language){case"en":return e4.Z;case"pt":return e6.Z;default:return A.Z}}()})}),(0,s.jsxs)(p.Z,{sx:{flexDirection:"row",alignItems:"center",gap:"12px",marginTop:"12px",marginLeft:"20px"},children:[(0,s.jsx)(eY.Z,{name:e.email[0],size:"xs"}),(0,s.jsxs)(p.Z,{children:[(0,s.jsx)(Z.Z,{sx:{fontSize:14,fontWeight:400},children:e.email}),(0,s.jsx)(Z.Z,{sx:{marginTop:"2px",fontSize:14,fontWeight:400,color:"text.secondary"},children:n("role.".concat((0,te.P2)(e.role)))})]})]})]},t))})})]},t)})})},ta=function(e){let{documentInfo:t}=e,{t:n}=(0,m.$G)(),[i,a]=(0,l.useState)(!1),[o,r]=(0,l.useState)(void 0),c=(0,l.useMemo)(()=>!o||!Object.entries(o).length,[o]),d=!c&&!i&&void 0!==o;return(0,l.useEffect)(()=>{if(null!==t){var e;e=t._id,a(!0),x.KB.getDocumentLogs(e).then(e=>{r(e.data)}).catch(e=>{console.error(e)}).then(()=>{a(!1)})}},[t]),(0,s.jsxs)(p.Z,{sx:{px:4,pt:3},children:[i&&(0,s.jsx)(C.Z,{sx:{display:"flex",justifyContent:"center",width:"100%"},children:(0,s.jsx)(e2.Z,{})}),!i&&c&&(0,s.jsx)(Z.Z,{sx:{fontSize:14,fontWeight:500,color:"text.secondary",textAlign:"center",mt:2},children:n("pages.document_detail.tabs.history.no_activity")}),d&&(0,s.jsx)(ti,{logHistory:o})]})},to=n(59898),tr=function(){let{t:e}=(0,m.$G)();return(0,s.jsxs)(p.Z,{sx:{px:4,pt:3},children:[(0,s.jsx)(p.Z,{sx:{border:"1px solid #D3E2F7",borderRadius:"4px",px:2,py:"12px"},children:(0,s.jsx)(Z.Z,{fontSize:14,sx:{color:"#767699",fontWeight:600},children:e("pages.document_detail.tabs.status.not_called")})}),(0,s.jsxs)(p.Z,{direction:"row",alignItems:"flex-start",sx:{width:"100%",background:"linear-gradient(to bottom, #F2F8FE, #ffffffba)",border:"1px solid #3D8AFF",borderRadius:"4px",mt:2,p:1,gap:1},children:[(0,s.jsx)(to.k,{size:20,color:"#3D8AFF"}),(0,s.jsx)(Z.Z,{fontSize:14,children:e("pages.document_detail.tabs.status.info_message")})]})]})},ts=n(51633),tl=n(27565),tc=n(77306),td=n(64615),tu=n(73355),tx=n(57470);let tp=(0,I.ZP)(e=>(0,s.jsx)(e3.Z,{disableGutters:!0,elevation:0,square:!0,...e}))(e=>{let{theme:t}=e;return{border:"1px solid #D3E2F7","&::before":{display:"none"}}}),tm=(0,I.ZP)(e=>(0,s.jsx)(e7.Z,{...e}))(e=>{let{theme:t}=e;return{backgroundColor:"light"===t.palette.mode?"#F6F8FA":"rgb(141,200,255, 0.04)","& .MuiAccordionSummary-content":{marginLeft:t.spacing(1)}}}),th=(0,I.ZP)(e5.Z)(e=>{let{theme:t}=e;return{padding:0,borderTop:"1px solid #D3E2F7"}});var tg=n(10190),tf=n(29346),tZ=n(95639),tj=n(62736),tb=function(e){let{open:t,onClose:n,onUpdate:i,allParticipants:a,participant:o}=e,[r,c]=(0,l.useState)((null==o?void 0:o.fullname)||""),[d,u]=(0,l.useState)((null==o?void 0:o._id)||""),[h,j]=(0,l.useState)((null==o?void 0:o.email)||""),[b,v]=(0,l.useState)((null==o?void 0:o.phone)||""),[_,y]=(0,l.useState)((null==o?void 0:o.role)||"Firmante"),[w,E]=(0,l.useState)(a),[S,M]=(0,l.useState)((null==o?void 0:o.sign_order)||1),[z,I]=(0,l.useState)(!1),{t:V}=(0,m.$G)();return(0,l.useEffect)(()=>{c((null==o?void 0:o.fullname)||""),u((null==o?void 0:o._id)||""),j((null==o?void 0:o.email)||""),y((null==o?void 0:o.role)||""),M((null==o?void 0:o.sign_order)||1),E(a)},[o,a]),(0,s.jsx)(tg.Z,{open:t,onClose:n,children:(0,s.jsxs)(C.Z,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",bgcolor:"white",borderRadius:"8px",boxShadow:24,minWidth:850,maxWidth:900},children:[(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{bgcolor:"#F4F8FF",p:2,borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},children:[(0,s.jsxs)(p.Z,{direction:"row",spacing:2,alignItems:"center",children:[(0,s.jsx)(L(),{src:"/assets/icons/user-green-32.svg",alt:"Participants",width:32,height:32}),(0,s.jsx)(Z.Z,{fontSize:18,fontWeight:600,children:V("pages.document_detail.tabs.status.edit.edit_participant")})]}),(0,s.jsx)(f.Z,{onClick:n,children:(0,s.jsx)(tZ.Z,{})})]}),(0,s.jsxs)(C.Z,{sx:{p:3},children:[(0,s.jsxs)(C.Z,{sx:{borderLeft:"6px solid #FFB74D",borderRadius:"3px"},children:[(0,s.jsxs)(p.Z,{direction:"row",spacing:2,alignItems:"center",padding:"12px",paddingLeft:"18px",sx:{border:"1px solid #D3E2F7",borderRadius:"3px"},children:[(0,s.jsx)(ed.Z,{value:"".concat(V("pages.document_detail.tabs.status.edit.participant")," ").concat(S),InputProps:{readOnly:!0,sx:{bgcolor:"#F8F9FC",width:"270px"}}}),(0,s.jsx)(eI.Z,{sx:{width:"130px"}
1,children:(0,s.jsxs)(tf.Z,{value:_,onChange:e=>y(e.target.value),displayEmpty:!0,children:[(0,s.jsx)(ej.Z,{value:tj._.signer,children:V("pages.document_detail.tabs.status.edit.role.signer")}),(0,s.jsx)(ej.Z,{value:tj._.reviewer,children:V("pages.document_detail.tabs.status.edit.role.reviewer")}),(0,s.jsx)(ej.Z,{value:tj._.observer,children:V("pages.document_detail.tabs.status.edit.role.observer")})]})}),(0,s.jsx)(eV.Z,{control:(0,s.jsx)(er.Z,{checked:z,onChange:e=>I(e.target.checked)}),label:V("pages.document_detail.tabs.status.edit.end_page")})]}),(0,s.jsx)(p.Z,{padding:"12px",paddingLeft:"18px",sx:{border:"1px solid #D3E2F7",borderRadius:"3px"},children:(0,s.jsxs)(p.Z,{direction:"row",spacing:2,mt:3,children:[(0,s.jsxs)(p.Z,{width:"50%",children:[(0,s.jsx)(Z.Z,{children:V("pages.document_detail.tabs.status.edit.fullname")}),(0,s.jsx)(ed.Z,{fullWidth:!0,required:!0,variant:"outlined",value:r,onChange:e=>c(e.target.value),sx:{paddingY:"5px","& label":{fontWeight:600,color:"#1A1A1A"},"& label.Mui-focused":{color:"#1A1A1A"}}})]}),(0,s.jsxs)(p.Z,{width:"50%",children:[(0,s.jsx)(Z.Z,{children:V("pages.document_detail.tabs.status.edit.email")}),(0,s.jsx)(ed.Z,{fullWidth:!0,value:h,onChange:e=>j(e.target.value),sx:{paddingY:"5px","& label":{fontWeight:600,color:"#1A1A1A"},"& label.Mui-focused":{color:"#1A1A1A"}}})]})]})})]}),(0,s.jsxs)(p.Z,{direction:"row",justifyContent:"end",mt:4,children:[(0,s.jsx)(g.Z,{}),(0,s.jsx)(F.Z,{onClick:n,sx:{color:"#3D8AFF"},children:V("pages.document_detail.tabs.status.edit.buttons.back")}),(0,s.jsx)(F.Z,{onClick:()=>{if(a.some(e=>e.email===h&&e._id!==d)){J.Z.error(V("pages.document_detail.tabs.status.edit.duplicate_email"));return}x.QM.updateSigner(d,r,h).then(e=>{let{data:t}=e;i({...o,_id:d,fullname:r,email:h,role:_,sign_order:S,phone:b,created_at:(null==o?void 0:o.created_at)||"",status:(null==o?void 0:o.status)||"",updated_at:(null==o?void 0:o.updated_at)||"",signature_created_at:(null==o?void 0:o.signature_created_at)||0}),n(),J.Z.success(V("pages.document_detail.tabs.status.edit.success"))}).catch(e=>{J.Z.error(V("pages.document_detail.tabs.status.edit.error"))})},variant:"contained",sx:{bgcolor:"linear-gradient(to right, #3D8AFF, #0056D2)",color:"white"},children:V("pages.document_detail.tabs.status.edit.buttons.save")})]})]})]})})},tv=n(71098),t_=function(e){let{open:t,onClose:n,onConfirm:i,participantName:a}=e,{t:o}=(0,m.$G)();return(0,s.jsx)(tg.Z,{open:t,onClose:n,children:(0,s.jsxs)(C.Z,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",bgcolor:"white",borderRadius:"8px",boxShadow:24,minWidth:380,maxWidth:400,p:0},children:[(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{bgcolor:"#F4F8FF",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",p:2},children:[(0,s.jsxs)(p.Z,{direction:"row",spacing:2,alignItems:"center",children:[(0,s.jsx)(L(),{src:"/assets/icons/warning-red.svg",alt:"Participants",width:32,height:32}),(0,s.jsx)(Z.Z,{fontSize:18,fontWeight:600,children:"Eliminar participante"})]}),(0,s.jsx)(f.Z,{onClick:n,children:(0,s.jsx)(tZ.Z,{})})]}),(0,s.jsxs)(p.Z,{p:2,mb:4,children:[(0,s.jsxs)(Z.Z,{fontSize:16,mt:3,mb:2,children:[o("pages.document_detail.tabs.status.delete.delete_from_process_q1")," ",(0,s.jsx)("strong",{children:a})," ",o("pages.document_detail.tabs.status.delete.delete_from_process_q2")]}),(0,s.jsx)(Z.Z,{fontSize:14,children:o("pages.document_detail.tabs.status.delete.cannot_undo")})]}),(0,s.jsx)(g.Z,{}),(0,s.jsxs)(p.Z,{direction:"row",justifyContent:"flex-end",spacing:2,p:2,children:[(0,s.jsx)(F.Z,{onClick:n,sx:{color:"#3D8AFF"},children:o("pages.document_detail.tabs.status.delete.cancel")}),(0,s.jsx)(F.Z,{onClick:i,sx:{bgcolor:"#E1145E",color:"white","&:hover":{bgcolor:"#E1145E"}},children:o("pages.document_detail.tabs.status.delete.delete_participant")})]})]})})},ty=n(51455),tw=n(20370);let tE={confirmed:"success",signed:"info",pending:"info",deleted:"error"};var tS=function(e){var t,n,i;let{documentInfo:a}=e,[o,r]=(0,l.useState)(e.participants),{t:c}=(0,m.$G)(),d=(null==a?void 0:a.rejected)===!0,u=null==a?void 0:a.signers.find(e=>!0===e.reject),[h,g]=(0,l.useState)(null),[j,b]=(0,l.useState)(null),v=!!h,[_,y]=(0,l.useState)(!1),[w,E]=(0,l.useState)(null),[S,F]=(0,l.useState)(!1),[M,z]=(0,l.useState)(null),I=e=>{x.QM.postReminder(e._id).then(e=>{let{data:t}=e;J.Z.success(c("pages.document_detail.toasts.reminder_sent"))}).catch(e=>{J.Z.error(c("pages.document_detail.toasts.reminder_fail"))})},V=e=>{let t="".concat("https://sign.legalario.com","/invitation/").concat(e._id);navigator.clipboard.writeText(t).then(()=>{J.Z.success(c("pages.document_detail.toasts.link_copied"))}).catch(e=>{J.Z.error("Error al copiar el enlace")})},H=e=>{z(e),F(!0)},k=()=>{F(!1),z(null)},W=e=>{E(e),y(!0)},A=(e,t)=>
1{g(e.currentTarget),b(t)},D=()=>{g(null),b(null)};function P(e,t){let n=t;if(t===tw.w.CONFIRMED)switch(e){case ty.V.SIGNER:n=tw.w.CONFIRMED;break;case ty.V.REVIEWER:n=tw.w.REVIEWED;break;case ty.V.OBSERVER:n=tw.w.VIEWED}return c("pages.document_detail.tabs.status.statuses.".concat(n))}return(0,l.useEffect)(()=>{r(e.participants)},[e.participants]),(0,s.jsxs)(p.Z,{sx:{px:4,pt:3},children:[(0,s.jsxs)(p.Z,{sx:{border:"1px solid #D3E2F7",borderRadius:"4px",p:2},children:[(0,s.jsx)(p.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",mb:2,children:(0,s.jsxs)(C.Z,{children:[(0,s.jsx)(Z.Z,{fontSize:14,color:"text.secondary",children:c("pages.document_detail.tabs.status.called_in")}),(0,s.jsx)(Z.Z,{fontSize:14,fontWeight:600,children:(null==a?void 0:a.created_at)&&(0,R.Z)(new Date(null==a?void 0:a.created_at),"dd MMM, yyyy")})]})}),d&&u?(0,s.jsx)(tx.Z,{rejectionDate:u.terms_reject_at,rejectionReason:a.terms_rejected||""}):(0,s.jsx)(td.Z,{value:(null===(t=o.firmante)||void 0===t?void 0:t.confirmedCount)||0,max:(null===(i=o.firmante)||void 0===i?void 0:null===(n=i.people)||void 0===n?void 0:n.length)||0,text:c("pages.document_detail.tabs.status.signs"),isMonochrome:!0,sx:{width:"100%",color:"text.secondary"}})]}),Object.keys(o).map(e=>{var t,n,i,a,r,l,x,m;return(0,s.jsxs)(tp,{sx:{mt:1},children:[(0,s.jsxs)(tm,{expandIcon:(0,s.jsx)(e8.p,{}),children:[(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",spacing:2,children:[(0,s.jsx)(Z.Z,{fontWeight:500,fontSize:14,children:c("pages.document_detail.tabs.status.roles.".concat(e))}),(0,s.jsx)(tu.Z,{sx:{bgcolor:"#E0E0E0"},label:"".concat(null===(t=o[e])||void 0===t?void 0:t.confirmedCount," / ").concat(null===(i=o[e])||void 0===i?void 0:null===(n=i.people)||void 0===n?void 0:n.length)})]}),(null===(a=o[e])||void 0===a?void 0:a.confirmedCount)!==(null===(l=o[e])||void 0===l?void 0:null===(r=l.people)||void 0===r?void 0:r.length)&&(0,s.jsx)(Z.Z,{fontSize:12,sx:{ml:"auto",mr:1,color:d?"#bebed3":"#3D8AFF",textDecoration:"underline",cursor:d?"default":"pointer"},children:c("pages.document_detail.tabs.status.remind_pending_users")})]}),(0,s.jsx)(th,{children:null===(m=o[e])||void 0===m?void 0:null===(x=m.people)||void 0===x?void 0:x.map(e=>(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:{p:2,borderBottom:"1px solid #D3E2F7","&:last-child":{borderBottom:0}},children:[(0,s.jsxs)(p.Z,{direction:"row",spacing:2,alignItems:"center",children:[(0,s.jsx)(eY.Z,{name:e.fullname,size:"sm"}),(0,s.jsxs)(p.Z,{children:[(0,s.jsx)(Z.Z,{fontSize:14,fontWeight:600,children:e.fullname}),(0,s.jsx)(Z.Z,{fontSize:14,color:"#767699",children:e.email})]})]}),(0,s.jsxs)(p.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,s.jsx)(tv.Z,{person:e,isDocumentRejected:d,rejectingSigner:u,statusToTypeMap:tE,getStatusLabel:P}),e.status===tw.w.PENDING&&!d&&(0,s.jsx)(f.Z,{onClick:t=>A(t,e),children:(0,s.jsx)(tc.Z,{})})]}),e.status===tw.w.PENDING&&(0,s.jsxs)(eZ.Z,{anchorEl:h,open:v,onClose:D,children:[(0,s.jsxs)(ej.Z,{onClick:()=>{I(j),D()},children:[(0,s.jsx)(ts.u,{size:20,color:"#767699"}),(0,s.jsx)(Z.Z,{pl:1,children:c("pages.document_detail.tabs.status.menu.reminder")})]}),(0,s.jsxs)(ej.Z,{onClick:()=>{V(j),D()},children:[(0,s.jsx)(tl.C,{size:20,color:"#767699"}),(0,s.jsx)(Z.Z,{pl:1,children:c("pages.document_detail.tabs.status.menu.copy_signature_link")})]}),(0,s.jsxs)(ej.Z,{onClick:()=>{W(j),D()},children:[(0,s.jsx)(eS.G,{size:20,color:"#767699"}),(0,s.jsx)(Z.Z,{pl:1,children:c("pages.document_detail.tabs.status.menu.edit")})]}),(0,s.jsxs)(ej.Z,{onClick:()=>{H(j),D()},sx:{color:"#E1145E"},children:[(0,s.jsx)(T.r,{size:20,color:"#E1145E"}),(0,s.jsx)(Z.Z,{pl:1,children:c("pages.document_detail.tabs.status.menu.delete")})]})]})]},e._id))})]},e)}),(0,s.jsx)(tb,{open:_,onClose:()=>{y(!1),E(null)},allParticipants:Object.values(o).flatMap(e=>(null==e?void 0:e.people)||[]),participant:w,onUpdate:e=>{r(t=>{let n={...t};for(let t in n){let i=n[t];if(i){let t=i.people.findIndex(t=>t._id===e._id);if(-1!==t)return i.people[t]=e,{...n}}}return t})}}),(0,s.jsx)(t_,{open:S,onClose:k,onConfirm:()=>{x.QM.deleteSigner(M._id).then(e=>{let{data:t}=e;J.Z.success(c("pages.document_detail.tabs.status.delete.user_deleted")),r(e=>{let t={...e};for(let e in t){let n=t[e];n&&(n.people=n.people.filter(e=>e._id!==(null==M?void 0:M._id)),n.confirmedCount=n.people.filter(e=>
1e.status===tw.w.CONFIRMED).length,n.pendingCount=n.people.filter(e=>e.status===tw.w.PENDING).length)}return t})}).catch(e=>{J.Z.error(c("pages.document_detail.tabs.status.delete.cannot_delete"))}),k()},participantName:(null==M?void 0:M.fullname)||""})]})},tC=function(e){let{documentInfo:t,participants:n}=e,[i,a]=(0,l.useState)(null),[o,r]=(0,l.useState)(!0);return((0,l.useEffect)(()=>{a(n.reduce((e,t)=>{let n="sign_order"in t&&"next_to_sign"in t?"firmante":t.role.toLowerCase();return n&&(e[n]||(e[n]={people:[],confirmedCount:0,pendingCount:0}),e[n].people.push(t),"confirmed"===t.status?e[n].confirmedCount+=1:e[n].pendingCount+=1),e},{})),r(!1)},[n]),o)?null:i&&(null==t?void 0:t.ready_to_sign)?(0,s.jsx)(tS,{participants:i,documentInfo:t}):(0,s.jsx)(tr,{})};function tF(e){var t;let{documentInfo:n,activityLogs:i,participants:a,value:o,onChange:r}=e,l=null==n?void 0:null===(t=n.Blockchain)||void 0===t?void 0:t.blockchain.length,{t:c}=(0,m.$G)(),d=[{name:c("pages.document_detail.tabs.status.title")},{name:c("pages.document_detail.tabs.history.title")},{name:c("pages.document_detail.tabs.info.title")}];return l&&d.push({name:c("pages.document_detail.tabs.blockchain.title")}),(0,s.jsx)(p.Z,{sx:{borderLeft:"1px solid #E3EBF2",height:"100%",overflowY:"auto"},children:(0,s.jsxs)(z.ZP,{value:o,children:[(0,s.jsx)(C.Z,{sx:{borderBottom:1,borderColor:"#D3E2F7",pl:4,height:"48px"},children:(0,s.jsx)(eU,{onChange:r,"aria-label":"lab API tabs example",children:d.map((e,t)=>(0,s.jsx)(M.Z,{label:e.name,disableRipple:!0,value:"".concat(t+1)},t))})}),(0,s.jsx)(eQ,{value:"1",children:(0,s.jsx)(tC,{documentInfo:n,participants:a})}),(0,s.jsx)(eQ,{value:"2",children:(0,s.jsx)(ta,{documentInfo:n})}),(0,s.jsx)(eQ,{value:"3",children:(0,s.jsx)(e1,{documentInfo:n})}),l&&(0,s.jsx)(eQ,{value:"4",children:(0,s.jsx)(e0,{documentInfo:n})})]})})}var tM=n(84137),tz=function(e){let{id:t,documents:n,envelopeData:i,onDocumentChange:a}=e,[o,r]=(0,l.useState)(),[c,d]=(0,l.useState)(),[u,m]=(0,l.useState)([]),[h,g]=(0,l.useState)([]),[f,Z]=(0,l.useState)("1");return((0,l.useEffect)(()=>{t&&(function(e){x.KB.getDocumentDetails(e).then(e=>{let{data:t}=e;d(t.file_path),r(t)}).catch(e=>{console.error(e)})}(t),function(e){x.ET.getActivityLogs({objetableId:e}).then(e=>{m(e.data)}).catch(e=>{console.error(e)})}(t),function(e){x.QM.getSigners({documentId:e}).then(e=>{g(e.data)}).catch(e=>{console.error(e)})}(t))},[t]),o&&c)?(0,s.jsxs)(p.Z,{sx:{height:"100%",maxWidth:"100vw"},children:[(0,s.jsx)(w,{envelopeData:i,documentInfo:o}),(0,s.jsxs)(p.Z,{direction:"row",sx:{width:"100%",height:"calc(100% - 64px)",boxSizing:"border-box"},children:[(0,s.jsx)(p.Z,{sx:{flex:1,height:"100%"},children:(0,s.jsx)(eq,{id:t,documentUrl:c,onDocumentChange:a,documents:n})}),(0,s.jsx)(p.Z,{sx:{width:"545px",height:"100%",display:{xs:"none",lg:"flex"}},children:(0,s.jsx)(tF,{documentInfo:o,activityLogs:u,participants:h,value:f,onChange:(e,t)=>
1Z(t)})})]})]}):(0,s.jsx)(tM.Z,{open:!0})},tI=n(33034),tV=function(e){let{hasOnlyPromissoryNotes:t,onBack:n,onGoToPromissoryNotes:i}=e,{t:a}=(0,m.$G)("translation",{keyPrefix:"pages.documents.envelope_detail.empty_state"}),o=a(t?"promissory_notes_title":"no_documents_title"),r=a(t?"promissory_notes_description":"no_documents_description");return(0,s.jsxs)(C.Z,{sx:{minHeight:"100dvh",display:"flex",alignItems:"center",justifyContent:"center",p:2,boxSizing:"border-box"},children:[(0,s.jsx)(tI.Z,{title:a("back"),children:(0,s.jsx)(f.Z,{"aria-label":a("back"),onClick:n,sx:{position:"fixed",top:24,right:24,color:"text.primary",bgcolor:"background.paper",border:"1px solid",borderColor:"divider","&:hover":{bgcolor:"action.hover"}},children:(0,s.jsx)(h.X,{size:24})})}),(0,s.jsx)(C.Z,{sx:{width:"calc(100% - 32px)",maxWidth:480,mx:"auto",px:{xs:3,sm:5},py:4,bgcolor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:2,boxShadow:"0 12px 32px rgba(27, 27, 85, 0.12)",boxSizing:"border-box"},children:(0,s.jsxs)(p.Z,{alignItems:"center",spacing:2,textAlign:"center",children:[(0,s.jsx)(L(),{src:"/assets/images/empty-envelope.svg",alt:a("image_alt"),width:135,height:105}),(0,s.jsx)(Z.Z,{variant:"h5",fontWeight:600,children:o}),(0,s.jsx)(Z.Z,{color:"text.secondary",children:r}),(0,s.jsxs)(p.Z,{direction:{xs:"column",sm:"row"},justifyContent:"center",spacing:2,sx:{width:"100%",pt:1},children:[(0,s.jsx)(F.Z,{variant:t?"outlined":"contained",onClick:n,children:a("back")}),t&&(0,s.jsx)(F.Z,{variant:"contained",onClick:i,children:a("go_to_promissory_notes")})]})]})})]})},tH=function(e){let{onBack:t,onRetry:n}=e,{t:i}=(0,m.$G)("translation",{keyPrefix:"pages.documents.envelope_detail.load_error"});return(0,s.jsx)(C.Z,{sx:{minHeight:"100dvh",display:"flex",alignItems:"center",justifyContent:"center",p:2,boxSizing:"border-box"},children:(0,s.jsx)(C.Z,{sx:{width:"100%",maxWidth:480,px:{xs:3,sm:5},py:4,bgcolor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:2,boxShadow:"0 12px 32px rgba(27, 27, 85, 0.12)",boxSizing:"border-box"},children:(0,s.jsxs)(p.Z,{alignItems:"center",spacing:2,textAlign:"center",children:[(0,s.jsx)(Z.Z,{variant:"h5",fontWeight:600,children:i("title")}),(0,s.jsx)(Z.Z,{color:"text.secondary",children:i("description")}),(0,s.jsxs)(p.Z,{direction:{xs:"column",sm:"row"},justifyContent:"center",spacing:2,sx:{width:"100%",pt:1},children:[(0,s.jsx)(F.Z,{variant:"outlined",onClick:t,children:i("back")}),(0,s.jsx)(F.Z,{variant:"contained",onClick:n,children:i("retry")})]})]})})})},tk=n(20641);function tW(){let e=(0,c.useRouter)(),t="string"==typeof e.query.id?e.query.id:"",[n,i]=(0,l.useState)(!0),[a,o]=(0,l.useState)(!0),[r,d]=(0,l.useState)(""),[p,m]=(0,l.useState)([]),[h,g]=(0,l.useState)(),[f,Z]=(0,l.useState)(!1),[j,b]=(0,l.useState)(!1);function v(e){i(!0),g(void 0),x.yz.getEnvelope(e).then(e=>{g(e)}).catch(e=>{console.error(e),Z(!0)}).finally(()=>{i(!1)})}function _(e){o(!0),b(!1),m([]),x.yz.getEnvelopeConfig(e).then(e=>{let t=e.config_temp.documents,n=t.filter(e=>!0!==e.is_promissory_note);if(b(t.length>0&&0===n.length),n.length){let[e]=n;d(e.document_id),m(n)}else m([])}).catch(e=>{console.error(e),Z(!0)}).finally(()=>{o(!1)})}return((0,l.useEffect)(()=>{t&&(Z(!1),v(t),_(t))},[t]),n||a)?(0,s.jsx)(tk.Z,{}):f||!h?(0,s.jsx)(tH,{onBack:()=>e.replace("/documents?documentType=envelopes"),onRetry:function(){t&&(Z(!1),v(t),_(t))}}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u(),{children:(0,s.jsx)("title",{children:"Legalario"})}),p.length>0?(0,s.jsx)(tz,{id:r,documents:p,envelopeData:h,onDocumentChange:function(e){d(e)}}):(0,s.jsx)(tV,{hasOnlyPromissoryNotes:j,onBack:()=>e.replace("/documents?documentType=envelopes"),onGoToPromissoryNotes:()=>e.replace("/documents/promissory-notes")})]})}tW.getLayout=e=>e;var tA=tW},86344:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});let i={DOCUMENTS:"/documents",WEBHOOK:"/settings/webhook"}},91927:function(e,t,n){"use strict";function i(e){return"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1).toLowerCase())}n.d(t,{f:function(){return i}})},93414:function(){},70172:function(){},2001:function(){},33779:function(){},82258:function(){},88468:function(e,t,n){"use strict";n.d(t,{R:function(){return s},y:function(){return r}});var i=n(67294),a=n(27589);let o=new Map([["bold",i.createElement(i.Fragment,null,i.createElement("path",{d:"M208,28H188V24a12,12,0,0,0-24,0v4H92V24a12,12,0,0,0-24,0v4H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V48A20,20,0,0,0,208,28ZM68,52a12,12,0,0,0,24,0h72a12,12,0,0,0,24,0h16V76H52V52ZM52,204V100H204V204Z"}))],["duotone",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,48V88H40V48a8,8,0,0,1,8-8H208A8,8,0,0,1,216,48Z",opacity:"0.2"}),i.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"}))],["fill",i.createElement(i.Fragment,null,i.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,48H48V48H72v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24Z"}))],["light",i.createElement(i.Fragment,null,i.createElement("path",{d:"M208,34H182V24a6,6,0,0,0-12,0V34H86V24a6,6,0,0,0-12,0V34H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V48A14,14,0,0,0,208,34ZM48,46H74V56a6,6,0,0,0,12,0V46h84V56a6,6,0,0,0,12,0V46h26a2,2,0,0,1,2,2V82H46V48A2,2,0,0,1,48,46ZM208,210H48a2,2,0,0,1-2-2V94H210V208A2,2,0,0,1,208,210Z"}))],["regular",i.createElement(i.Fragment,null,i.createElement("path",{d:"M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"}))],["thin",i.createElement(i.Fragment,null,i.createElement("path",{d:"M208,36H180V24a4,4,0,0,0-8,0V36H84V24a4,4,0,0,0-8,0V36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V48A12,12,0,0,0,208,36ZM48,44H76V56a4,4,0,0,0,8,0V44h88V56a4,4,0,0,0,8,0V44h28a4,4,0,0,1,4,4V84H44V48A4,4,0,0,1,48,44ZM208,212H48a4,4,0,0,1-4-4V92H212V208A4,4,0,0,1,208,212Z"}))]]),r=i.forwardRef((e,t)=>
1i.createElement(a.Z,{ref:t,...e,weights:o}));r.displayName="CalendarBlankIcon";let s=r},61941:function(e,t,n){"use strict";n.d(t,{W:function(){return s},B:function(){return r}});var i=n(67294),a=n(27589);let o=new Map([["bold",i.createElement(i.Fragment,null,i.createElement("path",{d:"M168.49,199.51a12,12,0,0,1-17,17l-80-80a12,12,0,0,1,0-17l80-80a12,12,0,0,1,17,17L97,128Z"}))],["duotone",i.createElement(i.Fragment,null,i.createElement("path",{d:"M160,48V208L80,128Z",opacity:"0.2"}),i.createElement("path",{d:"M163.06,40.61a8,8,0,0,0-8.72,1.73l-80,80a8,8,0,0,0,0,11.32l80,80A8,8,0,0,0,168,208V48A8,8,0,0,0,163.06,40.61ZM152,188.69,91.31,128,152,67.31Z"}))],["fill",i.createElement(i.Fragment,null,i.createElement("path",{d:"M168,48V208a8,8,0,0,1-13.66,5.66l-80-80a8,8,0,0,1,0-11.32l80-80A8,8,0,0,1,168,48Z"}))],["light",i.createElement(i.Fragment,null,i.createElement("path",{d:"M164.24,203.76a6,6,0,1,1-8.48,8.48l-80-80a6,6,0,0,1,0-8.48l80-80a6,6,0,0,1,8.48,8.48L88.49,128Z"}))],["regular",i.createElement(i.Fragment,null,i.createElement("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"}))],["thin",i.createElement(i.Fragment,null,i.createElement("path",{d:"M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z"}))]]),r=i.forwardRef((e,t)=>i.createElement(a.Z,{ref:t,...e,weights:o}));r.displayName="CaretLeftIcon";let s=r},27565:function(e,t,n){"use strict";n.d(t,{C:function(){return s},T:function(){return r}});var i=n(67294),a=n(27589);let o=new Map([["bold",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z"}))],["duotone",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,40V168H168V88H88V40Z",opacity:"0.2"}),i.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["fill",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["light",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z"}))],["regular",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"}))],["thin",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z"}))]]),r=i.forwardRef((e,t)=>i.createElement(a.Z,{ref:t,...e,weights:o}));r.displayName="CopyIcon";let s=r},92141:function(e,t,n){"use strict";n.d(t,{M:function(){return s},V:function(){return r}});var i=n(67294),a=n(27589);let o=new Map([["bold",i.createElement(i.Fragment,null,i.createElement("path",{d:"M228,144v64a12,12,0,0,1-12,12H40a12,12,0,0,1-12-12V144a12,12,0,0,1,24,0v52H204V144a12,12,0,0,1,24,0Zm-108.49,8.49a12,12,0,0,0,17,0l40-40a12,12,0,0,0-17-17L140,115V32a12,12,0,0,0-24,0v83L96.49,95.51a12,12,0,0,0-17,17Z"}))],["duotone",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,48V208H40V48A16,16,0,0,1,56,32H200A16,16,0,0,1,216,48Z",opacity:"0.2"}),i.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["fill",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,168,96H136V32a8,8,0,0,0-16,0V96H88a8,8,0,0,0-5.66,13.66Z"}))],["light",i.createElement(i.Fragment,null,i.createElement("path",{d:"M222,144v64a6,6,0,0,1-6,6H40a6,6,0,0,1-6-6V144a6,6,0,0,1,12,0v58H210V144a6,6,0,0,1,12,0Zm-98.24,4.24a6,6,0,0,0,8.48,0l40-40a6,6,0,0,0-8.48-8.48L134,129.51V32a6,6,0,0,0-12,0v97.51L92.24,99.76a6,6,0,0,0-8.48,8.48Z"}))],["regular",i.createElement(i.Fragment,null,i.createElement("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"}))],["thin",i.createElement(i.Fragment,null,i.createElement("path",{d:"M220,144v64a4,4,0,0,1-4,4H40a4,4,0,0,1-4-4V144a4,4,0,0,1,8,0v60H212V144a4,4,0,0,1,8,0Zm-94.83,2.83a4,4,0,0,0,5.66,0l40-40a4,4,0,1,0-5.66-5.66L132,134.34V32a4,4,0,0,0-8,0V134.34L90.83,101.17a4,4,0,0,0-5.66,5.66Z"}))]]),r=i.forwardRef((e,t)=>
1i.createElement(a.Z,{ref:t,...e,weights:o}));r.displayName="DownloadSimpleIcon";let s=r},51633:function(e,t,n){"use strict";n.d(t,{u:function(){return s}});var i=n(67294),a=n(27589);let o=new Map([["bold",i.createElement(i.Fragment,null,i.createElement("path",{d:"M233.86,110.48,65.8,14.58A20,20,0,0,0,37.15,38.64L67.33,128,37.15,217.36A20,20,0,0,0,56,244a20.1,20.1,0,0,0,9.81-2.58l.09-.06,168-96.07a20,20,0,0,0,0-34.81ZM63.19,215.26,88.61,140H144a12,12,0,0,0,0-24H88.61L63.18,40.72l152.76,87.17Z"}))],["duotone",i.createElement(i.Fragment,null,i.createElement("path",{d:"M227.91,134.86,59.93,231a8,8,0,0,1-11.44-9.67L80,128,48.49,34.72a8,8,0,0,1,11.44-9.67l168,95.85A8,8,0,0,1,227.91,134.86Z",opacity:"0.2"}),i.createElement("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"}))],["fill",i.createElement(i.Fragment,null,i.createElement("path",{d:"M240,127.89a16,16,0,0,1-8.18,14L63.9,237.9A16.15,16.15,0,0,1,56,240a16,16,0,0,1-15-21.33l27-79.95A4,4,0,0,1,71.72,136H144a8,8,0,0,0,8-8.53,8.19,8.19,0,0,0-8.26-7.47h-72a4,4,0,0,1-3.79-2.72l-27-79.94A16,16,0,0,1,63.84,18.07l168,95.89A16,16,0,0,1,240,127.89Z"}))],["light",i.createElement(i.Fragment,null,i.createElement("path",{d:"M230.88,115.69l-168-95.88a14,14,0,0,0-20,16.87L73.66,128,42.81,219.33A14,14,0,0,0,56,238a14.15,14.15,0,0,0,6.93-1.83L230.84,140.1a14,14,0,0,0,0-24.41Zm-5.95,14L57,225.73a2,2,0,0,1-2.86-2.42.42.42,0,0,0,0-.1L84.3,134H144a6,6,0,0,0,0-12H84.3L54.17,32.8a.3.3,0,0,0,0-.1,1.87,1.87,0,0,1,.6-2.2A1.85,1.85,0,0,1,57,30.25l168,95.89a1.93,1.93,0,0,1,1,1.74A2,2,0,0,1,224.93,129.66Z"}))],["regular",i.createElement(i.Fragment,null,i.createElement("path",{d:"M231.87,114l-168-95.89A16,16,0,0,0,40.92,37.34L71.55,128,40.92,218.67A16,16,0,0,0,56,240a16.15,16.15,0,0,0,7.93-2.1l167.92-96.05a16,16,0,0,0,.05-27.89ZM56,224a.56.56,0,0,0,0-.12L85.74,136H144a8,8,0,0,0,0-16H85.74L56.06,32.16A.46.46,0,0,0,56,32l168,95.83Z"}))],["thin",i.createElement(i.Fragment,null,i.createElement("path",{d:"M229.89,117.43l-168-95.88A12,12,0,0,0,44.7,36l31.08,92L44.71,220A12,12,0,0,0,56,236a12.13,12.13,0,0,0,5.93-1.57l167.94-96.08a12,12,0,0,0,0-20.92Zm-4,14L58,227.47a4,4,0,0,1-5.72-4.83l0-.07L82.87,132H144a4,4,0,0,0,0-8H82.87L52.26,33.37A3.89,3.89,0,0,1,53.44,29,4.13,4.13,0,0,1,56,28a3.88,3.88,0,0,1,1.93.54l168,95.87a4,4,0,0,1,0,7Z"}))]]),r=i.forwardRef((e,t)=>i.createElement(a.Z,{ref:t,...e,weights:o}));r.displayName="PaperPlaneRightIcon";let s=r}},function(e){e.O(0,[4577,7323,1423,9346,2575,2908,4324,3907,1472,3400,8018,8607,5555,4144,1505,4583,2169,9227,7824,977,7998,2888,9774,179],function(){return e(e.s=93197)}),_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.