(window.multistep_editor_jsonpFunction=window.multistep_editor_jsonpFunction||[]).push([[38],{935:function(t,e,r){"use strict";r.r(e),r.d(e,"AuWidgetOrder",function(){return d}),r.d(e,"widget",function(){return d});var i=r(0),s=r(160),c=r(2),o=r(1);let d=class extends s.a{constructor(){super(...arguments),this.logRequest=!1,this.useBackOffice=!1,this.sku=""}updateParams(t){this.images=t.images||[],this.downloadUrls=t.downloadUrls||[],this.data=t.data||{},this.logRequest=t.logRequest||this.driver.settings.logRequest||!1,this.useBackOffice=t.useBackOffice||this.driver.settings.useBackOffice||!1,this.props=t.props||{},this.customPrice=t.customPrice||0,this.quantity=null===t.quantity||void 0===t.quantity?this.driver.orders.current.quantity||1:t.quantity,this.sku=t.sku||"",this.changeDriver()}changeDriver(){this.driver.orders.current.images=this.images,this.driver.orders.current.downloadUrls=this.downloadUrls,this.driver.orders.current.data=this.data,this.driver.orders.current.props=this.props,this.driver.orders.current.customPrice=this.customPrice,this.driver.orders.current.logRequest=this.logRequest,this.driver.orders.current.useBackOffice=this.driver.orders.current.useBackOffice||this.useBackOffice,this.driver.orders.current.sku=this.driver.orders.current.sku||this.sku,o.a.isNotNullOrUndefined(this.quantity)&&(this.driver.orders.current.quantity=this.quantity)}};Object(i.a)([Object(c.c)(),Object(i.b)("design:type",Object)],d.prototype,"params",void 0),Object(i.a)([Object(c.c)(),Object(i.b)("design:type",Array)],d.prototype,"images",void 0),Object(i.a)([Object(c.c)(),Object(i.b)("design:type",Array)],d.prototype,"downloadUrls",void 0),Object(i.a)([Object(c.c)(),Object(i.b)("design:type",Object)],d.prototype,"data",void 0),Object(i.a)([Object(c.c)(),Object(i.b)("design:type",Object)],d.prototype,"props",void 0),Object(i.a)([Object(c.c)(),Object(i.b)("design:type",Number)],d.prototype,"quantity",void 0),Object(i.a)([Object(c.c)(),Object(i.b)("design:type",Number)],d.prototype,"customPrice",void 0),Object(i.a)([Object(c.c)(),Object(i.b)("design:type",Boolean)],d.prototype,"logRequest",void 0),Object(i.a)([Object(c.c)(),Object(i.b)("design:type",Boolean)],d.prototype,"useBackOffice",void 0),Object(i.a)([Object(c.c)(),Object(i.b)("design:type",String)],d.prototype,"sku",void 0),d=Object(i.a)([Object(c.a)("au-widget-order")],d)}}]);