Steps-BYbG0zDH.js 1.5 KB

1
  1. import{w as _,v as E,ai as A,bb as U,y as d,dP as j,f as l,dk as L,bM as T,s as h,t as z,aE as F,z as K,D as M,K as O}from"./index-DT8qTvyx.js";function W(e){var a,r=e.className,u=e.style,f=e.steps,n=e.status,C=e.mode,P=e.labelPlacement,V=e.progressDot,c=e.data,w=e.source,I=e.render,N=e.mobileUI,p=_(w,c,"| raw"),b=(Array.isArray(p)?p:void 0)||f||[],s=E(n)?_(n,c,"| raw"):n,v=function(t){return typeof t=="string"?O(t,c):t&&I("inner",t)},i=(a=A(e))!==null&&a!==void 0?a:0,y=typeof i=="string"&&isNaN(+i)?U(i,c)||i:+i,S=b.findIndex(function(t){return t.value&&t.value===y}),R=S!==-1?S:y,x=b.map(function(t,m){var o=D(t,m);return d(d({},t),{status:o,title:v(t.title),subTitle:v(t.subTitle),description:v(t.description)})});function D(t,m){var o;if(typeof s=="string")m===R&&(o=s||n||j.process);else if(typeof s=="object"){var g=t.value;g&&s[g]&&(o=s[g])}return o}return l.createElement(L,{current:R,steps:x,className:r,style:u,status:s,mode:C,progressDot:V,labelPlacement:P,mobileUI:N})}var $=T()(function(e){h(a,e);function a(){return e!==null&&e.apply(this,arguments)||this}return a.prototype.render=function(){var r=this.props,u=r.config;r.deferLoad,r.loading,r.updateConfig;var f=z(r,["config","deferLoad","loading","updateConfig"]),n=F(u)?u:null;return l.createElement(W,d({},f,n))},a}(l.Component)),B=function(e){h(a,e);function a(){return e!==null&&e.apply(this,arguments)||this}return a.prototype.render=function(){return l.createElement($,d({},this.props))},a=K([M({type:"steps"})],a),a}(l.Component);export{W as StepsCmpt,B as StepsRenderer};