PageSourceSearch

https://pergamum-biblioteca.pucpr.br/static/js/2772.a6041683.chunk.js

js pucpr.br collected 2026-10-02 02:18:20 UTC 18,828 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkcatalogo_frontend=self.webpackChunkcatalogo_frontend||[]).push([[2772],{2772:(e,a,s)=>{s.r(a),s.d(a,{default:()=>S});var t=s(37055),c=s(88094),n=s(34593),o=s(42426),l=s(21616),i=s(13992),r=s(68881),d=s(62334),m=s(51561),u=s(74790),x=s(59594),v=s(1108),p=s(82981),h=s(20252),b=s(44856),f=s(16822),g=s(83333),j=s(15678);const N=(0,c.forwardRef)((e,a)=>{const{dataToPrint:s,dadosExport:t}=e,{t:c}=(0,m.Bd)();return(0,j.jsx)("div",{style:{padding:0,margin:0},className:"d-flex",ref:a,children:(0,j.jsxs)(l.Col,{xs:"12",className:"rad5 preto70",children:[(0,j.jsx)("div",{className:"negrito cortxt s20 pad5",children:"R"===t?c("Referencia"):"M"===t?c("Marc"):"L"===t?c("Localizacao"):""}),(0,j.jsx)(l.Row,{className:"b-w1 b-cinza2 b-solid-top pad10",children:(0,j.jsx)(l.Col,{md:"12",xs:"12",children:(0,j.jsx)("div",{className:"mt-2 area-transferencia-custom-content",children:(0,j.jsx)("div",{children:(0,g.ZD)(s)})})})})]})})});var w=s(557),R=s(55708),C=s(9761);const y=c.lazy(()=>Promise.resolve().then(s.bind(s,34825))),_=c.lazy(()=>Promise.resolve().then(s.bind(s,21776))),k=c.lazy(()=>Promise.resolve().then(s.bind(s,96376))),S=(0,o.Ng)(e=>({consultaRx:e.pesquisa.consulta,cestaRx:e.cesta.itens,ultimoLogRx:e.pesquisa.log[e.pesquisa.log.length-1],guiasPesquisaRx:e.pageConfig.guiasPesquisa,opcoesResultadoRx:e.pesquisa.opcoesResultado}))(e=>{var a;let{cestaRx:s,consultaRx:S,opcoesResultadoRx:E,ultimoLogRx:A,guiasPesquisaRx:I,location:z}=e;const{t:P}=(0,m.Bd)(),M=(0,r.Zp)(),[T,q]=(0,c.useState)(!1),[L,D]=(0,c.useState)([]),[O,F]=(0,c.useState)(1),[V,B]=(0,c.useState)([]),[Z,$]=(0,c.useState)("-1"),[U,X]=(0,c.useState)("-1"),[G,J]=(0,c.useState)(!1),[K,Q]=(0,c.useState)(!1),[W,H]=(0,c.useState)({}),[Y,ee]=(0,c.useState)(null),ae=(0,c.useRef)(null),se=(0,c.useRef)(),{selectedTab:te,setSelectedTab:ce}=(0,R.Us)(),[ne,oe]=(0,c.useState)(!1),[le,ie]=(0,c.useState)("ansi"),[re,de]=(0,c.useState)(!1),[me,ue]=(0,c.useState)(!1),[xe,ve]=(0,c.useState)(null),pe=(0,c.useRef)(),he=(0,c.useRef)(),be=(0,o.wA)();(0,c.useEffect)(()=>{K&&pe.current&&pe.current.scrollIntoView({behavior:"smooth"})},[K]),(0,c.useEffect)(()=>{setTimeout(()=>{be((0,h._R)(!1))},1e3)},[be]),(0,c.useEffect)(()=>{me&&(ie("ansi"),oe(!1))},[me]),(0,c.useEffect)(()=>{if(!te&&null!==I&&void 0!==I&&I.length){var e;const a=null===(e=I.find(e=>0===e.ordem))||void 0===e?void 0:e.codigo;a&&ce(a)}},[te,I,ce]);const fe=e=>(e=JSON.parse(JSON.stringify(e))).sort((e,a)=>{var s,t;return null===(s=e.descricao)||void 0===s?void 0:s.trim().localeCompare(null===(t=a.descricao)||void 0===t?void 0:t.trim())}),ge=[{label:P("AreaTransferencia"),value:"A"},{label:P("Email"),value:"E"},{label:P("Impressao"),value:"I"}],je=[{label:P("Referencia"),value:"R",opcoes:["A","E","I"]},{label:P("Localizacao"),value:"L",opcoes:["I"]},{label:"MARC",value:"M",opcoes:["A","E","I"]},{label:"RIS",value:"RIS",opcoes:["A","E","I"]}],Ne=(0,x.useReactToPrint)({documentTitle:"R"===U?P("Referencia"):"M"===U?P("Marc"):"L"===U?P("Localizacao"):"",removeAfterPrint:!0,content:()=>ae.current});(0,c.useEffect)(()=>{s.length>0&&D(s.map(e=>e.cod_acervo))},[s]),(0,c.useEffect)(()=>{null===xe&&b.rK.getEmailSendingMessage().then(e=>{const{data:a}=e;void 0!==a&&""!==(null===a||void 0===a?void 0:a.trim())&&ve(e.data)}).catch(e=>{f.n6.tratarErro(e)})},[xe]),(0,c.useEffect)(()=>{q(fe(s.filter((e,a)=>a>=10*(O-1)&&a<10*O&&e)))},[O,s]);const we=(0,c.useCallback)(async()=>{de(!0);try{const e=["utf8","ansi","iso-8859-1"].includes(le)?le:"ansi";return(await b.d7.downloadCesta(U,L,e)).data}catch(e){return f.n6.tratarErro(e),ue(!0),null}finally{de(!1)}},[U,L,le]),Re=(0,c.useCallback)(async e=>{try{if(!["M","RIS","R","L"].includes(U))throw new Error(P("DadosExportacaoInvalidos"));const s="M"===U?".mrc":"RIS"===U?".ris":".txt";let t="cesta_".concat((new Date).toISOString().replace(/[:.]/g,"-")).concat(s);if(t=t.replace(/[^a-zA-Z0-9._\-]/g,"_").substring(0,100),"showSaveFilePicker"in window)try{const a={".mrc":"application/marc",".ris":"application/x-research-info-systems",".txt":"text/plain"}[s];await f.fX.saveFilePickerDownload(t,s,a,e)}catch(a){if("AbortError"===a.name)return;e&&e instanceof Blob&&await f.fX.commonDownload(t,e)}else e&&e instanceof Blob&&await f.fX.commonDownload(t,e)}catch(s){f.n6.tratarErro(s)}},[U,P]),Ce=async()=>
1{if("M"===U||"RIS"===U)try{const a=await b.d7.exportarAcervosCesta(Z,U,L);if(a){const{data:s}=await a;if(s&&"string"===typeof s.data){return"M"===U?(e=s.data.trim())&&"string"===typeof e?e.split(/<br\s*\/?>/i).map(e=>e&&e.trim()?e.replace(/^(\d{3})\s+([0-9#])\s+([0-9#])(\s+\$.*)$/i,"$1 $2$3$4"):e).join("<br>"):e:s.data.trim()}}}catch(a){return f.n6.tratarErro(a),null}else{if("L"===U){const e=null===s||void 0===s?void 0:s.filter(e=>{var a;return null!=e.classificacao&&""!==(null===(a=e.classificacao)||void 0===a?void 0:a.trim())});return(null===e||void 0===e?void 0:e.length)>0?e.map(e=>"".concat(P("Localizacao"),": ").concat(e.classificacao)).join("</br></br>"):(f.qp.warning("N\xe3o existem obras com informa\xe7\xe3o de localiza\xe7\xe3o na sua cesta."),null)}if("R"===U)return null===s||void 0===s?void 0:s.map(e=>null!==e&&void 0!==e&&e.classificacao?"".concat(null===e||void 0===e?void 0:e.referencia,"</br>").concat(P("Localizacao"),": ").concat(e.classificacao):null===e||void 0===e?void 0:e.referencia).join("</br></br>")}var e;return null},ye=e=>{L.find(a=>a===e.cod_acervo)&&D(L.filter(a=>a!==e.cod_acervo)),T.find(a=>a.cod_acervo===e.cod_acervo)&&q(fe(T.filter(a=>a.cod_acervo!==e.cod_acervo))),p.i.dispatch((0,h.If)(e.cod_acervo))};const _e=async()=>{if(0!==L.length&&"-1"!==Z&&"-1"!==U)if(J(!1),"A"===Z){Q(!1),f.qp.info(P("AguardeUmMomento"));const e=await Ce();J(e),setTimeout(()=>{var e;null===(e=he.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},500)}else if("E"===Z)if(K){if(!function(e){var a,s,t;H({});const c={};let n=!1;return e.address&&""!==(null===(a=e.address)||void 0===a?void 0:a.trim())?/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e.address)||(c.email={message:"O e-mail informado n\xe3o \xe9 v\xe1lido."},n=!0):(c.email={message:"O campo e-mail \xe9 obrigat\xf3rio."},n=!0),e.subject&&""!==(null===(s=e.subject)||void 0===s?void 0:s.trim())||(c.subject={message:"O campo assunto \xe9 obrigat\xf3rio"},n=!0),e.msg&&""!==(null===(t=e.msg)||void 0===t?void 0:t.trim())||(c.msg={message:"O campo assunto \xe9 obrigat\xf3rio"},n=!0),H(c),!n}(K))return;f.qp.info(P("AguardeUmMomento")),b.d7.exportarAcervosCesta(Z,U,L,K).then(()=>f.qp.success(P("EmailEnviadoSucesso"))).catch(e=>f.n6.tratarErro(e))}else{const e={address:" ",subject:" ",msg:" ",default:!1};f.Ud.tem(1118)?(e.default=!0,b.xD.buscarFuncionalidade(1118).then(a=>{e.subject=a.data.descricao,e.msg=a.data.texto_explicativo,Q(e)})):Q(e)}},ke=()=>{0!==L.length&&(f.qp.info(P("AguardeSalvandoItensCesta")),b.d7.gravarAcervosCestaPermanente(L).then(()=>{f.qp.success(P("SucessoGravarItensCesta").replace("#{N_ITENS}",L.length))}).catch(e=>f.n6.tratarErro(e)))},Se=(e,a)=>{const s=(0,t.A)({},K);s[e]=a,Q(s)};return(0,j.jsxs)(y,{guiaSelecionada:A?null===A||void 0===A?void 0:A.pesquisa:I.length?I.find(e=>0===e.ordem).codigo:"",children:[(0,j.jsx)("div",{className:"consultaContent col-md-12 pad5",children:(0,j.jsxs)(l.Row,{className:"bkbranco pad5 rad5 b-w2 b-tema10 b-solid",children:[(0,j.jsx)(i.fv,{md:"12",xs:"12",children:A&&(0,j.jsx)(l.Row,{className:"b-w1 b-cinza b-dotted-bottom",children:(0,j.jsx)(i.fv,{md:"5",xs:"12",className:"cortxt negrito s13 pad20",children:(0,j.jsxs)("a",{href:"#",onClick:e=>{if(e.preventDefault(),window.history.length>1)return void M(-1);const a=(()=>{const e=S&&"error"!==S&&S.searchVersion===w.L,{url:{pathname:a,search:s}}=null!==A&&void 0!==A?A:{url:"",search:""};return{pathname:a,search:"?".concat(e?n.stringify((0,t.A)((0,t.A)({},n.parse(s)),{},{page:E.paginaAtiva,per_page:E.quantPag,order_by:E.ordenacaoCombo,direction:E.ordenacao})):s),state:{origin:z&&z.pathname}}})();null!==a&&void 0!==a&&a.pathname&&M("".concat(a.pathname).concat(a.search||""),{state:a.state})},className:"m-0 link click hover1",children:[(0,j.jsx)(d.g,{icon:"list",className:"mr-2"}),P("VoltarListaResultados")]})})})}),(0,j.jsx)(i.fv,{md:"12",xs:"12",children:(0,j.jsxs)("h3",{className:"pad5 rad5 cortxt italico b-w1 b-cinza b-dotted-bottom",children:[(0,j.jsx)(d.g,{icon:"shopping-basket",className:"cortxt30 s20 r10 l10"}),(0,j.jsxs)("div",{className:"s18 negrito inline corxtx",children:[P("MinhaCesta")," -"," "]}),(0,j.jsx)("div",{className:"s18 f400 inline preto70",children:"("}),(0,j.jsx)("div",{className:"s20 f500  inline cortxt",children:L.length>=10?L.length:"0".concat(L.length)}),(0,j.jsxs)("div",{className:"s18 f400 inline preto70",children:[") ",P("ItensSelecionados")]})]})}),(0,j.jsx)(i.fv,{md:"12",xs:"12",className:"pt-2 pb-2 b-w1 b-cinza b-dotted-bottom",children:(0,j.jsxs)(l.Row,{className:"mb-2",children:[(0,j.jsx)(i.fv,{md:"2",xs:"12",className:"pt-md-3 pt-2 pl-md-4 pl-0 align-self-center",children:(0,j.jsx)(k,{modal:!0,openModalRender:()=>(0,j.jsxs)("button",{className:"btn-generic--primeiro ml-0",disabled:0===L.length,children:[(0,j.jsx)(d.g,{icon:"star",className:"mr-2"}),P("SalvarItensMinhaColecao")]}),altRender:e=>e&&(0,j.jsxs)("button",{className:"btn-generic--primeiro ml-0",disabled:0===L.length,onClick:()=>ke(),children:[(0,j.jsx)(d.g,{icon:"star",className:"mr-2"}),P("SalvarItensMinhaColecao")]}),loginCallback:()=>ke()})}),(0,j.jsx)(i.fv,{md:"2",xs:"12",className:"pt-md-3 pt-4 pl-md-4 pl-0 align-self-center",children:(0,j.jsxs)("button",{type:"button",className:"btn-generic--segundo nao",onClick:()=>{p.i.dispatch((0,h.kg)()),q([]),D([]),$("-1"),X("-1"),Q(!1),J(!1)},children:[(0,j.jsx)(d.g,{icon:"trash-alt",className:"mr-2"}),P("LimparCesta")]})}),(0,j.jsx)(i.fv,{md:"3",xs:"12",className:"pt-md-0 pt-2 pl-md-4 pl-0",children:(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{children:(0,j.jsxs)("span",{className:"s13 cortxt f500",children:[P("EnviarPara"),":"]})}),(0,j.jsxs)(l.Input,{type:"select",value:Z,onChange:e=>{e.preventDefault(),$(e.target.value),X("-1"),Q(!1),J(!1)},children:[(0,j.jsx)("option",{value:"-1",disabled:!0}),ge.map(e=>(0,j.jsx)("option",{value:e.value,children:e.label},"opt-exp-".concat(e.value)))]})]})}),(0,j.jsx)(i.fv,{md:"3",xs:"12",className:"pt-md-0 pt-2 pl-md-4 pl-0",children:(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{children:(0,j.jsx)("span",{className:"s13 cortxt f500",children:P("QuaisDados")})}),(0,j.jsxs)(l.Input,{type:"select",value:U,onChange:e=>X(e.target.value),children:[(0,j.jsx)("option",{value:"-1",disabled:!0}),je.filter(e=>e.opcoes.includes(Z)).map(e=>(0,j.jsx)("option",{value:e.value,children:e.label},"opt-dat-".concat(e.value)))]})]})}),(0,j.jsx)(i.fv,{md:"2",xs:"12",className:"pt-md-3 pt-4 pl-md-4 pl-0 align-self-center",children:(0,j.jsxs)("button",{type:"button",className:"btn-generic--primeiro",disabled:0===L.length||"-1"===U||"-1"===Z,onClick:async()=>
1{if("I"===Z){ee(null);const e=await Ce();return ee(e),void(null!==e&&setTimeout(()=>Ne(),50))}_e()},children:[(0,j.jsx)(d.g,{icon:"share",className:"mr-2"}),P("Confirmar")]})})]})}),s.length>10&&(0,j.jsx)(i.fv,{md:"12",xs:"12",className:"mt-3",children:(0,j.jsx)(C.AV,{activePage:O,itemsPerPage:10,totalItems:s.length,onPageChange:e=>F(e)})}),(0,j.jsx)(i.fv,{md:"12",xs:"12",className:"pad10 preto70 bkcinza2 rad2 b-solid-bottom b-w1 b-cinza",children:(0,j.jsxs)(l.Row,{children:[(0,j.jsx)(i.fv,{md:"1",xs:"2",className:"txt-center",children:(0,j.jsx)(l.Input,{type:"checkbox",id:"chkSelectAll",checked:L&&L.length&&s.every(e=>L.includes(e.cod_acervo)),onChange:e=>{if(e.target.checked){const e=[...s].map(e=>e.cod_acervo);D(e)}else D([])}})}),(0,j.jsx)(i.fv,{md:"9",xs:"10",children:(0,j.jsx)("span",{className:"f700 preto80",children:P("DescricaoObra")})})]})}),T&&T.map((e,a)=>(0,j.jsx)(i.fv,{md:"12",xs:"12",className:"pad10 preto70 rad2 b-dotted-bottom b-w1 b-cinza2 ".concat(a%2===0?"bkbranco":"bkcinza2"),children:(0,j.jsxs)(l.Row,{children:[(0,j.jsx)(i.fv,{md:"1",xs:"1",className:"txt-center",children:(0,j.jsx)(l.Input,{type:"checkbox",checked:L.some(a=>a===e.cod_acervo),id:"chkItem-".concat(e.cod_acervo),onChange:()=>(e=>{let a=[...L];L.find(a=>a===e.cod_acervo)?a=a.filter(a=>a!==e.cod_acervo):a.push(e.cod_acervo),D(a)})(e)})}),(0,j.jsxs)(i.fv,{md:"9",xs:"11",children:[(0,j.jsx)("button",{type:"button",className:"px-2 btn-generic--segundo ml-0 mr-3",title:P("MostrarDadosAcervo"),onClick:()=>{return a=e,void(V.some(a=>a.cod_acervo===e.cod_acervo)?B(e=>e.filter(e=>e.cod_acervo!==a.cod_acervo)):b.d7.buscarDadosAcervo(a.cod_acervo).then(e=>{B(s=>[...s,{cod_acervo:a.cod_acervo,dados:e.data}])}).catch(e=>f.n6.tratarErro(e)));var a},children:(0,j.jsx)(d.g,{icon:"".concat(V.some(a=>a.cod_acervo===e.cod_acervo)?"chevron-up":"chevron-down")})}),(0,j.jsx)("span",{className:"f500 preto",children:"".concat(e.descricao||e.obra," - ").concat(e.desc_tipo_obra.includes("(")?e.desc_tipo_obra:"( ".concat(e.desc_tipo_obra," )"))}),(0,j.jsx)("div",{className:"mt-2 ml-md-5 ml-0",children:(0,j.jsx)("span",{className:"text-justify s14 f400 preto60",style:{overflowWrap:"break-word"},children:e.referencia&&(0,u.Ay)((0,g.pn)(e.referencia))})})]}),(0,j.jsx)(i.fv,{sm:"2",className:"text-center mt-sm-0 d-sm-block d-none align-self-center",children:(0,j.jsx)("button",{type:"button",className:"px-2 btn-generic--primeiro nao m-0",title:P("Remover"),onClick:()=>ye(e),children:(0,j.jsx)(d.g,{icon:"trash-alt"})})}),(0,j.jsx)(i.fv,{md:{span:11,offset:1},xs:"12",children:(0,j.jsx)(l.Collapse,{isOpen:V.some(a=>a.cod_acervo===e.cod_acervo),children:(0,j.jsx)("div",{className:"pad5 rad5 b-cinza b-w1 b-solid scinza mt-2 mb-2",children:V.find(a=>a.cod_acervo===e.cod_acervo)&&(0,j.jsx)(_,{codAcervo:e.cod_acervo,dados:V.find(a=>a.cod_acervo===e.cod_acervo).dados})})})}),(0,j.jsx)(i.fv,{xs:"12",className:"mt-2 d-block d-sm-none text-center",children:(0,j.jsxs)("button",{type:"button",className:"btn-generic--primeiro nao",onClick:()=>ye(e),children:[(0,j.jsx)(d.g,{icon:"trash-alt",className:"mr-2"}),P("Remover")]})})]})},"cesta-".concat(null===e||void 0===e?void 0:e.cod_acervo,"-").concat(a))),0===s.length&&(0,j.jsx)(i.fv,{md:"12",xs:"12",className:"pt-2 pb-2 text-center",children:(0,j.jsx)("div",{className:"p-4",children:(0,j.jsx)("span",{className:"s20 preto50 f400",children:P("MsgVazioCesta")})})}),s.length>10&&(0,j.jsx)(i.fv,{md:"12",xs:"12",className:"mt-3",children:(0,j.jsx)(C.AV,{activePage:O,itemsPerPage:10,totalItems:s.length,onPageChange:e=>F(e)})}),K&&(0,j.jsxs)(i.fv,{ref:pe,md:"11",xs:"12",className:"rad5 preto70 pad10 b-w10 b-tema10 b-solid mx-md-5 mx-0 mt-2",id:"div-email",children:[(0,j.jsx)("div",{className:"negrito cortxt s20 pad5",children:P("EnviarPorEmail")}),(0,j.jsxs)(l.Row,{className:"b-w1 b-cinza2 b-solid-top pad5",children:[(0,j.jsx)(i.fv,{md:"3",className:"mt-1",children:(0,j.jsxs)("label",{className:"negrito t5",htmlFor:"address",children:[P("Para"),":"]})}),(0,j.jsxs)(i.fv,{md:"9",className:"mt-1",children:[(0,j.jsx)(l.Input,{invalid:null===W||void 0===W?void 0:W.email,type:"email",name:"address",value:K.address,onChange:e=>Se(e.target.name,e.target.value)}),(0,j.jsx)("div",{className:"invalid-feedback",children:null===W||void 0===W||null===(a=W.email)||void 0===a?void 0:a.message}),(0,j.jsx)("div",{children:(0,j.jsx)("span",{className:"italico preto70",children:null!==xe?xe:P("ObsEnviarMultEmail")})})]})]}),(0,j.jsxs)(l.Row,{className:"b-w1 b-cinza2 b-solid-top pad5",children:[(0,j.jsx)(i.fv,{md:"3",className:"mt-1",children:(0,j.jsxs)("label",{className:"negrito t5",htmlFor:"subject",children:[P("AssuntoEmail"),":"]})}),(0,j.jsx)(i.fv,{md:"9",className:"mt-1",children:(0,j.jsx)(l.Input,{type:"text",value:K.subject,name:"subject",disabled:K.default,onCh
1ange:e=>Se(e.target.name,e.target.value)})})]}),(0,j.jsxs)(l.Row,{className:"b-w1 b-cinza2 b-solid-top pad5",children:[(0,j.jsx)(i.fv,{md:"3",className:"mt-1",children:(0,j.jsxs)("label",{className:"negrito t5",htmlFor:"msg",children:[P("MensagemEmail"),":"]})}),(0,j.jsx)(i.fv,{md:"9",className:"mt-1",children:(0,j.jsx)(l.Input,{type:"textarea",rows:"6",name:"msg",value:K.msg,disabled:K.default,onChange:e=>Se(e.target.name,e.target.value)})})]}),(0,j.jsx)(l.Row,{className:"b-w1 b-cinza2 b-solid-top pad5",children:(0,j.jsx)(i.fv,{md:"12",className:"txt-center pad10",children:(0,j.jsxs)("button",{type:"button",className:"btn-generic--primeiro ml-0",onClick:_e,children:[(0,j.jsx)(d.g,{icon:"paper-plane",className:"r5"}),P("Enviar")]})})})]}),(0,j.jsx)("div",{style:{display:"none"},children:"I"===Z&&null!==Y?(0,j.jsx)(N,{dadosExport:U,dataToPrint:Y,ref:ae}):""}),G&&(0,j.jsxs)(i.fv,{xs:"12",sm:{span:10,offset:1},className:"rad5 preto70 pad10 b-w10 b-tema10 b-solid mt-4",ref:he,children:[(0,j.jsx)("div",{className:"negrito cortxt s20 pad5",children:P("TextoAreaTransferencia")}),(0,j.jsx)(l.Row,{className:"b-w1 b-cinza2 b-solid-top pad10",children:(0,j.jsx)(i.fv,{md:"12",xs:"12",children:(0,j.jsx)("div",{className:"mt-2 area-transferencia-custom-content",children:(0,j.jsx)("div",{ref:se,className:"sanitized-content",children:G&&(0,j.jsx)("div",{className:"safe-html-content",children:(0,u.Ay)((0,g.pn)(G))})})})})}),(0,j.jsx)(l.Row,{className:"b-w1 b-cinza2 b-solid-top pad5",children:(0,j.jsxs)(i.fv,{md:"12",xs:"12",className:"text-center",children:[(0,j.jsxs)("button",{type:"button",className:"btn-generic--segundo",onClick:()=>{f.MZ.copyToClipboard(se.current.innerText)},children:[(0,j.jsx)(d.g,{icon:v.jPR,className:"r5"}),P("Copiar")]}),(0,j.jsxs)("button",{type:"button",className:"btn-generic--primeiro ml-2",onClick:()=>oe(e=>!e),children:[(0,j.jsx)(d.g,{icon:v.cbP,className:"r5"}),P("Baixar")]})]})})]})]})}),(0,j.jsx)(C.ok,{closeable:!1,closeAction:!0,size:"sm",title:P("Baixar"),open:ne,setOpen:()=>oe(!1),onClosed:()=>{ie("ansi")},children:(0,j.jsxs)("div",{className:"d-flex flex-column p-4",style:{gap:"8px"},children:[(0,j.jsxs)("div",{className:"d-flex flex-column",children:[(0,j.jsx)("label",{className:"label",children:P("SelecioneOFormato")}),(0,j.jsxs)(i.lV.Select,{value:le,onChange:e=>ie(e.target.value),children:[(0,j.jsx)("option",{value:"utf8",children:"UTF8"}),(0,j.jsx)("option",{value:"ansi",children:"ANSI"})]})]}),re?(0,j.jsxs)("div",{className:"text-center pt-2",children:[(0,j.jsx)(C.Ew,{visible:!0,className:"s15 cortxt70",height:30,width:30}),(0,j.jsx)("div",{className:"mx-auto mt-1 mb-2",children:P("AguardePreparandoDownload")})]}):(0,j.jsxs)("button",{type:"button",className:"btn-generic--primeiro ml-2",disabled:re,onClick:async()=>{const e=await we();e&&Re(e).finally(()=>{oe(!1)})},children:[(0,j.jsx)(d.g,{icon:v.cbP,className:"r5"}),P("Baixar")]}),re?null:(0,j.jsxs)("button",{type:"button",className:"btn-generic--segundo",onClick:()=>{oe(!1)},children:[(0,j.jsx)(d.g,{icon:v.GRI,className:"r5"}),P("Cancelar")]})]})})]})})}}]);

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.