(window.multistep_editor_jsonpFunction=window.multistep_editor_jsonpFunction||[]).push([[19],{857:function(e,t){e.exports='<style>\n    :host {\n        display: var(--au-widget-display, inherit);\n    }\n\n    .text {\n        user-select: none;\n        @apply --au-body1-font;\n    }\n\n    paper-checkbox {\n        --paper-checkbox-checked-color: var(--theme-primary-color);\n        --paper-checkbox-unchecked-color: var(--checkbox-unchecked-color);\n        --paper-checkbox-vertical-align: top;\n        --paper-checkbox-margin: 1px 0 0 0;\n        display: flex;\n    }\n</style>\n\n<paper-checkbox noink type="value" checked="{{value}}" disabled$="{{!enable}}">\n    <span noink class="text">\n        [[prompt]]\n    </span>\n</paper-checkbox>'},928:function(e,t,n){"use strict";n.r(t),n.d(t,"AuWidgetCheckbox",function(){return r}),n.d(t,"widget",function(){return r});var a=n(0),o=n(857),i=n(160),s=n(2),c=n(1);let r=class extends i.b{constructor(){super(...arguments),this.enable=!0,this.value=!1,this.autoReset=!1,this._isRestoring=!1,this._onChange=null}valueChanged(){this._isRestoring||(this.emitChange({value:this.value}),this._onChange&&this._onChange(this.value))}async exportWidgetData(e){return{value:this.value}}async restoreWidgetFromData(e,t){e&&this.value!==e.value&&(this._isRestoring=!0,this.value=e.value),this._isRestoring=!1}get _(){return this.value}clearSelection(){this.value=!1}updateParams(e){this.prompt=e.prompt,this.value=c.a.isNotNullOrUndefined(e.value)?e.value:this.value,this.enable=!c.a.isNotNullOrUndefined(e.enabled)||e.enabled,this.autoReset=c.a.isNotNullOrUndefined(e.autoReset)?e.autoReset:this.autoReset,this._onChange=c.a.isNotNullOrUndefined(e.onChange)?c.a.functionWrapperConstructor(Array.isArray(e.onChange)?e.onChange:[e.onChange]):null,this.onWidgetDisplay=(()=>{this.autoReset&&this.clearSelection()})}};Object(a.a)([Object(s.c)(),Object(a.b)("design:type",Object)],r.prototype,"params",void 0),Object(a.a)([Object(s.c)(),Object(a.b)("design:type",Boolean)],r.prototype,"enable",void 0),Object(a.a)([Object(s.c)(),Object(a.b)("design:type",String)],r.prototype,"prompt",void 0),Object(a.a)([Object(s.c)(),Object(a.b)("design:type",Boolean)],r.prototype,"value",void 0),Object(a.a)([Object(s.c)(),Object(a.b)("design:type",Boolean)],r.prototype,"autoReset",void 0),Object(a.a)([Object(s.b)("value"),Object(a.b)("design:type",Function),Object(a.b)("design:paramtypes",[]),Object(a.b)("design:returntype",void 0)],r.prototype,"valueChanged",null),r=Object(a.a)([Object(s.a)("au-widget-checkbox",o)],r)}}]);