PageSourceSearch

https://tcc.com.co/wp-content/themes/tcc_portal/dist/5982.1d964688633035106051.chunk.js

js tcc.com.co collected 2026-10-02 04:56:25 UTC 40,964 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkreactive_ditto=self.webpackChunkreactive_ditto||[]).push([[5982],{1085:function(e,a,o){var n=o(7469),s=o(741),r=function(e,a,o,n){return new(o||(o=Promise))((function(s,r){function t(e){try{i(n.next(e))}catch(e){r(e)}}function l(e){try{i(n.throw(e))}catch(e){r(e)}}function i(e){var a;e.done?s(e.value):(a=e.value,a instanceof o?a:new o((function(e){e(a)}))).then(t,l)}i((n=n.apply(e,a||[])).next())}))};const t={rastreoPublico(e){return r(this,void 0,void 0,(function*(){try{const a=s.p.consultarTrazabilidadRemesa.route,o=yield n.A.post(s.n+a,e),r=o.data.respuesta;return r&&("0"===r.codigo||0===r.codigo)&&o.data.remesas?o:new Error((null==r?void 0:r.mensaje)||"Error.")}catch(e){return console.error(e),new Error("Error de conexión")}}))},rastreoPublicoTest(e){return r(this,void 0,void 0,(function*(){try{const a=s.p.consultarTrazabilidadRemesaTest.route,o=yield n.A.post(s.n+a,e),r=o.data.respuesta;return!r||"0"!==r.codigo&&0!==r.codigo?new Error((null==r?void 0:r.mensaje)||"Error."):o}catch(e){return console.error(e),new Error("Error de conexión")}}))},NewRastreoRemesa(e,a){return r(this,void 0,void 0,(function*(){try{const o=a?s.p.newConsultarTrazabilidadRemesa.route:s.p.newConsultarTrazabilidadRemesaTest.route,r=yield n.A.post(s.n+o,e),t=r.data.respuesta;return t&&("0"===t.codigo||0===t.codigo)&&r.data.remesas?r:new Error((null==t?void 0:t.mensaje)||"Error.")}catch(e){return console.error(e),new Error("Error de conexión")}}))},estadosRemesa(e){return r(this,void 0,void 0,(function*(){try{const a={infoadicional:"2",remesas:{numeroremesa:e}},o=yield n.A.post(s.n+s.p.consultarInformacionRemesasEstados.route,a),r=o.data.respuesta;return!r||"0"!==r.codigo&&0!==r.codigo?new Error((null==r?void 0:r.mensaje)||"Error."):o.data.remesas}catch(e){return console.error(e),new Error("Error de conexión")}}))},estadosRemesaTest(e){return r(this,void 0,void 0,(function*(){try{const a={infoadicional:"2",remesas:{numeroremesa:e}},o=yield n.A.post(s.n+s.p.consultarInformacionRemesasEstadosTest.route,a),r=o.data.respuesta;return!r||"0"!==r.codigo&&0!==r.codigo?new Error((null==r?void 0:r.mensaje)||"Error."):o.data.remesas}catch(e){return console.error(e),new Error("Error de conexión")}}))},consultarDatosFacturacion(e){return r(this,void 0,void 0,(function*(){try{const a=s.p.consultarDatosFacturacion.route,o=yield n.A.post(s.n+a,e),r=o.data.respuesta;return r&&("0"===r.codigo||0===r.codigo)&&o.data.remesas?o:new Error((null==r?void 0:r.mensaje)||"Error.")}catch(e){return console.error(e),new Error("Error de conexión")}}))},consultarDatosFacturacionTest(e){return r(this,void 0,void 0,(function*(){try{const a=s.p.consultarDatosFacturacionTest.route,o=yield n.A.post(s.n+a,e),r=o.data.respuesta;return r&&("0"===r.codigo||0===r.codigo)&&o.data.remesas?o:new Error((null==r?void 0:r.mensaje)||"Error.")}catch(e){return console.error(e),new Error("Error de conexión")}}))}};a.A=t},1632:function(e,a,o){var n=o(4848),s=o(6540);a.A=({children:e,className:a,type:o="fade",delay:r=0,firstComponent:t=!1,dangerouslySetInnerHTML:l=null,onClick:i=null,activeClass:d=null})=>{let c={transition:"1s",opacity:0,visibility:"hidden",transform:"translate(0, 0)"};"fade-up"==o&&(c=Object.assign(Object.assign({},c),{transform:"translate(0, 30px)"})),"fade-right"==o&&(c=Object.assign(Object.assign({},c),{transform:"translate(-30px, 0)"})),"none"==o&&(c={});const[u,_]=(0,s.useState)(!1),[m,p]=(0,s.useState)(c),h=(0,s.useRef)(null);return(0,s.useEffect)((()=>{let e=!1;const a=()=>{if(!h.current)return;let e=window.scrollY,n=window.innerHeight,s=(e=>{var a=0,o=0;let n=e;for(;n;)a+=n.offsetLeft-n.scrollLeft+n.clientLeft,o+=n.offsetTop-n.scrollTop+n.clientTop,n=n.offsetParent;return{x:a,y:o}})(h.current);!u&&(e+n>s.y||t)&&(_(!0),setTimeout((()=>{"none"!==o&&p((e=>{if(e)return Object.assign(Object.assign({},e),{transitionDelay:r+"s",opacity:1,visibility:"visible",transform:"translate(0, 0)"})}))}),300),setTimeout((()=>{p(void 0)}),1e3*r+1300),window.removeEventListener("scroll",a))};return e||a(),window.addEventListener("scroll",a),()=>{window.removeEventListener("scroll",a),e=!0}}),[]),(0,n.jsx)("div",{ref:h,className:d&&u?`${a} ${d}`:a,style:m,dangerouslySetInnerHTML:l,onClick:i,children:e})}},4342:function(e,a,o){o.d(a,{A:function(){return t}});var n=o(4848),s=o(6540),r={warningMessage:"WarningMessage-module__warningMessage___KnYP9",modal:"WarningMessage-module__modal___tTgwK",headerModal:"WarningMessage-module__headerModal___WXkLw",closeicon:"WarningMessage-module__closeicon___Qjfzv",bodyModal:"WarningMessage-module__bodyModal___Y8VpV"};function t({closeModal:e,lockBody:a}){return(0,s.useEffect)((()=>{a?document.body.classList.add("modal-open"):document.body.classList.remove("modal-open")}),[]),(0,n.jsx)("section",{className:r.warningMessage,children:(0,n.jsxs)("div",{className:r.modal,children:[(0,n.jsxs)("div",{className:r.headerModal,children:[(0,n.jsx)("span",{className:r.titleModal,children:"AVISO"}),(0,n.jsx)("div",{className:r.closeicon,onClick:()=>e(),children:"X"})]}),(0,n.jsxs)("div",{className:r.bodyModal,children:[(0,n.jsx)("p",{children:"La mercancía asociada a este número de guía actualmente no está en nuestras manos."}),(0,n.jsx)("p",{children:"Asegúrate de ingresar el número correctamente y ten en cuenta que podrás realizar el rastreo de tus envíos una vez recibamos tu mercancía."})]})]})})}},5857:function(e,a,o){o.d(a,{g:function(){return h}});var n=o(4848),s=o(7995),r=o(6540),t=o(9123),l={Container:"ModalGuide-module__Container___akw03",Overlay:"ModalGuide-module__Overlay___ja2ps",Single:"ModalGuide-module__Single___rZnXH",ContentSuccess:"ModalGuide-module__ContentSuccess___X1dfa",WrapperData:"ModalGuide-module__WrapperData___d8Y7H",CardOrder:"ModalGuide-module__CardOrder___cBUpR",CardHeader:"ModalGuide-module__CardHeader___k6_pM",GroupHeader:"ModalGuide-module__GroupHeader___zlLeh",Close:"ModalGuide-module__Close___Ql63K",targetGuide:"ModalGuide-module__targetGuide___QsmBO",CardInfo:"ModalGuide-module__CardInfo___ken08",CardItem:"ModalGuide-module__CardItem___GCN_s",Title:"ModalGuide-module__Title___TMvKv",Result:"ModalGuide-module__Result___tKZw4",CardButtons:"ModalGuide-module__CardButtons___CjftB",ButtonOne:"ModalGuide-module__ButtonOne___vORcT",disabled:"ModalGuide-module__disabled___m2vgd",IconDownload:"ModalGuide-module__IconDownload___hKvME",ButtonTwo:"ModalGuide-module__ButtonTwo___E2U0A",CardState:"ModalGuide-module__CardState___UgoWu",ContentState:"ModalGuide-module__ContentState___Fw2SC",ItemState:"ModalGuide-module__ItemState___frRgJ",TextState:"ModalGuide-module__TextState___ozsLy",CardPanels:"ModalGuide-module__CardPanels___uV7Ho",Panel:"ModalGuide-module__Panel___qR8wW",PanelHeader:"ModalGuide-module__PanelHeader___aSLK0",PanelLeft:"Mod
1alGuide-module__PanelLeft___iYfee",IconCheckYes:"ModalGuide-module__IconCheckYes___DEGiC",IconToggle:"ModalGuide-module__IconToggle___TJGk6",PanelDetails:"ModalGuide-module__PanelDetails___mGEPW",ContainerDetails:"ModalGuide-module__ContainerDetails___cBRTt",ItemDetails:"ModalGuide-module__ItemDetails___F5QMu",IconArrowLeft:"ModalGuide-module__IconArrowLeft___Yzoun",ImgNovelty:"ModalGuide-module__ImgNovelty___CNsNI",groupIconArrow:"ModalGuide-module__groupIconArrow___Gc7c4",GroupAlert:"ModalGuide-module__GroupAlert___eWfnu",IconAlert:"ModalGuide-module__IconAlert___bZJIc",HoverAlert:"ModalGuide-module__HoverAlert___V6OJ5",NumberGuide:"ModalGuide-module__NumberGuide___WKoVu",ItemDetailsNovelty:"ModalGuide-module__ItemDetailsNovelty___lpw78",ItemChildNovelty:"ModalGuide-module__ItemChildNovelty___p1pXH",StatusNovelty:"ModalGuide-module__StatusNovelty___k4tK9",HoverDescription:"ModalGuide-module__HoverDescription___ModJT",ContentError:"ModalGuide-module__ContentError___ICAN_",Card:"ModalGuide-module__Card___OVoK1",Header:"ModalGuide-module__Header___EmuKe",ContentHeader:"ModalGuide-module__ContentHeader___bLO1B",Body:"ModalGuide-module__Body___c2bek",ContentBody:"ModalGuide-module__ContentBody___jXOyx",Description:"ModalGuide-module__Description___seYB8",Border:"ModalGuide-module__Border___HwphB",ContentCTA:"ModalGuide-module__ContentCTA___S_Da3",ButtonCTA:"ModalGuide-module__ButtonCTA___xPun2"},i=o(1085),d=o(1632),c="ModalTable-module__ItemTitle___BdDd_",u="ModalTable-module__RowData___WhdGl",_="ModalTable-module__ItemData___UsD0p";const m=({setStatusTable:e,dataGroup:a,title:o,changeData:s})=>{const{executeRecaptcha:r}=(0,t._Y)(),l=()=>{e(!1)};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"ModalTable-module__Container___tQe6U",children:(0,n.jsx)("div",{className:"ModalTable-module__ContentError___K9pWE",children:(0,n.jsxs)("div",{className:"ModalTable-module__Card___EBZbl",children:[o?(0,n.jsx)("div",{className:"ModalTable-module__Header___RwfS3",children:(0,n.jsxs)("div",{className:"ModalTable-module__ContentHeader___bc6Jk",children:[(0,n.jsx)("div",{className:"ModalTable-module__Title___EvpHg",children:o}),(0,n.jsx)("div",{className:"ModalTable-module__Close___F40Ql",onClick:()=>l(),children:(0,n.jsx)("svg",{width:"15px",height:"15px",viewBox:"0 -0.5 21 21",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,n.jsx)("g",{id:"Dribbble-Light-Preview",transform:"translate(-419.000000, -240.000000)",fill:"#ffffff",children:(0,n.jsx)("g",{id:"icons",transform:"translate(56.000000, 160.000000)",children:(0,n.jsx)("polygon",{id:"close-[#1511]",points:"375.0183 90 384 98.554 382.48065 100 373.5 91.446 364.5183 100 363 98.554 371.98065 90 363 81.446 364.5183 80 373.5 88.554 382.48065 80 384 81.446"})})})})})})]})}):null,(0,n.jsx)("div",{className:"ModalTable-module__Body___iu3Et",children:(0,n.jsxs)("div",{className:"ModalTable-module__ContentBody___szFiF",children:[(0,n.jsx)("div",{className:"ModalTable-module__Description___fo9ee",children:(0,n.jsxs)("table",{children:[(0,n.jsx)("thead",{className:"ModalTable-module__TableHead___bHkO4",children:(0,n.jsxs)("tr",{className:u,children:[(0,n.jsx)("th",{className:c,children:(0,n.jsx)("span",{children:"Fecha de remesa"})}),(0,n.jsx)("th",{className:c,children:(0,n.jsx)("span",{children:"Nro. de remesa"})}),(0,n.jsx)("th",{className:c,children:(0,n.jsx)("span",{children:"Tipo de remesa"})})]})}),(0,n.jsx)("tbody",{className:"ModalTable-module__TableBody___qqOEj",children:a.map((({numero:e,fecha:a,tipo:o},t)=>(0,n.jsxs)("tr",{className:u,children:[(0,n.jsxs)("td",{className:_,children:[" ",(0,n.jsxs)("p",{children:[a," "]})]}),(0,n.jsx)("td",{className:_,children:(0,n.jsx)("a",{onClick:()=>{return d=e,a=void 0,o=void 0,t=function*(){let e;const a=r?yield r("tracking_form"):"",o={remesas:{remesa:{numero:d,esrelacion:""}},captcha:a,recaptchaVersion:"v3"};e="true"==document.body.dataset.seek_guide_service?yield i.A.rastreoPublico(o):yield i.A.rastreoPublicoTest(o),e instanceof Error?s(e,!0):(s(e.data.remesas.remesa[0]),l())}
1,new((n=void 0)||(n=Promise))((function(e,s){function r(e){try{i(t.next(e))}catch(e){s(e)}}function l(e){try{i(t.throw(e))}catch(e){s(e)}}function i(a){var o;a.done?e(a.value):(o=a.value,o instanceof n?o:new n((function(e){e(o)}))).then(r,l)}i((t=t.apply(a,o||[])).next())}));var a,o,n,t,d},children:e})}),(0,n.jsx)("td",{className:_,children:(0,n.jsx)("p",{children:o})})]},t)))})]})}),(0,n.jsx)("hr",{className:"ModalTable-module__Border___gbiNs"}),(0,n.jsx)("div",{className:"ModalTable-module__ContentCTA___ve8se",children:(0,n.jsx)("div",{className:"ModalTable-module__ButtonCTA___zq282",onClick:()=>l(),children:"Cerrar"})})]})})]})})})})};var p=function(e,a,o,n){return new(o||(o=Promise))((function(s,r){function t(e){try{i(n.next(e))}catch(e){r(e)}}function l(e){try{i(n.throw(e))}catch(e){r(e)}}function i(e){var a;e.done?s(e.value):(a=e.value,a instanceof o?a:new o((function(e){e(a)}))).then(t,l)}i((n=n.apply(e,a||[])).next())}))};const h=({content:e,dataModal:a,setShowModal:c,singleGroup:u,setSingleGroup:_,styleNumber:h=2,sliderContainer:v=null,codeStatus2:g,setCodeStatus2:x,OpenModalValidationComprobante:f,showModalValidation:j,setShowModalValidation:w})=>{var C,N,b,M,y;const{executeRecaptcha:S}=(0,t._Y)(),T=(0,r.useRef)(null),[D,E]=(0,r.useState)(!1),[A,G]=(0,r.useState)(!1),[k,I]=(0,r.useState)(!1),[R,L]=(0,r.useState)(a.data?a.data.respuesta.codigo:null),[P,B]=(0,r.useState)(u),[O,V]=(0,r.useState)(null),[H,$]=(0,r.useState)([]),[W,Y]=(0,r.useState)([]),[F,z]=(0,r.useState)([]),[U,q]=(0,r.useState)([]),[K,Z]=(0,r.useState)([]),[J,Q]=(0,r.useState)(0),[X,ee]=(0,r.useState)(0),[ae,oe]=(0,r.useState)(!1),ne=2==h?[l.Single,l.Container]:[l.Container],se=2==h?[l.Single,l.ContentSuccess]:[l.ContentSuccess],[re,te]=(0,r.useState)(null!==(N=null===(C=document.querySelector("body"))||void 0===C?void 0:C.clientHeight)&&void 0!==N?N:0),[le,ie]=(0,r.useState)((null===(b=null==v?void 0:v.current)||void 0===b?void 0:b.clientHeight)?(null!==(y=null===(M=document.querySelector("header"))||void 0===M?void 0:M.clientHeight)&&void 0!==y?y:0)+v.current.clientHeight+11:0);let de=[],ce=[];const ue=e=>p(void 0,void 0,void 0,(function*(){let a;const o=S?yield S("tracking_form"):"",n={remesas:{remesa:{numero:e,esrelacion:""}},captcha:o,recaptchaVersion:"v3"};a="true"==document.body.dataset.seek_guide_service?yield i.A.rastreoPublico(n):yield i.A.rastreoPublicoTest(n),a instanceof Error?_e(a,!0):_e(a.data.remesas.remesa[0],!1)})),_e=(e,a=!1)=>{a||(_(null),c(!1),setTimeout((()=>{_(e),c(!0)}),10))},me=()=>{x(0),c(!1),_(null)},pe=()=>p(void 0,void 0,void 0,(function*(){if(P&&P.numeroremesa){let e;if(e="true"==document.body.dataset.seek_guide_service?yield i.A.estadosRemesa(P.numeroremesa):yield i.A.estadosRemesaTest(P.numeroremesa),P.novedades?(Z(P.novedades.novedad),P.novedades.novedad.length>0&&ve()):ee(0),e.remesa&&e.remesa[0]&&(V(e.remesa[0]),e.remesa[0].remesasasociadas&&$(e.remesa[0].remesasasociadas.remesa),he(Number(e.remesa[0].pasoestado)),(()=>{const e="https://storage.googleapis.com/wp-bucket-tcc/public/transaccional/rastreo/contenedor/";let a=[{title:"Vamos en camino a recoger tu envío",icon:`${e}gris/paso1.png`,complete:!1,iconActive:`${e}rojo/paso1.png`,warning:!1,iconWarning:`${e}amarillo/paso1.png`,iconWarningAlter:`${e}amarillo/paso1-alter.png`,hasNovelties:!1},{title:"Tú envío está en nuestras manos",icon:`${e}gris/paso2.png`,complete:!1,iconActive:`${e}rojo/paso2.png`,warning:!1,iconWarning:`${e}amarillo/paso2.png`,hasNovelties:!1},{title:`Tú envío está en Sede TCC (${P.ceoporigen})`,icon:`${e}gris/paso3.png`,complete:!1,iconActive:`${e}rojo/paso3.png`,warning:!1,iconWarning:`${e}amarillo/paso3.png`,hasNovelties:!1},{title:"En carretera, camino a tu ciudad",icon:`${e}gris/paso4.png`,complete:!1,iconActive:`${e}rojo/paso4.png`,warning:!1,iconWarning:`${e}amarillo/paso4.png`,hasNovelties:!1},{title:`Tú envío ha llegado a nuestra Sede TCC (${P.ceopdestino})`,icon:`${e}gris/paso5.png`,complete:!1,iconActive:`${e}rojo/paso5.png`,warning:!1,iconWarning:`${e}amarillo/paso5.png`,hasNovelties:!1}
1,{title:"Vamos en camino al destino final",icon:`${e}gris/paso6.png`,complete:!1,iconActive:`${e}rojo/paso6.png`,warning:!1,iconWarning:`${e}amarillo/paso6.png`,hasNovelties:!1},{title:"Hemos entregado tu envío",icon:`${e}gris/paso7.png`,complete:!1,iconActive:`${e}rojo/paso7.png`,warning:!1,iconWarning:`${e}amarillo/paso7.png`,hasNovelties:!1}];for(let e=0;e<a.length;e++)J>=e&&(a[e].complete=!0);if(P.novedades&&P.novedades.novedad.length>0){const e=O.novedades.novedad.find((e=>"201"===e.codigo));6===J||e?a.forEach((e=>e.hasNovelties=!1)):a[J].hasNovelties=!0}const o=P.estadoremesa.id,n="294"===o||"1051"===o||"3500"===o||"3600"===o||"3700"===o||"3900"===o||"4000"===o||"4100"===o||"4200"===o||"4300"===o||"901"===o;n&&(a[J].warning=!0,a[J].complete=!1,a[J].title=(e=>{let a="";const o=U.find((e=>"294"===e.codigo||"1051"===e.codigo||"3500"===e.codigo||"3600"===e.codigo||"3700"===e.codigo||"3900"===e.codigo||"4000"===e.codigo||"4100"===e.codigo||"4200"===e.codigo||"4300"===e.codigo));switch(o?o.codigo:e){case"1051":case"294":a="Tú envío está en proceso de rezagos";break;case"3500":case"3600":case"3700":a="Tu envío está en proceso de reclamación";break;case"3900":a="Mercancía retenida por la DIAN";break;case"4000":a="En devolución";break;case"4100":a="En continuación";break;case"4200":a="Reemplazada";break;case"4300":a="Anulada";break;case"901":a="Aún no tenemos tu envío en nuestras manos";break;default:a=""}return a})(o),J>=1?(a[0].complete=!0,a[0].warning=!1,a.splice(0,1)):(a[1].complete=!0,a[1].warning=!1,a.splice(1,1))),J>=1&&!n?(a[0].complete=!0,a[0].warning=!1,a.splice(0,1)):J<1&&!n&&(a[1].complete=!0,a[1].warning=!1,a.splice(1,1)),Y(a)})(),e.remesa&&e.remesa[0]&&e.remesa[0].estados)){const a=[...e.remesa[0].estados.estado].reverse();z([a]),q(a)}}})),he=e=>{switch(e){case 1:default:Q(0);break;case 1.1:Q(1);break;case 2:Q(2);break;case 3:Q(3);break;case 4:Q(4);break;case 5:Q(5);break;case 6:Q(6)}},ve=()=>{ee(0),Array.isArray(K)&&K.forEach((e=>{let a=Number.parseInt(e.proceso);5!==a?a>X&&ee(a):ee(4)}))},ge=e=>"Planteada"===e||"Informada"===e||"Gestión sin contactoEspero"===e||"Gestión sin contacto"===e||"Espero"===e?{message:"Novedades que están a la espera de su solución para dar continuidad con el Servicio",status:"PENDIENTE POR SOLUCIÓN"}:"Solucionada"===e?{message:"Novedades solucionadas para dar continuidad al servicio de acuerdo con la información entregada",status:"SOLUCIONADA"}:"Ejecutada"===e?{message:"Novedades solucionadas para dar continuidad al servicio de acuerdo con la información entregada",status:"EJECUTADA"}:{message:"Error en mensaje",status:e},xe=e=>{let a=e.split("Remesa: ");return a.length<=0&&(a=e.split("Guía: ")),a.length>1?a[1].substring(0,a[1].length-1):""},fe=e=>{let a=e.split("Remesa: ");if(a.length<=0&&(a=e.split("Guía: ")),a.length>1){let o=a[1].substring(0,a[1].length-1);return de.includes(o)||(de.push(o),ce.push(e)),P.numeroremesa!==o}return!1};return(0,r.useEffect)((()=>{pe()}),[J]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ne.join(" "),children:[(0,n.jsx)("div",{id:"cerrar-overlay-modal-guia",className:l.Overlay,onClick:()=>me(),style:{height:`${re}px`,top:`-${le}px`}}),0==R?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:se.join(" "),children:(0,n.jsx)("div",{ref:T,className:l.WrapperData,children:(0,n.jsxs)("div",{className:l.CardOrder,children:[(0,n.jsxs)("div",{className:l.CardHeader,children:[(0,n.jsxs)("div",{className:l.GroupHeader,children:["Guía",(0,n.jsx)("div",{id:"cerrar-modal-guia",className:l.Close,onClick:()=>me(),children:(0,n.jsx)("svg",{width:"15px",height:"15px",viewBox:"0 -0.5 21 21",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,n.jsx)("g",{id:"Dribbble-Light-Preview",transform:"translate(-419.000000, -240.000000)",fill:"#c21d21",children:(0,n.jsx)("g",{id:"icons",transform:"translate(56.000000, 160.000000)",children:(0,n.jsx)("polygon",{id:"close-[#1511]",points:"375.0183 90 384 98.554 382.48065 100 373.5 91.446 364.5183 100 363 98.5
154 371.98065 90 363 81.446 364.5183 80 373.5 88.554 382.48065 80 384 81.446"})})})})})})]}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("span",{className:l.targetGuide,children:["#",P.numeroremesa]}),a.data.remesas.remesa.length>0?(0,n.jsx)(n.Fragment,{children:a.data.remesas.remesa.map(((e,a)=>{if(P.numeroremesa!=e.numeroremesa)return(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{children:" / "}),(0,n.jsxs)("span",{id:`ver-guia-relacionada-header-${a}`,onClick:()=>ue(e.numeroremesa),children:[" #",e.numeroremesa]},a)]},a)}))}):null]})]}),(0,n.jsxs)("div",{className:l.CardInfo,children:[(0,n.jsxs)("div",{className:l.CardItem,children:[(0,n.jsx)("span",{className:l.Title,children:"Origen"}),P.ceoporigen?(0,n.jsx)("span",{className:l.Result,children:P.ciudadorigen.descripcion}):null]}),(0,n.jsxs)("div",{className:l.CardItem,children:[(0,n.jsx)("span",{className:l.Title,children:"Destino"}),P.ceopdestino?(0,n.jsx)("span",{className:l.Result,children:P.ciudaddestino.descripcion}):null]}),(0,n.jsxs)("div",{className:l.CardItem,children:[(0,n.jsx)("span",{className:l.Title,children:"Unidades"}),P.unidades?(0,n.jsx)("span",{className:l.Result,children:P.unidades}):null]}),(0,n.jsx)("div",{className:l.CardItem,children:J<5?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:l.Title,children:"Fecha estimada de entrega"}),P.fechapromesa?(0,n.jsx)("span",{className:l.Result,children:(0,s.A)(P.fechapromesa).format("DD/MM/YYYY")}):null]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:l.Title,children:"Fecha de entrega"}),P.fechaentrega?(0,n.jsx)("span",{className:l.Result,children:(0,s.A)(P.fechaentrega).format("DD/MM/YYYY, h:mm a")}):null]})}),(0,n.jsxs)("div",{className:l.CardItem,children:[(0,n.jsx)("span",{className:l.Title,children:"Tipo de servicio operativo"}),P.formapago?(0,n.jsx)("span",{className:l.Result,children:P.formapago}):null]})]}),(0,n.jsxs)("div",{className:l.CardButtons,children:[P.numeroremesa&&P.tieneimagen?(0,n.jsxs)("a",{id:"abrir-comprobante-guia",onClick:e=>f(e),className:l.ButtonOne,target:"_blank",children:["COMPROBANTE",(0,n.jsx)("div",{className:l.IconCheck,children:(0,n.jsx)("svg",{fill:"#ffffff",width:"20px",height:"20px",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M30 2.497h-28c-1.099 0-2 0.901-2 2v23.006c0 1.099 0.9 2 2 2h28c1.099 0 2-0.901 2-2v-23.006c0-1.099-0.901-2-2-2zM30 27.503l-28-0v-5.892l8.027-7.779 8.275 8.265c0.341 0.414 0.948 0.361 1.379 0.035l3.652-3.306 6.587 6.762c0.025 0.025 0.053 0.044 0.080 0.065v1.85zM30 22.806l-5.876-6.013c-0.357-0.352-0.915-0.387-1.311-0.086l-3.768 3.282-8.28-8.19c-0.177-0.214-0.432-0.344-0.709-0.363-0.275-0.010-0.547 0.080-0.749 0.27l-7.309 7.112v-14.322h28v18.309zM23 12.504c1.102 0 1.995-0.894 1.995-1.995s-0.892-1.995-1.995-1.995-1.995 0.894-1.995 1.995c0 1.101 0.892 1.995 1.995 1.995z"})})})]}):null,H&&H.length>0?(0,n.jsx)("div",{id:"ver-guias-relacionadas",className:l.ButtonTwo,onClick:()=>{oe(!0)},children:"GUÍAS RELACIONADAS"}):null,(0,n.jsxs)("div",{id:"descargar-pdf-guia",className:l.ButtonTwo,onClick:()=>p(void 0,void 0,void 0,(function*(){if("901"===P.estadoremesa.id||"4300"===P.estadoremesa.id)return console.log("Nice try...");var e;I(!0),G(e=!0),E(e);const a={useCORS:!0};let n,s,r=new Image;setTimeout((()=>p(void 0,void 0,void 0,(function*(){const e=(yield o.e(354).then(o.t.bind(o,354,23))).default;T.current&&(s=yield e(T.current,a),n=s.toDataURL("image/pdf"),r.src=n)}))),1e3),setTimeout((()=>p(void 0,void 0,void 0,(function*(){const e=yield o.e(5085).then(o.bind(o,5085));let a=new(e.default||e.jsPDF)(r.width>r.height?"l":"p","px",[1.35*r.width,1.35*r.height]);a.addImage(n,"PNG",0,0,1.35*r.width,1.35*r.height),a.save("trazabilidad.pdf"),I(!1)}))),3e3)})),"data-off":k||"901"==P.estadoremesa.id||"4300"==P.estadoremesa.id?"true":"false",children:["DESCARGAR PDF",(0,n.jsx)("div",{className:l.IconDownload,children:(0,n.jsx)("svg",{height:"20px",width:"20px",version:"1.1",id:"_x32_",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{fill:"#ffffff",d:"M349.444,369.978H315.14c-9.288,0-16.844-7.55-16.844-16.836v-174.11c0-11.04-8.983-20.027-20.023-20.027\n                                                  h-44.546c-11.04,0-20.021,8.987-20.021,20.027v174.11c0,9.286-7.556,16.836-16.844,16.836h-34.305\n                                                  c-5.538,0-9.503,1.848-11.168,5.198c-1.666,3.354-0.738,7.628,2.609,12.046l89.594,118.093C246.864,509.628,251.27,512,256,512\n                                                  c4.73,0,9.136-2.372,12.408-6.685l89.594-118.093c3.348-4.418,4.274-8.692,2.611-12.046\n                                                  C358.948,371.826,354.982,369.978,349.444,369.978z"}),(0,n.jsx)("path",{fill:"#ffffff",d:"M445.316,0H66.684C56.218,0,47.704,8.517,47.704,18.983v318.112h130.383v-66.786h-63.602V66.785h283.03\n                                                  v203.524h-63.602v66.786h130.384V18.983C464.296,8.517,455.781,0,445.316,0z"})]})})})]})]}),J>=0?(0,n.jsx)("div",{className:l.CardState,children:(0,n.jsx)(d.A,{type:"fade-up",delay:0,className:"",children:(0,n.jsx)("div",{className:l.ContentState,children:W.map(((e,a)=>(0,n.jsxs)("div",{className:l.ItemState,children:[e.complete?(0,n.jsx)("img",{loading:"lazy",src:e.iconActive,alt:""}):null,e.warning?0==a&&"901"===P.estadoremesa.id?(0,n.jsx)("img",{loading:"lazy",src:e.iconWarningAlter,alt:""}):(0,n.jsx)("img",{loading:"lazy",src:e.iconWarning,alt:""}):null,e.complete||e.warning?null:(0,n.jsx)("img",{loading:"lazy",src:e.icon,alt:""}),(0,n.jsx)("div",{className:l.TextState,children:e.title})]},a)))})})}):null,(0,n.jsxs)("div",{className:l.CardPanels,children:[U&&U.length>0?(0,n.jsxs)("div",{className:l.Panel,children:[(0,n.jsxs)("div",{id:"toggle-historial-guia",className:l.PanelHeader,onClick:()=>E(!D),children:[(0,n.jsxs)("div",{className:l.PanelLeft,children:[(0,n.jsx)("div",{className:l.IconCheckYes,children:(0,n.jsx)("svg",{width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M4 12.6111L8.92308 17.5L20 6.5",stroke:"#8dc63f",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,n.jsx)("div",{className:l.Description,children:"Histórial del envío"})]}),(0,n.jsx)("div",{className:l.IconToggle,"data-reverse":D?"on":"off"})]}),D?(0,n.jsx)(d.A,{type:"fade-up",delay:0,firstComponent:!0,className:"",children:(0,n.jsx)("div",{className:l.PanelDetails,children:(0,n.jsx)("div",{className:l.ContainerDetails,children:U.map((({descripcion:e,fecha:a},o)=>(0,n.jsxs)("div",{className:l.ItemDetails,children:[(0,n.jsx)("div",{className:l.IconArrowLeft,children:(0,n.jsx)("svg",{width:"25px",height:"25px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M9.71069 18.2929C10.1012 18.6834 10.7344 18.6834 11.1249 18.2929L16.0123 13.4006C16.7927 12.6195 16.7924 11.3537 16.0117 10.5729L11.1213 5.68254C10.7308 5.29202 10.0976 5.29202 9.70708 5.68254C9.31655 6.07307 9.31655 6.70623 9.70708 7.09676L13.8927 11.2824C14.2833 11.6729 14.2833 12.3061 13.8927 12.6966L9.71069 16.8787C9.32016 17.2692 9.32016 17.9023 9.71069 18.2929Z",fill:"#9f9f9f"})})}),(0,n.jsx)("div",{children:e}),(0,n.jsxs)("div",{className:l.groupIconArrow,children:[fe(e)?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:l.GroupAlert,children:(0,n.jsxs)("div",{className:l.IconAlert,children:[(0,n.jsxs)("svg",{width:"20px",height:"20px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("rect",{width:"24",height:"24",fill:"white"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM11 13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8V13ZM13 15.9888C13 15.4365 12.5523 14.9888 12 14.9888C11.4477 14.9888 11 15.4365 11 15.9888V16C11 16.5523 11.4477 17 12 17C12.5
1523 17 13 16.5523 13 16V15.9888Z",fill:"#c21d21"})]}),(0,n.jsxs)("div",{className:l.HoverAlert,children:["Por motivos operativos, hemos reemplazado su número de guía por la siguiente:",(0,n.jsxs)("div",{id:`ver-guia-reemplazada-${o}`,className:l.NumberGuide,onClick:()=>ue(xe(e)),children:[xe(e),"."]})," Consúltela aquí o por favor diríjase a la pestaña de guías relacionadas"]})]})})}):null,(0,n.jsx)("p",{children:(0,s.A)(a).format("DD/MM/YYYY, h:mm a")})]})]},o)))})})}):null]}):null,K&&K.length>0?(0,n.jsxs)("div",{className:l.Panel,children:[(0,n.jsxs)("div",{id:"toggle-novedades-guia",className:l.PanelHeader,onClick:()=>{G(!A)},children:[(0,n.jsxs)("div",{className:l.PanelLeft,children:[(0,n.jsx)("div",{className:l.ImgNovelty,children:(0,n.jsx)("img",{src:"https://storage.googleapis.com/wp-bucket-tcc/public/images/box/rastreo/bullet-novedad.png",alt:""})}),(0,n.jsx)("div",{className:l.Description,children:"Novedades"})]}),(0,n.jsx)("div",{className:l.IconToggle,"data-reverse":A?"on":"off"})]}),A?(0,n.jsx)(d.A,{type:"fade-up",delay:0,firstComponent:!0,className:"",children:(0,n.jsx)("div",{className:l.PanelDetails,children:(0,n.jsx)("div",{className:l.ContainerDetails,children:K.map(((e,a)=>(0,n.jsxs)("div",{className:l.ItemDetailsNovelty,children:[(0,n.jsxs)("div",{className:l.ItemChildNovelty,children:[(0,n.jsx)("div",{children:e.novedadprincipal}),(0,n.jsx)("div",{children:(0,s.A)(e.fechanovedad).format("DD/MM/YYYY, h:mm a")})]}),(0,n.jsxs)("div",{className:l.ItemChildNovelty,children:[(0,n.jsx)("div",{children:e.complementonovedad}),0==a?(0,n.jsxs)("div",{className:l.StatusNovelty,children:[ge(e.estado).status,(0,n.jsx)("span",{className:l.HoverDescription,children:ge(e.estado).message})]}):null]}),(0,n.jsx)("div",{className:l.ItemChildNovelty,children:e.definicion})]},a)))})})}):null]}):null]})]})})})}):null,!a.name||"AxiosError"!=a.name||1!=R&&1!=g?null:(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:l.ContentError,children:(0,n.jsxs)("div",{className:l.Card,children:[(0,n.jsx)("div",{className:l.Header,children:(0,n.jsxs)("div",{className:l.ContentHeader,children:[(0,n.jsx)("div",{className:l.Title,children:"Error"}),(0,n.jsx)("div",{id:"cerrar-modal-guia-error",className:l.Close,onClick:()=>me(),children:(0,n.jsx)("svg",{width:"15px",height:"15px",viewBox:"0 -0.5 21 21",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,n.jsx)("g",{id:"Dribbble-Light-Preview",transform:"translate(-419.000000, -240.000000)",fill:"#c21d21",children:(0,n.jsx)("g",{id:"icons",transform:"translate(56.000000, 160.000000)",children:(0,n.jsx)("polygon",{id:"close-[#1511]",points:"375.0183 90 384 98.554 382.48065 100 373.5 91.446 364.5183 100 363 98.554 371.98065 90 363 81.446 364.5183 80 373.5 88.554 382.48065 80 384 81.446"})})})})})})]})}),(0,n.jsx)("div",{className:l.Body,children:(0,n.jsxs)("div",{className:l.ContentBody,children:[(0,n.jsx)("div",{className:l.Description,children:"No se encontró información"}),(0,n.jsx)("hr",{className:l.Border}),(0,n.jsx)("div",{className:l.ContentCTA,children:(0,n.jsx)("div",{id:"aceptar-error-guia",className:l.ButtonCTA,onClick:()=>me(),children:"Aceptar"})})]})})]})})})]}),ae?(0,n.jsx)(m,{setStatusTable:oe,title:"Guías relacionadas",dataGroup:H,changeData:_e}):null]})}},8491:function(e,a,o){o.d(a,{$:function(){return m}});var n=o(4848),s=o(6540),r=o(9123),t=o(7469),l=o(741),i=function(e,a,o,n){return new(o||(o=Promise))((function(s,r){function t(e){try{i(n.next(e))}catch(e){r(e)}}function l(e){try{i(n.throw(e))}catch(e){r(e)}}function i(e){var a;e.done?s(e.value):(a=e.value,a instanceof o?a:new o((function(e){e(a)}))).then(t,l)}i((n=n.apply(e,a||[])).next())}))};var d={getTrackingTest:e=>i(void 0,void 0,void 0,(function*(){e.token=process.env.TRACKING_INT_KEY;try{let a=yield t.A.post(l.n+l.p.consultarRastreoInternacionalTest.route,e);return a.data.mensajeRespuesta?new Error(a.data.mensajeRespuesta.replaceAll("'","")):a.data}catch(e){return new Error(e)}})),getTracking:e=>i(void 0,void 0,void 0,(function*(){e.token=process.env.TRACKING_INT_KEY;try{let a=yield t.A.post(l.n+l.p.consultarRastreoInternacional.route,e);return a.data.mensajeRespuesta?new Error(a.data.mensajeRespuesta.replaceAll("'","")):a.data}catch(e){return new Error(e)}}
1)),validarRastreoUsuario:e=>i(void 0,void 0,void 0,(function*(){try{let a=yield t.A.post(l.n+l.p.validarRastreoUsuario.route,e);return a.data&&0==a.data.codigoresultado?a.data:new Error(a.data.mensajeresultado)}catch(e){return new Error(e)}})),validarRastreoUsuarioTest:e=>i(void 0,void 0,void 0,(function*(){try{let a=yield t.A.post(l.n+l.p.validarRastreoUsuarioTest.route,e);return a.data&&0==a.data.codigoresultado?a.data:new Error(a.data.mensajeresultado)}catch(e){return new Error(e)}}))},c=o(4887),u="ModalValidationComprobante-module__active___yI1rL",_=o(1296);const m=({show:e,close:a,singleGroup:o,setShowModal:t,setTitleModalWarning:l,setTextModalWarning:i,setStyleModal:m})=>{const{executeRecaptcha:p}=(0,r._Y)(),[h,v]=(0,s.useState)(null),[g,x]=(0,s.useState)(!1),[f,j]=(0,s.useState)(o),[w,C]=(0,s.useState)("FALSE"),[N,b]=(0,s.useState)(!1),[M,y]=(0,s.useState)({remesas:"",tipoUsuario:"",identificacion:""}),[S,T]=(0,s.useState)({remesas:null,tipoUsuario:null,identificacion:null}),D=e=>{if(h===e)v(null);else{if("destinatario"==e&&"FALSE"==w)return t(!0),l("IMPORTANTE"),i("<div>\n          El comprobante de tu envío aún no esta<br />\n          disponible para descargar.<br />\n          Por favor, vuelve a intentarlo más tarde.<div/>"),void m("style2");v(e);let a=M,o="";o="remitente"==e?"POC":"destinatario"==e?"POD":"",a.tipoUsuario=o,y(a),x((e=>!e))}},E=()=>{return e=void 0,a=void 0,n=function*(){var e,a;b(!0);let o=yield(()=>{if(f&&f.numeroremesa)return f.numeroremesa})();if(!p)return void b(!1);const n=yield p("validation_comprobante");if(!o)return t(!0),l("Error"),i("Se requiere número de guía"),void b(!1);if(!M.tipoUsuario)return t(!0),l("Error"),i("Se requiere tipo de usuario"),void b(!1);if(!M.identificacion)return t(!0),l("Error"),i("Se requiere identificación"),void b(!1);let s,r={remesa:o,TipoUsuario:M.tipoUsuario,Identificacion:M.identificacion,captcha:n,recaptchaVersion:"v3"};if(s="true"==document.body.dataset.seek_guide_service?yield null===(e=d.validarRastreoUsuario)||void 0===e?void 0:e.call(d,r):yield null===(a=d.validarRastreoUsuarioTest)||void 0===a?void 0:a.call(d,r),s instanceof Error)t(!0),l("Error"),i(`${s.message}`);else if(s&&s.data){if(s.data.urlcomprobante&&s.data.codigovalido)return window.open(`${s.data.urlcomprobante}`,"_blank"),void b(!1);Object.prototype.hasOwnProperty.call(s.data,"tienepoc")&&!1===s.data.tienepoc&&(t(!0),l("Error"),i("La remesa no contiene comprobante para el usuario seleccionado."),m("style2"))}b(!1)},new((o=void 0)||(o=Promise))((function(s,r){function t(e){try{i(n.next(e))}catch(e){r(e)}}function l(e){try{i(n.throw(e))}catch(e){r(e)}}function i(e){var a;e.done?s(e.value):(a=e.value,a instanceof o?a:new o((function(e){e(a)}))).then(t,l)}i((n=n.apply(e,a||[])).next())}));var e,a,o,n};return(0,s.useEffect)((()=>{j(o),o&&C(o.tieneimagen?"TRUE":"FALSE")}),[o]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"ModalValidationComprobante-module__Container___CAk7W",children:[(0,n.jsx)("div",{id:"cerrar-overlay-comprobante",className:"ModalValidationComprobante-module__Overlay___ddp3f",onClick:()=>a()}),(0,n.jsxs)("div",{className:"ModalValidationComprobante-module__Content___buAGC",children:[(0,n.jsx)("div",{className:"ModalValidationComprobante-module__WrapperData___UwdTh",children:(0,n.jsx)("div",{className:"ModalValidationComprobante-module__CardOrder___rDipa",children:(0,n.jsx)("div",{className:"ModalValidationComprobante-module__CardHeader___D1NzY",children:(0,n.jsxs)("div",{className:"ModalValidationComprobante-module__GroupHeader___QZd8h",children:["Comprobantes",(0,n.jsx)("div",{id:"cerrar-modal-comprobante",className:"ModalValidationComprobante-module__Close___x474z",onClick:()=>a(),children:(0,n.jsx)("svg",{width:"15px",height:"15px",viewBox:"0 -0.5 21 21",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,n.jsx)("g",{id:"Dribbble-Light-Preview",transform:"translate(-419.000000, -240.000000)",fill:"#c21d21",children:(0,n.jsx)("g",{id:"icons",transform:"translate(56.000000, 160.000000)",children:(0,n.jsx)("polygon",{id:"close-[#1511]",points:"375.0183 90 384 98.554 382.48065 100 373.5 91.446 364.5183 100 363 98.5
154 371.98065 90 363 81.446 364.5183 80 373.5 88.554 382.48065 80 384 81.446",stroke:"#ffffff",fill:"#ffffff"})})})})})})]})})})}),(0,n.jsx)("div",{className:"ModalValidationComprobante-module__FormValidation___gOQDI",children:(0,n.jsx)("div",{className:"ModalValidationComprobante-module__WrapperForm___R6Urb",children:(0,n.jsxs)("form",{className:"ModalValidationComprobante-module__groupForm___oEjhq",onSubmit:e=>{e.preventDefault(),E()},children:[(0,n.jsx)("p",{className:"ModalValidationComprobante-module__mainText___RCwkc",children:"Selecciona la opción según tu identidad"}),(0,n.jsxs)("div",{className:"ModalValidationComprobante-module__ContentButtons___ZfjOC",children:[(0,n.jsx)("button",{id:"seleccionar-remitente-comprobante",type:"button",className:`ModalValidationComprobante-module__ButtonRemitter___oQOKg ${"remitente"===h?u:""}`,onClick:()=>D("remitente"),children:"Remitente"}),(0,n.jsx)("button",{id:"seleccionar-destinatario-comprobante",type:"button",className:`ModalValidationComprobante-module__ButtonReceiver___EjXoA ${"destinatario"===h?u:""}`,onClick:()=>D("destinatario"),children:"Destinatario"})]}),(0,n.jsxs)("div",{className:"ModalValidationComprobante-module__GroupHidden___LJvhN "+("TRUE"==w&&h||"FALSE"==w&&"remitente"===h?"ModalValidationComprobante-module__GroupShow___DW1Ge":""),children:[(0,n.jsxs)("p",{className:"ModalValidationComprobante-module__secondaryText___p61AD",children:["Diligencia aquí el número de identificación del ",h]}),(0,n.jsx)("div",{className:"ModalValidationComprobante-module__groupInput___rLZ0f",children:(0,n.jsxs)("label",{className:"ModalValidationComprobante-module__inputForm___z6AkX",children:[(0,n.jsx)("input",{type:"text",onChange:e=>{let a=M;a[e.target.name]=e.target.value,y(a),e.target.value&&(0,c.D)(a,T),x((e=>!e))},name:"identificacion","data-error":S.identificacion?"true":"false"}),S&&S.identificacion?(0,n.jsxs)("p",{children:[" ",S.identificacion]}):""]})}),(0,n.jsxs)("div",{className:"ModalValidationComprobante-module__GroupSend___N6G6g",children:[(0,n.jsx)("div",{className:"ModalValidationComprobante-module__ContentCaptcha___Uoguy",children:(0,n.jsx)(_.A,{})}),(0,n.jsx)("div",{className:"ModalValidationComprobante-module__ContentSend___p5HHC",children:(0,n.jsx)("button",{id:"enviar-comprobante",type:"submit",className:"ModalValidationComprobante-module__ButtonSend___BYSxy",disabled:!!N,children:N?"Enviando...":"Enviar"})})]})]})]})})})]})]})})}},8547:function(e,a,o){o.d(a,{A:function(){return t}});var n=o(4848),s=o(6540);const r=(0,s.forwardRef)((({options:e,label:a,placeholder:o="Selecciona una opción",error:r,value:t,defaultValue:l,onChange:i,name:d,disabled:c,theme:u="light",onBlur:_,matcher:m=(e,a)=>e===a},p)=>
1{const[h,v]=(0,s.useState)(l),[g,x]=(0,s.useState)(!1),f=(0,s.useRef)(null),j=(0,s.useId)(),w=void 0!==t?t:h,C=e.find((e=>m(e.value,w)));return(0,s.useEffect)((()=>{const e=e=>{f.current&&!f.current.contains(e.target)&&(g&&(null==_||_()),x(!1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[g,_]),(0,s.useEffect)((()=>{p&&("function"==typeof p?p(f.current):p.current=f.current)}),[p]),(0,n.jsxs)("div",{className:"DropdownSelect-module__DropdownSelect___OWk2r","data-theme":u,"data-disabled":c||void 0,ref:f,children:[a&&(0,n.jsx)("label",{className:"DropdownSelect-module__DropdownSelect__Label___XlC7L",children:a}),(0,n.jsxs)("div",{className:`DropdownSelect-module__DropdownSelect__Control___raPxd ${g?"DropdownSelect-module__DropdownSelect__Control--Active___Awttq":""} ${r?"DropdownSelect-module__DropdownSelect__Control--Error___u3Syw":""}`,onClick:()=>!c&&x(!g),children:[C?(0,n.jsx)("span",{className:"DropdownSelect-module__DropdownSelect__Value___qCL3f",children:C.label}):(0,n.jsx)("span",{className:"DropdownSelect-module__DropdownSelect__Placeholder___wxVcj",children:o}),(0,n.jsx)("div",{className:"DropdownSelect-module__DropdownSelect__Arrow___hofV5 "+(g?"DropdownSelect-module__DropdownSelect__Arrow--Open___wokiO":""),children:(0,n.jsx)("svg",{width:"12",height:"8",viewBox:"0 0 12 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M1.41 0.589996L6 5.17L10.59 0.589996L12 2L6 8L0 2L1.41 0.589996Z",fill:"currentColor"})})})]}),g&&(0,n.jsx)("div",{className:"DropdownSelect-module__DropdownSelect__MenuWrapper___yrl7l",children:(0,n.jsx)("ul",{className:"DropdownSelect-module__DropdownSelect__Menu___oxPbB",children:e.map(((e,a)=>(0,n.jsx)("li",{className:`DropdownSelect-module__DropdownSelect__Option___eCqGZ ${m(e.value,w)?"DropdownSelect-module__DropdownSelect__Option--Selected___Sfh4y":""} ${e.disabled?"DropdownSelect-module__DropdownSelect__Option--Disabled___jeSu2":""}`,"aria-disabled":e.disabled||void 0,onClick:()=>(e=>{c||e.disabled||(v(e.value),null==i||i(e.value),x(!1))})(e),children:e.label},`${a}-${j}`)))})}),(0,n.jsx)("input",{type:"hidden",name:d,value:"object"==typeof w&&null!==w?JSON.stringify(w):String(null!=w?w:""),onChange:()=>{}}),r&&(0,n.jsx)("span",{className:"DropdownSelect-module__DropdownSelect__Error___O5kYY",children:r})]})}));r.displayName="DropdownSelect";var t=r}}]);

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.