import{y as o,v as E,w as j,a3 as x,f as m,dQ as L,bM as O,s as f,t as S,z as V,D as z,K as D}from"./index-DT8qTvyx.js";function F(e){var t=e.items,s=e.mode,i=e.style,c=e.direction,d=e.reverse,r=e.data,l=e.itemTitleSchema,N=e.className,g=e.timeClassName,v=e.titleClassName,y=e.detailClassName,u=e.render,h=function(a,n){return typeof n=="string"?D(n,r):n&&u(a,n)},T=(t||[]).map(function(a,n){var C=a.icon,_=a.iconClassName,R=a.title,b=a.timeClassName,w=a.titleClassName,A=a.detailClassName;return o(o({},a),{iconClassName:_,timeClassName:b,titleClassName:w,detailClassName:A,icon:E(C)?j(C,r,"| raw"):C,title:l?u("".concat(n,"/body"),l,{data:x(r,a)}):h("title",R)})});return m.createElement(L,{items:T,direction:c,reverse:d,mode:s,style:i,className:N,timeClassName:g,titleClassName:v,detailClassName:y})}var K=O({adaptor:function(e){return e.items||e}})(function(e){f(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){var s=this.props,i=s.config,c=s.items;s.deferLoad,s.loading,s.updateConfig;var d=S(s,["config","items","deferLoad","loading","updateConfig"]),r=i?Array.isArray(i)?i:Object.keys(i).map(function(l){return{time:l,title:i[l]}}):c||[];return m.createElement(F,o({items:r},d))},t}(m.Component)),P=function(e){f(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return m.createElement(K,o({},this.props))},t=V([z({type:"timeline"})],t),t}(m.Component);export{F as TimelineCmpt,P as TimelineRenderer};
