(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 s,r=i(0),a=i(2),o=i(1),n=i(761),d=i(762),l=i(577);!function(e){e.default="default",e.blender="blender"}(s||(s={}));let m=class extends d.a{updateParams(e){var t;if(o.a.isEmptyArray(e.items))return;const i=e.items.some(e=>0===e.images.filter(e=>e).length),r=e.items.some(e=>o.a.isEmptyString(e.model));if(i||r)return;this.origamiViewer=null,this.speed=null!==(t=e.animationSpeed)&&void 0!==t?t:this.speed,this._preloaderLockingSum=0,this.showPreloader(!0);const a=new class{constructor(e,t,i){this.preloader=!0,this.axesHelperEnabled=!1,this.orbitsControlEnabled=!0,this.container=e,this.onLoadCallback=i,this.backgroundColor=t.backgroundColor||l.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:s.default,this.items=t.items.map(e=>{const t=Object.assign({},e);return t.model=o.a.addTimestampToURL(e.model),t})}}(this.querySelectorShadow("#divContainer"),e,()=>{this.showPreloader(!1),this.SetAnimationSpeed(this.speed),this.PlayAnimation(),setTimeout(()=>{this.image=this.origamiViewer.renderer.domElement.toDataURL(),this.emitChange({image:this.image})},1500)});this.origamiViewer=new window.Aurigma.Origami.Viewer(a),setTimeout(()=>this.applyInterfaceParams(e),250)}};m=Object(r.a)([Object(a.a)("au-widget-3d-viewer",n)],m)}}]);