import {k as ke,d}from'./chunk-_RTsRpwk.js';import {E,s as st,f,Z as Zt}from'./chunk-BRPXnOPq.js';import {J,c as tS,i as S,U as RN,by as it,w as wo,f as QT,X as _z,u as R,a0 as ks,bp as QC,v as W_,z as vM,a2 as Uu,A as Iw,br as ZC,c2 as iv,di as DM,a1 as Ny,bz as f_,a4 as Sy,bk as i_,a3 as Py,K as Kg,bm as Bp,bo as $p}from'./main-WUGO6e7n.js';function O(e,d){if(e&1&&(Ny(0,"img",1),vM(1,"translate")),e&2){let t=f_();Sy("src",t.illustration,Kg)("alt",t.altKey?DM(1,2,t.altKey,t.translateArgs):"");}}function M(e,d){if(e&1&&(ks(0,"span",4),W_(1),vM(2,"translate"),Uu()),e&2){let t=f_();Iw(),iv(DM(2,1,t.descriptionKey,t.translateArgs));}}function $(e,d){if(e&1){let t=i_();ks(0,"dvl-button",10),vM(1,"translate"),Py("onClick",function(i){Bp(t);let y=f_(3);return $p(y.onPrimaryClick(i))}),Uu();}if(e&2){let t=f_(3);Sy("label",DM(1,1,t.primaryActionKey,t.translateArgs));}}function z(e,d){if(e&1){let t=i_();ks(0,"dvl-button",11),vM(1,"translate"),Py("onClick",function(i){Bp(t);let y=f_(3);return $p(y.onSecondaryClick(i))}),Uu();}if(e&2){let t=f_(3);Sy("label",DM(1,1,t.secondaryActionKey,t.translateArgs));}}function U(e,d){if(e&1&&(ks(0,"div",6),QC(1,$,2,4,"dvl-button",8),QC(2,z,2,4,"dvl-button",9),Uu()),e&2){let t=f_(2);Iw(),ZC(t.primaryActionKey?1:-1),Iw(),ZC(t.secondaryActionKey?2:-1);}}function q(e,d){if(e&1){let t=i_();ks(0,"dvl-button",12),vM(1,"translate"),Py("onClick",function(i){Bp(t);let y=f_(2);return $p(y.onLinkClick(i))}),Uu();}if(e&2){let t=f_(2);Sy("label",DM(1,1,t.linkActionKey,t.translateArgs));}}function G(e,d){if(e&1&&(ks(0,"div",5),QC(1,U,3,2,"div",6),QC(2,q,2,4,"dvl-button",7),Uu()),e&2){let t=f_();Iw(),ZC(t.primaryActionKey||t.secondaryActionKey?1:-1),Iw(),ZC(t.linkActionKey?2:-1);}}var F,ot,H=J(()=>{tS();S();RN();E();ke();tS();st();F=new Set,ot=(()=>{class e{get translateArgs(){return this.productName?[this.productName]:[]}constructor(t){this.telemetryFactory=t,this.altKey="",this.primaryAction=new it,this.secondaryAction=new it,this.linkAction=new it;}ngOnInit(){this.telemetryKey&&!F.has(this.telemetryKey)&&(F.add(this.telemetryKey),this.track("Opened"));}onPrimaryClick(t){this.track("PrimaryClicked"),this.primaryAction.emit(t);}onSecondaryClick(t){this.track("SecondaryClicked"),this.secondaryAction.emit(t);}onLinkClick(t){this.track("LinkClicked"),this.linkAction.emit(t);}track(t){if(!this.telemetryKey)return;let i=d.EmptyState[`${this.telemetryKey}EmptyState${t}`];typeof i=="string"&&this.telemetryFactory.createFeatureEvent(f.EmptyState,i);}static{this.\u0275fac=function(l){return new(l||e)(wo(Zt))};}static{this.\u0275cmp=QT({type:e,selectors:[["dvls-empty-state"]],hostAttrs:[1,"flex","flex-1","items-center","justify-center","min-h-[60vh]","w-full"],inputs:{illustration:"illustration",altKey:"altKey",titleKey:"titleKey",descriptionKey:"descriptionKey",primaryActionKey:"primaryActionKey",secondaryActionKey:"secondaryActionKey",linkActionKey:"linkActionKey",productName:"productName",telemetryKey:"telemetryKey"},outputs:{primaryAction:"primaryAction",secondaryAction:"secondaryAction",linkAction:"linkAction"},decls:8,vars:7,consts:[[1,"flex","flex-col","items-center","gap-4","max-w-[560px]","mx-auto","p-4","text-center"],[1,"max-h-[180px]","w-auto",3,"src","alt"],[1,"flex","flex-col","items-center","gap-2","w-full"],[1,"font-semibold","text-lg","leading-[1.2]","text-400"],[1,"font-normal","text-sm","leading-[1.3]","break-words","text-200"],[1,"flex","flex-col","items-center","gap-6"],[1,"flex","gap-3","items-center","justify-center"],["variant","link","styleClass","empty-state-link-icon","icon","dvl-icon dvl-icon-link-external","iconPos","right",3,"label"],["variant","primary",3,"label"],["variant","secondary",3,"label"],["variant","primary",3,"onClick","label"],["variant","secondary",3,"onClick","label"],["variant","link","styleClass","empty-state-link-icon","icon","dvl-icon dvl-icon-link-external","iconPos","right",3,"onClick","label"]],template:function(l,i){l&1&&(ks(0,"div",0),QC(1,O,2,5,"img",1),ks(2,"div",2)(3,"span",3),W_(4),vM(5,"translate"),Uu(),QC(6,M,3,4,"span",4),Uu(),QC(7,G,3,2,"div",5),Uu()),l&2&&(Iw(),ZC(i.illustration?1:-1),Iw(3),iv(DM(5,4,i.titleKey,i.translateArgs)),Iw(2),ZC(i.descriptionKey?6:-1),Iw(),ZC(i.primaryActionKey||i.secondaryActionKey||i.linkActionKey?7:-1));},dependencies:[_z,R],encapsulation:2,changeDetection:1});}}return e})();});export{H,ot as o};