1 |
- import{s as g,E as h,G as l,f,cX as y,y as u,w as C,z as p,P as v,Q as s,a1 as m}from"./index-DT8qTvyx.js";var _=function(e){g(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.onFinish=function(r){return h(this,void 0,void 0,function(){var t,i,d,o;return l(this,function(a){switch(a.label){case 0:return t=this.props,i=t.dispatchEvent,d=t.data,[4,i("finish",u(u({},d),{value:r}),this)];case 1:return o=a.sent(),o!=null&&o.prevented?[2]:[2]}})})},n.prototype.onChange=function(r){return h(this,void 0,void 0,function(){var t,i,d,o,a;return l(this,function(c){switch(c.label){case 0:return t=this.props,i=t.onChange,d=t.data,o=t.dispatchEvent,[4,o("change",u(u({},d),{value:r}))];case 1:return a=c.sent(),a!=null&&a.prevented?[2]:(i==null||i(r),[2])}})})},n.prototype.render=function(){var r=this.props.separator;return f.createElement(y,u({},this.props,{separator:typeof r=="string"?function(t){return C(r,t)}:function(){},onFinish:this.onFinish,onChange:this.onChange}))},p([v,s("design:type",Function),s("design:paramtypes",[String]),s("design:returntype",Promise)],n.prototype,"onFinish",null),p([v,s("design:type",Function),s("design:paramtypes",[String]),s("design:returntype",Promise)],n.prototype,"onChange",null),n}(f.Component),F=function(e){g(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n=p([m({type:"input-verification-code"})],n),n}(_);export{F as VerificationCodeControlRenderer,_ as default};
|