(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 a}),i.d(e,"widget",function(){return a});var s=i(0),n=i(2),o=i(160),b=i(1),c=i(15);let a=class extends o.a{constructor(){super(...arguments),this.selector="#finishButton",this._subscribed=!1}updateParams(t){void 0!==t.visible&&(this.visible=t.visible),void 0!==t.enabled&&(this.enabled=t.enabled),this._onClick=b.a.functionWrapperConstructor(t.onClick),this.auWizard._showDefaultTopBar&&this._changeDisable()}_changeDisable(){this.publishData({selector:this.selector},c.a.GET_ELEMENT_FROM_AU_WIZARD).then(t=>{t&&(void 0!==this.visible&&(t.hidden=!this.visible,t.setAttribute&&t.setAttribute("data-hidden",t.hidden)),void 0!==this.enabled&&(t.enabled=this.enabled),this._subscribed||(t.onFinish.subscribe(async()=>{await this._onClick()}),this._subscribed=!0))})}};Object(s.a)([Object(n.c)(),Object(s.b)("design:type",Object)],a.prototype,"params",void 0),Object(s.a)([Object(n.c)(),Object(s.b)("design:type",String)],a.prototype,"selector",void 0),Object(s.a)([Object(n.c)(),Object(s.b)("design:type",Boolean)],a.prototype,"enabled",void 0),Object(s.a)([Object(n.c)(),Object(s.b)("design:type",Boolean)],a.prototype,"visible",void 0),a=Object(s.a)([Object(n.a)("au-widget-finish-button")],a)}}]);