import{s as h,dS as g,dT as b,ai as _,v as m,w as A,f as d,dU as C,y as N,dV as x,z as v,P as V,Q as c,D as P}from"./index-DT8qTvyx.js";var w=function(i){h(s,i);function s(){return i!==null&&i.apply(this,arguments)||this}return s.prototype.handleClick=function(e){var n=this;return function(l){var r;e.link?r=g.isUrl({},e.link)?{type:"button",actionType:"url",url:e.link,blank:e.blank}:{type:"button",actionType:"link",link:e.link}:r=e.clickAction,b(l,r,n.props,e)}},s.prototype.render=function(){var e=this,n=this.props,l=n.itemClassName;n.style;var r=n.contentClassName,o=n.source,u=n.data,p=n.options,y=n.classnames,f=_(this.props),a=[];return typeof o=="string"&&m(o)?a=A(o,u,"| raw")||void 0:Array.isArray(f)?a=f:Array.isArray(p)&&(a=p),a&&!Array.isArray(a)&&(a=[a]),a!=null&&a.length?d.createElement(C,N({},this.props),a.map(function(t,k){return d.createElement(x,{key:k,onClick:t.clickAction||t.link?e.handleClick(t):void 0,className:l,contentClassName:r,text:t.text,icon:t.icon,classnames:y,badge:t.badge?{badge:t.badge,data:u,classnames:y}:void 0})})):null},v([V,c("design:type",Function),c("design:paramtypes",[Object]),c("design:returntype",void 0)],s.prototype,"handleClick",null),s=v([P({type:"grid-nav"})],s),s}(d.Component);export{w as default};
