(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7355ec7e"],{"04c7":function(t,e,s){"use strict";s("b13b")},"07ac":function(t,e,s){var n=s("23e7"),a=s("6f53").values;n({target:"Object",stat:!0},{values:function(t){return a(t)}})},"1aa9":function(t,e,s){var n={"./Data processing, please do not scan.mp3":"d66e","./Installation diagram Switching successful.mp3":"e3ac","./Invalid QR code.mp3":"49a4","./Invalid barcode.mp3":"d1a4","./Scan successful.mp3":"c271","./There is no cabinet data in the current scene.mp3":"a6ab","./二维码无效.mp3":"48ca","./安装图切换成功.mp3":"97ee","./当前场景不存在柜体数据.mp3":"da99","./扫描成功.mp3":"f75e","./数据处理中，请勿扫描.mp3":"6b46","./条码无效.mp3":"3884"};function a(t){var e=i(t);return s(e)}function i(t){if(!s.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}a.keys=function(){return Object.keys(n)},a.resolve=i,t.exports=a,a.id="1aa9"},"2a54":function(t,e,s){"use strict";s("cee5")},3884:function(t,e,s){t.exports=s.p+"static/media/条码无效.6bbe28c0.mp3"},"48ca":function(t,e,s){t.exports=s.p+"static/media/二维码无效.0758bd4b.mp3"},"49a4":function(t,e,s){t.exports=s.p+"static/media/Invalid QR code.0111c314.mp3"},"4a8d":function(t,e,s){"use strict";s.d(e,"a",(function(){return a}));var n=s("5a89");class a extends n["E"]{constructor(t){super(t)}load(t,e,s,a){const i=this,o=new n["r"](this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(t,(function(t){const s=i.parse(JSON.parse(t));e&&e(s)}),s,a)}parse(t){return new i(t)}}class i{constructor(t){this.isFont=!0,this.type="Font",this.data=t}generateShapes(t,e=100){const s=[],n=o(t,e,this.data);for(let a=0,i=n.length;a<i;a++)s.push(...n[a].toShapes());return s}}function o(t,e,s){const n=Array.from(t),a=e/s.resolution,i=(s.boundingBox.yMax-s.boundingBox.yMin+s.underlineThickness)*a,o=[];let c=0,l=0;for(let u=0;u<n.length;u++){const t=n[u];if("\n"===t)c=0,l-=i;else{const e=r(t,a,c,l,s);c+=e.offsetX,o.push(e.path)}}return o}function r(t,e,s,a,i){const o=i.glyphs[t]||i.glyphs["?"];if(!o)return void console.error('THREE.Font: character "'+t+'" does not exists in font family '+i.familyName+".");const r=new n["db"];let c,l,u,d,p,h,f,m;if(o.o){const t=o._cachedOutline||(o._cachedOutline=o.o.split(" "));for(let n=0,i=t.length;n<i;){const i=t[n++];switch(i){case"m":c=t[n++]*e+s,l=t[n++]*e+a,r.moveTo(c,l);break;case"l":c=t[n++]*e+s,l=t[n++]*e+a,r.lineTo(c,l);break;case"q":u=t[n++]*e+s,d=t[n++]*e+a,p=t[n++]*e+s,h=t[n++]*e+a,r.quadraticCurveTo(p,h,u,d);break;case"b":u=t[n++]*e+s,d=t[n++]*e+a,p=t[n++]*e+s,h=t[n++]*e+a,f=t[n++]*e+s,m=t[n++]*e+a,r.bezierCurveTo(p,h,f,m,u,d);break}}}return{offsetX:o.ha*e,path:r}}},"53ca":function(t,e,s){"use strict";s.d(e,"a",(function(){return n}));s("a4d3"),s("e01a"),s("d28b"),s("d3b7"),s("3ca3"),s("ddb0");function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}},"69ff":function(t,e,s){var n={"./Data processing, please do not scan.mp3":"d66e","./Installation diagram Switching successful.mp3":"e3ac","./Invalid QR code.mp3":"49a4","./Invalid barcode.mp3":"d1a4","./Scan successful.mp3":"c271","./There is no cabinet data in the current scene.mp3":"a6ab","./二维码无效.mp3":"48ca","./安装图切换成功.mp3":"97ee","./当前场景不存在柜体数据.mp3":"da99","./扫描成功.mp3":"f75e","./数据处理中，请勿扫描.mp3":"6b46","./条码无效.mp3":"3884"};function a(t){var e=i(t);return s(e)}function i(t){if(!s.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}a.keys=function(){return Object.keys(n)},a.resolve=i,t.exports=a,a.id="69ff"},"6b46":function(t,e,s){t.exports=s.p+"static/media/数据处理中，请勿扫描.aa98370f.mp3"},"6c01":function(t,e,s){"use strict";s("b0c0");var n=function(t){document.onkeypress=function(e){var s=document.activeElement,n=s.tagName,a=s.name,i=n.toLocaleLowerCase();if("input"!==i||"scanInput"===a)switch(e.path&&"BUTTON"==e.path[0].nodeName&&"Enter"==e.code&&e.preventDefault(),e.key){case"Enter":t.inputEnterEvent();break;case"Delete":t.scanText="";break;case"Backspace":var o=t.scanText;o.length>0&&(t.scanText=o.substring(0,o.length-1));break;default:"scanInput"!==a&&(t.scanText+=e.key)}}};e["a"]=n},"6f53":function(t,e,s){var n=s("83ab"),a=s("df75"),i=s("fc6a"),o=s("d1e7").f,r=function(t){return function(e){var s,r=i(e),c=a(r),l=c.length,u=0,d=[];while(l>u)s=c[u++],n&&!o.call(r,s)||d.push(t?[s,r[s]]:r[s]);return d}};t.exports={entries:r(!0),values:r(!1)}},"78e9":function(t,e,s){"use strict";var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"panelDetail"},[s("ul",{staticClass:"listTitle"},[s("li",{staticClass:"number"},[t._v(t._s(t.$t("info.72")))]),s("li",{staticClass:"name"},[t._v(t._s(t.$t("info.5")))]),s("li",{staticClass:"color"},[t._v(t._s(t.$t("info.6")))]),s("li",{staticClass:"width"},[t._v(t._s(t.$t("info.7")))]),s("li",{staticClass:"height"},[t._v(t._s(t.$t("info.8")))]),s("li",{staticClass:"depth"},[t._v(t._s(t.$t("info.9")))])]),s("div",{staticClass:"listContent"},[s("van-collapse",{model:{value:t.collapseActive,callback:function(e){t.collapseActive=e},expression:"collapseActive"}},t._l(t.panelData,(function(e){return s("van-collapse-item",{key:e.CstIndex,attrs:{title:e.CstName?e.CstName:t.$t("info.10")+e.CstIndex,name:e.CstIndex}},[s("ul",{staticClass:"panelList"},t._l(e.list,(function(e,n){return s("li",{key:n,class:{hightLight:e.Id===t.panelShortid}},[s("span",{staticClass:"number"},[t._v(t._s(e.panelNumber))]),s("span",{staticClass:"name"},[t._v(t._s(e.Name))]),s("span",{staticClass:"color"},[t._v(t._s(e.Material))]),s("span",{staticClass:"width"},[t._v(t._s(e.width))]),s("span",{staticClass:"height"},[t._v(t._s(e.height))]),s("span",{staticClass:"depth"},[t._v(t._s(e.depth))])])})),0)])})),1),0===t.panelData.length?s("div",{staticClass:"empty"},[t._v(" "+t._s(t.$t("info.11"))+" ")]):t._e()],1)])},a=[],i=(s("99af"),s("7db0"),s("4160"),s("a9e3"),s("ac1f"),s("1276"),s("159b"),s("3835")),o={data:function(){return{collapseActive:[],panelData:[]}},props:{panelShortid:{type:String},panelList:{type:Array},panelCodeList:{type:Array,default:function(){return[]}}},watch:{panelList:function(t){var e=this;if(t){var s=[],n={};t.forEach((function(t){var a=e.panelCodeList.find((function(e){return e.shortid===t.Id}));if(a&&a.code){t.Code=a.code;var o=a.code.substring(a.code.length-3,a.code.length);t.panelNumber=String(Number(o))}var r=t.Size.split("*"),c=Object(i["a"])(r,3),l=c[0],u=c[1],d=c[2];if(t.width=l,t.height=u,t.depth=d,n[t.CstIndex])s.forEach((function(e){e.CstIndex===t.CstIndex&&e.list.push(t)}));else{e.collapseActive.push(t.CstIndex);var p={CstName:t.CstName,CstIndex:t.CstIndex,list:[t]};s.push(p),n[t.CstIndex]=t.CstIndex}})),s.forEach((function(t){t.list.sort((function(t,e){return t.panelNumber-e.panelNumber}))})),this.panelData=[].concat(s)}},panelShortid:function(t){t&&this.$nextTick((function(){var t=document.querySelector(".hightLight");t&&t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})}))}}},r=o,c=(s("04c7"),s("2877")),l=Object(c["a"])(r,n,a,!1,null,"1cf46140",null);e["a"]=l.exports},"97ee":function(t,e,s){t.exports=s.p+"static/media/安装图切换成功.ef7d6325.mp3"},a6ab:function(t,e,s){t.exports=s.p+"static/media/There is no cabinet data in the current scene.e7168aa5.mp3"},affd:function(t,e,s){"use strict";s("d81d"),s("d3b7"),s("ac1f"),s("5319"),s("1276"),s("ddb0");var n=s("69ff"),a=[];n.keys().map((function(t){t=t.replace("/","");var e=t.split(".")[1];a.push(e)}));for(var i={},o=0;o<a.length;o++)i[a[o]]=s("1aa9")("./".concat(a[o],".mp3"));e["a"]=i},b13b:function(t,e,s){},c271:function(t,e,s){t.exports=s.p+"static/media/Scan successful.466b68e3.mp3"},cee5:function(t,e,s){},cf1c:function(t,e,s){"use strict";s("4160"),s("b0c0"),s("d3b7"),s("159b"),s("96cf");var n=s("1da1");e["a"]={indexedDB:window.indexedDB||window.webkitindexedDB||window.msIndexedDB||window.mozIndexedDB,version:3,storeList:[{name:"model",keyPath:"panelId"},{name:"model1",keyPath:"houseId"}],openDB:function(t){var e=this;return new Promise((function(s){try{var n=e.version,a=e.indexedDB.open(t,n);a.onerror=function(){console.log("IndexedDB数据库打开失败")},a.onsuccess=function(t){var e=t.target.result;s(e)},a.onupgradeneeded=function(t){var s=t.target.result;e.storeList.forEach((function(t){if(!s.objectStoreNames.contains(t.name)){var e=s.createObjectStore(t.name,{keyPath:t.keyPath});console.log(e)}}))}}catch(i){console.log(i)}}))},deleteDB:function(t){var e=this,s=localStorage.getItem("isDeletedDB");if(!s)return new Promise((function(s){var n=e.indexedDB.deleteDatabase(t);n.onerror=function(){console.log("删除数据库出错"),s(!1)},n.onsuccess=function(){console.log("删除数据库成功"),localStorage.setItem("isDeletedDB","true"),s(!0)}}))},closeDB:function(t){t.close(),console.log("数据库已关闭")},addData:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e,s,n,a){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e){t.next=4;break}return t.next=3,this.openDB("modelData",1,{name:s,keyPath:n});case 3:e=t.sent;case 4:i=e.transaction(s,"readwrite").objectStore(s).add(a),i.onerror=function(){},i.onsuccess=function(){};case 7:case"end":return t.stop()}}),t,this)})));function e(e,s,n,a){return t.apply(this,arguments)}return e}(),updateData:function(t,e,s,n){var a=t.transaction(e,"readwrite"),i=a.objectStore(e),o=i.get(s);return new Promise((function(t,e){o.onsuccess=function(s){var a=s.target.result;a?(a.modeldata=n,t(i.put(a))):e(!1)}}))},deleteData:function(t,e,s){var n=t.transaction(e,"readwrite").objectStore(e),a=n.delete(s);return new Promise((function(t){a.onerror=function(){console.log("删除失败"),t(!1)},a.onsuccess=function(){console.log("删除成功"),t(!0)}}))},clearStoreData:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(e,s,n){var a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e){t.next=4;break}return t.next=3,this.openDB("modelData",1,{name:s,keyPath:n});case 3:e=t.sent;case 4:return a=e.transaction(s,"readwrite").objectStore(s),i=a.clear(),t.abrupt("return",new Promise((function(t){i.onerror=function(){t(!1)},i.onsuccess=function(){t(!0)}})));case 7:case"end":return t.stop()}}),t,this)})));function e(e,s,n){return t.apply(this,arguments)}return e}(),read:function(t,e,s){try{var n=t.transaction(e,"readwrite").objectStore(e),a=n.get(s);return new Promise((function(t){a.onerror=function(){console.log("单条数据读取失败"),t(!1)},a.onsuccess=function(e){t(e.target.result)}}))}catch(i){return void console.log(i)}},readAll:function(t,e){var s=t.transaction(e).objectStore(e),n=s.openCursor(),a=[];return new Promise((function(t){n.onerror=function(){console.log("单条数据读取失败"),t(!1)},n.onsuccess=function(e){var s=e.target.result;s?(a.push(s.value),s.continue()):t(a)}}))},readDataByIndexes:function(t,e,s){var n=t.transaction(e,"readonly").objectStore(e),a=n.index(s),i=a.get("张三");return new Promise((function(t){i.onerror=function(){console.log("根据索引读取数据失败"),t(!1)},i.onsuccess=function(e){t(e.target.result)}}))}}},cfc3:function(t,e,s){var n=s("74e8");n("Float32",(function(t){return function(e,s,n){return t(this,e,s,n)}}))},d1a4:function(t,e,s){t.exports=s.p+"static/media/Invalid barcode.dae95486.mp3"},d66e:function(t,e,s){t.exports=s.p+"static/media/Data processing, please do not scan.d6d46eed.mp3"},da99:function(t,e,s){t.exports=s.p+"static/media/当前场景不存在柜体数据.35b03679.mp3"},e3ac:function(t,e,s){t.exports=s.p+"static/media/Installation diagram Switching successful.015a016c.mp3"},e642:function(t,e,s){"use strict";s.d(e,"a",(function(){return v}));var n=s("5a89");const a=/^[og]\s*(.+)?/,i=/^mtllib /,o=/^usemtl /,r=/^usemap /,c=/\s+/,l=new n["kb"],u=new n["kb"],d=new n["kb"],p=new n["kb"],h=new n["kb"],f=new n["h"];function m(){const t={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(t,e){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=t,void(this.object.fromDeclaration=!1!==e);const s=this.object&&"function"===typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"===typeof this.object._finalize&&this.object._finalize(!0),this.object={name:t||"",fromDeclaration:!1!==e,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(t,e){const s=this._finalize(!1);s&&(s.inherited||s.groupCount<=0)&&this.materials.splice(s.index,1);const n={index:this.materials.length,name:t||"",mtllib:Array.isArray(e)&&e.length>0?e[e.length-1]:"",smooth:void 0!==s?s.smooth:this.smooth,groupStart:void 0!==s?s.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(t){const e={index:"number"===typeof t?t:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return e.clone=this.clone.bind(e),e}};return this.materials.push(n),n},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(t){const e=this.currentMaterial();if(e&&-1===e.groupEnd&&(e.groupEnd=this.geometry.vertices.length/3,e.groupCount=e.groupEnd-e.groupStart,e.inherited=!1),t&&this.materials.length>1)for(let s=this.materials.length-1;s>=0;s--)this.materials[s].groupCount<=0&&this.materials.splice(s,1);return t&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),e}},s&&s.name&&"function"===typeof s.clone){const t=s.clone(0);t.inherited=!0,this.object.materials.push(t)}this.objects.push(this.object)},finalize:function(){this.object&&"function"===typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(t,e){const s=parseInt(t,10);return 3*(s>=0?s-1:s+e/3)},parseNormalIndex:function(t,e){const s=parseInt(t,10);return 3*(s>=0?s-1:s+e/3)},parseUVIndex:function(t,e){const s=parseInt(t,10);return 2*(s>=0?s-1:s+e/2)},addVertex:function(t,e,s){const n=this.vertices,a=this.object.geometry.vertices;a.push(n[t+0],n[t+1],n[t+2]),a.push(n[e+0],n[e+1],n[e+2]),a.push(n[s+0],n[s+1],n[s+2])},addVertexPoint:function(t){const e=this.vertices,s=this.object.geometry.vertices;s.push(e[t+0],e[t+1],e[t+2])},addVertexLine:function(t){const e=this.vertices,s=this.object.geometry.vertices;s.push(e[t+0],e[t+1],e[t+2])},addNormal:function(t,e,s){const n=this.normals,a=this.object.geometry.normals;a.push(n[t+0],n[t+1],n[t+2]),a.push(n[e+0],n[e+1],n[e+2]),a.push(n[s+0],n[s+1],n[s+2])},addFaceNormal:function(t,e,s){const n=this.vertices,a=this.object.geometry.normals;l.fromArray(n,t),u.fromArray(n,e),d.fromArray(n,s),h.subVectors(d,u),p.subVectors(l,u),h.cross(p),h.normalize(),a.push(h.x,h.y,h.z),a.push(h.x,h.y,h.z),a.push(h.x,h.y,h.z)},addColor:function(t,e,s){const n=this.colors,a=this.object.geometry.colors;void 0!==n[t]&&a.push(n[t+0],n[t+1],n[t+2]),void 0!==n[e]&&a.push(n[e+0],n[e+1],n[e+2]),void 0!==n[s]&&a.push(n[s+0],n[s+1],n[s+2])},addUV:function(t,e,s){const n=this.uvs,a=this.object.geometry.uvs;a.push(n[t+0],n[t+1]),a.push(n[e+0],n[e+1]),a.push(n[s+0],n[s+1])},addDefaultUV:function(){const t=this.object.geometry.uvs;t.push(0,0),t.push(0,0),t.push(0,0)},addUVLine:function(t){const e=this.uvs,s=this.object.geometry.uvs;s.push(e[t+0],e[t+1])},addFace:function(t,e,s,n,a,i,o,r,c){const l=this.vertices.length;let u=this.parseVertexIndex(t,l),d=this.parseVertexIndex(e,l),p=this.parseVertexIndex(s,l);if(this.addVertex(u,d,p),this.addColor(u,d,p),void 0!==o&&""!==o){const t=this.normals.length;u=this.parseNormalIndex(o,t),d=this.parseNormalIndex(r,t),p=this.parseNormalIndex(c,t),this.addNormal(u,d,p)}else this.addFaceNormal(u,d,p);if(void 0!==n&&""!==n){const t=this.uvs.length;u=this.parseUVIndex(n,t),d=this.parseUVIndex(a,t),p=this.parseUVIndex(i,t),this.addUV(u,d,p),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(t){this.object.geometry.type="Points";const e=this.vertices.length;for(let s=0,n=t.length;s<n;s++){const n=this.parseVertexIndex(t[s],e);this.addVertexPoint(n),this.addColor(n)}},addLineGeometry:function(t,e){this.object.geometry.type="Line";const s=this.vertices.length,n=this.uvs.length;for(let a=0,i=t.length;a<i;a++)this.addVertexLine(this.parseVertexIndex(t[a],s));for(let a=0,i=e.length;a<i;a++)this.addUVLine(this.parseUVIndex(e[a],n))}};return t.startObject("",!1),t}class v extends n["E"]{constructor(t){super(t),this.materials=null}load(t,e,s,a){const i=this,o=new n["r"](this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(t,(function(s){try{e(i.parse(s))}catch(n){a?a(n):console.error(n),i.manager.itemError(t)}}),s,a)}setMaterials(t){return this.materials=t,this}parse(t){const e=new m;-1!==t.indexOf("\r\n")&&(t=t.replace(/\r\n/g,"\n")),-1!==t.indexOf("\\\n")&&(t=t.replace(/\\\n/g,""));const s=t.split("\n");let l=[];for(let p=0,h=s.length;p<h;p++){const t=s[p].trimStart();if(0===t.length)continue;const u=t.charAt(0);if("#"!==u)if("v"===u){const s=t.split(c);switch(s[0]){case"v":e.vertices.push(parseFloat(s[1]),parseFloat(s[2]),parseFloat(s[3])),s.length>=7?(f.setRGB(parseFloat(s[4]),parseFloat(s[5]),parseFloat(s[6]),n["Z"]),e.colors.push(f.r,f.g,f.b)):e.colors.push(void 0,void 0,void 0);break;case"vn":e.normals.push(parseFloat(s[1]),parseFloat(s[2]),parseFloat(s[3]));break;case"vt":e.uvs.push(parseFloat(s[1]),parseFloat(s[2]));break}}else if("f"===u){const s=t.slice(1).trim(),n=s.split(c),a=[];for(let t=0,e=n.length;t<e;t++){const e=n[t];if(e.length>0){const t=e.split("/");a.push(t)}}const i=a[0];for(let t=1,o=a.length-1;t<o;t++){const s=a[t],n=a[t+1];e.addFace(i[0],s[0],n[0],i[1],s[1],n[1],i[2],s[2],n[2])}}else if("l"===u){const s=t.substring(1).trim().split(" ");let n=[];const a=[];if(-1===t.indexOf("/"))n=s;else for(let t=0,e=s.length;t<e;t++){const e=s[t].split("/");""!==e[0]&&n.push(e[0]),""!==e[1]&&a.push(e[1])}e.addLineGeometry(n,a)}else if("p"===u){const s=t.slice(1).trim(),n=s.split(" ");e.addPointGeometry(n)}else if(null!==(l=a.exec(t))){const t=(" "+l[0].slice(1).trim()).slice(1);e.startObject(t)}else if(o.test(t))e.object.startMaterial(t.substring(7).trim(),e.materialLibraries);else if(i.test(t))e.materialLibraries.push(t.substring(7).trim());else if(r.test(t))console.warn('THREE.OBJLoader: Rendering identifier "usemap" not supported. Textures must be defined in MTL files.');else if("s"===u){if(l=t.split(" "),l.length>1){const t=l[1].trim().toLowerCase();e.object.smooth="0"!==t&&"off"!==t}else e.object.smooth=!0;const s=e.object.currentMaterial();s&&(s.smooth=e.object.smooth)}else{if("\0"===t)continue;console.warn('THREE.OBJLoader: Unexpected line: "'+t+'"')}}e.finalize();const u=new n["w"];u.materialLibraries=[].concat(e.materialLibraries);const d=!(1===e.objects.length&&0===e.objects[0].geometry.vertices.length);if(!0===d)for(let a=0,i=e.objects.length;a<i;a++){const t=e.objects[a],s=t.geometry,i=t.materials,o="Line"===s.type,r="Points"===s.type;let c=!1;if(0===s.vertices.length)continue;const l=new n["f"];l.setAttribute("position",new n["s"](s.vertices,3)),s.normals.length>0&&l.setAttribute("normal",new n["s"](s.normals,3)),s.colors.length>0&&(c=!0,l.setAttribute("color",new n["s"](s.colors,3))),!0===s.hasUVIndices&&l.setAttribute("uv",new n["s"](s.uvs,2));const d=[];for(let a=0,u=i.length;a<u;a++){const t=i[a],s=t.name+"_"+t.smooth+"_"+c;let l=e.materials[s];if(null!==this.materials)if(l=this.materials.create(t.name),!o||!l||l instanceof n["A"]){if(r&&l&&!(l instanceof n["U"])){const t=new n["U"]({size:10,sizeAttenuation:!1});n["H"].prototype.copy.call(t,l),t.color.copy(l.color),t.map=l.map,l=t}}else{const t=new n["A"];n["H"].prototype.copy.call(t,l),t.color.copy(l.color),l=t}void 0===l&&(l=o?new n["A"]:r?new n["U"]({size:1,sizeAttenuation:!1}):new n["M"],l.name=t.name,l.flatShading=!t.smooth,l.vertexColors=c,e.materials[s]=l),d.push(l)}let p;if(d.length>1){for(let t=0,e=i.length;t<e;t++){const e=i[t];l.addGroup(e.groupStart,e.groupCount,t)}p=o?new n["B"](l,d):r?new n["T"](l,d):new n["K"](l,d)}else p=o?new n["B"](l,d[0]):r?new n["T"](l,d[0]):new n["K"](l,d[0]);p.name=t.name,u.add(p)}else if(e.vertices.length>0){const t=new n["U"]({size:1,sizeAttenuation:!1}),s=new n["f"];s.setAttribute("position",new n["s"](e.vertices,3)),e.colors.length>0&&void 0!==e.colors[0]&&(s.setAttribute("color",new n["s"](e.colors,3)),t.vertexColors=!0);const a=new n["T"](s,t);u.add(a)}return u}}},e731:function(t,e,s){"use strict";var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.showPartListLayer?s("div",{staticClass:"partList"},[s("header",[s("span",[t._v(" "+t._s(t.cstName)+"-"+t._s(t.$t("info.12")))]),s("i",{staticClass:"iconfont iconguanbi",on:{click:t.closePartListLayer}})]),s("main",[s("div",{staticClass:"tabWrapper"},[s("van-tabs",{attrs:{swipeable:""},model:{value:t.tabActive,callback:function(e){t.tabActive=e},expression:"tabActive"}},[s("van-tab",{attrs:{title:t.$t("info.13")}},[s("ul",{staticClass:"listTitle"},[s("li",{staticClass:"number"},[t._v(t._s(t.$t("info.72")))]),s("li",{staticClass:"name"},[t._v(t._s(t.$t("info.5")))]),s("li",{staticClass:"color"},[t._v(t._s(t.$t("info.6")))]),s("li",{staticClass:"width"},[t._v(t._s(t.$t("info.7")))]),s("li",{staticClass:"height"},[t._v(t._s(t.$t("info.8")))]),s("li",{staticClass:"depth"},[t._v(t._s(t.$t("info.9")))])]),s("div",{staticClass:"listContent"},[s("van-collapse",{model:{value:t.collapseActive,callback:function(e){t.collapseActive=e},expression:"collapseActive"}},t._l(t.panelData,(function(e){return s("van-collapse-item",{key:e.CstIndex,attrs:{title:e.CstName?e.CstName:t.$t("info.10")+e.CstIndex,name:e.CstIndex}},[s("ul",{staticClass:"panelList"},t._l(e.list,(function(e,n){return s("li",{key:n},[s("span",{staticClass:"number"},[t._v(t._s(e.panelNumber))]),s("span",{staticClass:"name"},[t._v(t._s(e.Name))]),s("span",{staticClass:"color"},[t._v(t._s(e.Material))]),s("span",{staticClass:"width"},[t._v(t._s(e.width))]),s("span",{staticClass:"height"},[t._v(t._s(e.height))]),s("span",{staticClass:"depth"},[t._v(t._s(e.depth))])])})),0)])})),1),0===t.panelData.length?s("div",{staticClass:"empty"},[t._v(" "+t._s(t.$t("info.11"))+" ")]):t._e()],1)]),s("van-tab",{attrs:{title:t.$t("info.67")}},[s("ul",{staticClass:"listTitle"},[s("li",{staticClass:"hardwareName"},[t._v(t._s(t.$t("info.5")))]),s("li",{staticClass:"model"},[t._v(t._s(t.$t("info.14")))]),s("li",{staticClass:"qty"},[t._v(t._s(t.$t("info.15")))])]),s("div",{staticClass:"listContent"},[s("van-collapse",{model:{value:t.collapseActive2,callback:function(e){t.collapseActive2=e},expression:"collapseActive2"}},t._l(t.cstData,(function(e){return s("van-collapse-item",{key:e.CstIndex,attrs:{title:e.CstName?e.CstName:t.$t("info.16")+e.CstIndex,name:e.CstIndex}},[s("ul",{staticClass:"panelList"},t._l(e.list,(function(e,n){return s("li",{key:n},[s("span",{staticClass:"hardwareName"},[t._v(t._s(e.Name))]),s("span",{staticClass:"model"},[t._v(t._s(e.Spec))]),s("span",{staticClass:"qty"},[t._v(t._s(e.Count))])])})),0)])})),1),0===t.cstData.length?s("div",{staticClass:"empty"},[t._v(t._s(t.$t("info.17")))]):t._e()],1)])],1)],1)]),s("footer")]):t._e()},a=[],i=(s("99af"),s("7db0"),s("4160"),s("a9e3"),s("ac1f"),s("1276"),s("159b"),s("2909")),o=s("3835"),r={data:function(){return{tabActive:0,collapseActive:[],collapseActive2:[],cstName:"",panelData:[],cstData:[]}},props:{showPartListLayer:{type:Boolean},currentCstData:{type:Object},panelCodeList:{type:Array,default:function(){return[]}}},watch:{currentCstData:function(t){var e=this;if(t){var s=t.Name,n=t.Panel,a=t.PanelArray,r=t.Ironware,c=t.AlumStrip,l=t.Glass,u=n||a;this.cstName=s;var d=[],p={};u.forEach((function(t){var s=e.panelCodeList.find((function(e){return e.shortid===t.Id}));if(s&&s.code){t.Code=s.code;var n=s.code.substring(s.code.length-3,s.code.length);t.panelNumber=String(Number(n))}var a=t.Size.split("*"),i=Object(o["a"])(a,3),r=i[0],c=i[1],l=i[2];if(t.width=r,t.height=c,t.depth=l,p[t.CstIndex])d.forEach((function(e){e.CstIndex===t.CstIndex&&e.list.push(t)}));else{e.collapseActive.push(t.CstIndex);var u={CstName:t.CstName,CstIndex:t.CstIndex,list:[t]};d.push(u),p[t.CstIndex]=t.CstIndex}})),d.forEach((function(t){t.list.sort((function(t,e){return t.panelNumber-e.panelNumber}))})),this.panelData=[].concat(d),!r&&(r=[]),!c&&(c=[]),!l&&(l=[]);var h=[].concat(Object(i["a"])(r),Object(i["a"])(c),Object(i["a"])(l)),f=[],m={};h.forEach((function(t){if(m[t.CstIndex])f.forEach((function(e){e.CstIndex===t.CstIndex&&e.list.push(t)}));else{e.collapseActive2.push(t.CstIndex);var s={CstName:t.CstName,CstIndex:t.CstIndex,list:[t]};f.push(s),m[t.CstIndex]=t.CstIndex}})),this.cstData=[].concat(f)}}},methods:{closePartListLayer:function(){this.$emit("update:showPartListLayer",!1)}}},c=r,l=(s("2a54"),s("2877")),u=Object(l["a"])(c,n,a,!1,null,"6fc27101",null);e["a"]=u.exports},f75e:function(t,e,s){t.exports=s.p+"static/media/扫描成功.21a64a72.mp3"}}]);