PageSourceSearch

https://portal-aslcontabilidade.web.app/js/1472.e8fbedd0.js

js portal-aslcontabilidade.web.app collected 2026-10-03 12:33:10 UTC 10,231 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkpwa_connect_pwa"]=self["webpackChunkpwa_connect_pwa"]||[]).push([[1472],{81472:function(e,t,n){n.d(t,{A:function(){return p}});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"guide-card"},[t("div",{staticClass:"guide-info"},[t("div",{staticClass:"guide-type"},[t("Icon",{attrs:{icon:e.icon,color:e.iconColor,size:"32"}}),t("div",{staticClass:"guide-details"},[t("p",{staticClass:"guide-type-text"},[e._v(e._s(e.guide.type))]),t("p",{staticClass:"guide-amount"},[t("span",{staticClass:"guide-date"},[e._v("Comp. "+e._s(e.guide.dueDate))]),t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"4",height:"4",viewBox:"0 0 4 4",fill:"none"}},[t("circle",{attrs:{cx:"2",cy:"2",r:"2",fill:"#A3A3A3"}})]),e._v(" R$ "+e._s(e.guide.amount)+" ")])])],1)]),t("div",{staticClass:"guide-actions"},[t("button",{staticClass:"action-button download",attrs:{disabled:!e.guide.downloadUrl},on:{click:function(t){return e.downloadGuide(e.guide.downloadUrl)}}},[t("Icon",{attrs:{icon:"download",color:"white",size:"20"}})],1)])])},a=[],o=n(80816),i=n(12466),u=n(9366),s={name:"GuideCard",components:{Icon:o.A},props:{guide:{type:Object,required:!0}},computed:{effectiveColorKey(){return(0,u.Ly)(this.guide)},icon(){return"danger"===this.effectiveColorKey?"file-warning":"success"===this.effectiveColorKey?"file-check":"primary"===this.effectiveColorKey?"document-file":"file-alert"},iconColor(){return(0,u.DT)(this.effectiveColorKey)}},methods:{async downloadGuide(e){e?await(0,i.Yp)(e,"guia"):this.$toast?.warning("URL de download não disponível",{icon:!0})}}},c=s,l=n(81656),d=(0,l.A)(c,r,a,!1,null,"7fd65a1e",null),p=d.exports},9366:function(e,t,n){n.d(t,{Bl:function(){return v},DT:function(){return h},Ly:function(){return w},Uw:function(){return E},V0:function(){return f},Vi:function(){return p},Yj:function(){return C},eO:function(){return d},o8:function(){return D},qv:function(){return F},xi:function(){return b}});n(44114),n(98992),n(54520),n(3949),n(81454),n(43375),n(39225),n(13972),n(99209),n(25714),n(17561),n(66197);function r(e){if(!e||!e.paymentNumber)return!1;if(e.paied)return!1;if(e.receiptsGuides)return!1;if(e.type&&(String(e.type).toLowerCase().includes("sem movimento")||String(e.type).toLowerCase().includes("zerada")))return!1;if("0,00"===e.value)return!1;const t=String(e.value||"0").replace(/\./g,"").replace(",","");return!(Number(t)<1e3)}function a(e){return!(!e||!e.paymentNumber)&&(!(!e.paied&&!e.receiptsGuides)&&((!e.type||!String(e.type).toLowerCase().includes("sem movimento")&&!String(e.type).toLowerCase().includes("zerada"))&&"0,00"!==e.value))}function o(e){let t=!1;if(e.transmissions){const n=Object.keys(e.transmissions).map(t=>e.transmissions[t]);for(let e=0;e<n.length;e++){if(n[e].withoutMoviment)return"Sem Movimento";if(n[e].dasGenerated||e!==n.length-1){if(n[e].dasGenerated){t=!0;const r=Object.keys(n[e].dasGenerated).map(t=>n[e].dasGenerated[t]);for(let e=0;e<r.length;e++)if("Sim"===r[e].paied)return!0}}else t=!1}}return!t&&"Sem Movimento"}function i(e){return"Sem Movimento"!==o(e)&&(!e.installment&&!o(e))}function u(e){return!0===o(e)}function s(e){if(!e||"0"===e)return"0,00";if("string"===typeof e&&e.includes(","))return e;const t=parseFloat(e)||0;return t.toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:2})}function c(e,t){if(!e||!t)return"--/----";const n=Array.isArray(e)?e[0]:e,r=t.toString().padStart(2,"0");return`${r}/${n}`}function l(e){const t=e.originalData?.dtDue;if(!t)return null;const[n,r,a]=t.split("/").map(Number);return n&&r&&a?new Date(a,r-1,n):null}function d(e){const t=l(e);return t?String(t.getFullYear()):e.dueDate?.split("/")[1]||null}function p(e){const t=l(e);return t?String(t.getMonth()+1).padStart(2,"0"):e.dueDate?.split("/")[0]||null}function f(e){const t=l(e);return t?String(t.getDate()).padStart(2,"0"):null}const g={Vencido:"danger",Pendente:"warning",Pago:"success","Em análise":"primary"};function m(e){return g[e]||"warning"}const y={danger:"var(--icon-danger)",warning:"var(--icon-warning)",success:"var(--icon-success)",primary:"var(--icon-primary)"};function h(e){return y[e]||y.warning}function w(e,t=new Date){if("Pago"===e.status)return"success";const n=l(e);if(!n)return m(e.status);const r=new Date(t.getFullYear(),t.getMonth(),t.getDate()),a=new Date(n.getFullYear(),n.getMonth(),n.getDate());return a<=r?"danger":"warning"}function v(e,t=new Date){if("Pago"===e.status)return"Pago";const n=l(e);if(!n)return e.status||"Pendente";const r=new Date(t.getFullYear(),t.getMonth(),t.getDate()),a=new Date(n.getFullYear(),n.getMonth(),n.getDate());return a<=r?"Vencido":"Pendente"}function b(e){const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return`${t}-${n}-${r}`}function D(e){const t=new Map;
1return e.forEach(e=>{const n=d(e),r=p(e),a=f(e);if(!n||!r||!a)return;const o=`${n}-${r}-${a}`;t.has(o)||t.set(o,[]),t.get(o).push(e)}),t}const S=["danger","warning","success","primary"];function C(e,t=new Date){const n=D(e),r=[];return n.forEach((e,n)=>{const[a,o,i]=n.split("-").map(Number),u=new Date(a,o-1,i),s=[...new Set(e.map(e=>w(e,t)))];1!==s.length?S.filter(e=>s.includes(e)).forEach(e=>{r.push({key:`${n}-${e}`,dates:u,dot:{style:{backgroundColor:h(e)}}})}):r.push({key:n,dates:u,bar:{style:{backgroundColor:h(s[0])}}})}),r}async function $(e,t,n){try{const o=await e.database().ref(`historics/processes/dctfwebCollections/${t}/${n}`).once("value"),i=o.val(),u=[],s=[];if(i){const e=Object.keys(i);for(let t=0;t<e.length;t++){const n=e[t],o=i[n];if(!o||"object"!==typeof o)continue;const c=Object.keys(o).filter(e=>/^(0[1-9]|1[0-2])$/.test(e));for(let e=0;e<c.length;e++){const t=c[e],i=o[t],l={dtDue:i.dueDate?i.dueDate.replace(/-/g,"/"):null,calendarYear:[n],documentUrl:i.documentPaymentUrl,paymentNumber:i.paymentNumber,value:i.value};r(i)?u.push({...l,paymentStatus:"Pendente"}):a(i)&&s.push({...l,paymentStatus:"Pago"})}}}return{pending:u,paid:s}}catch(o){return console.error("Erro ao carregar guias DCTFWEB:",o),{pending:[],paid:[]}}}async function k(e,t,n){try{const r=await e.database().ref(`historics/processes/simplesCollections/${t}/${n}`).once("value"),a=r.val(),o=[],s=[];if(a)for(const e in a)for(const t in a[e]){const n=a[e][t],r=n.generated?.lastGenerated;if(!r)continue;const c={dtDue:r.expirationDate?r.expirationDate.replace(/-/g,"/"):null,calendarYear:[e],documentUrl:r.documentUrl,paymentNumber:t,value:r.total||null};i(n)?o.push({...c,paymentStatus:"Pendente"}):u(n)&&s.push({...c,paymentStatus:"Pago"})}return{pending:o,paid:s}}catch(r){return console.error("Erro ao carregar guias Simples:",r),{pending:[],paid:[]}}}async function P(e,t,n){try{const r=e.auth().currentUser?.uid;if(!r||!n)return{pending:[],paid:[]};const a=await e.database().ref(`historics/processes/fgtsCollections/${t}/${n}`).once("value"),o=a.val(),i=[],u=[],s=o?.pending;if(s)for(const e in s){const t=s[e];if(!t||"Não Consta"===t.status)continue;const n=t.reference?t.reference.split("/"):[],r=n[0]||null,a=n[1]||null,o={dtDue:t.dueDate?t.dueDate.replace(/-/g,"/"):null,calendarYear:a?[a]:null,documentUrl:t.documentUrl,paymentNumber:r,value:null!=t.summary?.totalAmount?String(t.summary.totalAmount):"0"};"Aberta"===t.status?i.push({...o,paymentStatus:"Pendente"}):u.push({...o,paymentStatus:"Pago"})}const c=o?.paid;if(c)for(const e in c){const t=c[e];if(!t||!t.guideId)continue;const n=t.dueDate?t.dueDate.replace(/-/g,"/"):null,[,r,a]=n?n.split("/"):[];u.push({dtDue:n,calendarYear:a?[a]:null,documentUrl:t.documentUrl,paymentNumber:r||null,paymentStatus:"Pago",value:null!=t.summary?.totalAmount?String(t.summary.totalAmount):"0"})}return{pending:i,paid:u}}catch(r){return console.error("Erro ao carregar guias FGTS:",r),{pending:[],paid:[]}}}async function U(e,t,n){try{const r=await e.database().ref(`meiCollections/${t}/${n}`).once("value"),a=r.val(),o=[],i=[],u=a?.historic?Object.keys(a.historic).reverse():null;if(u)for(let e=0;e<u.length;e++){const t=a.historic[u[e]];for(const n in t){const r=t[n];if(!r)continue;const a={dtDue:r.dtDue?r.dtDue.replace(/-/g,"/"):null,calendarYear:[u[e]],documentUrl:r.documentUrl,paymentNumber:r.paymentNumber,value:r.value};"Pendente"===r.paymentStatus?o.push({...a,paymentStatus:"Pendente"}):i.push({...a,paymentStatus:"Pago"})}}return{pending:o,paid:i}}catch(r){return console.error("Erro ao carregar guias MEI:",r),{pending:[],paid:[]}}}async function E(e,t){const n=t?.cid,r=t?.customerId,[a,o,i,u]=await Promise.all([$(e,n,r),k(e,n,r),U(e,n,r),P(e,n,r)]),s=a.pending,c=o.pending,l=i.pending,d=u.pending;return{totalAmount:s.length+c.length+l.length+d.length,dctfweb:s,simples:c,mei:l,fgts:d,paidGuides:{dctfweb:a.paid,simples:o.paid,mei:i.paid,fgts:u.paid}}}const A=[{key:"dctfweb",type:"DCTFWEB"},{key:"mei",type:"MEI"},{key:"simples",type:"DAS"},{key:"fgts",type:"FGTS"}];function F(e){const t=[];return A.forEach(({key:n,type:r})=>
1{e?.[n]?.forEach(e=>{t.push({type:r,amount:s(e.value||e.paymentAmount||"0"),dueDate:c(e.calendarYear,e.paymentNumber),downloadUrl:e.documentUrl,status:e.paymentStatus||"Pendente",originalData:e})})}),t}},12466:function(e,t,n){n.d(t,{Yp:function(){return a},Xq:function(){return o},PV:function(){return r}});n(44114),n(33110),n(81454),n(14603),n(47566),n(98721),n(98992),n(23215),n(3949),n(37550);async function r(e){await a(e,"download")}async function a(e,t="download"){try{const n=await fetch("https://downloadfile-n7hn7l4isa-uc.a.run.app",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e})});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const r=await n.blob(),a=window.URL.createObjectURL(r),o=document.createElement("a");o.href=a,o.download=t,document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(a);const i=document.createElement("a");return i.href=e,i.target="_blank",i.setAttribute("download",name),document.body.appendChild(i),i.click(),{success:!0}}catch(n){throw console.error("Erro no download:",n),n}}function o(e){return e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(2)} KB`:e<1073741824?`${(e/1048576).toFixed(2)} MB`:e<1099511627776?`${(e/1073741824).toFixed(2)} GB`:`${(e/1099511627776).toFixed(2)} TB`}}}]);

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.