1import{p as d,u}from"./vendor-react-DEvm0Yd7.js";import{u as f}from"./useCustomMutation-0u9fi4tz.js";import{c as p}from"./services-CAE4f3Xe.js";import{i as l}from"./api-B6flkda-.js";import{u as m}from"./useWithLoading-NPnK_OQq.js";import{A as b}from"./apiPaths-CEGqu0tW.js";import"./i18n-BDV6UXRb.js";import{g}from"./getMidTypeFromPath-D-txVVnt.js";import{b1 as y}from"./vendor-BNeuUSwa.js";try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="b3672c8c-fbb9-49ac-a673-0c2842b05b1f",t._sentryDebugIdIdentifier="sentry-dbid-b3672c8c-fbb9-49ac-a673-0c2842b05b1f")})()}catch{}const P=t=>{const e=document.createElement("textarea");return e.innerHTML=t,e.value},I=["post-result-pdf"],w=t=>{const{toast:e}=d(),{t:r}=u(),{startLoading:a,stopLoading:n}=m();return f({mutationKey:I,mutationFn:p.postResultPdfByFileSrl,onMutate:o=>{a()},onSettled:()=>{n()},onSuccess:(o,{fileSrl:s,body:i})=>{const c=new URLSearchParams({l:y.language,type:i.type,filename:P(o.filename)});document.location.href=`/api${b.COPYKILLER.RESULT_PDF(g(),s)}?${c.toString()}`},onError:o=>{if(l(o))switch(o.response?.data?.code){case 7:e({variant:"error",description:r("APIì¤ë¥.E7.í ì¤í¸.ì¤ëª ")});break;case 8:e({variant:"error",description:r("APIì¤ë¥.E8.ë©ìì§")});break;case 2002:e({variant:"error",description:r("APIì¤ë¥.E2002.í ì¤í¸.ì¤ëª ")});break;case 2009:e({variant:"error",description:r("APIì¤ë¥.E2009.í ì¤í¸.ì¤ëª ")});break;default:e({description:r("APIì¤ë¥.ëí´í¸"),variant:"error"})}}})};export{P as d,w as u}; 2//# sourceMappingURL=usePostResultPdfByFileSrlMutation-t3cCUL-s.js.map
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.