(window.multistep_editor_jsonpFunction=window.multistep_editor_jsonpFunction||[]).push([[13],{961:function(e,t,i){"use strict";i.r(t),i.d(t,"AuWidget3DViewer",function(){return m}),i.d(t,"widget",function(){return m});var n,r=i(0),o=i(2),a=i(1),s=i(769),u=i(770),d=i(582),l=function(){return function(e,t,i){this.preloader=!0,this.axesHelperEnabled=!1,this.orbitsControlEnabled=!0,this.container=e,this.onLoadCallback=i,this.backgroundColor=t.backgroundColor||d.a,this.orbitsControl=t.orbitsControl,this.distance=t.distance,this.camera=t.cameraButtons,this.pauseAtEnd=t.pauseAtEnd,this.preloader=t.preloader,this.modelType=null!=t.modelType?t.modelType:n.default,this.items=t.items.map(function(e){var t=Object.assign({},e);return t.model=a.a.addTimestampToURL(e.model),t})}}();!function(e){e.default="default",e.blender="blender"}(n||(n={}));var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.d)(t,e),t.prototype.updateParams=function(e){var t,i=this;if(!a.a.isEmptyArray(e.items)){var n=e.items.some(function(e){return 0===e.images.filter(function(e){return e}).length}),r=e.items.some(function(e){return a.a.isEmptyString(e.model)});if(!n&&!r){this.origamiViewer=null,this.speed=null!==(t=e.animationSpeed)&&void 0!==t?t:this.speed,this._preloaderLockingSum=0,this.showPreloader(!0);var o=this.querySelectorShadow("#divContainer"),s=new l(o,e,function(){i.showPreloader(!1),i.SetAnimationSpeed(i.speed),i.PlayAnimation(),setTimeout(function(){i.image=i.origamiViewer.renderer.domElement.toDataURL(),i.emitChange({image:i.image})},1500)});this.origamiViewer=new window.Aurigma.Origami.Viewer(s),setTimeout(function(){return i.applyInterfaceParams(e)},250)}}},t=Object(r.c)([Object(o.a)("au-widget-3d-viewer",s)],t)}(u.a)}}]);