1import{_ as ne}from"./BbQKD3pX.js";import{_ as le}from"./sxn09hd0.js";import{r as N,h as re,u as ie,k as ae,e as de,B as ue,g as K,i as Q,c as r,a as t,b as k,w as ce,I as g,Q as M,m as s,p as Y,d as x,F as I,q as c,t as f,J as U,v as q,z as b,n as B,C as pe,R as fe,y as me,o as n}from"./DXt7zehR.js";import{_ as xe}from"./DYNtHvlO.js";(function(){try{var p=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};p.SENTRY_RELEASE={id:"557ffdf88a39e7b62acd0c335856c279ba2a4abc"};var v=new p.Error().stack;v&&(p._sentryDebugIds=p._sentryDebugIds||{},p._sentryDebugIds[v]="f2602855-7a2b-4683-9dfc-29f1ba7eea11",p._sentryDebugIdIdentifier="sentry-dbid-f2602855-7a2b-4683-9dfc-29f1ba7eea11")}catch{}})();class be{constructor(v,d){d&&(d&&d.data&&(d.data.non_field_errors||typeof d.data=="object")?Object.assign(this,d.data):this.non_field_errors=[`${d.name}: ${d.message}`])}}const ve=/([0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12})/gi;function ye(p,v){if(p||v){const d=new XMLHttpRequest;d.open("GET",p,!0),d.responseType="blob",d.onload=function(){if(this.status==200){const R=this.response,S=window.URL.createObjectURL(new Blob([R])),a=document.createElement("a");a.href=S,a.download=v||p.substring(p.lastIndexOf("/")+1,p.length),a.click()}},d.send()}else console.log("No se ha encontrado el archivo a descargar")}function ge(p){if(p){const v=p.slice(p.lastIndexOf("/")+1),d=v.match(ve);if(d){const R=d[0];return v.replace(`.${R}`,"")}return v}}class F{constructor({}={}){}static get SIN_DOCUMENTO(){return"-"}static get DOC_TRIB_NO_DOM_SIN_RUC(){return"0"}static get DNI(){return"1"}static get CARNET_DE_EXTRANJERIA(){return"4"}static get RUC(){return"6"}static get PASAPORTE(){return"7"}static get types(){return[{id:F.RUC,name:"RUC"},{id:F.DNI,name:"DNI"},{id:F.SIN_DOCUMENTO,name:"Sin documento"},{id:F.DOC_TRIB_NO_DOM_SIN_RUC,name:"No domiciliado"},{id:F.PASAPORTE,name:"Pasaporte"}]}}class j{constructor({}={}){}static get GUIA_REMISION_REMITENTE(){return"09"}static get GUIA_REMISION_TRANSPORTISTA(){return"31"}static get types(){return[{id:j.GUIA_REMISION_REMITENTE,name:"Guia de remisión remitente"}]}}class A{constructor({}={}){}static get FACTURA(){return"01"}static get BOLETA(){return"03"}static get NOTA_CREDITO(){return"07"}static get NOTA_DEBITO(){return"08"}static get CONTADO(){return"1"}static get CREDITO(){return"2"}static get types(){return[{id:A.FACTURA,name:"Factura"},{id:A.BOLETA,name:"Boleta de Venta"},{id:A.NOTA_CREDITO,name:"Nota de crédito"},{id:A.NOTA_DEBITO,name:"Nota de débito"}]}}const we=()=>{const p=N({});return{setFocus:(R,S)=>{p.value[R]=S},isFocused:R=>p.value[R]||!1}},he={class:"consult-view pb-16 sm:pb-24"},ke={class:"border-b border-gray-200"},_e={class:"mx-auto max-w-7xl"},Ee={class:"flex items-center px-6 py-6"},Te={class:"flex-1"},Ce=["disabled"],Re=["disabled"],De={class:"mx-auto max-w-4xl p-6"},Ue={key:0,class:"pt-9 pb-12 text-4xl font-black sm:pt-14"},Ne={key:0,class:"flex flex-wrap"},Fe={class:"w-full sm:w-1/2 sm:pr-6 md:w-3/5"}
1,Ae={key:0,class:"font-book mb-6 flex items-center gap-4 rounded-3xl bg-gray-100 px-6 py-6 sm:gap-5 sm:px-9"},Ie={class:"leading-relaxed"},Se={class:"pb-6"},Oe={class:"relative"},$e={class:"pb-6"},Be={class:"relative"},Ve=["value"],Me={class:"flex flex-col items-center gap-6 pb-6 md:flex-row"},Le={class:"w-full flex-1"},Pe={class:"relative"},je={class:"w-full flex-1"},Ge={class:"relative"},qe={class:"pb-9"},ze={class:"relative"},Xe={class:"shadow-paper mt-10 ml-auto block w-full rounded-4xl border border-black px-9 py-12 sm:mt-0 md:w-72"},He={class:"text-center leading-relaxed"},Je={class:"text-sm"},Ke={class:"mt-2 font-bold uppercase"},Qe={class:"mt-1 font-bold"},Ye={class:"mt-3 text-sm"},We={class:"w-full"},Ze={class:"font-bold"},et={colspan:"2",class:"text-right"},tt={key:1,class:"shadow-paper mx-auto max-w-lg rounded-4xl border border-black px-9 py-9 leading-loose sm:mt-12 sm:px-16 sm:py-16 sm:text-lg sm:leading-loose"},st={class:"mb-4 text-center sm:mb-5"},ot={class:"font-black"},nt={class:"font-medium"},lt={class:"font-medium"},rt={class:"flex items-center"},it={class:"flex items-center"},at={class:"flex items-center"},dt={class:"flex items-center"},ut={class:"mt-8"},ct={class:"flex gap-3 sm:gap-6"},pt={class:"mt-6 text-center sm:mt-10"},ft={class:"mt-6 block text-center sm:mt-10 sm:hidden"},mt={key:0},xt={key:1},bt={key:0,class:"flex flex-wrap"},vt={class:"w-full sm:w-1/2 sm:pr-9 lg:pr-3"}
1,yt={key:0,class:"font-book mb-6 flex items-center gap-4 rounded-3xl bg-gray-100 px-6 py-6 sm:gap-5 sm:px-9"},gt={class:"leading-relaxed"},wt={class:"pb-6"},ht={class:"relative"},kt={class:"pb-6"},_t={class:"relative"},Et=["value"],Tt={class:"flex flex-col items-center gap-6 pb-6 md:flex-row"},Ct={class:"w-full flex-1"},Rt={class:"relative"},Dt={class:"w-full flex-1"},Ut={class:"relative"},Nt={class:"pb-6"},Ft={class:"relative"},At={class:"flex flex-wrap pb-9"},It={class:"w-full pb-6 md:w-1/2 md:pb-0"},St={class:"relative"},Ot=["value"],$t={class:"w-full md:w-1/2 md:pl-6"},Bt={class:"relative"},Vt={class:"shadow-paper mt-10 ml-auto block w-full rounded-4xl border border-black px-6 py-12 sm:mt-0 md:w-[23rem] md:px-9"},Mt={class:"text-center leading-relaxed"},Lt={class:"text-sm"},Pt={class:"mt-2 font-bold uppercase"},jt={class:"mt-1 font-bold"},Gt={class:"relative mt-6 rounded-xl border border-black px-3 pt-3.5 pb-3"},qt={class:"text-sm leading-relaxed"},zt={class:"flex"},Xt={class:"flex"},Ht={key:1,class:"shadow-paper mx-auto max-w-lg rounded-4xl border border-black px-9 py-9 leading-loose sm:mt-12 sm:px-16 sm:py-16 sm:text-lg sm:leading-loose"},Jt={class:"mb-4 text-center sm:mb-5"},Kt={class:"font-black"},Qt={class:"font-medium"},Yt={class:"font-medium"},Wt={class:"leading-10"},Zt={class:"flex items-center"},es={class:"flex items-center"},ts={class:"flex"},ss={class:"text-right leading-8"},os={class:"pl-12"},ns={class:"mt-8"},ls={class:"flex gap-3 sm:gap-6"},rs={class:"mt-6 text-center sm:mt-10"},is={class:"mt-6 block text-center sm:mt-10 sm:hidden"},as={key:0},ds={key:1},W="Consulta Comprobante de Facturación Electrónica SUNAT · Susii",Z="Consulta la validez de un comprobante electrónico emitido por Susii. Susii es un sistema de facturación electrónica para Perú.",ms={__name:"index",setup(p){const v=Q(),d=re(),R=v.public.siteUrl+d.path,S=v.public.siteUrl+"/og/default.png";ie({title:W,link:[{rel:"canonical",href:R}]}),ae({description:Z,ogUrl:R,ogType:"website",ogTitle:W,ogDescription:Z,ogImage:S,twitterCard:"summary_large_image",twitterImage:S});const{setFocus:a}=we(),z=A.types,X=j.types,ee=F.types,_=N("invoices-option"),i=N({business__ruc:"",type:A.FACTURA,serial__serial:"",correlative:"",total:"",issue_date__date:"",receiver_document_type:F.RUC,receiver_document_number:""}),O=N(!1),w=N(!1),D=N(!1),m=N({}),h=N([!1,!1,!1,!1]),l=N({client:{},business:{}});de(async()=>{if(d.query.document){var u=d.query.document,e=atob(u),[V,E,y,o,P,J]=e.split("|");i.value={business__ruc:V,type:E,serial__serial:y,correlative:o,total:J},await ue(async()=>{await L()})}}),K(d,u=>{var e=u.query.document;if(e){var V=atob(e),[E,y,o,P,J,oe]=V.split("|");i.value={business_ruc:E,type:y,serial__serial:o,correlative:P,total:oe},L()}}),K(_,()=>{G()});const T=u=>{h.value[u]=!0},C=u=>{h.value[u]=!1};async function L(){O.value=!0;try{const u=await $fetch("/v1/documents/consult/",{baseURL:Q().public.apiBase,method:"POST",body:i.value});l.value=u,w.value=!0}catch(u){m.value=new be(null,u)}finally{O.value=!1}}function H(u){const e=new Date(u);return new Intl.DateTimeFormat("es-PE").format(e)}function G(){i.value={business__ruc:"",type:_.value==="invoices-option"?A.FACTURA:j.GUIA_REMISION_REMITENTE,serial__serial:"",correlative:"",total:"",issue_date__date:"",receiver_document_type:F.RUC,receiver_document_number:""},w.value=!1,l.value={client:{},business:{}},m.value={},fe().push({query:{}})}function $(u){ye(u,ge(u))}function te(u){if(u)return z.find(e=>e.id===u).name}function se(u){if(u)return X.find(e=>e.id===u).name}return(u,e)=>{const V=ne,E=me("font-awesome-icon"),y=le;return n(),r("div",he,[t("div",ke,[t("div",_e,[t("div",Ee,[t("div",Te,[k(V,{to:"/",class:"-ml-2 inline-flex size-14 items-center justify-center rounded-full hover:bg-gray-100"},{default:ce(()=>[...e[46]||(e[46]=[t("img",{src:xe,alt:"",class:"block size-10"},null,-1)])]),_:1})]),g(t("select",{name:"",class:"select-custom-options hidden appearance-none bg-no-repeat pr-12 pl-6 focus:shadow-none sm:block","onUpdate:modelValue":e[0]||(e[0]=o=>Y(_)?_.value=o:null),disabled:s(w)},[...e[47]||(e[47]=[t("option",{value:"invoices-option"},"Comprobantes electrónicos",-1),t("option",{value:"despatches-option"},"GuÃas de remisión electrónicas",-1)])],8,Ce),[[M,s(_)]]),g(t("select",{name:"",class:"select-custom-options block appearance-none bg-no-repeat pr-12 pl-6 focus:shadow-none sm:hidden","onUpdate:modelValue":e[1]||(e[1]=o=>Y(_)?_.value=o:null),disabled:s(w)},[...e[48]||(e[48]=[t("option",{value:"invoices-option"},"Comprobantes electrónicos",-1),t("option",{value:"despatches-option"},"GuÃas de remisión",-1)])],8,Re),[[M,s(_)]])])])]),t("div",De,[s(w)?c("",!0):(n(),r("div",Ue,[e[49]||(e[49]=x(" Consulta ",-1)),s(_)==="invoices-option"?(n(),r(I,{key:0},[x("comprobante")],64)):c("",!0),s(_)==="despatches-option"?(n(),r(I,{key:1},[x("guÃa")],64)):c("",!0)])),s(_)==="invoices-option"?(n(),r(I,{key:1},[s(w)?c("",!0):(n(),r("div",Ne,[t("div",Fe,[s(m).detail?(n(),r("div",Ae,[k(E,{icon:["fas","circle-xmark"],class:"text-4xl text-yellow-500"}),t("div",Ie,f(s(m).detail),1)])):c("",!0),t("div",Se,[t("div",Oe,[g(t("input",{placeholder:" ",class:"peer font-book shadow-off hover:shadow-in focus:shadow-on h-16 w-full appearance-none rounded-3xl border-0 px-6 pt-6 pb-2 leading-none shadow-gray-500 transition-shadow duration-300 hover:shadow-gray-500 focus:shadow-gray-900 focus:outline-none",id:"inputRuc",type:"text",autocomplete:"off",tabindex:"1","onUpdate:modelValue":e[2]||(e[2]=o=>s(i).business__ruc=o),onFocus:e[3]||(e[3]=o=>(s(a)("type",!0),T(0))),onBlur:e[4]||(e[4]=o=>(s(a)("type",!1),C(0)))},null,544),[[U,s(i).business__ruc]]),e[50]||(e[50]=t("label",{class:"absolute top-0 left-0 mt-5 ml-6 block -translate-y-2 cursor-text text-xs text-gray-400 transition-all duration-300 ease-in-out peer-placeholder-shown:-translate-y-0 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-translate-y-2 peer-focus:text-xs peer-focus:text-gray-400",for:"inputRuc"},"RUC",-1))]),k(y,{codeErrors:s(m).business__ruc},null,8,["codeErrors"])]),t("div",$e,[t("div",Be,[e[51]||(e[51]=t("label",{class:"absolute top-0 left-0 mt-5 ml-6 block -translate-y-2 cursor-text text-xs text-gray-400 transition-all duration-300 ease-in-out peer-placeholder-shown:-translate-y-0 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-translate-y-2 peer-focus:text-xs peer-focus:text-gray-400",for:"inputType"},"Tipo",-1)),g(t("select",{class:"contact-select font-book",id:"inputType",tabindex:"2","onUpdate:modelValue":e[5]||(e[5]=o=>s(i).type=o),onFocus:e[6]||(e[6]=o=>
1(s(a)("type",!0),T(1))),onBlur:e[7]||(e[7]=o=>(s(a)("type",!1),C(1)))},[(n(!0),r(I,null,q(s(z),(o,P)=>(n(),r("option",{key:P,value:o.id},f(o.name),9,Ve))),128))],544),[[M,s(i).type]])]),k(y,{codeErrors:s(m).type},null,8,["codeErrors"])]),t("div",Me,[t("div",Le,[t("div",Pe,[g(t("input",{placeholder:" ",class:"peer font-book shadow-off hover:shadow-in focus:shadow-on h-16 w-full appearance-none rounded-3xl border-0 px-6 pt-6 pb-2 leading-none shadow-gray-500 transition-shadow duration-300 hover:shadow-gray-500 focus:shadow-gray-900 focus:outline-none",id:"inputSerie",type:"text",autocomplete:"off",tabindex:"3","onUpdate:modelValue":e[8]||(e[8]=o=>s(i).serial__serial=o),onFocus:e[9]||(e[9]=o=>(s(a)("type",!0),T(2))),onBlur:e[10]||(e[10]=o=>(s(a)("type",!1),C(2)))},null,544),[[U,s(i).serial__serial]]),e[52]||(e[52]=t("label",{class:"absolute top-0 left-0 mt-5 ml-6 block -translate-y-2 cursor-text text-xs text-gray-400 transition-all duration-300 ease-in-out peer-placeholder-shown:-translate-y-0 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-translate-y-2 peer-focus:text-xs peer-focus:text-gray-400",for:"inputSerie"},"Serie",-1))]),k(y,{codeErrors:s(m).serial__serial},null,8,["codeErrors"])]),t("div",je,[t("div",Ge,[g(t("input",{placeholder:" ",class:"peer font-book shadow-off hover:shadow-in focus:shadow-on h-16 w-full appearance-none rounded-3xl border-0 px-6 pt-6 pb-2 leading-none shadow-gray-500 transition-shadow duration-300 hover:shadow-gray-500 focus:shadow-gray-900 focus:outline-none",id:"inputNumber",type:"text",autocomplete:"off",tabindex:"4","onUpdate:modelValue":e[11]||(e[11]=o=>s(i).correlative=o),onFocus:e[12]||(e[12]=o=>(s(a)("type",!0),T(3))),onBlur:e[13]||(e[13]=o=>(s(a)("type",!1),C(3)))},null,544),[[U,s(i).correlative]]),e[53]||(e[53]=t("label",{class:"absolute top-0 left-0 mt-5 ml-6 block -translate-y-2 cursor-text text-xs text-gray-400 transition-all duration-300 ease-in-out peer-placeholder-shown:-translate-y-0 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-translate-y-2 peer-focus:text-xs peer-focus:text-gray-400",for:"inputNumber"},"Número",-1))]),k(y,{codeErrors:s(m).correlative}
1,null,8,["codeErrors"])])]),t("div",qe,[t("div",ze,[g(t("input",{placeholder:" ",class:"peer font-book shadow-off hover:shadow-in focus:shadow-on h-16 w-full appearance-none rounded-3xl border-0 px-6 pt-6 pb-2 leading-none shadow-gray-500 transition-shadow duration-300 hover:shadow-gray-500 focus:shadow-gray-900 focus:outline-none",id:"inputTotal",type:"number",autocomplete:"off",tabindex:"5","onUpdate:modelValue":e[14]||(e[14]=o=>s(i).total=o),onFocus:e[15]||(e[15]=o=>(s(a)("type",!0),T(4))),onBlur:e[16]||(e[16]=o=>(s(a)("type",!1),C(4)))},null,544),[[U,s(i).total]]),e[54]||(e[54]=t("label",{class:"absolute top-0 left-0 mt-5 ml-6 block -translate-y-2 cursor-text text-xs text-gray-400 transition-all duration-300 ease-in-out peer-placeholder-shown:-translate-y-0 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-translate-y-2 peer-focus:text-xs peer-focus:text-gray-400",for:"inputTotal"},"Importe total",-1))]),k(y,{codeErrors:s(m).total},null,8,["codeErrors"])]),t("button",{class:b(["hover:bg-susii-red-600 relative flex h-16 w-full items-center justify-center rounded-full px-12 text-lg leading-none font-bold text-white focus:outline-none",s(O)?"bg-susii-red-300 pointer-events-none":"bg-susii-red-700"]),onClick:L},[s(O)?(n(),B(E,{key:0,class:"mr-3 text-xl",icon:["fad","spinner-third"],style:{"--fa-animation-duration":"1.25s"},spin:""})):c("",!0),e[55]||(e[55]=x(" Consultar ",-1))],2)]),s(w)?c("",!0):(n(),r("div",{key:0,class:b(["hidden w-full sm:block sm:w-1/2 sm:pl-3 md:w-2/5 md:pl-0",{"result-container":s(D)==!0}])},[t("div",Xe,[t("div",He,[e[63]||(e[63]=t("div",{class:"mb-1 font-extrabold uppercase"},"Empresa Ejemplo S.A.C.",-1)),t("div",Je,[e[62]||(e[62]=t("div",null,"Calle #1 - Perú",-1)),t("div",null,[e[56]||(e[56]=x(" R.U.C. Nº ",-1)),e[57]||(e[57]=t("span",{class:"decoration-susii-red-700 inline-block underline decoration-2 underline-offset-4 sm:hidden"},"20123456789",-1)),t("span",{class:b(["hidden underline decoration-2 underline-offset-4 transition duration-300 ease-in-out sm:inline-block",s(h)[0]?"decoration-susii-red-700":"decoration-white"])},"20123456789",2)]),t("div",Ke,[t("span",{class:b(["hidden underline decoration-2 underline-offset-4 transition duration-300 ease-in-out sm:inline-block",s(h)[1]?"decoration-susii-red-700":"decoration-white"])},"Factura Electrónica",2),e[58]||(e[58]=t("span",{class:"decoration-susii-red-700 inline-block underline decoration-2 underline-offset-4 sm:hidden"},"Factura Electrónica",-1))]),t("div",Qe,[t("span",{class:b(["hidden underline decoration-2 underline-offset-4 transition duration-300 ease-in-out sm:inline-block",s(h)[2]?"decoration-susii-red-700":"decoration-white"])},"F001",2),e[59]||(e[59]=t("span",{class:"decoration-susii-red-700 inline-block underline decoration-2 underline-offset-4 sm:hidden"},"F001",-1)),e[60]||(e[60]=x(" - ",-1)),t("span",{class:b(["hidden underline decoration-2 underline-offset-4 transition duration-300 ease-in-out sm:inline-block",s(h)[3]?"decoration-susii-red-700":"decoration-white"])},"25",2),e[61]||(e[61]=t("span",{class:"decoration-susii-red-700 inline-block underline decoration-2 underline-offset-4 sm:hidden"},"25",-1))])])]),e[71]||(e[71]=t("div",{class:"mt-4 text-sm leading-relaxed"},[t("div",null,[t("strong",null,"Cliente"),x(": Empresa S.A.")]),t("div",null,[t("strong",null,"RUC"),x(": 20987654321")]),t("div",null,[t("strong",null,"Dirección"),x(": Calle ABC #2 - Perú")])],-1)),t("div",Ye,[t("table",We,[e[69]||(e[69]=t("thead",null,[t("tr",{class:"border-t border-b border-black"},[t("th",{scope:"col",class:"text-left"},"Cant."),t("th",{scope:"col",class:"text-left"},"Desc."),t("th",{scope:"col",class:"text-right"},"P. Unit"),t("th",{scope:"col",class:"text-right",style:{width:"55px"}},"TOTAL")])],-1)),e[70]||(e[70]=t("tbody",null,[t("tr",{class:"border-b border-black"},[t("td",null,"1 NIU"),t("td",{class:"pr-2"},"Producto"),t("td",{class:"text-right"},"100.00"),t("td",{class:"text-right"},"100.00")])],-1)),t("tfoot",null,[e[67]||(e[67]=t("tr",null,[t("td",{colspan:"2",class:"pt-3"},"SUB TOTAL"),t("td",{colspan:"2",class:"pt-3 text-right"},"S/ 84.75")],-1)),e[68]||(e[68]=t("tr",null,[t("td",{colspan:"2"},"I.G.V."),t("td",{colspan:"2",class:"text-right"},"S/ 15.25")],-1)),t("tr",Ze,[e[66]||(e[66]=t("td",{colspan:"2"},"TOTAL",-1)),t("td",et,[e[64]||(e[64]=x(" S/ ",-1)),t("span",{class:b(["hidden underline decoration-2 underline-offset-4 transition duration-300 ease-in-out sm:inline-block",s(h)[4]?"decoration-susii-red-700":"decoration-white"])},"100.00",2),e[65]||(e[65]=t("span",{class:"decoration-susii-red-700 inline-block underline decoration-2 underline-offset-4 sm:hidden"},"100.00",-1))])])])])])])],2))])),s(w)&&s(l)&&s(l).id?(n(),r("div",tt,[t("div",st,[t("div",ot,f(s(l).business_name),1),t("div",nt,"R.U.C. N° "+f(s(l).business_document_number),1),t("div",lt,f(s(l).document_name),1)]),t("div",rt,[e[72]||(e[72]=t("div",{class:"flex-1 font-medium"}
1,"Tipo de documento",-1)),t("div",null,f(te(s(l).type)),1)]),t("div",it,[e[73]||(e[73]=t("div",{class:"flex-1 font-medium"},"Cliente",-1)),t("div",null,f(s(l).client_name),1)]),t("div",at,[e[74]||(e[74]=t("div",{class:"flex-1 font-medium"},"Fecha de emisión",-1)),t("div",null,f(H(s(l).issue_date)),1)]),t("div",dt,[e[75]||(e[75]=t("div",{class:"flex-1 font-medium"},"Total",-1)),t("div",null,f(s(l).total)+" "+f(s(l).currency),1)]),t("div",ut,[e[76]||(e[76]=t("div",{class:"font-book mb-3 text-base"},"Descargar",-1)),t("div",ct,[s(l).pdf_file?(n(),r("a",{key:0,class:"hover:bg-susii-red-600 bg-susii-red-700 inline-block w-full cursor-pointer rounded-full px-3 py-3 text-center text-base leading-none font-bold text-white",href:"javascript:void(0)",onClick:e[17]||(e[17]=o=>$(s(l).pdf_file))}," PDF ")):c("",!0),s(l).xml_file?(n(),r("a",{key:1,class:"hover:bg-susii-red-600 bg-susii-red-700 inline-block w-full cursor-pointer rounded-full px-3 py-3 text-center text-base leading-none font-bold text-white",href:"javascript:void(0)",onClick:e[18]||(e[18]=o=>$(s(l).xml_file))}," XML ")):c("",!0),s(l).cdr_file?(n(),r("a",{key:2,class:"hover:bg-susii-red-600 bg-susii-red-700 inline-block w-full cursor-pointer rounded-full px-3 py-3 text-center text-base leading-none font-bold text-white",href:"javascript:void(0)",onClick:e[19]||(e[19]=o=>$(s(l).cdr_file))}," CDR ")):c("",!0)])]),t("div",pt,[t("button",{class:"font-book w-full rounded-full bg-white px-3 py-3 text-center text-base text-gray-700 underline decoration-gray-400 underline-offset-4 hover:text-black sm:w-64",href:"javascript:void(0)",onClick:e[20]||(e[20]=o=>G())}," Buscar otro comprobante ")])])):c("",!0),t("div",ft,[s(w)?c("",!0):(n(),r("button",{key:0,class:"font-book w-full rounded-full bg-white px-3 py-3 text-center text-base text-gray-700 underline decoration-gray-400 underline-offset-4 hover:text-black sm:w-64",onClick:e[21]||(e[21]=o=>D.value=!s(D))},[s(D)?(n(),r("span",xt,"Ocultar")):(n(),r("span",mt,"Ver")),e[77]||(e[77]=x(" ejemplo ",-1)),s(D)?(n(),B(E,{key:3,icon:["far","chevron-up"],class:"ml-1 text-xs"})):(n(),B(E,{key:2,icon:["far","chevron-down"],class:"ml-1 text-xs"}))]))])],64)):c("",!0),s(_)==="despatches-option"?(n(),r(I,{key:2},[s(w)?c("",!0):(n(),r("div",bt,[t("div",vt,[s(m).detail?(n(),r("div",yt,[k(E,{icon:["fas","circle-xmark"],class:"text-4xl text-yellow-500"}),t("div",gt,f(s(m).detail),1)])):c("",!0),t("div",wt,[t("div",ht,[g(t("input",{placeholder:" ",class:"peer font-book shadow-off hover:shadow-in focus:shadow-on h-16 w-full appearance-none rounded-3xl border-0 px-6 pt-6 pb-2 leading-none shadow-gray-500 transition-shadow duration-300 hover:shadow-gray-500 focus:shadow-gray-900 focus:outline-none",id:"inputRucDespatches",type:"text",autocomplete:"off",tabindex:"1","onUpdate:modelValue":e[22]||(e[22]=o=>s(i).business__ruc=o),onFocus:e[23]||(e[23]=o=>(s(a)("type",!0),T(0))),onBlur:e[24]||(e[24]=o=>(s(a)("type",!1),C(0)))},null,544),[[U,s(i).business__ruc]]),e[78]||(e[78]=t("label",{class:"absolute top-0 left-0 mt-5 ml-6 block -translate-y-2 cursor-text text-xs text-gray-400 transition-all duration-300 ease-in-out peer-placeholder-shown:-translate-y-0 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-translate-y-2 peer-focus:text-xs peer-focus:text-gray-400",for:"inputRucDespatches"},"RUC",-1))]),k(y,{codeErrors:s(m).business__ruc},null,8,["codeErrors"])]),t("div",kt,[t("div",_t,[e[79]||(e[79]=t("label",{class:"absolute top-0 left-0 mt-5 ml-6 block -translate-y-2 cursor-text text-xs text-gray-400 transition-all duration-300 ease-in-out peer-placeholder-shown:-translate-y-0 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-translate-y-2 peer-focus:text-xs peer-focus:text-gray-400",for:"inputTypeDespatches"},"Tipo",-1)),g(t("select",{class:"contact-select font-book",id:"inputTypeDespatches",tabindex:"2","onUpdate:modelValue":e[25]||(e[25]=o=>s(i).type=o),onFocus:e[26]||(e[26]=o=>(s(a)("type",!0),T(1))),onBlur:e[27]||(e[27]=o=>(s(a)("type",!1),C(1)))},[(n(!0),r(I,null,q(s(X),o=>(n(),r("option",{key:o.id,value:o.id},f(o.name),9,Et))),128))],544),[[M,s(i).type]])]),k(y,{codeErrors:s(m).type},null,8,["codeErrors"])]),t("div",Tt,[t("div",Ct,[t("div",Rt,[g(t("input",{placeholder:" ",class:"peer font-book shadow-off hover:shadow-in focus:shadow-on h-16 w-full appearance-none rounded-3xl border-0 px-6 pt-6 pb-2 leading-none shadow-gray-500 transition-shadow duration-300 hover:shadow-gray-500 focus:shadow-gray-900 focus:outline-none",id:"inputSerieDespatches",type:"text",autocomplete:"off",tabindex:"3","onUpdate:modelValue":e[28]||(e[28]=o=>s(i).serial__serial=o),onFocus:e[29]||(e[29]=o=>(s(a)("type",!0),T(2))),onBlur:e[30]||(e[30]=o=>(s(a)("type",!1),C(2)))},null,544),[[U,s(i).serial__serial]]),e[80]||(e[80]=t("label",{class:"absolute top-0 left-0 mt-5 ml-6 block -translate-y-2 cursor-text text-xs text-gray-400 transition-all duration-300 ease-in-out peer-placeholder-shown:-translate-y-0 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-translate-y-2 peer-focus:text-xs peer-focus:text-gray-400",for:"inputSerieDespatches"},"Serie",-1))]),k(y,{codeErrors:s(m).serial__serial},null,8,["codeErrors"])]),t("div",Dt,[t("div",Ut,[g(t("input",{placeholder:" ",class:"peer font-book shadow-off hover:shadow-in focus:shadow-on h-16 w-full appearance-none rounded-3xl border-0 px-6 pt-6 pb-2 leading-none shadow-gray-500 transition-shadow duration-300 hover:shadow-gray-500 focus:shadow-gray-900 focus:outline-none",id:"inputNumberDespatches",type:"text",autocomplete:"off",tabindex:"4","onUpdate:modelValue":e[31]||(e[31]=o=>s(i).correlative=o),onFocus:e[32]||(e[32]=o=>(s(a)("type",!0),T(3))),onBlur:e[33]||(e[33]=o=>(s(a)("type",!1),C(3)))},null,544),[[U,s(i).correlative]]),e[81]||(e[81]=t("label",{class:"absolute top-0 left-0 mt-5 ml-6 block -translate-y-2 cursor-text text-xs text-gray-400 transition-all duration-300 ease-in-out peer-placeholder-shown:-translate-y-0 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-translate-y-2 peer-focus:text-xs peer-focus:text-gray-400",for:"inputNumberDespatches"},"Número",-1))]),k(y,{codeErrors:s(m).correlative},null,8,["codeErrors"])])]),t("div",Nt,[t("div",Ft,[g(t("input",{id:"inputDateDespatches",type:"date",class:"peer font-book shadow-off hover:shadow-in focus:shadow-on h-16 w-full cursor-pointer appearance-none rounded-3xl border-0 px-6 pt-6 pb-2 leading-none shadow-gray-500 transition-shadow duration-300 hover:shadow-gray-500 focus:shadow-gray-900 focus:outline-none",tabindex:"5","onUpdate:modelValue":e[34]||(e[34]=o=>s(i).issue_date__date=o),onFocus:e[35]||(e[35]=o=>(s(a)("issue_date__date",!0),T(4))),onBlur:e[36]||(e[36]=o=>(s(a)("issue_date__date",!1),C(4)))},null,544),[[U,s(i).issue_date__date]]),t("label",{class:b(["absolute top-0 left-0 mt-5 ml-6 block -translate-y-2 cursor-text text-xs text-gray-400 transition-all duration-300 ease-in-out peer-placeholder-shown:-translate-y-0 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-translate-y-2 peer-focus:text-xs peer-focus:text-gray-400",{"text-base":!0,"-translate-y-2 text-xs text-gray-400":s(i).issue_date__date}]),for:"startDateInput"},"Fecha de emisión",2)])]),t("div",At,[t("div",It,[t("div",St,[e[82]||(e[82]=t("label",{class:"absolute top-0 left-0 mt-5 ml-6 block -translate-y-2 cursor-text text-xs text-gray-400 transition-all duration-300 ease-in-out peer-placeholder-shown:-translate-y-0 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-translate-y-2 peer-focus:text-xs peer-focus:text-gray-400",for:"typeReceiver"},"Documento de receptor",-1)),g(t("select",{class:"contact-select font-book",id:"typeReceiver",tabindex:"6","onUpdate:modelValue":e[37]||(e[37]=o=>s(i).receiver_document_type=o)},[(n(!0),r(I,null,q(s(ee),o=>(n(),r("option",{key:o.id,value:o.id},f(o.name),9,Ot))),128))],512),[[M,s(i).receiver_document_type]])]),k(y,{codeErrors:s(m).receiver_document_type},null,8,["codeErrors"])]),t("div",$t,[t("div",Bt,[g(t("input",{placeholder:" ",class:"peer font-book shadow-off hover:shadow-in focus:shadow-on h-16 w-full appearance-none rounded-3xl border-0 px-6 pt-6 pb-2 leading-none shadow-gray-500 transition-shadow duration-300 hover:shadow-gray-500 focus:shadow-gray-900 focus:outline-none",id:"inputNumberReceiver",type:"text",autocomplete:"off",tabindex:"7","onUpdate:modelValue":e[38]||(e[38]=o=>s(i).receiver_document_number=o),onFocus:e[39]||(e[39]=o=>(s(a)("type",!0),T(5))),onBlur:e[40]||(e[40]=o=>(s(a)("type",!1),C(5)))},null,544),[[U,s(i).receiver_document_number]]),e[83]||(e[83]=t("label",{class:"absolute top-0 left-0 mt-5 ml-6 block -translate-y-2 cursor-text text-xs text-gray-400 transition-all duration-300 ease-in-out peer-placeholder-shown:-translate-y-0 peer-placeholder-shown:text-base peer-placeholder-shown:text-gray-500 peer-focus:-translate-y-2 peer-focus:text-xs peer-focus:text-gray-400",for:"inputNumberReceiver"},"Número",-1))])])]),t("button",{class:b(["hover:bg-susii-red-600 relative flex h-16 w-full items-center justify-center rounded-full px-12 text-lg leading-none font-bold text-white focus:outline-none",s(O)?"bg-susii-red-300 pointer-events-none":"bg-susii-red-700"]),onClick:L},[s(O)?(n(),B(E,{key:0,class:"mr-3 text-xl",icon:["fad","spinner-third"],style:{"--fa-animation-duration":"1.25s"},spin:""})):c("",!0),e[84]||(e[84]=x(" Consultar ",-1))],2)]),s(w)?c("",!0):(n(),r("div",{key:0,class:b(["hidden w-full sm:block sm:w-1/2",{"result-container":s(D)==!0}])},[t("div",Vt,[t("div",Mt,[e[92]||(e[92]=t("div",{class:"mb-1 font-extrabold uppercase"},"Empresa Ejemplo S.A.C.",-1)),t("div",Lt,[e[91]||(e[91]=t("div",null,"Calle #1 - Perú",-1)),t("div",null,[e[85]||(e[85]=x(" R.U.C. Nº ",-1)),t("span",{class:b(["hidden underline decoration-2 underline-offset-4 transition duration-300 ease-in-out sm:inline-block",s(h)[0]?"decoration-susii-red-700":"decoration-white"])},"20123456789",2),e[86]||(e[86]=t("span",{class:"decoration-susii-red-700 inline-block underline decoration-2 underline-offset-4 sm:hidden"},"20123456789",-1))]),t("div",Pt,[t("span",{class:b(["hidden underline decoration-2 underline-offset-4 transition duration-300 ease-in-out sm:inline-block",s(h)[1]?"decoration-susii-red-700":"decoration-white"])},"GuÃa de remisión remitente electrónica",2),e[87]||(e[87]=t("span",{class:"decoration-susii-red-700 inline-block underline decoration-2 underline-offset-4 sm:hidden"},"GuÃa de remisión remitente electrónica",-1))]),t("div",jt,[t("span",{class:b(["hidden underline decoration-2 underline-offset-4 transition duration-300 ease-in-out sm:inline-block",s(h)[2]?"decoration-susii-red-700":"decoration-white"])},"T001",2),e[88]||(e[88]=t("span",{class:"decoration-susii-red-700 inline-block underline decoration-2 underline-offset-4 sm:hidden"},"T001",-1)),e[89]||(e[89]=x(" - ",-1)),t("span",{class:b(["hidden underline decoration-2 underline-offset-4 transition duration-300 ease-in-out sm:inline-block",s(h)[3]?"decoration-susii-red-700":"decoration-white"])},"56",2),e[90]||(e[90]=t("span",{class:"decoration-susii-red-700 inline-block underline decoration-2 underline-offset-4 sm:hidden"},"56",-1))])])]),t("fieldset",Gt,[e[100]||(e[100]=t("legend",{class:"absolute top-0 -mt-2 -ml-1 bg-white px-1 text-xs uppercase"}," Destinatario ",-1)),t("div",qt,[t("div",zt,[e[95]||(e[95]=t("div",{class:"mr-2 w-24"},[t("strong",null,"Fecha emisión")],-1)),t("div",null,[t("span",{class:b(["hidden underline decoration-2 underline-offset-4 transition duration-300 ease-in-out sm:inline-block",s(h)[4]?"decoration-susii-red-700":"decoration-white"])},"2023-10-30",2),e[93]||(e[93]=t("span",{class:"decoration-susii-red-700 inline-block underline decoration-2 underline-offset-4 sm:hidden"},"2023-10-30",-1)),e[94]||(e[94]=x(" 23:23 ",-1))])]),e[98]||(e[98]=t("div",{class:"flex"},[t("div",{class:"mr-2 w-24"},[t("strong",null,"Razón social")]),t("div",null,"America Movil Peru S.A.C")],-1)),t("div",Xt,[e[97]||(e[97]=t("div",{class:"mr-2 w-24"},[t("strong",null,"RUC")],-1)),t("div",null,[t("span",{class:b(["hidden underline decoration-2 underline-offset-4 transition duration-300 ease-in-out sm:inline-block",s(h)[5]?"decoration-susii-red-700":"decoration-white"])},"20467534026",2),e[96]||(e[96]=t("span",{class:"decoration-susii-red-700 inline-block underline decoration-2 underline-offset-4 sm:hidden"},"20467534026",-1))])]),e[99]||(e[99]=t("div",{class:"flex"},[t("div",{class:"mr-2 w-24"},[t("strong",null,"Dirección")]),t("div",null,"Av. Tacna 480 - Arequipa")],-1))])]),e[101]||(e[101]=pe('<fieldset class="relative mt-6 rounded-xl border border-black px-3 pt-3.5 pb-3"><legend class="absolute top-0 -mt-2 -ml-1 bg-white px-1 text-xs uppercase"> EnvÃo </legend><div class="text-sm leading-relaxed"><div class="flex"><div class="mr-2 w-32"><strong>Motivo de traslado</strong></div><div>Venta</div></div><div class="flex"><div class="mr-2 w-32"><strong>Fecha de envÃo</strong></div><div>30/10/2023</div></div><div class="flex"><div class="mr-2 w-32"><strong>Peso bruto total</strong></div><div>88 KGM</div></div><div class="flex"><div class="mr-2 w-32"><strong>Número de bultos</strong></div><div>8</div></div><div class="flex"><div class="mr-2 w-32"><strong>Punto de partida</strong></div><div> Lima / Lima / Lima <br> Las Rosas </div></div><div class="flex"><div class="mr-2 w-32"><strong>Punto de llegada</strong></div><div> Lima / Lima / Lima <br> Las Flores </div></div></div></fieldset><fieldset class="relative mt-6 rounded-xl border border-black px-3 pt-3.5 pb-3"><legend class="absolute top-0 -mt-2 -ml-1 bg-white px-1 text-xs uppercase"> Transporte </legend><div class="text-sm leading-relaxed"><div class="flex"><div class="mr-2 w-32"><strong>Tipo</strong></div><div>Transporte público</div></div><div class="flex"><div class="mr-2 w-32"><strong>Placa</strong></div><div>ASD456</div></div><div class="flex"><div class="mr-2 w-32"><strong>CategorÃa M1 o L</strong></div><div>Si</div></div></div></fieldset><div class="mt-6 text-sm"><table class="w-full"><thead><tr class="border-t border-b border-black"><th scope="col" class="text-left">Cant.</th><th scope="col" class="text-left">Unidad</th><th scope="col" class="text-left">Código</th><th scope="col" class="text-left">Descripción</th></tr></thead><tbody><tr class="border-b border-black"><td>1.00</td><td class="pr-2">Unidad</td><td class="pr-2.5 text-left">GC017</td><td class="text-left">Caricia peques 2.1 Kg</td></tr></tbody></table></div>',3))])],2))])),s(w)&&s(l)&&s(l).id?(n(),r("div",Ht,[t("div",Jt,[t("div",Kt,f(s(l).business.name),1),t("div",Qt,"R.U.C. N° "+f(s(l).business.ruc),1),t("div",Yt,f(s(l).document_name),1)]),t("div",Wt,[t("div",Zt,[e[102]||(e[102]=t("div",{class:"flex-1 font-medium"},"Tipo",-1)),t("div",null,f(se(s(l).type)),1)]),t("div",es,[e[103]||(e[103]=t("div",{class:"flex-1 font-medium"},"Fecha de emisión",-1)),t("div",null,f(H(s(l).issue_date)),1)]),t("div",ts,[e[104]||(e[104]=t("div",{class:"flex-1 font-medium"},"Destinatario",-1)),t("div",ss,[t("div",null,f(s(l).receiver_document_number),1),t("div",os,f(s(l).receiver_name),1)])])]),t("div",ns,[e[105]||(e[105]=t("div",{class:"font-book mb-3 text-base"}
1,"Descargar",-1)),t("div",ls,[s(l).pdf_file?(n(),r("a",{key:0,class:"hover:bg-susii-red-600 bg-susii-red-700 inline-block w-full cursor-pointer rounded-full px-3 py-3 text-center text-base leading-none font-bold text-white",href:"javascript:void(0)",onClick:e[41]||(e[41]=o=>$(s(l).pdf_file))}," PDF ")):c("",!0),s(l).xml_file?(n(),r("a",{key:1,class:"hover:bg-susii-red-600 bg-susii-red-700 inline-block w-full cursor-pointer rounded-full px-3 py-3 text-center text-base leading-none font-bold text-white",href:"javascript:void(0)",onClick:e[42]||(e[42]=o=>$(s(l).xml_file))}," XML ")):c("",!0),s(l).cdr_file?(n(),r("a",{key:2,class:"hover:bg-susii-red-600 bg-susii-red-700 inline-block w-full cursor-pointer rounded-full px-3 py-3 text-center text-base leading-none font-bold text-white",href:"javascript:void(0)",onClick:e[43]||(e[43]=o=>$(s(l).cdr_file))}," CDR ")):c("",!0)])]),t("div",rs,[t("button",{class:"font-book w-full rounded-full bg-white px-3 py-3 text-center text-base text-gray-700 underline decoration-gray-400 underline-offset-4 hover:text-black sm:w-64",href:"javascript:void(0)",onClick:e[44]||(e[44]=o=>G())}," Buscar otro comprobante ")])])):c("",!0),t("div",is,[s(w)?c("",!0):(n(),r("button",{key:0,class:"font-book w-full rounded-full bg-white px-3 py-3 text-center text-base text-gray-700 underline decoration-gray-400 underline-offset-4 hover:text-black sm:w-64",onClick:e[45]||(e[45]=o=>D.value=!s(D))},[s(D)?(n(),r("span",ds,"Ocultar")):(n(),r("span",as,"Ver")),e[106]||(e[106]=x(" ejemplo ",-1)),s(D)?(n(),B(E,{key:3,icon:["far","chevron-up"],class:"ml-1 text-xs"})):(n(),B(E,{key:2,icon:["far","chevron-down"],class:"ml-1 text-xs"}))]))])],64)):c("",!0)])])}}};export{ms as default};
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.