(window.multistep_editor_jsonpFunction=window.multistep_editor_jsonpFunction||[]).push([[26],{930:function(t,e,i){"use strict";i.r(e),i.d(e,"AuWidgetFinishButton",function(){return b}),i.d(e,"widget",function(){return b});var n=i(0),o=i(2),c=i(160),s=i(1),r=i(15),b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.selector="#finishButton",e._subscribed=!1,e}return Object(n.d)(e,t),e.prototype.updateParams=function(t){void 0!==t.visible&&(this.visible=t.visible),void 0!==t.enabled&&(this.enabled=t.enabled),this._onClick=s.a.functionWrapperConstructor(t.onClick),this.auWizard._showDefaultTopBar&&this._changeDisable()},e.prototype._changeDisable=function(){var t=this;this.publishData({selector:this.selector},r.a.GET_ELEMENT_FROM_AU_WIZARD).then(function(e){e&&(void 0!==t.visible&&(e.hidden=!t.visible,e.setAttribute&&e.setAttribute("data-hidden",e.hidden)),void 0!==t.enabled&&(e.enabled=t.enabled),t._subscribed||(e.onFinish.subscribe(function(){return Object(n.b)(t,void 0,void 0,function(){return Object(n.e)(this,function(t){switch(t.label){case 0:return[4,this._onClick()];case 1:return t.sent(),[2]}})})}),t._subscribed=!0))})},Object(n.c)([Object(o.c)(),Object(n.g)("design:type",Object)],e.prototype,"params",void 0),Object(n.c)([Object(o.c)(),Object(n.g)("design:type",String)],e.prototype,"selector",void 0),Object(n.c)([Object(o.c)(),Object(n.g)("design:type",Boolean)],e.prototype,"enabled",void 0),Object(n.c)([Object(o.c)(),Object(n.g)("design:type",Boolean)],e.prototype,"visible",void 0),e=Object(n.c)([Object(o.a)("au-widget-finish-button")],e)}(c.a)}}]);