1import{_ as v}from"./nuxt-link.6YMtLx5r.js";import{S as D,a as x,A as S,P as Y,N as w}from"./swiper-vue.4RkbygNk.js";import{a as u,h as n}from"./moment.3tWVMDpY.js";import{_ as y}from"./logo_econoPro.b3Wz4EYU.js";import{_ as b,n as f,o as m,c as h,b as p,w as g,s as M,a as t,d as E,u as q}from"./entry.uXbneC7g.js";const C={components:{Swiper:D,SwiperSlide:x},props:{notaData:{type:Object,required:!1},statusEntrega:{type:String,required:!1},descricaoMaxSeq:{type:String,required:!1},dataPrev:{type:String,required:!1},dataEmissao:{type:String,required:!1}},data(){return{logoSrc:null,empreConf:null,loadingData:!0,blobUrlWhite:null}},setup(){return{modules:[S,Y,w]}},mounted(){console.log("mounted page"),u.get("api/emprconf").then(a=>{console.log("then axios atualizando emprconf"),console.log(a.data[0]);const e={cnpj:a.data[0].cnpj,nome:a.data[0].fantasia,layout:a.data[0].layout,width:a.data[0].width,sidebar:a.data[0].sidebar,logow:a.data[0].logow,logob:a.data[0].logob,regtrib:a.data[0].regtrib};localStorage.setItem("emprconf",JSON.stringify(e)),this.empreConf=e,console.log("empreConf: ",this.empreConf),console.log("empreConf.logow: ",this.empreConf.logow),this.empreConf&&(this.empreConf.logow||this.empreConf.logob)?(console.log("getfile"),u.get("api/getfile",{responseType:"blob",params:{pathData:this.empreConf.logow??this.empreConf.logob}}).then(s=>{console.log("baixararq"),console.log(s),s.data&&s.data.size>0&&(this.blobUrlWhite=URL.createObjectURL(s.data)),this.loadingData=!1}).catch(s=>{console.log("erro logo"),console.log(s),this.loadingData=!1})):this.loadingData=!1})},methods:{}},k={class:"banner-section"},P=t("div",{class:"bg-image",style:{"background-image":"url(/images/main-slider/3.jpg)"}},null,-1),N={class:"auto-container"},$={class:"row"},I={class:"content-column col-lg-7 col-md-12 col-sm-12"},U={class:"content-box"},j={class:"btn-box animate-3",style:{position:"absolute",top:"-20ch",right:"70ch"}},B={class:"logo"},H=["src"],O={key:1,src:y,alt:"",height:"60",style:{"max-width":"250px",position:"relative",left:"3ch","margin-top":"21ch"}},z=t("div",null,[t("h1",{class:"text-white"}," Tracking Externo ")],-1),L=t("br",null,null,-1),R=t("br",null,null,-1),T={class:"btn-box animate-4 d-flex gap-5 mt-5"},V=t("span",{class:"btn-title"},"Tracking",-1),W=[V],A=t("span",{class:"btn-title"},"Dashboard",-1),J=[A],F=t("div",{style:{"margin-top":"-17ch","margin-left":"46ch",position:"relative"}},[t("div",null,[t("br"),t("br"),t("br"),t("br"),t("br"),t("br"),t("br"),t("br"),t("br"),t("br"),t("br"),t("br"),t("br"),t("br"),t("br")])],-1),G={ref:"targetRef"};function K(a,e,s,l,o,r){const i=v,c=f("swiper-slide"),d=f("swiper");return m(),h("section",k,[p(d,{"slides-per-view":1,"space-between":30,loop:!0,autoplay:{delay:8e3,disableOnInteraction:!0},pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".h1n",prevEl:".h1p"},modules:l.modules,class:"banner-carousel owl-carousel owl-theme"},{default:g(()=>[p(c,{class:"slide-item"},{default:g(()=>[P,t("div",N,[t("div",$,[t("div",I,[t("div",U,[t("div",j,[t("div",B,[p(i,{onClick:e[0]||(e[0]=_=>a.$router.push("/track-nota"))},{default:g(()=>[o.blobUrlWhite?(m(),h("img",{key:0,src:o.blobUrlWhite,alt:"",height:"60",style:{"max-width":"250px",position:"relative",left:"3ch","margin-top":"21ch"}},null,8,H)):o.loadingData?M("",!0):(m(),h("img",O))]),_:1})])]),z,L,E(),R,t("div",T,[t("button",{onClick:e[1]||(e[1]=_=>a.$router.push("/track-nota")),class:"theme-btn btn-style-one alternate",style:{"font-size":"18px",padding:"22px 40px","min-width":"150px"}},W),t("button",{onClick:e[2]||(e[2]=_=>a.$router.push("/dashboard")),class:"theme-btn btn-style-one alternate",style:{"font-size":"18px",padding:"22px 40px","min-width":"150px"}},J)])])]),F])])]),_:1}),t("div",G,null,512)]),_:1},8,["pagination","navigation","modules"])])}const Q=b(C,[["render",K]]),X={data(){return{statusEntrega:"",notaData:null,notaStatusData:null,chaveNota:"",descEntrega:"",dataEmissao:"",dataPrev:""}},mounted(){let a=new URLSearchParams(window.location.search);a.has("ch")?(console.log("possui_chave"),this.chaveNota=a.get("ch")):console.log("nao_possui_chave");let e="";a.has("idmov")?(console.log("possui_idmov"),e=a.get("idmov")):console.log("nao_possui_idmov"),u.get("api/consnfabe",{params:{chave:this.chaveNota,idmov:e}}).then(s=>{if(console.log("then axios rastreio nfAbe"),console.log(s.data),this.notaData=s.data[0],this.notaStatusData=s.data[1],this.notaData&&this.notaData.obsentr&&this.notaData.obsentr!==""){if(this.statusEntrega=this.notaData.obsentr.substring(0,40)+"...",this.notaStatusData.length>0){const i=this.notaStatusData[0];let c=i.descricao,d=c.indexOf(` 2`);d!==-1?this.descricaoMaxSeq=c.substring(0,d)+` 3`+n(i.data).format("DD/MM/YYYY","HH:mm:ss"):this.descricaoMaxSeq=c+` 4`+n(i.data).format("DD/MM/YYYY","HH:mm:ss")}else this.descricaoMaxSeq="Não encontrado.";const o=this.notaData,r=this.notaStatusData[0];this.dataEmissao=n(o.dtemissao).format("DD/MM/YYYY"),r.tipo==="Entrega"?this.dataPrev=n(r.data).format("DD/MM/YYYY"):this.dataPrev=n(o.dtpreventr).format("DD/MM/YYYY"),console.log("maxSeqItem.tipo"),console.log(r.tipo)}else if(this.notaData&&this.notaData.codigo&&this.notaData.codigo!==""){this.statusEntrega="Documento encontrado, nota fiscal emitida.";const o=this.notaData;this.dataEmissao=n(o.dtemissao).format("DD/MM/YYYY"),maxSeqItem.tipo==="Entrega"?this.dataPrev=n(maxSeqItem.data).format("DD/MM/YYYY"):this.dataPrev=n(o.dtpreventr).format("DD/MM/YYYY")}else this.statusEntrega="Documento não encontrado";let l=0;this.notaStatusData.forEach(o=>{o.seq=this.notaStatusData.length-l,l++})})}};function Z(a,e,s,l,o,r){const i=Q;return m(),q(i,{"nota-data":o.notaData,"status-entrega":o.statusEntrega,"descricao-Max-Seq":a.descricaoMaxSeq,"data-Emissao":o.dataEmissao,"data-Prev":o.dataPrev}
4,null,8,["nota-data","status-entrega","descricao-Max-Seq","data-Emissao","data-Prev"])}const nt=b(X,[["render",Z]]);export{nt 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.