import{C as O}from"./chunk-CKNOD7HV.js";import{a as k}from"./chunk-ZJ7WKAH3.js";import{Aa as u,Ab as C,Bb as v,Cb as x,Da as g,Db as I,Lb as h,Oa as a,Wa as l,Zb as F,ba as f,db as c,eb as s,fb as _,sb as m,tc as w,uc as P,yb as y,zb as b}from"./chunk-QXV2GR6R.js";import{i as r}from"./chunk-JJ4RDTEF.js";var M=["popover"];function T(e,t){if(e&1&&(c(0,"a",6),x(1),s()),e&2){let i=t.$implicit;l("href",i.url,u),g(),I(i.label);}}function N(e,t){if(e&1&&a(0,T,2,2,"a",5),e&2){let i=m(2);l("ngForOf",i.syndicationItems);}}function Q(e,t){if(e&1&&(c(0,"button",3,0),_(2,"my-global-icon",4),a(3,N,1,1,"ng-template",null,1,F),s()),e&2){let i=v(4),n=m();l("ngbPopover",i)("autoClose",!0)("title",n.getTitle());}}var S=(()=>{let t=class t{constructor(){r(this,"popover");r(this,"syndicationItems");}getTitle(){var n;return(n=this.popover)!=null&&n.isOpen()?"Close syndication dropdown":"\u5F00\u542F\u6574\u5408\u5F0F\u4E0B\u62C9\u83DC\u5355";}};r(t,"\u0275fac",function(o){return new(o||t)();}),r(t,"\u0275cmp",f({type:t,selectors:[["my-feed"]],viewQuery:function(o,p){if(o&1&&y(M,5),o&2){let d;b(d=C())&&(p.popover=d.first);}},inputs:{syndicationItems:"syndicationItems"},standalone:!0,features:[h],decls:1,vars:1,consts:[["popover","ngbPopover"],["feedsList",""],["placement","bottom left auto","class","feed border-0 p-0",3,"ngbPopover","autoClose","title",4,"ngIf"],["placement","bottom left auto",1,"feed","border-0","p-0",3,"ngbPopover","autoClose","title"],["iconName","syndication"],["class","feed-link","target","_blank","rel","noopener noreferrer",3,"href",4,"ngFor","ngForOf"],["target","_blank","rel","noopener noreferrer",1,"feed-link",3,"href"]],template:function(o,p){o&1&&a(0,Q,5,3,"button",2),o&2&&l("ngIf",p.syndicationItems&&p.syndicationItems.length!==0);},dependencies:[P,O,k,w],styles:[`.feed[_ngcontent-%COMP%]{width:100%;color:inherit}.feed-link[_ngcontent-%COMP%]{color:var(--fg);display:block;min-width:100px}.feed-link[_ngcontent-%COMP%]:hover{text-decoration:underline}my-global-icon[_ngcontent-%COMP%]{width:100%}
/*# sourceMappingURL=feed.component-CCIQNA7E.css.map */`]}));let e=t;return e;})();export{S as a};/**i18n:224bcada6943fe8b17ea60808c2d370cec9507c3bd670ebe71692d099a3befa1*///# sourceMappingURL=chunk-AJJ57J56.js.map