| 1 |
- (function(e){function t(t){for(var n,a,c=t[0],s=t[1],l=t[2],u=0,m=[];u<c.length;u++)a=c[u],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&m.push(i[a][0]),i[a]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);d&&d(t);while(m.length)m.shift()();return r.push.apply(r,l||[]),o()}function o(){for(var e,t=0;t<r.length;t++){for(var o=r[t],n=!0,c=1;c<o.length;c++){var s=o[c];0!==i[s]&&(n=!1)}n&&(r.splice(t--,1),e=a(a.s=o[0]))}return e}var n={},i={index:0},r=[];function a(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,a),o.l=!0,o.exports}a.m=e,a.c=n,a.d=function(e,t,o){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(a.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(o,n,function(t){return e[t]}.bind(null,n));return o},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var c=window["webpackJsonp"]=window["webpackJsonp"]||[],s=c.push.bind(c);c.push=t,c=c.slice();for(var l=0;l<c.length;l++)t(c[l]);var d=s;r.push([0,"chunk-vendors"]),o()})({0:function(e,t,o){e.exports=o("56d7")},"020b":function(e,t,o){"use strict";o("0bc0")},"0410":function(e,t,o){e.exports=o.p+"img/ico-voice-message-white.3973a210.png"},"04b3":function(e,t,o){e.exports=o.p+"img/close.0fb8dc6e.png"},"04f4":function(e,t,o){"use strict";o("4468")},"0bc0":function(e,t,o){},"0d85":function(e,t,o){e.exports=o.p+"img/pic-default.1390d7c7.png"},"0e28":function(e,t,o){},"0e31":function(e,t,o){e.exports=o.p+"img/ico-voice-message-play.1c474ffb.gif"},"1b3b":function(e,t,o){"use strict";o("3060")},"1bec":function(e,t,o){"use strict";o("7572")},"1cb3":function(e,t,o){"use strict";o("7928")},"25a4":function(e,t,o){e.exports=o.p+"img/radio-nocheck.07a1bc71.png"},"28d7":function(e,t,o){},"2dda":function(e,t,o){},"2e7a":function(e,t,o){},"2ea3":function(e,t,o){"use strict";o("28d7")},3060:function(e,t,o){},3421:function(e,t,o){},"382f":function(e,t,o){e.exports=o.p+"img/nomsg-zh.01650d46.png"},"397f":function(e,t,o){e.exports=o.p+"img/area-ico.de59f0f7.png"},"39d9":function(e,t,o){"use strict";o("d372")},4468:function(e,t,o){},"48be":function(e,t,o){"use strict";o("2e7a")},"48c0":function(e,t,o){"use strict";o("63c5")},"4dcb":function(e,t,o){},"4ee2":function(e,t,o){},5226:function(e,t,o){"use strict";o("2dda")},"526f":function(e,t,o){},"56d7":function(e,t,o){"use strict";o.r(t);var n=o("8bbf");Object(n["pushScopeId"])("data-v-35c248ec");const i={class:"nd_sync_cover"},r=["src"];function a(e,t,o,a,c,s){const l=Object(n["resolveComponent"])("tips"),d=Object(n["resolveComponent"])("loading"),u=Object(n["resolveComponent"])("bottom-btn"),m=Object(n["resolveComponent"])("config-switch"),g=Object(n["resolveComponent"])("structure-tree"),h=Object(n["resolveComponent"])("tag-com"),p=Object(n["resolveComponent"])("unit-change"),v=Object(n["resolveComponent"])("coor-cover"),w=Object(n["resolveComponent"])("text-find"),f=Object(n["resolveComponent"])("text-draw");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{id:"vueMain",class:Object(n["normalizeClass"])(["ndp2-wrap noselect",{"tag-drawing":a.store.state.tagStore.tagDrawing,showhide:a.store.state.modelStore.showhide}]),ondragstart:"return false"},[Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["ndp2-preview-box",{zh:"en"!=e.language}])},[Object(n["createElementVNode"])("div",{class:"ndp2-wrap",id:"viewer",onClick:t[0]||(t[0]=(...e)=>s.clickViewerCanvas&&s.clickViewerCanvas(...e))})],2),Object(n["createVNode"])(l),Object(n["createVNode"])(d),Object(n["withDirectives"])(Object(n["createVNode"])(u,null,null,512),[[n["vShow"],!a.store.state.printMode]]),Object(n["withDirectives"])(Object(n["createVNode"])(m,null,null,512),[[n["vShow"],a.store.state.menuStore.showManyConfig]]),Object(n["withDirectives"])(Object(n["createVNode"])(g,null,null,512),[[n["vShow"],a.store.state.menuStore.structMenu]]),Object(n["createVNode"])(h),Object(n["withDirectives"])(Object(n["createVNode"])(p,null,null,512),[[n["vShow"],a.store.state.menuStore.unitMenu]]),Object(n["withDirectives"])(Object(n["createVNode"])(v,null,null,512),[[n["vShow"],"coordinate"==a.store.state.menuStore.menuChoose2]]),Object(n["createVNode"])(w),Object(n["createVNode"])(f),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",i,null,512),[[n["vShow"],a.store.state.rtmNeedCover]]),e.logoConfig.src?(Object(n["openBlock"])(),Object(n["createElementBlock"])("img",{key:0,class:"company-logo",src:e.logoConfig.src,style:Object(n["normalizeStyle"])(e.logoConfigStyle),alt:""},null,12,r)):Object(n["createCommentVNode"])("",!0)],2)}Object(n["popScopeId"])();o("4ee2"),o("88ae"),o("4dcb"),o("b8c8");var c=o("5880"),s=o("d899");o("14d9"),o("907a"),o("986a"),o("1d02"),o("3c5d"),o("6ce5"),o("2834"),o("4ea1"),o("669d"),o("109c"),o("b2c1"),o("b7ef");function l(){var e=[],t=nd_viewCtrl.allTags?nd_viewCtrl.allTags:[];if(t)for(let r=0;r<t.length;r++)try{var o=t[r];if(o&&o.content){var n=JSON.parse(o.content);o.imgURL&&(n.imgURL=o.imgURL),"ImageAnno"==n.state.type&&(n.state.type="",n.state.origiType="ImageAnno"),e.push(n)}else o.cx&&o.cy&&e.push(o)}catch(i){}return e}function d(){var e=p(),t=te.state.modelStore.isModelCfg,o=l(),n={isModelCfg:t,configNum:e.configNum,shareInfo:e,viewSetting:u(),bgSetList:nd_viewCtrl.bgSetList,allTag:o};return n}function u(){var e={bgColor:0,showShadow:!1,bgImg:"",inAssemblyContext:!1,pmiVisible:!1,loadbrepDefault:!1,testMode:!1,language:nd_viewCtrl.language||"zh",from:"pc"};return e.disratio=nd_viewCtrl&&nd_viewCtrl.disratio||void 0,e.bgColor=nd_viewCtrl&&nd_viewCtrl.bgColor||0,e.bgColor=k(e.bgColor),e.bgImg=nd_viewCtrl&&nd_viewCtrl.bgImg||"",e.showShadow=nd_viewCtrl&&nd_viewCtrl.showShadow||!1,e.waterString=nd_viewCtrl&&nd_viewCtrl.waterString||"",e.defaultStandardView=nd_viewCtrl&&nd_viewCtrl.defaultStandardView||null,e.pmiVisible=nd_viewCtrl&&nd_viewCtrl.pmiVisible||!1,e.testMode=nd_viewCtrl&&nd_viewCtrl.testMode||!1,e.loadbrepDefault=nd_viewCtrl&&nd_viewCtrl.loadbrepDefault||!1,e.viewerReqHeader=nd_viewCtrl&&nd_viewCtrl.viewerReqHeader||null,e}function m(){var e=te.state.modelStore.isModelCfg,t=te.state.modelStore.activConfig,o=-1;e&&-1==o&&(o=0),-1!=t&&(o=t);var n=nd_viewCtrl&&nd_viewCtrl.shareInfo&&nd_viewCtrl.shareInfo.camerainfo,i=n?o:-2;if(void 0!=nd_viewCtrl.configNum&&null!=nd_viewCtrl.configNum&&""!==nd_viewCtrl.configNum){var r=Number(nd_viewCtrl.configNum);r>=0&&(o=r)}if(nd_viewCtrl.shareInfo&&void 0!=nd_viewCtrl.shareInfo.configNum&&null!=nd_viewCtrl.shareInfo.configNum&&""!==nd_viewCtrl.shareInfo.configNum){r=Number(nd_viewCtrl.shareInfo.configNum);r>=0&&(o=r,i=r)}return te.commit("modelStore/setShareConfig",i),o}function g(){var e="";nd_viewCtrl&&nd_viewCtrl.shareInfo&&nd_viewCtrl.shareInfo.unitType&&nd_viewCtrl.shareInfo.unitType.length>0?(e=nd_viewCtrl.shareInfo.unitType,te.commit("modelStore/setUnitType",e)):nd_viewCtrl&&nd_viewCtrl.unitType&&(e=nd_viewCtrl.unitType),te.commit("modelStore/setUnitType",e);var t=[];return nd_viewCtrl&&nd_viewCtrl.shareInfo&&nd_viewCtrl.shareInfo.scale&&nd_viewCtrl.shareInfo.scale.length>0?t=nd_viewCtrl.shareInfo.scale:nd_viewCtrl.measuringScale&&nd_viewCtrl.measuringScale.length>0&&(t=nd_viewCtrl.measuringScale),te.commit("modelStore/setInitMeasureScale",t),t}function h(){var e=[];if(nd_viewCtrl&&nd_viewCtrl.shareInfo&&nd_viewCtrl.shareInfo.bgSetList&&nd_viewCtrl.shareInfo.bgSetList.length>0)e=nd_viewCtrl.shareInfo.bgSetList;else if(nd_viewCtrl&&nd_viewCtrl.bgSetList&&nd_viewCtrl.bgSetList.length>0)e=nd_viewCtrl.bgSetList;else if(nd_viewCtrl&&nd_viewCtrl.bgColor){var t="num:"+String(k(nd_viewCtrl.bgColor));const n=te.state.modelStore.bgSetList;for(var o=0;o<n.length;o++)e.push(t)}return e.length>0&&te.commit("modelStore/setInitBgSetList",e),e}function p(){var e=m(),t=g(),o=1;try{if(t&&t.length>0&&void 0!=t[e]){var n=t[e];n&&n.indexOf(":")>0&&(o=parseFloat(n.split(":")[1])/parseFloat(n.split(":")[0]))}}catch(r){o=1}var i={camerainfo:null,configNum:e,measuringScale:o,isShare:!1};return nd_viewCtrl&&nd_viewCtrl.shareInfo&&nd_viewCtrl.shareInfo.camerainfo&&(i.camerainfo=nd_viewCtrl.shareInfo.camerainfo,i.isShare=!0),i}function v(){var e=nd_viewCtrl&&(nd_viewCtrl.hideStructure||nd_viewCtrl._opt&&nd_viewCtrl._opt.hideStructure)||!1;return{hideStructure:e}}function w(){var e=v();if(nd_viewCtrl&&!nd_viewCtrl.hidebtnCfg&&(nd_viewCtrl.hidebtnCfg=[]),nd_viewCtrl&&nd_viewCtrl.showBtnCfg)return{type:"show",showbtns:nd_viewCtrl.showBtnCfg};if(nd_viewCtrl&&nd_viewCtrl.hidebtnCfg){nd_viewCtrl.viewMode&&"sync"==nd_viewCtrl.viewMode&&nd_viewCtrl.hidebtnCfg.push("#ico-Tagging"),e.hideStructure&&nd_viewCtrl.hidebtnCfg.push("#ico-structure"),e.hideAreaTool&&(nd_viewCtrl.hidebtnCfg.push("#ico-measure"),nd_viewCtrl.hidebtnCfg.push("#ico-ruler")),e.hideShowPMI&&nd_viewCtrl.hidebtnCfg.push("#ico-pmi");var t=[];if(nd_viewCtrl.hidebtnCfg&&nd_viewCtrl.hidebtnCfg.length>0)for(let e=0;e<nd_viewCtrl.hidebtnCfg.length;e++){var o=nd_viewCtrl.hidebtnCfg[e];o&&(o.startsWith("#")?t.push(o):t.push("#"+o))}return{type:"hide",hidebtns:t}}return{type:"no"}}(function(){try{parent&&parent.nd_viewCtrl?window.nd_viewCtrl=parent.nd_viewCtrl:window.nd_viewCtrl&&(window.nd_viewCtrl=window.nd_viewCtrl)}catch(e){}})();const f=(e,t)=>{},b=e=>{try{let t=decodeURIComponent(e||"");return t}catch(t){let o=e;const n=[{code:"%25",encode:"%"},{code:"%3F",encode:"?"},{code:"%23",encode:"#"},{code:"%26",encode:"&"},{code:"%3D",encode:"="}];o=o.replace(/%25|%3F|%23|%26|%3D/g,(e,t,o)=>{for(const i of n)if(i.code===e)return i.encode});const i=[{code:"%",encode:"%25"},{code:"?",encode:"%3F"},{code:"#",encode:"%23"},{code:"&",encode:"%26"},{code:"=",encode:"%3D"}];return o=o.replace(/[%?#&=]/g,(e,t,o)=>{for(const n of i)if(n.code===e)return n.encode}),decodeURIComponent(o||"")}};function C(){const e={modelFolder:"",Folder:"",Name:"",modejsPath:"",captureImg:"../../assets/img/pic-default2.png",capturePath:"",isShare:!1,bgColor:"0xFFF2F2F2"};return e}function S(e){var t=[];return e.map((e,o,n)=>{var i=C();Object.assign(i,e);var r=e.Folder.substring(e.Folder.lastIndexOf("/")+1),a=/^[0-9]+$/.test(r),c=a?e.Folder.substr(0,e.Folder.lastIndexOf("/")):e.Folder;i.captureImg=c+"/"+e.Name+"_thumbnail.jpg",i.capturePath=c+"/"+e.Name+"_thumbnail.jpg",i.modejsPath=e.Folder+"/model.js","Model"==e.Name&&(i.bgColor="0x000000"),t.push(i)}),t}const x=function(e,t,o){var n=[];if(-1!=o[t].toLowerCase().indexOf(e.toLowerCase())&&n.push(o),o.children.length)for(var i=0;i<o.children.length;i++)n=n.concat(x(e,t,o.children[i]));return n},T=function(e){const t=w();return"show"==t.type||("hide"!=t.type||!(t.hidebtns.indexOf(e)>-1))},O=function(e){var t=e&&e.replace("(","");t=t&&t.replace(")",""),t=t&&t.replace("rgb","").split(",");for(var o="0X",n=0;n<t.length;n++){var i=Number(t[n]).toString(16);i.length<2&&(i="0"+i),o+=i}return 8!==o.length&&(o=e),o},y=function(e){const t=["","rgb(0,0,0)","rgb(255,253,245)","rgb(242,242,242)"],o=O(t[e]);return o},M=function(e){var t;return t=String(e)&&String(e).indexOf("num:")>=0?parseInt(e.split(":")[1]):y(e),t};function j(e){var t=e.replace("(","").replace(")","").split(",");if(3!=t.length)return"#ffff";for(var o="#",n=0;n<3;n++){var i=t[n];if(""==i&&(i="0"),parseInt(i)!=i)return"#ffff";if(i>255)return"#ffff";var r="0123456789ABCDEF",a="",c=i%16;a=r.substr(c,1),c=(i-c)/16,o+=r.substr(c,1)+a}return o}function D(e){var t=j(e);return t=t.replace("#","0X"),Number(t)}function E(e){return e=e.replace("#","0X"),Number(e)}function k(e){return"string"==typeof e?e.indexOf("#")>=0?E(e):3==e.split(",").length?D(e):e:e}const I=function(e){if(!e||e.indexOf(":")<=0)return;const t=e.split(":")[0],o=e.split(":")[1],n=parseFloat(o)/parseFloat(t);return n},A=function(){var e=new Date;return"cms"+e.getDay()+e.getHours()+e.getMinutes()+e.getSeconds()+e.getMilliseconds()+Math.round(1e4*Math.random())},B=function(e){e.isChecked=!1,e.parent&&B(e.parent)},N=function(e){e.parent&&(e.parent.isChecked=e.parent.children.every(e=>e.isChecked)),e.parent&&e.parent.parent&&N(e.parent)},_=function(e,t){e.isRendered&&e.children&&e.children.map(e=>{e.isChecked=t,e.children&&_(e,t)})},L=function(e){e.isHighlight=!1,e.parent&&L(e.parent)},V=function(e){e.parent&&(e.parent.isHighlight=e.parent.children.every(e=>e.isHighlight)),e.parent&&e.parent.parent&&V(e.parent)},z=function(e,t){e.children&&e.children.map(e=>{e.isHighlight=t,e.children&&z(e,t)})},P=function(e,t){e.uuid==t.uuid?(e.isHighlight=!0,z(e,!0),V(e),F(e)):e.children&&e.children.map(o=>{o.parent=e,P(o,t)})},F=function(e){e.isOpenChild=!0,e.parent&&F(e.parent)},R=function(e,t){e&&(t.isHighlight=e.isHighlight,t.isChecked=e.isChecked,t.isOpenChild=e.isOpenChild,t.children&&t.children.map((t,o)=>{R(e.children[o],t)}))},U=function(e,t){return new Promise((t,o)=>{var{url:n,method:i,data:r,header:a}=e,c=i||"GET",s=!0,l=null;if(window.XMLHttpRequest?l=new XMLHttpRequest:window.ActiveXObject&&(l=new ActiveXObject("Microsoft.XMLHTTP")),null!=l){if(l.onreadystatechange=function(){var e=void 0;if(4==l.readyState){if(l.responseText&&404!=l.status&&!l.responseText.includes("<!DOCTYPE html>"))try{e=JSON.parse(l.responseText)}catch(o){}t(e)}},l.open(c,n,s),l.setRequestHeader("Content-type","application/json; charset=utf8"),a&&"{}"!=JSON.stringify(a))for(let e in a)l.setRequestHeader(e,a[e]);c=c.toUpperCase(),"GET"==c||"DELETE"==c?l.send():"POST"!=c&&"PUT"!=c||l.send(JSON.stringify(r))}else alert("Your browser does not support XMLHTTP."),t(void 0)})},H=function(e,t){var o=document.createElement("script");o.setAttribute("type","text/javascript"),o.setAttribute("src",e),o.onload=function(){t&&t()},document.head.appendChild(o)},W=function(e){if(!pako)return null;let t=atob(e);const o=t.split("").map((function(e){return e.charCodeAt(0)})),n=new Uint8Array(o),i=pako.inflate(n);t=new Uint16Array(i);let r,a="",c=8192;for(r=0;r<t.length/c;r++)a+=String.fromCharCode.apply(null,t.slice(r*c,(r+1)*c));return a+=String.fromCharCode.apply(null,t.slice(r*c)),decodeURIComponent(a)},G=function(e,t){if(!pako)return null;let o;return o=t?pako.gzip(encodeURIComponent(e),{to:"string"}):pako.gzip(e,{to:"string"}),btoa(o)},K=function(e,t){let o=!1;return e.map(e=>{e.state.uuid==t&&(o=!0)}),o},Z=function(){try{return new Promise((e,t)=>{const o=window.localStorage.getItem("0_BF"),n=(new Date).getTime();let i=o&&o.split(",")[1]||0;if(!o||i-n>864e5){var r=new fingerPrintOwner;r.get(t=>{window.localStorage.setItem("0_BF",t+","+(new Date).getTime()),e(t)})}else e(o.split(",")[0])})}catch(e){return""}};window.JSEncrypt=window.JSEncryptOwner;const Y=function(e){try{let t="MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCxl/XzEMiiYrLq prR5BxAY+IPkPdOtiEt7fP3jtxac0m5S1FAT/3jiQb+bTmqeffsl5gw7LaMMOkAj 5h+HzH/TbTmxYn4dIUkGFvvZHAiwMuDA+7fORjhTaz1hmQi1gUNX9Qu985ys2jFb eXAg5XV2orovM+qY3regbNkWwVk3iJ1Kk3rk2ZBw26AVvs+ujVvAE8cGP/LgAAOe CvNDTiA//agCTajQo1xSkAIcLSNKdUfn5OdTlx0sifXcw5NUmBZKbQ7Q7tC0Xpa1 RanG+5riOzLcw6zOKwHn62Hp3Twosc/hLATaOmz/ru5rnNe+bDBndp3iRo/zCiL8 8iwmg+s7AgMBAAECggEBAJnBWusKSOpuUUDe+7kc6E72OhpNfQrsyY0sdhPE3AsC FQoZTwtBT8Nz8RPhHGYD5IC3XzeNF3DqrcVm4z2LS9Ac7Koq/8zwmGxxUbJylwMV yYjLZiNsoC941Te+as/aDhgEzBm05Jyye7Eavn18q+n+kPt1E1Mu4ARAuOL+muN8 LNqNFOMSYzocXRJqnKSXnnIQQa6FvA6UiM8DaJcXJ83V24tF0vaLfCOOFvfNQwGN gNapppvJGSqE1QjrNwllO8O8cBmiC0PIW0lff2qeXH6bfhzUiaMa70sDEEHcZlW5 WmoJABjYwEH5xvjCqieK5SOGKwQkwFj0gcqBKGWZPYECgYEA6xAV4UqvvIlRvlMI eKAlJJwS10M9avScyq9W+fJk0KVqstGGdIDklRy4pd1SALDwKU4C58I/5Gsky+S+ iPwUaZySWjwgdBl4icv3cbUdu61gUUdHfDh+d+hZcnRKa9EzQEPReOkcVpSlfxnJ oaS7psozL3nUfJrTH+QlflesQXECgYEAwWl1dpcCJkmuacUhzCsZ29BljREjlPK6 6qnjUEY/IWqddH2ZWrJBB+6ZSNYSniNqpsjnFPccQdEfk2kxWLjeCCNb42Lukm6F rrJt7Kit7KW0VDyN7+etkzGRfM0QQl9mhX4wUxWyCKdgq7+Ut/nwlYhZi7TN86n7 qRBN1HPlIWsCgYEA0Q43R20TKoy+RJS4Xf+fyRV9tDE6+Fqg76pNonIvs1jKskqi WA8iPHOUzP8vJSo4DaQx9UjPZijcSvIfetkmll8H0nTTMC5PA86BPYGk9ftWRDMu oo3j/GSK2L4QSh9+g1NNg0lfSKlfHtEigD5wHgCK0Vh64G8aAaz4o4r5yiECgYBH G93K5wQsTYSpcIfXh7UvIvRjI/0AAyoDoshnOBx3zbnsHU1nkgfkwa1roQEhUQYi IdUL2TpzXE6OpOs2omlHdrCO7k2mWqodq45Mp0uiqN2e5tCMdpJTfrLtvnsO3AJW bCmaMmzNT7R0ELC930+7unCps6TQxBs5cjwbMyz31wKBgF1wlS2cWsuOQ76t8LPn jXC6nsU2eisWN5KFbxhNphCnqxgYBJth5Vk3OIby2nmvNGqO12p1bUZpbVEBttyj JcXR+iuasOWWev0SuUFZvp3bYEiX/sCjWZbB9mBjg/s6QW5z4ZW9rF6UdOr7ISQ8 6g9cU4ontroPvD52Jcffyr3f",o=new JSEncryptOwner;o.setPrivateKey(t);let n=o.decrypt(e);return n}catch(t){return""}},q=e=>{let t=e.left||0,o=e.right||0,n=e.top||0,i=e.bottom||0,r={left:t,bottom:i};return!e.hasOwnProperty("left")&&e.hasOwnProperty("right")&&(delete r.left,r.right=o),e.hasOwnProperty("left")||e.hasOwnProperty("right")||(r.left="16px"),!e.hasOwnProperty("bottom")&&e.hasOwnProperty("top")&&(delete r.bottom,r.top=n),e.hasOwnProperty("bottom")||e.hasOwnProperty("top")||(r.bottom="85px"),e.hasOwnProperty("width")&&(r.width=e.width),e.hasOwnProperty("height")&&(r.height=e.height),r};function J(e){let t={...e};return t}var Q={namespaced:!0,state:{hideItem:{structTree:!1,measure:!1},configs:[],shareInfo:void 0,shareConfig:-2,isModelCfg:!1,modelPath:"",modelSetInfo:null,nowConfig:-1,nowConfigName:"",annotationTagId:"",activConfig:-1,scaleDialog:!1,measureScale:[],bgSetList:[],colorIdx:0,allTag:[],nowTag:[],delTagUuid:"",tagRelate:!0,_geometryload:!1,_bvhload:!1,_brepload:!1,_highLightNode:[],treeUpdate:!1,unit:"",needOpenImg:"",suportLineWeight:!1},mutations:{initModelInfo(e,t){-1===t.opt.configNum?e.nowConfig=0:(e.configs=t.opt.modelList,e.nowConfig=t.opt.configNum),e.shareInfo=t.opt.shareInfo,e.nowConfigName=t.opt.nowConfigName,e.allTag=t.opt.allTag,e.nowTag=t.opt.nowTag},resetTagIndex(e,t){if(e.allTag&&e.allTag.length>0){var o=e.allTag;for(let e=0;e<o.length;e++)o[e].index=String(e+1);e.allTag=o,e.tagRelate&&(e.nowTag=e.allTag.filter(t=>!t.modelName||t.modelName==e.nowConfigName))}},setAllTag(e,t){e.allTag=t},setNowTag(e,t){e.nowTag=t},setModelCfg(e,t){e.isModelCfg=t.isModelCfg,e.isModelCfg&&(e.cfgSrcs=t.cfgSrcs)},setShareConfig(e,t){e.shareConfig=t},setActiveCfg(e,t){e.activConfig=t},setScaleDialog(e,t){e.scaleDialog=t},setGeometryload(e,t){e._geometryload=t},setBvhLoad(e,t){e._bvhload=t},setBrepload(e,t){e._brepload=t},setShowhide(e,t){e.showhide=t},changeMultipleCfg(e,t){if(t!=e.nowConfig){e._geometryload=!1,e._brepload=!1,e.nowConfig=t;var o=e.configs[e.nowConfig].Name;e.nowConfigName=o,e.allTag&&(e.nowTag=e.allTag.filter(e=>!e.modelName||e.modelName==o));var n={configNum:e.nowConfig,measuringScale:1};try{if(e.measureScale.length>0&&void 0!=e.measureScale[e.nowConfig]){t=e.measureScale[e.nowConfig];n.measuringScale=I(t)}}catch(c){}var i=e.shareConfig==e.nowConfig?e.shareInfo.camerainfo:null,r=e.configs[e.nowConfig].Folder+"/model.js",a=-2==e.shareConfig?e.nowConfig:e.shareConfig;e.modelPath=r,e.modelSetInfo=n,ne.loadModelView(r,null,a,i,n)}},setModelPath(e,t){e.modelPath=t},setModelSetInfo(e,t){e.modelSetInfo=t},setAnnotationTagId(e,t){e.annotationTagId=t},setNowConfig(e,t){e.nowConfig=t},addTag(e,t){e.nowTag.push(t),e.allTag.push(t)},updateTagText(e,t){var o=t.uuid;e.nowTag.map((function(e,n){e.state.uuid==o&&(e.text=encodeURIComponent(t.text))})),e.allTag.map((function(e,n){e.state.uuid==o&&(e.text=encodeURIComponent(t.text))}))},delTagByuuid(e,t){var o=-1;e.nowTag.map((function(e,n){e.state.uuid==t&&(o=n)})),o>=0&&e.nowTag.splice(o,1);var n=-1;e.allTag.map((function(e,o){e.state.uuid==t&&(n=o)})),n>=0&&e.allTag.splice(n,1),n>=0&&(e.delTagUuid=t)},checkHighLightNode(e,t){e._highLightNode.map(e=>{e.isHighLight=t})},setHighLightNode(e,t){e._highLightNode=t},addHighLightNodeByOne(e,t){e._highLightNode.push(t)},addHighLightNode(e,t){e._highLightNode=e._highLightNode.concat(t)},deleteHighLightNodeByOne(e,t){let o=e._highLightNode.indexOf(t);o>-1&&e._highLightNode.splice(o,1)},deleteHighLightNode(e,t){t.map(t=>{let o=e._highLightNode.indexOf(t);o>-1&&e._highLightNode.splice(o,1)})},setMeasureScale(e,t){e.measureScale[e.nowConfig]=t;var o=I(t);ne.setMeasuringScale(o)},setInitMeasureScale(e,t){e.measureScale=t},setInitBgSetList(e,t){e.bgSetList=t},setShareBg(e,t){e.bgSetList[e.nowConfig]=t,e.colorIdx=t},setHideItem(e,t){e.hideItem={...e.hideItem,...t}},treeSubject(e){e.treeUpdate=!e.treeUpdate},setUnitType(e,t){e.unit=t},setNeedOpenImg(e,t){e.needOpenImg=t},setSuportLineWeight(e,t){e.suportLineWeight=t}},actions:{}},X={namespaced:!0,state:{isShowTagEdit:!1,tagDrawing:!1,tagShow:!0},mutations:{startNewTagDraw(e){e.isShowTagEdit=!0},setTagdrawing(e,t){e.tagDrawing=t},setTagshow(e,t){e.tagShow=t}},actions:{}},ee={namespaced:!0,state:{showOneMenu:!0,menuChoose:"",menuChoose2:"",menuChoose3:"",showAllMenu:!0,structMenu:!1,unitMenu:!1,showManyConfig:!0,textFindMenu:!1},mutations:{setShowOneMenu(e,t){e.showOneMenu=t},setMenuChoose(e,t){e.menuChoose=t},setMenuChoose2(e,t){e.menuChoose2=t},setMenuChoose3(e,t){e.menuChoose3=t},setShowAllMenu(e,t){e.showAllMenu=t},setStructMenu(e,t){e.structMenu=t},setShowManyConfig(e,t){e.showManyConfig=t},setUnitMenu(e,t){e.unitMenu=t},setTextFindMenu(e,t){e.textFindMenu=t}},actions:{}},te=Object(c["createStore"])({namespaced:!0,state:{isShowCtrlBtn:!1,isShowBottomBtn:!1,isShowMsg:!1,msgTxt:"",msgFunc:null,showAreaTips:!0,helpShow:!1,showLoading:!0,isShareConfig:!1,treeMode:"normal",opt:{},mpath:"",language:"",isFull:!1,clickIng:!1,setTi:null,printMode:!1,rtmNeedCover:!1,modelIsLoaded:!1},mutations:{setLanguage(e,t){e.language=t},showCtrlBtn(e){e.isShowCtrlBtn=!0},hideCtrlBtn(e){e.isShowCtrlBtn=!1},showBottomBtn(e){e.isShowBottomBtn=!0},hideBottomBtn(e){e.isShowBottomBtn=!1},showMsgTip(e,t){e.msgTxt=t.txt,e.isShowMsg=!0,e.msgFunc=t.func},hideMsgTip(e){e.isShowMsg=!1},setShowAreaTips(e,t){e.showAreaTips=t},setHelpShow(e,t){e.helpShow=t},setShowLoading(e,t){e.showLoading=t},setTreemode(e,t){e.treeMode=t},setOpt(e,t){e.opt=t},setPath(e,t){e.mpath=t.mpath},setFull(e,t){e.isFull=t},setClickIng(e,t){e.setTi&&clearTimeout(e.setTi),e.clickIng=t,e.setTi=setTimeout(()=>{e.clickIng=!1},1e3)},setPrintMode(e,t){e.printMode=t},setRtmNeedCover(e,t){e.rtmNeedCover=t},setModelIsLoaded(e,t){e.modelIsLoaded=t}},actions:{},modules:{modelStore:Q,tagStore:X,menuStore:ee}});const oe={_inited:!1,_viewer:null,_loaded:0,_geometryload:!1,_pmiload:!1,_nowModel:0,_OnlyVisbale:void 0,_is2DModel:!1,_viewMode:"common",_modelId:0,state:{brepOk:!1,pmiOk:!1},copyRight:["新迪","MD5 6bf14f1225fc5faa","3870337AC4335EB9","武汉新迪数字工程系统有限公司","MD5 7119695dc5e0b620","F2594065542A15E9649EF73FDDBCA95E2FDA28426AE5B3C8DA906D8F80ED2F82","杭州新迪数字工程系统有限公司","MD5 975c80e892939df2","E411A8048C3755F3856E6224F3B78E5A35442CB1D7CD4491873F2E161326BC30"],init:function(e){if(!this.copyRight)return;if(this._inited)return;let t;this._inited=!0;let o=nd_viewCtrl.language||"zh";"zh"==o&&(o="zh-CN"),this._viewer=new NDSWebViewer.Viewer({id:"viewer",from:e.from,singleHTML:!1,singleWorkerSource:t,serverUrl:Object({NODE_ENV:"production",VUE_APP_LANGUAGE:"zh",VUE_APP_ONETAG:"",BASE_URL:""}).VUE_APP_PUBLIC||"./",NdsLoadWorkerUrl:"coreViewer/NDSRequestWorker.min.js",enableArrowKeyOp:!0,backGroundColor:e.bgColor,enableGroundShadow:e.showShadow,enableAutoRotation:!1,backGroundImage:e.bgImg,is2DModel:!0,language:o,inAssemblyContext:!1,toolbar:!1,pmiVisible:!0,loadbrepDefault:e.loadbrepDefault,has2DCover:!0,hasLoadingWaiter:!1,hasLoadingCoverer:!0,enableSelect:!0,autoSwitchFirstPersonView:!1,showLines:!0,projectionMode:"Orthographic",hasViewBox:!1,limitEventArea:!0,convertPhongToPBR:!0,enableBodyVolumeMeasure:!0,clipPlaneShaderVersion:3,showSectionPlane:!0,defaultStandardView:"front",defaultOpRotate:!1,Arthur:e.waterString,viewState:"shadedWithEdges",testMode:e.testMode,disratio:e.disratio,gobalReqHeader:J(e.viewerReqHeader||null)})},getViewerIntance:function(){return this._viewer},async loadModelView(e,t,o,n,i){let r;te.commit("setShowLoading",!0);let a=nd_viewCtrl&&nd_viewCtrl.renderKey;if(r=await this.allowCode(e),2==r&&!te.state.modelIsLoaded&&"sync"!=nd_viewCtrl.viewMode){if(!nd_viewCtrl.hasOwnProperty("fingerHttp"))return te.commit("setShowLoading",!1),te.commit("menuStore/setShowManyConfig",!1),void Ga.$eventBus.emit("MsgTipEvent4",Ga.$t("modelLoadErr"));const e=await Z(),t=await U({url:nd_viewCtrl.fingerHttp+"/nds_requests/common/ViewerVisit",method:"POST",data:{browserMark:e,viewerVersion:window.ViewerVersion,viewerType:"2DPC"}});if(!t)return te.commit("menuStore/setShowManyConfig",!1),te.commit("setShowLoading",!1),void Ga.$eventBus.emit("MsgTipEvent4",Ga.$t("modelLoadErr"));if(1!=t.status.code)return Ga.$eventBus.emit("MsgTipEvent4",t.status.msg),te.commit("menuStore/setShowManyConfig",!1),void te.commit("setShowLoading",!1);a=t.data;let o=JSON.parse(Y(t.data));if(o.browserMark!=e)return te.commit("menuStore/setShowManyConfig",!1),void te.commit("setShowLoading",!1);if(!o.visit)return Ga.$eventBus.emit("MsgTipEvent4",Ga.$t("modelLimitErr")),te.commit("menuStore/setShowManyConfig",!1),void te.commit("setShowLoading",!1)}if(2==r&&!te.state.modelIsLoaded){const e=this._viewer.allowRenderModel(a,!0);if(2!=e)return Ga.$eventBus.emit("MsgTipEvent4",Ga.$t("modelLoadErr")),te.commit("menuStore/setShowManyConfig",!1),void te.commit("setShowLoading",!1)}var c=te.state.modelStore.bgSetList[te.state.modelStore.nowConfig||0],s=M(c);oe.setBackGroundColor(s),te.commit("modelStore/setShareBg",c),te.commit("modelStore/setModelPath",e),te.commit("modelStore/setModelSetInfo",i),n=n||null,i=i||{},this._viewer.resetForReload(),this._viewer.loadModel("idv",e,void 0,void 0,"js",n,(function(){oe._nowModel=o,oe.enableRotation(!1),setTimeout(()=>{oe._viewer.onWindowResize()},2e3),t&&t()}),null,i)},easyLoadModel:function(e,t,o){this._viewer.loadModel("idv",e,void 0,void 0,"js",void 0,(function(){o&&o()}),null,t)},modelUnit:function(){return this._viewer.modelUnit},allowCode(e){return new Promise((t,o)=>{this._viewer.allowshow(e,e=>{t(e)})})},broadcastMember:function(e){try{var t=oe._viewer.getBroadcastInfo();"yzp"==oe._viewMode&&yzp_page_vue&&yzp_page_vue.isSyncView&&yzp_page_vue.isNowAssembling&&yzp_viewCtrl.SocketFun_ViewropeateSend(t,e)}catch(o){}},listenerBroadcastEvent:function(){var e=this;this._viewer.removeEventListener("broadcastEvent",e.broadcastMember),this._viewer.addEventListener("broadcastEvent",e.broadcastMember)},setBroadcastInfo:function(e){var t=this;t._viewer&&t._viewer.setBroadcastInfo(e)},recieveDirect_viewer:function(e){var t=this,o=e;if(t._viewer&&!NDSWebViewer.SETTING.broadcastMajor&&NDSWebViewer.SETTING.enableBroadcast){t._viewer.setBroadcastInfo(o);window.performance.now()}},containProperty:function(){return this._viewer.containProperty},getViewer:function(){return this._viewer},addListener:function(e,t){this._viewer.addEventListener(e,t)},onMoveForward:function(){this._viewer.onMoveForward()},onMoveBack:function(){this._viewer.onMoveBack()},onMoveLeft:function(){this._viewer.onMoveLeft()},onMoveRight:function(){this._viewer.onMoveRight()},onResetCamera:function(){return this._viewer.onResetCamera()},setOperatorByID:function(e){return this._viewer.setOperatorByID(e)},onSectionView:function(e){return this._viewer.onSectionView(e)},hideShowClipPlane:function(e){return this._viewer.clipPlaneManager.hideShowClipPlane(e)},reverseClipDirection:function(){return this._viewer.clipPlaneManager.reverseClipDirection()},getSelectedObjects:function(){return this._viewer.selectionManager.getSelectedObjects()},isolateSelectedObjects:function(){return this._viewer.isolateSelectedObjects()},hideSelectedObjects:function(){return this._viewer.hideSelectedObjects()},onSelectAndMoveModel:function(){return this._viewer.onSelectAndMoveModel(!0)},onSelectAndRestoreModel:function(){return this._viewer.onSelectAndRestoreModel(!0)},onHideModel:function(){return this._viewer.onHideModel()},onReverseVisibleAndHidingModel:function(){return this._viewer.onReverseVisibleAndHidingModel()},showAllModel:function(){return this._viewer.showAllModel()},getSelectedObjectProperty:function(e){this._viewer.getSelectedObjectProperty(e)},hasObjectHiddenOrIsolated:function(){return this._viewer.hasObjectHiddenOrIsolated()},getModelTree:function(){return this._viewer.getModelTree(this._OnlyVisbale)},isLeaf:function(e){return this._viewer.isLeaf(e)},clearSelection:function(){this._viewer.selectionManager.clearSelection(),this.render()},selectObject:function(e){this._viewer.selectionManager.selectObject(e,!0)},deselectObject:function(e){this._viewer.selectionManager.deselectObject(e)},isolateSelectedObjects:function(e){this._viewer.isolateSelectedObjects()},zoomToObject:function(e){this._viewer.zoomToObject(e)},getObjectProperty:function(e,t){this._viewer.getObjectProperty(e,t)},setMeasureOpType:function(e){this._viewer.setMeasureOpType(e)},setMeasuringScale:function(e){this._viewer.setMeasuringScale(e)},lookByFace:function(e){this._viewer.cameraControl.lookByFace(e)},onBoxSectionView:function(e){this._viewer.onBoxSectionView(e)},setBackGroundColor:function(e){this._viewer.setBackGroundColor(e)},getHotPoint:function(e,t){return this._viewer.getHotPoint(e,t)},addAnnotation:function(e){this._viewer.addAnnotation(e)},addAnnotationSave:function(e){this._viewer.addAnnotationSave(e)},CorrectPosition:function(e){this._viewer.CorrectPosition(e)},resetSelectAnnotation:function(){this._viewer.resetSelectAnnotation()},setAnnotationsVisibility:function(e){this._viewer.setAnnotationsVisibility(e)},selectAnnotation:function(e){this._viewer.selectAnnotation(e)},removeAnnotation:function(e){this._viewer.removeAnnotation(e)},removeAnnotations:function(e){this._viewer.removeAnnotations(e)},removeAllAnnotations:function(){this._viewer.removeAllAnnotations()},displayViewBox:function(e){this._viewer.displayViewBox(e)},clientCoordToModelCoord:function(e,t){return this._viewer.clientCoordToModelCoord(e,t)},modelCoordToClientCoord:function(e,t){return this._viewer.modelCoordToClientCoord(e,t)},onExplode:function(e){this._viewer.onExplode(e)},getExplodeFactor:function(){return this._viewer.getExplodeFactor()},onLineVisibility:function(e){this._viewer.onLineVisibility(e)},getCurrentOperatorID:function(){return this._viewer.getCurrentOperatorID()},isModelMoved:function(){return this._viewer.isModelMoved()},onSelectAndMoveModel:function(){"OpDrag"!=this._viewer.getCurrentOperatorID()&&this._viewer.setOperatorByID("OpDrag"),this._viewer.onSelectAndMoveModel(!0)},onSelectAndRestoreModel:function(){"OpDrag"!=this._viewer.getCurrentOperatorID()&&this._viewer.setOperatorByID("OpDrag"),this._viewer.onSelectAndRestoreModel(!0)},isPerspective:function(){return this._viewer.camera.IsPerspective()},toPerspective:function(){this._viewer.camera.toPerspective()},toOrthographic:function(){this._viewer.camera.toOrthographic()},showObject:function(e,t){this._viewer.showObject(e,t),t||this.deselectObject(e)},render:function(){this._viewer.render()},isAllHidden:function(){return this._viewer.isAllHidden()},setPmiVisible:function(e){this._viewer.setPmiVisible(e)},isObjectOrSomeChildHidden:function(e){return this._viewer.isObjectOrSomeChildHidden(e)},getCameraInfo:function(){return this._viewer.getCameraInfo()},hasAnimations:function(){return this._viewer.hasAnimations()},getAllAnimationsInfo:function(){return this._viewer.getAllAnimationsInfo()},startAnimationByUUID:function(e,t){this._viewer.startAnimationByUUID(e,t)},setAnimationScaleByUUID:function(e,t){this._viewer.setAnimationScaleByUUID(e,t)},exitAnimations:function(){this._viewer.exitAnimations()},enableRotation:function(e){this._viewer.enableRotation(e)},OpMeasureRelease:function(){this._viewer.OpMeasureRelease()},setMeasuringScale:function(e){this._viewer.setMeasuringScale(e)},getPrintData:function(e,t,o,n,i,r){return"select"==i?this._viewer.getPrintData(e,t,o,n,i,r):"view"==i?this._viewer.getPrintData(e,t,o,n,i):this._viewer.getPrintData(e,t,o,n)},getPrintDataCallback:function(e,t,o,n,i,r,a){"select"==r?this._viewer.getPrintDataCallback((function(t){e&&e(t)}),t,o,n,i,r,a):"view"==r?this._viewer.getPrintDataCallback((function(t){e&&e(t)}),t,o,n,i,r):this._viewer.getPrintDataCallback((function(t){e&&e(t)}),t,o,n,i)}};var ne=oe;const ie=function(e){if(Detector.webgl){var t=d();const r={modejsPath:"",modelList:[],configNum:t.configNum,shareInfo:t.shareInfo,allTag:t.allTag,nowTag:[],nowConfigName:"",mpath:e.mpath};ne.init(t.viewSetting);var o="";if(e.isModelCfg){r.modelList=S(e.cfgSrcs),(-1==r.configNum||1==r.modelList.length||r.configNum-1>r.modelList.length)&&(r.configNum=0);var n=r.modelList[r.configNum];if(n){n.isShare=!0,r.modejsPath=n.modejsPath,o=n.Folder;var i=n.Name;r.nowConfigName=i,r.nowTag=t.allTag.filter(e=>!e.modelName||e.modelName==i)}}else r.modejsPath=e.cfgSrcs[0],r.nowTag=JSON.parse(JSON.stringify(r.allTag));return te.commit("modelStore/initModelInfo",{opt:r,initSet:t}),window.configImgPath=o,{opt:r,initSet:t}}alert("系统不支持!")};function re(e,t){Array.isArray(e)&&(e=e[1]);var o=e,n=e.indexOf("model.js");n>1?o=e.substr(0,n):e.lastIndexOf("/")!=e.length-1&&(o=e+"/"),te.commit("setPath",o),U({url:o+"Configurations.json",method:"GET",header:nd_viewCtrl&&nd_viewCtrl.viewerReqHeader||""}).then(e=>{var n=!!e,i={isModelCfg:n,cfgSrcs:[],mpath:o},r=[];if(e){var a="";if(e.Configurations){i.isModelCfg=!0;var c=e.Configurations;c[0].isActive=!0,c.map(e=>{e.Folder=a+o+e.Folder});for(let e=0;e<c.length;e++)"Model"==c[e].Name?(i.cfgSrcs.splice(0,0,c[e]),r.splice(0,0,1)):(i.cfgSrcs.push(c[e]),r.push(3));for(let e=0;e<i.cfgSrcs.length;e++)i.cfgSrcs[e].isActive&&te.commit("modelStore/setActiveCfg",e)}}else r.push(1);te.commit("modelStore/setInitBgSetList",r),h(),i.isModelCfg||(i.cfgSrcs=[o+"model.js"]),te.commit("modelStore/setModelCfg",i);var s=ie(i);t&&t(s)})}const ae=function(e){if(!Detector.webgl)return void alert("系统不支持!");const t=d();ne.init(t),ne._viewer.loadFlateDate(window.nd_viewerBlob),ne._viewer.addEventListener("Configurations",t=>{let o="";const n=JSON.parse(t.userData);var i=!!n,r={isModelCfg:i,cfgSrcs:[],mpath:o},a=[];if(n){var c="";if(n.Configurations){r.isModelCfg=!0;var s=n.Configurations;s[0].isActive=!0,s.map(e=>{e.Folder=c+o+e.Folder});for(let e=0;e<s.length;e++)"Model"==s[e].Name?(r.cfgSrcs.splice(0,0,s[e]),a.splice(0,0,1)):(r.cfgSrcs.push(s[e]),a.push(3));for(let e=0;e<r.cfgSrcs.length;e++)r.cfgSrcs[e].isActive&&te.commit("modelStore/setActiveCfg",e)}}else a.push(1);te.commit("modelStore/setInitBgSetList",a),h(),r.isModelCfg||(r.cfgSrcs=[o+"model.js"]),te.commit("modelStore/setModelCfg",r);t=ie(r);e&&e(t)})},ce={_btnSetting:[],_bottomDom:[],init(){nd_viewCtrl.showBtnCfg&&nd_viewCtrl.showBtnCfg.length>0&&(this._btnSetting=nd_viewCtrl.showBtnCfg)},readyForDom(e){const t=this;t.init(),this._btnSetting.forEach((e,o)=>{t.changeOneLevelBottom(e,o)}),e&&e()},getChildDom(e){let t=[];if(e){const o=this;e.forEach((e,n)=>{let i=document.getElementById(e.id);i&&i.setAttribute("sortidx",n),e.imgUrl&&i.querySelector("img").setAttribute("src",e.imgUrl),t.push(i);let r,a=document.getElementById(e.id+"-list"),c=o.getChildDom(e.list);a&&(r=a.querySelector(".return-menu")),a&&(a.innerHTML="",r&&a.appendChild(r),c.length&&c.map(e=>{a.appendChild(e)}))})}return t},changeLevelLeft(e){if(e.id){let t=document.getElementById(e.id+"-list"),o=this.getChildDom(e.list);if(o=o.sort((e,t)=>e.getAttribute("sortidx")-t.getAttribute("sortidx")),t.innerHTML="",o.length?o.map(e=>{t.appendChild(e)}):t.nextElementSibling.style.display="block",e.imgUrl){let t=document.getElementById(e.id).querySelector("img");t.setAttribute("src",e.imgUrl)}}},changeOneLevelBottom(e,t){let o;o=document.getElementById(e.id),o&&(o.setAttribute("sortidx",t),this.changeBottomChildDom(e),this._bottomDom.push(o),e.imgUrl&&o.querySelector("img").setAttribute("src",e.imgUrl)),t==this._btnSetting.length-1&&this.sortBottomOneLevelBtn()},changeBottomChildDom(e){let t=document.getElementById(e.id+"-list"),o=t&&t.querySelector(".return-menu"),n=this.getChildDom(e.list);n=n.sort((e,t)=>e.getAttribute("sortidx")-t.getAttribute("sortidx")),t&&(t.innerHTML="",o&&t.appendChild(o),n.length?n.map(e=>{t.appendChild(e)}):t.nextElementSibling&&(t.nextElementSibling.style.display="block"))},sortBottomOneLevelBtn(){let e=document.getElementById("bottomMainMenu");this._bottomDom=this._bottomDom.sort((e,t)=>e.getAttribute("sortidx")-t.getAttribute("sortidx")),e.innerHTML="",this._bottomDom.map(t=>{e.appendChild(t)})}};var se=ce;function le(e,t,o,n){return Math.sqrt((e-o)*(e-o)+(t-n)*(t-n))}function de(e,t,o,n){var i={};return i.x=Math.round(Math.cos(o)*n+e),i.y=Math.round(Math.sin(o)*n+t),i}function ue(e,t,o){var n=e.x,i=e.y,r=t.x,a=t.y,c=[],s=+o,l=le(n,i,t.x,t.y),d=Math.atan2(a-i,r-n);return t=de(n,i,d,l-1.5*s),r=t.x,a=t.y,s=Math.max(3*s,10),c.push("M",n,i,"L",r,a),c.push("M",r,a),c.push("L",r-s*Math.cos(d-Math.PI/7),a-s*Math.sin(d-Math.PI/7)),c.push("L",r-s*Math.cos(d+Math.PI/7),a-s*Math.sin(d+Math.PI/7)),c.push("L",r,a),c.push("L",r-s*Math.cos(d-Math.PI/7),a-s*Math.sin(d-Math.PI/7)),c.join(" ")}function me(e,t){var o=.5*r(t.x-e.x),n=.5*r(t.y-e.y),i=["M",e.x,e.y+n];return i.push("a",Math.abs(o),Math.abs(n),0,1,1,r(2*o),0),i.push("a",Math.abs(o),Math.abs(n),0,1,1,r(2*-o),0),i.push("z"),i.join(" ");function r(e){return 0==e?1:e}}function ge(e,t){var o=t.x,n=e.x,i=t.y,r=e.y,a=Math.abs(o-n),c=Math.abs(i-r),s=Math.sqrt(Math.pow(a,2)+Math.pow(c,2)),l=c/s,d=Math.acos(l),u=Math.floor(180/(Math.PI/d));return n>o&&r>i&&(u=180-u),n==o&&r>i&&(u=180),n>o&&r==i&&(u=90),n<o&&r>i&&(u=180+u),n<o&&r==i&&(u=270),n<o&&r<i&&(u=360-u),u}function he(e,t,o){if(ne){var n=ne._viewer.modelCoordToClientCoord([e,t,o]);return{x:n[0],y:n[1]}}return{x:0,y:0}}function pe(e,t){if(ne){var o=ne._viewer.clientCoordToModelCoord([e,t]);return{cx:o[0],cy:o[1],cz:o[2]}}return{cx:0,cy:0,cz:0}}function ve(e,t){if(ne){var o=ne._viewer.getHotPoint(e,t);return o}return null}function we(){for(var e=navigator.userAgent,t=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],o=!1,n=0;n<t.length;n++)if(e.indexOf(t[n])>0){o=!0;break}return o}function fe(e){var t=$(".taglayer-nd .svg"),o=t.html(),n=document.createElement("canvas");n.width=t.width(),n.height=t.height(),t.append(n),canvg(n,o,{ignoreMouse:!0,ignoreAnimation:!0,renderCallback:function(){html2canvas(document.getElementById("viewer"),{useCORS:!0,allowTaint:!0,ignoreMouse:!0,ignoreAnimation:!0}).then(t=>{e&&e(t.toDataURL("image/png")),$("#drawImg").remove()})}})}function be(e){var t=document.createElement("canvas");t.style.width=$("#t_container").width()+"px",t.style.height=$("#t_container").height()+"px",t.id="drawImg",$("#t_container").append(t);var o=new Image;o.setAttribute("crossOrigin","anonymous"),ne._viewer.getScreenCapture(e=>{o.src=e}),o.onload=function(){t.width=o.width,t.height=o.height,t.getContext("2d").drawImage(o,0,0),html2canvas(document.getElementById("viewer"),{useCORS:!0,allowTaint:!0,ignoreMouse:!0,ignoreAnimation:!0}).then(t=>{e&&e(t.toDataURL("image/png")),$("#drawImg").remove()})}}function Ce(e){var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),o=document.createElement("canvas");o.style.width=$("#t_container").width()+"px",o.style.height=$("#t_container").height()+"px",o.id="drawImg",$("#t_container").append(o);var n=new Image;n.setAttribute("crossOrigin","anonymous"),ne._viewer.getScreenCapture2((function(e){n.src=e}),!1,!0,void 0,void 0,!0,!0),ne._viewer.render(),n.onload=function(){o.width=n.width,o.height=n.height,o.getContext("2d").drawImage(n,0,0),t?html2canvas(document.getElementById("vueMain"),{useCORS:!0,allowTaint:!0,ignoreMouse:!0,ignoreAnimation:!0}).then(t=>{var o=t.toDataURL("image/png");e&&e(o),$("#drawImg").remove()}):domtoimage.toPng(document.getElementById("vueMain")).then(t=>{e&&e(t),$("#drawImg").remove()}).catch(e=>{})}}var Se={offsetSave:{x:0,y:0},saveCss:"",nowCssInfo:{},operateType:"",nowDivInfo:{},setDivPos:function(e,t){var o=e.getBBox();this.nowDivInfo={width:o.width,height:o.height},t.style.width=this.nowDivInfo.width+20+"px",t.style.height=this.nowDivInfo.height+20+"px",this.nowDivInfo.left=o.x,this.nowDivInfo.top=o.y,t.style.left=this.nowDivInfo.left-10+"px",t.style.top=this.nowDivInfo.top-10+"px";var n=$(e).data("rotate");t.style.transform=n?"rotate("+n+"deg)":""},new:function(e,t,o){this.destroy(),this.opt=t,this.parentVue=o,e=e.parentElement||e.parentNode;var n=document.createElement("div");n.className="nd-selector-box",n.setAttribute("num",this.parentVue.tagNum_list),document.querySelector(".taglayer-nd").appendChild(n),n.innerHTML='<div class="selector-drag-point" direction="n" style="top:-5px;left:calc(50% - 5px);cursor:ns-resize;"></div>\t\t\t<div class="selector-drag-point" direction="s" style="top:calc(100% - 5px);left:calc(50% - 5px);cursor:ns-resize;"></div>\t\t\t<div class="selector-drag-point" direction="w" style="left:-5px;top:calc(50% - 5px);cursor: ew-resize;"></div>\t\t\t<div class="selector-drag-point" direction="e" style="right:-5px;top:calc(50% - 5px);cursor: ew-resize;"></div>\t\t\t<div class="selector-drag-point" direction="nw" style="top:-5px;left:-5px;cursor: nwse-resize;"></div>\t\t\t<div class="selector-drag-point" direction="ne" style="top:-5px;right:-5px;cursor: nesw-resize;"></div>\t\t\t<div class="selector-drag-point" direction="sw" style="bottom:-5px;left:-5px;cursor: nesw-resize;"></div>\t\t\t<div class="selector-drag-point" direction="se" style="bottom:-5px;right:-5px;cursor: nwse-resize;"></div>\t\t\t<div class="selector-drag-point" direction="rotation" style="top:-30px;left:calc(50% - 5px);cursor: move;">\t\t\t</div>\t\t\t<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA01pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ4OCwgMjAyMC8wNy8xMC0yMjowNjo1MyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIyLjAgKDIwMjAwODE4Lm0uMTAxMiAyMDIwLzA4LzE4OiBmODJmNDMzNzYxKSAgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjcyNDZDMENDOUMyMTExRUI5NTRCOTI4QUQ1MEM5OENBIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjcyNDZDMENEOUMyMTExRUI5NTRCOTI4QUQ1MEM5OENBIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NzI0NkMwQ0E5QzIxMTFFQjk1NEI5MjhBRDUwQzk4Q0EiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzI0NkMwQ0I5QzIxMTFFQjk1NEI5MjhBRDUwQzk4Q0EiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5xKH8WAAAB+0lEQVR42ryWzUoCURTHj7Nwo4Wr3ChkLWrtYoZI0AdQ8En8gNwErYQ2Blobg2jREyToAyQEkoueILNFG3MTqZs2dc50BmS8HzPl9Ic/DM659+fce869J/RlHoJGm+gDdJYdZ5Mm7D57AA/3H6rJQgpgGF1Cl9EJ8KZX9Dn6AsGfogBDMrBo/1uAhg8YcGzDHmtlil6BFfQtOg2/V9qew8pUdMA8ugnrUxOheRnQRHdh/eoi1HQDKUHaEJzaCA0vA0vSPdvfA9iI6qekGIqV72nJAcY49Ve1kwK4uQa4uvx5loneUQzFyuPK+JUxAuakqT+dAoxfAFLbAKd18WT0G72jGIqlMfKSyRl8eog1mwMcn8ihbhjF0hi5sgZnp1zPYzFUBKNYtUw62p7wYVebFG4AyR+MNCLgDB+inpJ7GUryByPNDfhnGXy9gO8l1WWvWBNvQFGCqLJXA+z7htGeybJXrb4aGImoU18EpTEa4IBv6lUlE/rUd0OTCVU3MHBajCO+qcVLOnkDWCzUi0VfFt9SlUgN244zBxjmL00HVA2PdiOGfY5Th9Tw1AMsv7rTVC0XfgddDQBWRVhH1tO00IU1wgoIa+m6th7a4nX/y55ZCOt57UuH3G3XpCUjT/0aJ8jQb+ftKMZdQZbvTlGrP+QD5A5B76rJvgUYAC/2yxdBsKw2AAAAAElFTkSuQmCC" class="del" title="删除" />',this.setDivPos(e,n);var i=this.getTransform(e);n.style.transform=i.orotate||"",this.opt&&this.opt.onSel(e);var r=we()?["touchstart","touchmove","touchend","touchcancle"]:["mousedown","mousemove","mouseup","mouseleave"],a=we()?"touchstart":"mousedown";document.querySelector(".nd-selector-box img.del").addEventListener(a,(function(e){c.opt.onDelDrawChild()}));var c=this,s=function(e){we()&&(e.clientX=e.touches[0].clientX,e.clientY=e.touches[0].clientY);var t=e.target.getAttribute("direction");if("rotation"==t)c.operateType="rotate";else if(t&&"rotation"!=t)switch(c.operateType="drag",t){case"n":c.operateDrag={x:0,y:1};break;case"s":c.operateDrag={x:0,y:-1};break;case"ne":c.operateDrag={x:1,y:1};break;case"nw":c.operateDrag={x:-1,y:1};break;case"w":c.operateDrag={x:-1,y:0};break;case"sw":c.operateDrag={x:-1,y:-1};break;case"e":c.operateDrag={x:1,y:0};break;case"se":c.operateDrag={x:1,y:-1};break}else c.operateType="move";document.body.addEventListener(r[1],l),document.body.addEventListener(r[2],d),document.body.addEventListener(r[3],d),c.offsetSave.x=e.clientX,c.offsetSave.y=e.clientY,e.stopPropagation(),e.preventDefault()},l=function(t){we()&&(t.clientX=t.touches[0].clientX,t.clientY=t.touches[0].clientY),"move"==c.operateType?c.move(t,e,n):"rotate"==c.operateType?c.rotate(t,e,n):"drag"==c.operateType&&c.drag(t,e,n);var o=c.getTransform(e);e.setAttribute("transform",(o.translate||"")+" "+(o.rotate||"")),n.style.transform=(o.otranslate||"")+" "+(o.orotate||""),c.saveCss=o.data,c.opt&&c.opt.onChange(c.saveCss),t.stopPropagation()},d=function(t){c.opt&&c.opt.onChangeEnd(),c.setDivPos(e,n),document.body.removeEventListener(r[1],l),document.body.removeEventListener(r[2],d),document.body.removeEventListener(r[3],d),t.stopPropagation(),t.preventDefault()};n.addEventListener(r[0],s)},move:function(e,t,o){var n=this,i=$(t).data("translate");if(i)var r={x:i.x,y:i.y};else r={x:0,y:0};var a=e.clientX-n.offsetSave.x,c=e.clientY-n.offsetSave.y;n.offsetSave.x=e.clientX,n.offsetSave.y=e.clientY;var s=r.x+a,l=r.y+c,d=(i=document.getElementById("t_container").getBoundingClientRect(),Math.min(i.left,0)),u=Math.min(i.top,0),m=Math.min(i.width+d,window.innerWidth-Math.max(i.left,0)),g=Math.min(i.height+u,window.innerHeight-Math.max(i.top,0));return o.offsetLeft+s+d<0&&(s+=0-(o.offsetLeft+s+d)),o.offsetTop+l+u<0&&(l+=0-(o.offsetTop+l+u)),d+o.offsetLeft+o.offsetWidth+s>m&&(s+=m-(d+o.offsetLeft+o.offsetWidth+s)),u+o.offsetTop+o.offsetHeight+l>g&&(l+=g-(u+o.offsetTop+o.offsetHeight+l)),$(t).data("translate",{x:s,y:l}),{x:s,y:l}},rotate:function(e,t,o){var n=ge({x:e.clientX,y:e.clientY},this.getCenterPos(o));return $(t).data("rotate",n),n},drag:function(e,t,o){we()&&(e.clientX=e.touches[0].clientX,e.clientY=e.touches[0].clientY);var n=e.clientX-this.offsetSave.x,i=e.clientY-this.offsetSave.y;n<0&&this.operateDrag.x>0&&this.nowDivInfo.width+n<20&&(n=20-this.nowDivInfo.width),n>0&&this.operateDrag.x<0&&this.nowDivInfo.width-n<20&&(n=this.nowDivInfo.width-20),i<0&&this.operateDrag.y<0&&this.nowDivInfo.height+i<20&&(i=20-this.nowDivInfo.height),i>0&&this.operateDrag.y>0&&this.nowDivInfo.height-i<20&&(i=this.nowDivInfo.height-20),0==this.operateDrag.x&&(n=0),0==this.operateDrag.y&&(i=0);var r={top:this.nowDivInfo.top,left:this.nowDivInfo.left,width:this.nowDivInfo.width,height:this.nowDivInfo.height};1==this.operateDrag.y&&(r.top=this.nowDivInfo.top+i,r.height=this.nowDivInfo.height-i),-1==this.operateDrag.y&&(r.height=this.nowDivInfo.height+i),1==this.operateDrag.x&&(r.width=this.nowDivInfo.width+n),-1==this.operateDrag.x&&(r.left=this.nowDivInfo.left+n,r.width=this.nowDivInfo.width-n),o.style.top=r.top-10+"px",o.style.left=r.left-10+"px",o.style.width=r.width+20+"px",o.style.height=r.height+20+"px",this.opt&&this.opt.onScale(r,this.nowDivInfo),this.nowDivInfo=r,this.offsetSave.x=e.clientX,this.offsetSave.y=e.clientY},getCenterPos:function(e){var t=e.getBoundingClientRect(),o=t.left+t.width/2,n=t.top+t.height/2;return{x:o,y:n}},getTransform:function(e){var t,o,n,i={data:{}};if(t=$(e).data("translate"),o=$(e).data("rotate"),n=$(e).data("scale"),t&&(i.translate="translate("+t.x+","+t.y+")",i.otranslate="translate("+t.x+"px,"+t.y+"px)",i.data.translate=pe(t.x,t.y),this.nowCssInfo.translate=t),o){var r=e.getBBox();i.rotate="rotate("+o+","+(r.x+r.width/2)+" "+(r.y+r.height/2)+")",i.orotate="rotate("+o+"deg)",i.data.rotate=o}return n&&(i.scale="scale("+n.x+","+n.y+")",i.data.scale=n),i},destroy:function(){$(".nd-selector-box").remove(),this.opt&&this.opt.onHide()},destroy_new:function(){var e=this,t=document.querySelectorAll(".nd-selector-box").length;if(1==t){var o=$(".nd-selector-box").attr("style"),n=$(".nd-selector-box").attr("num");$(".nd-selector-box").remove(),$(".nd-selector-box2").removeClass("edit");var i=document.createElement("div");i.className="nd-selector-box2",i.style=o,i.setAttribute("num",n);var r=document.createElement("img");r.className="del",r.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA01pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ4OCwgMjAyMC8wNy8xMC0yMjowNjo1MyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIyLjAgKDIwMjAwODE4Lm0uMTAxMiAyMDIwLzA4LzE4OiBmODJmNDMzNzYxKSAgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjcyNDZDMENDOUMyMTExRUI5NTRCOTI4QUQ1MEM5OENBIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjcyNDZDMENEOUMyMTExRUI5NTRCOTI4QUQ1MEM5OENBIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NzI0NkMwQ0E5QzIxMTFFQjk1NEI5MjhBRDUwQzk4Q0EiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzI0NkMwQ0I5QzIxMTFFQjk1NEI5MjhBRDUwQzk4Q0EiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5xKH8WAAAB+0lEQVR42ryWzUoCURTHj7Nwo4Wr3ChkLWrtYoZI0AdQ8En8gNwErYQ2Blobg2jREyToAyQEkoueILNFG3MTqZs2dc50BmS8HzPl9Ic/DM659+fce869J/RlHoJGm+gDdJYdZ5Mm7D57AA/3H6rJQgpgGF1Cl9EJ8KZX9Dn6AsGfogBDMrBo/1uAhg8YcGzDHmtlil6BFfQtOg2/V9qew8pUdMA8ugnrUxOheRnQRHdh/eoi1HQDKUHaEJzaCA0vA0vSPdvfA9iI6qekGIqV72nJAcY49Ve1kwK4uQa4uvx5loneUQzFyuPK+JUxAuakqT+dAoxfAFLbAKd18WT0G72jGIqlMfKSyRl8eog1mwMcn8ihbhjF0hi5sgZnp1zPYzFUBKNYtUw62p7wYVebFG4AyR+MNCLgDB+inpJ7GUryByPNDfhnGXy9gO8l1WWvWBNvQFGCqLJXA+z7htGeybJXrb4aGImoU18EpTEa4IBv6lUlE/rUd0OTCVU3MHBajCO+qcVLOnkDWCzUi0VfFt9SlUgN244zBxjmL00HVA2PdiOGfY5Th9Tw1AMsv7rTVC0XfgddDQBWRVhH1tO00IU1wgoIa+m6th7a4nX/y55ZCOt57UuH3G3XpCUjT/0aJ8jQb+ftKMZdQZbvTlGrP+QD5A5B76rJvgUYAC/2yxdBsKw2AAAAAElFTkSuQmCC",r.setAttribute("title","删除"),i.appendChild(r),document.querySelector(".taglayer-nd").appendChild(i);var a=function(o){o.stopPropagation(),o.preventDefault(),"del"!=o.target.className&&($(o.target).hasClass("edit")||(t=document.querySelectorAll(".nd-selector-box").length,1==t&&e.destroy_new(),$(".nd-selector-box").remove(),$(".nd-selector-box2").removeClass("edit"),$(o.target).addClass("edit")))},c=we()?"touchstart":"mouseover",s=we()?"touchstart":"click";i.addEventListener(c,a),r.addEventListener(s,(function(t){e.opt.onDelDrawChild(),t.stopPropagation(),t.preventDefault()}))}$(".nd-selector-box").remove(),this.opt&&this.opt.onHide()}},xe=Se;const Te=function(e,t,o){this.parent=e,this.dom=null,this.container=t,this.disableText=!0,o&&(this.parentVue=o),this._moveTag=!1,this.offsetSave={},this.tagPos={},this.fontSize=12,this.init=function(){},this.init(),this.addHotpoint=function(e,t){this.parentVue.onShowstep1(),this.parentVue.hideTagTips();var o=document.createElement("div");o.className="ico-sign",this.container.appendChild(o);var n=he(t.cx,t.cy,t.cz);o.style.top=n.y+"px",o.style.left=n.x+"px",o.style.pointerEvents="none",this.tagDiv=o,this.tagPos={cx:t.cx,cy:t.cy,cz:t.cz}},this.drawHtml=function(){},this.modifyHot=function(e,t,o){this.moveHot(e),this.tagDiv&&(this.tagDiv.style.display="block")},this.moveHot=function(e){e&&this.tagDiv&&(this.tagDiv.style.left=e.x+"px",this.tagDiv.style.top=e.y+"px")},this.newText=function(e){this.disableText=!1},this.showText=function(e){e=e.replace(/<br\/>/g,"\n").replace(/ /g," ")},this.writeInfo=function(e){this.disableText=!0,this.tagPos.cx=e.cx,this.tagPos.cy=e.cy,this.tagPos.cz=e.cz;var t=he(e.cx,e.cy,e.cz),o=b(e.text);"undefined"===o&&(o=""),this.modifyHot(t,o,e.size)},this.getInfo=function(){return{pos:this.tagPos}},this.exit=function(){this.hotPot&&(this.hotPot.style.display="none"),this.tagDiv=null}};var Oe=Te,ye=function(e,t){var o=this;this.drawInfo=null,this.nowDrawingInfo={},this._tagIdx=0,t&&(this.parentVue=t),this._openDraw=!1,this.strokeColor="rgb(255,99,2)",this.strokeWidth=2,this.fontSize="12px",this.drawType="point",this.container=e,this.container.querySelector(".taglayer-nd")&&this.container.removeChild(this.container.querySelector(".taglayer-nd")),this.drawTagDiv=document.createElement("div"),this.drawTagDiv.className="taglayer-nd",this.drawTagDiv.setAttribute("onselectstart","return false"),this.container.appendChild(this.drawTagDiv),this.drawTagDiv.addEventListener("contextmenu",e=>(e.preventDefault(),e.stopPropagation(),!1));const n=document.createElement("div");n.id="tagTooltips",this.container.appendChild(n);const i=document.createElement("div");i.id="tagCancelButton",this.container.appendChild(i),i.addEventListener("click",()=>{this.parentVue.cancelSave(),n.style.left="-1000px"}),i.addEventListener("contextmenu",e=>(e.preventDefault(),e.stopPropagation(),!1)),i.addEventListener("mouseenter",()=>{n.style.display="none"}),i.addEventListener("mouseleave",()=>{n.style.display="block"});const r=document.createElement("div");r.id="tagSaveButton",this.container.appendChild(r),r.addEventListener("contextmenu",e=>(e.preventDefault(),e.stopPropagation(),!1)),r.addEventListener("mouseenter",()=>{n.style.display="none"}),r.addEventListener("mouseleave",()=>{n.style.display="block"}),this.container.addEventListener("mousemove",e=>{if("none"!=this.drawTagDiv.style.display){const t=document.getElementById("vueMain").offsetLeft,o=document.getElementById("vueMain").offsetTop;n.style.top=e.clientY-o+14+"px",n.style.left=e.clientX-t+17+"px"}}),i.style.display="none",r.style.display="none",n.style.display="none",this.drawTagDiv.style.display="none",this.selectSVG=-1,this.nowDiving=null,this.nowSvg=null,this.offsetSave={_start:!1,x:0,y:0},this._tagTextCtrl=new Oe(this,this.drawTagDiv,this.parentVue);var a=null;window.onresize=function(){a=a?null:setTimeout((function(){o.resizeTags(),a=null}),350)}};ye.prototype.localToPoint=function(e,t,o){if(ne){var n=ne._viewer.modelCoordToClientCoord([e,t,o]);return{x:n[0],y:n[1]}}return{x:0,y:0}},ye.prototype.pointToLocal=function(e,t){if(ne){var o=ne._viewer.clientCoordToModelCoord([e,t]);return{cx:o[0],cy:o[1],cz:o[2]}}return{cx:0,cy:0,cz:0}},ye.prototype.resizeTags=function(){if(this.drawInfo&&this.drawInfo.list&&"text"!=this.nowDrawingInfo){var e=document.querySelectorAll(".nd-selector-box").length;if(e>0&&this.drawSvg(),this.drawSvg_resize(),-1!=this.selectSVG){var t=$(this.drawTagDiv).find("path[idx="+this.selectSVG+"]"),o=$(this.drawTagDiv).find("div.area-box[idx="+this.selectSVG+"]");t.length&&(this.nowDiving=t),o.length&&(this.nowDiving=o),(t.length||o.length)&&e>0&&(this.nowDiving=this.nowDiving[0])}}},ye.prototype.changePos=function(){var e=this.nowDrawingInfo;if(e.transform&&e.transform.translate){var t=e.transform.translate;if(t=he(t.cx,t.cy,t.cz),"point"==e.type&&e.points.map((function(e){var o=he(e.cx,e.cy,e.cz);o.x+=t.x,o.y+=t.y,o=pe(o.x,o.y),e.cx=o.cx,e.cy=o.cy,e.cz=o.cz})),"arrow"==e.type||"line"==e.type||"circle"==e.type||"rect"==e.type){var o=he(e.cx,e.cy,e.cz);if(o.x+=t.x,o.y+=t.y,o=pe(o.x,o.y),e.cx=o.cx,e.cy=o.cy,e.cz=o.cz,e.cx2||e.cy2||e.cz2){var n=he(e.cx2,e.cy2,e.cz2);n.x+=t.x,n.y+=t.y,n=pe(n.x,n.y),e.cx2=n.cx,e.cy2=n.cy,e.cz2=n.cz}}if("text"==e.type){o=he(e.cx,e.cy,e.cz);o.x+=t.x,o.y+=t.y,o=pe(o.x,o.y),e.cx=o.cx,e.cy=o.cy,e.cz=o.cz}}this.drawSvg()},ye.prototype.changeScale=function(e,t){var o=this.nowDrawingInfo;if("point"==o.type&&o.points.map((function(o){var n=he(o.cx,o.cy,o.cz),i=(n.x-t.left)/t.width,r=(n.y-t.top)/t.height;n.x=e.width*i+e.left,n.y=e.height*r+e.top,n=pe(n.x,n.y),o.cx=n.cx,o.cy=n.cy,o.cz=n.cz})),"arrow"==o.type||"line"==o.type||"circle"==o.type||"rect"==o.type){var n=he(o.cx,o.cy,o.cz),i=(n.x-t.left)/t.width,r=(n.y-t.top)/t.height;if(n.x=e.width*i+e.left,n.y=e.height*r+e.top,n=pe(n.x,n.y),o.cx=n.cx,o.cy=n.cy,o.cz=n.cz,o.cx2||o.cy2||o.cz2){var a=he(o.cx2,o.cy2,o.cz2),c=(a.x-t.left)/t.width,s=(a.y-t.top)/t.height;a.x=e.width*c+e.left,a.y=e.height*s+e.top,a=this.pointToLocal(a.x,a.y),o.cx2=a.cx,o.cy2=a.cy,o.cz2=a.cz}}this.drawSvg()},ye.prototype.showSelectBox=function(){var e=this,t=this.nowDiving.getAttribute("idx");xe.new(this.nowDiving,{onChange:function(o){try{e.selectSVG=t,e.drawInfo.list[t].transform=o}catch(n){}},onChangeEnd:function(){e.changePos()},onSel:function(o){e.selectSVG=t},onHide:function(){},onScale:function(t,o){e.changeScale(t,o)},onDelDrawChild:function(){var t="",o=document.querySelector(".nd-selector-box"),n=document.querySelector(".nd-selector-box2.edit");if(o?(t=o.getAttribute("num"),o.remove()):n&&(t=n.getAttribute("num"),n.remove()),""!=t){var i=document.querySelector("svg g[num='"+t+"']");i&&i.remove(),e.drawInfo.list=e.drawInfo.list.filter(e=>{if(e.num!=t)return e})}}},this.parentVue)},ye.prototype.showTags=function(e){this._openDraw=!1,this.drawTagDiv.style.display="block",this.drawTagDiv.style.zIndex=6,this.getTagLayer(e)},ye.prototype.openDraw=function(e){this.drawInfo=null,this.drawTagDiv.style.display="block",this.drawTagDiv.style.zIndex=4,this.drawTagDiv.style.pointerEvents="auto",this._openDraw=!0,this._tagIdx=e,this.getTagLayer()},ye.prototype.closeDraw=function(){this._openDraw=!1,this.container.style.cursor="auto",document.body.removeEventListener("keydown",this.delete)},ye.prototype.delete=function(e){if(46==e.keyCode){var t=this.nowDiving.getAttribute("idx");this.drawInfo.list[t].del=!0;var o=this.nowDiving.parentElement||this.nowDiving.parentNode;o.remove(),xe.destroy()}},ye.prototype.setPen=function(e){this.drawType=e},ye.prototype.setLineWidth=function(e){this.strokeWidth=e},ye.prototype.setColor=function(e){this.strokeColor=e},ye.prototype.initPicTag=function(e){this.drawType="image",this.drawInfo=new Object,this.drawInfo.cx=e.cx,this.drawInfo.cy=e.cy,this.drawInfo.cz=e.cz,this.drawInfo.list=[],this._tagTextCtrl.addHotpoint(this._tagIdx,this.drawInfo)},ye.prototype.setPenStatus=function(e,t){if("color"==e&&(this.strokeColor=t),"size"==e&&(this.strokeWidth=t),"fontsize"==e&&(this.fontSize=t),"text"!=this.drawType){var o=this.nowDiving.parentElement||this.nowDiving.parentNode,n=o.getAttribute("type");if("text"!=n&&("color"==e&&o.setAttribute("stroke",this.strokeColor),"size"==e&&o.setAttribute("stroke-width",this.strokeWidth)),"arrow"==n&&"size"==e){var i={pos0:he(this.nowDrawingInfo.cx,this.nowDrawingInfo.cy,this.nowDrawingInfo.cz),pos1:he(this.nowDrawingInfo.cx2,this.nowDrawingInfo.cy2,this.nowDrawingInfo.cz2)},r=this.strokeWidth,a=ue(i.pos0,i.pos1,r);this.nowDiving.setAttribute("d",a)}}"color"==e&&(this.drawInfo.list[this.selectSVG].color=this.strokeColor),"size"==e&&(this.drawInfo.list[this.selectSVG].line=this.strokeWidth),"fontsize"==e&&(this.drawInfo.size=this.fontSize)},ye.prototype.initDrawInfo=function(e,t){var o=this;this.parentVue.tagNum_list++;var n={type:o.drawType,cx:e.cx,cy:e.cy,cz:e.cz,text:"",color:o.strokeColor,line:o.strokeWidth,size:o.fontSize,idx:o.drawInfo.list.length,new:!0,num:this.parentVue.tagNum_list},i=10;if("point"==o.drawType)n.points=[{cx:e.cx,cy:e.cy,cz:e.cz}];else if("arrow"==o.drawType||"line"==o.drawType){var r={x:t.x+i,y:t.y+i};r=this.pointToLocal(r.x,r.y),n.cx2=r.cx,n.cy2=r.cy,n.cz2=r.cz}else if("rect"==o.drawType||"circle"==o.drawType){var a=i;r={x:t.x+a,y:t.y+a};r=this.pointToLocal(r.x,r.y),n.cx2=r.cx,n.cy2=r.cy,n.cz2=r.cz}return n},ye.prototype.openDrawEvt=function(){var e=this,t=we()?["touchstart","touchmove","touchend","touchcancle"]:["mousedown","mousemove","mouseup","mouseleave"],o=this.drawTagDiv.querySelector(".svg");function n(o){if(o.stopPropagation(),o.preventDefault(),e._openDraw){var n=document.querySelector(".taglayer-nd");if(n&&n.className.indexOf("drawing")<0&&(n.className+=" drawing"),we()){var a=o.touches[0];o.offsetX=a.clientX-Number(e.container.style.marginLeft.replace("px",""))-e.container.offsetLeft,o.offsetY=a.clientY-Number(e.container.style.marginTop.replace("px",""))-e.container.offsetTop}var c=e.pointToLocal(o.offsetX,o.offsetY);e.offsetSave.x=o.offsetX,e.offsetSave.y=o.offsetY,e.drawInfo||(e.drawInfo=new Object,e.drawInfo.cx=c.cx,e.drawInfo.cy=c.cy,e.drawInfo.cz=c.cz,e.drawInfo.list=[]),"text"!=e.drawType?(e.drawTagDiv.addEventListener(t[1],i),e.drawTagDiv.addEventListener(t[2],r),e.drawTagDiv.addEventListener(t[3],r)):(e._tagTextCtrl.addHotpoint(e._tagIdx,e.drawInfo),e._openDraw=!1),e.drawInfo.list.push(e.initDrawInfo(c,e.offsetSave)),e.nowDrawingInfo=e.drawInfo.list[e.drawInfo.list.length-1],e.parentVue.onCheckSaveEable(),e.getTags(e.nowDrawingInfo)}}function i(t){if(t.stopPropagation(),t.preventDefault(),we()){var o=t.touches[0];t.offsetX=o.clientX-Number(e.container.style.marginLeft.replace("px",""))-e.container.offsetLeft,t.offsetY=o.clientY-Number(e.container.style.marginTop.replace("px",""))-e.container.offsetTop}var n=e.pointToLocal(t.offsetX,t.offsetY);switch(e.drawType){case"point":var i=e.nowDrawingInfo.points[e.nowDrawingInfo.points.length-1];if(i&&i.cx==n.cx&&i.cy==n.cy&&i.cz==n.cz)return;e.nowDrawingInfo.points.push({cx:n.cx,cy:n.cy,cz:n.cz});break;case"arrow":case"line":case"rect":case"circle":n.cx==e.nowDrawingInfo.cx&&n.cy==e.nowDrawingInfo.cy&&n.cz==e.nowDrawingInfo.cz||(e.nowDrawingInfo.cx2=n.cx,e.nowDrawingInfo.cy2=n.cy,e.nowDrawingInfo.cz2=n.cz);break}e.drawSvg()}function r(o){var n=document.querySelector(".taglayer-nd");n&&n.className.indexOf("drawing")>=0&&(n.className=n.className.replace("drawing",""));for(var a=document.querySelectorAll(".nd-selector-box2"),c=0;c<a.length;c++){var s=a[c];s&&s.className.indexOf("edit")>=0&&(s.className=s.className.replace("edit",""))}if("point"==e.drawType&&1==e.nowDrawingInfo.points.length){var l=e.pointToLocal(e.offsetSave.x+1,e.offsetSave.y+1);e.nowDrawingInfo.points.push({cx:l.cx,cy:l.cy,cz:l.cz}),e.drawSvg()}if(e._openDraw&&"text"!==e.drawType&&"pic"!==e.drawType){xe.destroy_new();var d=e.parentVue.tagNum_list;e.parentVue.svgNum_list.push(d)}e.drawTagDiv.removeEventListener(t[1],i),e.drawTagDiv.removeEventListener(t[2],r),e.drawTagDiv.removeEventListener(t[3],r),o.stopPropagation(),o.preventDefault()}o.addEventListener(t[0],n,!1)},ye.prototype.getTagLayer=function(e){this.tagDiv&&(this.drawTagDiv.innerHTML="",this.tagDiv=null);var t="http://www.w3.org/2000/svg";this.tagDiv=document.createElement("div"),this.tagDiv.className="svg",this.nowSvg=document.createElementNS(t,"svg"),this.nowSvg.style.width="100%",this.nowSvg.style.height="100%",this.drawTagDiv.appendChild(this.tagDiv),this.tagDiv.appendChild(this.nowSvg);var o=this;e&&e.list&&e.list.length&&(e.list.forEach((function(e,t){e.num||(e.num=t+1),o.getTags(e)})),this.drawInfo=e,this.nowDrawingInfo=e.list[0]),this._openDraw?this.openDrawEvt():(this.drawTagDiv.style.pointerEvents="none","ImageAnno"!=e.state.origiType&&this._tagTextCtrl.writeInfo(e))},ye.prototype.getTags_old=function(e){switch(e.type){case"text":e.new&&(this._tagTextCtrl.newText(this.drawInfo),this.closeDraw(),e.new=!1);break;default:this.nowDiving=this.newDiv(e.type,e),this.nowDiving.setAttribute("d",this.getSVGpath(e))}e&&!e.new&&"text"!=e.type&&this.setTransform(this.nowDiving,e)},ye.prototype.getTags=function(e){this.nowDiving=this.newDiv(e.type,e),this.nowDiving.setAttribute("d",this.getSVGpath(e)),"arrow"==e.type&&this.nowDiving.setAttribute("fill",e.color),e&&!e.new&&this.setTransform(this.nowDiving,e)},ye.prototype.drawSvg=function(){this.nowDiving&&(this.nowDiving.setAttribute("d",this.getSVGpath(this.nowDrawingInfo)),this.setTransform(this.nowDiving,this.nowDrawingInfo))},ye.prototype.drawSvg_resize=function(){if(this.drawInfo.list&&this.drawInfo.list.length>0)for(var e=0;e<this.drawInfo.list.length;e++){var t=this.drawInfo.list[e];if(t.num&&Number(t.num>0)){var o=document.querySelector("svg g[num='"+t.num+"'] path");if(o){o.setAttribute("d",this.getSVGpath(t)),this.setTransform(o,t);var n=document.querySelector(".nd-selector-box2[num='"+t.num+"']");if(n){var i=o.parentElement||o.parentNode;xe.setDivPos(i,n)}}}}},ye.prototype.newDiv=function(e,t){var o=t.color||this.strokeColor,n=t.line||this.strokeWidth,i=document.createElementNS("http://www.w3.org/2000/svg","g");i.setAttribute("stroke",o),i.setAttribute("stroke-width",n),i.setAttribute("type",e),i.setAttribute("num",t.num),i.style.pointerEvents="none",i.setAttribute("fill","none");var r=document.createElementNS("http://www.w3.org/2000/svg","path");return i.appendChild(r),t.new&&(r.setAttribute("idx",t.idx),t.new=!1),this.nowSvg.appendChild(i),r},ye.prototype.getSVGpath=function(e){var t="";switch(e.type){case"point":e.points&&e.points.forEach((function(e,o){var n=he(e.cx,e.cy,e.cz);t+=0==o?"M "+n.x+" "+n.y+" ":"L "+n.x+" "+n.y+" "}));break;case"arrow":var o=he(e.cx,e.cy,e.cz),n=e.line||this.strokeWidth,i=he(e.cx2,e.cy2,e.cz2);t=ue(o,i,n);break;case"line":o=he(e.cx,e.cy,e.cz),i=he(e.cx2,e.cy2,e.cz2);t="M "+o.x+" "+o.y+" L "+i.x+" "+i.y+" ";break;case"rect":o=he(e.cx,e.cy,e.cz),i=he(e.cx2,e.cy2,e.cz2);t="M "+o.x+" "+o.y+" L "+i.x+" "+o.y+" L "+i.x+" "+i.y+" L"+o.x+" "+i.y+"z";break;case"circle":o=he(e.cx,e.cy,e.cz),i=he(e.cx2,e.cy2,e.cz2);t=me(o,i);break}return t},ye.prototype.setTransform=function(e,t){if(e=e.parentElement||e.parentNode,t.transform){var o="";if(t.transform.rotate){var n=e.getBBox();o="rotate("+t.transform.rotate+","+(n.x+n.width/2)+" "+(n.y+n.height/2)+")",$(e).data("rotate",t.transform.rotate)}t.transform.translate&&(t.transform.translate="",$(e).data("translate","")),$(e).attr("transform",o)}},ye.prototype.destroy=function(){this._openDraw=!1,this.drawTagDiv.style.display="none",this.drawTagDiv.style.zIndex=0,this.drawType="point",this.drawTagDiv.innerHTML="",this.tagDiv=null,this._tagTextCtrl.exit()},ye.prototype.isTextTag=function(){return!!(this.drawInfo.list&&this.drawInfo.list.length>0&&"text"==this.drawInfo.list[0].type)},ye.prototype.getTextDrawInfo=function(){var e=this._tagTextCtrl.getInfo();this.drawInfo.cx=e.pos.cx,this.drawInfo.cy=e.pos.cy,this.drawInfo.cz=e.pos.cz;var t=he(this.drawInfo.cx,this.drawInfo.cy,this.drawInfo.cz),o=document.querySelector("#annoText").value,n=o;return this._tagTextCtrl.modifyHot(t,n),this.drawInfo.text=n,this.drawInfo},ye.prototype.getInfo=function(){if(this.parentVue.picTagUrl){o=$("#annoText").val();this.drawInfo.text=o}else{var e=this._tagTextCtrl.getInfo();this.drawInfo.cx=e.pos.cx,this.drawInfo.cy=e.pos.cy,this.drawInfo.cz=e.pos.cz;var t=he(this.drawInfo.cx,this.drawInfo.cy,this.drawInfo.cz),o=$("#annoText").val(),n=o.replace(/\n/g,"<br/>").replace(/\s/g," ");this._tagTextCtrl.modifyHot(t,n,this._tagTextCtrl.fontSize),this.drawInfo.text=encodeURIComponent(n)}return this.drawInfo},ye.prototype.revoke=function(){var e=this.drawInfo.list.length;if(e>1){var t=e-1;this.drawInfo.list.splice(t,1)}var o=this.parentVue.svgNum_list.length,n=this.parentVue.svgNum_list[o-1];$(`.taglayer-nd .svg svg g[num='${n}']`).remove();var i=o-1;this.parentVue.svgNum_list.splice(i,1),this.parentVue.onCheckSaveEable()},ye.prototype.clear=function(){$(".taglayer-nd .svg svg g").remove(),this.drawInfo.list=[this.drawInfo.list[0]],this.parentVue.svgNum_list=[],this.parentVue.onCheckSaveEable()},ye.prototype.destroy=function(){this._openDraw=!1,this.drawTagDiv.style.display="none",this.drawTagDiv.style.zIndex=0,this.drawType="text",this.drawTagDiv.innerHTML="",this.tagDiv=null,this._tagTextCtrl.exit()};var Me=ye;const je=function(e,t){const o=ne.getViewerIntance();e||(e=[]),e.forEach((e,n)=>{if(e.state){var i=n+1;t.forEach((t,o)=>{e.state.uuid==t.state.uuid&&(i=o+1)}),e.state.index=i}o.addAnnotation(e)}),De()},De=function(){const e=ne.getViewerIntance();var t=e.isSectionViewEnabled();const o=te.state.menuStore.menuChoose,n=te.state.menuStore.menuChoose2;(t||["meter","tag"].includes(o)||["meterDistance","meterLength","meterAngle"].includes(n))&&setTimeout(()=>{e.setAnnotationsVisibility(0)},200)},Ee=function(e){let t=[],o=te.state.modelStore.nowConfigName;return t=e.filter(e=>!e.modelName||e.modelName==o),t};var ke={};const Ie={tagInfo:{},saveAllType:{},getTreeData:!1,isTagStatus:!1,operTagOpenId:"",willTagOpenId:"",lastFreeOper:!1,windowWhite:[],lastTagselectId:"",sendAllMsg(){this.sendCenter(1),this.sendCenter(2),this.sendCenter(3),this.sendCenter(4),this.sendCenter(5),this.sendCenter(6),this.sendCenter(7),this.sendCenter(8)},receiveAllMsg(e,t,o){let n=e||this.saveAllType||{},i=t||[];try{n=JSON.parse(n)}catch(r){n=n||{}}if(this.saveAllType=n,"fromWindow"==o&&(this.windowWhite=i),n.hasOwnProperty("8")&&!i.includes(8)&&n["8"])this.receiveCenter(n["8"]);else{i=[...i,...this.windowWhite];for(let e in n)!i.includes(1*e)&&n[""+e]&&this.receiveCenter(n[""+e])}},receiveCenter(e){const t=JSON.parse(e);(this.judgeCanReceive()||6==t.type)&&t&&(this.saveAllType[t.type]=e,1==t.type?(ne._viewer.setBroadcastInfo(t.data),Ga.$tag.ctrlDraw.resizeTags()):2==t.type?this.setButtomStatus(t):3==t.type?this.setCardStatus(t):4==t.type?this.setValueStatus(t):5==t.type?this.setTreeStatus(t):6==t.type?this.setTagStatus(t):7==t.type?this.setPositionStatus(t):8==t.type&&this.setMultiStatus(t))},sendCenter(e,t){let o=this;"sync"==nd_viewCtrl.viewMode&&(nd_viewCtrl&&!nd_viewCtrl.rtmSDK.isRtmOperate||(1==e?o.sendDirect(e,o.getBroadcast()):2==e?o.sendDirect(e,o.getButtomStatus()):3==e?o.sendDirect(e,o.getCardStatus()):4==e?o.sendDirect(e,o.getValueStatus()):5==e?o.sendDirect(e,o.getTreeStatus()):6==e?o.sendDirect(e,o.getTagStatus(t)):7==e?o.sendDirect(e,o.getPositionStatus()):8==e&&o.sendDirect(e,o.getMultiStatus())))},sendDirect(e,t){const o={type:e,data:t,terminal:"PC"};nd_viewCtrl&&nd_viewCtrl.rtmSDK&&nd_viewCtrl.rtmSDK.rtmSendMsg(o)},getBroadcast(){let e=ne._viewer.getBroadcastInfo();return e},getButtomStatus(){return{showOneMenu:te.state.menuStore.showOneMenu,menuChoose:te.state.menuStore.menuChoose,menuChoose2:te.state.menuStore.menuChoose2,menuChoose3:te.state.menuStore.menuChoose3,showAllMenu:te.state.menuStore.showAllMenu,distanceMeterIndx:Ga.$distanceBtn.meterStartIdx,meterMeterType:Ga.$meterBtn.nowMeterType}},setButtomStatus(e){te.commit("menuStore/setShowAllMenu",e.data.showAllMenu),te.commit("menuStore/setShowOneMenu",e.data.showOneMenu),te.commit("menuStore/setMenuChoose",e.data.menuChoose),te.commit("menuStore/setMenuChoose2",e.data.menuChoose2),te.commit("menuStore/setMenuChoose3",e.data.menuChoose3),Ga.$distanceBtn.meterStartIdx=e.data.distanceMeterIndx,Ga.$meterBtn.nowMeterType=e.data.meterMeterType},getCardStatus(){return{structMenu:te.state.menuStore.structMenu,unitMenu:te.state.menuStore.unitMenu,showManyConfig:te.state.menuStore.showManyConfig,showConfigContent:Ga.$configSwitch.showCfgContent,scaleDialog:te.state.modelStore.scaleDialog}},setCardStatus(e){te.commit("menuStore/setStructMenu",e.data.structMenu),te.commit("menuStore/setUnitMenu",e.data.unitMenu),te.commit("menuStore/setShowManyConfig",e.data.showManyConfig),te.commit("modelStore/setScaleDialog",e.data.scaleDialog),Ga.$configSwitch.showCfgContent=e.data.showConfigContent},getValueStatus(){return{measureScale:te.state.modelStore.measureScale,bgSetList:te.state.modelStore.bgSetList,colorIdx:te.state.modelStore.colorIdx,unit:te.state.modelStore.unit,scale:Ga.$scaleBtn.scale}},setValueStatus(e){te.commit("modelStore/setUnitType",e.data.unit),te.commit("modelStore/setInitBgSetList",e.data.bgSetList),te.commit("modelStore/setShareBg",e.data.colorIdx),te.commit("modelStore/setInitMeasureScale",e.data.measureScale),Ga.$scaleBtn.scale=e.data.scale},getTreeStatus(){let e=Ga.$structureTree.modelTreeData,t=["children","isChecked","isHighlight","uuid","isOpenChild","name"];return e=JSON.stringify(e,t),{treeData:G(e)}},setTreeStatus(e){let t=JSON.parse(W(e.data.treeData));Ga.$structureTree.coverTreeData(t),t&&"{}"!=JSON.stringify(t)?this.getTreeData=!0:this.getTreeData=!1},getTagStatus(e){let t=e&&e.openTagId;return!e&&Ga.$tag.tcChecktag&&(t=Ga.$tag.curUuid),{tagShow:te.state.tagStore.tagShow,openTagId:t,closeTag:e&&e.closeTag,tcChecktag:Ga.$tag.tcChecktag,tcCheckTI:Ga.$tag.tcCheckTI,tcCheckBig:e?e.tcCheckBig:void 0}},setTagStatus(e){Ga.$tag.curUuid;let t=te.state.modelStore.allTag;if(te.commit("tagStore/setTagshow",e.data.tagShow),!nd_viewCtrl.rtmSDK.isRtmFreeOper||nd_viewCtrl.rtmSDK.isRtmOperate)if(this.willTagOpenId="",this.isTagStatus)this.operTagOpenId=e.data.openTagId||"";else if(e.data.openTagId){if(!K(t,e.data.openTagId))return void(this.willTagOpenId=e.data.openTagId||"");function o(){void 0!=e.data.tcCheckBig&&(Ga.$tag.tcCheckBig=e.data.tcCheckBig,e.data.tcCheckBig&&Ga.$tag.$refs.bigImg.resetStyle())}this.lastTagselectId==e.data.openTagId&&this.lastTagselectId==Ga.$tag.curUuid&&Ga.$tag.tcChecktag?o():(ke.set1&&clearTimeout(ke.set1),ke.set2&&clearTimeout(ke.set2),ke.set1=setTimeout(()=>{this.lastTagselectId=e.data.openTagId,ne.selectAnnotation(e.data.openTagId),ke.set2=setTimeout(()=>{o()},800)},200))}else Ga.$tag.tcChecktag=e.data.tcChecktag,Ga.$tag.tcCheckTI=e.data.tcCheckTI,e.data.closeTag&&Ga.$eventBus.emit("closeTagSeeSub"),Ga.$tag.tcChecktag||$(".taglayer-nd").css("display","none");else this.lastFreeOper||(this.operTagOpenId=e.data.openTagId||"")},renderInitTag(e,t,o){ne._viewer.removeAllAnnotations(),je(e,t,!0),Ga.$tag.tcChecktag&&setTimeout(()=>{ne._viewer.setAnnotationsVisibility(0),ne._viewer.setAnnotationsVisibilityByUuid(1,o)},200)},getPositionStatus(){return{structScrollTop:Ga.$structureTree.scrollTop,structWidth:Ga.$structureTree.structWidth,structHeight:Ga.$structureTree.structHeight}},setPositionStatus(e){Ga.$structureTree.setTreeScroll(e.data.structScrollTop),Ga.$structureTree.setTreeSize(e.data)},getMultiStatus(){return{cfgIdx:Ga.$configSwitch.cfgIdx,modelPath:te.state.modelStore.modelPath,modelSetInfo:te.state.modelStore.modelSetInfo}},setMultiStatus(e){const t=this,o=Ga.$configSwitch.cfgIdx;o!=e.data.cfgIdx?Ga.$configSwitch.chooseCfg(e.data.cfgIdx,!0):t.receiveAllMsg(t.saveAllType,[8])},operateChange(e){if(e){if(nd_viewCtrl.rtmSDK.isRtmOperate)return;nd_viewCtrl.rtmSDK.isRtmOperate=!0,ne._viewer.startBroadcast(!0),te.commit("setRtmNeedCover",!1),this.sendAllMsg()}else{if(!nd_viewCtrl.rtmSDK.isRtmOperate)return;nd_viewCtrl.rtmSDK.isRtmOperate=!1,ne._viewer.exitBroadcast(),te.commit("setRtmNeedCover",!1)}},freeOperChange(e){nd_viewCtrl.rtmSDK.isRtmOperate||(nd_viewCtrl.rtmSDK.isRtmFreeOper=e,e?(ne._viewer.exitBroadcast(),te.commit("setRtmNeedCover",!1)):(ne._viewer.startBroadcast(!1),te.commit("setRtmNeedCover",!0),window.nd_rtmReceiveAllMsg(),(Ga.$tag.tcStep0||Ga.$tag.tcStep1)&&Ga.$tag.cancelSave()))},startTagChange(){if("sync"!=nd_viewCtrl.viewMode)return!1;nd_viewCtrl.rtmSDK.isRtmOperate||(nd_viewCtrl.rtmSDK.lastFreeOper=nd_viewCtrl.rtmSDK.isRtmFreeOper,nd_viewCtrl.rtmSDK.isRtmFreeOper=!0,ne._viewer.exitBroadcast(),te.commit("setRtmNeedCover",!1),this.isTagStatus=!0)},endTagChange(){if("sync"!=nd_viewCtrl.viewMode)return!1;nd_viewCtrl.rtmSDK.isRtmOperate||this.isTagStatus&&(nd_viewCtrl.rtmSDK.lastFreeOper||(nd_viewCtrl.rtmSDK.isRtmFreeOper=!1,ne._viewer.startBroadcast(!1),te.commit("setRtmNeedCover",!0),window.nd_rtmReceiveAllMsg([6])),nd_viewCtrl.rtmSDK.isRtmFreeOper||nd_viewCtrl.rtmSDK.isRtmOperate||this.operTagOpenId&&setTimeout(()=>{ne.selectAnnotation(this.operTagOpenId)},200),this.isTagStatus=!1)},closeTagChange(e){try{let t=Ga.$tag.curUuid,o=!1;Ga.$tag.tcChecktag&&(e.map(e=>{e.state.uuid==t&&(o=!0)}),o?setTimeout(()=>{ne._viewer.setAnnotationsVisibility(0),ne._viewer.setAnnotationsVisibilityByUuid(1,t)},100):Ga.$tag.exitChecktag("click")),this.willTagOpenId&&K(e,this.willTagOpenId)&&(setTimeout(()=>{ne.selectAnnotation(this.willTagOpenId)},300),this.willTagOpenId="")}catch(t){}},judgeCanReceive(){return"sync"==nd_viewCtrl.viewMode&&(!(!nd_viewCtrl||!nd_viewCtrl.rtmSDK)&&(!nd_viewCtrl.rtmSDK.isRtmOperate&&!nd_viewCtrl.rtmSDK.isRtmFreeOper))},judgeCanWatch(){return"sync"!=nd_viewCtrl.viewMode||(!!nd_viewCtrl.rtmSDK.isRtmOperate||!!nd_viewCtrl.rtmSDK.isRtmFreeOper)}};var Ae=Ie;Object(n["pushScopeId"])("data-v-05685948");const Be={id:"v_message"},Ne=Object(n["createElementVNode"])("div",{class:"shadow",style:{"z-index":"99"}},null,-1),_e={class:"del-attr-tc tc-box",style:{"z-index":"100"}},Le={class:"ts-tcCnt"},Ve={class:"txt"},ze={class:"clearfix ts-tcBtn ts-tcBtn02"};function Pe(e,t,o,i,r,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",Be,[Ne,Object(n["createElementVNode"])("div",_e,[Object(n["createElementVNode"])("div",Le,[Object(n["createElementVNode"])("p",Ve,Object(n["toDisplayString"])(e.$store.state.msgTxt),1)]),Object(n["createElementVNode"])("div",ze,[Object(n["createElementVNode"])("a",{onClick:t[0]||(t[0]=e=>i.cancleFunc())},Object(n["toDisplayString"])(e.$t("cancel")),1),Object(n["createElementVNode"])("a",{onClick:t[1]||(t[1]=e=>i.sureFunc())},Object(n["toDisplayString"])(e.$t("sure")),1)])])])}Object(n["popScopeId"])();var Fe={name:"MsgTips",setup(){const e=Object(n["reactive"])({}),t=Object(n["toRefs"])(e),o=Object(c["useStore"])();function i(){o.commit("hideMsgTip")}function r(){o.commit("hideMsgTip"),o.state.msgFunc&&o.state.msgFunc()}return{...t,cancleFunc:i,sureFunc:r}}},Re=(o("58d1f"),o("6b0d")),$e=o.n(Re);const Ue=$e()(Fe,[["render",Pe],["__scopeId","data-v-05685948"]]);var He=Ue;Object(n["pushScopeId"])("data-v-8c8ccdd2");const We={class:"tip mytip3"};function Ge(e,t,o,i,r,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",null,[Object(n["withDirectives"])(Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["tip mytip",{b4:e.useClass2}])},[Object(n["createElementVNode"])("p",null,Object(n["toDisplayString"])(e.msg),1)],2),[[n["vShow"],e.isShowTipMsg]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",We,[Object(n["createElementVNode"])("p",null,Object(n["toDisplayString"])(e.msg),1)],512),[[n["vShow"],e.isShowTipMsg3]])])}Object(n["popScopeId"])();var Ke={name:"Tips",setup(){const e=Object(n["reactive"])({msg:"",isShowTipMsg:!1,isShowTipMsg3:!1,useClass2:!1}),t=Object(n["toRefs"])(e),{proxy:o}=Object(n["getCurrentInstance"])(),i=(t,o)=>{e.msg=t,e.isShowTipMsg=!0,o&&(e.useClass2=!0),setTimeout(()=>{e.isShowTipMsg=!1,e.useClass2=!1},2e3)},r=t=>{e.msg=t,e.isShowTipMsg3=!0,setTimeout(()=>{e.isShowTipMsg3=!1},2e3)};return Object(n["onMounted"])(()=>{o.$eventBus.on("MsgTipEvent",i),o.$eventBus.on("MsgTipEvent2",(function(e){i(e,!0)})),o.$eventBus.on("MsgTipEvent3",r),o.$eventBus.on("MsgTipEvent4",t=>{e.msg=t,e.isShowTipMsg=!0})}),{...t}}};o("48c0");const Ze=$e()(Ke,[["render",Ge],["__scopeId","data-v-8c8ccdd2"]]);var Ye=Ze;Object(n["pushScopeId"])("data-v-7b2e8449");const qe=Object(n["createStaticVNode"])('<div class="waiter" data-v-7b2e8449><div class="bounce1" data-v-7b2e8449></div><div class="bounce2" data-v-7b2e8449></div><div class="bounce3" data-v-7b2e8449></div></div><div class="cover" data-v-7b2e8449></div>',2),Je=[qe];function Qe(e,t,o,i,r,a){return Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("div",null,Je,512)),[[n["vShow"],e.$store.state.showLoading]])}Object(n["popScopeId"])();var Xe={setup(){}};o("2ea3");const et=$e()(Xe,[["render",Qe],["__scopeId","data-v-7b2e8449"]]);var tt=et;function ot(e,t,o,i,r,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:"coor-cover",onMouseenter:t[0]||(t[0]=(...e)=>i.mourseBigMenu&&i.mourseBigMenu(...e)),onMouseleave:t[1]||(t[1]=(...e)=>i.mourseBigMenuLeave&&i.mourseBigMenuLeave(...e))},null,32)}var nt={name:"",setup(){const e=Object(n["reactive"])({}),{proxy:t}=(Object(c["useStore"])(),Object(n["getCurrentInstance"])());Object(n["onBeforeMount"])(()=>{}),Object(n["onMounted"])(()=>{});const o=()=>{const e=document.querySelector(".pc-alert");e&&(e.style.display="none"),$(".ActiveCoordinate").hide()},i=()=>{const e=document.querySelector(".pc-alert");$(".ActiveCoordinate,.pc-alert").show(),e&&e.innerText&&e.innerText.trim().length>0?e.style.display="block":e&&(e.style.display="none")},r=Object(n["toRefs"])(e);return{...r,mourseBigMenu:o,mourseBigMenuLeave:i}}};o("04f4");const it=$e()(nt,[["render",ot],["__scopeId","data-v-027020cc"]]);var rt=it;Object(n["pushScopeId"])("data-v-4097be1e");const at={class:"ndp2-btn-ul",id:"bottomMainMenu"},ct=["selected"],st=["track-name"],lt=["selected"],dt={key:4,id:"ico-lineWeight","track-name":"setLineWeight",class:"no-select"},ut=["selected"],mt={key:5,id:"ico-textFind","track-name":"textFind"},gt=["selected"],ht={key:6,id:"ico-color","track-name":"bgColor"},pt=["selected"],vt={key:7,id:"ico-unit","track-name":"unitChange"},wt=["selected"],ft={key:8,id:"ico-zoomwindow","track-name":"zoomwindow"},bt=["selected"],Ct={key:9,id:"ico-home","track-name":"resetEye"},St={key:10,id:"ico-full","track-name":"ico-full",class:"no-select"},xt=["selected"],Tt=Object(n["createElementVNode"])("div",{class:"hd_title header"}," ",-1),Ot={class:"ndp2-win-frame beijingse close",style:{"z-index":"999"}},yt={class:"win-content beijingse-lavel"},Mt={class:"ndp2-beijingse-box"},jt=Object(n["createElementVNode"])("span",{class:"black"},null,-1);function Dt(e,t,o,i,r,a){const c=Object(n["resolveComponent"])("meter-btn"),s=Object(n["resolveComponent"])("distance-btn"),l=Object(n["resolveComponent"])("scale-btn"),d=Object(n["resolveComponent"])("card"),u=Object(n["resolveComponent"])("tag-write"),m=Object(n["resolveDirective"])("img-switch"),g=Object(n["resolveDirective"])("click-track"),h=Object(n["resolveDirective"])("tooltip");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:Object(n["normalizeClass"])([{hhiden:e.isLoading},"bottomWrap"]),onMouseenter:t[7]||(t[7]=(...e)=>i.mourseBigMenu&&i.mourseBigMenu(...e)),onMouseleave:t[8]||(t[8]=(...e)=>i.mourseBigMenuLeave&&i.mourseBigMenuLeave(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("div",{class:"ndp2-my-page bot-btn-card",onContextmenu:t[3]||(t[3]=Object(n["withModifiers"])(()=>{},["right","stop","prevent"]))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("ul",at,[i.checkBtnExit("#ico-Tagging")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{key:0,id:"ico-Tagging","track-name":"tagNote",onMouseenter:t[0]||(t[0]=(...e)=>i.mourseMenu&&i.mourseMenu(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",null,null,512),[[m,["view-tool-comment","ico-Tagging"]]])],544)),[[g,i.chooseToTag],[h,e.$t("tagNote")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-measure")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{key:1,id:"ico-measure","track-name":"meter",onMouseenter:t[1]||(t[1]=(...e)=>i.mourseMenu&&i.mourseMenu(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",null,null,512),[[m,["view-tool-measure","ico-measure"]]])],544)),[[g,i.chooseToMeter],[h,e.$t("meter")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-structure")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{key:2,id:"ico-structure","track-name":"structureTree",onMouseenter:t[2]||(t[2]=(...e)=>i.mourseMenu&&i.mourseMenu(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:"struct"==i.menuStore.menuChoose},null,8,ct),[[m,["view-tool-layer","ico-structure"]]])],544)),[[g,i.chooseToStructureTree],[h,e.$t("chooseLayer")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-show")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{key:3,id:"ico-show","track-name":i.store.state.tagStore.tagShow?"hideNote":"showNote",class:"no-select"},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:!i.store.state.tagStore.tagShow},null,8,lt),[[m,["ico-set-hideMark","ico-show"]]])],8,st)),[[g,i.hideTags],[h,e.$t(i.store.state.tagStore.tagShow?"hideNote":"showNote")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-lineWeight")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",dt,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:i.modelStore.suportLineWeight},null,8,ut),[[m,["view-tool-lineWeight","ico-lineWeight"]]])],512)),[[g,i.setLineWeight],[h,i.modelStore.suportLineWeight?e.$t("pcMtxtLineWeight2"):e.$t("pcMtxtLineWeight")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-textFind")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",mt,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:"textFind"==i.store.state.menuStore.menuChoose},null,8,gt),[[m,["view-tool-textFind","ico-textFind"]]])],512)),[[g,i.chooseToTextFind],[h,e.$t("pcMtxtTextFind")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-color")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",ht,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:"bgColor"==i.store.state.menuStore.menuChoose},null,8,pt),[[m,["view-tool-bgcolor","ico-color"]]])],512)),[[g,i.chooseToBgColor],[h,e.$t("pcMtxtBgColor")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-unit")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",vt,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:"unitChange"==i.menuStore.menuChoose},null,8,wt),[[m,["view-tool-unit","unit-change"]]])],512)),[[g,i.chooseUnitChange],[h,e.$t("pcUnitIcon")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-zoomwindow")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",ft,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:"zoomwindow"==i.menuStore.menuChoose},null,8,bt),[[m,["view-tool-scale","ico-zoomwindow"]]])],512)),[[g,i.chooseZoomwindow],[h,e.$t("pcMtxtZoom")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-home")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",Ct,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",null,null,512),[[m,["view-tool-reset","ico-home"]]])],512)),[[g,i.reset],[h,e.$t("pcMtxtHomeView")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-full")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",St,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:i.store.state.isFull},null,8,xt),[[m,["all-screen","ico-full"]]])],512)),[[g,i.chooseFullScreen],[h,i.store.state.isFull?e.$t("pcMtxtFullexit"):e.$t("pcMtxtFull")]]):Object(n["createCommentVNode"])("",!0)],512),[[n["vShow"],i.store.state.menuStore.showOneMenu]]),Object(n["withDirectives"])(Object(n["createVNode"])(c,null,null,512),[[n["vShow"],"meter"==i.store.state.menuStore.menuChoose]]),Object(n["withDirectives"])(Object(n["createVNode"])(s,null,null,512),[[n["vShow"],"meterDistance"==i.store.state.menuStore.menuChoose2]])],544),[[n["vShow"],i.store.state.menuStore.showAllMenu]]),(Object(n["openBlock"])(),Object(n["createBlock"])(n["Teleport"],{to:e.teleportTo},[Object(n["withDirectives"])(Object(n["createVNode"])(l,{onMouseenter:i.mourseBigMenu,onMouseleave:i.mourseBigMenuLeave},null,8,["onMouseenter","onMouseleave"]),[[n["vShow"],i.modelStore.scaleDialog]]),Object(n["withDirectives"])(Object(n["createVNode"])(d,{class:"ndp2-bgColor-card",onClose:i.closeBgColor,onContextmenu:Object(n["withModifiers"])(i.rightEvent,["right","stop","prevent"])},{header:Object(n["withCtx"])(()=>[Tt]),default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",Ot,[Object(n["createElementVNode"])("div",yt,[Object(n["createElementVNode"])("div",Mt,[Object(n["createElementVNode"])("ul",null,[Object(n["createElementVNode"])("li",{class:Object(n["normalizeClass"])({select:1==i.modelStore.colorIdx||"num:0"==i.modelStore.colorIdx}),onClick:t[4]||(t[4]=e=>i.setBgColor(1))},[jt,Object(n["createElementVNode"])("p",null,Object(n["toDisplayString"])(e.$t("colorBlack")),1)],2),Object(n["createElementVNode"])("li",{class:Object(n["normalizeClass"])({select:3==i.modelStore.colorIdx||"num:15921906"==i.modelStore.colorIdx})},[Object(n["createElementVNode"])("span",{class:"grey",onClick:t[5]||(t[5]=e=>i.setBgColor(3))}),Object(n["createElementVNode"])("p",null,Object(n["toDisplayString"])(e.$t("colorGrey")),1)],2),Object(n["createElementVNode"])("li",{class:Object(n["normalizeClass"])({select:2==i.modelStore.colorIdx||"num:16776693"==i.modelStore.colorIdx})},[Object(n["createElementVNode"])("span",{class:"beige",onClick:t[6]||(t[6]=e=>i.setBgColor(2))}),Object(n["createElementVNode"])("p",null,Object(n["toDisplayString"])(e.$t("colorBeige")),1)],2)])])])])]),_:1},8,["onClose","onContextmenu"]),[[n["vShow"],"bgColor"==i.store.state.menuStore.menuChoose]]),Object(n["createVNode"])(u,{onTagClick:i.writeTag},null,8,["onTagClick"])],8,["to"]))],34)}Object(n["popScopeId"])();var Et=o("61bc"),kt=o.n(Et);Object(n["pushScopeId"])("data-v-009882c6");const It={class:"ndp2-btn-ul",id:"ico-measure-list"},At={class:"return-menu"},Bt=Object(n["createElementVNode"])("img",{src:kt.a},null,-1),Nt=[Bt],_t=["selected"],Lt=["selected"],Vt=["selected"],zt=["selected"],Pt=["selected"],Ft=["selected"],Rt=["selected"];function $t(e,t,o,i,r,a){const c=Object(n["resolveDirective"])("click-track"),s=Object(n["resolveDirective"])("img-switch"),l=Object(n["resolveDirective"])("tooltip");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",null,[Object(n["createElementVNode"])("ul",It,[Object(n["withDirectives"])(Object(n["createElementVNode"])("li",At,Nt,512),[[c,i.returnOneMenu]]),i.checkBtnExit("#ico-coordinate")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{key:0,id:"ico-coordinate","track-name":"coordinate",onMouseenter:t[0]||(t[0]=(...e)=>i.mouseEnter&&i.mouseEnter(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:"coordinate"==e.nowMeterType},null,8,_t),[[s,["view-tool-coordinate","ico-coordinate"]]])],544)),[[c,i.meterCoordinate],[l,e.$t("pcMtxtCoordinate")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-distance")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{key:1,id:"ico-distance","track-name":"distance",onMouseenter:t[1]||(t[1]=(...e)=>i.mouseEnter&&i.mouseEnter(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",null,null,512),[[s,["view-tool-distance","ico-distance"]]])],544)),[[c,i.meterDistance],[l,e.$t("pcMtxtDistance")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-edges")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{key:2,id:"ico-edges","track-name":"edges",onMouseenter:t[2]||(t[2]=(...e)=>i.mouseEnter&&i.mouseEnter(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:"measureEdges"==e.nowMeterType},null,8,Lt),[[s,["view-tool-segmentlength","ico-edges"]]])],544)),[[c,i.meterLength],[l,e.$t("pcMtxtEdges")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-continuousLine")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{key:3,id:"ico-continuousLine","track-name":"continuousLine",onMouseenter:t[3]||(t[3]=(...e)=>i.mouseEnter&&i.mouseEnter(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:"contour"==e.nowMeterType},null,8,Vt),[[s,["view-tool-Continuouslength","ico-continuousLine"]]])],544)),[[c,i.meterContinuousLine],[l,e.$t("pcMtxtContinuousLine")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-continuousArea")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{key:4,id:"ico-continuousArea","track-name":"continuousArea",onMouseenter:t[4]||(t[4]=(...e)=>i.mouseEnter&&i.mouseEnter(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:"contourarea"==e.nowMeterType},null,8,zt),[[s,["view-tool-Area","ico-continuousArea"]]])],544)),[[c,i.meterContinuousArea],[l,e.$t("pcMtxtContinuousArea")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-radius")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{key:5,id:"ico-radius","track-name":"radius",onMouseenter:t[5]||(t[5]=(...e)=>i.mouseEnter&&i.mouseEnter(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:"radius"==e.nowMeterType},null,8,Pt),[[s,["view-tool-radius","ico-radius"]]])],544)),[[c,i.meterRadius],[l,e.$t("pcMtxtRadius")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-lineAngel")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{key:6,id:"ico-lineAngel","track-name":"lineangel",onMouseenter:t[6]||(t[6]=(...e)=>i.mouseEnter&&i.mouseEnter(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:"LineAngle"==e.nowMeterType},null,8,Ft),[[s,["view-tool-angel","ico-lineAngel"]]])],544)),[[c,i.meterLineAngel],[l,e.$t("pcMtxtLineAngel")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-meaScale")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{key:7,id:"ico-meaScale","track-name":"scale",onMouseenter:t[7]||(t[7]=(...e)=>i.mouseEnter&&i.mouseEnter(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:i.store.state.modelStore.scaleDialog},null,8,Rt),[[s,["view-tool-proportion","ico-meaScale"]]])],544)),[[c,i.meterScale],[l,e.$t("pcMtxtScale")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-measureClear")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{key:8,id:"ico-measureClear","track-name":"clear",onMouseenter:t[8]||(t[8]=(...e)=>i.mouseEnter&&i.mouseEnter(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",null,null,512),[[s,["view-tool-clear","ico-measureClear"]]])],544)),[[c,i.meterClear],[l,e.$t("clear")]]):Object(n["createCommentVNode"])("",!0)])])}Object(n["popScopeId"])();var Ut={components:{},setup(){const e=Object(n["reactive"])({nowMeterType:"",showAreaMeter:!1,showBoundMeter:!1,showVolMeter:!1}),t=Object(c["useStore"])(),{menuStore:o,tagStore:i}=t.state,{proxy:r,appContext:a}=Object(n["getCurrentInstance"])();Object(n["nextTick"])(()=>{a.config.globalProperties.$meterBtn=e}),r.$eventBus.on("openTagPointSub",()=>{e.nowMeterType=""}),r.$eventBus.on("closeMeasure",()=>{s()}),r.$eventBus.on("apiCreateTagSub",()=>{s()}),Object(n["watch"])(()=>e.nowMeterType,e=>{"sync"!=nd_viewCtrl.viewMode||nd_viewCtrl.rtmSDK.isRtmOperate}),Object(n["onBeforeMount"])(()=>{}),Object(n["onMounted"])(()=>{});const s=()=>{t.commit("menuStore/setShowOneMenu",!0),t.commit("menuStore/setMenuChoose","none"),t.commit("menuStore/setMenuChoose2",""),t.commit("menuStore/setMenuChoose3",""),t.commit("menuStore/setShowManyConfig",!0),t.commit("modelStore/setScaleDialog",!1),ne.setMeasureOpType(""),t.state.printMode||i.tagShow&&ne._viewer.setAnnotationsVisibility(1),ne._viewer.setOperatorByID("OpPan"),e.nowMeterType="",Ae.sendCenter(2)},l=()=>{t.state.modelStore._brepload?(ne.setMeasureOpType("coordinate"),t.commit("menuStore/setMenuChoose","meter"),t.commit("menuStore/setMenuChoose2","coordinate"),t.commit("modelStore/setScaleDialog",!1),e.nowMeterType="coordinate",f("coordinateMeter"),Ae.sendCenter(2),Ae.sendCenter(3)):r.$eventBus.emit("MsgTipEvent3",r.$t("pcBrepNotEnd"))},d=()=>{t.state.modelStore._brepload?(ne.setMeasureOpType("contour"),t.commit("menuStore/setMenuChoose","meter"),t.commit("menuStore/setMenuChoose2","contour"),t.commit("modelStore/setScaleDialog",!1),e.nowMeterType="contour",f("continuousLineMeter"),Ae.sendCenter(2),Ae.sendCenter(3)):r.$eventBus.emit("MsgTipEvent3",r.$t("pcBrepNotEnd"))},u=()=>{t.state.modelStore._brepload?(ne.setMeasureOpType("contourarea"),t.commit("menuStore/setMenuChoose","meter"),t.commit("menuStore/setMenuChoose2","contourarea"),t.commit("modelStore/setScaleDialog",!1),e.nowMeterType="contourarea",f("continuousAreaMeter"),Ae.sendCenter(2),Ae.sendCenter(3)):r.$eventBus.emit("MsgTipEvent3",r.$t("pcBrepNotEnd"))},m=()=>{t.state.modelStore._brepload?(ne.setMeasureOpType("LineAngle"),t.commit("menuStore/setMenuChoose","meter"),t.commit("menuStore/setMenuChoose2","LineAngle"),t.commit("modelStore/setScaleDialog",!1),e.nowMeterType="LineAngle",f("angelMeter"),Ae.sendCenter(2),Ae.sendCenter(3)):r.$eventBus.emit("MsgTipEvent3",r.$t("pcBrepNotEnd"))},g=()=>{t.state.modelStore._brepload?(ne.setMeasureOpType(""),t.commit("menuStore/setMenuChoose","none"),t.commit("menuStore/setMenuChoose2","meterDistance"),t.commit("menuStore/setMenuChoose3",""),t.commit("modelStore/setScaleDialog",!1),r.$eventBus.emit("closeAttrBox"),e.nowMeterType="meterDistance",f("distanceMeter"),Ae.sendCenter(2),Ae.sendCenter(3)):r.$eventBus.emit("MsgTipEvent3",r.$t("pcBrepNotEnd"))},h=()=>{t.state.modelStore._brepload?(ne.setMeasureOpType("measureEdges"),t.commit("menuStore/setMenuChoose","meter"),t.commit("menuStore/setMenuChoose2",""),t.commit("modelStore/setScaleDialog",!1),e.nowMeterType="measureEdges",f("edgesMeter"),Ae.sendCenter(2),Ae.sendCenter(3)):r.$eventBus.emit("MsgTipEvent3",r.$t("pcBrepNotEnd"))},p=()=>{t.state.modelStore._brepload?(t.commit("menuStore/setMenuChoose","meter"),t.commit("menuStore/setMenuChoose2",""),t.commit("modelStore/setScaleDialog",!1),e.nowMeterType="meterAngle",f("angelMeter"),Ae.sendCenter(2),Ae.sendCenter(3)):r.$eventBus.emit("MsgTipEvent3",r.$t("pcBrepNotEnd"))},v=()=>{t.state.modelStore._brepload?(ne.setMeasureOpType("radius"),t.commit("menuStore/setMenuChoose","meter"),t.commit("menuStore/setMenuChoose2",""),t.commit("modelStore/setScaleDialog",!1),e.nowMeterType="radius",f("radiusMeter"),Ae.sendCenter(2),Ae.sendCenter(3)):r.$eventBus.emit("MsgTipEvent3",r.$t("pcBrepNotEnd"))},w=()=>{ne.OpMeasureRelease(),ne.setMeasureOpType(""),ne.setOperatorByID("OpMeasure"),t.commit("menuStore/setMenuChoose2",""),t.commit("menuStore/setMenuChoose3",""),t.commit("modelStore/setScaleDialog",!1),e.nowMeterType=!1,f("clearMeter"),Ae.sendCenter(2),Ae.sendCenter(3)},b=()=>{ne.setMeasureOpType(""),t.state.modelStore.scaleDialog?t.commit("modelStore/setScaleDialog",!1):(t.commit("modelStore/setScaleDialog",!0),r.$eventBus.emit("refreshScale")),e.nowMeterType="scale",f("scaleMeter"),Ae.sendCenter(2),Ae.sendCenter(3)},C=e=>T(e),S=t=>{x(),t&&(e[t]=!0)},x=()=>{e.showAreaMeter=!1,e.showBoundMeter=!1,e.showVolMeter=!1},O=Object(n["toRefs"])(e);return{...O,store:t,menuStore:o,returnOneMenu:s,meterDistance:g,meterCoordinate:l,meterContinuousLine:d,meterContinuousArea:u,checkBtnExit:C,meterLength:h,meterLineAngel:m,meterAngle:p,meterRadius:v,meterClear:w,meterScale:b,mouseEnter:S}}};o("b514");const Ht=$e()(Ut,[["render",$t],["__scopeId","data-v-009882c6"]]);var Wt=Ht;Object(n["pushScopeId"])("data-v-a649c59a");const Gt={class:"ndp2-btn-ul"},Kt={class:"return-menu"},Zt=Object(n["createElementVNode"])("img",{src:kt.a},null,-1),Yt=[Zt],qt={key:0,id:"ico-zoom","track-name":"zoomwindow"},Jt=["selected"],Qt={key:1,id:"ico-zoomwindow","track-name":"zoom"},Xt=["selected"];function eo(e,t,o,i,r,a){const c=Object(n["resolveDirective"])("click-track"),s=Object(n["resolveDirective"])("img-switch"),l=Object(n["resolveDirective"])("tooltip");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",null,[Object(n["createElementVNode"])("ul",Gt,[Object(n["withDirectives"])(Object(n["createElementVNode"])("li",Kt,Yt,512),[[c,i.returnOneMenu]]),i.checkBtnExit("#ico-zoom")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",qt,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:"zoom"==e.selected},null,8,Jt),[[s,["view-tool-scale","ico-zoom"]]])],512)),[[c,i.chooseZoom],[l,e.$t("pcMtxtTagImg")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-zoomwindow")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",Qt,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:"zoomwindow"==e.selected},null,8,Xt),[[s,["view-tool-scale","ico-zoomwindow"]]])],512)),[[c,i.chooseZoomwindow],[l,e.$t("pcMtxtTagTxt")]]):Object(n["createCommentVNode"])("",!0)])])}Object(n["popScopeId"])();var to={name:"",components:{},setup(){const e=Object(n["reactive"])({selected:""}),t=Object(c["useStore"])(),{proxy:o}=Object(n["getCurrentInstance"])();Object(n["onBeforeMount"])(()=>{}),Object(n["onMounted"])(()=>{});const i=()=>{e.selected="",ne._viewer.setOperatorByID("OpPan"),t.commit("menuStore/setShowOneMenu",!0),t.commit("menuStore/setMenuChoose",""),t.commit("menuStore/setShowManyConfig",!0)},r=e=>T(e),a=()=>{"zoomwindow"!=e.selected?(e.selected="zoomwindow",ne._viewer.setOperatorByID("OpZoomWindow")):(e.selected="",ne._viewer.setOperatorByID("OpPan"))},s=()=>{"zoom"!=e.selected?(e.selected="zoom",ne._viewer.setOperatorByID("OpZoom")):(e.selected="",ne._viewer.setOperatorByID("OpPan"))},l=Object(n["toRefs"])(e);return{returnOneMenu:i,checkBtnExit:r,chooseZoomwindow:a,chooseZoom:s,...l}}};o("48be");const oo=$e()(to,[["render",eo],["__scopeId","data-v-a649c59a"]]);var no=oo;Object(n["pushScopeId"])("data-v-15e6b897");const io={class:"ndp2-twrap"},ro={class:"ndp2-btn-ul",id:"ico-distance-list"},ao={class:"return-menu"},co=Object(n["createElementVNode"])("img",{src:kt.a},null,-1),so=[co],lo={key:0,id:"ico-smartdis","track-name":"smartDis"},uo=["selected"],mo={key:1,id:"ico-pt2pt","track-name":"pointToPoint"},go=["selected"],ho={key:2,id:"ico-pt2line","track-name":"pointToLine"},po=["selected"],vo={key:3,id:"ico-line2line","track-name":"LineToLine"},wo=["selected"],fo={key:4,id:"ico-Lineargauge"},bo=["selected"],Co={key:5,id:"ico-holeDist"},So=["selected"],xo={key:6,id:"ico-axis2pt"},To=["selected"],Oo={key:7,id:"ico-axis2line"},yo=["selected"];function Mo(e,t,o,i,r,a){const c=Object(n["resolveDirective"])("click-track"),s=Object(n["resolveDirective"])("img-switch"),l=Object(n["resolveDirective"])("tooltip");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",io,[Object(n["createElementVNode"])("ul",ro,[Object(n["withDirectives"])(Object(n["createElementVNode"])("li",ao,so,512),[[c,i.returnOneMenu]]),i.checkBtnExit("#ico-smart1")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",lo,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:10===e.meterStartIdx},null,8,uo),[[s,["view-tool-smart","ico-smartdis"]]])],512)),[[c,i.smartDistance],[l,e.$t("pcMtxtSmartMeter")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-pt2pt")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",mo,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:0===e.meterStartIdx},null,8,go),[[s,["view-tool-pointToPoint","ico-pt2pt"]]])],512)),[[c,i.meterP2P],[l,e.$t("pcMtxtP2P")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-pt2line")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",ho,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:1===e.meterStartIdx},null,8,po),[[s,["view-tool-pointToLine","ico-pt2line"]]])],512)),[[c,i.meterP2L],[l,e.$t("pcMtxtP2L")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-line2line")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",vo,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:2===e.meterStartIdx},null,8,wo),[[s,["view-tool-lineToLine","ico-line2line"]]])],512)),[[c,i.distanceLine2line],[l,e.$t("pcMtxtL2L")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-Lineargauge")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",fo,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:3===e.meterStartIdx},null,8,bo),[[s,["view-tool-LinearMeasurement","ico-Lineargauge"]]])],512)),[[c,i.distanceLineargauge],[l,e.$t("pcMtxtLinear")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-holeDist")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",Co,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:4===e.meterStartIdx},null,8,So),[[s,["view-tool-centreOfCircle","ico-holeDist"]]])],512)),[[c,i.distanceCentreOfCircle],[l,e.$t("pcMtxtHoleDist")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-axis2pt")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",xo,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:5===e.meterStartIdx},null,8,To),[[s,["view-tool-centerPointToPoint","ico-axis2pt"]]])],512)),[[c,i.distanceCentreToPoint],[l,e.$t("pcMtxtAxis2pt")]]):Object(n["createCommentVNode"])("",!0),i.checkBtnExit("#ico-axis2line")?Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("li",Oo,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",{selected:6===e.meterStartIdx},null,8,yo),[[s,["view-tool-centerPointToLine","ico-axis2line"]]])],512)),[[c,i.distanceAxis2line],[l,e.$t("pcMtxtAxisline")]]):Object(n["createCommentVNode"])("",!0)])])}Object(n["popScopeId"])();var jo={name:"",components:{},setup(){const e=Object(n["reactive"])({meterStartIdx:-1}),t=Object(c["useStore"])(),{proxy:o,appContext:i}=Object(n["getCurrentInstance"])();Object(n["nextTick"])(()=>{i.config.globalProperties.$distanceBtn=e}),Object(n["watch"])(()=>e.meterStartIdx,e=>{("sync"!=nd_viewCtrl.viewMode||nd_viewCtrl.rtmSDK.isRtmOperate)&&Ae.sendCenter(4)}),o.$eventBus.on("openTagPointSub",()=>{e.meterStartIdx=-1}),o.$eventBus.on("closeMeasure",()=>{ne.setMeasureOpType(""),t.commit("menuStore/setMenuChoose2",""),e.meterStartIdx=-1}),Object(n["onBeforeMount"])(()=>{}),Object(n["onMounted"])(()=>{});const r=()=>{ne.setMeasureOpType(""),t.commit("menuStore/setMenuChoose","meter"),t.commit("menuStore/setMenuChoose2",""),e.meterStartIdx=-1,Ae.sendCenter(2)},a=e=>T(e),s=()=>{ne.setMeasureOpType("bodyDistance"),e.meterStartIdx=10,Ae.sendCenter(2),f("smartdis")},l=()=>{ne.setMeasureOpType("pt2pt"),e.meterStartIdx=0,Ae.sendCenter(2),f("distancePt2pt")},d=()=>{ne.setMeasureOpType("PointToLine"),e.meterStartIdx=1,Ae.sendCenter(2),f("distancePt2line")},u=()=>{e.meterStartIdx=2,ne.setMeasureOpType("LineToLine"),Ae.sendCenter(2),f("distanceLine2line")},m=()=>{e.meterStartIdx=3,ne.setMeasureOpType("Lineargauge"),Ae.sendCenter(2),f("distanceLineargauge")},g=()=>{e.meterStartIdx=4,ne.setMeasureOpType("holeDist"),Ae.sendCenter(2),f("distanceCentreOfCircle")},h=()=>{e.meterStartIdx=5,ne.setMeasureOpType("AxisToPoint"),Ae.sendCenter(2),f("distanceCentreToPoint")},p=()=>{e.meterStartIdx=6,ne.setMeasureOpType("AxisToLine"),Ae.sendCenter(2),f("distanceAxis2line")},v=()=>{$(".pc-alert").hide()},w=()=>{$(".pc-alert").show()},b=Object(n["toRefs"])(e);return{returnOneMenu:r,checkBtnExit:a,smartDistance:s,meterP2P:l,meterP2L:d,distanceLine2line:u,distanceLineargauge:m,distanceCentreOfCircle:g,distanceCentreToPoint:h,distanceAxis2line:p,onmouseoverTool:v,onmouseleaveTool:w,...b}}};o("bc8c");const Do=$e()(jo,[["render",Mo],["__scopeId","data-v-15e6b897"]]);var Eo=Do,ko=o("7863"),Io=o.n(ko);Object(n["pushScopeId"])("data-v-0ef834b7");const Ao={class:"dialog_header"},Bo={class:"drag-right",ref:"dragRight"},No={class:"drag-bottom",ref:"dragBottom"};function _o(e,t,o,i,r,a){const c=Object(n["resolveDirective"])("drag");return Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:"my-card",ref:"cardRef",onContextmenu:t[1]||(t[1]=Object(n["withModifiers"])(()=>{},["right","stop","prevent"]))},[Object(n["createElementVNode"])("header",Ao,[Object(n["renderSlot"])(e.$slots,"header",{},void 0,!0)]),o.hideClose?Object(n["createCommentVNode"])("",!0):(Object(n["openBlock"])(),Object(n["createElementBlock"])("img",{key:0,class:"close-icon",src:Io.a,onClick:t[0]||(t[0]=(...e)=>i.close&&i.close(...e)),alt:""})),Object(n["renderSlot"])(e.$slots,"default",{},void 0,!0),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",Bo,null,512),[[n["vShow"],o.canDrag]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",No,null,512),[[n["vShow"],o.canDrag]])],544)),[[c]])}Object(n["popScopeId"])();var Lo={name:"",props:["hideClose","canDrag","sizeDrag"],setup(e,t){const o=Object(n["reactive"])({});let i=Object(n["ref"])(null),r=Object(n["ref"])(null),a=Object(n["ref"])(null);Object(n["onBeforeMount"])(()=>{}),Object(n["onMounted"])(()=>{e.canDrag&&s()});const c=()=>{t.emit("close"),Ae.sendCenter(2),Ae.sendCenter(3)},s=()=>{i.value.onmousedown=function(e){let o=e.clientX,n=1*a.value.clientWidth;document.onmousemove=function(e){let t=n+e.clientX-o;e.clientX>document.body.clientWidth-10||t>=240&&(a.value.style.width=t+"px")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null,t.emit("sizeDrag",{cardWidth:a.value.style.width,cardHeight:a.value.style.height})}},r.value.onmousedown=function(e){let o=e.clientY,n=1*a.value.clientHeight;document.onmousemove=function(e){let t=n+e.clientY-o;e.clientY>document.body.clientHeight-10||t>=300&&(a.value.style.height=t+"px")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null,t.emit("sizeDrag",{cardWidth:a.value.style.width,cardHeight:a.value.style.height})}}},l=Object(n["toRefs"])(o);return{...l,close:c,dragRight:i,dragBottom:r,cardRef:a}}};o("b53e");const Vo=$e()(Lo,[["render",_o],["__scopeId","data-v-0ef834b7"]]);var zo=Vo;Object(n["pushScopeId"])("data-v-58e6cdf4");const Po={class:"ndp2-tc-scale"},Fo={class:"ndp2-dialog-model"},Ro={class:"dialog-title dialog_header"},$o={class:"dialog-content"},Uo={class:"win-content scale-box"},Ho=Object(n["createElementVNode"])("span",{class:"fh"},":",-1),Wo={class:"dialog-footer"};function Go(e,t,o,i,r,a){const c=Object(n["resolveDirective"])("drag");return Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("div",Po,[Object(n["createElementVNode"])("div",Fo,[Object(n["createElementVNode"])("div",Ro,[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("scaleMeter"))+" ",1),Object(n["createElementVNode"])("img",{class:"dialog-cancel-img",onClick:t[0]||(t[0]=(...e)=>i.closeDialog&&i.closeDialog(...e)),src:Io.a,alt:""})]),Object(n["createElementVNode"])("div",$o,[Object(n["createElementVNode"])("div",Uo,[Object(n["createElementVNode"])("span",null,[Object(n["withDirectives"])(Object(n["createElementVNode"])("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=t=>e.scale.min=t),maxlength:"10",onKeyup:t[2]||(t[2]=(...e)=>i.checkValid&&i.checkValid(...e))},null,544),[[n["vModelText"],e.scale.min]])]),Ho,Object(n["createElementVNode"])("span",null,[Object(n["withDirectives"])(Object(n["createElementVNode"])("input",{type:"text","onUpdate:modelValue":t[3]||(t[3]=t=>e.scale.max=t),maxlength:"10",onKeyup:t[4]||(t[4]=(...e)=>i.checkValid&&i.checkValid(...e))},null,544),[[n["vModelText"],e.scale.max]])])])]),Object(n["createElementVNode"])("div",Wo,[Object(n["createElementVNode"])("button",{class:"dialog-cancel-btn dialog-btn",onClick:t[5]||(t[5]=(...e)=>i.closeDialog&&i.closeDialog(...e))},Object(n["toDisplayString"])(e.$t("cancel")),1),Object(n["createElementVNode"])("button",{class:Object(n["normalizeClass"])(["dialog-sure-btn dialog-btn",{no:0==e.validOK}]),onClick:t[6]||(t[6]=(...e)=>i.sureDialog&&i.sureDialog(...e))},Object(n["toDisplayString"])(e.$t("sure")),3)])])],512)),[[c],[n["vShow"],i.store.state.modelStore.scaleDialog]])}Object(n["popScopeId"])();var Ko={setup(){const{proxy:e,appContext:t}=Object(n["getCurrentInstance"])(),o=Object(c["useStore"])(),i=Object(n["reactive"])({scale:{min:"1",max:"1"},baseScale:{},scaleDialog:!0,validOK:!0});Object(n["nextTick"])(()=>{t.config.globalProperties.$scaleBtn=i,Object(n["watch"])(()=>i.scale,()=>{("sync"!=nd_viewCtrl.viewMode||nd_viewCtrl.rtmSDK.isRtmOperate)&&Ae.sendCenter(4)},{immediate:!0,deep:!0})}),e.$eventBus.on("refreshScale",()=>{i.scale={min:"1",max:"1"},i.validOK=!0;try{var e=o.state.modelStore.measureScale,t=o.state.modelStore.nowConfig;if(e.length>0&&void 0!=e[t]){var n=e[t];i.scale.min=parseFloat(n.split(":")[0]),i.scale.max=parseFloat(n.split(":")[1])}}catch(r){}});const r=()=>{o.commit("modelStore/setScaleDialog",!1),Ae.sendCenter(3)},a=()=>{const t=i.scale.min,n=i.scale.max;s()?(o.commit("modelStore/setScaleDialog",!1),o.commit("modelStore/setMeasureScale",`${t}:${n}`),i.baseScale=JSON.parse(JSON.stringify(i.scale)),f("chooseScale"),Ae.sendCenter(3),Ae.sendCenter(4)):e.$eventBus.emit("MsgTipEvent",e.$t("rightScaleTips"))},s=()=>{const t=/^(0|[1-9]\d*)(\s|$|\.\d{1,2}\b)/,o=i.scale.min,n=i.scale.max;return 0!=Number(o)&&0!=Number(n)&&t.test(o)&&t.test(n)?i.validOK=!0:(e.$eventBus.emit("MsgTipEvent",e.$t("rightScaleTips")),i.validOK=!1),i.validOK};return{...Object(n["toRefs"])(i),store:o,checkValid:s,closeDialog:r,sureDialog:a}}};o("e055");const Zo=$e()(Ko,[["render",Go],["__scopeId","data-v-58e6cdf4"]]);var Yo=Zo;Object(n["pushScopeId"])("data-v-0e8d81f2");const qo={class:"tag-write-icon dialog_header"};function Jo(e,t,o,i,r,a){const c=Object(n["resolveDirective"])("drag");return Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{class:Object(n["normalizeClass"])([{hhiden:e.isLoading},"tag-write-card"])},[Object(n["createElementVNode"])("div",qo,[Object(n["createElementVNode"])("div",{class:"can-click",onClick:t[0]||(t[0]=Object(n["withModifiers"])((...e)=>i.openTag&&i.openTag(...e),["prevent","stop"])),onMousedown:t[1]||(t[1]=Object(n["withModifiers"])(()=>{},["prevent","stop"])),onMousemove:t[2]||(t[2]=Object(n["withModifiers"])(()=>{},["prevent","stop"]))},null,32)])],2)),[[n["vShow"],e.showWrite],[c]])}Object(n["popScopeId"])();var Qo={name:"",setup(e,t){const o=Object(n["reactive"])({isLoading:!0,showWrite:!1}),{proxy:i}=(Object(c["useStore"])(),Object(n["getCurrentInstance"])());Object(n["onBeforeMount"])(()=>{}),Object(n["onMounted"])(()=>{i.$eventBus.on("loadComplete",()=>{o.isLoading=!1}),"sync"==nd_viewCtrl.viewMode&&(o.showWrite=!0)});const r=()=>{t.emit("tagClick")},a=Object(n["toRefs"])(o);return{openTag:r,...a}}};o("e1d4");const Xo=$e()(Qo,[["render",Jo],["__scopeId","data-v-0e8d81f2"]]);var en=Xo,tn={isFull:!1,unfullHeight:0,callFull:function(e){if(te.state.isFull){t=document;t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitCancelFullScreen?t.webkitCancelFullScreen():t.msExitFullscreen()&&t.msExitFullscreen()()}else{var t=document.documentElement;t.requestFullscreen?e.requestFullscreen():t.mozRequestFullScreen?e.mozRequestFullScreen():t.webkitRequestFullScreen?e.webkitRequestFullScreen():t.msRequestFullscreen()&&e.msRequestFullscreen()()}te.commit("setFull",!te.state.isFull)}},on={name:"",components:{meterBtn:Wt,plusBtn:no,distanceBtn:Eo,card:zo,scaleBtn:Yo,tagWrite:en},setup(e,t){const o=Object(n["reactive"])({isOpenTag:!0,isLoading:!0,teleportTo:"body"}),i=Object(c["useStore"])(),{menuStore:r,modelStore:a}=i.state,{proxy:s,appContext:l}=Object(n["getCurrentInstance"])();Object(n["nextTick"])(()=>{l.config.globalProperties.$bottomBtn=s}),Object(n["watch"])(()=>r.menuChoose,(e,t)=>{("sync"!=nd_viewCtrl.viewMode||nd_viewCtrl.rtmSDK.isRtmOperate)&&"tag"!=e&&Ae.sendCenter(3)}),Object(n["watch"])(()=>r.showOneMenu,e=>{("sync"!=nd_viewCtrl.viewMode||nd_viewCtrl.rtmSDK.isRtmOperate)&&(e?ne._viewer.onChangeCursor("OpPan"):ne._viewer.onChangeCursor(""))}),Object(n["onBeforeMount"])(()=>{}),Object(n["onMounted"])(()=>{s.$eventBus.on("loadComplete",()=>{window.ndViewer=ne._viewer,D(),o.isLoading=!1}),setTimeout(()=>{o.teleportTo="#vueMain"})});const d=e=>("#ico-measure"!=e||!a.hideItem.measure)&&(("#ico-structure"!=e||!a.hideItem.structTree)&&T(e)),u=(e,t)=>{if(!i.state.modelStore._geometryload)return void s.$eventBus.emit("MsgTipEvent3",s.$t("pcBrepNotEnd"));i.commit("menuStore/setShowManyConfig",!1),i.commit("menuStore/setShowOneMenu",!1),i.commit("menuStore/setMenuChoose","tag"),ne.clearSelection(),ne._viewer.setOperatorByID("OpPan"),ne._viewer.setAnnotationsVisibility(0);const o=document.getElementById("tagTooltips");o&&(o.style.display="none"),Ae.sendCenter(1),C(),s.$eventBus.emit("addtagEvent",t),f("pcMtxtTagTxtImg")},m=()=>{f("zoom"),"zoomwindow"!=i.state.menuStore.menuChoose?(i.commit("menuStore/setMenuChoose","zoomwindow"),ne._viewer.setOperatorByID("OpZoomWindow")):(i.commit("menuStore/setMenuChoose",""),ne._viewer.setOperatorByID("OpPan")),C(),Ae.sendCenter(2),Ae.sendCenter(3)},g=()=>{i.commit("menuStore/setShowManyConfig",!1),i.commit("menuStore/setShowOneMenu",!1),i.commit("menuStore/setMenuChoose","meter"),ne._viewer.setAnnotationsVisibility(0),ne.clearSelection(),ne.setOperatorByID("OpMeasure"),C(),Ae.sendCenter(2)},h=()=>{if(f("structureTree"),C(),i.state.menuStore.structMenu)return i.commit("menuStore/setMenuChoose",""),i.commit("menuStore/setStructMenu",!1),Ae.sendCenter(2),Ae.sendCenter(3),void Ae.sendCenter(5);i.state.menuStore.structMenu||(i.commit("menuStore/setMenuChoose","struct"),i.commit("menuStore/setMenuChoose2",""),i.commit("menuStore/setMenuChoose3","")),i.commit("menuStore/setStructMenu",!0),i.commit("menuStore/setUnitMenu",!1),ne._viewer.setOperatorByID("OpPan"),s.$eventBus.emit("closeCfg"),Ae.sendCenter(2),Ae.sendCenter(3),Ae.sendCenter(5)},p=()=>{f("unit"),C(),ne._viewer.setOperatorByID("OpPan"),"unitChange"!=r.menuChoose?(i.commit("menuStore/setMenuChoose","unitChange"),i.commit("menuStore/setUnitMenu",!0)):(i.commit("menuStore/setMenuChoose",""),i.commit("menuStore/setUnitMenu",!1)),Ae.sendCenter(2),Ae.sendCenter(3)},v=()=>{f("bgColor"),ne._viewer.setOperatorByID("OpPan"),"bgColor"!=r.menuChoose?i.commit("menuStore/setMenuChoose","bgColor"):i.commit("menuStore/setMenuChoose",""),C(),Ae.sendCenter(2),Ae.sendCenter(3),setTimeout(()=>{Ae.sendCenter(4)})},w=()=>{C(),ne._viewer.setOperatorByID("OpPan"),ne.clearSelection(),"textFind"!=r.menuChoose?(i.commit("menuStore/setMenuChoose","textFind"),i.commit("menuStore/setTextFindMenu",!0),i.commit("menuStore/setShowManyConfig",!1),ne._viewer.setAnnotationsVisibility(0)):(i.commit("menuStore/setMenuChoose",""),i.commit("menuStore/setTextFindMenu",!1))},b=e=>{e&&(o[e]=!0)},C=()=>{i.commit("menuStore/setShowManyConfig",!0),i.commit("menuStore/setStructMenu",!1),i.commit("menuStore/setUnitMenu",!1),i.commit("modelStore/setScaleDialog",!1),i.commit("menuStore/setTextFindMenu",!1)},S=(e,t)=>{var o=M(e);ne._viewer.setBackGroundColor(o),i.commit("modelStore/setShareBg",e),f("bgColor"),Ae.sendCenter(4)},x=()=>{ne.onResetCamera(),i.commit("menuStore/setMenuChoose",""),ne._viewer.setOperatorByID("OpPan"),C(),f("reset"),Ae.sendCenter(2),Ae.sendCenter(3)},O=()=>{let e=a.suportLineWeight;i.commit("modelStore/setSuportLineWeight",!e),ne._viewer.setLineWidth(!e)},y=()=>{f("bgColor");const e=i.state.menuStore;"bgColor"==e.menuChoose&&i.commit("menuStore/setMenuChoose","")},j=()=>{if(f("hideshowNote"),i.state.modelStore.nowTag.length>0){o.isOpenTag=i.state.tagStore.tagShow;var e=!o.isOpenTag;ne.setAnnotationsVisibility(e),i.commit("tagStore/setTagshow",e),o.isOpenTag=e,o.isShowHideSetting=!1}i.commit("menuStore/setMenuChoose",""),ne._viewer.setOperatorByID("OpPan"),C(),Ae.sendCenter(2),Ae.sendCenter(3),Ae.sendCenter(6)};function D(){$(document).on("fullscreenchange webkitfullscreenchange mozfullscreenchange MSFullscreenChange",(function(e){var t=document.webkitFullscreenElement||document.mozFullScreen||document.msFullscreenEnabled||document.fullscreen;t||i.commit("setFull",!1)}));var e=null;window.addEventListener("resize",()=>{e&&clearTimeout(e),e=setTimeout((function(){window.innerHeight<=tn.unfullHeight&&i.commit("setFull",!1)}),500)})}const E=()=>{i.state.isFull?f("fullout"):(f("full"),tn.unfullHeight=window.innerHeight),tn.callFull(document.body)},k=()=>{const e=document.querySelector(".pc-alert");e&&(e.style.display="none"),$(".ActiveCoordinate").hide()},I=()=>{const e=document.querySelector(".pc-alert");$(".ActiveCoordinate,.pc-alert").show(),e&&e.innerText&&e.innerText.trim().length>0?e.style.display="block":e&&(e.style.display="none")},A=()=>{i.state.modelIsLoaded&&(s.$tag.tcStep0||s.$tag.tcStep1||s.$tag.tcChecktag||(ne.clearSelection(),C(),i.commit("menuStore/setMenuChoose",""),i.commit("menuStore/setMenuChoose2",""),i.commit("menuStore/setMenuChoose3",""),Ae.startTagChange(),u(null,!0),i.commit("setRtmNeedCover",!1)))},B=(e,t)=>{},N=Object(n["toRefs"])(o);return{...N,store:i,menuStore:r,modelStore:a,checkBtnExit:d,chooseToTag:u,chooseToMeter:g,chooseToStructureTree:h,chooseZoomwindow:m,chooseUnitChange:p,chooseToBgColor:v,chooseToTextFind:w,reset:x,setLineWeight:O,mourseMenu:b,hideTags:j,closeBgColor:y,rightEvent:B,setBgColor:S,chooseFullScreen:E,mourseBigMenu:k,mourseBigMenuLeave:I,writeTag:A}}};o("fd38");const nn=$e()(on,[["render",Dt],["__scopeId","data-v-4097be1e"]]);var rn=nn,an=o("eec7"),cn=o.n(an);Object(n["pushScopeId"])("data-v-da474cd0");const sn=["title"],ln={class:"cfg-content"},dn=["onClick"],un={class:"cfg-list-pic"},mn=["src"],gn={class:"cfg-bottom"},hn=["title"];function pn(e,t,o,i,r,a){return i.store.state.modelStore.configs.length>1&&i.checkBtnExit("#ico-multipleSetting")?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:0,class:"ndp2-my-page config-switch",onContextmenu:t[2]||(t[2]=Object(n["withModifiers"])(()=>{},["right","stop","prevent"]))},[Object(n["createElementVNode"])("div",{class:"cfg-top",onClick:t[0]||(t[0]=(...e)=>i.showCfgList&&i.showCfgList(...e))},[Object(n["createElementVNode"])("p",{title:e.configList[e.cfgIdx]&&e.configList[e.cfgIdx].Name},Object(n["toDisplayString"])(e.$t("pcNowConfig"))+":"+Object(n["toDisplayString"])(e.configList[e.cfgIdx]&&e.configList[e.cfgIdx].Name),9,sn),Object(n["createElementVNode"])("img",{class:Object(n["normalizeClass"])(["menu-ctrl-icon",{open:e.showCfgContent}]),src:cn.a,alt:""},null,2)]),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",ln,[Object(n["createElementVNode"])("ul",null,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.configList,(o,r)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{class:"cfg-list",key:r,onClick:e=>i.chooseCfg(r)},[Object(n["createElementVNode"])("div",un,[Object(n["createElementVNode"])("img",{class:"cfg-img-cap",src:o.captureImg,onError:t[1]||(t[1]=(...e)=>i.imgLoadError&&i.imgLoadError(...e)),alt:""},null,40,mn)]),Object(n["createElementVNode"])("div",gn,[Object(n["createElementVNode"])("i",{class:Object(n["normalizeClass"])(e.cfgIdx==r?"icon-radio-checked":"icon-radio-nocheck")},null,2),Object(n["createElementVNode"])("span",{title:o.Name,class:Object(n["normalizeClass"])({light:e.cfgIdx==r})},Object(n["toDisplayString"])(o.Name),11,hn)])],8,dn))),128))])],512),[[n["vShow"],e.showCfgContent]])],32)):Object(n["createCommentVNode"])("",!0)}Object(n["popScopeId"])();var vn={name:"",setup(){const e=Object(n["reactive"])({showCfgContent:!1,configList:[],cfgIdx:0,isStartToChange:!1,timer:null,needUpdateRtm:!1,rtmSwitchTimer:null,rtmSwitchTimer2:null}),t=Object(c["useStore"])(),{proxy:i,appContext:r}=Object(n["getCurrentInstance"])();Object(n["nextTick"])(()=>{r.config.globalProperties.$configSwitch=i}),Object(n["watch"])(()=>t.state.modelStore.configs,t=>{e.configList=t}),Object(n["onBeforeMount"])(()=>{}),Object(n["onMounted"])(()=>{i.$eventBus.on("loadAndInitSub",d),i.$eventBus.on("loadFail",u),i.$eventBus.on("closeCfg",()=>{e.showCfgContent=!1})});const a=(o,n)=>{const r=()=>{-1!==e.cfgIdx&&(t.commit("menuStore/setStructMenu",!1),t.commit("menuStore/setShowOneMenu",!0),t.commit("menuStore/setMenuChoose",""),t.commit("menuStore/setMenuChoose2",""),t.commit("menuStore/setMenuChoose3",""),t.commit("tagStore/setTagshow",!0),setTimeout(()=>{i.$eventBus.emit("cfgSwitchSub"),i.$eventBus.emit("closeTagSeeSub"),Ae.sendCenter(6),t.commit("modelStore/changeMultipleCfg",e.cfgIdx),e.isStartToChange=!0}))};clearTimeout(e.timer),e.timer=setTimeout(()=>{e.cfgIdx!=o&&(n&&(e.needUpdateRtm=!0),clearTimeout(e.rtmSwitchTimer),clearTimeout(e.rtmSwitchTimer2),e.cfgIdx=o,r())},200)},s=e=>{let n=event.srcElement;"zh"==t.state.language?n.src=o("382f"):n.src=o("bc2f"),n.classList.add("nomsg")},l=()=>{e.showCfgContent=!e.showCfgContent,e.showCfgContent&&(t.commit("menuStore/setStructMenu",!1),"struct"==t.state.menuStore.menuChoose&&t.commit("menuStore/setMenuChoose","")),Ae.sendCenter(2),Ae.sendCenter(3)},d=()=>{const o=n=>{e.rtmSwitchTimer=setTimeout(()=>{ne._viewer.getScreenCapture2((function(i){if(i){let e=t.state.modelStore.configs[n];nd_viewCtrl.configImgUpload&&nd_viewCtrl.configImgUpload(e,i),t.state.modelStore.configs[n].imgURL=i,t.state.modelStore.configs[n].captureImg=i}else e.rtmSwitchTimer2=setTimeout(()=>{o(n)},1e3)}))},1e3)};e.cfgIdx=t.state.modelStore.nowConfig,t.state.modelStore.configs[e.cfgIdx]&&!t.state.modelStore.configs[e.cfgIdx].imgURL&&o(e.cfgIdx),e.isStartToChange=!1,e.needUpdateRtm&&(Ae.receiveAllMsg(null,[8]),e.needUpdateRtm=!1),t.state.modelIsLoaded||Ae.sendCenter(6),Ae.sendCenter(3),Ae.sendCenter(5),Ae.sendCenter(8)},u=()=>{e.isStartToChange=!1},m=e=>T(e),g=Object(n["toRefs"])(e);return{...g,store:t,chooseCfg:a,showCfgList:l,checkBtnExit:m,imgLoadError:s}},methods:{}};o("1bec");const wn=$e()(vn,[["render",pn],["__scopeId","data-v-da474cd0"]]);var fn=wn;Object(n["pushScopeId"])("data-v-3c488a92");const bn=["title"];function Cn(e,t,o,i,r,a){const c=Object(n["resolveComponent"])("tree-node"),s=Object(n["resolveComponent"])("card");return Object(n["openBlock"])(),Object(n["createBlock"])(s,{class:Object(n["normalizeClass"])(["ndp2-my-page structure-tree tree-card",{"struct-top":i.store.state.modelStore.configs.length<2||"explode"==i.menuStore.menuChoose}]),onClose:i.close,canDrag:!0,onSizeDrag:i.structSizeDrag,ref:"structCardRef"},{header:Object(n["withCtx"])(()=>[Object(n["createTextVNode"])(Object(n["toDisplayString"])(e.$t("structureTree")),1)]),default:Object(n["withCtx"])(()=>[Object(n["withDirectives"])(Object(n["createElementVNode"])("div",{class:"struc-content",onScrollPassive:t[4]||(t[4]=(...e)=>i.getTreeScroll&&i.getTreeScroll(...e)),ref:"scrollRef"},[Object(n["withDirectives"])(Object(n["createElementVNode"])("ul",null,[Object(n["createElementVNode"])("li",{class:Object(n["normalizeClass"])(["tree-node-item",{select:e.modelTreeData.isHighlight}])},[Object(n["createElementVNode"])("div",{class:"treenode-node-item",onContextmenu:t[3]||(t[3]=Object(n["withModifiers"])(t=>i.rightEvent(t,e.modelTreeData),["right","stop","prevent"]))},[e.modelTreeData.children&&e.modelTreeData.children.length>0?(Object(n["openBlock"])(),Object(n["createElementBlock"])("i",{key:0,class:Object(n["normalizeClass"])({"tree-node-open":e.modelTreeData.isOpenChild,"tree-node-close":!e.modelTreeData.isOpenChild}),onClick:t[0]||(t[0]=(...e)=>i.toggleOpen&&i.toggleOpen(...e))},null,2)):Object(n["createCommentVNode"])("",!0),Object(n["createElementVNode"])("i",{class:Object(n["normalizeClass"])(["tree-node-checkbox",{"ico-tree-checkedbox":e.modelTreeData.isChecked}]),onClick:t[1]||(t[1]=t=>i.toggleVisible(e.modelTreeData))},null,2),Object(n["createElementVNode"])("span",{class:"tree-node-txt",onClick:t[2]||(t[2]=t=>i.selectNode(e.modelTreeData)),title:e.modelTreeData.name},Object(n["toDisplayString"])(e.modelTreeData.name),9,bn)],32),e.modelTreeData.isOpenChild&&e.modelTreeData.children&&e.modelTreeData.children.length?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:Math.random(),treeData:e.modelTreeData,defaulOpen:!0,level:"2"},null,8,["treeData"])):Object(n["createCommentVNode"])("",!0)],2)],512),[[n["vShow"],e.hasData]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("p",null,Object(n["toDisplayString"])(e.$t("noTreeData2")),513),[[n["vShow"],!e.hasData]])],544),[[n["vShow"],!e.searchMode]])]),_:1},8,["onClose","onSizeDrag","class"])}Object(n["popScopeId"])(),Object(n["pushScopeId"])("data-v-c1f46cf6");const Sn=["lev","uuid"],xn=["onContextmenu"],Tn=["onClick"],On={class:"tree-module"},yn=["onClick"],Mn=["onClick","title"];function jn(e,t,o,i,r,a){const c=Object(n["resolveComponent"])("tree-node",!0);return Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createElementBlock"])("ul",null,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(o.treeData.children,(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{class:Object(n["normalizeClass"])(["tree-node-item",{select:e.isHighlight}]),key:t,lev:o.level,uuid:e.uuid},[Object(n["createElementVNode"])("div",{class:"treenode-node-item",onContextmenu:Object(n["withModifiers"])(t=>i.rightEvent(t,e),["right","stop","prevent"])},[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(i.getLevel(e),(e,t)=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("b",{key:t}))),128)),Object(n["withDirectives"])(Object(n["createElementVNode"])("i",{class:Object(n["normalizeClass"])({"tree-node-open":e.isOpenChild,"tree-node-close":!e.isOpenChild}),onClick:t=>i.toggleOpen(e)},null,10,Tn),[[n["vShow"],e.children.length>0]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("i",On,null,512),[[n["vShow"],!e||!e.children.length]]),Object(n["createElementVNode"])("i",{onClick:t=>i.toggleVisible(e),class:Object(n["normalizeClass"])(["tree-node-checkbox",{"ico-tree-checkedbox":e.isChecked}])},null,10,yn),Object(n["createElementVNode"])("span",{onClick:t=>i.selectNode(e),class:"tree-node-txt",title:e.name},Object(n["toDisplayString"])(e.name),9,Mn)],40,xn),e.children.length&&e.isOpenChild?(Object(n["openBlock"])(),Object(n["createBlock"])(c,{key:Math.random(),treeData:e,level:o.level+1},null,8,["treeData","level"])):Object(n["createCommentVNode"])("",!0)],10,Sn))),128))],512)),[[n["vShow"],e.reload]])}Object(n["popScopeId"])();var Dn={name:"",props:["treeData","defaulOpen","level"],setup(e,t){const o=Object(n["reactive"])({reload:!0,childDom:[]}),{proxy:i}=Object(n["getCurrentInstance"])(),r=Object(c["useStore"])();Object(n["onMounted"])(()=>{r.state.clickIng||(e.defaulOpen?r.state.modelStore._geometryload&&e.treeData.children&&e.treeData.children.map(t=>{t.parent||(t.parent=e.treeData),!Ae.judgeCanWatch()&&Ae.getTreeData||(t.isRendered=!0,t.isChecked=!ne.isObjectOrSomeChildHidden(t))}):e.treeData.children&&e.treeData.children.map(t=>{t.parent||(t.parent=e.treeData),e.treeData.isChecked?t.isChecked=!0:t.isChecked=!ne.isObjectOrSomeChildHidden(t),e.treeData.isHighlight&&(t.isHighlight=!0)}))});const a=e=>{var t=0;while(null!==e.parent)t++,e=e.parent;return t},s=e=>{e.isRendered=!0,e.isOpenChild=!e.isOpenChild,Ae.sendCenter(5)},l=e=>{r.commit("setClickIng",!0),e.isChecked=!e.isChecked,e.isChecked?N(e):(B(e),L(e),z(e,!1)),_(e,e.isChecked),ne.showObject(e,e.isChecked),ne.render(),Ae.sendCenter(5)},d=e=>{let t=r.state.modelStore._highLightNode.indexOf(e.uuid);if(t>-1)return t>-1},u=e=>{e.isChecked&&("explode"==r.state.menuStore.menuChoose&&i.$eventBus.emit("structSelectSub"),e.isHighlight=!e.isHighlight,window.structflag=!0,e.isHighlight?(V(e),ne.selectObject(e)):(L(e),ne.deselectObject(e)),z(e,e.isHighlight),ne.render(),i.$eventBus.emit("selectChange"),Ae.sendCenter(5))},m=(e,t)=>{t.isChecked&&(t.isHighlight||u(t))},g=Object(n["toRefs"])(o);return{...g,getLevel:a,toggleOpen:s,toggleVisible:l,checkIsHighLight:d,selectNode:u,rightEvent:m}}};o("39d9");const En=$e()(Dn,[["render",jn],["__scopeId","data-v-c1f46cf6"]]);var kn=En,In={name:"",components:{card:zo,treeNode:kn},setup(){const e=Object(n["reactive"])({modelTreeData:{},searchMode:!1,keyWord:"",hasData:!0,searchData:[],scrollTimer:null,scrollTop:0,structWidth:null,structHeight:null}),t=Object(c["useStore"])(),{menuStore:o}=t.state,{proxy:i,appContext:r}=Object(n["getCurrentInstance"])(),a=Object(n["ref"])(null),s=Object(n["ref"])(null);Object(n["nextTick"])(()=>{r.config.globalProperties.$structureTree=i}),Object(n["onMounted"])(()=>{i.$eventBus.on("loadBack",()=>{v()}),i.$eventBus.on("VolumnChange",()=>{if(Ae.judgeCanWatch()&&t.state.menuStore.structMenu){if(window.structflag)return void(window.structflag=!1);d()}}),i.$eventBus.on("structAllShow",()=>{e.modelTreeData.isChecked||p(e.modelTreeData)}),i.$eventBus.on("nodeShowChange",()=>{Ae.judgeCanWatch()&&v()}),i.$eventBus.on("clearSelectionSub",()=>{Ae.judgeCanWatch()&&(t.state.menuStore.structMenu&&v(),Ae.sendCenter(5))}),i.$eventBus.on("apiCreateTagSub",()=>{t.commit("menuStore/setStructMenu",!1)})}),Object(n["watch"])(()=>t.state.menuStore.structMenu,t=>{("sync"!=nd_viewCtrl.viewMode||nd_viewCtrl.rtmSDK.isRtmOperate)&&t&&(d(),e.structWidth=s.value.cardRef.clientWidth,e.structHeight=s.value.cardRef.clientHeight,Ae.sendCenter(7))});const l=t=>{t&&"{}"!=JSON.stringify(t)&&(R(t,e.modelTreeData),i.$forceUpdate())},d=()=>{e.modelTreeData.isChecked=!ne.isObjectOrSomeChildHidden(e.modelTreeData);let t=ne.getSelectedObjects();e.modelTreeData.isHighlight=!1,z(e.modelTreeData,!1),t&&t.length>0&&t.map(e=>{w(e)})},u=()=>{e.keyWord="",g(),f()},m=()=>{e.modelTreeData.isOpenChild=!e.modelTreeData.isOpenChild,Ae.sendCenter(5)},g=()=>{f(),L(e.modelTreeData),z(e.modelTreeData,!1),""==e.keyWord?e.searchMode=!1:(e.searchData=x(e.keyWord,"name",e.modelTreeData),e.searchData.map(e=>{e.isChecked=!ne.isObjectOrSomeChildHidden(e)}),e.searchMode=!0)},h=e=>{e.isChecked&&("explode"==t.state.menuStore.menuChoose&&i.$eventBus.emit("structSelectSub"),e.isHighlight=!e.isHighlight,window.structflag=!0,e.isHighlight?(V(e),ne.selectObject(e)):(L(e),ne.deselectObject(e)),z(e,e.isHighlight),ne.render(),i.$eventBus.emit("selectChange"),Ae.sendCenter(5))},p=e=>{t.commit("setClickIng",!0),e.isChecked=!e.isChecked,e.isChecked?N(e):(B(e),L(e),z(e,!1)),_(e,e.isChecked),ne.showObject(e,e.isChecked),ne.render(),Ae.sendCenter(5)},v=()=>{nd_viewCtrl.shareInfo&&nd_viewCtrl.shareInfo.camerainfo?e.modelTreeData=ne.getModelTree(!0)||{}:e.modelTreeData=ne.getModelTree()||{},b(e.modelTreeData),e.modelTreeData&&Object.keys(e.modelTreeData).length>0?e.modelTreeData.isOpenChild=!0:e.hasData=!1,e.modelTreeData.isChecked=!ne.isObjectOrSomeChildHidden(e.modelTreeData),e.modelTreeData.isRendered=!0,e.modelTreeData.level=1},w=t=>{P(e.modelTreeData,t)},f=()=>{t.commit("modelStore/setHighLightNode",[]),ne.clearSelection()},b=e=>{e.isRendered&&(e.isHighlight=!1),e.children&&e.children.map(e=>{e.children&&e.isRendered&&C(e)})},C=e=>(e&&(e.isChecked=!ne.isObjectOrSomeChildHidden(e)),e.isHighlight=!1,e.children.map(t=>{t.parent=e,t.children&&C(t)}),e),S=(e,t)=>{t.isChecked&&(t.isHighlight||h(t))},T=t=>{clearTimeout(e.scrollTimer),e.scrollTimer=setTimeout(()=>{e.scrollTop=t.target.scrollTop,Ae.sendCenter(7)},100)},O=t=>{e.scrollTop=t,Object(n["nextTick"])(()=>{a.value.scrollTop=t})},y=e=>{s.value.cardRef.style.width=e.structWidth||null,s.value.cardRef.style.height=e.structHeight||null},M=t=>{e.structWidth=t.cardWidth,e.structHeight=t.cardHeight,Ae.sendCenter(7)},j=()=>{const e=t.state.menuStore;"struct"==e.menuChoose&&t.commit("menuStore/setMenuChoose",""),t.commit("menuStore/setStructMenu",!1),i.$eventBus.emit("structSelectSub")},D=Object(n["toRefs"])(e);return{...D,close:j,exitSearch:u,goToSearch:g,store:t,menuStore:o,toggleVisible:p,selectNode:h,rightEvent:S,toggleOpen:m,coverTreeData:l,getTreeScroll:T,setTreeScroll:O,setTreeSize:y,structSizeDrag:M,scrollRef:a,structCardRef:s}}};o("5226");const An=$e()(In,[["render",Cn],["__scopeId","data-v-3c488a92"]]);var Bn=An,Nn=o("82fc"),_n=o.n(Nn),Ln=o("dd36"),Vn=o.n(Ln),zn=o("9718"),Pn=o.n(zn),Fn=o("0410"),Rn=o.n(Fn),$n=o("0e31"),Un=o.n($n);Object(n["pushScopeId"])("data-v-ca211f08");const Hn=["uuid"],Wn={class:"ts-tcCnt dialog_header"},Gn={class:"Annotation2"},Kn={class:"ndp2-textarea-box-SaveAnnotation"},Zn={class:"textarea-img-wrap"},Yn={class:"textarea-img-box"},qn=["src"],Jn=["placeholder"],Qn={id:"textarea-num"},Xn={class:"ndp2-tool-box ndp2-tool-box-SaveAnnotation"},ei={class:"tool-title"},ti={class:"tool-list"},oi={class:"pen-box"},ni={class:"pathline-img"},ii={class:"arrow-img"},ri={class:"straight-img"},ai={class:"circle-img"},ci={class:"rect-img"},si={class:"line-box"},li={class:"ndp2-line-spread-box"},di={class:"line1-img"},ui={class:"line2-img"},mi={class:"line3-img"},gi={class:"color-box"},hi={class:"ndp2-color-spread-box"},pi={class:"orange-img"},vi={class:"blue-img"},wi={class:"green-img"},fi={class:"grey-img"},bi={class:"add-img-box"},Ci=Object(n["createElementVNode"])("div",{class:"line"},null,-1),Si=["idx"],xi={key:1,class:"save-btn no"},Ti={class:"img-box"},Oi=["src"],yi=["title","innerHTML"],Mi={class:"file-markSub",id:"calcAudioShow"},ji={class:"file-markSub-main audio"},Di={class:"main voice-box"},Ei={class:"voice-block",style:{cursor:"pointer"}},ki={src:Rn.a,width:"12"},Ii={src:Un.a,width:"12"},Ai={class:"voice-number"};function Bi(e,t,i,r,a,c){const s=Object(n["resolveComponent"])("bigimg"),l=Object(n["resolveComponent"])("confirm"),d=Object(n["resolveDirective"])("drag");return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{style:{"z-index":"5"},onContextmenu:t[37]||(t[37]=Object(n["withModifiers"])(()=>{},["right","stop","prevent"]))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("section",{class:"sign-out",onClick:t[0]||(t[0]=(...e)=>c.cancelSave&&c.cancelSave(...e)),onMouseenter:t[1]||(t[1]=(...e)=>c.tagMouseEnter&&c.tagMouseEnter(...e))},Object(n["toDisplayString"])(e.$t("tagExit2")),545),[[n["vShow"],e.tcStep0]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("section",{class:"sign-out",onClick:t[2]||(t[2]=e=>c.exitChecktag("click")),uuid:r.store.state.tagStore.showonlyUuid,id:"tagShow"},Object(n["toDisplayString"])(e.$t("tagExitSee")),9,Hn),[[n["vShow"],e.tcChecktag]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",{class:"tc-box_2 ts-tc comment-tc",id:"tcStep1",onMouseenter:t[34]||(t[34]=(...e)=>c.tagMouseEnter&&c.tagMouseEnter(...e))},[Object(n["createElementVNode"])("div",Wn,[Object(n["createElementVNode"])("div",Gn,[Object(n["createElementVNode"])("section",Kn,[Object(n["createElementVNode"])("div",{class:"textarea-wrap",onMousedown:t[8]||(t[8]=(...e)=>c.inputMouse&&c.inputMouse(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("div",Zn,[Object(n["createElementVNode"])("div",Yn,[Object(n["createElementVNode"])("img",{class:"textarea-img",src:e.imgSrc_add||o("0d85"),alt:"",onClick:t[3]||(t[3]=(...e)=>c.upimgClick&&c.upimgClick(...e))},null,8,qn)]),Object(n["createElementVNode"])("div",{class:"delete-img-btn",onClick:t[4]||(t[4]=(...e)=>c.onDelimg&&c.onDelimg(...e))},Object(n["toDisplayString"])(e.$t("tagDelImg")),1)],512),[[n["vShow"],e.tcTagImg]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("textarea",{id:"annoText",placeholder:e.$t("tagTips"),maxlength:"50",rows:"4","onUpdate:modelValue":t[5]||(t[5]=t=>e.annoText_add=t),onKeyup:t[6]||(t[6]=(...e)=>c.textChange&&c.textChange(...e)),onKeydown:t[7]||(t[7]=Object(n["withKeys"])((...e)=>c.textareaKeydown&&c.textareaKeydown(...e),["enter","native"]))},null,40,Jn),[[n["vModelText"],e.annoText_add]]),Object(n["createElementVNode"])("div",Qn,Object(n["toDisplayString"])(e.annoText_add.length)+"/50",1)],32)]),Object(n["createElementVNode"])("section",Xn,[Object(n["createElementVNode"])("p",ei,Object(n["toDisplayString"])(e.$t("tagDraw")),1),Object(n["createElementVNode"])("div",ti,[Object(n["withDirectives"])(Object(n["createElementVNode"])("div",oi,[Object(n["createElementVNode"])("img",{src:_n.a,alt:"",onClick:t[9]||(t[9]=e=>c.setSpreadType("pen"))})],512),[[n["vShow"],"pen"!=e.spreadType]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",{class:"ndp2-pen-spread-box",onClick:t[16]||(t[16]=Object(n["withModifiers"])((...e)=>c.none&&c.none(...e),["stop"]))},[Object(n["createElementVNode"])("img",{src:_n.a,alt:"",onClick:t[10]||(t[10]=e=>c.setSpreadType(""))}),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",ni,[Object(n["createElementVNode"])("a",{class:Object(n["normalizeClass"])(["pathline",{active:"0"==e.selectIdx}]),onClick:t[11]||(t[11]=Object(n["withModifiers"])(e=>c.tagPenClick(0,"point"),["stop"]))},null,2)],512),[[n["vShow"],"sync"!=e.viewMode]]),Object(n["createElementVNode"])("div",ii,[Object(n["createElementVNode"])("a",{class:Object(n["normalizeClass"])(["arrow",{active:"1"==e.selectIdx}]),onClick:t[12]||(t[12]=Object(n["withModifiers"])(e=>c.tagPenClick(1,"arrow"),["stop"]))},null,2)]),Object(n["createElementVNode"])("div",ri,[Object(n["createElementVNode"])("a",{class:Object(n["normalizeClass"])(["straight",{active:"2"==e.selectIdx}]),onClick:t[13]||(t[13]=Object(n["withModifiers"])(e=>c.tagPenClick(2,"line"),["stop"]))},null,2)]),Object(n["createElementVNode"])("div",ai,[Object(n["createElementVNode"])("a",{class:Object(n["normalizeClass"])(["circle",{active:"3"==e.selectIdx}]),onClick:t[14]||(t[14]=Object(n["withModifiers"])(e=>c.tagPenClick(3,"circle"),["stop"]))},null,2)]),Object(n["createElementVNode"])("div",ci,[Object(n["createElementVNode"])("a",{class:Object(n["normalizeClass"])(["rect",{active:"4"==e.selectIdx}]),onClick:t[15]||(t[15]=Object(n["withModifiers"])(e=>c.tagPenClick(4,"rect"),["stop"]))},null,2)])],512),[[n["vShow"],"pen"==e.spreadType]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",si,[Object(n["createElementVNode"])("img",{src:Vn.a,alt:"",onClick:t[17]||(t[17]=e=>c.setSpreadType("line"))})],512),[[n["vShow"],"line"!=e.spreadType]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",li,[Object(n["createElementVNode"])("img",{src:Vn.a,alt:"",onClick:t[18]||(t[18]=e=>c.setSpreadType(""))}),Object(n["createElementVNode"])("div",di,[Object(n["createElementVNode"])("a",{class:Object(n["normalizeClass"])(["line1",{active:2==e.strokeWidth}]),onClick:t[19]||(t[19]=Object(n["withModifiers"])(e=>c.tagLineClick(2),["stop"]))},null,2)]),Object(n["createElementVNode"])("div",ui,[Object(n["createElementVNode"])("a",{class:Object(n["normalizeClass"])(["line2",{active:4==e.strokeWidth}]),onClick:t[20]||(t[20]=Object(n["withModifiers"])(e=>c.tagLineClick(4),["stop"]))},null,2)]),Object(n["createElementVNode"])("div",mi,[Object(n["createElementVNode"])("a",{class:Object(n["normalizeClass"])(["line3",{active:6==e.strokeWidth}]),onClick:t[21]||(t[21]=Object(n["withModifiers"])(e=>c.tagLineClick(6),["stop"]))},null,2)])],512),[[n["vShow"],"line"==e.spreadType]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",gi,[Object(n["createElementVNode"])("img",{src:Pn.a,alt:"",onClick:t[22]||(t[22]=e=>c.setSpreadType("color"))})],512),[[n["vShow"],"color"!=e.spreadType]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",hi,[Object(n["createElementVNode"])("img",{src:Pn.a,alt:"",onClick:t[23]||(t[23]=e=>c.setSpreadType(""))}),Object(n["createElementVNode"])("div",pi,[Object(n["createElementVNode"])("a",{class:Object(n["normalizeClass"])(["orange",{active:"rgb(255,99,2)"==e.strokeColor}]),onClick:t[24]||(t[24]=Object(n["withModifiers"])(e=>c.tagColorClick("rgb(255,99,2)"),["stop"]))},null,2)]),Object(n["createElementVNode"])("div",vi,[Object(n["createElementVNode"])("a",{class:Object(n["normalizeClass"])(["blue",{active:"rgb(34,131,249)"==e.strokeColor}]),onClick:t[25]||(t[25]=Object(n["withModifiers"])(e=>c.tagColorClick("rgb(34,131,249)"),["stop"]))},null,2)]),Object(n["createElementVNode"])("div",wi,[Object(n["createElementVNode"])("a",{class:Object(n["normalizeClass"])(["green",{active:"rgb(29,231,96)"==e.strokeColor}]),onClick:t[26]||(t[26]=Object(n["withModifiers"])(e=>c.tagColorClick("rgb(29,231,96)"),["stop"]))},null,2)]),Object(n["createElementVNode"])("div",fi,[Object(n["createElementVNode"])("a",{class:Object(n["normalizeClass"])(["grey",{active:"rgb(51,51,51)"==e.strokeColor}]),onClick:t[27]||(t[27]=Object(n["withModifiers"])(e=>c.tagColorClick("rgb(51,51,51)"),["stop"]))},null,2)])],512),[[n["vShow"],"color"==e.spreadType]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",bi,[Object(n["createElementVNode"])("span",{class:Object(n["normalizeClass"])(["add-img",{active:e.activeImg}]),onClick:t[29]||(t[29]=(...e)=>c.upimgClick&&c.upimgClick(...e))},[Object(n["createElementVNode"])("input",{style:{display:"none"},type:"file",onChange:t[28]||(t[28]=(...e)=>c.onChange&&c.onChange(...e)),ref:"picSelectInput",class:"choosepic",accept:"image/gif,image/jpeg,image/jpg,image/png,image/bmp"},null,544)],2)],512),[[n["vShow"],e.showImgTag]]),Ci,Object(n["createElementVNode"])("div",{class:"revoke-box",onClick:t[30]||(t[30]=(...e)=>c.revokeClick&&c.revokeClick(...e))},[Object(n["createElementVNode"])("span",{class:Object(n["normalizeClass"])(["revoke",{no:!e.revokeEnable}])},null,2)]),Object(n["createElementVNode"])("div",{class:"empty-box",onClick:t[31]||(t[31]=(...e)=>c.clearClick&&c.clearClick(...e))},[Object(n["createElementVNode"])("span",{class:Object(n["normalizeClass"])(["empty",{no:!e.emptyEnable}])},null,2)])])]),Object(n["createElementVNode"])("section",{class:"btn-box",idx:e.selectIdx},[Object(n["createElementVNode"])("div",{class:"cancel-btn",onClick:t[32]||(t[32]=(...e)=>c.cancelSaveClick&&c.cancelSaveClick(...e))},Object(n["toDisplayString"])(e.$t("tagCancle")),1),e.saveEnable?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:0,class:"save-btn",onClick:t[33]||(t[33]=(...e)=>c.sureSave&&c.sureSave(...e))},Object(n["toDisplayString"])(e.$t("tagSave")),1)):(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",xi,Object(n["toDisplayString"])(e.$t("tagSave")),1))],8,Si)])])],544),[[n["vShow"],e.tcStep1],[d]]),(Object(n["openBlock"])(),Object(n["createBlock"])(n["Teleport"],{to:e.teleportTo},[Object(n["withDirectives"])(Object(n["createElementVNode"])("section",{class:Object(n["normalizeClass"])(["Annotation-content",{"only-text":e.annoText_check&&!e.imgSrc_check}]),id:"calcPicTextShow"},[Object(n["withDirectives"])(Object(n["createElementVNode"])("div",Ti,[Object(n["createElementVNode"])("img",{class:"Annotation-img",src:e.imgSrc_check,alt:"",onClick:t[35]||(t[35]=(...e)=>c.checkBigimg&&c.checkBigimg(...e))},null,8,Oi)],512),[[n["vShow"],e.imgSrc_check]]),Object(n["createElementVNode"])("p",{class:Object(n["normalizeClass"])(["Annotation-desc",{mt8:e.imgSrc_check&&e.annoText_check}]),title:e.annoText_check,innerHTML:e.annoText_check},null,10,yi)],2),[[n["vShow"],e.tcCheckTI&&"checkaudio"!=e.tcType&&(e.imgSrc_check||c.judgeTxtEmpty(e.annoText_check))]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",Mi,[Object(n["createElementVNode"])("div",ji,[Object(n["createElementVNode"])("div",Di,[Object(n["createElementVNode"])("div",{class:"voice",onClick:t[36]||(t[36]=(...e)=>c.audioClick&&c.audioClick(...e))},[Object(n["createElementVNode"])("label",Ei,[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",ki,null,512),[[n["vShow"],!e.audioPlaying]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("img",Ii,null,512),[[n["vShow"],e.audioPlaying]]),Object(n["createElementVNode"])("span",Ai,Object(n["toDisplayString"])(e.audioTime)+' "',1)])])])])],512),[[n["vShow"],e.tcCheckTI&&"checkaudio"==e.tcType]])],8,["to"])),Object(n["withDirectives"])(Object(n["createVNode"])(s,{ref:"bigImg","img-src":e.imgSrc_check,onClose:c.closeBigimg},null,8,["img-src","onClose"]),[[n["vShow"],e.tcCheckBig]]),Object(n["createVNode"])(l,{ref:"msgBox"},null,512)],32)}Object(n["popScopeId"])();var Ni=o("04b3"),_i=o.n(Ni);const Li={class:"tag-my-dialog dialog",style:{}},Vi=Object(n["createElementVNode"])("div",{class:"dialog-cover"},null,-1),zi={class:"ndp2-dialog-model",style:{width:"90%",height:"90%"}},Pi={class:"dialog-content"},Fi={class:"big-viewer-title"},Ri={class:"big-title"},$i=["data-tip2"],Ui=Object(n["createElementVNode"])("img",{src:_i.a,alt:""},null,-1),Hi=[Ui],Wi={class:"bigimg-content"},Gi={class:"drag-div",id:"drag-div",ref:"dragImgRef2"},Ki=["src"];function Zi(e,t,o,i,r,a){return Object(n["openBlock"])(),Object(n["createElementBlock"])("div",Li,[Vi,Object(n["createElementVNode"])("div",zi,[Object(n["createElementVNode"])("div",Pi,[Object(n["createElementVNode"])("div",Fi,[Object(n["createElementVNode"])("div",Ri,Object(n["toDisplayString"])(e.$t("tagSeeBigImg")),1),Object(n["createElementVNode"])("div",{"data-tip2":e.$t("tagSeeSmallImg"),onClick:t[0]||(t[0]=(...e)=>i.closeClick&&i.closeClick(...e)),style:{cursor:"pointer"}},Hi,8,$i)])]),Object(n["createElementVNode"])("div",Wi,[Object(n["createElementVNode"])("div",Gi,[Object(n["createElementVNode"])("img",{id:"bigImg",class:"big_img",style:Object(n["normalizeStyle"])([{cursor:"pointer"},{transform:"rotateY("+e.overturn+"deg) rotate("+e.rotate+"deg) scale("+e.scale+")"}]),src:o.imgSrc,ondragStart:"return false",alt:""},null,12,Ki)],512)])])])}var Yi={props:{imgSrc:{type:String,default:""}},setup(e){const{proxy:t}=Object(n["getCurrentInstance"])(),o=(Object(c["useStore"])(),Object(n["reactive"])({showBigModel:!1,rotate:0,overturn:0,scale:1})),i=Object(n["ref"])(null);Object(n["watch"])(()=>t.imgSrc,()=>{("sync"!=nd_viewCtrl.viewMode||nd_viewCtrl.rtmSDK.isRtmOperate)&&r()}),Object(n["onBeforeMount"])(()=>{}),Object(n["onMounted"])(()=>{});const r=()=>{o.rotate=0,o.overturn=0,o.scale=1,i.value&&i.value.removeAttribute("style"),a()};function a(){var e=new Image;e.src=t.imgSrc,e.onload=function(){i.value&&i.value.removeAttribute("style");var t=e.width,o=e.height,n=1,r=$("#bigImg").parent().width(),a=$("#bigImg").parent().height();$("#bigImg").css("cursor","default"),o>a||t>r?(n=Math.min(a/o,r/t),$("#bigImg").css("width",n*t)):$("#bigImg").css("width","auto"),o*n<a&&$("#bigImg").parent().css("top",(a-o*n)/2),$("#bigImg").css("opacity",1)}}const s=()=>{ctx.emit("closeSee")},l=e=>{o.rotate=o.rotate+e},d=()=>{180==o.overturn?o.overturn=0:o.overturn=180},u=e=>{e.wheelDelta>0?o.scale=o.scale+.05:o.scale=o.scale-.05,o.scale<1&&(o.scale=1),o.scale>5&&(o.scale=5)},m=()=>{o.showBigModel=!0,o.scale=1};function g(){t.$emit("close")}return{...Object(n["toRefs"])(o),closeClick:g,closeSee:s,rotateClick:l,rotateTurnClick:d,rollImg:u,resetModel:m,resetStyle:r,dragImgRef2:i}}};o("020b");const qi=$e()(Yi,[["render",Zi]]);var Ji=qi,Qi=o("c7ac"),Xi=o.n(Qi);const er={key:0,class:"mask-box",style:{display:"flex"}},tr={class:"dialog-box"},or={class:"warn-box"},nr=Object(n["createElementVNode"])("img",{class:"warn-img",src:Xi.a,alt:""},null,-1),ir={class:"btn-box"};function rr(e,t,o,i,r,a){return e.isShow?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",er,[Object(n["createElementVNode"])("div",tr,[Object(n["createElementVNode"])("img",{class:"close-img",src:_i.a,alt:"",onClick:t[0]||(t[0]=(...e)=>i.closeClick&&i.closeClick(...e))}),Object(n["createElementVNode"])("div",or,[nr,Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.msg),1)]),Object(n["createElementVNode"])("section",ir,[Object(n["withDirectives"])(Object(n["createElementVNode"])("button",{class:"cancel-btn",onClick:t[1]||(t[1]=(...e)=>i.cancelClick&&i.cancelClick(...e))},Object(n["toDisplayString"])(e.$t("cancel")),513),[[n["vShow"],e.showCancel]]),Object(n["createElementVNode"])("button",{class:"save-btn",onClick:t[2]||(t[2]=(...e)=>i.sureClick&&i.sureClick(...e))},Object(n["toDisplayString"])(e.showCancel?e.$t("save"):e.$t("sure")),1)])])])):Object(n["createCommentVNode"])("",!0)}var ar={setup(){const{proxy:e,appContext:t}=Object(n["getCurrentInstance"])();Object(n["nextTick"])(()=>{t.config.globalProperties.$msgBox=e});const o=Object(n["reactive"])({msg:"",isShow:!1,showCancel:!0});var i=()=>{},r=()=>{},a=()=>{};function c(e,t,o,n){this.msg=e,this.isShow=!0,this.showCancel=!0,i=t,r=o,a=n||o}function s(e,t){this.msg=e,this.isShow=!0,this.showCancel=!1,i=t,a=t}function l(){this.isShow=!1,i&&i()}function d(){this.isShow=!1,r&&r()}function u(){this.isShow=!1,a&&a()}return{...Object(n["toRefs"])(o),showMsg:c,showTip:s,cancelClick:d,sureClick:l,closeClick:u}}};const cr=$e()(ar,[["render",rr]]);var sr=cr,lr={setup(){const{proxy:e,appContext:t}=Object(n["getCurrentInstance"])();Object(n["nextTick"])(()=>{t.config.globalProperties.$tag=e});const o=Object(c["useStore"])(),i=Object(n["reactive"])({language:"zh",selectIdx:"-1",teleportTo:"body",annoText_add:"",annoText_check:"",tcChecktag:!1,tcStep0:!1,tcStep1:!1,tagNum:0,tagNum_list:0,svgNum_list:[],ctrlDraw:{tagIdx:0,_openDraw:!1,setPen:function(){}},imgSrc_check:"",imgSrc_add:"",spreadType:"",colors:["rgb(255,99,2)","rgb(34,131,249)","rgb(29,231,96)","rgb(51,51,51)"],color:"orange",strokeColor:"rgb(255,99,2)",strokeWidth:2,activeImg:!1,tcTagImg:!1,tcCheckTI:!1,tcCheckBig:!1,saveEnable:!1,emptyEnable:!1,revokeEnable:!1,setTime0:null,curUuid:"",audioPlaying:!1,audioTime:0,audioObj:null,showImgTag:!0,tagSaveFlag:!1,viewMode:"",interfaceOpenFlag:!1}),r=Object(n["ref"])(null);var a=Object(n["computed"])(()=>o.state.nowTag);return Object(n["watch"])(()=>o.state.modelStore.delTagUuid,t=>{("sync"!=nd_viewCtrl.viewMode||nd_viewCtrl.rtmSDK.isRtmOperate||nd_viewCtrl.rtmSDK.isRtmFreeOper)&&i.curUuid&&e.exitChecktag()}),Object(n["watch"])(()=>i.annoText_add,t=>{t&&e.onCheckSaveEable()}),{...Object(n["toRefs"])(i),store:o,tagList:a,picSelectInput:r}},components:{bigimg:Ji,confirm:sr},computed:{name(){return this.data}},mounted(){var e=document.getElementById("viewer");e&&(this.ctrlDraw=new Me(e,this),window.ctrlDraw=this.ctrlDraw),this.$eventBus.on("loadComplete",()=>{this.listenersCoreviewEvent(),this.store.state.modelStore.annotationTagId&&setTimeout(()=>{ne.selectAnnotation(this.store.state.modelStore.annotationTagId),this.store.commit("modelStore/setAnnotationTagId","")},300)}),this.language=nd_viewCtrl.language||"zh",this.viewMode=nd_viewCtrl.viewMode,this.$eventBus.on("addtagEvent",e=>{this.tcChecktag&&this.exitChecktag(!0),this.showImgTag=!e,this.startDrawTag()}),this.$eventBus.on("closeTagSeeSub",e=>{this.exitChecktag()}),this.$eventBus.on("apiCreateTagSub",e=>{this.tcCheckTI&&this.exitChecktag(),(this.tcStep1||this.tcStep0)&&this.cancelSave()}),this.language="zh",setTimeout(()=>{this.teleportTo="#vueMain"})},methods:{pageChangedBack(){},listenersCoreviewEvent(){if(ne._viewer){if(!this.listenered){this.listenered=!0;var e=this;this.addViewListen(),ne._viewer.addEventListener("annotationSelectedEvent",t=>{if(e.tcChecktag&&!e.interfaceOpenFlag)return void(e.interfaceOpenFlag=!1);this.audioObj&&this.audioObj.pause(),ne.clearSelection(),e.tcType="",e.tcAnnotext=!1;const o=document.getElementById("tagCancelButton"),n=document.getElementById("tagSaveButton"),i=document.getElementById("tagTooltips");o&&(o.style.display="none"),n&&(n.style.display="none"),i&&(i.style.display="none"),ne._viewer.setOperatorByID("OpPan"),ne.setMeasureOpType(""),e.store.commit("menuStore/setMenuChoose",""),e.store.commit("menuStore/setMenuChoose2",""),e.store.commit("menuStore/setMenuChoose3",""),e.store.commit("menuStore/setShowOneMenu",!0),e.store.commit("menuStore/setStructMenu",!1),e.store.commit("menuStore/setUnitMenu",!1),e.store.commit("menuStore/setShowAllMenu",!1),e.store.commit("modelStore/setScaleDialog",!1),e.store.commit("menuStore/setShowManyConfig",!0),setTimeout(()=>{NDSWebViewer.SETTING.enableArrowKeyOp=!0},200),e.$eventBus.emit("openTagPointSub"),e.$eventBus.emit("closeShowSetting"),e.$eventBus.emit("closeMultiple"),e.$eventBus.emit("closeAttr"),e.interfaceOpenFlag=!1,e.curUuid=t.userData.uuid;var r=e.store.state.modelStore.nowTag,a=r.filter((function(t){return t.state.uuid==e.curUuid}))[0];e.curTagInfo=a,e.$emit("tagOperate","checkTag"),e.tcCheckTI=!1,e.imgSrc_check="",e.annoText_check="",e.tcCheckBig=!1;var c=a;"AudioAnno"==c.state.type?(e.tcCheckTI=!0,e.checkTag_Audio(c,c.imgURL)):(e.tcType="checkpic",e.imgSrc_check=c.imgURL,e.annoText_check=b(c.text||""),e.tcCheckTI=!0,e.store.state.modelStore.needOpenImg&&(e.checkBigimg(),e.store.commit("modelStore/setNeedOpenImg",!1))),e.tcStep0=!1,e.tcStep1=!1,e.imgSrc_add=!1,e.annoText_add=!1,e.tcTagImg=!1,e.chectTag_Normal(c),nd_viewCtrl&&nd_viewCtrl.beSelectTag&&nd_viewCtrl.beSelectTag(a.state.uuid)});var t=document.querySelector(".canvas2DBIM"),o=function(t){e.tcChecktag&&e.chectTag_Normal(e.curTagInfo)},n=function(){t.removeEventListener("touchmove",o),t.removeEventListener("touchend",n),t.removeEventListener("touchcancle",n)};t.addEventListener("touchstart",(function(){t.addEventListener("touchmove",o,!1),t.addEventListener("touchend",n,!1),t.addEventListener("touchcancle",n,!1)}),!1)}}else setTimeout(()=>{this.listenersCoreviewEvent()},500)},addViewListen(){var e=this,t=document.querySelector(".canvas2DBIM"),o=function(t){e.tcChecktag&&e.ctrlDraw.resizeTags()},n=function(){t.removeEventListener("mousemove",o),t.removeEventListener("mouseup",n)};t.addEventListener("mousedown",(function(){t.addEventListener("mousemove",o,!1),t.addEventListener("mouseup",n,!1)}),!1),t.removeEventListener("DOMMouseScroll",o),t.removeEventListener("mousewheel",o),t.addEventListener("mousewheel",o,!1),t.addEventListener("DOMMouseScroll",o,!1),document.addEventListener("keydown",(function(e){switch(e.keyCode){case 37:case 39:setTimeout(()=>{o()},200);break}}))},textareaKeydown(){let e=window.event||arguments[0];if("Enter"==e.key||"Enter"==e.code||13==e.keyCode)return e.returnValue=!1,!1},textChange(){setTimeout(()=>{this.onCheckSaveEable()},0)},onCheckSaveEable(){var e=!1;this.annoText_add.trim().length>0&&(e=!0);var t=!1;this.ctrlDraw.drawInfo.list.length>1&&(e=!0,t=!0),this.imgSrc_add&&(e=!0),this.saveEnable=e,this.revokeEnable=t,this.emptyEnable=t},onShowstep1(){this.tcStep0=!1,window._this=this,this.selectIdx="-1",this.spreadType="",this.setTime0&&clearTimeout(this.setTime0),this.tcStep1=!0,NDSWebViewer.SETTING.enableArrowKeyOp=!1,this.ctrlDraw._openDraw=!1,this.setTime0=setTimeout(()=>{$("#annoText").focus(),"sync"==this.viewMode?this.tagPenClick(1,"arrow"):this.tagPenClick(0,"point"),this.ctrlDraw._openDraw=!1},800)},setSpreadType(e){this.spreadType=e,this.activeImg=!1,this.ctrlDraw._openDraw=!!e},checkBigimg(){this.tcCheckBig=!0,this.$refs.bigImg.resetStyle(),Ae.sendCenter(6,{tcCheckBig:!0,openTagId:this.curTagInfo.state.uuid})},closeBigimg(){this.tcCheckBig=!1,Ae.sendCenter(6,{tcCheckBig:!1,openTagId:this.curTagInfo.state.uuid})},revokeClick(){this.revokeEnable&&(this.ctrlDraw&&this.ctrlDraw.revoke(),this.onCheckSaveEable())},clearClick(){this.emptyEnable&&(this.ctrlDraw&&this.ctrlDraw.clear(),this.onCheckSaveEable())},upimgClick(){this.activeImg=!0,setTimeout(()=>{this.activeImg=!1},1e3),this.$refs.picSelectInput.value="",this.picSelectInput.dispatchEvent(new MouseEvent("click"))},none(){},onDelimg(){this.imgSrc_add="",this.tcTagImg=!1,this.activeImg=!1,this.onCheckSaveEable()},onChange(e){var t=this,o=e.target.files[0];if(o){var n=o.name.slice(o.name.lastIndexOf(".")+1,o.name.length);if(n=n.toLowerCase(),-1!=["gif","jpeg","jpg","png","bmp"].indexOf(n))if(o.size>5242880)this.$msgBox.showTip(this.$t("tagTip2"));else{var i=new FileReader;i.onload=function(e){t.imgSrc_add=e.target.result,t.tcTagImg=!0,t.onCheckSaveEable()},i.readAsDataURL(o),t.activeImg=!1}else this.$msgBox.showTip(this.$t("tagTip3"))}},chectTag_Normal:function(e){this.ctrlDraw.showTags(e),this.showTag_only(e),this.tcChecktag=!0},resetTagMsg(){this.selectIdx=-1,this.imgSrc_add="",this.annoText_add="",this.tcTagImg=!1,this.saveEnable=!1,this.revokeEnable=!1,this.emptyEnable=!1},startDrawTag(e){this.setTime0&&clearTimeout(this.setTime0),this.store.commit("tagStore/setTagshow",!1),this.resetTagMsg(),this.showTagTips(),this.tcStep0=!0,this.tcTagImg=!1,this.imgSrc_add="",this.tcStep1=!1,this.imgSrc_add="",this.annoText_add="",this.tagNum=this.store.state.modelStore.allTag.length+1,this.saveEnable=!1,this.revokeEnable=!1,this.emptyEnable=!1,this.ctrlDraw.setPen("text"),this.ctrlDraw.openDraw(this.tagNum),this.tagNum_list=0,setTimeout(()=>{$("#annoText").focus()},500)},showTagTips(){const e=document.getElementById("tagTooltips");e.style.display="block",e.innerHTML=this.$t("choosePoint"),e.style.left="-1000px"},hideTagTips(){const e=document.getElementById("tagTooltips");e.style.display="none"},sureSave:function(){if(this.tagSaveFlag)return;var e=this;e.ctrlDraw.closeDraw(),e.tagSaveFlag=!0,$(".nd-selector-box").css("display","none");var t=e.ctrlDraw.drawInfo;t.text=encodeURIComponent(this.annoText_add);const o=()=>{e.tcStep0=!1,e.tcStep1=!1,e.tcTagImg=!1,e.annoText_add="",e.imgSrc_add="",e.store.commit("menuStore/setMenuChoose",""),NDSWebViewer.SETTING.enableArrowKeyOp=!0,e.tagSaveFlag=!1,this.$eventBus.emit("openTagPointSub")};if("yzp"==nd_viewCtrl.viewMode){var n=document.createElement("canvas");n.style.width=$("#t_container").width()+"px",n.style.height=$("#t_container").height()+"px",n.id="drawImg",$("#t_container").append(n),$(".ico-sign").hide();var i=new Image;i.setAttribute("crossOrigin","anonymous"),ne._viewer.getScreenCapture((function(e){i.src=e})),i.onload=function(){n.width=i.width,n.height=i.height,n.getContext("2d").drawImage(i,0,0),fe((function(n){e.tcTagImg&&e.imgSrc_add?e.addTag(t,e.imgSrc_add,n):e.addTag(t,"",n),o()}))}}else e.tcTagImg&&e.imgSrc_add?e.addTag(t,this.imgSrc_add):e.addTag(t),o()},cancelSaveClick(){var e=this;this.onCheckSaveEable(),this.saveEnable?this.$msgBox.showMsg(this.$t("tagSaveConfirm2"),(function(){e.sureSave()}),(function(){e.cancelSave()})):this.cancelSave()},cancelSave(e){this.$emit("tagOperate","cancel"),this.hideTagTips(),this.ctrlDraw&&this.ctrlDraw.destroy(),this.tcChecktag=!1,this.store.commit("tagStore/setTagdrawing",!1),1!=e&&this.showTag(),this.saveEnable=!1,this.tcStep1=!1,this.tcStep0=!1,this.selectIdx=-1,this.tcType="",this.imgSrc_check="",this.imgSrc_add="",1!=e&&(this.store.commit("menuStore/setShowOneMenu",!0),this.store.state.printMode||(this.store.commit("menuStore/setShowManyConfig",!0),this.store.commit("menuStore/setShowAllMenu",!0),setTimeout(()=>{Ae.sendCenter(2),Ae.sendCenter(3),Ae.endTagChange()},200),"sync"==nd_viewCtrl.viewMode&&this.$eventBus.emit("openTagPointSub"))),NDSWebViewer.SETTING.enableArrowKeyOp=!0},exitChecktag(e){this.tcCheckBig=!1,this.tcChecktag=!1,this.tcCheckTI=!1,this.annoText_check="",this.imgSrc_check="",this.imgSrc_add="",this.curUuid="",ne._viewer.resetSelectAnnotation(),this.audioObj&&this.audioObj.pause();try{this.ctrlDraw&&this.ctrlDraw.destroy(),this.store.commit("tagStore/setTagdrawing",!1),this.cancelSave(e)}catch(n){}if(1!=e){this.showTag();var t=document.querySelector(".imgAnnotationLogoSelected"),o=document.querySelectorAll(".imgAnnotationLogo");for(let e=0;e<o.length;e++){let n=o[e].getAttribute("uuid");t&&!n&&(n=t.getAttribute("uuid")),n&&ne._viewer.setAnnotationType("annotationLogo",n)}this.store.commit("setShowAreaTips",!0),this.store.commit("menuStore/setShowAllMenu",!0),this.store.commit("menuStore/setShowManyConfig",!0),this.$eventBus.emit("openTagPointSub")}nd_viewCtrl&&nd_viewCtrl.exitTag&&nd_viewCtrl.exitTag(),e&&"click"==e&&Ae.sendCenter(6,{closeTag:!0,tcCheckBig:!1})},showTag_only:function(e){this.hideTag(),ne._viewer.setAnnotationsVisibilityByUuid(1,e.state.uuid),Ae.sendCenter(6,{openTagId:e.state.uuid})},hideTag:function(){this.store.state.modelStore.nowTag.length>0&&(ne._viewer.setAnnotationsVisibility(0),this.store.commit("tagStore/setTagshow",!1))},showTag:function(){this.store.state.modelStore.nowTag.length>0&&(this.store.state.printMode||setTimeout(()=>{ne._viewer.setAnnotationsVisibility(1)},200),this.store.commit("tagStore/setTagshow",!0))},checkTag_Audio:function(e,t){this.tcChecktag&&(this.tcChecktag=!1,this.curTagInfo=!1,this.tcType="",this.store.commit("tagStore/setTagdrawing",!1)),this.tcType="checkaudio";var o=this;this.audioPlaying=!1;try{this.audioTime=0,e.state.stime&&(this.audioTime=e.state.stime);var n=document.createElement("audio");n.pause(),n.src=t||e.src,n.load(),n.oncanplay=function(){},n.onloadedmetadata=function(){n.play(),n.paused||(o.audioPlaying=!0),n.paused&&document.querySelector(".voice").click()},n.addEventListener("ended",(function(){o.audioPlaying=!1}),!1),this.audioObj=n}catch(i){}},audioClick:function(){try{this.audioObj.currentTime=0,this.audioPlaying=!0,this.audioObj.play().catch(e=>{this.audioPlaying=!1})}catch(e){this.audioPlaying=!1}},tagPenClick(e,t){this.selectIdx=e,this.ctrlDraw&&(this.ctrlDraw._openDraw=!0,this.ctrlDraw.setPen(t))},tagLineClick(e){this.strokeWidth=e,this.ctrlDraw&&(this.ctrlDraw._openDraw=!0,this.ctrlDraw.setLineWidth(e))},tagColorClick(e){this.strokeColor=e,this.ctrlDraw&&(this.ctrlDraw._openDraw=!0,this.ctrlDraw.setColor(e))},addTag:function(e,t,o){var n=this,i=n.store.state.modelStore.allTag.length+1,r=he(e.cx,e.cy,e.cz),a=ve(r.x,r.y);function c(){e.index=i,ne._viewer.addAnnotation(e),ne._viewer.setAnnotationsVisibility(1),n.store.commit("modelStore/addTag",e),n.store.commit("tagStore/setTagshow",!0),n.exitDrawtag(),n.$emit("tagOperate","sure"),n.store.commit("menuStore/setShowOneMenu",!0),n.store.commit("menuStore/setShowManyConfig",!0),n.store.commit("menuStore/setShowAllMenu",!0),"sync"==nd_viewCtrl.viewMode&&window.nd_rtmReceiveAllMsg(),n.ctrlDraw&&n.ctrlDraw.destroy(),setTimeout(()=>{Ae.sendCenter(2),Ae.sendCenter(3),Ae.sendCenter(6)},300),Ae.endTagChange()}a=Object.assign({},a),a.version="5",a.uuid=A(),a.origiType="ImageAnno",e.state=a,e.modelName=this.store.state.modelStore.nowConfigName,e.tagId=a.uuid,"yzp"==nd_viewCtrl.viewMode&&(e.screenShotImg=o||""),t?nd_viewCtrl&&nd_viewCtrl.addPicTag&&nd_viewCtrl.addPicTag(e,t,(function(t){a.index=i,e.imgURL=t,c()})):nd_viewCtrl&&nd_viewCtrl.addTags&&nd_viewCtrl.addTags(e,"",(function(){a.index=i,c()}))},updateTagText(e,t){e==this.curUuid&&(this.annoText_check=t)},exitDrawtag(){ne._viewer.displayViewBox(!0),this.ctrlDraw&&this.ctrlDraw.destroy(),this.curTagInfo=!1,this.store.commit("menuStore/setShowManyConfig",!0)},inputMouse(e){e.stopPropagation()},tagMouseEnter(){const e=document.getElementById("tagTooltips");e&&(e.style.left="-1000px")},judgeTxtEmpty(e){return!e.match(/^[ ]*$/)},apiCreateTag(e,t){let o=this.store.state.modelStore.allTag.length+1,n=pe(e.x,e.y),i=A(),r={text:e.text,imgURL:e.imgURL,state:{},tagId:i,modelName:this.store.state.modelStore.nowConfigName,cx:n.cx,cy:n.cy,cz:n.cz,index:o};r.state=ve(e.x,e.y),r.state.uuid=i,r.state.origiType="ImageAnno",r.state.index=o;let a=JSON.parse(JSON.stringify(r));t&&t(a,()=>{ne._viewer.addAnnotation(r),ne._viewer.setAnnotationsVisibility(1),this.store.commit("modelStore/addTag",r),this.store.commit("tagStore/setTagshow",!0)})}}};o("fba1");const dr=$e()(lr,[["render",Bi],["__scopeId","data-v-ca211f08"]]);var ur=dr,mr=o("7143"),gr=o.n(mr),hr=o("25a4"),pr=o.n(hr);Object(n["pushScopeId"])("data-v-51c06731");const vr={class:"header"},wr={class:"unit-content"},fr={src:gr.a,alt:""},br={src:pr.a,alt:""},Cr={src:gr.a,alt:""},Sr={src:pr.a,alt:""},xr={src:gr.a,alt:""},Tr={src:pr.a,alt:""};function Or(e,t,o,i,r,a){const c=Object(n["resolveComponent"])("card");return Object(n["openBlock"])(),Object(n["createBlock"])(c,{class:"ndp2-my-page unit-card",onClose:i.close},{header:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",vr,Object(n["toDisplayString"])(e.$t("pcUnitIcon")),1)]),default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",wr,[Object(n["createElementVNode"])("div",{onClick:t[0]||(t[0]=e=>i.unitChange("")),class:"uni-flex flex-start-radio"},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",fr,null,512),[[n["vShow"],""==i.modelStore.unit]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("img",br,null,512),[[n["vShow"],""!=i.modelStore.unit]]),Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.$t("pcUnitType1")),1)]),Object(n["createElementVNode"])("div",{onClick:t[1]||(t[1]=e=>i.unitChange("mm")),class:"uni-flex flex-start-radio"},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",Cr,null,512),[[n["vShow"],"mm"==i.modelStore.unit]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("img",Sr,null,512),[[n["vShow"],"mm"!=i.modelStore.unit]]),Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.$t("pcUnitType2")),1)]),Object(n["createElementVNode"])("div",{onClick:t[2]||(t[2]=e=>i.unitChange("in")),class:"uni-flex flex-start-radio"},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",xr,null,512),[[n["vShow"],"in"==i.modelStore.unit]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("img",Tr,null,512),[[n["vShow"],"in"!=i.modelStore.unit]]),Object(n["createTextVNode"])(" "+Object(n["toDisplayString"])(e.$t("pcUnitType3")),1)])])]),_:1},8,["onClose"])}Object(n["popScopeId"])();var yr={name:"",components:{card:zo},setup(){const e=Object(n["reactive"])({}),t=Object(c["useStore"])(),{modelStore:o}=t.state,{proxy:i}=Object(n["getCurrentInstance"])();Object(n["onBeforeMount"])(()=>{}),Object(n["onMounted"])(()=>{});const r=()=>{t.commit("menuStore/setUnitMenu",!1),t.commit("menuStore/setMenuChoose","")},a=e=>{switch(t.commit("modelStore/setUnitType",e),ne&&ne._viewer.setDispalyModelUnit(e),e){case"":f("pcUnitType1");break;case"mm":f("pcUnitType2");break;case"in":f("pcUnitType3");break;default:break}Ae.sendCenter(4)},s=Object(n["toRefs"])(e);return{...s,modelStore:o,unitChange:a,close:r}}};o("1cb3");const Mr=$e()(yr,[["render",Or],["__scopeId","data-v-51c06731"]]);var jr=Mr,Dr=o("f18e"),Er=o.n(Dr),kr=o("59ce"),Ir=o.n(kr),Ar=o("397f"),Br=o.n(Ar),Nr=o("d84c"),_r=o.n(Nr);Object(n["pushScopeId"])("data-v-2afd50db");const Lr={class:"header"},Vr={class:"flex-start"},zr=["placeholder"],Pr={class:"search-radio",src:Er.a,alt:""},Fr={class:"search-radio",src:Ir.a,alt:""},Rr={class:"search-type-txt"},$r={class:"search-radio",src:Er.a,alt:""},Ur={class:"search-radio",src:Ir.a,alt:""},Hr={class:"search-type-txt"},Wr={class:"area-ico",src:Br.a,alt:""},Gr={class:"area-ico",src:_r.a,alt:""},Kr={class:"search-type-txt"},Zr={key:0},Yr={class:"result-content",id:"ndFindScrollRef"},qr=["onClick","id"],Jr={class:"result-index"},Qr=["title"],Xr={class:"flex-between"},ea={class:"result-content"},ta={class:"no-result"};function oa(e,t,o,i,r,a){const c=Object(n["resolveComponent"])("card");return Object(n["withDirectives"])((Object(n["openBlock"])(),Object(n["createBlock"])(c,{class:"textFind-card",onClose:i.close},{header:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",Lr,Object(n["toDisplayString"])(e.$t("textFind")),1)]),default:Object(n["withCtx"])(()=>[Object(n["createElementVNode"])("div",Vr,[Object(n["createElementVNode"])("div",null,Object(n["toDisplayString"])(e.$t("textFindTxt1")),1),Object(n["withDirectives"])(Object(n["createElementVNode"])("input",{class:"search-inp",onKeyup:t[0]||(t[0]=Object(n["withKeys"])((...e)=>i.searchList&&i.searchList(...e),["enter"])),"onUpdate:modelValue":t[1]||(t[1]=t=>e.keyword=t),type:"text",placeholder:e.$t("textFindTxt9"),maxlength:"50"},null,40,zr),[[n["vModelText"],e.keyword,void 0,{trim:!0}]]),Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["search-btn",{disable:!e.keyword}]),onClick:t[2]||(t[2]=(...e)=>i.searchList&&i.searchList(...e))},Object(n["toDisplayString"])(e.$t("search2")),3)]),Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["flex-start",{en:e.isEn}])},[Object(n["createElementVNode"])("div",null,Object(n["toDisplayString"])(e.$t("textFindTxt2")),1),Object(n["createElementVNode"])("div",{class:"flex-start radio-list",onClick:t[3]||(t[3]=(...e)=>i.chooseAll&&i.chooseAll(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",Pr,null,512),[[n["vShow"],1!=e.findType]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("img",Fr,null,512),[[n["vShow"],1==e.findType]]),Object(n["createElementVNode"])("div",Rr,Object(n["toDisplayString"])(e.$t("textFindTxt3")),1)]),Object(n["createElementVNode"])("div",{class:"flex-start radio-list",onClick:t[4]||(t[4]=(...e)=>i.chooseArea&&i.chooseArea(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",$r,null,512),[[n["vShow"],2!=e.findType]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("img",Ur,null,512),[[n["vShow"],2==e.findType]]),Object(n["createElementVNode"])("div",Hr,Object(n["toDisplayString"])(e.$t("textFindTxt4")),1)]),Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["flex-start area-btn",{hasArea:2==e.findType}]),onClick:t[5]||(t[5]=(...e)=>i.toChooseArea&&i.toChooseArea(...e))},[Object(n["withDirectives"])(Object(n["createElementVNode"])("img",Wr,null,512),[[n["vShow"],2!=e.findType]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("img",Gr,null,512),[[n["vShow"],2==e.findType]]),Object(n["createElementVNode"])("div",Kr,Object(n["toDisplayString"])(e.$t("textFindTxt5")),1)],2)],2),e.findList.length>0||e.hasSearch?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",Zr,[Object(n["createElementVNode"])("div",null,Object(n["toDisplayString"])(e.$t("textFindTxt6"))+"("+Object(n["toDisplayString"])(e.findList.length)+")",1),Object(n["withDirectives"])(Object(n["createElementVNode"])("ul",Yr,[(Object(n["openBlock"])(!0),Object(n["createElementBlock"])(n["Fragment"],null,Object(n["renderList"])(e.findList,t=>(Object(n["openBlock"])(),Object(n["createElementBlock"])("li",{class:Object(n["normalizeClass"])(["result-item",{active:t.index==e.chooseItem}]),onClick:e=>i.chooseText(t),key:t.index,id:"finlist-"+t.index},[Object(n["createElementVNode"])("div",Jr,Object(n["toDisplayString"])(t.index),1),Object(n["createElementVNode"])("div",{class:"result-text",title:t.content},Object(n["toDisplayString"])(t.content),9,Qr)],10,qr))),128))],512),[[n["vShow"],e.findList.length>0]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("div",Xr,[Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["foot-btn",{disable:1==e.chooseItem}]),onClick:t[6]||(t[6]=(...e)=>i.preClick&&i.preClick(...e))},Object(n["toDisplayString"])(e.$t("textFindTxt7")),3),Object(n["createElementVNode"])("div",{class:Object(n["normalizeClass"])(["foot-btn",{disable:e.chooseItem==e.findList.length}]),onClick:t[7]||(t[7]=(...e)=>i.nextClick&&i.nextClick(...e))},Object(n["toDisplayString"])(e.$t("textFindTxt8")),3)],512),[[n["vShow"],e.findList.length>1]]),Object(n["withDirectives"])(Object(n["createElementVNode"])("ul",ea,[Object(n["createElementVNode"])("li",ta,Object(n["toDisplayString"])(e.$t("textFindNoResult")),1)],512),[[n["vShow"],0==e.findList.length]])])):Object(n["createCommentVNode"])("",!0)]),_:1},8,["onClose"])),[[n["vShow"],i.menuStore.textFindMenu]])}Object(n["popScopeId"])();var na={name:"",components:{card:zo},setup(){const e=Object(n["reactive"])({isEn:!1,findType:1,openChooseArea:!1,chooseArea:!1,chooseAreaPoint:{},chooseItem:0,findList:[],keyword:"",hasSearch:!1}),t=Object(c["useStore"])(),{proxy:o}=Object(n["getCurrentInstance"])(),{menuStore:i}=t.state;Object(n["onBeforeMount"])(()=>{}),Object(n["onMounted"])(()=>{e.isEn="en"==o.$i18n.locale}),Object(n["watch"])(()=>i.menuChoose,(e,o)=>{"textFind"!=e&&"textFind"==o&&(ne._viewer.setAnnotationsVisibility(t.state.tagStore.tagShow),p(),ne._viewer.exitTextFind(),ne._viewer.clearSelectArea(),t.commit("menuStore/setShowManyConfig",!0))}),o.$eventBus.on("apiCreateTagSub",()=>{r()}),o.$eventBus.on("endChooseAreaSub",o=>{e.chooseAreaPoint=o,t.commit("menuStore/setTextFindMenu",!0),t.commit("menuStore/setShowOneMenu",!0),e.chooseArea=!0,ne._viewer.selectArea(o.pointStart,o.pointEnd)});const r=()=>{t.commit("menuStore/setMenuChoose",""),t.commit("menuStore/setTextFindMenu",!1)},a=()=>{e.findType=1,ne._viewer.clearSelectArea(),h()},s=()=>{e.findType=2,h()},l=()=>{e.keyword&&(e.hasSearch=!0,ne._viewer.exitTextFind(),e.keyword?(e.findList=ne._viewer.findText(e.keyword,2==e.findType),e.findList[0]&&u(e.findList[0])):e.findList=[])},d=()=>{1!=e.findType&&(t.commit("menuStore/setTextFindMenu",!1),t.commit("menuStore/setShowOneMenu",!1),o.$eventBus.emit("startChooseAreaSub"),e.openChooseArea=!0,ne._viewer.clearSelectArea(),h())},u=t=>{e.chooseItem=t.index;let o="finlist-"+t.index;setTimeout(()=>{let e=document.getElementById(o),t=document.getElementById("ndFindScrollRef"),n=e.offsetTop;n-260>0&&t.scrollTo({top:n-260,behavior:"smooth"})}),ne._viewer.textLocation(t.index)},m=()=>{if(e.chooseItem<=1)return;let t=e.chooseItem-2;u(e.findList[t])},g=()=>{if(e.chooseItem>=e.findList.length)return;let t=e.chooseItem;u(e.findList[t])},h=()=>{e.hasSearch=!1,e.findList=[],ne._viewer.exitTextFind()},p=()=>{e.findType=1,e.chooseArea=!1,e.chooseAreaPoint={},e.findList=[],e.keyword="",e.hasSearch=!1},v=Object(n["toRefs"])(e);return{...v,close:r,searchList:l,menuStore:i,chooseText:u,preClick:m,nextClick:g,toChooseArea:d,chooseAll:a,chooseArea:s}}};o("eb18");const ia=$e()(na,[["render",oa],["__scopeId","data-v-2afd50db"]]);var ra=ia;function aa(e,t,o,i,r,a){return e.startDraw?(Object(n["openBlock"])(),Object(n["createElementBlock"])("div",{key:0,class:"text-draw",id:"textFindDraw",onMousedown:t[0]||(t[0]=(...e)=>i.mousedown&&i.mousedown(...e)),onMouseup:t[1]||(t[1]=(...e)=>i.mouseup&&i.mouseup(...e)),onMousemove:t[2]||(t[2]=(...e)=>i.mousemove&&i.mousemove(...e))},[Object(n["createElementVNode"])("div",{class:"frame",style:Object(n["normalizeStyle"])(e.frameStyle)},null,4),Object(n["createElementVNode"])("div",{class:"tips",style:Object(n["normalizeStyle"])(e.tipStyle)},Object(n["toDisplayString"])(e.$t("textFindCursor")),5)],32)):Object(n["createCommentVNode"])("",!0)}var ca={name:"",setup(){const e=Object(n["reactive"])({startDraw:!1,pointStart:{},pointEnd:{},frameStyle:{width:"0",height:"0",left:"-2px",top:"-2px"},tipStyle:{left:"-100px",top:"-100px"}}),{proxy:t}=(Object(c["useStore"])(),Object(n["getCurrentInstance"])());t.$eventBus.on("startChooseAreaSub",()=>{a(),e.startDraw=!0});const o=t=>{e.pointStart={x:t.x,y:t.y},e.frameStyle.left=t.x+"px",e.frameStyle.top=t.y+"px"},i=o=>{e.pointEnd={x:o.x,y:o.y},e.startDraw=!1,t.$eventBus.emit("endChooseAreaSub",{pointStart:e.pointStart,pointEnd:e.pointEnd})},r=t=>{let o=t.x-e.pointStart.x,n=t.y-e.pointStart.y;o<0&&(e.frameStyle.left=t.x+"px"),n<0&&(e.frameStyle.top=t.y+"px"),e.frameStyle.width=Math.abs(o)+"px",e.frameStyle.height=Math.abs(n)+"px",e.tipStyle.left=t.x+24+"px",e.tipStyle.top=t.y+26+"px"},a=()=>{e.startDraw=!1,e.pointStart={},e.pointEnd={},e.frameStyle={width:"0",height:"0",left:"-2px",top:"-2px"},e.tipStyle={left:"-100px",top:"-100px"}},s=Object(n["toRefs"])(e);return{...s,mousedown:o,mouseup:i,mousemove:r}}};o("baa4");const sa=$e()(ca,[["render",aa],["__scopeId","data-v-bd92ec56"]]);var la=sa;let da,ua=null,ma=null;var ga={install(e){da=e},components:{MsgTip:He,Tips:Ye,Loading:tt,BottomBtn:rn,configSwitch:fn,structureTree:Bn,tagCom:ur,unitChange:jr,coorCover:rt,textFind:ra,textDraw:la},props:{viewCtrl:{type:Object,default:{configNum:-1,bgColor:15921906,autoPlay:0,showShadow:!1,allowEditAttr:!1,tagRelateConfig:!0,configNum:-1,askAccuracy:!1,hideItem:{userdyAttr:!0,structTree:!0,pmi:!0,measure:!0},viewerReqHeader:"",hidebtnCfg:[]}}},setup(){const e=Object(n["reactive"])({language:"en",askAlready:!1,unshowtag:!0,isLoaded:!1,broadTimer:null,logoConfig:"",logoConfigStyle:{}}),t=Object(c["useStore"])(),{menuStore:o,modelStore:i}=t.state,{proxy:r}=Object(n["getCurrentInstance"])(),{locale:a}=Object(s["useI18n"])();ua=r,ma=t,window.nd_viewCtrl||(window.nd_viewCtrl=r.viewCtrl),Object(n["onMounted"])(()=>{h();const e=async e=>{try{e&&nd_viewCtrl.initLoad&&nd_viewCtrl.initLoad(),!e&&nd_viewCtrl.loadFaild&&nd_viewCtrl.loadFaild(),e&&(g(),setTimeout(()=>{se.readyForDom(()=>{t.commit("showBottomBtn"),t.commit("showCtrlBtn")})},0)),ne._viewer.setDispalyModelUnit(t.state.modelStore.unit),r.initRTM(),t.commit("setModelIsLoaded",!0),r.$eventBus.emit("loadAndInitSub")}catch(o){}};r.$eventBus.on("loadBack",e)}),nd_viewCtrl.hideItem&&t.commit("modelStore/setHideItem",nd_viewCtrl.hideItem),a.value=nd_viewCtrl.language||"zh";const l=window.navigator.userAgent.toLocaleLowerCase(),d=/iphone|ipad|ipod/.test(l);function u(e){r.$eventBus||(r.$eventBus=da.$eventBus),m();var t=e.shareInfo,o=e.shareInfo&&e.shareInfo.camerainfo?e.shareInfo.camerainfo:null;ne.loadModelView(e.modejsPath,(function(){setTimeout(()=>{ne._viewer.onWindowResize()},2e3)}),e.configNum,o,t)}function m(o){const n=ne.getViewerIntance();n.addEventListener("loadBegin",(function(){t.commit("setShowLoading",!1)})),n.addEventListener("BVHInfoEvent",(function(e){t.state.modelStore._geometryload&&(r.$eventBus.emit("loadBack",!0),r.$eventBus.emit("loadComplete")),t.commit("modelStore/setBvhLoad",!0)})),n.addEventListener("geometryAllLoadedEvent",(function(){t.state.modelStore._bvhload&&(t.commit("setShowLoading",!1),r.$eventBus.emit("loadBack",!0),r.$eventBus.emit("loadComplete")),je(t.state.modelStore.nowTag,t.state.modelStore.allTag),t.commit("modelStore/setGeometryload",!0),nd_viewCtrl.loadedEvent&&nd_viewCtrl.loadedEvent({geometry:!0,pmi:t.state.modelStore._pmiload,brep:t.state.modelStore._brepload}),setTimeout(()=>{this.unshowtag=!1},1e3)})),n.addEventListener("loadError",(function(e){r.$eventBus.emit("MsgTipEvent",r.$t("modelLoadErr")),t.commit("setShowLoading",!1),r.$eventBus.emit("loadBack",!1),r.$eventBus.emit("loadFail")})),n.addEventListener("clearSelection",(function(e){r.$eventBus.emit("clearSelectionSub")})),n.addEventListener("measureTimes",(function(e){"sync"==nd_viewCtrl.viewMode&&e.times>19&&r.$eventBus.emit("MsgTipEvent",r.$t("measureTimesErr")),nd_viewCtrl.measureTimes&&nd_viewCtrl.measureTimes(e)})),n.addEventListener("BrepInfoEvent",(function(e){t.commit("modelStore/setBrepload",!0),nd_viewCtrl.loadedEvent&&nd_viewCtrl.loadedEvent({geometry:t.state.modelStore._geometryload,pmi:t.state.modelStore._pmiload,brep:!0})})),n.addEventListener("selectObjectEvent",(function(e){r.$eventBus.emit("selectObjectEvent",ne.getSelectedObjects())})),n.addEventListener("deselectObjectEvent",(function(e){r.$eventBus.emit("deselectObjectEvent")})),n.addEventListener("annotationSelectedEvent",(function(e){r.$eventBus.emit("resetAll")})),n.addEventListener("BodySelectionChangeEvent",(function(e){const o=ne.getSelectedObjects();t.state.menuStore.structMenu&&t.state.menuStore.attrMenu&&1==o.length&&o[0].children.length<1&&r.$eventBus.emit("structNodeChoose",o)})),n.addEventListener("broadcastEvent",(function(t){if("sync"==nd_viewCtrl.viewMode)try{if(e.broadTimer)return;e.broadTimer=setTimeout(()=>{clearInterval(e.broadTimer),e.broadTimer=null,r.$tag.tcStep0||r.$tag.tcStep1||nd_viewCtrl.rtmSDK.joinStatus&&Ae.sendCenter(1)},100)}catch(o){}}))}function g(){let e=!1;nd_viewCtrl&&nd_viewCtrl.suportLineWeight&&(e=nd_viewCtrl.suportLineWeight),nd_viewCtrl.shareInfo&&nd_viewCtrl.shareInfo.camerainfo&&(e=nd_viewCtrl.shareInfo.suportLineWeight||!1),t.state.modelIsLoaded&&(e=i.suportLineWeight),t.commit("modelStore/setSuportLineWeight",e),ne._viewer.setLineWidth(e)}function h(){0!=nd_viewCtrl.default&&nd_viewCtrl.src&&r.loadViewer(),e.language=nd_viewCtrl.language||"zh",window.nd_loadViewer=r.loadViewer,window.nd_load2Dviewer=r.loadViewer,nd_viewCtrl.logoConfig||(nd_viewCtrl.logoConfig={}),e.logoConfig={...nd_viewCtrl.logoConfig},e.logoConfigStyle=q(e.logoConfig)}return d&&window.addEventListener("resize",(function(){t.state.isShowBottomBtn=!t.state.isShowBottomBtn,t.state.isShowCtrlBtn=!t.state.isShowCtrlBtn,setTimeout(()=>{t.state.isShowBottomBtn=!t.state.isShowBottomBtn,t.state.isShowCtrlBtn=!t.state.isShowCtrlBtn},0)})),{...Object(n["toRefs"])(e),store:t,menuStore:o,loadViewer2:u}},methods:{loadViewer(e){void 0==e&&(e=nd_viewCtrl.src),re(e,(function(e){ma.commit("setOpt",e),ua.loadViewer2(e.opt)}))},loadSingleViewer:function(){ae(e=>{var t;ma.commit("setOpt",e),null===(t=ua)||void 0===t||t.loadViewer2(e.opt)})},async initRTM(){if("sync"!=nd_viewCtrl.viewMode)return!1;ne._viewer.startBroadcast(nd_viewCtrl.rtmSDK.isRtmOperate),this.isLoaded||(this.store.commit("setRtmNeedCover",!nd_viewCtrl.rtmSDK.isRtmOperate),nd_viewCtrl.rtmSDK.isRtmOperate&&(Ae.sendCenter(1),Ae.sendCenter(2),Ae.sendCenter(3),Ae.sendCenter(4),Ae.sendCenter(5),Ae.sendCenter(6),Ae.sendCenter(7)),nd_viewCtrl.rtmSDK.isRtmOperate||window.nd_rtmReceiveAllMsg()),this.isLoaded=!0},clickViewerCanvas(e){let t={x:e.x,y:e.y};nd_viewCtrl.beSelectPoint&&nd_viewCtrl.beSelectPoint(t)}}};o("1b3b");const ha=$e()(ga,[["render",a],["__scopeId","data-v-35c248ec"]]);var pa=ha,va=o("1344"),wa={cancel:"取消",save:"保存",sure:"确定",search:"搜索",search2:"查找",back:"返回",exit:"退出",del:"删除",searchTree:"搜索结构树",searchTree2:"搜索结构树部件",gUnit:"个",layout:"布局",chooseToLayout:"选择布局",hideNote:"隐藏批注",showNote:"显示批注",bgColor:"背景色",reset:"重置视角",chooseLayer:"选择图层",chooseBgColor:"选择背景色",scaleMeter:"设置比例",accuracyInfo:"该模型比较复杂,图形加载可能比较慢,浏览可能会不够流畅,建议您选择低精度模式查看。",lowAccuracy:"低精度模式",highAccuracy:"高精度模式",reset:"重置",full:"全屏",fullout:"退出全屏",zoom:"缩放",unit:"设置单位",hideNote:"隐藏批注",showNote:"显示批注",tagNote:"批注",meter:"测量",hideshowNote:"批注显藏",structureTree:"选择图层",showHide:"显示隐藏",chooseMeterType:"选择测量形式",chooseMeterDistanceType:"选择距离形式",chooseMeterLengthType:"选择长度形式",chooseMeterAngleType:"选择角度形式",chooseMeterAreaType:"选择面积形式",chooseMeterVolumnWeightType:"选择体积重量形式",chooseTagType:"选择批注形式",coordinateMeter:"坐标",distanceMeter:"距离",continuousLineMeter:"连续长度",continuousAreaMeter:"面积",smartdis:"智能测量",edgesMeter:"线段长度",radiusMeter:"半径",angelMeter:"角度",scaleMeter:"设置比例",clearMeter:"清空",distanceLineargauge:"线性测量",distanceCentreOfCircle:"圆心距",distanceCentreToPoint:"圆心到点",distanceAxis2line:"圆心到线",distancePt2pt:"点到点",distancePt2line:"点到线",distanceLine2line:"线到线",chooseStructureTree:"选择结构树",noTreeData:"暂无搜索结果",noTreeData2:"暂无数据",serveErrorTips:"提示:服务器异常,请稍候重试",dataIsNeed:"必填信息不能为空",noChildCfg:"缺少当前子菜单配置",choosePoint:"单击确定批注位置",tagTitle:"文本批注",tagholder:"请在此输入批注说明(选填)",tagPoint:"点",tagText:"文本",tagDraw:"绘图",tagArrow:"箭头",tagLine:"线段",tagCircle:"圆形",tagRect:"方形",tagSave:"保存",tagCancle:"取消",tagTip1:"禁止输入非法字符",tagTip2:"图片过大",tagTip3:"图片格式不正确",tagTip4:"请选择图片",tagTip5:"选择图片",loadError:"加载错误",pcNowConfig:"当前布局",pcStructLv:"结构树层级",pcMtxtHomeView:"重置视角",pcMtxtTagTxt:"文本批注",pcMtxtTagImg:"图片批注",pcMtxtTagImg2:"图片路径",pcMtxtTagTxtImg:"图文批注",pcMtxtSmartMeter:"智能测量",pcMtxtDistance:"距离",pcMtxtLength:"长度",pcMtxtAngle:"角度",pcMtxtRadius:"半径",pcMtxtBox:"包围盒",pcMtxtP2P:"点到点",pcMtxtP2L:"点到线",pcMtxtL2L:"线到线",pcMtxtBgColor:"",pcMtxtZoom:"",pcMtxtFull:"",pcMtxtCoordinate:"",pcMtxtEdges:"",pcMtxtContinuousLine:"",pcMtxtContinuousArea:"",pcMtxtLineAngel:"",pcMtxtScale:"",clear:"",pcMtxtLinear:"",pcMtxtHoleDist:"",pcMtxtAxis2pt:"",pcMtxtAxisline:"",pcMtxtTextFind:"",pcUnitIcon:"单位设置",pcUnitType1:"默认单位",pcUnitType2:"公制单位(mm)",pcUnitType3:"英制单位(in)",rightScaleTips:"请填写正确的比例",pcFileTypeTips:"提示:图片格式不正确!",pcBrepNotEnd:"提示:测量数据正在加载,请稍候重试...",colorBlack:"黑色",colorGrey:"灰色",colorBeige:"米色",tagAudioTips1:"说话时间太短",tagDelConfirm:"确定要删除当前批注吗?",tagSaveConfirm:"是否要保存当前的批注?",tagAudioTimeTip:"",tagAudioCreate:"松开即可形成一条语音",tagAudioPress:"按住说话",tagExitSee:"退出查看批注",tagExit:"退出",tagExit2:"退出批注",tagTips:"请输入文本",tagDelImg:"删除图片",tagNoRoot:"请前往设置开启麦克风权限",tagSaveConfirm2:"是否要保存当前的批注?",tagSeeBigImg:"查看大图",tagSeeSmallImg:"最小化",unit:"单位设置",screenshot:"屏幕快照",measureTimesErr:"当前测量数据过多,请清除后再进行添加",modelLoadErr:"模型加载失败",modelLimitErr:"当前使用人数超过限制",pcMtxtLineWeight:"显示线宽",pcMtxtLineWeight2:"隐藏线宽",textFind:"文字查找",textFindTxt1:"查找内容",textFindTxt2:"查找区域",textFindTxt3:"整张图纸",textFindTxt4:"框选区域",textFindTxt5:"选择区域",textFindTxt6:"查找结果",textFindTxt7:"查看上一个",textFindTxt8:"查看下一个",textFindTxt9:"输入查找内容",textFindCursor:"框选文字查找区域",textFindNoResult:"暂无结果"},fa={cancel:"Cancel",save:"Save",sure:"Confirm",search:"Search",search2:"Search",back:"Back",exit:"Exit",del:"Delete",searchTree:"Search Designs",searchTree2:"Search Designs Part",gUnit:"",areaBoxTxt:"Area:",volumnBoxTxt:"Volume:",areaAllBoxTxt:"Total Area:",volumnAllBoxTxt:"Total Volume:",premierTxt:"Perimeter",noTxt:"NO.",sizeTxt:"Size",chooseToLayout:"Layer",chooseLayer:"Layer",chooseBgColor:"Backgroud Color",scaleMeter:"Scale",accuracyInfo:"The model is too complex to load, you are advised to choose low precision mode to view. ",lowAccuracy:"Low precision mode",highAccuracy:"High precision mode",resetEye:"Home view",reset:"Reset",hideNote:"Hide comment",showNote:"Show comment",tagNote:"Comment",meter:"Measure",structureTree:"Designs",showHide:"Show and Hide",chooseMeterType:"Forms of Measurement",chooseMeterDistanceType:"Forms of Distance",chooseMeterLengthType:"Forms of Length",chooseMeterAngleType:"Forms of Angle",chooseMeterAreaType:"Forms of Area",chooseMeterVolumnWeightType:"Forms of Volume",chooseTagType:"Forms of Markup",distance:"Distance",pointToPoint:"Point to Point",pointToLine:"Point to Straight Line",pointToFace:"Point to Surface",lineToLine:"Line to Straight Line",circleDistance:"Center Distance",dotToPoint:"Axial-hole to Point",dotToLine:"Axial-hole to Straight Line",length:"Length",meterLine:"Line Meaurement ",circleLength:"Perimeter",angle:"Angle",lineToAngle:"Angle between straight lines",radius:"Radius",area:"Area",clear:"Clear",chooseStructureTree:"Designs",noTreeData:"No Result Found",noTreeData2:"No Data",chooseAttrType:"From of Properties",totalAttr:"Total Properties",selAttrDetail:"Choose a entity",totalattrDetail:"Total Properties Details",normalAttr:"General",selfAttr:"User-defined",noAttr:"No Attribute Found",faceFace:"No Attribute Found",volumn:"Volume",weight:"Weight",boxVolume:"Volume of Bounding Box",objNum:"Numbers of entities",partNum:"Numbers of parts",pmiNum:"Numbers of PMI",sureToDelAttr:"Sure to delete the Properties?",chooseShowType:"Display Mode",serveErrorTips:"Exception",dataIsNeed:"Required",noChildCfg:"缺少当前子菜单配置",choosePoint:"Click to choose the position of the comment.",tagTitle:"Markup",tagholder:"Please enter your descriptions here. (optional)",tagPoint:"point",tagText:"text",tagDraw:"draw",tagArrow:"arrow",tagLine:"line",tagCircle:"circle",tagRect:"rect",tagSave:"Save",tagCancle:"Cancel",tagTip1:"Do not enter illegal characters",tagTip2:"The picture is too large",tagTip3:"Invalid picture format",tagTip4:"Please select a picture",tagTip5:"Select",loadError:"Loading error",pcNowConfig:"Current layout",pcStructLv:"Desigh hierarchy",chooseMateria2:"请选择属性类型",pcInpAttrName3:"属性名重复",pcMtxtHomeView:"Home view",pcMtxtTagTxt:"Text",pcMtxtTagImg:"Picture",pcMtxtTagImg2:"Picture",pcMtxtTagTxtImg:"Picture & Text",pcMtxtSmartMeter:"Intelligent measurement",pcMtxtDistance:"Distance",pcMtxtLength:"Length",pcMtxtRadius:"Radius",pcMtxtVolWet:"Volume and weight",pcMtxtBox:"Bounding box",pcMtxtP2P:"Point to point",pcMtxtP2L:"Point to straight line",pcMtxtP2F:"Point to surface",pcMtxtL2L:"Line to line",pcMtxtL2F:"Line to surface",pcMtxtF2F:"Surface to surface",pcMtxtCpoint:"Center distance",pcMtxtX2P:"Axial-hole to point",pcMtxtX2L:"Axial-hole to line",pcMtxtX2F:"Axial-hole to surface",pcMtxtLmeter:"Line measurement",pcMtxtPmeter:"Perimeter",pcMtxtAngleL:"Angle between straight lines",pcMtxtAngleF:"Angle between planes",pcMtxtAngleLF:"Angle between line and plane",pcMtxtToF:"Choose a plane",pcMtxtToSingle:"Choose a entity",pcMtxtToAllPart:"Total entity",pcMtxtToAllBox:"Total bounding box",pcMtxtToAllAttr:"Total properties",pcMtxtTolArea:"Total area",pcMtxtIplus:"Zoom extents",pcCoutTip1:"Clockwise rotation",pcCoutTip2:"Contrarotate",pcCoutTip3:"Maximize",pcCoutTip4:"Mirror",pcCoutTip5:"Minimize",pcCursorTip:"Click to select the object",pcAllVol:"Total volume",pcAllWeight:"Total weight",pcUnitIcon:"Unit settings",pcUnitType1:"Default unit",pcUnitType2:"Metric unit(mm)",pcUnitType3:"Imperial unit(in)",rightScaleTips:"Please fill out the correct scale",pcMtxtCoordinate:"ID point",pcMtxtEdges:"Length",pcMtxtContinuousLine:"Continuous lengths",pcMtxtContinuousArea:"Area",pcMtxtLineAngel:"Angle",pcMtxtScale:"Scale",pcMtxtLinear:"linear measurement",pcMtxtHoleDist:"Center distance",pcMtxtAxis2pt:"Center to point",pcMtxtAxisline:"Center to line",pcMtxtBgColor:"Backgroud",pcMtxtZoom:"Zoom extents",pcMtxtFull:"Full screen",pcMtxtFullexit:"Exit full",pcFileTypeTips:"Invalid picture format",pcBrepNotEnd:"Something wrong with measurement,please try again",pcMtxtTextFind:"Text Search",colorBlack:"Black",colorGrey:"Grey",colorBeige:"Beige",tagAudioTips1:"Speaking time is too short",tagDelConfirm:"Are you sure to delete the current comment?",tagSaveConfirm:"Do you want to save the current comments?",tagAudioTimeTip:"",tagAudioCreate:"Undo to create a voice",tagAudioPress:"Push to talk",tagExitSee:"Exit",tagExit:"Exit",tagExit2:"Exit",tagTips:"Please enter text",tagDelImg:"Delete picture",tagNoRoot:"Please allow access to your microphone",tagSaveConfirm2:"Do you want to save the current comments?",tagSeeBigImg:"See a larger image",tagSeeSmallImg:"Minimize",measureTimesErr:"Currently, there are too much measurement data, please delete them then try again",modelLoadErr:"model loaded error!",modelLimitErr:"Exceeded the maximum numer of users",pcMtxtLineWeight:"Show lineweight",pcMtxtLineWeight2:"Hide lineweight",textFind:"Text search",textFindTxt1:"Content",textFindTxt2:"Area",textFindTxt3:"Full drawing",textFindTxt4:"Box selection",textFindTxt5:"Select area",textFindTxt6:"Matching results",textFindTxt7:"Previous",textFindTxt8:"Next",textFindTxt9:"Enter search text",textFindCursor:"Select a search area",textFindNoResult:"No matching text"},ba={cancel:"Annulez",save:"Sauvegardez",sure:"Confirmez",search:"Recherchez",search2:"Recherchez",back:"Retournez",exit:"Quittez",del:"Supprimez",searchTree:"Recherchez des dessins",searchTree2:"Recherche de dessins",gUnit:"",areaBoxTxt:"Surface:",volumnBoxTxt:"Volume:",areaAllBoxTxt:"Surface totale:",volumnAllBoxTxt:"Volume total:",premierTxt:"Périmètre",noTxt:"NON.",sizeTxt:"Taille",chooseToLayout:"Couche",chooseLayer:"Couche",chooseBgColor:"Couleur du fond d'écran",scaleMeter:"Échelle",accuracyInfo:"Le modèle est trop complexe à charger, il est conseillé de choisir le mode basse précision pour le visualiser. ",lowAccuracy:"Mode de basse précision",highAccuracy:"Mode de haute précision",resetEye:"Vue d'accueil",reset:"Réinitialisation",hideNote:"Cachez le commentaire",showNote:"Affichez le commentaire",tagNote:"Commentaire",meter:"Mesure",structureTree:"Couche",showHide:"Affichez et masquez",chooseMeterType:"Formes de mesure",chooseMeterDistanceType:"Formes de distance",chooseMeterLengthType:"Formes de longueur",chooseMeterAngleType:"Formes d'angle",chooseMeterAreaType:"Formes de zone",chooseMeterVolumnWeightType:"Formes de volume",chooseTagType:"Formes de marquage",distance:"Distance",pointToPoint:"Point à point",pointToLine:"Point à ligne droite",pointToFace:"Point à surface",lineToLine:"Ligne à ligne droite",circleDistance:"Distance centrale",dotToPoint:"Trou axial à point",dotToLine:"Trou axial à ligne droite",length:"Longueur",meterLine:"Mesure de ligne ",circleLength:"Périmètre",angle:"Angle",lineToAngle:"Angle entre lignes droites",radius:"Rayon",area:"Zone",clear:"Effacez",chooseStructureTree:"Designs",noTreeData:"Aucun résultat trouvé",noTreeData2:"Pas de données",chooseAttrType:"Formes des propriétés",totalAttr:"Total des propriétés",selAttrDetail:"Choisissez une entité",totalattrDetail:"Total des détails des propriétés",normalAttr:"Général",selfAttr:"Défini par l'utilisateur",noAttr:"Aucun attribut trouvé",faceFace:"Aucun attribut trouvé",volumn:"Volume",weight:"Poids",boxVolume:"Volume de la boîte d'encastrement",objNum:"Nombre d'entités",partNum:"Nombre de pièces",pmiNum:"Nombre de PMI",sureToDelAttr:"Vous êtes sûr de vouloir supprimer les propriétés?",chooseShowType:"Mode d'affichage",serveErrorTips:"Exception",dataIsNeed:"Requis",noChildCfg:"Configuration manquante du sous-menu actuel",choosePoint:"Cliquez pour choisir la position du commentaire.",tagTitle:"Marquage",tagholder:"Veuillez saisir vos descriptions ici. (facultatif)",tagPoint:"point",tagText:"texte",tagDraw:"dessin",tagArrow:"flèche",tagLine:"ligne",tagCircle:"cercle",tagRect:"rectangle",tagSave:"Sauvegardez",tagCancle:"Annulez",tagTip1:"Ne saisissez pas de caractères illégaux",tagTip2:"L'image est trop grande",tagTip3:"Format d'image non valide",tagTip4:"Veuillez sélectionner une image",tagTip5:"Sélectionnez",loadError:"Erreur de chargement",pcNowConfig:"Disposition actuelle",pcStructLv:"Hiérarchie de dessin",chooseMateria2:"Sélectionnez un type de propriété",pcInpAttrName3:"Duplication du nom de l'attribut",pcMtxtHomeView:"Vue d'accueil",pcMtxtTagTxt:"Texte",pcMtxtTagImg:"Image",pcMtxtTagImg2:"Image",pcMtxtTagTxtImg:"Image et texte",pcMtxtSmartMeter:"Mesure intelligente",pcMtxtDistance:"Distance",pcMtxtLength:"Longueur",pcMtxtRadius:"Rayon",pcMtxtVolWet:"Volume et poids",pcMtxtBox:"Boîte d'encastrement",pcMtxtP2P:"Point à point",pcMtxtP2L:"Point à ligne droite",pcMtxtP2F:"Point à surface",pcMtxtL2L:"Ligne à ligne droite",pcMtxtL2F:"Ligne à surface",pcMtxtF2F:"Surface à surface",pcMtxtCpoint:"Distance centrale",pcMtxtX2P:"Trou axial à point",pcMtxtX2L:"Trou axial à ligne",pcMtxtX2F:"Trou axial à surface",pcMtxtLmeter:"Mesure de ligne",pcMtxtPmeter:"Périmètre",pcMtxtAngleL:"Angle entre lignes droites",pcMtxtAngleF:"Angle entre plans",pcMtxtAngleLF:"Angle entre une ligne et un plan",pcMtxtToF:"Choisissez une face",pcMtxtToSingle:"Choisissez une entité",pcMtxtToAllPart:"Entité totale",pcMtxtToAllBox:"Boîte d'encastrement totale",pcMtxtToAllAttr:"Total des propriétés",pcMtxtTolArea:"Surface totale",pcMtxtIplus:"Zoom sur l'étendue",pcCoutTip1:"Rotation anti-horaire",pcCoutTip2:"Rotation inversée",pcCoutTip3:"Maximisez",pcCoutTip4:"Miroir",pcCoutTip5:"Minimisez",pcCursorTip:"Cliquez pour sélectionner l'objet",pcAllVol:"Volume total",pcAllWeight:"Poids total",pcUnitIcon:"Paramètres de l'unité",pcUnitType1:"Unité par défaut",pcUnitType2:"Unité métrique (mm)",pcUnitType3:"Unité impériale (in)",rightScaleTips:"Veuillez remplir l'échelle correcte",pcMtxtCoordinate:"Point ID",pcMtxtEdges:"Longueurs continues",pcMtxtContinuousLine:"Longueurs continues",pcMtxtContinuousArea:"Zone",pcMtxtLineAngel:"Angle",pcMtxtScale:"Échelle",pcMtxtLinear:"Mesure linéaire",pcMtxtHoleDist:"Distance centrale",pcMtxtAxis2pt:"Centre à point",pcMtxtAxisline:"Centre à ligne",pcMtxtBgColor:"Fond d'écran",pcMtxtZoom:"Zoom sur l'étendue",pcMtxtFull:"Plein écran",pcMtxtFullexit:"Quittez complètement",pcFileTypeTips:"Format d'image non valide",pcBrepNotEnd:"Un erreur rencontré, veuillez réessayer",pcMtxtTextFind:"Recherche de texte",colorBlack:"Noir",colorGrey:"Gris",colorBeige:"Beige",tagAudioTips1:"Le temps de parole est trop court",tagDelConfirm:"Êtes-vous sûr de vouloir supprimer le commentaire actuel?",tagSaveConfirm:"Voulez-vous sauvegarder les commentaires actuels?",tagAudioTimeTip:"",tagAudioCreate:"Annulez pour créer une voix",tagAudioPress:"Poussez pour parler",tagExitSee:"Quittez",tagExit:"Quittez",tagExit2:"Quittez",tagTips:"Veuillez saisir le texte",tagDelImg:"Effacez l'image",tagNoRoot:"Veuillez autoriser l'accès à votre microphone",tagSaveConfirm2:"Voulez-vous sauvegarder les commentaires actuels?",tagSeeBigImg:"Voir une image plus grande",tagSeeSmallImg:"Minimisez",measureTimesErr:"Actuellement, trop de données de mesure, supprimez et réessayez-les.",modelLoadErr:"Erreur de chargement du modèle !",modelLimitErr:"Le nombre maximum d'utilisateurs a été dépassé",pcMtxtLineWeight:"Affichez l'épaisseur des lignes",pcMtxtLineWeight2:"Cachez l'épaisseur des lignes",textFind:"Recherche de texte",textFindTxt1:"Contenu",textFindTxt2:"Surface",textFindTxt3:"Dessin complet",textFindTxt4:"Sélectionnez une boîte",textFindTxt5:"Sélectionnez une zone",textFindTxt6:"Résultats correspondants",textFindTxt7:"Précédent",textFindTxt8:"Suivant",textFindTxt9:"Saisissez le texte de la recherche",textFindCursor:"Sélectionnez une zone de recherche",textFindNoResult:"Aucun de texte correspondant"},Ca={cancel:"Abbrechen",save:"Speichern",sure:"Übernehmen",search:"Suchen",search2:"Suchen",back:"Zurück",exit:"Beenden",del:"Löschen",searchTree:"Entwürfe Suchen",searchTree2:"Suche Entwürfe Teil",gUnit:"",areaBoxTxt:"Fläche:",volumnBoxTxt:"Volumen:",areaAllBoxTxt:"Gesamtfläche:",volumnAllBox:"Gesamtumvolumen:",premierTxt:"Umkreis",noTxt:"Nr.",sizeTxt:"Größe",chooseToLayout:"Ebene",chooseLayer:"Ebene",chooseBgColor:"Hintergrundfarbe",scaleMeter:"Skala",accuracyInfo:"Das Modell ist zu komplex, um es zu laden. Es wird empfohlen, den Gering-Genauigkeit-Modus zu wählen. ",lowAccuracy:"Gering-Genauigkeit-Modus",highAccuracy:"Hoch-Genauigkeit-Modus",resetEye:"Home-Ansicht",reset:"Zurücksetzen",hideNote:"Kommentar ausblenden",showNote:"Kommentar anzeigen",tagNote:"Kommentar",meter:"Messen",structureTree:"Entwürfe",showHide:"Ein- und Ausblenden",chooseMeterType:"Formen der Messung",chooseMeterDistanceType:"Formen der Entfernung",chooseMeterLengthType:"Formen der Länge",chooseMeterAngleType:"Formen des Winkels",chooseMeterAreaType:"Formen der Fläche",chooseMeterVolumnWeightType:"Formen des Volumens",chooseTagType:"Formen der Markierung",distance:"Entfernung",pointToPoint:"Punkt zu Punkt",pointToLine:"Punkt zu Geraden",pointToFace:"Punkt zu Fläche",lineToLine:"Linie zur Geraden",circleDistance:"Mittenabstand",dotToPoint:"Axial-Loch zu Punkt",dotToLine:"Axial-Loch zu Gerade",length:"Länge",meterLine:"Linienmessung ",circleLength:"Umkreis",angle:"Winkel",lineToAngle:"Winkel zwischen Geraden",radius:"Radius",area:"Fläche",clear:"Übersichtlich",chooseStructureTree:"Entwürfe",noTreeData:"Kein Ergebnis gefunden",noTreeData2:"Keine Daten",chooseAttrType:"Aus Eigenschaften Wählen",totalAttr:"Gesamte Eigenschaften",selAttrDetail:"Ein Element Auswählen",totalattrDetail:"Details zu Eigenschaften",normalAttr:"Allgemeine Eigenschaften",selfAttr:"Benutzerdefinierte Eigenschaften",noAttr:"Kein Attribut Gefunden",faceFace:"Kein Attribut Gefunden",volumn:"Volumen",weight:"Gewicht",boxVolume:"Volumen der Bounding Box",objNum:"Anzahl der Elemente",partNum:"Anzahl der Teile",pmiNum:"Anzahl von PMI",sureToDelAttr:"Möchten Sie die Eigenschaften wirklich löschen?",chooseShowType:"Anzeigemodus",serveErrorTips:"Ausnahme",dataIsNeed:"Erforderlich",noChildCfg:"Konfiguration des aktuellen Untermenüs fehlt",choosePoint:"Zum Auswählen der Position für Kommentar anklicken.",tagTitle:"Markierung",tagholder:"Bitte geben Sie hier Ihre Beschreibungen ein. (optional)",tagPoint:"Punkt",tagText:"Text",tagDraw:"zeichnen",tagArrow:"Pfeil",tagLine:"Linie",tagCircle:"Kreis",tagRect:"Rechteck",tagSave:"Speichern",tagCancle:"Abbrechen",tagTip1:"Keine illegalen Zeichen eingeben",tagTip2:"Zu großes Bild",tagTip3:"Ungültiges Bildformat",tagTip4:"Bitte wählen Sie ein Bild aus",tagTip5:"Auswählen",loadError:"Fehler beim Laden",pcNowConfig:"Aktuelles Layout",pcStructLv:"Entwurf Hierarchie",chooseMateria2:"Bitte wählen Sie eine Eigenschaftsart",pcInpAttrName3:"Attributnamen duplizieren",pcMtxtHomeView:"Home-Ansicht",pcMtxtTagTxt:"Text",pcMtxtTagImg:"Bild",pcMtxtTagImg2:"Bild",pcMtxtTagTxtImg:"Bild & Text",pcMtxtSmartMeter:"Intelligente Messung",pcMtxtDistance:"Entfernung",pcMtxtLength:"Länge",pcMtxtRadius:"Radius",pcMtxtVolWet:"Volumen und Gewicht",pcMtxtBox:"Bounding Box",pcMtxtP2P:"Punkt zu Punkt",pcMtxtP2L:"Punkt zu Geraden",pcMtxtP2F:"Punkt zu Fläche",pcMtxtL2L:"Linie zu Linie",pcMtxtL2F:"Linie zu Fläche",pcMtxtF2F:"Fläche zu Fläche",pcMtxtCpoint:"Mittenabstand",pcMtxtX2P:"Axialbohrung zu Punkt",pcMtxtX2L:"Axialbohrung zu Linie",pcMtxtX2F:"Axialbohrung zu Oberfläche",pcMtxtLmeter:"Linienmessung",pcMtxtPmeter:"Umkreis",pcMtxtAngleL:"Winkel zwischen Geraden",pcMtxtAngleF:"Winkel zwischen Ebenen",pcMtxtAngleLF:"Winkel zwischen Linie und Ebene",pcMtxtToF:"Eine Fläche Auswählen",pcMtxtToSingle:"Ein Element Auswählen",pcMtxtToAllPart:"Gesamte Einheit",pcMtxtToAllBox:"Gesamte Bounding Box",pcMtxtToAllAttr:"Gesamte Eigenschaften",pcMtxtTolArea:"Gesamtfläche",pcMtxtIplus:"Box-Auswahl zoomen",pcCoutTip1:"Drehen im Uhrzeigersinn",pcCoutTip2:"Kontrarotieren",pcCoutTip3:"Maximieren",pcCoutTip4:"Spiegeln",pcCoutTip5:"Minimieren",pcCursorTip:"Zum Auswählen des Objekts anklicken",pcAllVol:"Gesamtumvolumen",pcAllWeight:"Gesamtumgewicht",pcUnitIcon:"Einheiteneinstellungen",pcUnitType1:"Standardeinheit",pcUnitType2:"Metrische Einheit (mm)",pcUnitType3:"Imperiale Einheit (Zoll)",rightScaleTips:"Bitte füllen Sie die richtige Skala aus",pcMtxtCoordinate:"ID-Punkt",pcMtxtEdges:"Länge",pcMtxtContinuousLine:"Kontinuierliche Längen",pcMtxtContinuousArea:"Fläche",pcMtxtLineAngel:"Winkel",pcMtxtScale:"Skala",pcMtxtLinear:"lineare Messung",pcMtxtHoleDist:"Mittenabstand",pcMtxtAxis2pt:"Mittelpunkt zu Punkt",pcMtxtAxisline:"Mittelpunkt zu Linie",pcMtxtBgColor:"Hintergrund",pcMtxtZoom:"Box-Auswahl zoomen",pcMtxtFull:"Voller Bildschirm",pcMtxtFullexit:"Vollbild beenden",pcFileTypeTips:"Ungültiges Bildformat",pcBrepNotEnd:"Messung nicht korrekt, bitte erneut versuchen",pcMtxtTextFind:"Text-Suche",colorBlack:"Schwarz",colorGrey:"Grau",colorBeige:"Beige",tagAudioTips1:"Zu kurze Sprechzeit",tagDelConfirm:"Möchten Sie den aktuellen Kommentar wirklich löschen?",tagSaveConfirm:"Möchten Sie den aktuellen Kommentar speichern?",tagAudioTimeTip:"",tagAudioCreate:"Rückgängig machen, um eine Stimme zu erzeugen",tagAudioPress:"Zum Sprechen drücken",tagExitSee:"Beenden",tagExit:"Beenden",tagExit2:"Beenden",tagTips:"Bitte geben Sie den Text ein",tagDelImg:"Bild löschen",tagNoRoot:"Bitte erlauben Sie den Zugriff auf Ihr Mikrofon",tagSaveConfirm2:"Möchten Sie den aktuellen Kommentar speichern?",tagSeeBigImg:"Siehe ein größeres Bild",tagSeeSmallImg:"Minimieren",measureTimesErr:"Derzeit sind zu viele Messdaten vorhanden, bitte löschen und erneut versuchen",modelLoadErr:"Fehler beim Laden des Modells!",modelLimitErr:"Maximale Anzahl von Benutzern überschritten",pcMtxtLineWeight:"Liniensärke einblenden",pcMtxtLineWeight2:"Liniensärke ausblenden",textFind:"Text-Suche",textFindTxt1:"Inhalt",textFindTxt2:"Fläche",textFindTxt3:"Vollständige Zeichnung",textFindTxt4:"Box-Auswahl",textFindTxt5:"Feld ausauswählen",textFindTxt6:"Trefferliste",textFindTxt7:"Vorherige",textFindTxt8:"Nächste",textFindTxt9:"Suchtext eingeben",textFindCursor:"Suchfeld auswählen",textFindNoResult:"Kein passender Text"},Sa={cancel:"Annulla",save:"Salva",sure:"Conferma",search:"Ricerca",search2:"Ricerca",back:"Indietro",exit:"Esci",del:"Cancella",searchTree:"Ricerca disegni",searchTree2:"Ricerca di Parti di Design",gUnit:"",areaBoxTxt:"Area:",volumnBoxTxt:"Volume:",areaAllBoxTxt:"Area totale:",volumnAllBoxTxt:"Volume totale:",premierTxt:"Perimetro",noTxt:"NO.",sizeTxt:"Dimensioni",chooseToLayout:"Strato",chooseLayer:"Strato",chooseBgColor:"Colore dello sfondo",scaleMeter:"Scala",accuracyInfo:"Il modello è troppo complesso da caricare, si consiglia di scegliere la modalità di bassa precisione per la visualizzazione.",lowAccuracy:"Modalità di bassa precisione",highAccuracy:"Modalità di alta precisione",resetEye:"Vista iniziale",reset:"Azzera",hideNote:"Nascondi commento",showNote:"Mostra commento",tagNote:"Commento",meter:"Misura",structureTree:"Disegni",showHide:"Mostra e Nascondi",chooseMeterType:"Forme di Misura",chooseMeterDistanceType:"Forme di Distanza",chooseMeterLengthType:"Forme di Lunghezza",chooseMeterAngleType:"Forme di Angolo",chooseMeterAreaType:"Forme di Area",chooseMeterVolumnWeightType:"Forme di Volume",chooseTagType:"Forme di marcatura",distance:"Distanza",pointToPoint:"Da Punto a Punto",pointToLine:"Da Punto a Linea Retta",pointToFace:"Da Punto a Superficie",lineToLine:"Da Linea a Linea Retta",circleDistance:"Distanza dal Centro",dotToPoint:"Foro Assiale a Punto",dotToLine:"Da Foro Assiale a Linea Retta",length:"Lunghezza",meterLine:"Misura della Linea",circleLength:"Perimetro",angle:"Angolo",lineToAngle:"Angolo tra linee rette",radius:"Raggio",area:"Area",clear:"Liberi",chooseStructureTree:"Disegni",noTreeData:"Nessun risultato trovato",noTreeData2:"Nessun dato",chooseAttrType:"Dalle proprietà",totalAttr:"Totale Proprietà",selAttrDetail:"Scegli un'Entità",totalattrDetail:"Dettagli sulle Proprietà Totali",normalAttr:"Generale",selfAttr:"Definito dall'utente",noAttr:"Nessun Attributo Trovato",faceFace:"Area di superficie",volumn:"Volume",weight:"Peso",boxVolume:"Volume del Riquadro di Delimitazione",objNum:"Numero di entità",partNum:"Numero di parti",pmiNum:"Numeri di PMI",sureToDelAttr:"Sei sicuro di voler eliminare le proprietà?",chooseShowType:"Modalità di visualizzazione",serveErrorTips:"Eccezione",dataIsNeed:"Richiesto",noChildCfg:"Manca la configurazione del sottomenu corrente",choosePoint:"Fare clic per scegliere la posizione del commento.",tagTitle:"Contrassegna",tagholder:"Inserisci qui le descrizioni. (opzionale)",tagPoint:"punto",tagText:"testo",tagDraw:"disegno",tagArrow:"freccia",tagLine:"linea",tagCircle:"cerchio",tagRect:"rettangolo",tagSave:"Salva",tagCancle:"Annulla",tagTip1:"Non inserire caratteri illegali",tagTip2:"L'immagine è troppo grande",tagTip3:"Formato dell'immagine non valido",tagTip4:"Seleziona un'immagine",tagTip5:"Selezionare",loadError:"Errore di caricamento",pcNowConfig:"Layout corrente",pcStructLv:"Gerarchia del Design",chooseMateria2:"selezionare un tipo di proprietà",pcInpAttrName3:"Duplicazione del nome dell'attributo",pcMtxtHomeView:"Vista iniziale",pcMtxtTagTxt:"Testo",pcMtxtTagImg:"Immagine",pcMtxtTagImg2:"Immagine",pcMtxtTagTxtImg:"Immagine & Testo",pcMtxtSmartMeter:"Misura intelligente",pcMtxtDistance:"Distanza",pcMtxtLength:"Lunghezza",pcMtxtRadius:"Raggio",pcMtxtVolWet:"Volume e peso",pcMtxtBox:"Scatola di Contenimento",pcMtxtP2P:"Da Punto a Punto",pcMtxtP2L:"Da Punto a Linea Retta",pcMtxtP2F:"Da Punto a Superficie",pcMtxtL2L:"Da Linea a Linea Retta",pcMtxtL2F:"Da Linea Retta a Superficie",pcMtxtF2F:"Da Superficie a Superficie",pcMtxtCpoint:"Distanza dal Centro",pcMtxtX2P:"Foro Assiale a Punto",pcMtxtX2L:"Da Foro Assiale a Linea Retta",pcMtxtX2F:"Foro Assiale a Superficie",pcMtxtLmeter:"Misura della Linea",pcMtxtPmeter:"Perimetro",pcMtxtAngleL:"Angolo tra linee rette",pcMtxtAngleF:"Angolo tra piani",pcMtxtAngleLF:"Angolo tra linea e piano",pcMtxtToF:"Scegliere un piano",pcMtxtToSingle:"Scegli un'Entità",pcMtxtToAllPart:"Entità Totali",pcMtxtToAllBox:"Riquadro di Delimitazione Totale",pcMtxtToAllAttr:"Totale Proprietà",pcMtxtTolArea:"Area Totale",pcMtxtIplus:"Estensioni dello zoom",pcCoutTip1:"Rotazione in senso orario",pcCoutTip2:"Contraddistinguere",pcCoutTip3:"Massimizzare",pcCursorTip:"Fare clic per selezionare l'oggetto",pcAllVol:"Volume totale",pcAllWeight:"Peso totale",pcUnitIcon:"Impostazioni dell'unità",pcUnitType1:"Unità predefinita",pcUnitType2:"Unità metrica (mm)",pcUnitType3:"Unità imperiale (in)",rightScaleTips:"Compila la scala corretta",pcMtxtCoordinate:"Punto ID",pcMtxtEdges:"Lunghezza",pcMtxtContinuousLine:"Lunghezze continue",pcMtxtContinuousArea:"Area",pcMtxtLineAngel:"Angolo",pcMtxtScale:"Scala",pcMtxtLinear:"misura lineare",pcMtxtHoleDist:"Distanza dal Centro",pcMtxtAxis2pt:"Dal centro al punto",pcMtxtAxisline:"Dal centro alla linea",pcMtxtBgColor:"Sfondo",pcMtxtZoom:"Estensioni dello zoom",pcMtxtFull:"Schermo intero",pcMtxtFullexit:"Esci da tutto",pcFileTypeTips:"Formato dell'immagine non valido",pcBrepNotEnd:"Qualcosa non va nella misurazione, riprovare",pcMtxtTextFind:"Ricerca di Testo",colorBlack:"Nero",colorGrey:"Grigio",colorBeige:"Beige",tagAudioTips1:"Il tempo di parola è troppo breve",tagDelConfirm:"Sei sicuro di voler eliminare il commento corrente?",tagSaveConfirm:"Vuoi salvare i commenti attuali?",tagAudioTimeTip:"",tagAudioCreate:"Annulla per creare una voce",tagAudioPress:"Premi per parlare",tagExitSee:"Esci",tagExit:"Esci",tagExit2:"Esci",tagTips:"Inserisci il testo",tagDelImg:"Cancella l'immagine",tagNoRoot:"Consenti l'accesso al microfono",tagSaveConfirm2:"Vuoi salvare i commenti attuali?",tagSeeBigImg:"Vedere un'immagine più grande",tagSeeSmallImg:"Minimizzare",measureTimesErr:"Attualmente ci sono troppi dati di misurazione, si prega di cancellarli e riprovare",modelLoadErr:"modello caricato errore!",modelLimitErr:"Superato il numero massimo di utenti",pcMtxtLineWeight:"Mostra peso linea",pcMtxtLineWeight2:"Nascondi peso linea",textFind:"Ricerca di testo",textFindTxt1:"Contenuto",textFindTxt2:"Area",textFindTxt3:"Disegno completo",textFindTxt4:"Selezione della scatola",textFindTxt5:"Selezione dell'area",textFindTxt6:"Risultati della corrispondenza",textFindTxt7:"Precedente",textFindTxt8:"Avanti",textFindTxt9:"Inserire il testo di ricerca",textFindCursor:"Selezionare un'area di ricerca",textFindNoResult:"Nessun testo corrispondente"},xa={cancel:"Cancelar",save:"Guardar",sure:"Confirmar",search:"Buscar",search2:"Buscar",back:"Atras",exit:"Salir",del:"Borrar",searchTree:"Diseños de búsqueda",searchTree2:"Buscar Parte de Diseños",gUnit:"",areaBoxTxt:"Área:",volumnBoxTxt:"Volumen:",areaAllBoxTxt:"Área total:",volumnAllBoxTxt:"Volumen total:",premierTxt:"Perímetro",noTxt:"N.°",sizeTxt:"Tamaño",chooseToLayout:"Diseño",chooseLayer:"Capa",chooseBgColor:"Color del fondo",scaleMeter:"Escala",accuracyInfo:"El modelo es demasiado complejo para cargar, se recomienda elegir el modo de baja precisión para ver. ",lowAccuracy:"Modo de baja precisión",highAccuracy:"Modo de alta precisión",resetEye:"Vista del inicio",reset:"Reiniciar",hideNote:"Ocultar comentario",showNote:"Mostrar comentario",tagNote:"Observaciones",meter:"Medir",structureTree:"Diseños",showHide:"Mostrar y ocultar",chooseMeterType:"Formas de medición",chooseMeterDistanceType:"Formas de distancia",chooseMeterLengthType:"Formas de longitud",chooseMeterAngleType:"Formas de ángulo",chooseMeterAreaType:"Formas de área",chooseMeterVolumnWeightType:"Formas de volumen",chooseTagType:"Formas de marcado",distance:"Distancia",pointToPoint:"Punto a punto",pointToLine:"Punto a línea recta",pointToFace:"Punto a superficie",lineToLine:"Línea a línea recta",circleDistance:"Distancia del centro",dotToPoint:"Orificio axial a punto",dotToLine:"Orificio axial a línea recta",length:"Longitud",meterLine:"Medición de línea ",circleLength:"Perímetro",angle:"Ángulo",lineToAngle:"Ángulo entre líneas rectas",radius:"Radio",area:"Zona",clear:"Eliminar",chooseStructureTree:"Diseños",noTreeData:"No se encontró ningún resultado",noTreeData2:"Sin datos",chooseAttrType:"De propiedades",totalAttr:"Total de propiedades",selAttrDetail:"Elige una entidad",totalattrDetail:"Detalles de propiedades totales",normalAttr:"General",selfAttr:"Definido por el usuario",noAttr:"No se encontró ningún atributo",faceFace:"No se encontró ningún atributo",volumn:"Volumen",weight:"Peso",boxVolume:"Volumen del cuadro delimitador",objNum:"Número de entidades",partNum:"Número de partes",pmiNum:"Número de PMI",sureToDelAttr:"¿Deseas borrar las propiedades?",chooseShowType:"Modo de visualización",serveErrorTips:"Excepción",dataIsNeed:"Requerido",noChildCfg:"Falta la configuración del submenú actual",choosePoint:"Haga clic para elegir la posición del comentario.",tagTitle:"Marcado",tagholder:"Introduce tus descripciones aquí. (opcional)",tagPoint:"punto",tagText:"texto",tagDraw:"dibujar",tagArrow:"flecha",tagLine:"línea",tagCircle:"círculo",tagRect:"rect",tagSave:"Guardar",tagCancle:"Cancelar",tagTip1:"No introduzcas caracteres no permitidos",tagTip2:"La imagen es demasiado grande",tagTip3:"Formato de imagen no válido",tagTip4:"Seleccione una imagen",tagTip5:"Seleccionar",loadError:"Error de carga",pcNowConfig:"Diseño actual",pcStructLv:"Jerarquía de diseño",chooseMateria2:"Seleccione un tipo de propiedad",pcInpAttrName3:"Duplicación de nombre de atributo",pcMtxtHomeView:"Vista del inicio",pcMtxtTagTxt:"Texto",pcMtxtTagImg:"Imagen",pcMtxtTagImg2:"Imagen",pcMtxtTagTxtImg:"Imagen y Texto",pcMtxtSmartMeter:"Medición inteligente",pcMtxtDistance:"Distancia",pcMtxtLength:"Longitud",pcMtxtRadius:"Radio",pcMtxtVolWet:"Volumen y peso",pcMtxtBox:"Cuadro delimitador",pcMtxtP2P:"Punto a punto",pcMtxtP2L:"Punto a línea recta",pcMtxtP2F:"Punto a superficie",pcMtxtL2L:"Línea a línea",pcMtxtL2F:"Línea a superficie",pcMtxtF2F:"Superficie a superficie",pcMtxtCpoint:"Distancia del centro",pcMtxtX2P:"Orificio axial a punto",pcMtxtX2L:"Orificio axial a línea",pcMtxtX2F:"Orificio axial a superficie",pcMtxtLmeter:"Medición de línea",pcMtxtPmeter:"Perímetro",pcMtxtAngleL:"Ángulo entre líneas rectas",pcMtxtAngleF:"Ángulo entre planos",pcMtxtAngleLF:"Ángulo entre línea y plano",pcMtxtToF:"Elige una cara",pcMtxtToSingle:"Elige una entidad",pcMtxtToAllPart:"Entidad total",pcMtxtToAllBox:"Total cuadro delimitador",pcMtxtToAllAttr:"Total propiedades",pcMtxtTolArea:"Área total",pcMtxtIplus:"Zoom a extensiones",pcCoutTip1:"Rotación en sentido horario",pcCoutTip2:"Contrarrotar",pcCoutTip3:"Maximizar",pcCoutTip4:"Espejo",pcCoutTip5:"Minimizar",pcCursorTip:"Haga clic para seleccionar el objeto",pcAllVol:"Volumen total",pcAllWeight:"Peso total",pcUnitIcon:"Ajustes de la unidad",pcUnitType1:"Unidad predeterminada",pcUnitType2:"Unidad métrica(mm)",pcUnitType3:"Unidad Imperial(en)",rightScaleTips:"Completa con la escala correcta",pcMtxtCoordinate:"Punto de ID",pcMtxtEdges:"Longitudes continuas",pcMtxtContinuousLine:"Longitudes continuas",pcMtxtContinuousArea:"Zona",pcMtxtLineAngel:"Ángulo",pcMtxtScale:"Escala",pcMtxtLinear:"Medición lineal",pcMtxtHoleDist:"Distancia del centro",pcMtxtAxis2pt:"Centro a punto",pcMtxtAxisline:"Centro a línea",pcMtxtBgColor:"Fondo",pcMtxtZoom:"Zoom a extensiones",pcMtxtFull:"Pantalla completa",pcMtxtFullexit:"Salida completa",pcFileTypeTips:"Formato de imagen no válido",pcBrepNotEnd:"Algo está incorrecto en la medición, vuelva a intentarlo",pcMtxtTextFind:"Búsqueda de Texto",colorBlack:"Negro",colorGrey:"Gris",colorBeige:"Beis",tagAudioTips1:"El tiempo de diálogo",tagDelConfirm:"¿Deseas borrar el comentario actual?",tagSaveConfirm:"¿Deseas guardar los comentarios actuales?",tagAudioTimeTip:"",tagAudioCreate:"Deshacer para crear un mensaje de voz",tagAudioPress:"Pulsa para hablar",tagExitSee:"Salir",tagExit:"Salir",tagExit2:"Salir",tagTips:"Introduce el texto",tagDelImg:"Borrar imagen",tagNoRoot:"Permite el acceso a tu micrófono",tagSaveConfirm2:"¿Deseas guardar los comentarios actuales?",tagSeeBigImg:"Ver imagen más grande",tagSeeSmallImg:"Minimizar",measureTimesErr:"Actualmente, hay demasiados datos de medición, elimínalos y vuelva a intentarlo",modelLoadErr:"¡Error del modelo cargado!",modelLimitErr:"Superó el número máximo de usuarios",pcMtxtLineWeight:"Mostrar el grosor de la línea",pcMtxtLineWeight2:"Ocultar el grosor de la línea",textFind:"Búsqueda de Texto",textFindTxt1:"Contenido",textFindTxt2:"Zona",textFindTxt3:"Dibujo completo",textFindTxt4:"Selección de caja",textFindTxt5:"Seleccionar área",textFindTxt6:"Resultados coincidentes",textFindTxt7:"Anterior",textFindTxt8:"Posterior",textFindTxt9:"Introducir texto de búsqueda",textFindCursor:"Seleccione un área de búsqueda",textFindNoResult:"No hay texto coincidente"},Ta={cancel:"キャンセル",save:"保存",sure:"確認",search:"検索",search2:"検索",back:"後",exit:"終了",del:"削除",searchTree:"設計を検索",searchTree2:"デザインパートの検索",gUnit:"",areaBoxTxt:"面積:",volumnBoxTxt:"容積:",areaAllBoxTxt:"総面積:",volumnAllBoxTxt:"総容積:",premierTxt:"周長",noTxt:"NO.",sizeTxt:"寸法",chooseToLayout:"レイヤー",chooseLayer:"レイヤー",chooseBgColor:"背景色",scaleMeter:"スケール",accuracyInfo:"モデルが複雑すぎてロードできないため、低精度モードを選択して表示することをお勧めします。",lowAccuracy:"低精度モード",highAccuracy:"高精度モード",resetEye:"ホームビュー",reset:"リセット",hideNote:"コメントを非表示",showNote:"コメントを表示",tagNote:"コメント",meter:"測定",structureTree:"設計",showHide:"表示と非表示",chooseMeterType:"測定形式",chooseMeterDistanceType:"距離形式",chooseMeterLengthType:"長さ形式",chooseMeterAngleType:"角度形式",chooseMeterAreaType:"面積形式",chooseMeterVolumnWeightType:"容積形式",chooseTagType:"マークアップの形式",distance:"距離",pointToPoint:"点から点へ",pointToLine:"点から直線へ",pointToFace:"直線から表面へ",lineToLine:"線から直線へ",circleDistance:"中心距離",dotToPoint:"軸穴から点へ",dotToLine:"軸穴から直線へ",length:"長さ",meterLine:"線測定 ",circleLength:"周長",angle:"角度",lineToAngle:"直線間の角度",radius:"半径",area:"面積",clear:"クリア",chooseStructureTree:"設計",noTreeData:"結果未発見",noTreeData2:"データなし",chooseAttrType:"属性から選択",totalAttr:"合計属性",selAttrDetail:"エンティティを選択",totalattrDetail:"合計属性詳細",normalAttr:"汎用",selfAttr:"ユーザー定義",noAttr:"属性未発見",faceFace:"表面面積",volumn:"容積",weight:"重量",boxVolume:"境界ボックスの容積",objNum:"エンティティ数",partNum:"部品数",pmiNum:"PMI数",sureToDelAttr:"プロパティを削除しますか?",chooseShowType:"表示モード",serveErrorTips:"例外",dataIsNeed:"必須",noChildCfg:"現在、サブメニュー設定不十分",choosePoint:"マークアップの位置を選択してください",tagTitle:"マークアップ",tagholder:"ここに説明を入力してください。(任意)",tagPoint:"点",tagText:"テキスト",tagDraw:"作図",tagArrow:"矢印",tagLine:"線",tagCircle:"円",tagRect:"直方体",tagSave:"保存",tagCancle:"キャンセル",tagTip1:"不正文字を入力しないでください",tagTip2:"画像過大",tagTip3:"無効な画像形式",tagTip4:"画像を選択してください",tagTip5:"選択",loadError:"読み込みエラー",pcNowConfig:"現在のレイアウト",pcStructLv:"設計階層",chooseMateria2:"物件のタイプを選択してください",pcInpAttrName3:"属性名複製",pcMtxtHomeView:"ホームビュー",pcMtxtTagTxt:"テキスト",pcMtxtTagImg:"画像",pcMtxtTagImg2:"画像",pcMtxtTagTxtImg:"画像とテキスト",pcMtxtSmartMeter:"インテリジェントな測定",pcMtxtDistance:"距離",pcMtxtLength:"長さ",pcMtxtRadius:"半径",pcMtxtVolWet:"容積と重量",pcMtxtBox:"境界ボックス",pcMtxtP2P:"点から点へ",pcMtxtP2L:"点から直線へ",pcMtxtP2F:"点から表面へ",pcMtxtL2L:"線から直線へ",pcMtxtL2F:"直線から表面へ",pcMtxtF2F:"表面から表面へ",pcMtxtCpoint:"中心距離",pcMtxtX2P:"軸穴から点へ",pcMtxtX2L:"軸穴から直線へ",pcMtxtX2F:"軸穴から表面へ",pcMtxtLmeter:"線測定",pcMtxtPmeter:"周長",pcMtxtAngleL:"直線間の角度",pcMtxtAngleF:"平面間の角度",pcMtxtAngleLF:"線と平面の角度",pcMtxtToF:"平面を選択します",pcMtxtToSingle:"エンティティを選択",pcMtxtToAllPart:"実体全体",pcMtxtToAllBox:"合計境界ボックス",pcMtxtToAllAttr:"合計属性",pcMtxtTolArea:"総面積",pcMtxtIplus:"ズーム範囲",pcCoutTip1:"時計回り回転",pcCoutTip2:"反転",pcCoutTip3:"最大化",pcCoutTip4:"ミラー",pcCoutTip5:"最小化",pcCursorTip:"オブジェクトを選択するクリック",pcAllVol:"全容積",pcAllWeight:"総重量",pcUnitIcon:"単位設定",pcUnitType1:"デフォルト単位",pcUnitType2:"メートル単位(mm)",pcUnitType3:"帝国単位(in)",rightScaleTips:"正しい尺度を入力してください",pcMtxtCoordinate:"IDポイント",pcMtxtEdges:"長さ",pcMtxtContinuousLine:"連続長さ",pcMtxtContinuousArea:"面積",pcMtxtLineAngel:"角度",pcMtxtScale:"スケール",pcMtxtLinear:"線形測定",pcMtxtHoleDist:"中心距離",pcMtxtAxis2pt:"中心から点まで",pcMtxtAxisline:"中心から線まで",pcMtxtBgColor:"背景",pcMtxtZoom:"ズーム範囲",pcMtxtFull:"フルスクリーン",pcMtxtFullexit:"フルスクリーンを終了",pcFileTypeTips:"無効な画像形式",pcBrepNotEnd:"測定に問題があります。もう一度お試しください",pcMtxtTextFind:"テキスト検索",colorBlack:"黒",colorGrey:"灰色",colorBeige:"ベージュ",tagAudioTips1:"対話時間過短",tagDelConfirm:"現在のコメントを削除しますか?",tagSaveConfirm:"現在のコメントを保存しますか?",tagAudioTimeTip:"",tagAudioCreate:"取り消して音声を作成",tagAudioPress:"プッシュして話す",tagExitSee:"終了",tagExit:"終了",tagExit2:"終了",tagTips:"テキストを入力してください",tagDelImg:"画像を削除",tagNoRoot:"マイクへのアクセスを許可してください",tagSaveConfirm2:"現在のコメントを保存しますか?",tagSeeBigImg:"拡大画像を見ます",tagSeeSmallImg:"最小化",measureTimesErr:"測定データが多すぎるので、削除してもう一度お試しください",modelLoadErr:"モデルロードエラー!",modelLimitErr:"最大ユーザー数を超えました",pcMtxtLineWeight:"ラインウェイトを表示",pcMtxtLineWeight2:"ラインウェイトを非表示",textFind:"テキスト検索",textFindTxt1:"内容",textFindTxt2:"エリア",textFindTxt3:"全体図",textFindTxt4:"ボックスの選択",textFindTxt5:"エリアを選択します",textFindTxt6:"照合結果",textFindTxt7:"前へ",textFindTxt8:"次へ",textFindTxt9:"検索テキストを入力します",textFindCursor:"検索エリアを選択します",textFindNoResult:"一致するテキストなし"};const Oa={zh:{...wa},en:{...fa},french:{...ba},german:{...Ca},italy:{...Sa},spanish:{...xa},japan:{...Ta}};let ya="zh";window.nd_viewCtrl&&window.nd_viewCtrl.language&&(ya=nd_viewCtrl.language);const Ma=Object(s["createI18n"])({globalInjection:!0,legacy:!1,locale:ya,messages:Oa});var ja=Ma;o("93fc");let Da=function(e){return new Promise(t=>{var o=new Image;o.onload=function(){1==this.complete&&(t(!0),o=null)},o.onerror=function(){t(!1),o=null},o.src=e})};const Ea={beforeMount(e,t,o,n){let i=t.value;i&&Da(i).then(t=>{t&&e.setAttribute("src",i)})}};function ka(e){}function Ia(e){var t=e.el.id;nd_viewCtrl&&nd_viewCtrl.checkEvent?nd_viewCtrl.checkEvent(t,(function(o){0!=o&&(e.args&&e.args.apply(),nd_viewCtrl&&nd_viewCtrl.checkEventAfter&&nd_viewCtrl.checkEventAfter(t))})):e.args&&e.args.apply()}const Aa=e=>{e.el.addEventListener("click",(function(t){t.stopPropagation(),Ia(e)}))},Ba={created(e,t){const o=t.value;Aa({el:e,args:o})}};var Na={install:ka,clickDirective:Ba};const _a=function(e,t){let n=nd_viewCtrl.language||"zh";const i=t.value[0],r=t.value[1],a=La(r);let c;const s=Object({NODE_ENV:"production",VUE_APP_LANGUAGE:"zh",VUE_APP_ONETAG:"",BASE_URL:""}).VUE_APP_PUBLIC||"",l="",d=nd_viewCtrl.vipBtnCfg||[];d.includes("#"+r)&&(n+="-vip"),a?c=a:l?(c=o("794e")("./ico-"+n+"/"+i+".png"),"true"==e.getAttribute("selected")&&(c=o("7296")("./ico-"+n+"/"+i+"-c.png"))):c=nd_viewCtrl.themeMenu?s+"img/"+nd_viewCtrl.themeMenu+"/"+i+".png":s+"img/ico-"+n+"/"+i+".png",e&&("true"==e.getAttribute("selected")?(c=Va(c),e.classList.add("select-m")):e.classList.remove("select-m"),e.setAttribute("src",c),e.onerror=function(){})},La=function(e){const t=w();if("show"!=t.type)return!1;const o=t.showbtns||[];if(o.length<1)return!1;let n="";function i(e,t){for(let o=0;o<t.length;o++){let r=t[o];if(e==r.id){n=r.imgUrl||"";break}r.list&&i(e,r.list)}}return i(e,o),n};const Va=function(e){let t=e;return t=t.replace(/.png/,"-c.png"),t=t.replace(/.PNG/,"-c.PNG"),t=t.replace(/.jpg/,"-c.jpg"),t=t.replace(/.JPG/,"-c.JPG"),t=t.replace(/.jpeg/,"-c.jpeg"),t=t.replace(/.JPEG/,"-c.JPEG"),t},za=function(e,t){};function Pa(e,t,o,n){const i=e.querySelector(".dialog_header"),r=e;i.style.cssText+=";cursor:move;";const a=function(){return window.document.currentStyle?(e,t)=>e.currentStyle[t]:(e,t)=>getComputedStyle(e,!1)[t]}();i.onmousedown=null,i.onmousedown=e=>{const o=e.clientX,n=e.clientY,i=document.getElementById("vueMain").offsetWidth,c=document.getElementById("vueMain").offsetHeight,s=r.offsetWidth,l=r.offsetHeight,d=r.offsetLeft,u=i-r.offsetLeft-s,m=r.offsetTop,g=c-r.offsetTop-l;let h=a(r,"left"),p=a(r,"top");h.includes("%")?(h=+document.getElementById("vueMain").offsetWidth*(+h.replace(/\%/g,"")/100),p=+document.getElementById("vueMain").offsetHeight*(+p.replace(/\%/g,"")/100)):(h=+h.replace(/\px/g,""),p=+p.replace(/\px/g,"")),document.onmousemove=null,document.onmousemove=function(e){let a=e.clientX-o,s=e.clientY-n;"openLimit"!=t.value&&(-a>d?a=-d:a>u&&(a=u),-s>m?s=-m:s>g&&(s=g));let l=(a+h)/i*100,v=(s+p)/c*100;a+h<0&&(l=0),s+p<0&&(v=0),"openLimit"==t.value?r.style.cssText+=`;left:${a+h}px;top:${s+p}px;bottom: auto;right: auto;`:r.style.cssText+=`;left:${l}%;top:${v}%;bottom: auto;right: auto;`},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}let Fa;function Ra(e){Fa=e.config.globalProperties}function $a(e){Fa.$tag.interfaceOpenFlag=!0;const t=te.state.modelStore.allTag,o=te.state.modelStore.configs,n=te.state.modelStore.nowConfigName;let i=t.filter((function(t){return e==t.state.uuid}));if(i=i[0]||{},i.modelName&&i.modelName!=n){for(var r=0;r<o.length;r++)if(o[r].Name==i.modelName){te.commit("modelStore/setAnnotationTagId",e),te.commit("modelStore/changeMultipleCfg",r);break}}else ne.selectAnnotation(e)}window.nd_setViewBoxDir=function(e){ne._viewer.setViewBoxDir(e)},window.nd_getBrepMemory=function(){return ne._viewer.getBrepMemory()},window.nd_setCameraInfo=function(e){var t=JSON.parse(e);ne._viewer.setCameraInfo(t,!0)},window.nd_getCameraInfo=function(){var e=ne._viewer.getCameraInfo();return JSON.stringify(e)},window.nd_screenCapture=function(e,t){var o=0!=t;ne._viewer.getScreenCapture2((function(t){e&&e(t)}),!1,o)},window.nd_screenshot=function(e){nd_screenCapture(e)},window.nd_screenBounding=function(e){ne._viewer.getScreenCapturethumbnail((function(t){e&&e(t)}))},window.nd_addTag=function(){"meter"!=te.state.menuStore.menuChoose&&"meterDistance"!=te.state.menuStore.menuChoose2||Fa.$eventBus.emit("closeMeasure"),Fa.$msgBox.isShow&&(Fa.$msgBox.isShow=!1),Fa.$bottomBtn.chooseToTag(),te.commit("menuStore/setShowOneMenu",!1)},window.nd_addTag=nd_addTag,window.nd_delTags=function(e){te.commit("modelStore/delTagByuuid",e),"sync"==nd_viewCtrl.viewMode?(te.commit("tagStore/setTagshow",!0),ne._viewer.removeAllAnnotations(),setTimeout(()=>{je(te.state.modelStore.nowTag,te.state.modelStore.allTag),nd_viewCtrl.rtmSDK.isRtmOperate||nd_viewCtrl.rtmSDK.isRtmFreeOper||Ae.closeTagChange(te.state.modelStore.allTag||[]),Ae.sendCenter(6),Ae.sendCenter(2)},100)):(ne.removeAnnotation(e),je(te.state.modelStore.nowTag,te.state.modelStore.allTag))},window.nd_delTag=window.nd_delTags,window.nd_updateTagtext=function(e,t){const o=te.state.modelStore.allTag;let n=o.filter((function(t){return e==t.state.uuid}));return!!(n&&n.length>0)&&(te.commit("modelStore/updateTagText",{uuid:e,text:t}),Fa.$tag.updateTagText(e,t),n[0])},window.nd_version=function(){localStorage.setItem("version",encodeURIComponent("DEV-2022-27 3D Viewer V5.2.x(PC Viewer样式优化、单位转换)"))},window.nd_getMeasuringScale=function(){var e=te.state.modelStore.measureScale;return e},window.nd_selectTag=function(e,t,o){var n=Fa.$tag;o?te.commit("modelStore/setNeedOpenImg",!0):te.commit("modelStore/setNeedOpenImg",!1),n.tcStep1&&n.saveEnable?(t&&t(!1),Fa.$msgBox.showMsg(Fa.$t("tagSaveConfirm2"),(function(){n.sureSave()}),(function(){$a(e)}))):$a(e)},window.nd_getShareInfo=function(){var e=-1,t=te.state.modelStore.isModelCfg;t&&(e=te.state.modelStore.nowConfig);var o=ne._viewer.getCameraInfo(),n=te.state.modelStore.measureScale,i=te.state.modelStore.bgSetList,r=te.state.modelStore.unit,a=te.state.modelStore.suportLineWeight;return{camerainfo:o,configNum:e,scale:n,bgSetList:i,unitType:r,suportLineWeight:a}},window.nd_print=function(e,t){if(!e||!t)return"传参错误";H(t,(function(){printSDK&&printSDK.init((function(t){e&&e(t)}),"inviewer")}))},window.nd_getPrintData=function(e,t,o,n,i,r){return"select"==i?ne.getPrintData(e,t,o,n,i,r):"view"==i?ne.getPrintData(e,t,o,n,i):ne.getPrintData(e,t,o,n)},window.nd_stopPlayAudio=function(){var e=Fa.$tag;e.tcCheckTI&&"checkaudio"==e.tcType&&e.exitChecktag()},window.nd_openPrintMode=function(e){var t=Fa;function o(){te.commit("setPrintMode",!0),te.state.menuStore.structMenu&&(te.commit("menuStore/setMenuChoose",""),te.commit("menuStore/setStructMenu",!1)),te.commit("menuStore/setShowManyConfig",!1),t.$eventBus.emit("closeCfg"),(t.$tag.tcCheckTI||"checkaudio"==t.$tag.tcType)&&t.$tag.exitChecktag(),t.$tag.tcStep0&&t.$tag.cancelSave(),"bgColor"==te.state.menuStore.menuChoose&&te.commit("menuStore/setMenuChoose",""),"unitChange"==te.state.menuStore.menuChoose&&(te.commit("menuStore/setMenuChoose",""),te.commit("menuStore/setUnitMenu",!1)),"zoomwindow"==te.state.menuStore.menuChoose&&(te.commit("menuStore/setMenuChoose",""),ne._viewer.setOperatorByID("OpPan")),"meter"!=te.state.menuStore.menuChoose&&"meterDistance"!=te.state.menuStore.menuChoose2||t.$eventBus.emit("closeMeasure"),ne._viewer.setAnnotationsVisibility(0),ne.clearSelection(),e&&e(!0)}t.$tag.tcStep1&&t.$tag.saveEnable?(e&&e(!1),t.$msgBox.showMsg("是否保存当前批注内容?",(function(){t.$tag.sureSave()}),(function(){te.commit("setPrintMode",!0),t.$tag.cancelSave(),o()}))):t.$tag.tcStep1?(te.commit("setPrintMode",!0),t.$tag.cancelSave(),o()):o()},window.nd_closePrintMode=function(){te.commit("setPrintMode",!1),te.commit("menuStore/setShowManyConfig",!0),te.state.tagStore.tagShow&&ne._viewer.setAnnotationsVisibility(1)},window.nd_getPrintDataCallback=function(e,t,o,n,i,r,a){"select"==r?ne.getPrintDataCallback((function(t){e&&e(t)}),t,o,n,i,r,a):"view"==r?ne.getPrintDataCallback((function(t){e&&e(t)}),t,o,n,i,r):ne.getPrintDataCallback((function(t){e&&e(t)}),t,o,n,i)},window.nd_setBackGroundColor=function(e){var t=colorToNumber(e);ne._viewer.setBackGroundColor(t);const o=te.state.modelStore.bgSetList||[];if(o.length>0){for(let e=0;e<o.length;e++)o[e]="num:"+String(t);te.commit("modelStore/setInitBgSetList",o),te.commit("modelStore/setShareBg","num:"+String(t))}},window.nd_resize=function(){ne._viewer.onWindowResize()},window.nd_render=function(){ne._viewer.render()},window.nd_screenTagCap=function(e){be(e)},window.nd_screenMainContent=function(e){Ce(e)},window.nd_getScreenCaptureByData=function(e,t){ne._viewer.getScreenCapturethumbnailByData(t=>{e&&e(t)},t)},window.nd_getAllTags=function(){const e=te.state.modelStore.allTag||[];return e.map(e=>{e.state&&e.state.locationObject&&delete e.state.locationObject}),e},window.nd_createPicTag=function(e,t){Fa.$eventBus.emit("apiCreateTagSub"),Fa.$tag.apiCreateTag(e,t)},window.nd_initAlltag=function(e){try{const t=Ee(e);te.commit("modelStore/setAllTag",e),te.commit("modelStore/setNowTag",t),ne._viewer.removeAllAnnotations(),Ae.closeTagChange(e||[]),je(t,e,!0)}catch(t){}},window.nd_rtmReceiveAllMsg=function(e){nd_viewCtrl.rtmSDK.rtmGetChannelMsg((function(t){Ae.receiveAllMsg(t,e,"fromWindow")}))},window.nd_rtmSendAllMsg=function(){Ae.sendAllMsg()},window.nd_rtmReceiveMsg=function(e){Ae.receiveCenter(e)},window.nd_rtmSetMettingMsg=function(e){e.hasOwnProperty("isRtmFreeOper")&&Ae.freeOperChange(e.isRtmFreeOper),e.hasOwnProperty("isRtmOperate")&&Ae.operateChange(e.isRtmOperate)};var Ua={install:Ra,nd_addTag:nd_addTag,nd_delTags:nd_delTags,nd_updateTagtext:nd_updateTagtext,nd_setBackGroundColor:nd_setBackGroundColor,nd_getShareInfo:nd_getShareInfo,nd_resize:nd_resize,nd_render:nd_render};const Ha=Object(n["createApp"])(pa);Ha.directive("real-img",Ea),Ha.directive("click-track",Na.clickDirective),Ha.directive("img-switch",_a),Ha.directive("tooltip",za),Ha.directive("drag",Pa),Ha.config.globalProperties.$eventBus=new va["a"],Ha.use(pa),Ha.use(Ua);const Wa=Ha.use(te).use(ja).mount("#app");Ha.use(Na);var Ga=t["default"]=Wa},5880:function(e,t){e.exports=Vuex},"58d1f":function(e,t,o){"use strict";o("b85f")},"59ce":function(e,t,o){e.exports=o.p+"img/icon-radio-s.73302fd7.png"},"61bc":function(e,t,o){e.exports=o.p+"img/return-icon.1cb36f98.png"},"63c5":function(e,t,o){},6957:function(e,t,o){},"6e29":function(e,t,o){},7143:function(e,t,o){e.exports=o.p+"img/radio-check.818b2d54.png"},7296:function(e,t){function o(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}o.keys=function(){return[]},o.resolve=o,e.exports=o,o.id="7296"},"73b2":function(e,t,o){},7572:function(e,t,o){},7863:function(e,t,o){e.exports=o.p+"img/close-icon.cb122c82.png"},7928:function(e,t,o){},"794e":function(e,t){function o(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}o.keys=function(){return[]},o.resolve=o,e.exports=o,o.id="794e"},"82fc":function(e,t,o){e.exports=o.p+"img/pen.16c2a6dd.png"},"88ae":function(e,t,o){},"8bbf":function(e,t){e.exports=Vue},"93fc":function(e,t){const o=32;function n(){const e=document.documentElement.clientWidth/2380;document.documentElement.style.fontSize=o*Math.min(e,2)+"px"}n(),window.addEventListener("resize",()=>{n()})},9718:function(e,t,o){e.exports=o.p+"img/color.ad185a94.png"},b514:function(e,t,o){"use strict";o("6957")},b53e:function(e,t,o){"use strict";o("3421")},b85f:function(e,t,o){},b8c8:function(e,t,o){},baa4:function(e,t,o){"use strict";o("526f")},bc2f:function(e,t,o){e.exports=o.p+"img/nomsg-en.dfbc6e31.png"},bc8c:function(e,t,o){"use strict";o("d2c8")},bf42:function(e,t,o){},c7ac:function(e,t,o){e.exports=o.p+"img/warn.da864e81.png"},d2c8:function(e,t,o){},d372:function(e,t,o){},d84c:function(e,t,o){e.exports=o.p+"img/area-ico-s.778928d9.png"},dcf9:function(e,t,o){},dd36:function(e,t,o){e.exports=o.p+"img/line.de196a65.png"},e055:function(e,t,o){"use strict";o("6e29")},e1d4:function(e,t,o){"use strict";o("0e28")},eb18:function(e,t,o){"use strict";o("bf42")},eec7:function(e,t,o){e.exports=o.p+"img/close-menu.724f59a4.png"},f18e:function(e,t,o){e.exports=o.p+"img/icon-radio-n.4f7c47c7.png"},fba1:function(e,t,o){"use strict";o("dcf9")},fd38:function(e,t,o){"use strict";o("73b2")}});
|