PageSourceSearch

https://app.stoqui.com.br/assets/VectorizedPrintContentDeclaration-CsvSmyoR.js

js stoqui.com.br collected 2026-09-24 11:58:54 UTC 12,273 bytes, 1 lines download raw bytes

1import{j as e}from"./mui-CRsYZxVY.js";import{StyleSheet as S,Page as H,View as o,Text as l,Document as z}from"./react-pdf.browser-1EhQzxMi.js";import"./vendor-Dwao9eNC.js";import"./index-TALscxEc.js";import"./query-8ViTdhdk.js";import"./datePickers-BIJXYOKG.js";import"./icons-D8aatgQ4.js";import"./lab-DSem1Osk.js";import"./index-BNv7yOC_.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};n.SENTRY_RELEASE={id:"2ad85febf9735404429b0670d4acf56a0af5a0a2"}}catch{}})();try{(function(){var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new n.Error().stack;i&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[i]="a11aeef2-2d46-491a-b476-e94b13778c7e",n._sentryDebugIdIdentifier="sentry-dbid-a11aeef2-2d46-491a-b476-e94b13778c7e")})()}catch{}const R=n=>`R$ ${n.toFixed(2).replace(".",",")}`,F=(n,i,r,c)=>{var m;const p=i?{nome:(r==null?void 0:r.nome_loja)||"",endereco:`${i.logradouro}, ${i.numero}${i.complemento?` - ${i.complemento}`:""}`,cidade:i.localidade,uf:i.uf,cep:i.cep,cpfCnpj:c||""}:{nome:(r==null?void 0:r.nome_loja)||"",endereco:"",cidade:"",uf:"",cep:"",cpfCnpj:(r==null?void 0:r.cpf_cnpj)||""},h=n.endereco_entrega?{nome:n.endereco_entrega.nome_destinatario||"",endereco:`${n.endereco_entrega.logradouro}, ${n.endereco_entrega.numero}${n.endereco_entrega.complemento?` - ${n.endereco_entrega.complemento}`:""}`,cidade:n.endereco_entrega.localidade||"",uf:n.endereco_entrega.uf||"",cep:n.endereco_entrega.cep||"",cpfCnpj:((m=n.cliente)==null?void 0:m.cpf_cnpj)||""}:{nome:"",endereco:"",cidade:"",uf:"",cep:"",cpfCnpj:""},u=n.itens_pedido.map((s,d)=>{const b=s.produto.nome+(s.produto_variacao?` (${s.produto_variacao.produto_variacao_valor.map(x=>x.atributo_valor.valor).join(" / ")})`:"");return{item:d+1,conteudo:b,quantidade:s.quantidade,valor:R(s.preco_snapshot*s.quantidade)}}),y=n.itens_pedido.reduce((s,d)=>s+d.quantidade,0),g=R(n.itens_pedido.reduce((s,d)=>s+d.quantidade*d.preco_snapshot,0)),a=s=>{var x;const d=Number((x=s.produto)==null?void 0:x.peso)||0;return d>0?d*s.quantidade:(s.combo_componentes??[]).reduce((_,T)=>{var w;return _+(Number((w=T.produto)==null?void 0:w.peso)||0)*T.quantidade},0)},j=n.itens_pedido.reduce((s,d)=>s+a(d),0).toFixed(3).replace(".",",")+" kg",f=new Date(n.data_pedido),C=["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],v=String(f.getDate()).padStart(2,"0"),D=C[f.getMonth()],E=f.getFullYear(),B=`${v} de ${D} de ${E}`;return{sender:p,recipient:h,items:u,totalQuantity:y,totalValue:g,totalWeight:j,formattedDate:B}},t=S.create({page:{backgroundColor:"#ffffff",fontFamily:"Helvetica",padding:15},titleBox:{border:"2px solid #000000",padding:2,marginBottom:3},titleText:{fontSize:20,fontWeight:"bold",textAlign:"center",color:"#000000",lineHeight:1.6},senderRecipientRow:{flexDirection:"row",marginBottom:3,gap:6},personBox:{width:"50%",border:"2px solid #000000"},personHeader:{borderBottom:"1px solid #000000",padding:3},personHeaderText:{fontSize:11,fontWeight:"bold",textAlign:"center",letterSpacing:4,color:"#000000"},personBody:{padding:3},infoRow:{flexDirection:"row",alignItems:"center",borderBottom:"1px solid #000000",marginBottom:2,minHeight:14},infoRowSplit:{flexDirection:"row",justifyContent:"space-between",borderBottom:"1px solid #000000",marginBottom:2,minHeight:14},infoGroup:{flexDirection:"row",alignItems:"center"},labelText:{fontSize:9,fontWeight:"bold",paddingHorizontal:2,color:"#000000"},valueText:{fontSize:9,paddingHorizontal:2,color:"#000000"},itemsBox:{border:"2px solid #000000",marginBottom:3},itemsHeader:{borderBottom:"1px solid #000000",padding:3},itemsHeaderText:{fontSize:11,fontWeight:"bold",textAlign:"center",letterSpacing:4,color:"#000000"},tableHeaderRow:{flexDirection:"row",borderBottom:"1px solid #000000",paddingVertical:2},tableRow:{flexDirection:"row",borderBottom:"1px solid #000000",paddingVertical:2},colItem:{width:"8.33%",textAlign:"center",borderRight:"1px solid #000000",paddingHorizontal:2},colConteudo:{width:"58.33%",paddingLeft:2,paddingRight:2,borderRight:"1px solid #000000"},colQuant:{width:"16.67%",textAlign:"center",borderRight:"1px solid #000000",paddingHorizontal:2},colValor:{width:"16.67%",textAlign:"center",paddingHorizontal:2},tableHeaderText:{fontSize:9,fontWeight:"bold",color:"#000000"},tableCellText:{fontSize:9,color:"#000000"},totalsRow:{flexDirection:"row",borderTop:"1px solid #000000",paddingVertical:2,backgroundColor:"#cccccc"},totalsLabelCol:{width:"66.67%",textAlign:"right",paddingRight:4,borderRight:"1px solid #000000"},totalsQuantCol:{width:"16.67%",textAlign:"center",borderRight:"1px solid #000000"},totalsValueCol:{width:"16.67%",textAlign:"center"},totalsText:{fontSize:9,fontWeight:"bold",color:"#000000"},weightRow:{flexDirection:"row",borderTop:"1px solid #000000",paddingVertical:2,backgroundColor:"#cccccc"},weightLabelCol:{width:"66.67%",textAlign:"right",paddingRight:4},weightEmptyCol:{width:"16.67%"},weightValueCol:{width:"16.67%",textAlign:"center"}
1,declarationBox:{border:"2px solid #000000",marginBottom:3},declarationHeader:{borderBottom:"1px solid #000000",padding:3},declarationHeaderText:{fontSize:11,fontWeight:"bold",textAlign:"center",letterSpacing:4,color:"#000000"},declarationBody:{padding:3},declarationParagraph:{fontSize:9,lineHeight:1.5,color:"#000000",marginBottom:3},signatureRow:{flexDirection:"row",paddingTop:16},signatureLeft:{width:"50%",textAlign:"center",paddingTop:8},signatureRight:{width:"50%",textAlign:"center",paddingTop:8,paddingHorizontal:4,marginBottom:8},signatureLine:{borderTop:"1px solid #000000",marginTop:8,marginBottom:8,marginHorizontal:8},signatureText:{fontSize:12,color:"#000000"},observationBox:{border:"1px solid #000000",padding:3,marginTop:3},observationBoldText:{fontSize:9,fontWeight:"bold",color:"#000000"},observationText:{fontSize:9,color:"#000000"}}),A=14,q=({data:n})=>{const{sender:i,recipient:r,items:c,totalQuantity:p,totalValue:h,totalWeight:u,formattedDate:y}=n,g=Math.max(0,A-c.length);return e.jsxs(H,{size:"A4",style:t.page,children:[e.jsx(o,{style:t.titleBox,children:e.jsx(l,{style:t.titleText,children:"DECLARAÇÃO DE CONTEÚDO"})}),e.jsxs(o,{style:t.senderRecipientRow,children:[e.jsxs(o,{style:t.personBox,children:[e.jsx(o,{style:t.personHeader,children:e.jsx(l,{style:t.personHeaderText,children:"REMETENTE"})}),e.jsxs(o,{style:t.personBody,children:[e.jsxs(o,{style:t.infoRow,children:[e.jsx(l,{style:t.labelText,children:"NOME:"}),e.jsx(l,{style:t.valueText,children:i.nome})]}),e.jsxs(o,{style:t.infoRow,children:[e.jsx(l,{style:t.labelText,children:"ENDEREÇO:"}),e.jsx(l,{style:t.valueText,children:i.endereco})]}),e.jsxs(o,{style:t.infoRowSplit,children:[e.jsxs(o,{style:t.infoGroup,children:[e.jsx(l,{style:t.labelText,children:"CIDADE:"}),e.jsx(l,{style:t.valueText,children:i.cidade})]}),e.jsxs(o,{style:t.infoGroup,children:[e.jsx(l,{style:t.labelText,children:"UF:"}),e.jsx(l,{style:t.valueText,children:i.uf})]})]}),e.jsxs(o,{style:t.infoRowSplit,children:[e.jsxs(o,{style:t.infoGroup,children:[e.jsx(l,{style:t.labelText,children:"CEP:"}),e.jsx(l,{style:t.valueText,children:i.cep})]}),e.jsxs(o,{style:t.infoGroup,children:[e.jsx(l,{style:t.labelText,children:"CPF/CNPJ:"}),e.jsx(l,{style:t.valueText,children:i.cpfCnpj||" "})]})]})]})]}),e.jsxs(o,{style:t.personBox,children:[e.jsx(o,{style:t.personHeader,children:e.jsx(l,{style:t.personHeaderText,children:"DESTINATÁRIO"})}),e.jsxs(o,{style:t.personBody,children:[e.jsxs(o,{style:t.infoRow,children:[e.jsx(l,{style:t.labelText,children:"NOME:"}),e.jsx(l,{style:t.valueText,children:r.nome})]}),e.jsxs(o,{style:t.infoRow,children:[e.jsx(l,{style:t.labelText,children:"ENDEREÇO:"}),e.jsx(l,{style:t.valueText,children:r.endereco})]}),e.jsxs(o,{style:t.infoRowSplit,children:[e.jsxs(o,{style:t.infoGroup,children:[e.jsx(l,{style:t.labelText,children:"CIDADE:"}),e.jsx(l,{style:t.valueText,children:r.cidade})]}),e.jsxs(o,{style:t.infoGroup,children:[e.jsx(l,{style:t.labelText,children:"UF:"}),e.jsx(l,{style:t.valueText,children:r.uf})]})]}),e.jsxs(o,{style:t.infoRowSplit,children:[e.jsxs(o,{style:t.infoGroup,children:[e.jsx(l,{style:t.labelText,children:"CEP:"}),e.jsx(l,{style:t.valueText,children:r.cep})]}),e.jsxs(o,{style:t.infoGroup,children:[e.jsx(l,{style:t.labelText,children:"CPF/CNPJ:"}),e.jsx(l,{style:t.valueText,children:r.cpfCnpj||" "})]})]})]})]})]}),e.jsxs(o,{style:t.itemsBox,children:[e.jsx(o,{style:t.itemsHeader,children:e.jsx(l,{style:t.itemsHeaderText,children:"IDENTIFICAÇÃO DOS BENS"})}),e.jsxs(o,{style:t.tableHeaderRow,children:[e.jsx(o,{style:t.colItem,children:e.jsx(l,{style:t.tableHeaderText,children:"ITEM"})}),e.jsx(o,{style:t.colConteudo,children:e.jsx(l,{style:[t.tableHeaderText,{textAlign:"center"}],children:"CONTEÚDO"})}),e.jsx(o,{style:t.colQuant,children:e.jsx(l,{style:t.tableHeaderText,children:"QUANT."})}),e.jsx(o,{style:t.colValor,children:e.jsx(l,{style:t.tableHeaderText,children:"VALOR"})})]}),c.map(a=>e.jsxs(o,{style:t.tableRow,children:[e.jsx(o,{style:t.colItem,children:e.jsx(l,{style:t.tableCellText,children:a.item})}),e.jsx(o,{style:t.colConteudo,children:e.jsx(l,{style:t.tableCellText,children:a.conteudo})}),e.jsx(o,{style:t.colQuant,children:e.jsx(l,{style:t.tableCellText,children:a.quantidade})}),e.jsx(o,{style:t.colValor,children:e.jsx(l,{style:t.tableCellText,children:a.valor})})]},a.item)),Array.from({length:g}).map((a,j)=>e.jsxs(o,{style:t.tableRow,children:[e.jsx(o,{style:t.colItem,children:e.jsx(l,{style:t.tableCellText,children:" "})}),e.jsx(o,{style:t.colConteudo,children:e.jsx(l,{style:t.tableCellText,children:" "})}),e.jsx(o,{style:t.colQuant,children:e.jsx(l,{style:t.tableCellText,children:" "})}),e.jsx(o,{style:t.colValor,children:e.jsx(l,{style:t.tableCellText,children:" "})})]},`empty-${j}`)),e.jsxs(o,{style:t.totalsRow,children:[e.jsx(o,{style:t.totalsLabelCol,children:e.jsx(l,{style:t.totalsText,children:"TOTAIS"})}),e.jsx(o,{style:t.totalsQuantCol,children:e.jsx(l,{style:t.totalsText,children:p})}),e.jsx(o,{style:t.totalsValueCol,children:e.jsx(l,{style:t.totalsText,children:h})})]}),e.jsxs(o,{style:t.weightRow,children:[e.jsx(o,{style:t.weightLabelCol,children:e.jsx(l,{style:t.totalsText,children:"PESO TOTAL(kg)"})}),e.jsx(o,{style:t.weightEmptyCol,children:e.jsx(l,{style:t.totalsText,children:" "})}),e.jsx(o,{style:t.weightValueCol,children:e.jsx(l,{style:t.totalsText,children:u})})]})]}),e.jsxs(o,{style:t.declarationBox,children:[e.jsx(o,{style:t.declarationHeader,children:e.jsx(l,{style:t.declarationHeaderText,children:"DECLARAÇÃO"})}),e.jsxs(o,{style:t.declarationBody,children:[e.jsx(l,{style:t.declarationParagraph,children:"Declaro que não me enquadro no conceito de contribuinte previsto no art. 4º da Lei Complementar nº 87/1996, uma vez que não realizo, com habitualidade ou em volume que caracterize intuito comercial, operações de circulação de mercadoria, ainda que se iniciem no exterior, ou estou dispensado da emissão da nota fiscal por força da legislação tributária vigente, responsabilizando-me, nos termos da lei e a quem de direito, por informações inverídicas."}),e.jsx(l,{style:t.declarationParagraph,children:"Declaro ainda que não estou postando conteúdo inflamável, explosivo, causador de combustão espontânea, tóxico, corrosivo, gás ou qualquer outro conteúdo que constitua perigo, conforme o art. 
113 da Lei Postal nº 6.538/78."})]}),e.jsxs(o,{style:t.signatureRow,children:[e.jsx(o,{style:t.signatureLeft,children:e.jsxs(l,{style:t.signatureText,children:[i.cidade,", ",y]})}),e.jsxs(o,{style:t.signatureRight,children:[e.jsx(o,{style:t.signatureLine}),e.jsx(l,{style:t.signatureText,children:"Assinatura do Declarante/Remetente"})]})]})]}),e.jsxs(o,{style:t.observationBox,children:[e.jsx(l,{style:t.observationBoldText,children:"OBSERVAÇÃO:"}),e.jsx(l,{style:t.observationText,children:"Constitui crime contra a ordem tributária suprimir ou reduzir tributo, ou contribuição social e qualquer acessório (Lei 8.137/90 Art. 1º, V)."})]})]})},Q=n=>e.jsx(z,{children:e.jsx(q,{...n})});export{q as VectorizedPrintContentDeclarationPage,Q as default,F as prepareContentDeclarationData};

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.