import{defineSmartComponent as e}from"./lib/smart/define-smart-component.js";import"./cc-smart-container.js";import{CcAddonHeaderClient as o}from"./cc-addon-header.client.js";import"./cc-addon-header.js";e({selector:'cc-addon-header[smart-mode="config-provider"]',params:{apiConfig:{type:Object},ownerId:{type:String},addonId:{type:String}},onContextUpdate({context:e,updateComponent:r,signal:d}){const{apiConfig:n,ownerId:t,addonId:a}=e,i=new o({apiConfig:n,ownerId:t,addonId:a,providerId:"config-provider",signal:d});r("state",{type:"loading"}),i.getAddonWithZone().then((({rawAddon:e,zone:o})=>{r("state",{type:"loaded",providerId:e.provider.name,providerLogoUrl:e.provider.logoUrl,name:e.name,id:e.realId,zone:o})})).catch((e=>{console.error(e),r("state",{type:"error"})}))}});
//# sourceMappingURL=cc-addon-header.smart-config-provider.js.map
