(window.multistep_editor_jsonpFunction=window.multistep_editor_jsonpFunction||[]).push([[26],{921:function(t,e,i){"use strict";i.r(e),i.d(e,"AuWidgetFinishButton",function(){return d}),i.d(e,"widget",function(){return d});var n=i(0),s=i(2),o=i(14),c=i(1),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.selector="#finishButton",e.widgetIsInited=!1,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=c.a.functionWrapperConstructor(t.onClick),this.auWizard._showDefaultTopBar&&this._changeDisable(),this.widgetIsInited||(console.warn("'finish-button' widget is deprecated, use 'steps' widget instead."),this.widgetIsInited=!0)},e.prototype._changeDisable=function(){var t=this;this.publishData({selector:this.selector},o.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(s.c)(),Object(n.g)("design:type",Object)],e.prototype,"params",void 0),Object(n.c)([Object(s.c)(),Object(n.g)("design:type",String)],e.prototype,"selector",void 0),Object(n.c)([Object(s.c)(),Object(n.g)("design:type",Boolean)],e.prototype,"enabled",void 0),Object(n.c)([Object(s.c)(),Object(n.g)("design:type",Boolean)],e.prototype,"visible",void 0),e=Object(n.c)([Object(s.a)("au-widget-finish-button")],e)}(i(160).a)}}]);