1import{Lt as e,zt as t}from"./account-application-demo-checkout.oilVSmvE.js";import{cn as n,sn as r}from"./platform-components-checkout-i18next.config.DIPKfKrc.js";import{t as i}from"./vendor-react-i18next-dist-es-useTranslation.py8bq3XP.js";var a=e=>{let{t}=i(`shared`),n=e?2:1;return{invoice:t(e=>e[`candidate.type.invoice`],{count:n}),salesreceipt:t(e=>e[`candidate.type.salesreceipt`],{count:n}),purchaserefund:t(e=>e[`candidate.type.purchaserefund`],{count:n}),remittance:t(e=>e[`candidate.type.remittance`],{count:n}),remittanceoutbound:t(e=>e[`candidate.type.remittance.inbound`],{count:n}),remittanceinbound:t(e=>e[`candidate.type.remittance.outbound`],{count:n}),collection:t(e=>e[`candidate.type.collection`],{count:n}),purchase:t(e=>e[`candidate.type.purchase`],{count:n}),creditnote:t(e=>e[`candidate.type.creditnote`],{count:n}),purchasereceipt:t(e=>e[`candidate.type.purchasereceipt`],{count:n}),payroll:t(e=>e[`candidate.type.payroll`],{count:n}),payment:t(e=>e[`candidate.type.payment`],{count:n}),salesorder:t(e=>e[`candidate.type.salesorder`],{count:n})}},o=(e,t)=>({name:`documents_view`,params:{type:t,id:e}}),s=e=>({name:`payrollsnippet`,params:{action:`edit`,payrollid:e}}),c={invoice:o,salesreceipt:o,purchase:o,creditnote:o,purchaserefund:o,receiptnote:o,estimate:o,order:o,payroll:s,expemployee:s,entry:e=>({name:`aentry`,params:{action:`edit`,entry:e}})},l=()=>{let{toast:s}=e(),{t:l}=i(`shared`),u=a();return{openDocument:(e,i,a)=>{if(e===`payment`)return n({name:`newpaymentsnippet`,params:{action:`preview`,docid:i},onClose:a?.onClose});if(e===`invoicerecurring`){t(`/sales/recurring#open:invoicerecurring-${i}`,`_blank`);return}if(e===`purchaserecurring`){t(`/purchases/recurring#open:purchaserecurring-${i}`,`_blank`);return}if(e===`payrollrecurring`){t(`/payrolls/recurring#open:payrollrecurring-${i}`,`_blank`);return}if(e===`payroll`||e===`expemployee`){r({name:`PayrollDialogWidget`,module:`team`,props:{id:i},onClose:a?.onClose});return}if(e===`purchasereceipt`){n({...o(i,`purchase`),onClose:a?.onClose});return}if(e===`estimate`){n({...o(i,`estimate`),onClose:a?.onClose});return}if(e===`order`){n({...o(i,`order`),onClose:a?.onClose});return}return e in c?n({...c[e](i,e),onClose:a?.onClose}):s(l(e=>e[`candidates.related.name.not.exists`],{name:u[e]??e}),{severity:`info`})}}};export{a as n,l as t};
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.