import{fetchAllInvoices as t}from"./lib/api-helpers.js";import{defineSmartComponent as e}from"./lib/smart/define-smart-component.js";import"./cc-smart-container.js";import"./cc-invoice-list.js";e({selector:"cc-invoice-list",params:{apiConfig:{type:Object},ownerId:{type:String}},onContextUpdate({context:e,updateComponent:o,signal:i}){o("state",{type:"loading"});const{apiConfig:n,ownerId:r}=e;t({apiConfig:n,ownerId:r,signal:i}).then((t=>{o("state",{type:"loaded",invoices:t})})).catch((t=>{console.error(t),o("state",{type:"error"})}))}});
//# sourceMappingURL=cc-invoice-list.smart.js.map
