(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 u}),n.d(t,"widget",function(){return u});var o=n(0),i=n(857),a=n(160),c=n(2),r=n(1),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.enable=!0,t.value=!1,t.autoReset=!1,t._isRestoring=!1,t._onChange=null,t}return Object(o.d)(t,e),t.prototype.valueChanged=function(){this._isRestoring||(this.emitChange({value:this.value}),this._onChange&&this._onChange(this.value))},t.prototype.exportWidgetData=function(e){return Object(o.b)(this,void 0,void 0,function(){return Object(o.e)(this,function(e){return[2,{value:this.value}]})})},t.prototype.restoreWidgetFromData=function(e,t){return Object(o.b)(this,void 0,void 0,function(){return Object(o.e)(this,function(t){return e&&this.value!==e.value&&(this._isRestoring=!0,this.value=e.value),this._isRestoring=!1,[2]})})},Object.defineProperty(t.prototype,"_",{get:function(){return this.value},enumerable:!1,configurable:!0}),t.prototype.clearSelection=function(){this.value=!1},t.prototype.updateParams=function(e){var t=this;this.prompt=e.prompt,this.value=r.a.isNotNullOrUndefined(e.value)?e.value:this.value,this.enable=!r.a.isNotNullOrUndefined(e.enabled)||e.enabled,this.autoReset=r.a.isNotNullOrUndefined(e.autoReset)?e.autoReset:this.autoReset,this._onChange=r.a.isNotNullOrUndefined(e.onChange)?r.a.functionWrapperConstructor(Array.isArray(e.onChange)?e.onChange:[e.onChange]):null,this.onWidgetDisplay=function(){t.autoReset&&t.clearSelection()}},Object(o.c)([Object(c.c)(),Object(o.g)("design:type",Object)],t.prototype,"params",void 0),Object(o.c)([Object(c.c)(),Object(o.g)("design:type",Boolean)],t.prototype,"enable",void 0),Object(o.c)([Object(c.c)(),Object(o.g)("design:type",String)],t.prototype,"prompt",void 0),Object(o.c)([Object(c.c)(),Object(o.g)("design:type",Boolean)],t.prototype,"value",void 0),Object(o.c)([Object(c.c)(),Object(o.g)("design:type",Boolean)],t.prototype,"autoReset",void 0),Object(o.c)([Object(c.b)("value"),Object(o.g)("design:type",Function),Object(o.g)("design:paramtypes",[]),Object(o.g)("design:returntype",void 0)],t.prototype,"valueChanged",null),t=Object(o.c)([Object(c.a)("au-widget-checkbox",i)],t)}(a.b)}}]);