1import{_ as ie}from"./nuxt-link.5n5lduJU.js";import{a as R,h as L}from"./moment.Q3JOH8iv.js";import{_ as ye}from"./logo_econoPro.WpgB1ets.js";import{E as we,F as xe,G as ke,H as Te,I as Ce,J as De,K as Se,L as A,M as Pe,R as Ee,S as Ne,N as Me,T as Oe,O as je,P as Be,Q as Le,U as Re,V as Ae,W as Fe,X as $e,Y as qe,Z as ze,$ as Ve,a0 as He,a1 as Ue,a2 as Ie,C as Ye,a3 as Ge,u as X,s as V,c as w,a as e,a4 as We,a5 as Ke,a6 as Xe,a7 as Je,a8 as Qe,a9 as Ze,d as T,b as S,aa as et,ab as tt,ac as ot,ad as st,ae as at,af as nt,ag as it,ah as rt,ai as lt,aj as ct,ak as dt,al as ut,am as pt,an as ht,m as mt,ao as _t,ap as ft,aq as gt,A as bt,ar as vt,as as yt,at as wt,au as xt,av as kt,aw as Tt,ax as Ct,ay as Dt,az as St,aA as Pt,aB as Et,aC as Nt,aD as Mt,aE as Ot,aF as jt,aG as Bt,aH as Lt,aI as Rt,D as At,aJ as re,aK as Ft,aL as $t,l as qt,aM as zt,j as Vt,B as Ht,k as Ut,aN as It,z as Yt,aO as Gt,aP as Wt,aQ as Kt,aR as Xt,aS as Jt,x as Qt,o as g,e as Zt,y as eo,aT as to,p as oo,aU as so,aV as ao,aW as no,r as io,aX as ro,aY as lo,aZ as q,a_ as co,n as z,a$ as uo,b0 as po,b1 as ho,b2 as mo,b3 as _o,b4 as fo,b5 as go,b6 as bo,b7 as vo,b8 as yo,b9 as wo,ba as xo,bb as ko,t as _,bc as To,bd as Co,be as Do,bf as So,bg as Po,bh as Eo,bi as No,bj as Mo,bk as Oo,bl as jo,bm as Bo,bn as Lo,bo as Ro,bp as Ao,bq as Fo,br as $o,v as qo,bs as zo,bt as Vo,bu as Ho,bv as J,bw as Uo,bx as Io,by as Yo,h as Go,f as Wo,bz as Ko,bA as Xo,bB as Jo,w as B,bC as Qo,q as Q,bD as Z,bE as Zo,bF as es,bG as ts,_ as ee}from"./entry._hwtvpaD.js";/** 2* vue v3.4.14 3* (c) 2018-present Yuxi (Evan) You and Vue contributors 4* @license MIT
5**/const os=()=>{},ss=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:we,BaseTransitionPropsValidators:xe,Comment:ke,DeprecationTypes:Te,EffectScope:Ce,ErrorCodes:De,ErrorTypeStrings:Se,Fragment:A,KeepAlive:Pe,ReactiveEffect:Ee,Static:Ne,Suspense:Me,Teleport:Oe,Text:je,TrackOpTypes:Be,Transition:Le,TransitionGroup:Re,TriggerOpTypes:Ae,VueElement:Fe,assertNumber:$e,callWithAsyncErrorHandling:qe,callWithErrorHandling:ze,camelize:Ve,capitalize:He,cloneVNode:Ue,compatUtils:Ie,compile:os,computed:Ye,createApp:Ge,createBlock:X,createCommentVNode:V,createElementBlock:w,createElementVNode:e,createHydrationRenderer:We,createPropsRestProxy:Ke,createRenderer:Xe,createSSRApp:Je,createSlots:Qe,createStaticVNode:Ze,createTextVNode:T,createVNode:S,customRef:et,defineAsyncComponent:tt,defineComponent:ot,defineCustomElement:st,defineEmits:at,defineExpose:nt,defineModel:it,defineOptions:rt,defineProps:lt,defineSSRCustomElement:ct,defineSlots:dt,devtools:ut,effect:pt,effectScope:ht,getCurrentInstance:mt,getCurrentScope:_t,getTransitionRawChildren:ft,guardReactiveProps:gt,h:bt,handleError:vt,hasInjectionContext:yt,hydrate:wt,initCustomFormatter:xt,initDirectivesForSSR:kt,inject:Tt,isMemoSame:Ct,isProxy:Dt,isReactive:St,isReadonly:Pt,isRef:Et,isRuntimeOnly:Nt,isShallow:Mt,isVNode:Ot,markRaw:jt,mergeDefaults:Bt,mergeModels:Lt,mergeProps:Rt,nextTick:At,normalizeClass:re,normalizeProps:Ft,normalizeStyle:$t,onActivated:qt,onBeforeMount:zt,onBeforeUnmount:Vt,onBeforeUpdate:Ht,onDeactivated:Ut,onErrorCaptured:It,onMounted:Yt,onRenderTracked:Gt,onRenderTriggered:Wt,onScopeDispose:Kt,onServerPrefetch:Xt,onUnmounted:Jt,onUpdated:Qt,openBlock:g,popScopeId:Zt,provide:eo,proxyRefs:to,pushScopeId:oo,queuePostFlushCb:so,reactive:ao,readonly:no,ref:io,registerRuntimeCompiler:ro,render:lo,renderList:q,renderSlot:co,resolveComponent:z,resolveDirective:uo,resolveDynamicComponent:po,resolveFilter:ho,resolveTransitionHooks:mo,setBlockTracking:_o,setDevtoolsHook:fo,setTransitionHooks:go,shallowReactive:bo,shallowReadonly:vo,shallowRef:yo,ssrContextKey:wo,ssrUtils:xo,stop:ko,toDisplayString:_,toHandlerKey:To,toHandlers:Co,toRaw:Do,toRef:So,toRefs:Po,toValue:Eo,transformVNodeArgs:No,triggerRef:Mo,unref:Oo,useAttrs:jo,useCssModule:Bo,useCssVars:Lo,useModel:Ro,useSSRContext:Ao,useSlots:Fo,useTransitionState:$o,vModelCheckbox:qo,vModelDynamic:zo,vModelRadio:Vo,vModelSelect:Ho,vModelText:J,vShow:Uo,version:Io,warn:Yo,watch:Go,watchEffect:Wo,watchPostEffect:Ko,watchSyncEffect:Xo,withAsyncContext:Jo,withCtx:B,withDefaults:Qo,withDirectives:Q,withKeys:Z,withMemo:Zo,withModifiers:es,withScopeId:ts},Symbol.toStringTag,{value:"Module"})),as={data(){return{logoSrc:null,empreConf:null,loadingData:!0,blobUrlWhite:null}},name:"PageTitle",props:{title:{type:String}},mounted(){console.log("mounted page"),R.get("api/emprconf").then(o=>{console.log("then axios atualizando emprconf"),console.log(o.data[0]);const a={cnpj:o.data[0].cnpj,nome:o.data[0].fantasia,layout:o.data[0].layout,width:o.data[0].width,sidebar:o.data[0].sidebar,logow:o.data[0].logow,logob:o.data[0].logob,regtrib:o.data[0].regtrib};localStorage.setItem("emprconf",JSON.stringify(a)),this.empreConf=a,console.log("empreConf: ",this.empreConf),console.log("empreConf.logow: ",this.empreConf.logow),this.empreConf&&(this.empreConf.logow||this.empreConf.logob)?(console.log("getfile"),R.get("api/getfile",{responseType:"blob",params:{pathData:this.empreConf.logow??this.empreConf.logob}}).then(c=>{console.log("baixararq"),console.log(c),c.data&&c.data.size>0&&(this.blobUrlWhite=URL.createObjectURL(c.data)),this.loadingData=!1}).catch(c=>{console.log("erro logo"),console.log(c),this.loadingData=!1})):this.loadingData=!1})}},ns={class:"page-title",style:{"background-image":"url(/images/background/tracking.jpg)","margin-top":"-30ch"}},is={style:{"margin-bottom":"-7ch"}},rs={class:"logo",style:{display:"flex","align-items":"center"}},ls=["src"],cs={key:1,src:ye,alt:"",height:"60",style:{"max-width":"250px",position:"relative",left:"3ch","margin-top":"21ch"}},ds={class:"auto-container"},us={class:"title-outer"},ps={class:"title",style:{"font-size":"44px"}},hs={class:"page-breadcrumb"};function ms(o,a,c,m,d,r){const x=ie;return g(),w("section",ns,[e("div",is,[e("div",rs,[S(x,{onClick:a[0]||(a[0]=t=>o.$router.push("/track-nota"))},{default:B(()=>[d.blobUrlWhite?(g(),w("img",{key:0,src:d.blobUrlWhite,alt:"",height:"60",style:{"max-width":"250px",position:"relative",left:"3ch","margin-top":"21ch"}},null,8,ls)):d.loadingData?V("",!0):(g(),w("img",cs))]),_:1})]),e("div",ds,[e("div",us,[e("h1",ps,_(c.title),1),e("ul",hs,[e("li",null,[S(x,{to:"/track-nota"},{default:B(()=>[T("Tracking")]),_:1})]),e("li",null,_(c.title),1)])])])])])}const _s=ee(as,[["render",ms]]);var le=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fs(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}function gs(o){if(o.__esModule)return o;var a=o.default;if(typeof a=="function"){var c=function m(){return this instanceof m?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};c.prototype=a.prototype}else c={};return Object.defineProperty(c,"__esModule",{value:!0}
5),Object.keys(o).forEach(function(m){var d=Object.getOwnPropertyDescriptor(o,m);Object.defineProperty(c,m,d.get?d:{enumerable:!0,get:function(){return o[m]}})}),c}var ce={exports:{}};const de=gs(ss);(function(o,a){(function(m,d){o.exports=d(de)})(le,c=>(()=>{var m={878:(t,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.default=(h,n)=>{const y=h.__vccOpts||h;for(const[E,N]of n)y[E]=N;return y}},976:t=>{t.exports=c}},d={};function r(t){var p=d[t];if(p!==void 0)return p.exports;var h=d[t]={exports:{}};return m[t](h,h.exports,r),h.exports}r.d=(t,p)=>{for(var h in p)r.o(p,h)&&!r.o(t,h)&&Object.defineProperty(t,h,{enumerable:!0,get:p[h]})},r.o=(t,p)=>Object.prototype.hasOwnProperty.call(t,p),r.r=t=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var x={};return(()=>{r.r(x),r.d(x,{Component:()=>K,LoadingPlugin:()=>ge,default:()=>be,useLoading:()=>se});var t=r(976);function p(s){var f;typeof s.remove<"u"?s.remove():(f=s.parentNode)==null||f.removeChild(s)}function h(s,f,P){let D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const j=(0,t.h)(s,f,D),k=document.createElement("div");return k.classList.add("vld-container"),P.appendChild(k),(0,t.render)(j,k),j.component}function n(){return typeof window<"u"}const y=n()?window.HTMLElement:Object,E=["aria-busy"],N={class:"vl-icon"};function b(s,f,P,D,j,k){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{name:s.transition},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("div",{tabindex:"0",class:(0,t.normalizeClass)(["vl-overlay vl-active",{"vl-full-page":s.isFullPage}]),"aria-busy":s.isActive,"aria-label":"Loading",style:(0,t.normalizeStyle)({zIndex:s.zIndex})},[(0,t.createElementVNode)("div",{class:"vl-background",onClick:f[0]||(f[0]=(0,t.withModifiers)(function(){return s.cancel&&s.cancel(...arguments)},["prevent"])),style:(0,t.normalizeStyle)(s.bgStyle)},null,4),(0,t.createElementVNode)("div",N,[(0,t.renderSlot)(s.$slots,"before"),(0,t.renderSlot)(s.$slots,"default",{},()=>[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(s.loader),{color:s.color,width:s.width,height:s.height},null,8,["color","width","height"]))]),(0,t.renderSlot)(s.$slots,"after")])],14,E),[[t.vShow,s.isActive]])]),_:3},8,["name"])}const H={mounted(){this.enforceFocus&&document.addEventListener("focusin",this.focusIn)},methods:{focusIn(s){if(!this.isActive||s.target===this.$el||this.$el.contains(s.target))return;let f=this.container?this.container:this.isFullPage?null:this.$el.parentElement;(this.isFullPage||f&&f.contains(s.target))&&(s.preventDefault(),this.$el.focus())}},beforeUnmount(){document.removeEventListener("focusin",this.focusIn)}},te=["width","height","stroke"],U=[(0,t.createStaticVNode)('<g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="2"><circle stroke-opacity=".25" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.8s" repeatCount="indefinite"></animateTransform></path></g></g>',1)];function I(s,f,P,D,j,k){return(0,t.openBlock)(),(0,t.createElementBlock)("svg",{viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",width:s.width,height:s.height,stroke:s.color},U,8,te)}const oe=(0,t.defineComponent)({name:"spinner",props:{color:{type:String,default:"#000"},height:{type:Number,default:64},width:{type:Number,default:64}}});var M=r(878);const $=(0,M.default)(oe,[["render",I]]),G=["fill","width","height"],l=[(0,t.createStaticVNode)('<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity="0.3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;
59" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="0.5" to="0.5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>',3)];function u(s,f,P,D,j,k){return(0,t.openBlock)(),(0,t.createElementBlock)("svg",{viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:s.color,width:s.width,height:s.height},l,8,G)}const v=(0,t.defineComponent)({name:"dots",props:{color:{type:String,default:"#000"},height:{type:Number,default:240},width:{type:Number,default:60}}}),O=(0,M.default)(v,[["render",u]]),W=["height","width","fill"],pe=[(0,t.createStaticVNode)('<rect x="0" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="10" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="20" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate></rect>',3)];function he(s,f,P,D,j,k){return(0,t.openBlock)(),(0,t.createElementBlock)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",height:s.height,width:s.width,fill:s.color},pe,8,W)}const me=(0,t.defineComponent)({name:"bars",props:{color:{type:String,default:"#000"},height:{type:Number,default:40},width:{type:Number,default:40}}}),_e={Spinner:$,Dots:O,Bars:(0,M.default)(me,[["render",he]])},fe=(0,t.defineComponent)({name:"VueLoading",mixins:[H],props:{active:Boolean,programmatic:Boolean,container:[Object,Function,y],isFullPage:{type:Boolean,default:!0},enforceFocus:{type:Boolean,default:!0},lockScroll:Boolean,transition:{type:String,default:"fade"},canCancel:Boolean,onCancel:{type:Function,default:()=>{}},color:String,backgroundColor:String,opacity:Number,width:Number,height:Number,zIndex:Number,loader:{type:String,default:"spinner"}},components:_e,emits:["hide","update:active"],data(){return{isActive:this.active}},mounted(){document.addEventListener("keyup",this.keyPress)},methods:{cancel(){!this.canCancel||!this.isActive||(this.hide(),this.onCancel.apply(null,arguments))},hide(){this.$emit("hide"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout(()=>{const s=this.$el.parentElement;(0,t.render)(null,s),p(s)},150))},disableScroll(){this.isFullPage&&this.lockScroll&&document.body.classList.add("vl-shown")},enableScroll(){this.isFullPage&&this.lockScroll&&document.body.classList.remove("vl-shown")},keyPress(s){s.keyCode===27&&this.cancel()}},watch:{active(s){this.isActive=s},isActive:{handler(s){s?this.disableScroll():this.enableScroll()},immediate:!0}},computed:{bgStyle(){return{background:this.backgroundColor,opacity:this.opacity}}},beforeUnmount(){document.removeEventListener("keyup",this.keyPress)}}),K=(0,M.default)(fe,[["render",b]]);function se(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{show(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f;const k={...s,...P,...{programmatic:!0,lockScroll:!0,isFullPage:!1,active:!0}};let ae=k.container;k.container||(ae=document.body,k.isFullPage=!0);const ve={...f,...D};return{hide:h(K,k,ae,ve).ctx.hide}}}}const ge=function(s){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const D=se(f,P);s.config.globalProperties.$loading=D,s.provide("$loading",D)},be=K})(),x})())})(ce);var bs=ce.exports;const vs=fs(bs);var ue={exports:{}};(function(o,a){(function(m,d){o.exports=d(de)})(le,c=>(()=>{var m={772:(t,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.default=(h,n)=>{const y=h.__vccOpts||h;for(const[E,N]of n)y[E]=N;return y}},976:t=>{t.exports=c}},d={};function r(t){var p=d[t];if(p!==void 0)return p.exports;var h=d[t]={exports:{}};return m[t](h,h.exports,r),h.exports}r.d=(t,p)=>{for(var h in p)r.o(p,h)&&!r.o(t,h)&&Object.defineProperty(t,h,{enumerable:!0,get:p[h]})},r.o=(t,p)=>Object.prototype.hasOwnProperty.call(t,p),r.r=t=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
5),Object.defineProperty(t,"__esModule",{value:!0})};var x={};return(()=>{r.r(x),r.d(x,{ToastComponent:()=>M,ToastPlugin:()=>$,ToastPositions:()=>b,default:()=>G,useToast:()=>Y});var t=r(976);const p=(0,t.createElementVNode)("div",{class:"v-toast__icon"},null,-1),h=["innerHTML"];function n(i,l,u,v,C,O){return(0,t.openBlock)(),(0,t.createBlock)(t.Transition,{"enter-active-class":i.transition.enter,"leave-active-class":i.transition.leave},{default:(0,t.withCtx)(()=>[(0,t.withDirectives)((0,t.createElementVNode)("div",{ref:"root",role:"alert",class:(0,t.normalizeClass)(["v-toast__item",[`v-toast__item--${i.type}`,`v-toast__item--${i.position}`]]),onMouseover:l[0]||(l[0]=W=>i.toggleTimer(!0)),onMouseleave:l[1]||(l[1]=W=>i.toggleTimer(!1)),onClick:l[2]||(l[2]=function(){return i.whenClicked&&i.whenClicked(...arguments)})},[p,(0,t.createElementVNode)("p",{class:"v-toast__text",innerHTML:i.message},null,8,h)],34),[[t.vShow,i.isActive]])]),_:1},8,["enter-active-class","leave-active-class"])}function y(i){var l;typeof i.remove<"u"?i.remove():(l=i.parentNode)==null||l.removeChild(i)}function E(i,l,u){let v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const C=(0,t.h)(i,l,v),O=document.createElement("div");return O.classList.add("v-toast--pending"),u.appendChild(O),(0,t.render)(C,O),C.component}class N{constructor(l,u){this.startedAt=Date.now(),this.callback=l,this.delay=u,this.timer=setTimeout(l,u)}pause(){this.stop(),this.delay-=Date.now()-this.startedAt}resume(){this.stop(),this.startedAt=Date.now(),this.timer=setTimeout(this.callback,this.delay)}stop(){clearTimeout(this.timer)}}const b=Object.freeze({TOP_RIGHT:"top-right",TOP:"top",TOP_LEFT:"top-left",BOTTOM_RIGHT:"bottom-right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left"});function H(i){return{all:i=i||new Map,on:function(l,u){var v=i.get(l);v?v.push(u):i.set(l,[u])},off:function(l,u){var v=i.get(l);v&&(u?v.splice(v.indexOf(u)>>>0,1):i.set(l,[]))},emit:function(l,u){var v=i.get(l);v&&v.slice().map(function(C){C(u)}),(v=i.get("*"))&&v.slice().map(function(C){C(l,u)})}}}const F=H(),U=(0,t.defineComponent)({name:"Toast",props:{message:{type:String,required:!0},type:{type:String,default:"success"},position:{type:String,default:b.BOTTOM_RIGHT,validator(i){return Object.values(b).includes(i)}},duration:{type:Number,default:3e3},dismissible:{type:Boolean,default:!0},onDismiss:{type:Function,default:()=>{}},onClick:{type:Function,default:()=>{}},queue:Boolean,pauseOnHover:{type:Boolean,default:!0}},data(){return{isActive:!1,parentTop:null,parentBottom:null,isHovered:!1}},beforeMount(){this.setupContainer()},mounted(){this.showNotice(),F.on("toast-clear",this.dismiss)},methods:{setupContainer(){if(this.parentTop=document.querySelector(".v-toast.v-toast--top"),this.parentBottom=document.querySelector(".v-toast.v-toast--bottom"),this.parentTop&&this.parentBottom)return;this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="v-toast v-toast--top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="v-toast v-toast--bottom");const i=document.body;i.appendChild(this.parentTop),i.appendChild(this.parentBottom)},shouldQueue(){return this.queue?this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0:!1},dismiss(){this.timer&&this.timer.stop(),clearTimeout(this.queueTimer),this.isActive=!1,setTimeout(()=>{this.onDismiss.apply(null,arguments);const i=this.$refs.root;(0,t.render)(null,i),y(i)},150)},showNotice(){if(this.shouldQueue()){this.queueTimer=setTimeout(this.showNotice,250);return}const i=this.$refs.root.parentElement;this.correctParent.insertAdjacentElement("afterbegin",this.$refs.root),y(i),this.isActive=!0,this.duration&&(this.timer=new N(this.dismiss,this.duration))},whenClicked(){this.dismissible&&(this.onClick.apply(null,arguments),this.dismiss())},toggleTimer(i){!this.pauseOnHover||!this.timer||(i?this.timer.pause():this.timer.resume())}},computed:{correctParent(){switch(this.position){case b.TOP:case b.TOP_RIGHT:case b.TOP_LEFT:return this.parentTop;case b.BOTTOM:case b.BOTTOM_RIGHT:case b.BOTTOM_LEFT:return this.parentBottom}},transition(){switch(this.position){case b.TOP:case b.TOP_RIGHT:case b.TOP_LEFT:return{enter:"v-toast--fade-in-down",leave:"v-toast--fade-out"};case b.BOTTOM:case b.BOTTOM_RIGHT:case b.BOTTOM_LEFT:return{enter:"v-toast--fade-in-up",leave:"v-toast--fade-out"}}}},beforeUnmount(){F.off("toast-clear",this.dismiss)}});var I=r(772);const M=(0,I.default)(U,[["render",n]]),Y=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{open(l){let u=null;typeof l=="string"&&(u=l);const C=Object.assign({},{message:u},i,l);return{dismiss:E(M,C,document.body).ctx.dismiss}},clear(){F.emit("toast-clear")},success(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:l,type:"success"},u))},error(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:l,type:"error"},u))},info(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:l,type:"info"},u))},warning(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:l,type:"warning"},u))},default(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.open(Object.assign({},{message:l,type:"default"},u))}}},$={install:function(i){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=Y(l);i.config.globalProperties.$toast=u,i.provide("$toast",u)}},G=$})(),x})())})(ue);var ys=ue.exports;const ne=ys.useToast(),ws={components:{Loading:vs},data(){return{trackingOn:!1,updating:!1,statusEntrega:"",notaData:null,notaStatusData:null,dataEmissao:"",dataPrev:"",dataListNotas:null,chaveNota:null,numnota:"",cnpj:"",tokenRecaptcha:null}},mounted(){const{cnpj:o,numnota:a}=this.$route.query;this.cnpj=o,this.numnota=a},watch:{cnpj(o){this.updateURL()},numnota(o){this.updateURL()}},methods:{async openModal(o){this.trackingOn=!0,this.updating=!0;try{R.get("api/consnfabe",{params:{idmov:o}}).then(a=>{if(console.log("then axios rastreio nfAbe"),console.log(a.data),a.data.length>0){if(console.log("tratando dados da nota..."),this.notaData=a.data[0],this.notaStatusData=a.data[1],this.notaData&&this.notaData.obsentr&&this.notaData.obsentr!==""){this.statusEntrega=this.notaData.obsentr.substring(0,40)+"...";const m=this.notaData;this.dataEmissao=L(m.dtemissao).format("DD/MM/YYYY"),m.dtpreventr==="SEM PREVISAO"?this.dataPrev=m.dtpreventr:this.dataPrev=L(m.dtpreventr).format("DD/MM/YYYY")}else this.notaData&&this.notaData.codigo&&this.notaData.codigo!==""?this.statusEntrega="Documento encontrado, nota fiscal emitida.":this.statusEntrega="Documento não encontrado";let c=0;this.notaStatusData.forEach(m=>{m.seq=this.notaStatusData.length-c,c++})}else console.log("return null")})}catch(a){console.error("Erro ao buscar dados da API",a),ne.error("Erro ao buscar dados da API")}finally{this.updating=!1}},closeModal(){this.trackingOn=!1},updateURL(){this.$router.push({query:{...this.$route.query,cnpj:this.cnpj,numnota:this.numnota}})},onCaptchaVerified(o){console.log("onCaptchaVerified"),this.tokenRecaptcha=o},onCaptchaExpired(){console.log("reCAPTCHA expirou, por favor, tente novamente."),this.$refs.recaptcha.reset(),this.$toast.open({type:"error",message:'<span class="text-white">reCAPTCHA expirou. Por favor, tente novamente.</span>',duration:3e3})},pesqNota(){this.updating=!0,console.log("pesqNota"),console.log("testando conexão api..."),R.get("api/testarapi").then(o=>console.log(o)),(this.cnpj.trim()!==""||this.cnpj)&&(this.numnota.trim()!==""||this.numnota)&&(this.updating=!0,console.log("get consnfsabe..."),R.get("api/consnfsabe",{params:{numnota:this.numnota,cnpj:this.cnpj,tokenRecaptcha:this.tokenRecaptcha}}).then(o=>{if(console.log("then axios rastreio nfsAbe"),console.log(o.data),this.$refs.recaptcha.reset(),o.data.length>0){if(this.dataListNotas=o.data[0],this.notaData=o.data[1],this.notaStatusData=o.data[2],console.log("dataListNotas"),console.log(this.dataListNotas),this.updating=!1,this.dataListNotas.length===0&&ne.open({type:"info",message:'<span class="text-white">Desculpe, nenhum documento foi encontrado!</span>',duration:3e3}),this.notaData&&this.notaData.obsentr&&this.notaData.obsentr!==""){this.statusEntrega=this.notaData.obsentr.substring(0,40)+"...";const a=this.notaData;this.dataEmissao=L(a.dtemissao).format("DD/MM/YYYY"),this.dataPrev=L(a.dtpreventr).format("DD/MM/YYYY")}else this.notaData&&this.notaData.codigo&&this.notaData.codigo!==""?this.statusEntrega="Documento encontrado, nota fiscal emitida.":this.statusEntrega="Documento não encontrado";if(this.notaStatusData){let a=0;this.notaStatusData.forEach(c=>{c.seq=this.notaStatusData.length-a,a++})}}else console.log("sem dados para processar...")}).catch(o=>{console.error("Erro na requisição da API:",o),this.updating=!1,this.$toast.open({type:"error",message:'<span class="text-white">Falha na validação do reCAPTCHA ou erro na pesquisa. Por favor, tente novamente.</span>',duration:5e3})}))},formatDateTime(o){const a="DD/MM/YYYY HH:mm";var c=new Date(o);return L(c).format(a)},formatDate(o){const a="DD/MM/YYYY";var c=new Date(o);return L(c).format(a)}
5,formatInteger(o){return o?parseFloat(o).toLocaleString("pt-BR",{style:"decimal",minimumFractionDigits:0}):0}}},xs={class:"contact-details"},ks={class:"container"},Ts={class:"row"},Cs={class:"col-xl-5 col-lg-6",style:{"margin-top":"10px"}},Ds=e("div",{class:"sec-title"},[e("span",{class:"sub-title"},"Informações do documento"),e("h2",null,"Favor inserir ")],-1),Ss={id:"contact_form",name:"contact_form",class:"",method:"post"},Ps={class:"row"},Es={class:"col-sm-12"},Ns={class:"mb-3"},Ms=e("span",{style:{color:"black"}},[T("CNPJ/CPF Destinatário "),e("small",{style:{color:"red"}},"campo obrigatório*")],-1),Os={class:"row"},js={class:"col-sm-12"},Bs={class:"mb-3"},Ls=e("span",{style:{color:"black"}},[T("Número Nota Fiscal "),e("small",{style:{color:"red"}},"campo obrigatório*")],-1),Rs=e("div",{class:"mb-3 mt-5"},null,-1),As={class:"mb-3"},Fs=e("input",{name:"form_botcheck",class:"form-control",type:"hidden",value:""},null,-1),$s=e("span",{class:"btn-title"},"Pesquisar",-1),qs=[$s],zs=e("button",{type:"reset",class:"theme-btn btn-style-one"},[e("span",{class:"btn-title"},"Limpar")],-1),Vs={class:"col-xl-7 col-lg-6",style:{"margin-top":"80px"}},Hs={class:"text-center"},Us={class:"contact-details__right"},Is={key:0},Ys={class:"list-unstyled contact-details__info"},Gs={class:"text col-xl-9"},Ws={class:"d-flex col-xl-12"},Ks={class:"col-xl-4"},Xs={style:{color:"rgb(240, 109, 62)"}},Js=e("i",{class:"lnr-icon-file-archive",style:{"font-size":"20px","margin-right":"10px"}},null,-1),Qs=e("br",null,null,-1),Zs={style:{"font-size":"16px",color:"#6a6969"}},ea=e("strong",{style:{color:"#434242"}}," Nome: ",-1),ta={style:{"font-size":"16px",color:"#6a6969"}},oa=e("strong",{style:{color:"#434242"}}," Cód. do Objeto: ",-1),sa={style:{"font-size":"16px",color:"#6a6969"}},aa=e("strong",{style:{color:"#434242"}}," Status: ",-1),na={class:"d-flex",style:{color:"#333"}},ia={style:{"font-size":"13px",color:"#6a6969"}},ra=e("strong",{style:{color:"#434242"}}," Dt. Emissão: ",-1),la=e("br",null,null,-1),ca={style:{"margin-left":"3ch"}},da={style:{"font-size":"13px",color:"#6a6969"}},ua=e("strong",{style:{color:"#434242"}}," Dt. Ult.Status: ",-1),pa=e("br",null,null,-1),ha={style:{"margin-left":"3ch"}},ma={style:{"font-size":"13px",color:"#6a6969"}},_a=e("strong",{style:{color:"#434242"}}," Dt. Prev. Entrega: ",-1),fa=e("br",null,null,-1),ga={class:"mb-2"},ba={style:{"font-size":"16px",color:"#0a267a"}},va=e("button",{style:{border:"none",background:"none",cursor:"pointer"}},[e("i",{class:"fas fa-external-link-alt font-size-14",style:{color:"#0a267a","margin-left":"15px"}})],-1),ya={style:{"font-size":"16px",color:"#0a267a"}},wa=e("button",{style:{border:"none",background:"none",cursor:"pointer"}},[e("i",{class:"fas fa-external-link-alt font-size-14",style:{color:"#0a267a","margin-left":"15px"}})],-1),xa={style:{width:"100%",border:"1px solid black",color:"#333"}},ka=e("thead",null,[e("tr",{style:{border:"1px solid black"}},[e("th",{class:"texto_header_white_1",style:{"min-width":"100px","text-align":"center",color:"white","background-color":"#ec5d18","font-size":"18px"},colspan:"2"}," Itens do Pedido ")]),e("tr",{style:{"background-color":"#dde1e5",color:"#333"}},[e("th",{class:"texto_header_white_1",style:{"min-width":"50%","text-align":"left",border:"1px solid black","padding-left":"2ch"}},"Produto"),e("th",{class:"texto_header_white_1",style:{"min-width":"50%","text-align":"center",border:"1px solid black",padding:"0px 3px"}},"Quant.")])],-1),Ta={style:{"min-width":"50%",color:"#6a6969","text-align":"left",border:"1px solid black","padding-left":"2ch"}},Ca={style:{"min-width":"50%",color:"#6a6969","text-align":"center",border:"1px solid black"}},Da={class:"row"},Sa={class:"col-xl-11 col-lg-8 col-md-10 col-sm-12 col-12",style:{"margin-top":"80px"}},Pa={class:"text-center"},Ea={class:"modal-content",style:{position:"relative","max-height":"80vh","min-width":"32ch","overflow-y":"auto",padding:"10px"}},Na={key:0},Ma={class:"text col-xl-12"},Oa={class:"d-flex justify-content-end align-items-center mb-1"},ja={style:{width:"100%",border:"1px solid black"}},Ba=e("tr",{style:{border:"1px solid black"}},[e("th",{class:"texto_header_white_1",style:{"min-width":"100px",color:"white","background-color":"#ec5d18","font-size":"24px","text-align":"center"},colspan:"4"}," Rastreio do Pedido ")],-1),La={style:{border:"1px solid black","background-color":"#dde1e5",color:"#333","line-height":"2.5"}},Ra={class:"texto_header_white_1",style:{"min-width":"100px","text-align":"center",padding:"0ch 1ch"}},Aa={class:"texto_header_white_1",style:{"min-width":"100px","text-align":"center","border-left":"1px solid black",padding:"0ch 2ch"}},Fa={class:"texto_header_white_1",style:{"min-width":"100px","text-align":"center","border-left":"1px solid black",padding:"0ch 2ch"},colspan:"2"},$a=e("tr",{style:{border:"1px solid black",color:"#333","text-align":"center"}},[e("th",{class:"texto_header_white_1",style:{"min-width":"50%",border:"1px solid black",padding:"0px 1px"}},"Seq."),e("th",{class:"texto_header_white_1",style:{"min-width":"50%",border:"1px solid black",padding:"0ch 1ch"}},"Data"),e("th",{class:"texto_header_white_1",style:{"min-width":"50%",border:"1px solid black",padding:"0ch 1ch"}},"Ocorrência"),e("th",{class:"texto_header_white_1",style:{"min-width":"50%",border:"1px solid black",padding:"0ch 4ch"}},"Descrição")],-1),qa={class:"texto_header_white_1",style:{"min-width":"50%","text-align":"center",color:"#333",border:"1px solid black",padding:"1ch 1ch"}},za={class:"count"},Va={class:"texto_header_white_1",style:{"min-width":"50%","text-align":"center",color:"#333",border:"1px solid black",padding:"0ch 1ch"}},Ha={class:"texto_header_white_1",style:{"min-width":"50%","text-align":"center",color:"#333",border:"1px solid black",padding:"0ch 1ch"}},Ua={class:"texto_header_white_1",style:{"min-width":"50%","text-align":"center",color:"#333",border:"1px solid black",padding:"0ch 1ch"}},Ia={key:1},Ya=e("br",null,null,-1);function Ga(o,a,c,m,d,r){const x=z("vue-recaptcha2"),t=z("loading"),p=ie,h=z("b-button");return g(),w("section",xs,[e("div",ks,[e("div",Ts,[e("div",Cs,[Ds,e("form",Ss,[e("div",Ps,[e("div",Es,[e("div",Ns,[Ms,Q(e("input",{name:"cnpj","onUpdate:modelValue":a[0]||(a[0]=n=>d.cnpj=n),onKeyup:a[1]||(a[1]=Z((...n)=>r.pesqNota&&r.pesqNota(...n),["enter"])),class:"form-control",type:"text",placeholder:"CNPJ/CPF Destinatário (Não inserir caracteres)"},null,544),[[J,d.cnpj]])])])]),e("div",Os,[e("div",js,[e("div",Bs,[Ls,Q(e("input",{name:"numnf","onUpdate:modelValue":a[2]||(a[2]=n=>d.numnota=n),onKeyup:a[3]||(a[3]=Z((...n)=>r.pesqNota&&r.pesqNota(...n),["enter"])),class:"form-control required",type:"text",placeholder:"Número Nota Fiscal"},null,544),[[J,d.numnota]])])])]),Rs,e("div",As,[S(x,{ref:"recaptcha",sitekey:"6LfzrrwrAAAAAEF6DCnUSgchh7ZlujdunzqHFp3w",onVerify:r.onCaptchaVerified,onExpired:r.onCaptchaExpired},null,8,["onVerify","onExpired"]),Fs,e("button",{type:"button",class:"theme-btn btn-style-one me-3 mt-5",onClick:a[4]||(a[4]=(...n)=>r.pesqNota&&r.pesqNota(...n)),"data-loading-text":"Carregando..."},qs),zs])])]),e("div",Vs,[e("div",Hs,[S(t,{active:d.updating,"onUpdate:active":a[5]||(a[5]=n=>d.updating=n),"can-cancel":!1,"is-full-page":!1},null,8,["active"])]),e("div",Us,[d.updating?V("",!0):(g(),w("div",Is,[e("ul",Ys,[(g(!0),w(A,null,q(d.dataListNotas,n=>(g(),w("li",{key:n.id}
5,[e("div",Gs,[e("div",Ws,[e("div",Ks,[S(p,{onClick:y=>r.openModal(n.id),title:"Tracking"},{default:B(()=>[e("h6",Xs,[Js,T(" NF "+_(n.codigo),1)])]),_:2},1032,["onClick"])]),Qs]),e("div",null,[e("span",Zs,[ea,T(" "+_(n.dest_nome),1)])]),e("div",null,[e("span",ta,[oa,T(" "+_(n.codobj),1)])]),e("div",null,[e("span",sa,[aa,T(" "+_(n.obsentr),1)])]),e("div",na,[e("div",null,[e("p",ia,[ra,la,T(" "+_(r.formatDateTime(n.dtemissao)),1)])]),e("div",ca,[e("p",da,[ua,pa,T(" "+_(r.formatDateTime(n.dtultocor)),1)])]),e("div",ha,[e("p",ma,[_a,fa,T(" "+_(n.dtpreventr!==null?r.formatDate(n.dtpreventr):"Sem previsão"),1)])])]),e("div",ga,[n.transportadora==="JADLOG LOGISTICA S.A"?(g(),X(p,{key:0,to:`https://www.jadlog.com.br/tracking?cpf=${n.dest_cpf}`,target:"_blank",title:"Tracking"},{default:B(()=>[e("span",ba,"Transp.: "+_(n.transportadora),1),va]),_:2},1032,["to"])):(g(),X(p,{key:1,onClick:y=>r.openModal(n.id),title:"Tracking"},{default:B(()=>[e("span",ya,"Transp.: "+_(n.transportadora),1),wa]),_:2},1032,["onClick"]))]),e("table",xa,[ka,e("tbody",null,[(g(!0),w(A,null,q(n.itens,y=>(g(),w("tr",{key:y.produto},[e("td",Ta,_(y.descprod),1),e("td",Ca,_(r.formatInteger(y.qtd)),1)]))),128))])])])]))),128))])]))])])]),e("div",Da,[e("div",Sa,[e("div",Pa,[S(t,{active:d.updating,"onUpdate:active":a[6]||(a[6]=n=>d.updating=n),"can-cancel":!1,"is-full-page":!1},null,8,["active"])]),d.trackingOn?(g(),w("div",{key:0,class:"modal-overlay d-flex justify-content-center align-items-center",onClick:a[7]||(a[7]=(...n)=>r.closeModal&&r.closeModal(...n))},[e("div",Ea,[d.updating?(g(),w("div",Ia," Carregando ...")):(g(),w("div",Na,[e("div",Ma,[e("div",Oa,[S(h,{type:"button",class:"close bg-white text-dark border-1px rounded",onClick:r.closeModal,"aria-label":"Close",style:{padding:"0.2ch 1ch"}},{default:B(()=>[T(" Fechar ")]),_:1},8,["onClick"])]),e("table",ja,[e("thead",null,[Ba,e("tr",La,[e("th",Ra,"Emissão: "+_(d.dataEmissao),1),e("th",Aa,"Previsão: "+_(d.dataPrev),1),e("th",Fa," Status de Entrega: "+_(d.statusEntrega),1)]),$a]),e("tbody",null,[(g(!0),w(A,null,q(d.notaStatusData,n=>(g(),w("tr",{key:n.id},[e("td",qa,[e("i",{class:re(n.tipo==="Entrega"||n.tipo==="Pre-Entrega"?"icon flaticon-checklist":n.tipo==="Cliente"?"icon flaticon-logistics-delivery-6":"icon flaticon-shipping-2")},null,2),e("span",za,_(n.seq),1)]),e("td",Va,_(r.formatDateTime(n.data)),1),e("td",Ha,_(n.ocorrencia),1),e("td",Ua,_(n.descricao),1)]))),128))])])])])),Ya])])):V("",!0)])])])])}const Wa=ee(ws,[["render",Ga]]),Ka={};function Xa(o,a){const c=_s,m=Wa;return g(),w(A,null,[S(c,{title:"Rastreamento de Documentos"}),S(m)],64)}const rn=ee(Ka,[["render",Xa]]);export{rn 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.