@xtctwins/tctwins-bimx-engine 0.3.20 → 0.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. package/README.md +1 -1
  2. package/dist/{AnnotationTool-BdpbH5GD.mjs → AnnotationTool-DCHJcLix.mjs} +2 -2
  3. package/dist/BIMX_Viewer_Lib.es.js +1 -1
  4. package/dist/BIMX_Viewer_Lib.umd.js +1 -1
  5. package/dist/{CameraViewTool-DZgfvZWz.mjs → CameraViewTool-CJfs6vWu.mjs} +1 -1
  6. package/dist/{CommentTool-wnbLGy67.mjs → CommentTool-mcXTV3bv.mjs} +1 -1
  7. package/dist/{HiddenTool-Cd4f17Dt.mjs → HiddenTool-BXTqbPUK.mjs} +1 -1
  8. package/dist/{InspectorTool-C2nndt-g.mjs → InspectorTool-D6DtUWoh.mjs} +3 -3
  9. package/dist/{MeasureTool-BsMkog4B.mjs → MeasureTool-BZxE7H7U.mjs} +3 -3
  10. package/dist/{MouseTool-BNJTSuhL.mjs → MouseTool-Clt4JeIj.mjs} +1 -1
  11. package/dist/{NavigateTool-D2JI1BJD.mjs → NavigateTool-cQshheaw.mjs} +1 -1
  12. package/dist/{OperateTool-BebljnDn.mjs → OperateTool-C86C-l1z.mjs} +1 -1
  13. package/dist/{RoamTool-BbTe1gv-.mjs → RoamTool-DueJxPwv.mjs} +1 -1
  14. package/dist/{ScreenShotTool-D5h8wDJx.mjs → ScreenShotTool-DDtQfqF5.mjs} +2 -2
  15. package/dist/{SectionTool-D2Sxtt9O.mjs → SectionTool-CKrvJEQ9.mjs} +3 -3
  16. package/dist/{SettingTool-BhKIEnOm.mjs → SettingTool-CWAOl-yl.mjs} +2 -2
  17. package/dist/{StructureTree-Ve6eLaxT.mjs → StructureTree-BTqIDob7.mjs} +3 -3
  18. package/dist/{alert-CBH1N-0R.mjs → alert-D-agI6w6.mjs} +1 -1
  19. package/dist/{index-DL-9hfEJ.mjs → index-jngVSTsO.mjs} +15 -15
  20. package/dist/{panel.vue_vue_type_style_index_0_lang-C33jjUak.mjs → panel.vue_vue_type_style_index_0_lang-DfDOwKP2.mjs} +1 -1
  21. package/dist/{tallPanel-DXh42FgN.mjs → tallPanel-CNORaYkU.mjs} +1 -1
  22. package/package.json +1 -1
package/README.md CHANGED
@@ -193,4 +193,4 @@ type EventContent = {
193
193
  ```
194
194
 
195
195
  ---
196
- ##### 测试
196
+ ##### 正式
@@ -1,6 +1,6 @@
1
- import { _ as D } from "./alert-CBH1N-0R.mjs";
1
+ import { _ as D } from "./alert-D-agI6w6.mjs";
2
2
  import { defineComponent as O, ref as p, watch as q, onMounted as H, onBeforeUnmount as R, openBlock as i, createElementBlock as a, unref as n, createCommentVNode as b, createElementVNode as c, normalizeClass as f, Fragment as B, renderList as C, toDisplayString as U, withDirectives as z, createVNode as F, vShow as j } from "vue";
3
- import { n as G, o as J, p as o, q as v, a7 as l, O as r, y as K } from "./index-DL-9hfEJ.mjs";
3
+ import { n as G, o as J, p as o, q as v, a7 as l, O as r, y as K } from "./index-jngVSTsO.mjs";
4
4
  const Q = { class: "annotation_component" }, Y = {
5
5
  key: 0,
6
6
  id: "annotation_toolbar",
@@ -1,4 +1,4 @@
1
- import { aC as e, C as t, aD as o, aJ as i, V as l, aG as n, aH as I, aM as r, aE as C, aI as f, aF as g, aK as M, aL as u, z as B } from "./index-DL-9hfEJ.mjs";
1
+ import { aC as e, C as t, aD as o, aJ as i, V as l, aG as n, aH as I, aM as r, aE as C, aI as f, aF as g, aK as M, aL as u, z as B } from "./index-jngVSTsO.mjs";
2
2
  export {
3
3
  e as BIMXViewer,
4
4
  t as BIMX_CONFIGS,
@@ -1,4 +1,4 @@
1
- (function(Nr,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("axios"),require("ali-oss"),require("element-plus"),require("@element-plus/icons-vue"),require("pinia"),require("mitt")):typeof define=="function"&&define.amd?define(["exports","vue","axios","ali-oss","element-plus","@element-plus/icons-vue","pinia","mitt"],o):(Nr=typeof globalThis<"u"?globalThis:Nr||self,o(Nr.BIMX_Viewer_Lib={},Nr.Vue,Nr.axios,Nr.AliOss,Nr.ElementPlus,Nr.ElementPlusIconsVue,Nr.Pinia,Nr.Mitt))})(this,function(Nr,o,gc,Rk,$m,mi,Km,Ok){"use strict";var Gbe=Object.defineProperty;var Qbe=(Nr,o,gc)=>o in Nr?Gbe(Nr,o,{enumerable:!0,configurable:!0,writable:!0,value:gc}):Nr[o]=gc;var bi=(Nr,o,gc)=>Qbe(Nr,typeof o!="symbol"?o+"":o,gc);const qy={"zh-CN":{bimxViewer:{modelLoading:{network:"正在从网络获取模型数据…",model:"模型加载中…"},common:{confirm:"确认",cancel:"取消",delete:"删除",add:"添加",edit:"编辑",save:"保存",submit:"提交",close:"关闭",back:"返回",next:"下一个",previous:"上一个",search:"搜索",reset:"重置",export:"导出",import:"导入",upload:"上传",download:"下载",refresh:"刷新",placeholder_input:"请输入",placeholder_select:"请选择",all:"全部",placeholder_date:"请选择日期",placeholder_search:"请输入搜索内容",image:"图片",placeholder_comment:"请输入评论内容",title:"标题",view:"查看",created:"创建",done:"完成",lang_zh:"中文",lang_en:"英文",organization:"组织",date:"日期",unknown:"未知",loading:"加载中...",noData:"暂无数据",emptyPage:"这里空空的,快去上传文件吧~",areYouSureDelete:"您确认要删除",questionMark:"吗?",success:"操作成功",error:"操作失败",warning:"警告",info:"提示",confirmEdit:"确认修改"},toolbar:{tree:"结构树",reset:"复位",roam:"漫游",cameraView:"视角记录",measure:"测量",section:"剖切",comment:"批注",anno:"标注",screenshot:"截图",inspector:"属性",setting:"设置",fullscreen:"全屏",exitFullscreen:"退出全屏",virtualMouse:"虚拟鼠标",enjoy:"共享",share:"分享",cooperate:"协同",bcf:"BCF",navigate:"视图方向",mouse:"迷你鼠标",hidden:"透视",operate:"操作"},hidden:{hide:"隐藏",perspective:"透视",select:"选中",recover:"恢复"},bcf:{title:"BCF",addNew:"新建BCF",detail:"BCF详情",list:"BCF列表",filter:"筛选",type:"类别",priority:"优先级",status:"状态",stage:"阶段",assignedTo:"分配给",dueDate:"截止日期",description:"问题描述",comment:"评论",noComments:"暂无评论",thisComment:"这条评论",viewpoint:"视角",addViewpoint:"添加视角",addObject:"添加模型对象",addMarker:"添加标记",viewElements:"查看元素",labels:"标签",author:"创建者",createDate:"创建日期",modifiedDate:"修改日期",createNow:"立即创建",error_title_required:"请输入标题!",elements:"个元素",creator:"创建人",commentNow:"立即评论",addComment:"添加评论",editComment:"修改评论",snapshot:"快照截屏",screenshot:"立即截屏",index:"序号",time:"时间",createTime:"创建时间",emptyHint:"这里空空的,快去创建你的BCF吧~",addedObjects:"已添加对象共:",addedAnnotations:"已添加标注共:",hintClickToAddObject:"直接点击模型上的结构即可添加对象",hintHoldLeftClickMultiSelect:"按下鼠标左键可连续多选",types:{basic:"模型基本结构",conflict:"模型结构冲突",error:"模型错误"},priorities:{high:"高",middle:"中",low:"低"},statuses:{closed:"已关闭",inProgress:"进行中",resolved:"已解决"},stages:{planningEnd:"初步规划结束",constructionStart:"施工开始",constructionEnd:"施工结束"},tags:{architecture:"建筑",hvac:"暖通",mep:"MEP",structure:"结构"},messages:{pleaseInputTitle:"请输入标题!",deleteConfirm:"确认删除该BCF?",deleteCommentConfirm:"确认删除该评论?"}},mobileComments:{empty:"这里空空的,快去创建你的CMT吧~",filter:{title:"筛选",priority:"筛选优先级",status:"筛选状态",author:"筛选创建人",tag:"筛选标签(可多选)"},createText:"创建文字批注",pleaseInputContent:"请输入内容",backToModel:"返回模型",deleteComment:"删除批注",newComment:"新建批注",list:"批注列表",createSuccess:"批注创建成功",notice:{title:"提示"}},mobileBcf:{selectPanel:{titleSuffix:"标题"},add:{continueScreenshot:"继续截屏",createNow:"立即创建",confirmEdit:"确认修改"},filter:{tag:"筛选标签(可多选)"}},setting:{title:"设置",effect:"效果",bgColor:"背景颜色",showEdges:"显示边缘",perfMode:"性能模式",perfModeTip:"弱显卡或核显建议开启:降低渲染分辨率并关闭抗锯齿(切换后自动刷新)",lightIntensity:"光源强度",appearance:"外观模式",skybox:"天空盒",perspective:"透视/正交",ortho:"正交",mode2d3d:"2D/3D",modelInvert:"模型倒置",zAxisUp:"Z轴向上",modelSpace:"显示模型空间",spaceEffect:"空间效果",language:"语言",modelViewSwitch:"模型视角切换",zoomSpeed:"缩放速率",colors:{white:"白色",lightGray:"浅灰",gray:"灰色",darkGray:"深灰",black:"黑色"},spaceEffects:{transparent:"透明",wireframe:"线框",hide:"隐藏",bright:"亮",dark:"暗"}},bgColor:{gradientBlue:"渐变蓝",gray:"纯灰度",dimSky:"昏暗天空",white:"纯白色",milkBlue:"奶白蓝"},roles:{guest:"游客",user:"普通用户",admin:"管理员",creator:"创建者"},measure:{title:"测量",settings:"测量设置",distance:"距离",area:"面积",angle:"角度",angleLabel:"角度",totalLength:"总长度:",x:"X值:",y:"Y值:",z:"Z值:",pointDistance:"两点测距",pointAngle:"三点测角",edgeLength:"单边长度",edgeDistance:"两边间距",edgeAngle:"选边测角",faceArea:"面面积",circleRadius:"圆半径",elevation:"标高",distanceLabel:"距离:",lengthLabel:"长度:",areaLabel:"面积:",radiusLabel:"半径:",elevationLabel:"标高:",typeLabel:"类型:",hint_pointDistance:"请选择两个点进行距离测量",hint_pointAngle:"请选择三个顶点进行角度测量",hint_edgeLength:"请选择一条边查看长度",hint_edgeDistance:"请选择两条平行边查看间距",hint_edgeAngle:"请选择两条同平面的边进行角度测量",hint_circleRadius:"请选择圆或圆弧查看半径",hint_elevation:"请选择需要标注标高的点",setDatum:"设置标高基准线±0.000",hint_setDatumPick:"请点击新的基准线点位",setDatumHint:"当前无法设置基准线,请先切到「标高」",setDatumDone:"已将该点设为新的 ±0.000 基准线,其余标高已按新基准重算",scaleLabel:"比例:",unitLabel:"单位:",unitPlaceholder:"单位",precisionLabel:"精度:",precisionPlaceholder:"精度",clear:"清除",clearAll:"清除所有"},structure:{title:"结构树",search:"搜索构件",expand:"展开",collapse:"收起",showAll:"显示全部",hideAll:"隐藏全部",objects:"对象",categories:"类别",floors:"楼层",files:"文件",all:"全部"},inspector:{title:"属性",basic:"基本信息",properties:"属性",materials:"材质",noSelection:"未选中任何对象,请单击模型对象以查看构件属性。",name:"名称",type:"类型",objectCount:"对象数量",pSetsCount:"属性集数量",author:"作者",instanceProperties:"实例属性",typeProperties:"类型属性"},roam:{title:"漫游",courseTitle:"在第一视角中导航",dontRemind:"不要再提醒我",gotIt:"好的,我知道了",speedLabel:"移动速度:",firstPerson:"第一人称",thirdPerson:"第三人称",speed:"速度",height:"高度",dontShowCourseMessage:"不要再显示漫游教程"},screenshot:{title:"截图",capture:"截取",save:"保存",widthPlaceholder:"请输入长度",heightPlaceholder:"请输入宽度",custom:"自定义"},annotation:{title:"标注",text:"文本",line:"线条",arrow:"箭头",clear:"清除",image:"图片",record:"语音",video:"视频",file:"文档"},section:{allSections:"全部剖切",sectionPrefix:"剖切面#",xAxis:"X轴",yAxis:"Y轴",zAxis:"Z轴",planeMode:"剖切面",boxMode:"剖切盒",boxShow:"显示剖切盒",boxHide:"隐藏剖切盒",bulk:{deleteAll:"删除所有剖切面",flipAll:"翻转所有剖切面",showAll:"显示所有剖切效果",hideAll:"隐藏所有剖切效果"}},validity:{"1day":"1天","7day":"7天","14day":"14天",permanent:"永久有效"},roleList:{viewOnly:"仅查看",viewDownload:"查看、下载文件"},navigate:{top:"俯视图",bottom:"仰视图",left:"左视图",right:"右视图",front:"前视图",back:"后视图",leftBottom:"西南",rightBottom:"东南",rightTop:"东北",leftTop:"西北"},enjoy:{annotation:"批注"},allocationRole:{viewOnly:"仅查看",editable:"可编辑"},project:{recentlyUsed:"最近使用",myProjects:"我参与的"},directory:{rename:"重命名",exit:"退出"},fontSize:{large:"大",medium:"中",small:"小"},commentTool:{pencil:"铅笔",arrow:"箭头",rectangle:"矩形",circle:"圆形",text:"文本"},alert:{selectPoint:"请先选择标注类别,然后在模型上点击标注",selectSectionPlane:"请在模型上点击创建剖切面"},clickEvent:{focus:"聚焦",hide:"隐藏",onlyShow:"仅显示",cancel:"取消",edge:"线框",fill:"填充",transparent:"透明",solid:"实体",multiSelect:"多选"},operate:{focus:"聚焦",hide:"隐藏",onlyShow:"仅显示",edge:"线框",fill:"填充",transparent:"透明",solid:"实体",multiSelect:"多选",recover:"恢复",hintDefault:"点击构件选中,或先选择操作模式",hintSelected:"已选 {count} 个构件,点击操作按钮批量执行",hintMultiSelected:"已选 {count} 个构件,继续点击构件追加选择",hintFocus:"点击构件,视角聚焦",hintHide:"点击构件将其隐藏",hintOnlyShow:"点击构件仅显示,可连续点击追加",hintEdge:"点击构件切换为线框显示",hintFill:"点击构件还原实体填充",hintTransparent:"点击构件切换为透明显示",hintSolid:"点击构件还原实体显示",hintMultiSelect:"点击构件加入选择,再次点击取消"}}},"en-US":{bimxViewer:{modelLoading:{network:"Downloading model data…",model:"Loading model…"},common:{confirm:"Confirm",cancel:"Cancel",delete:"Delete",add:"Add",edit:"Edit",save:"Save",submit:"Submit",close:"Close",back:"Back",next:"Next",previous:"Previous",search:"Search",reset:"Reset",export:"Export",import:"Import",upload:"Upload",download:"Download",refresh:"Refresh",placeholder_input:"Please input",placeholder_select:"Please select",all:"All",placeholder_date:"Please select date",placeholder_search:"Please input search content",image:"Image",placeholder_comment:"Please input comment content",title:"Title",view:"View",created:"Created",done:"Done",lang_zh:"Chinese",lang_en:"English",organization:"Organization",date:"Date",unknown:"Unknown",loading:"Loading...",noData:"No Data",emptyPage:"It's empty here, upload some files~",areYouSureDelete:"Are you sure you want to delete",questionMark:"?",success:"Success",error:"Error",warning:"Warning",info:"Info",confirmEdit:"Confirm Edit"},toolbar:{tree:"Structure Tree",reset:"Reset",roam:"Roaming",cameraView:"Camera View",measure:"Measure",section:"Section",comment:"Comment",anno:"Mark",screenshot:"Screenshot",inspector:"Properties",setting:"Settings",fullscreen:"Fullscreen",exitFullscreen:"Exit Fullscreen",virtualMouse:"Mouse",enjoy:"Teamwork",share:"Share",cooperate:"Collaborate",bcf:"BCF",navigate:"Navigate",mouse:"Mini Mouse",hidden:"Perspective",operate:"Operate"},hidden:{hide:"Hide",perspective:"Perspective",select:"Selected",recover:"Recover"},bcf:{title:"BCF",addNew:"New BCF",detail:"BCF Detail",list:"BCF List",filter:"Filter",type:"Type",priority:"Priority",status:"Status",stage:"Stage",assignedTo:"Assigned To",dueDate:"Due Date",description:"Description",comment:"Comment",noComments:"No comments",thisComment:"This comment",viewpoint:"Viewpoint",addViewpoint:"Add Viewpoint",addObject:"Add Model Object",addMarker:"Add Marker",viewElements:"View Elements",labels:"Labels",author:"Author",createDate:"Create Date",modifiedDate:"Modified Date",createNow:"Create Now",error_title_required:"Please input title!",elements:"Elements",creator:"Creator",commentNow:"Comment Now",addComment:"Add Comment",editComment:"Edit Comment",snapshot:"Snapshot",screenshot:"Take Screenshot",index:"Index",time:"Time",createTime:"Create Time",emptyHint:"No BCF here, create your first BCF now~",addedObjects:"Added objects:",addedAnnotations:"Added annotations:",hintClickToAddObject:"Click on structure in the model to add objects",hintHoldLeftClickMultiSelect:"Hold left mouse button to multi-select",types:{basic:"Model Basic Structure",conflict:"Model Structure Conflict",error:"Model Error"},priorities:{high:"High",middle:"Medium",low:"Low"},statuses:{closed:"Closed",inProgress:"In Progress",resolved:"Resolved"},stages:{planningEnd:"Planning End",constructionStart:"Construction Start",constructionEnd:"Construction End"},tags:{architecture:"Architecture",hvac:"HVAC",mep:"MEP",structure:"Structure"},messages:{pleaseInputTitle:"Please input title!",deleteConfirm:"Confirm to delete this BCF?",deleteCommentConfirm:"Confirm to delete this comment?"}},mobileComments:{empty:"No comments here, create your CMT now~",filter:{title:"Filter",priority:"Filter by priority",status:"Filter by status",author:"Filter by author",tag:"Filter by tags (multiple)"},createText:"Create text comment",pleaseInputContent:"Please input content",backToModel:"Back to Model",deleteComment:"Delete comment",newComment:"New Comment",list:"Comment List",createSuccess:"Comment created successfully",notice:{title:"Notice"}},mobileBcf:{selectPanel:{titleSuffix:"Title"},add:{continueScreenshot:"Continue screenshot",createNow:"Create Now",confirmEdit:"Confirm Edit"},filter:{tag:"Filter by tags (multiple)"}},setting:{title:"Settings",effect:"Effect",bgColor:"Background Color",showEdges:"Show Edges",perfMode:"Performance Mode",perfModeTip:"Recommended for integrated or low-end GPUs: lowers render resolution and disables anti-aliasing (the page reloads after switching)",lightIntensity:"Light Intensity",appearance:"Appearance",skybox:"Skybox",perspective:"Perspective/Orthogonal",ortho:"Orthogonal",mode2d3d:"2D/3D",modelInvert:"Model Invert",zAxisUp:"Z-Axis Up",modelSpace:"Show Model Space",spaceEffect:"Space Effect",language:"Language",modelViewSwitch:"Model View Switch",zoomSpeed:"Zoom Speed",colors:{white:"White",lightGray:"Light Gray",gray:"Gray",darkGray:"Dark Gray",black:"Black"},spaceEffects:{transparent:"Transparent",wireframe:"Wireframe",hide:"Hide",bright:"Bright",dark:"Dark"}},bgColor:{gradientBlue:"Gradient Blue",gray:"Gray",dimSky:"Dim Sky",white:"White",milkBlue:"Milk Blue"},roles:{guest:"Guest",user:"User",admin:"Administrator",creator:"Creator"},measure:{title:"Measure",settings:"Measure Settings",distance:"Distance",area:"Area",angle:"Angle",angleLabel:"Angle",totalLength:"Total Length:",x:"X:",y:"Y:",z:"Z:",pointDistance:"Two-Point Distance",pointAngle:"Three-Point Angle",edgeLength:"Edge Length",edgeDistance:"Edge Spacing",edgeAngle:"Edge Angle",faceArea:"Face Area",circleRadius:"Circle Radius",elevation:"Elevation",distanceLabel:"Distance:",lengthLabel:"Length:",areaLabel:"Area:",radiusLabel:"Radius:",elevationLabel:"Elevation:",typeLabel:"Type:",hint_pointDistance:"Pick two points to measure the distance",hint_pointAngle:"Pick three points to measure the angle",hint_edgeLength:"Pick an edge to read its length",hint_edgeDistance:"Pick two parallel edges to measure the spacing",hint_edgeAngle:"Pick two coplanar edges to measure the angle",hint_circleRadius:"Pick a circle or arc to read its radius",hint_elevation:"Pick a point to annotate its elevation",setDatum:"Set elevation datum line ±0.000",hint_setDatumPick:"Click the point for the new datum line",setDatumHint:"Cannot set the datum line now, switch to Elevation first",setDatumDone:"That point is now the ±0.000 datum line; the other elevations were recalculated",scaleLabel:"Scale:",unitLabel:"Unit:",unitPlaceholder:"Unit",precisionLabel:"Precision:",precisionPlaceholder:"Precision",clear:"Clear",clearAll:"Clear All"},structure:{title:"Structure Tree",search:"Search Components",expand:"Expand",collapse:"Collapse",showAll:"Show All",hideAll:"Hide All",objects:"Objects",categories:"Categories",floors:"Floors",files:"Files",all:"All"},inspector:{title:"Properties",basic:"Basic Info",properties:"Properties",materials:"Materials",noSelection:"No object selected, please click on a model object to view component properties.",name:"Name",type:"Type",objectCount:"Object Count",pSetsCount:"Property Sets Count",author:"Author",instanceProperties:"Instance Properties",typeProperties:"Type Properties"},roam:{title:"Roaming",courseTitle:"Navigate in First Person",dontRemind:"Don't remind me",gotIt:"Got it",speedLabel:"Move speed:",firstPerson:"First Person",thirdPerson:"Third Person",speed:"Speed",height:"Height",dontShowCourseMessage:"Do not show roaming tutorial again"},screenshot:{title:"Screenshot",capture:"Capture",save:"Save",widthPlaceholder:"Please input width",heightPlaceholder:"Please input height",custom:"Custom"},annotation:{title:"Annotation",text:"Text",line:"Line Annotation",arrow:"Arrow Annotation",clear:"Clear Annotation",image:"Image",record:"Voice",video:"Video",file:"Document"},section:{allSections:"All Sections",sectionPrefix:"Section #",xAxis:"X Axis",yAxis:"Y Axis",zAxis:"Z Axis",planeMode:"Section plane",boxMode:"Section box",boxShow:"Show section box",boxHide:"Hide section box",bulk:{deleteAll:"Delete all sections",flipAll:"Flip all sections",showAll:"Show all section effects",hideAll:"Hide all section effects"}},validity:{"1day":"1 day","7day":"7 days","14day":"14 days",permanent:"Permanent"},roleList:{viewOnly:"View only",viewDownload:"View & Download"},navigate:{top:"Top View",bottom:"Bottom View",left:"Left View",right:"Right View",front:"Front View",back:"Back View",leftBottom:"Southwest",rightBottom:"Southeast",rightTop:"Northeast",leftTop:"Northwest"},enjoy:{annotation:"Annotation"},allocationRole:{viewOnly:"View Only",editable:"Editable"},project:{recentlyUsed:"Recently Used",myProjects:"My Projects"},directory:{rename:"Rename",exit:"Exit"},fontSize:{large:"Large",medium:"Medium",small:"Small"},commentTool:{pencil:"Pencil",arrow:"Arrow",rectangle:"Rectangle",circle:"Circle",text:"Text"},alert:{selectPoint:"Please select a point on the model",selectSectionPlane:"Click a point on the model to create a section plane"},clickEvent:{focus:"Focus",hide:"Hide",onlyShow:"Only Show",cancel:"Cancel",edge:"Wireframe",fill:"Fill",transparent:"Transparent",solid:"Solid",multiSelect:"Multi-select"},operate:{focus:"Focus",hide:"Hide",onlyShow:"Only Show",edge:"Wireframe",fill:"Fill",transparent:"Transparent",solid:"Solid",multiSelect:"Multi-select",recover:"Recover",hintDefault:"Click a component to select, or pick an operation mode first",hintSelected:"{count} components selected, click an operation button to apply",hintMultiSelected:"{count} components selected, keep clicking to add",hintFocus:"Click a component to focus the camera on it",hintHide:"Click a component to hide it",hintOnlyShow:"Click a component to show it only, click more to append",hintEdge:"Click components to show as wireframe",hintFill:"Click components to restore solid fill",hintTransparent:"Click components to show as transparent",hintSolid:"Click components to restore solid display",hintMultiSelect:"Click components to select, click again to deselect"}}}},Lk={legacy:!1,locale:"zh-CN",fallbackLocale:"zh-CN",messages:qy,globalInjection:!0};let Xm=null;const Nk=F=>{Xm=F},eb=()=>Xm||(console.warn("Global i18n instance is not initialized yet"),null),vc=()=>{const F=eb();return F?(z,...a)=>F.global.t(`bimxViewer.${z}`,...a):z=>z},di=()=>{const F=eb();return F?(z,...a)=>F.global.t(`bimxViewer.${z}`,...a):z=>z},tb="https://bimkk-api-test.tcbim.com",zt="https://tctwins-oss-test.oss-cn-beijing.aliyuncs.com",jk="https://convert-test.tcbim.com",ur=Ok();let Wa={BIMX_CONFIGS:{viewerManager:!1,Toolbar:!1,RoamTool:!1},BimViewer:{viewerManager:!1}};const Vk={isMember:!1,isInShare:!1,isShareHost:!1,isShareClient:!1},Uk={file:!1,image:!1,record:!1,text:!1,video:!1},rb={offsetX:0,offsetY:0},Hk={pos:"right-bottom",posNum:[0,0]},zk=120,Gk="light-gray",Qk=!1,Wk="right",$k="left",Kk=0,Xk=0,Yk=0,Jk=0,Zk={pos:"bottom",posNum:[18]},qk={pos:"bottom",posNum:[70]},eT={pos:"bottom",posNum:[70]},tT="linear-gradient(180deg, #fffefb 0%, #daebff 100%)",rT=0;Nr.BIMX_CONFIGS=void 0;function iT(){Nr.BIMX_CONFIGS=o.reactive({isMobile:!1,loadMeta:!0,multiModel:!1,outliersDetect:!1,showRoam:!0,enableTree:!1,showInspector:!1,userInfo:Vk,annoLimit:Uk,commentOffset:rb,measureOffset:rb,skyboxImg:void 0,topHeight:Kk,leftWidth:Jk,bottomHeight:Yk,rightWidth:Xk,inspectorPos:Wk,treePos:$k,commentPos:Zk,annotationPos:qk,roamPos:eT,showNavCube:!0,hideBranding:!1,navCubePos:Hk,navCubeSize:zk,themeColor:Gk,hideTool:Qk,backButton:!1,backgroundColor:tT,editPrivilege:rT,locale:void 0})}iT();function ib(F=""){ur.emit("BIMX_CONFIGS",F)}function nb(F){for(const z in F)Pi(z,F[z],!1);ib()}function Pi(F,z,a=!0){z!==void 0&&(Nr.BIMX_CONFIGS[F]=z,a&&(F=="isMobile"||F=="showNavCube"||F=="measureOffset"||F=="commentOffset"||F=="navCubePos"||F=="navCubeSize"||F=="locale")&&ib(F))}function Qt(F){return Nr.BIMX_CONFIGS[F]}const Vi=Km.defineStore("toolbar",{state:()=>({isPc:!0,pTools:[{id:0,key:"tree",name:"toolbar.tree",hasActiveState:!0,component:"StructureTree",isShowDelimiter:!1,img:"ptree",imgActive:"ptree-active",position:1,isActive:!1},{id:1,key:"reset",name:"toolbar.reset",hasActiveState:!1,component:"",isShowDelimiter:!0,img:"preset",imgActive:"preset",position:0,isActive:!1},{id:2,key:"roam",name:"toolbar.roam",hasActiveState:!0,component:"RoamTool",isShowDelimiter:!1,img:"proam",imgActive:"proam-active",position:0,isActive:!1},{id:3,key:"measure",name:"toolbar.measure",hasActiveState:!0,component:"MeasureTool",isShowDelimiter:!1,img:"pmeasure",imgActive:"pmeasure-active",position:0,isActive:!1},{id:4,key:"section",name:"toolbar.section",hasActiveState:!0,component:"SectionTool",isShowDelimiter:!0,img:"pslicing",imgActive:"pslicing-active",position:0,isActive:!1},{id:5,key:"comment",name:"toolbar.comment",hasActiveState:!0,component:"CommentTool",isShowDelimiter:!1,img:"pcomment",imgActive:"pcomment-active",position:0,isActive:!1},{id:6,key:"anno",name:"toolbar.anno",hasActiveState:!0,component:"AnnotationTool",isShowDelimiter:!0,img:"panno",imgActive:"panno-active",position:0,isActive:!1},{id:7,key:"screenshot",name:"toolbar.screenshot",hasActiveState:!0,component:"ScreenShotTool",isShowDelimiter:!1,img:"pscreenshot",imgActive:"pscreenshot-active",position:0,isActive:!1},{id:8,key:"inspector",name:"toolbar.inspector",hasActiveState:!0,component:"InspectorTool",isShowDelimiter:!1,img:"pinspector",imgActive:"pinspector-active",position:0,isActive:!1},{id:9,key:"setting",name:"toolbar.setting",hasActiveState:!0,component:"SettingTool",isShowDelimiter:!0,img:"psetting",imgActive:"psetting-active",position:0,isActive:!1},{id:10,key:"fullscreen",name:"toolbar.fullscreen",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pfullscreen",imgActive:"pfullscreen-active",position:0,isActive:!1},{id:11,key:"enjoy",name:"toolbar.enjoy",hasActiveState:!0,component:"",isShowDelimiter:!1,img:"penjoy",imgActive:"penjoy-active",position:2,isActive:!1},{id:12,key:"share",name:"toolbar.share",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pshare",imgActive:"pshare-active",position:2,isActive:!1},{id:13,key:"cooperate",name:"toolbar.cooperate",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pcooperate",imgActive:"pcooperate",position:2,isActive:!1},{id:14,key:"bcf",name:"toolbar.bcf",hasActiveState:!0,component:"BCFTool",isShowDelimiter:!1,img:"bcf",imgActive:"bcf-active",position:1,isActive:!1},{id:15,key:"cameraView",name:"toolbar.cameraView",hasActiveState:!0,component:"CameraViewTool",isShowDelimiter:!1,img:"cameraView",imgActive:"cameraView-active",position:0,isActive:!1},{id:16,key:"operate",name:"toolbar.operate",hasActiveState:!0,component:"OperateTool",isShowDelimiter:!0,img:"operate",imgActive:"operate-active",position:0,isActive:!1}],mTools:[{id:0,key:"reset",name:"toolbar.reset",hasActiveState:!1,component:"",isShowDelimiter:!0,img:"reset",imgActive:"reset",position:0,isActive:!1},{id:1,key:"navigate",name:"toolbar.navigate",hasActiveState:!0,component:"NavigateTool",isShowDelimiter:!1,img:"navigate",imgActive:"navigate-active",position:0,isActive:!1},{id:2,key:"measure",name:"toolbar.measure",hasActiveState:!0,component:"MeasureTool",isShowDelimiter:!1,img:"measure",imgActive:"measure-active",position:0,isActive:!1},{id:3,key:"comment",name:"toolbar.comment",hasActiveState:!0,component:"CommentTool",isShowDelimiter:!1,img:"comment",imgActive:"comment-active",position:0,isActive:!1},{id:4,key:"anno",name:"toolbar.anno",hasActiveState:!0,component:"AnnotationTool",isShowDelimiter:!0,img:"anno",imgActive:"anno-active",position:0,isActive:!1},{id:5,key:"enjoy",name:"toolbar.enjoy",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"enjoy",imgActive:"enjoy",position:0,isActive:!1},{id:6,key:"tree",name:"toolbar.tree",hasActiveState:!0,component:"StructureTree",isShowDelimiter:!1,img:"tree",imgActive:"tree-active",position:0,isActive:!1},{id:7,key:"inspector",name:"toolbar.inspector",hasActiveState:!0,component:"InspectorTool",isShowDelimiter:!1,img:"inspector",imgActive:"inspector-active",position:0,isActive:!1},{id:8,key:"section",name:"toolbar.section",hasActiveState:!0,component:"SectionTool",isShowDelimiter:!0,img:"section",imgActive:"section-active",position:0,isActive:!1},{id:9,key:"roam",name:"toolbar.roam",hasActiveState:!0,component:"RoamTool",isShowDelimiter:!0,img:"roam",imgActive:"roam-active",position:0,isActive:!1},{id:10,key:"hidden",name:"toolbar.hidden",hasActiveState:!0,component:"HiddenTool",isShowDelimiter:!1,img:"hidden",imgActive:"hidden-active",position:0,isActive:!1},{id:11,key:"setting",name:"toolbar.setting",hasActiveState:!0,component:"SettingTool",isShowDelimiter:!0,img:"setting",imgActive:"setting-active",position:0,isActive:!1},{id:12,key:"share",name:"toolbar.share",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"share",imgActive:"share",position:0,isActive:!1},{id:13,key:"fullscreen",name:"toolbar.fullscreen",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"fullscreen",imgActive:"fullscreen-active",position:0,isActive:!1},{id:14,key:"cooperate",name:"toolbar.cooperate",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"cooperate",imgActive:"cooperate",position:0,isActive:!1},{id:15,key:"bcf",name:"toolbar.bcf",hasActiveState:!0,component:"MobileBCFTool",isShowDelimiter:!1,img:"bcf",imgActive:"bcf-active",position:2,isActive:!1},{id:16,key:"mouse",name:"toolbar.mouse",hasActiveState:!0,component:"MouseTool",isShowDelimiter:!1,img:"mouse",imgActive:"mouse-active",position:2,isActive:!1},{id:17,key:"cameraView",name:"toolbar.cameraView",hasActiveState:!0,component:"CameraViewTool",isShowDelimiter:!1,img:"cameraView",imgActive:"cameraView-active",position:0,isActive:!1}],visibleToolIds:[],readyToolIds:[],sectionMode:"box"}),actions:{setDevice(F){this.isPc=F=="pc"},toggleToolVisibility(F){const z=this.visibleToolIds.indexOf(F);z===-1?this.visibleToolIds.push(F):this.visibleToolIds.splice(z,1)},setEnableTools(F){this.visibleToolIds=F},setEnableToolsByKey(F){let z=[];Qt("isMobile")?z=sb(F,sT):z=sb(F,oT);const a=[];for(let x=0;x<z.length;x++){const P=(this.isPc?this.pTools:this.mTools).find(v=>v.key===z[x]);P&&a.push(P.id)}this.visibleToolIds=this.visibleToolIds.concat(a)},setToolActiveStatus(F,z){const a=(this.isPc?this.pTools:this.mTools).find(x=>x.id===F);a&&(a.isActive=z!==void 0?z:!a.isActive)},setToolActiveStatusBykey(F,z){const a=(this.isPc?this.pTools:this.mTools).find(x=>x.key===F);a&&(a.isActive=z!==void 0?z:!a.isActive)},setSectionMode(F){this.sectionMode=F},setAllToolClose(F=[]){if(F.length>0)for(let z=0;z<this.visibleToolIds.length;z++)F.includes(this.visibleToolIds[z])||(this.tools[this.visibleToolIds[z]].isActive=!1);else for(let z=0;z<this.visibleToolIds.length;z++)this.tools[this.visibleToolIds[z]].isActive=!1},setReadyById(F){(this.isPc?this.pTools:this.mTools).find(a=>a.id===F)&&this.readyToolIds.push(F)},ifToolAllReady(){for(let F=0;F<this.visibleTools.length;F++){const z=this.visibleTools[F];if(!(z.component==""||z.key=="bcf")&&!this.readyTools.includes(z.id))return!1}return!0},setReadyTools(F){this.readyToolIds=[]}},getters:{tools:F=>F.isPc?F.pTools:F.mTools,visibleTools:F=>F.visibleToolIds.map(z=>(F.isPc?F.pTools:F.mTools).find(a=>a.id===z)).filter(z=>!!z),readyTools:F=>F.readyToolIds,visibleComponents:F=>(F.isPc?F.pTools:F.mTools).filter(z=>F.visibleToolIds.includes(z.id)).map(z=>z.component),getKeyById:F=>z=>{var a;return(a=(F.isPc?F.pTools:F.mTools).find(x=>x.id===z))==null?void 0:a.key},getToolById:F=>z=>(F.isPc?F.pTools:F.mTools).find(a=>a.id===z),getToolByKey:F=>z=>(F.isPc?F.pTools:F.mTools).find(a=>a.key===z),hasActiveState:F=>z=>{const a=(F.isPc?F.pTools:F.mTools).find(x=>x.id===z);return a?a.hasActiveState:!1},isToolEnable:F=>z=>{const a=(F.isPc?F.pTools:F.mTools).find(x=>x.id===z);return a?F.visibleToolIds.includes(a.id):!1},isToolEnableBykey:F=>z=>{const a=(F.isPc?F.pTools:F.mTools).find(x=>x.key===z);return a?F.visibleToolIds.includes(a.id):!1},isToolActive:F=>z=>{const a=(F.isPc?F.pTools:F.mTools).find(x=>x.id===z);return a?a.isActive:!1},isToolActiveBykey:F=>z=>{const a=(F.isPc?F.pTools:F.mTools).find(x=>x.key===z);return a?a.isActive:!1}}});function Rh(){return Vi()}function nT(){Vi().setAllToolClose(),Vi().setReadyTools([]),Vi().setEnableTools([]),Vi().setSectionMode("box")}let sT=["reset","navigate","measure","comment","anno","enjoy","tree","inspector","section","cameraView","roam","hidden","setting","share","fullscreen","cooperate","bcf","mouse"],oT=["tree","reset","roam","cameraView","operate","measure","section","comment","anno","screenshot","inspector","setting","fullscreen","enjoy","share","cooperate","bcf"];function sb(F,z){const a={};z.forEach((P,v)=>{a[P]=v});const x=F.filter(P=>a.hasOwnProperty(P)).map(P=>({value:P,index:a[P]}));return x.sort((P,v)=>P.index-v.index),x.map(P=>P.value)}const aT=[{id:0,name:"section.bulk.deleteAll"},{id:1,name:"section.bulk.flipAll"},{id:2,name:"section.bulk.showAll"},{id:4,name:"section.bulk.hideAll"}],Oh=[{id:0,name:"structure.objects"},{id:1,name:"structure.categories"},{id:2,name:"structure.floors"}],lT=[{id:0,size:"1"},{id:1,size:"2"},{id:2,size:"3"}],cT=[{id:1,color:"#066CFC"},{id:2,color:"#FE4444"},{id:3,color:"#FF9357"},{id:4,color:"#66C15F"},{id:5,color:"#FFFFFF"},{id:6,color:"#8F8F8F"},{id:7,color:"#000000"}],uT=[{id:0,name:"大",label:"fontSize.large",fontSize:"18"},{id:1,name:"中",label:"fontSize.medium",fontSize:"14"},{id:2,name:"小",label:"fontSize.small",fontSize:"10"}],ob=[{id:1,name:"铅笔",label:"commentTool.pencil",buttontype:"path",img:"edit-icon",imgActive:"edit-active-icon",svg:"draw",svgActive:"draw-active",isShow:!0},{id:2,name:"箭头",label:"commentTool.arrow",buttontype:"arrow",img:"arrow-icon",imgActive:"arrow-active-icon",svg:"arrow",svgActive:"arrow-active",isShow:!1},{id:3,name:"矩形",label:"commentTool.rectangle",buttontype:"rect",img:"rect-icon",imgActive:"rect-active-icon",svg:"rectangle",svgActive:"rectangle-active",isShow:!1},{id:4,name:"圆形",label:"commentTool.circle",buttontype:"ellipse",img:"ellipse-icon",imgActive:"ellipse-active-icon",svg:"circle",svgActive:"circle-active",isShow:!1},{id:5,name:"文字",label:"commentTool.text",buttontype:"text",img:"text-icon",imgActive:"text-active-icon",svg:"text",svgActive:"text-active",isShow:!1}],_c=[{id:1,name:"渐变蓝",label:"bgColor.gradientBlue",color:"linear-gradient(180deg, #fffefb 0%, #daebff 100%)",rgb:[.9254,.9607,1]},{id:2,name:"纯灰度",label:"bgColor.gray",color:"#F0F0F0",rgb:[.9411,.9411,.9411]},{id:3,name:"昏暗天空",label:"bgColor.dimSky",color:"#323237",rgb:[.196,.196,.2156]},{id:4,name:"纯白色",label:"bgColor.white",color:"#FFF",rgb:[1,1,1]},{id:5,name:"奶白蓝",label:"bgColor.milkBlue",color:"#ECF5FF",rgb:[.98,.98,.98]}],El=[{id:1,code:"pointDistance",name:"两点测距",label:"measure.pointDistance",img:"distance",imgActive:"distance-active",svg:"distance",svgActive:"distance-active"},{id:2,code:"edgeLength",name:"单边长度",label:"measure.edgeLength",img:"distance-line",imgActive:"distance-line-active",svg:"line",svgActive:"line-active"},{id:3,code:"edgeDistance",name:"两边间距",label:"measure.edgeDistance",img:"2line-distance",imgActive:"2line-distance-active",svg:"2line-distance",svgActive:"2line-distance-active"},{id:4,code:"pointAngle",name:"三点测角",label:"measure.pointAngle",img:"angle-point",imgActive:"angle-point-active",svg:"angle-point",svgActive:"angle-point-active"},{id:5,code:"edgeAngle",name:"选边测角",label:"measure.edgeAngle",img:"angle-line",imgActive:"angle-line-active",svg:"angle-line",svgActive:"angle-line-active"},{id:6,code:"circleRadius",name:"圆半径",label:"measure.circleRadius",img:"circle",imgActive:"circle-active",svg:"circle",svgActive:"circle-active"},{id:7,code:"elevation",name:"标高",label:"measure.elevation",img:"elevation",imgActive:"elevation-active",svg:"elevation",svgActive:"elevation-active"}],Ym=[{id:0,name:"1280x720px",width:"1280",height:"720"},{id:1,name:"1920x1080px",width:"1920",height:"1080"},{id:2,name:"2560x1440px",width:"2560",height:"1440"},{id:3,label:"screenshot.custom"}],dT=[{id:1,code:"top",name:"俯视图",label:"navigate.top",dir_num:4,img:"view-top",imgActive:"view-top-active"},{id:2,code:"bottom",name:"仰视图",label:"navigate.bottom",dir_num:5,img:"view-bottom",imgActive:"view-bottom-active"},{id:3,code:"left",name:"左视图",label:"navigate.left",dir_num:3,img:"view-left",imgActive:"view-left-active"},{id:4,code:"right",name:"右视图",label:"navigate.right",dir_num:2,img:"view-right",imgActive:"view-right-active"},{id:5,code:"front",name:"前视图",label:"navigate.front",dir_num:0,img:"view-front",imgActive:"view-front-active"},{id:6,code:"back",name:"后视图",label:"navigate.back",dir_num:1,img:"view-back",imgActive:"view-back-active"},{id:7,code:"left-bottom",name:"西南",label:"navigate.leftBottom",dir_num:14,img:"view-left-bottom",imgActive:"view-left-bottom-active"},{id:8,code:"right-bottom",name:"东南",label:"navigate.rightBottom",dir_num:15,img:"view-right-bottom",imgActive:"view-right-bottom-active"},{id:9,code:"right-top",name:"东北",label:"navigate.rightTop",dir_num:16,img:"view-right-top",imgActive:"view-right-top-active"},{id:10,code:"left-top",name:"西北",label:"navigate.leftTop",dir_num:17,img:"view-left-top",imgActive:"view-left-top-active"}],Bl=[{id:1,code:"image",name:"annotation.image",okType:"image/*",img:"image",img_active:"image_active",imgActive:"image-active"},{id:2,code:"record",name:"annotation.record",okType:"record",img:"record",img_active:"record_active",imgActive:"record-active"},{id:3,code:"video",name:"annotation.video",okType:"video/*",img:"video",img_active:"video_active",imgActive:"video-active"},{id:4,code:"file",name:"annotation.file",okType:"*/*",img:"file",img_active:"file_active",imgActive:"file-active"},{id:5,code:"text",name:"annotation.text",okType:"text",img:"text",img_active:"text_active",imgActive:"text-active"}],hT=[{id:1,name:"hidden.hide",img:"hidden",img_active:"hidden-active"},{id:2,name:"hidden.perspective",img:"xray",img_active:"xray-active"},{id:3,name:"hidden.select",img:"select",img_active:"select-active"},{id:0,name:"hidden.recover",img:"recover",img_active:"recover-active"}];let Pl=null;const fT=F=>{Pl=F},Ru=Km.defineStore("locale",()=>{const F=()=>{const x=Qt("locale");if(x&&(x==="zh-CN"||x==="en-US"))return x;const P=localStorage.getItem("BIMX_LOCALE");if(P&&(P==="zh-CN"||P==="en-US"))return P;const v=navigator.language;return v.startsWith("zh")?"zh-CN":v.startsWith("en")?"en-US":"zh-CN"},z=o.ref(F()),a=x=>{z.value=x,Pl&&Pl.global&&(Pl.global.locale.value=x),localStorage.setItem("BIMX_LOCALE",x)};return o.watch(z,x=>{Pl&&Pl.global&&(Pl.global.locale.value=x)}),{locale:z,setLocale:a}}),Ou="sectionPlanesChanged";class da{static get sectionTool(){var z;return(z=window.bimViewer)==null?void 0:z.sectionTool}static get store(){return Vi()}static SetActive(z){var a,x;if(!z){(a=window.bimViewer)==null||a.SetSectionToolActive(!1);return}(x=window.bimViewer)==null||x.SetSectionToolActive(!0),Qt("isMobile")&&this.store.setSectionMode("box"),this.applyMode()}static ToggleMode(z){this.store.sectionMode===z?(this.store.setSectionMode(null),z==="box"?this.destroyBox():this.clearPlanes()):this.store.setSectionMode(z),this.applyMode()}static ResetBox(){var z;(z=this.sectionTool)==null||z.resetSectionBox()}static ToggleBoxVisible(){var a;const z=(a=this.sectionTool)==null?void 0:a.sectionBox;return z?(z.visible=!z.visible,z.visible):!1}static IsBoxVisible(){var a;const z=(a=this.sectionTool)==null?void 0:a.sectionBox;return!!z&&!!z.visible}static CloseBox(){this.store.setSectionMode(null),this.destroyBox(),this.applyMode()}static applyMode(){const z=this.sectionTool;if(!z)return;const a=this.store.sectionMode;z.planeCreationEnabled=a==="plane",a==="box"?(this.suspendPlanes(),window.bimViewer.SetSectionBoxActive(!0)):a==="plane"?(window.bimViewer.SetSectionBoxActive(!1),this.restorePlanes()):(window.bimViewer.SetSectionBoxActive(!1),window.bimViewer.setSectionBoxVisible(!1))}static suspendPlanes(){const z=this.sectionTool;if(!z)return;const a=z.getSectionPlanes()||{};this.suspendedSectionIds=Object.keys(a).filter(x=>a[x].active),this.suspendedSectionIds.length&&(z.disableSections(),ur.emit(Ou))}static restorePlanes(){this.suspendedSectionIds.length&&(this.suspendedSectionIds.forEach(z=>this.sectionTool.setSectionEnable(z)),this.suspendedSectionIds=[],ur.emit(Ou))}static clearPlanes(){const z=this.sectionTool;if(!z)return;const a=z.getSectionPlanes()||{};Object.keys(a).forEach(x=>z.destroySectionPlane(x)),this.suspendedSectionIds=[],ur.emit(Ou)}static destroyBox(){var z;(z=this.sectionTool)==null||z.destroySectionBox()}}bi(da,"suspendedSectionIds",[]);let ab=!1;Wa.BIMX_CONFIGS.viewerManager||(ur.on("BIMX_CONFIGS",F=>{window.bimViewer?wi.ConfigViewer(F):ab=!0}),Wa.BIMX_CONFIGS.viewerManager=!0);const pT=()=>{wi.SetAllClose(),ab&&wi.ConfigViewer()};Wa.BimViewer.viewerManager||(ur.on("BimViewer",pT),Wa.BimViewer.viewerManager=!0);const Hc=class Hc{static ConfigViewer(z=""){if(z==""){if(window.bimViewer.navCubeMode.visible=!!Qt("showNavCube")&&!Qt("isMobile"),Nr.BIMX_CONFIGS.isMobile&&(window.bimViewer.setIsTouch(!0),window.bimViewer.navCubeMode.visible=!1),Nr.BIMX_CONFIGS.measureOffset&&window.bimViewer.setMeasureOffSet(Qt("measureOffset").offsetX,Qt("measureOffset").offsetY),Nr.BIMX_CONFIGS.commentOffset&&window.bimViewer.setCommentsOffset(Qt("commentOffset").offsetX,Qt("commentOffset").offsetY),Nr.BIMX_CONFIGS.navCubePos){let a=function(){let v=0,f=0;return Qt("navCubePos").pos.includes("left")?v+=parseInt(Qt("leftWidth")):Qt("navCubePos").pos.includes("right")&&(v+=parseInt(Qt("rightWidth"))),Qt("navCubePos").pos.includes("top")?f+=parseInt(Qt("topHeight")):Qt("navCubePos").pos.includes("bottom")&&(f+=parseInt(Qt("bottomHeight"))),[v,f]};const x=Qt("navCubePos").pos?Qt("navCubePos").pos:"right-bottom",P=a();x.includes("right")&&window.bimViewer.setNavCubePosition("right",P[0]),x.includes("top")&&window.bimViewer.setNavCubePosition("top",P[1]),x.includes("left")&&window.bimViewer.setNavCubePosition("left",P[0]),x.includes("bottom")&&window.bimViewer.setNavCubePosition("bottom",P[1])}Nr.BIMX_CONFIGS.navCubeSize&&window.bimViewer.setNavCubeSize(Qt("navCubeSize")),Nr.BIMX_CONFIGS.locale&&Ru().setLocale(Qt("locale"));return}switch(z){case"isMobile":window.bimViewer.setIsTouch(Nr.BIMX_CONFIGS.isMobile),window.bimViewer.navCubeMode.visible=!!Qt("showNavCube")&&!Qt("isMobile");break;case"showNavCube":window.bimViewer.navCubeMode.visible=!!Qt("showNavCube")&&!Qt("isMobile");break;case"measureOffset":window.bimViewer.setCommentsOffset(Qt("measureOffset").offsetX,Qt("measureOffset").offsetY);break;case"commentOffset":window.bimViewer.setCommentsOffset(Qt("commentOffset").offsetX,Qt("commentOffset").offsetY);break;case"navCubePos":const a=Qt("navCubePos").pos?Qt("navCubePos").pos:"right-bottom",x=Qt("navCubePos").posNum?Qt("navCubePos").posNum:[0,a.includes("top")?Qt("topHeight"):0];a.includes("right")&&window.bimViewer.setNavCubePosition("right",x[0]),a.includes("left")&&window.bimViewer.setNavCubePosition("left",x[0]),a.includes("top")&&window.bimViewer.setNavCubePosition("top",x[1]),a.includes("bottom")&&window.bimViewer.setNavCubePosition("bottom",x[1]);break;case"navCubeSize":window.bimViewer.setNavCubeSize(Qt("navCubeSize"));break;case"locale":Ru().setLocale(Qt("locale"));break}}static SetModelBrightness(z,a){window.bimViewer.setModelBrightness(z,a)}static GetModelBrightness(z){return window.bimViewer.getModelBrightness(z)}static SaveViewerState(z){z.measure&&(this.viewerState.measureType=Hc.NormalizeMeasureMode(z.measure))}static NormalizeMeasureMode(z){return z==="distance"?"pointDistance":z==="angle"?"pointAngle":El.some(a=>a.code===z)?z:El[0].code}static SetToolActiveById(z,a=!Vi().isToolActive(z)){const x=Vi().getKeyById(z);x?this.SetToolActiveByKey(x,a):console.log("no such key:",z)}static SetToolActiveByKey(z,a=!Vi().isToolActiveBykey(z)){switch(z){case"tree":break;case"reset":window.bimViewer.resetView();break;case"roam":window.bimViewer.SetFirstPersonModeActive(a);break;case"measure":a?window.bimViewer.SetMeasureProActive(Hc.NormalizeMeasureMode(this.viewerState.measureType),!0):window.bimViewer.SetMeasureProAllDisactive();break;case"section":da.SetActive(a);break;case"comment":a?setTimeout(()=>{window.bimViewer.SetCommentsToolActive(a)},100):window.bimViewer.SetCommentsToolActive(a);break;case"anno":window.bimViewer.SetAnnotationToolActive(a);break;case"screenshot":break;case"inspector":break;case"fullscreen":a?document.documentElement.requestFullscreen():document.exitFullscreen&&document.exitFullscreen();break;case"hidden":window.bimViewer.disableClickEvent=a;break;case"operate":window.bimViewer.disableClickEvent=a;break}}static SetAllClose(){window.bimViewer.closeAll()}static DestroyViewer(){window.bimViewer.destroy(),console.log("旧模型已销毁")}static showRequestBusy(z,a){window.bimViewer.showSpinner(z),a&&a()}};bi(Hc,"viewerState",{measureType:"pointDistance"}),bi(Hc,"entityState",{xrayedObjectIds:[],highlightedObjectIds:[],selectedObjectIds:[],visibleObjectIds:[],edgesObjectIds:[]});let wi=Hc;const mT=["src"],AT=["src"],gT=["src"],vT=["src"],_T=["src"],yT=["src"],bT=["src"],wT=o.defineComponent({__name:"ClickEvent",setup(F,{expose:z}){const a=di();Vi();const x=o.ref(!0);o.onMounted(()=>{});let P="",v,f;const p=()=>{f=window.bimViewer,f.eventTrigger.on("pickedNothing",()=>{x.value&&(c.value=!1,C.value=[],wi.entityState.selectedObjectIds=[],f.setAllObjectsSelected(!1))}),f.eventTrigger.on("touchEntity",j=>{x.value&&(v=j,P=v.id,_(P))}),f.viewer.cameraControl.on("touchmoveCanvas",()=>{})};ur.on("BimViewer",p);const u=o.ref(0),l=o.ref(0),c=o.ref(!1),d=o.ref(!0),h=o.ref(!0),m=o.ref(!1),_=j=>{(!v||v&&j!==v.id)&&(v=f.viewer.scene.objects[j]),P=j,C.value.length>0&&!C.value.find(G=>G==P)&&C.value.push(P),d.value=!v.xrayed,h.value=!v.highlighted;const{aabb:H}=v,W=[(H[0]+H[3])/2,(H[1]+H[4])/2,(H[2]+H[5])/2],X=f.viewer.scene.camera.projectWorldPos(W);let $=X[0]-172/2,D=X[1]-198/2;$<0?$=0:$>window.innerWidth-198&&($=window.innerWidth-198),D<0?D=0:D>window.innerHeight-172-72&&(D=window.innerHeight-172-72),u.value=$,l.value=D,c.value=!0,f.setEntitySelected(v,!0)},b=()=>{C.value.find(j=>j==v.id)||(C.value=C.value.filter(j=>j!=v.id),wi.entityState.selectedObjectIds=C.value),y()},y=()=>{v=null,P="",d.value=!0,h.value=!0,c.value=!1,w.value=-1,ur.emit("unFocus")},w=o.ref(-1),C=o.ref([]),S=j=>{w.value=j},T=j=>{switch(C.value.length>0&&(C.value.push(P),wi.entityState.selectedObjectIds.find(H=>H==v.id)||wi.entityState.selectedObjectIds.push(v.id)),j!==5&&j!==0&&(window.bimViewer.disableClickEvent=!1,f.setAllObjectsSelected(!1)),j==5&&C.value.length==0&&(window.bimViewer.disableClickEvent=!0),j){case 0:C.value.length>0?f.viewFitObjects(C.value):f.viewFitEntity(v),setTimeout(()=>{f.setAllObjectsSelected(!1)},1e3);break;case 1:C.value.length>0?f.setObjectsVisible(wi.entityState.selectedObjectIds,!1):f.setEntityVisible(v,!1);break;case 2:m.value?f.setAllObjectsVisible(!0):(f.setAllObjectsVisible(!1),C.value.length>0?f.setObjectsVisible(wi.entityState.selectedObjectIds,!0):f.setEntityVisible(v,!0),f.setAllObjectsSelected(!1)),m.value=!m.value;break;case 3:C.value.length>0?(f.viewer.scene.setObjectsXRayed(C.value,d.value),C.value.forEach(H=>{const W=f.viewer.scene.objects[H];W.edges=W.xrayed?!0:f.edgesActive,f.setEntityHighlighted(W,!1)})):(f.setEntityXRayed(v),v.edges=v.xrayed?!0:f.edgesActive,f.setEntityHighlighted(v,!1));break;case 4:C.value.length>0?C.value.forEach(H=>{const W=f.viewer.scene.objects[H];f.setEntityHighlighted(W,h.value),W.xrayed&&(f.setEntityXRayed(W,!1),W.edges=f.edgesActive)}):(f.setEntityHighlighted(v),v.xrayed&&(f.setEntityXRayed(v,!1),v.edges=f.edgesActive));break;case 5:C.value.find(H=>H==P)||(C.value.push(P),f.setObjectsSelected(C.value,!0)),wi.entityState.selectedObjectIds=C.value,ur.emit("multiSelect");break}j!==5&&j!==0&&(f.setEntitySelected(v,!1),C.value=[],wi.entityState.selectedObjectIds=C.value),wi.entityState.xrayedObjectIds=f.viewer.scene.xrayedObjectIds,wi.entityState.highlightedObjectIds=f.viewer.scene.highlightedObjectIds,wi.entityState.selectedObjectIds=f.viewer.scene.selectedObjectIds,wi.entityState.visibleObjectIds=f.viewer.scene.visibleObjectIds,wi.entityState.edgesObjectIds=f.viewer.scene.edgesObjectIds,setTimeout(()=>{y()},300)},R=()=>{y()},L=()=>{x.value=!1},Q=()=>{x.value=!0};return ur.on("focusEntity",_),o.onBeforeUnmount(()=>{ur.off("BimViewer",p),ur.off("focusEntity",_)}),z({reset:R,enable:Q,disable:L}),(j,H)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:"entity_tools",style:o.normalizeStyle({left:`${u.value}px`,top:`${l.value}px`})},[o.createElementVNode("div",{class:"close_btns",onClick:b},[o.createElementVNode("img",{src:`${o.unref(zt)}/industry-viewer/detail-bar/close-dark-circle.svg`},null,8,mT)]),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:w.value==0},"detail_btn fit"]),onPointerdown:H[0]||(H[0]=W=>S(0)),onPointerup:H[1]||(H[1]=W=>T(0))},[o.createElementVNode("img",{src:`${o.unref(zt)}/industry-viewer/detail-bar/fit.svg`},null,8,AT),o.createElementVNode("span",null,o.toDisplayString(o.unref(a)("clickEvent.focus")),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:w.value==1},"detail_btn hide_self"]),onPointerdown:H[2]||(H[2]=W=>S(1)),onPointerup:H[3]||(H[3]=W=>T(1))},[o.createElementVNode("img",{src:`${o.unref(zt)}/industry-viewer/detail-bar/hide-self.svg`},null,8,gT),o.createElementVNode("span",null,o.toDisplayString(o.unref(a)("clickEvent.hide")),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:w.value==2},"detail_btn hide_other"]),onPointerdown:H[4]||(H[4]=W=>S(2)),onPointerup:H[5]||(H[5]=W=>T(2))},[o.createElementVNode("img",{src:`${o.unref(zt)}/industry-viewer/detail-bar/hide-other.svg`},null,8,vT),o.createElementVNode("span",null,o.toDisplayString(m.value?o.unref(a)("clickEvent.cancel"):o.unref(a)("clickEvent.onlyShow")),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:w.value==3},"detail_btn edge_solid"]),onPointerdown:H[6]||(H[6]=W=>S(3)),onPointerup:H[7]||(H[7]=W=>T(3))},[o.createElementVNode("img",{src:`${o.unref(zt)}/industry-viewer/detail-bar/${d.value?"edge":"solid"}.svg`},null,8,_T),o.createElementVNode("span",null,o.toDisplayString(d.value?o.unref(a)("clickEvent.edge"):o.unref(a)("clickEvent.fill")),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:w.value==4},"detail_btn opacity_fill"]),onPointerdown:H[8]||(H[8]=W=>S(4)),onPointerup:H[9]||(H[9]=W=>T(4))},[o.createElementVNode("img",{src:`${o.unref(zt)}/industry-viewer/detail-bar/${h.value?"opacity":"fill"}.svg`},null,8,yT),o.createElementVNode("span",null,o.toDisplayString(h.value?o.unref(a)("clickEvent.transparent"):o.unref(a)("clickEvent.solid")),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:w.value==5},"detail_btn multi_select"]),onPointerdown:H[10]||(H[10]=W=>S(5)),onPointerup:H[11]||(H[11]=W=>T(5))},[o.createElementVNode("img",{src:`${o.unref(zt)}/industry-viewer/detail-bar/multiSelect.svg`},null,8,bT),o.createElementVNode("span",null,o.toDisplayString(o.unref(a)("clickEvent.multiSelect")),1)],34)],4)),[[o.vShow,c.value]])}}),ha=(F,z,{checkForDefaultPrevented:a=!0}={})=>P=>{const v=F==null?void 0:F(P);if(a===!1||!v)return z==null?void 0:z(P)};var lb;const Kn=typeof window<"u",xT=F=>typeof F=="string",cb=()=>{},Jm=Kn&&((lb=window==null?void 0:window.navigator)==null?void 0:lb.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ub(F){return typeof F=="function"?F():o.unref(F)}function CT(F){return F}function Lh(F){return o.getCurrentScope()?(o.onScopeDispose(F),!0):!1}function ET(F,z=!0){o.getCurrentInstance()?o.onMounted(F):z?F():o.nextTick(F)}function fa(F){var z;const a=ub(F);return(z=a==null?void 0:a.$el)!=null?z:a}const Nh=Kn?window:void 0;function hs(...F){let z,a,x,P;if(xT(F[0])||Array.isArray(F[0])?([a,x,P]=F,z=Nh):[z,a,x,P]=F,!z)return cb;Array.isArray(a)||(a=[a]),Array.isArray(x)||(x=[x]);const v=[],f=()=>{v.forEach(c=>c()),v.length=0},p=(c,d,h,m)=>(c.addEventListener(d,h,m),()=>c.removeEventListener(d,h,m)),u=o.watch(()=>[fa(z),ub(P)],([c,d])=>{f(),c&&v.push(...a.flatMap(h=>x.map(m=>p(c,h,m,d))))},{immediate:!0,flush:"post"}),l=()=>{u(),f()};return Lh(l),l}let db=!1;function hb(F,z,a={}){const{window:x=Nh,ignore:P=[],capture:v=!0,detectIframe:f=!1}=a;if(!x)return;Jm&&!db&&(db=!0,Array.from(x.document.body.children).forEach(h=>h.addEventListener("click",cb)));let p=!0;const u=h=>P.some(m=>{if(typeof m=="string")return Array.from(x.document.querySelectorAll(m)).some(_=>_===h.target||h.composedPath().includes(_));{const _=fa(m);return _&&(h.target===_||h.composedPath().includes(_))}}),c=[hs(x,"click",h=>{const m=fa(F);if(!(!m||m===h.target||h.composedPath().includes(m))){if(h.detail===0&&(p=!u(h)),!p){p=!0;return}z(h)}},{passive:!0,capture:v}),hs(x,"pointerdown",h=>{const m=fa(F);m&&(p=!h.composedPath().includes(m)&&!u(h))},{passive:!0}),f&&hs(x,"blur",h=>{var m;const _=fa(F);((m=x.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(_!=null&&_.contains(x.document.activeElement))&&z(h)})].filter(Boolean);return()=>c.forEach(h=>h())}function fb(F,z=!1){const a=o.ref(),x=()=>a.value=!!F();return x(),ET(x,z),a}const pb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},mb="__vueuse_ssr_handlers__";pb[mb]=pb[mb]||{};var Ab=Object.getOwnPropertySymbols,BT=Object.prototype.hasOwnProperty,PT=Object.prototype.propertyIsEnumerable,ST=(F,z)=>{var a={};for(var x in F)BT.call(F,x)&&z.indexOf(x)<0&&(a[x]=F[x]);if(F!=null&&Ab)for(var x of Ab(F))z.indexOf(x)<0&&PT.call(F,x)&&(a[x]=F[x]);return a};function pa(F,z,a={}){const x=a,{window:P=Nh}=x,v=ST(x,["window"]);let f;const p=fb(()=>P&&"ResizeObserver"in P),u=()=>{f&&(f.disconnect(),f=void 0)},l=o.watch(()=>fa(F),d=>{u(),p.value&&P&&d&&(f=new ResizeObserver(z),f.observe(d,v))},{immediate:!0,flush:"post"}),c=()=>{u(),l()};return Lh(c),{isSupported:p,stop:c}}var gb=Object.getOwnPropertySymbols,MT=Object.prototype.hasOwnProperty,kT=Object.prototype.propertyIsEnumerable,TT=(F,z)=>{var a={};for(var x in F)MT.call(F,x)&&z.indexOf(x)<0&&(a[x]=F[x]);if(F!=null&&gb)for(var x of gb(F))z.indexOf(x)<0&&kT.call(F,x)&&(a[x]=F[x]);return a};function IT(F,z,a={}){const x=a,{window:P=Nh}=x,v=TT(x,["window"]);let f;const p=fb(()=>P&&"MutationObserver"in P),u=()=>{f&&(f.disconnect(),f=void 0)},l=o.watch(()=>fa(F),d=>{u(),p.value&&P&&d&&(f=new MutationObserver(z),f.observe(d,v))},{immediate:!0}),c=()=>{u(),l()};return Lh(c),{isSupported:p,stop:c}}var vb;(function(F){F.UP="UP",F.RIGHT="RIGHT",F.DOWN="DOWN",F.LEFT="LEFT",F.NONE="NONE"})(vb||(vb={}));var DT=Object.defineProperty,_b=Object.getOwnPropertySymbols,FT=Object.prototype.hasOwnProperty,RT=Object.prototype.propertyIsEnumerable,yb=(F,z,a)=>z in F?DT(F,z,{enumerable:!0,configurable:!0,writable:!0,value:a}):F[z]=a,OT=(F,z)=>{for(var a in z||(z={}))FT.call(z,a)&&yb(F,a,z[a]);if(_b)for(var a of _b(z))RT.call(z,a)&&yb(F,a,z[a]);return F};OT({linear:CT},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const LT=()=>Kn&&/firefox/i.test(window.navigator.userAgent);/**
1
+ (function(Nr,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("axios"),require("ali-oss"),require("element-plus"),require("@element-plus/icons-vue"),require("pinia"),require("mitt")):typeof define=="function"&&define.amd?define(["exports","vue","axios","ali-oss","element-plus","@element-plus/icons-vue","pinia","mitt"],o):(Nr=typeof globalThis<"u"?globalThis:Nr||self,o(Nr.BIMX_Viewer_Lib={},Nr.Vue,Nr.axios,Nr.AliOss,Nr.ElementPlus,Nr.ElementPlusIconsVue,Nr.Pinia,Nr.Mitt))})(this,function(Nr,o,gc,Rk,$m,mi,Km,Ok){"use strict";var Gbe=Object.defineProperty;var Qbe=(Nr,o,gc)=>o in Nr?Gbe(Nr,o,{enumerable:!0,configurable:!0,writable:!0,value:gc}):Nr[o]=gc;var bi=(Nr,o,gc)=>Qbe(Nr,typeof o!="symbol"?o+"":o,gc);const qy={"zh-CN":{bimxViewer:{modelLoading:{network:"正在从网络获取模型数据…",model:"模型加载中…"},common:{confirm:"确认",cancel:"取消",delete:"删除",add:"添加",edit:"编辑",save:"保存",submit:"提交",close:"关闭",back:"返回",next:"下一个",previous:"上一个",search:"搜索",reset:"重置",export:"导出",import:"导入",upload:"上传",download:"下载",refresh:"刷新",placeholder_input:"请输入",placeholder_select:"请选择",all:"全部",placeholder_date:"请选择日期",placeholder_search:"请输入搜索内容",image:"图片",placeholder_comment:"请输入评论内容",title:"标题",view:"查看",created:"创建",done:"完成",lang_zh:"中文",lang_en:"英文",organization:"组织",date:"日期",unknown:"未知",loading:"加载中...",noData:"暂无数据",emptyPage:"这里空空的,快去上传文件吧~",areYouSureDelete:"您确认要删除",questionMark:"吗?",success:"操作成功",error:"操作失败",warning:"警告",info:"提示",confirmEdit:"确认修改"},toolbar:{tree:"结构树",reset:"复位",roam:"漫游",cameraView:"视角记录",measure:"测量",section:"剖切",comment:"批注",anno:"标注",screenshot:"截图",inspector:"属性",setting:"设置",fullscreen:"全屏",exitFullscreen:"退出全屏",virtualMouse:"虚拟鼠标",enjoy:"共享",share:"分享",cooperate:"协同",bcf:"BCF",navigate:"视图方向",mouse:"迷你鼠标",hidden:"透视",operate:"操作"},hidden:{hide:"隐藏",perspective:"透视",select:"选中",recover:"恢复"},bcf:{title:"BCF",addNew:"新建BCF",detail:"BCF详情",list:"BCF列表",filter:"筛选",type:"类别",priority:"优先级",status:"状态",stage:"阶段",assignedTo:"分配给",dueDate:"截止日期",description:"问题描述",comment:"评论",noComments:"暂无评论",thisComment:"这条评论",viewpoint:"视角",addViewpoint:"添加视角",addObject:"添加模型对象",addMarker:"添加标记",viewElements:"查看元素",labels:"标签",author:"创建者",createDate:"创建日期",modifiedDate:"修改日期",createNow:"立即创建",error_title_required:"请输入标题!",elements:"个元素",creator:"创建人",commentNow:"立即评论",addComment:"添加评论",editComment:"修改评论",snapshot:"快照截屏",screenshot:"立即截屏",index:"序号",time:"时间",createTime:"创建时间",emptyHint:"这里空空的,快去创建你的BCF吧~",addedObjects:"已添加对象共:",addedAnnotations:"已添加标注共:",hintClickToAddObject:"直接点击模型上的结构即可添加对象",hintHoldLeftClickMultiSelect:"按下鼠标左键可连续多选",types:{basic:"模型基本结构",conflict:"模型结构冲突",error:"模型错误"},priorities:{high:"高",middle:"中",low:"低"},statuses:{closed:"已关闭",inProgress:"进行中",resolved:"已解决"},stages:{planningEnd:"初步规划结束",constructionStart:"施工开始",constructionEnd:"施工结束"},tags:{architecture:"建筑",hvac:"暖通",mep:"MEP",structure:"结构"},messages:{pleaseInputTitle:"请输入标题!",deleteConfirm:"确认删除该BCF?",deleteCommentConfirm:"确认删除该评论?"}},mobileComments:{empty:"这里空空的,快去创建你的CMT吧~",filter:{title:"筛选",priority:"筛选优先级",status:"筛选状态",author:"筛选创建人",tag:"筛选标签(可多选)"},createText:"创建文字批注",pleaseInputContent:"请输入内容",backToModel:"返回模型",deleteComment:"删除批注",newComment:"新建批注",list:"批注列表",createSuccess:"批注创建成功",notice:{title:"提示"}},mobileBcf:{selectPanel:{titleSuffix:"标题"},add:{continueScreenshot:"继续截屏",createNow:"立即创建",confirmEdit:"确认修改"},filter:{tag:"筛选标签(可多选)"}},setting:{title:"设置",effect:"效果",bgColor:"背景颜色",showEdges:"显示边缘",perfMode:"性能模式",perfModeTip:"弱显卡或核显建议开启:降低渲染分辨率并关闭抗锯齿(切换后自动刷新)",lightIntensity:"光源强度",appearance:"外观模式",skybox:"天空盒",perspective:"透视/正交",ortho:"正交",mode2d3d:"2D/3D",modelInvert:"模型倒置",zAxisUp:"Z轴向上",modelSpace:"显示模型空间",spaceEffect:"空间效果",language:"语言",modelViewSwitch:"模型视角切换",zoomSpeed:"缩放速率",colors:{white:"白色",lightGray:"浅灰",gray:"灰色",darkGray:"深灰",black:"黑色"},spaceEffects:{transparent:"透明",wireframe:"线框",hide:"隐藏",bright:"亮",dark:"暗"}},bgColor:{gradientBlue:"渐变蓝",gray:"纯灰度",dimSky:"昏暗天空",white:"纯白色",milkBlue:"奶白蓝"},roles:{guest:"游客",user:"普通用户",admin:"管理员",creator:"创建者"},measure:{title:"测量",settings:"测量设置",distance:"距离",area:"面积",angle:"角度",angleLabel:"角度",totalLength:"总长度:",x:"X值:",y:"Y值:",z:"Z值:",pointDistance:"两点测距",pointAngle:"三点测角",edgeLength:"单边长度",edgeDistance:"两边间距",edgeAngle:"选边测角",faceArea:"面面积",circleRadius:"圆半径",elevation:"标高",distanceLabel:"距离:",lengthLabel:"长度:",areaLabel:"面积:",radiusLabel:"半径:",elevationLabel:"标高:",typeLabel:"类型:",hint_pointDistance:"请选择两个点进行距离测量",hint_pointAngle:"请选择三个顶点进行角度测量",hint_edgeLength:"请选择一条边查看长度",hint_edgeDistance:"请选择两条平行边查看间距",hint_edgeAngle:"请选择两条同平面的边进行角度测量",hint_circleRadius:"请选择圆或圆弧查看半径",hint_elevation:"请选择需要标注标高的点",setDatum:"设置标高基准线±0.000",hint_setDatumPick:"请点击新的基准线点位",setDatumHint:"当前无法设置基准线,请先切到「标高」",setDatumDone:"已将该点设为新的 ±0.000 基准线,其余标高已按新基准重算",scaleLabel:"比例:",unitLabel:"单位:",unitPlaceholder:"单位",precisionLabel:"精度:",precisionPlaceholder:"精度",clear:"清除",clearAll:"清除所有"},structure:{title:"结构树",search:"搜索构件",expand:"展开",collapse:"收起",showAll:"显示全部",hideAll:"隐藏全部",objects:"对象",categories:"类别",floors:"楼层",files:"文件",all:"全部"},inspector:{title:"属性",basic:"基本信息",properties:"属性",materials:"材质",noSelection:"未选中任何对象,请单击模型对象以查看构件属性。",name:"名称",type:"类型",objectCount:"对象数量",pSetsCount:"属性集数量",author:"作者",instanceProperties:"实例属性",typeProperties:"类型属性"},roam:{title:"漫游",courseTitle:"在第一视角中导航",dontRemind:"不要再提醒我",gotIt:"好的,我知道了",speedLabel:"移动速度:",firstPerson:"第一人称",thirdPerson:"第三人称",speed:"速度",height:"高度",dontShowCourseMessage:"不要再显示漫游教程"},screenshot:{title:"截图",capture:"截取",save:"保存",widthPlaceholder:"请输入长度",heightPlaceholder:"请输入宽度",custom:"自定义"},annotation:{title:"标注",text:"文本",line:"线条",arrow:"箭头",clear:"清除",image:"图片",record:"语音",video:"视频",file:"文档"},section:{allSections:"全部剖切",sectionPrefix:"剖切面#",xAxis:"X轴",yAxis:"Y轴",zAxis:"Z轴",planeMode:"剖切面",boxMode:"剖切盒",boxShow:"显示剖切盒",boxHide:"隐藏剖切盒",bulk:{deleteAll:"删除所有剖切面",flipAll:"翻转所有剖切面",showAll:"显示所有剖切效果",hideAll:"隐藏所有剖切效果"}},validity:{"1day":"1天","7day":"7天","14day":"14天",permanent:"永久有效"},roleList:{viewOnly:"仅查看",viewDownload:"查看、下载文件"},navigate:{top:"俯视图",bottom:"仰视图",left:"左视图",right:"右视图",front:"前视图",back:"后视图",leftBottom:"西南",rightBottom:"东南",rightTop:"东北",leftTop:"西北"},enjoy:{annotation:"批注"},allocationRole:{viewOnly:"仅查看",editable:"可编辑"},project:{recentlyUsed:"最近使用",myProjects:"我参与的"},directory:{rename:"重命名",exit:"退出"},fontSize:{large:"大",medium:"中",small:"小"},commentTool:{pencil:"铅笔",arrow:"箭头",rectangle:"矩形",circle:"圆形",text:"文本"},alert:{selectPoint:"请先选择标注类别,然后在模型上点击标注",selectSectionPlane:"请在模型上点击创建剖切面"},clickEvent:{focus:"聚焦",hide:"隐藏",onlyShow:"仅显示",cancel:"取消",edge:"线框",fill:"填充",transparent:"透明",solid:"实体",multiSelect:"多选"},operate:{focus:"聚焦",hide:"隐藏",onlyShow:"仅显示",edge:"线框",fill:"填充",transparent:"透明",solid:"实体",multiSelect:"多选",recover:"恢复",hintDefault:"点击构件选中,或先选择操作模式",hintSelected:"已选 {count} 个构件,点击操作按钮批量执行",hintMultiSelected:"已选 {count} 个构件,继续点击构件追加选择",hintFocus:"点击构件,视角聚焦",hintHide:"点击构件将其隐藏",hintOnlyShow:"点击构件仅显示,可连续点击追加",hintEdge:"点击构件切换为线框显示",hintFill:"点击构件还原实体填充",hintTransparent:"点击构件切换为透明显示",hintSolid:"点击构件还原实体显示",hintMultiSelect:"点击构件加入选择,再次点击取消"}}},"en-US":{bimxViewer:{modelLoading:{network:"Downloading model data…",model:"Loading model…"},common:{confirm:"Confirm",cancel:"Cancel",delete:"Delete",add:"Add",edit:"Edit",save:"Save",submit:"Submit",close:"Close",back:"Back",next:"Next",previous:"Previous",search:"Search",reset:"Reset",export:"Export",import:"Import",upload:"Upload",download:"Download",refresh:"Refresh",placeholder_input:"Please input",placeholder_select:"Please select",all:"All",placeholder_date:"Please select date",placeholder_search:"Please input search content",image:"Image",placeholder_comment:"Please input comment content",title:"Title",view:"View",created:"Created",done:"Done",lang_zh:"Chinese",lang_en:"English",organization:"Organization",date:"Date",unknown:"Unknown",loading:"Loading...",noData:"No Data",emptyPage:"It's empty here, upload some files~",areYouSureDelete:"Are you sure you want to delete",questionMark:"?",success:"Success",error:"Error",warning:"Warning",info:"Info",confirmEdit:"Confirm Edit"},toolbar:{tree:"Structure Tree",reset:"Reset",roam:"Roaming",cameraView:"Camera View",measure:"Measure",section:"Section",comment:"Comment",anno:"Mark",screenshot:"Screenshot",inspector:"Properties",setting:"Settings",fullscreen:"Fullscreen",exitFullscreen:"Exit Fullscreen",virtualMouse:"Mouse",enjoy:"Teamwork",share:"Share",cooperate:"Collaborate",bcf:"BCF",navigate:"Navigate",mouse:"Mini Mouse",hidden:"Perspective",operate:"Operate"},hidden:{hide:"Hide",perspective:"Perspective",select:"Selected",recover:"Recover"},bcf:{title:"BCF",addNew:"New BCF",detail:"BCF Detail",list:"BCF List",filter:"Filter",type:"Type",priority:"Priority",status:"Status",stage:"Stage",assignedTo:"Assigned To",dueDate:"Due Date",description:"Description",comment:"Comment",noComments:"No comments",thisComment:"This comment",viewpoint:"Viewpoint",addViewpoint:"Add Viewpoint",addObject:"Add Model Object",addMarker:"Add Marker",viewElements:"View Elements",labels:"Labels",author:"Author",createDate:"Create Date",modifiedDate:"Modified Date",createNow:"Create Now",error_title_required:"Please input title!",elements:"Elements",creator:"Creator",commentNow:"Comment Now",addComment:"Add Comment",editComment:"Edit Comment",snapshot:"Snapshot",screenshot:"Take Screenshot",index:"Index",time:"Time",createTime:"Create Time",emptyHint:"No BCF here, create your first BCF now~",addedObjects:"Added objects:",addedAnnotations:"Added annotations:",hintClickToAddObject:"Click on structure in the model to add objects",hintHoldLeftClickMultiSelect:"Hold left mouse button to multi-select",types:{basic:"Model Basic Structure",conflict:"Model Structure Conflict",error:"Model Error"},priorities:{high:"High",middle:"Medium",low:"Low"},statuses:{closed:"Closed",inProgress:"In Progress",resolved:"Resolved"},stages:{planningEnd:"Planning End",constructionStart:"Construction Start",constructionEnd:"Construction End"},tags:{architecture:"Architecture",hvac:"HVAC",mep:"MEP",structure:"Structure"},messages:{pleaseInputTitle:"Please input title!",deleteConfirm:"Confirm to delete this BCF?",deleteCommentConfirm:"Confirm to delete this comment?"}},mobileComments:{empty:"No comments here, create your CMT now~",filter:{title:"Filter",priority:"Filter by priority",status:"Filter by status",author:"Filter by author",tag:"Filter by tags (multiple)"},createText:"Create text comment",pleaseInputContent:"Please input content",backToModel:"Back to Model",deleteComment:"Delete comment",newComment:"New Comment",list:"Comment List",createSuccess:"Comment created successfully",notice:{title:"Notice"}},mobileBcf:{selectPanel:{titleSuffix:"Title"},add:{continueScreenshot:"Continue screenshot",createNow:"Create Now",confirmEdit:"Confirm Edit"},filter:{tag:"Filter by tags (multiple)"}},setting:{title:"Settings",effect:"Effect",bgColor:"Background Color",showEdges:"Show Edges",perfMode:"Performance Mode",perfModeTip:"Recommended for integrated or low-end GPUs: lowers render resolution and disables anti-aliasing (the page reloads after switching)",lightIntensity:"Light Intensity",appearance:"Appearance",skybox:"Skybox",perspective:"Perspective/Orthogonal",ortho:"Orthogonal",mode2d3d:"2D/3D",modelInvert:"Model Invert",zAxisUp:"Z-Axis Up",modelSpace:"Show Model Space",spaceEffect:"Space Effect",language:"Language",modelViewSwitch:"Model View Switch",zoomSpeed:"Zoom Speed",colors:{white:"White",lightGray:"Light Gray",gray:"Gray",darkGray:"Dark Gray",black:"Black"},spaceEffects:{transparent:"Transparent",wireframe:"Wireframe",hide:"Hide",bright:"Bright",dark:"Dark"}},bgColor:{gradientBlue:"Gradient Blue",gray:"Gray",dimSky:"Dim Sky",white:"White",milkBlue:"Milk Blue"},roles:{guest:"Guest",user:"User",admin:"Administrator",creator:"Creator"},measure:{title:"Measure",settings:"Measure Settings",distance:"Distance",area:"Area",angle:"Angle",angleLabel:"Angle",totalLength:"Total Length:",x:"X:",y:"Y:",z:"Z:",pointDistance:"Two-Point Distance",pointAngle:"Three-Point Angle",edgeLength:"Edge Length",edgeDistance:"Edge Spacing",edgeAngle:"Edge Angle",faceArea:"Face Area",circleRadius:"Circle Radius",elevation:"Elevation",distanceLabel:"Distance:",lengthLabel:"Length:",areaLabel:"Area:",radiusLabel:"Radius:",elevationLabel:"Elevation:",typeLabel:"Type:",hint_pointDistance:"Pick two points to measure the distance",hint_pointAngle:"Pick three points to measure the angle",hint_edgeLength:"Pick an edge to read its length",hint_edgeDistance:"Pick two parallel edges to measure the spacing",hint_edgeAngle:"Pick two coplanar edges to measure the angle",hint_circleRadius:"Pick a circle or arc to read its radius",hint_elevation:"Pick a point to annotate its elevation",setDatum:"Set elevation datum line ±0.000",hint_setDatumPick:"Click the point for the new datum line",setDatumHint:"Cannot set the datum line now, switch to Elevation first",setDatumDone:"That point is now the ±0.000 datum line; the other elevations were recalculated",scaleLabel:"Scale:",unitLabel:"Unit:",unitPlaceholder:"Unit",precisionLabel:"Precision:",precisionPlaceholder:"Precision",clear:"Clear",clearAll:"Clear All"},structure:{title:"Structure Tree",search:"Search Components",expand:"Expand",collapse:"Collapse",showAll:"Show All",hideAll:"Hide All",objects:"Objects",categories:"Categories",floors:"Floors",files:"Files",all:"All"},inspector:{title:"Properties",basic:"Basic Info",properties:"Properties",materials:"Materials",noSelection:"No object selected, please click on a model object to view component properties.",name:"Name",type:"Type",objectCount:"Object Count",pSetsCount:"Property Sets Count",author:"Author",instanceProperties:"Instance Properties",typeProperties:"Type Properties"},roam:{title:"Roaming",courseTitle:"Navigate in First Person",dontRemind:"Don't remind me",gotIt:"Got it",speedLabel:"Move speed:",firstPerson:"First Person",thirdPerson:"Third Person",speed:"Speed",height:"Height",dontShowCourseMessage:"Do not show roaming tutorial again"},screenshot:{title:"Screenshot",capture:"Capture",save:"Save",widthPlaceholder:"Please input width",heightPlaceholder:"Please input height",custom:"Custom"},annotation:{title:"Annotation",text:"Text",line:"Line Annotation",arrow:"Arrow Annotation",clear:"Clear Annotation",image:"Image",record:"Voice",video:"Video",file:"Document"},section:{allSections:"All Sections",sectionPrefix:"Section #",xAxis:"X Axis",yAxis:"Y Axis",zAxis:"Z Axis",planeMode:"Section plane",boxMode:"Section box",boxShow:"Show section box",boxHide:"Hide section box",bulk:{deleteAll:"Delete all sections",flipAll:"Flip all sections",showAll:"Show all section effects",hideAll:"Hide all section effects"}},validity:{"1day":"1 day","7day":"7 days","14day":"14 days",permanent:"Permanent"},roleList:{viewOnly:"View only",viewDownload:"View & Download"},navigate:{top:"Top View",bottom:"Bottom View",left:"Left View",right:"Right View",front:"Front View",back:"Back View",leftBottom:"Southwest",rightBottom:"Southeast",rightTop:"Northeast",leftTop:"Northwest"},enjoy:{annotation:"Annotation"},allocationRole:{viewOnly:"View Only",editable:"Editable"},project:{recentlyUsed:"Recently Used",myProjects:"My Projects"},directory:{rename:"Rename",exit:"Exit"},fontSize:{large:"Large",medium:"Medium",small:"Small"},commentTool:{pencil:"Pencil",arrow:"Arrow",rectangle:"Rectangle",circle:"Circle",text:"Text"},alert:{selectPoint:"Please select a point on the model",selectSectionPlane:"Click a point on the model to create a section plane"},clickEvent:{focus:"Focus",hide:"Hide",onlyShow:"Only Show",cancel:"Cancel",edge:"Wireframe",fill:"Fill",transparent:"Transparent",solid:"Solid",multiSelect:"Multi-select"},operate:{focus:"Focus",hide:"Hide",onlyShow:"Only Show",edge:"Wireframe",fill:"Fill",transparent:"Transparent",solid:"Solid",multiSelect:"Multi-select",recover:"Recover",hintDefault:"Click a component to select, or pick an operation mode first",hintSelected:"{count} components selected, click an operation button to apply",hintMultiSelected:"{count} components selected, keep clicking to add",hintFocus:"Click a component to focus the camera on it",hintHide:"Click a component to hide it",hintOnlyShow:"Click a component to show it only, click more to append",hintEdge:"Click components to show as wireframe",hintFill:"Click components to restore solid fill",hintTransparent:"Click components to show as transparent",hintSolid:"Click components to restore solid display",hintMultiSelect:"Click components to select, click again to deselect"}}}},Lk={legacy:!1,locale:"zh-CN",fallbackLocale:"zh-CN",messages:qy,globalInjection:!0};let Xm=null;const Nk=F=>{Xm=F},eb=()=>Xm||(console.warn("Global i18n instance is not initialized yet"),null),vc=()=>{const F=eb();return F?(z,...a)=>F.global.t(`bimxViewer.${z}`,...a):z=>z},di=()=>{const F=eb();return F?(z,...a)=>F.global.t(`bimxViewer.${z}`,...a):z=>z},tb="https://bimkk-api.tcbim.com",zt="https://bimkk-oss-production.oss-cn-beijing.aliyuncs.com",jk="https://convert.tcbim.com",ur=Ok();let Wa={BIMX_CONFIGS:{viewerManager:!1,Toolbar:!1,RoamTool:!1},BimViewer:{viewerManager:!1}};const Vk={isMember:!1,isInShare:!1,isShareHost:!1,isShareClient:!1},Uk={file:!1,image:!1,record:!1,text:!1,video:!1},rb={offsetX:0,offsetY:0},Hk={pos:"right-bottom",posNum:[0,0]},zk=120,Gk="light-gray",Qk=!1,Wk="right",$k="left",Kk=0,Xk=0,Yk=0,Jk=0,Zk={pos:"bottom",posNum:[18]},qk={pos:"bottom",posNum:[70]},eT={pos:"bottom",posNum:[70]},tT="linear-gradient(180deg, #fffefb 0%, #daebff 100%)",rT=0;Nr.BIMX_CONFIGS=void 0;function iT(){Nr.BIMX_CONFIGS=o.reactive({isMobile:!1,loadMeta:!0,multiModel:!1,outliersDetect:!1,showRoam:!0,enableTree:!1,showInspector:!1,userInfo:Vk,annoLimit:Uk,commentOffset:rb,measureOffset:rb,skyboxImg:void 0,topHeight:Kk,leftWidth:Jk,bottomHeight:Yk,rightWidth:Xk,inspectorPos:Wk,treePos:$k,commentPos:Zk,annotationPos:qk,roamPos:eT,showNavCube:!0,hideBranding:!1,navCubePos:Hk,navCubeSize:zk,themeColor:Gk,hideTool:Qk,backButton:!1,backgroundColor:tT,editPrivilege:rT,locale:void 0})}iT();function ib(F=""){ur.emit("BIMX_CONFIGS",F)}function nb(F){for(const z in F)Pi(z,F[z],!1);ib()}function Pi(F,z,a=!0){z!==void 0&&(Nr.BIMX_CONFIGS[F]=z,a&&(F=="isMobile"||F=="showNavCube"||F=="measureOffset"||F=="commentOffset"||F=="navCubePos"||F=="navCubeSize"||F=="locale")&&ib(F))}function Qt(F){return Nr.BIMX_CONFIGS[F]}const Vi=Km.defineStore("toolbar",{state:()=>({isPc:!0,pTools:[{id:0,key:"tree",name:"toolbar.tree",hasActiveState:!0,component:"StructureTree",isShowDelimiter:!1,img:"ptree",imgActive:"ptree-active",position:1,isActive:!1},{id:1,key:"reset",name:"toolbar.reset",hasActiveState:!1,component:"",isShowDelimiter:!0,img:"preset",imgActive:"preset",position:0,isActive:!1},{id:2,key:"roam",name:"toolbar.roam",hasActiveState:!0,component:"RoamTool",isShowDelimiter:!1,img:"proam",imgActive:"proam-active",position:0,isActive:!1},{id:3,key:"measure",name:"toolbar.measure",hasActiveState:!0,component:"MeasureTool",isShowDelimiter:!1,img:"pmeasure",imgActive:"pmeasure-active",position:0,isActive:!1},{id:4,key:"section",name:"toolbar.section",hasActiveState:!0,component:"SectionTool",isShowDelimiter:!0,img:"pslicing",imgActive:"pslicing-active",position:0,isActive:!1},{id:5,key:"comment",name:"toolbar.comment",hasActiveState:!0,component:"CommentTool",isShowDelimiter:!1,img:"pcomment",imgActive:"pcomment-active",position:0,isActive:!1},{id:6,key:"anno",name:"toolbar.anno",hasActiveState:!0,component:"AnnotationTool",isShowDelimiter:!0,img:"panno",imgActive:"panno-active",position:0,isActive:!1},{id:7,key:"screenshot",name:"toolbar.screenshot",hasActiveState:!0,component:"ScreenShotTool",isShowDelimiter:!1,img:"pscreenshot",imgActive:"pscreenshot-active",position:0,isActive:!1},{id:8,key:"inspector",name:"toolbar.inspector",hasActiveState:!0,component:"InspectorTool",isShowDelimiter:!1,img:"pinspector",imgActive:"pinspector-active",position:0,isActive:!1},{id:9,key:"setting",name:"toolbar.setting",hasActiveState:!0,component:"SettingTool",isShowDelimiter:!0,img:"psetting",imgActive:"psetting-active",position:0,isActive:!1},{id:10,key:"fullscreen",name:"toolbar.fullscreen",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pfullscreen",imgActive:"pfullscreen-active",position:0,isActive:!1},{id:11,key:"enjoy",name:"toolbar.enjoy",hasActiveState:!0,component:"",isShowDelimiter:!1,img:"penjoy",imgActive:"penjoy-active",position:2,isActive:!1},{id:12,key:"share",name:"toolbar.share",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pshare",imgActive:"pshare-active",position:2,isActive:!1},{id:13,key:"cooperate",name:"toolbar.cooperate",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"pcooperate",imgActive:"pcooperate",position:2,isActive:!1},{id:14,key:"bcf",name:"toolbar.bcf",hasActiveState:!0,component:"BCFTool",isShowDelimiter:!1,img:"bcf",imgActive:"bcf-active",position:1,isActive:!1},{id:15,key:"cameraView",name:"toolbar.cameraView",hasActiveState:!0,component:"CameraViewTool",isShowDelimiter:!1,img:"cameraView",imgActive:"cameraView-active",position:0,isActive:!1},{id:16,key:"operate",name:"toolbar.operate",hasActiveState:!0,component:"OperateTool",isShowDelimiter:!0,img:"operate",imgActive:"operate-active",position:0,isActive:!1}],mTools:[{id:0,key:"reset",name:"toolbar.reset",hasActiveState:!1,component:"",isShowDelimiter:!0,img:"reset",imgActive:"reset",position:0,isActive:!1},{id:1,key:"navigate",name:"toolbar.navigate",hasActiveState:!0,component:"NavigateTool",isShowDelimiter:!1,img:"navigate",imgActive:"navigate-active",position:0,isActive:!1},{id:2,key:"measure",name:"toolbar.measure",hasActiveState:!0,component:"MeasureTool",isShowDelimiter:!1,img:"measure",imgActive:"measure-active",position:0,isActive:!1},{id:3,key:"comment",name:"toolbar.comment",hasActiveState:!0,component:"CommentTool",isShowDelimiter:!1,img:"comment",imgActive:"comment-active",position:0,isActive:!1},{id:4,key:"anno",name:"toolbar.anno",hasActiveState:!0,component:"AnnotationTool",isShowDelimiter:!0,img:"anno",imgActive:"anno-active",position:0,isActive:!1},{id:5,key:"enjoy",name:"toolbar.enjoy",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"enjoy",imgActive:"enjoy",position:0,isActive:!1},{id:6,key:"tree",name:"toolbar.tree",hasActiveState:!0,component:"StructureTree",isShowDelimiter:!1,img:"tree",imgActive:"tree-active",position:0,isActive:!1},{id:7,key:"inspector",name:"toolbar.inspector",hasActiveState:!0,component:"InspectorTool",isShowDelimiter:!1,img:"inspector",imgActive:"inspector-active",position:0,isActive:!1},{id:8,key:"section",name:"toolbar.section",hasActiveState:!0,component:"SectionTool",isShowDelimiter:!0,img:"section",imgActive:"section-active",position:0,isActive:!1},{id:9,key:"roam",name:"toolbar.roam",hasActiveState:!0,component:"RoamTool",isShowDelimiter:!0,img:"roam",imgActive:"roam-active",position:0,isActive:!1},{id:10,key:"hidden",name:"toolbar.hidden",hasActiveState:!0,component:"HiddenTool",isShowDelimiter:!1,img:"hidden",imgActive:"hidden-active",position:0,isActive:!1},{id:11,key:"setting",name:"toolbar.setting",hasActiveState:!0,component:"SettingTool",isShowDelimiter:!0,img:"setting",imgActive:"setting-active",position:0,isActive:!1},{id:12,key:"share",name:"toolbar.share",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"share",imgActive:"share",position:0,isActive:!1},{id:13,key:"fullscreen",name:"toolbar.fullscreen",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"fullscreen",imgActive:"fullscreen-active",position:0,isActive:!1},{id:14,key:"cooperate",name:"toolbar.cooperate",hasActiveState:!1,component:"",isShowDelimiter:!1,img:"cooperate",imgActive:"cooperate",position:0,isActive:!1},{id:15,key:"bcf",name:"toolbar.bcf",hasActiveState:!0,component:"MobileBCFTool",isShowDelimiter:!1,img:"bcf",imgActive:"bcf-active",position:2,isActive:!1},{id:16,key:"mouse",name:"toolbar.mouse",hasActiveState:!0,component:"MouseTool",isShowDelimiter:!1,img:"mouse",imgActive:"mouse-active",position:2,isActive:!1},{id:17,key:"cameraView",name:"toolbar.cameraView",hasActiveState:!0,component:"CameraViewTool",isShowDelimiter:!1,img:"cameraView",imgActive:"cameraView-active",position:0,isActive:!1}],visibleToolIds:[],readyToolIds:[],sectionMode:"box"}),actions:{setDevice(F){this.isPc=F=="pc"},toggleToolVisibility(F){const z=this.visibleToolIds.indexOf(F);z===-1?this.visibleToolIds.push(F):this.visibleToolIds.splice(z,1)},setEnableTools(F){this.visibleToolIds=F},setEnableToolsByKey(F){let z=[];Qt("isMobile")?z=sb(F,sT):z=sb(F,oT);const a=[];for(let x=0;x<z.length;x++){const P=(this.isPc?this.pTools:this.mTools).find(v=>v.key===z[x]);P&&a.push(P.id)}this.visibleToolIds=this.visibleToolIds.concat(a)},setToolActiveStatus(F,z){const a=(this.isPc?this.pTools:this.mTools).find(x=>x.id===F);a&&(a.isActive=z!==void 0?z:!a.isActive)},setToolActiveStatusBykey(F,z){const a=(this.isPc?this.pTools:this.mTools).find(x=>x.key===F);a&&(a.isActive=z!==void 0?z:!a.isActive)},setSectionMode(F){this.sectionMode=F},setAllToolClose(F=[]){if(F.length>0)for(let z=0;z<this.visibleToolIds.length;z++)F.includes(this.visibleToolIds[z])||(this.tools[this.visibleToolIds[z]].isActive=!1);else for(let z=0;z<this.visibleToolIds.length;z++)this.tools[this.visibleToolIds[z]].isActive=!1},setReadyById(F){(this.isPc?this.pTools:this.mTools).find(a=>a.id===F)&&this.readyToolIds.push(F)},ifToolAllReady(){for(let F=0;F<this.visibleTools.length;F++){const z=this.visibleTools[F];if(!(z.component==""||z.key=="bcf")&&!this.readyTools.includes(z.id))return!1}return!0},setReadyTools(F){this.readyToolIds=[]}},getters:{tools:F=>F.isPc?F.pTools:F.mTools,visibleTools:F=>F.visibleToolIds.map(z=>(F.isPc?F.pTools:F.mTools).find(a=>a.id===z)).filter(z=>!!z),readyTools:F=>F.readyToolIds,visibleComponents:F=>(F.isPc?F.pTools:F.mTools).filter(z=>F.visibleToolIds.includes(z.id)).map(z=>z.component),getKeyById:F=>z=>{var a;return(a=(F.isPc?F.pTools:F.mTools).find(x=>x.id===z))==null?void 0:a.key},getToolById:F=>z=>(F.isPc?F.pTools:F.mTools).find(a=>a.id===z),getToolByKey:F=>z=>(F.isPc?F.pTools:F.mTools).find(a=>a.key===z),hasActiveState:F=>z=>{const a=(F.isPc?F.pTools:F.mTools).find(x=>x.id===z);return a?a.hasActiveState:!1},isToolEnable:F=>z=>{const a=(F.isPc?F.pTools:F.mTools).find(x=>x.id===z);return a?F.visibleToolIds.includes(a.id):!1},isToolEnableBykey:F=>z=>{const a=(F.isPc?F.pTools:F.mTools).find(x=>x.key===z);return a?F.visibleToolIds.includes(a.id):!1},isToolActive:F=>z=>{const a=(F.isPc?F.pTools:F.mTools).find(x=>x.id===z);return a?a.isActive:!1},isToolActiveBykey:F=>z=>{const a=(F.isPc?F.pTools:F.mTools).find(x=>x.key===z);return a?a.isActive:!1}}});function Rh(){return Vi()}function nT(){Vi().setAllToolClose(),Vi().setReadyTools([]),Vi().setEnableTools([]),Vi().setSectionMode("box")}let sT=["reset","navigate","measure","comment","anno","enjoy","tree","inspector","section","cameraView","roam","hidden","setting","share","fullscreen","cooperate","bcf","mouse"],oT=["tree","reset","roam","cameraView","operate","measure","section","comment","anno","screenshot","inspector","setting","fullscreen","enjoy","share","cooperate","bcf"];function sb(F,z){const a={};z.forEach((P,v)=>{a[P]=v});const x=F.filter(P=>a.hasOwnProperty(P)).map(P=>({value:P,index:a[P]}));return x.sort((P,v)=>P.index-v.index),x.map(P=>P.value)}const aT=[{id:0,name:"section.bulk.deleteAll"},{id:1,name:"section.bulk.flipAll"},{id:2,name:"section.bulk.showAll"},{id:4,name:"section.bulk.hideAll"}],Oh=[{id:0,name:"structure.objects"},{id:1,name:"structure.categories"},{id:2,name:"structure.floors"}],lT=[{id:0,size:"1"},{id:1,size:"2"},{id:2,size:"3"}],cT=[{id:1,color:"#066CFC"},{id:2,color:"#FE4444"},{id:3,color:"#FF9357"},{id:4,color:"#66C15F"},{id:5,color:"#FFFFFF"},{id:6,color:"#8F8F8F"},{id:7,color:"#000000"}],uT=[{id:0,name:"大",label:"fontSize.large",fontSize:"18"},{id:1,name:"中",label:"fontSize.medium",fontSize:"14"},{id:2,name:"小",label:"fontSize.small",fontSize:"10"}],ob=[{id:1,name:"铅笔",label:"commentTool.pencil",buttontype:"path",img:"edit-icon",imgActive:"edit-active-icon",svg:"draw",svgActive:"draw-active",isShow:!0},{id:2,name:"箭头",label:"commentTool.arrow",buttontype:"arrow",img:"arrow-icon",imgActive:"arrow-active-icon",svg:"arrow",svgActive:"arrow-active",isShow:!1},{id:3,name:"矩形",label:"commentTool.rectangle",buttontype:"rect",img:"rect-icon",imgActive:"rect-active-icon",svg:"rectangle",svgActive:"rectangle-active",isShow:!1},{id:4,name:"圆形",label:"commentTool.circle",buttontype:"ellipse",img:"ellipse-icon",imgActive:"ellipse-active-icon",svg:"circle",svgActive:"circle-active",isShow:!1},{id:5,name:"文字",label:"commentTool.text",buttontype:"text",img:"text-icon",imgActive:"text-active-icon",svg:"text",svgActive:"text-active",isShow:!1}],_c=[{id:1,name:"渐变蓝",label:"bgColor.gradientBlue",color:"linear-gradient(180deg, #fffefb 0%, #daebff 100%)",rgb:[.9254,.9607,1]},{id:2,name:"纯灰度",label:"bgColor.gray",color:"#F0F0F0",rgb:[.9411,.9411,.9411]},{id:3,name:"昏暗天空",label:"bgColor.dimSky",color:"#323237",rgb:[.196,.196,.2156]},{id:4,name:"纯白色",label:"bgColor.white",color:"#FFF",rgb:[1,1,1]},{id:5,name:"奶白蓝",label:"bgColor.milkBlue",color:"#ECF5FF",rgb:[.98,.98,.98]}],El=[{id:1,code:"pointDistance",name:"两点测距",label:"measure.pointDistance",img:"distance",imgActive:"distance-active",svg:"distance",svgActive:"distance-active"},{id:2,code:"edgeLength",name:"单边长度",label:"measure.edgeLength",img:"distance-line",imgActive:"distance-line-active",svg:"line",svgActive:"line-active"},{id:3,code:"edgeDistance",name:"两边间距",label:"measure.edgeDistance",img:"2line-distance",imgActive:"2line-distance-active",svg:"2line-distance",svgActive:"2line-distance-active"},{id:4,code:"pointAngle",name:"三点测角",label:"measure.pointAngle",img:"angle-point",imgActive:"angle-point-active",svg:"angle-point",svgActive:"angle-point-active"},{id:5,code:"edgeAngle",name:"选边测角",label:"measure.edgeAngle",img:"angle-line",imgActive:"angle-line-active",svg:"angle-line",svgActive:"angle-line-active"},{id:6,code:"circleRadius",name:"圆半径",label:"measure.circleRadius",img:"circle",imgActive:"circle-active",svg:"circle",svgActive:"circle-active"},{id:7,code:"elevation",name:"标高",label:"measure.elevation",img:"elevation",imgActive:"elevation-active",svg:"elevation",svgActive:"elevation-active"}],Ym=[{id:0,name:"1280x720px",width:"1280",height:"720"},{id:1,name:"1920x1080px",width:"1920",height:"1080"},{id:2,name:"2560x1440px",width:"2560",height:"1440"},{id:3,label:"screenshot.custom"}],dT=[{id:1,code:"top",name:"俯视图",label:"navigate.top",dir_num:4,img:"view-top",imgActive:"view-top-active"},{id:2,code:"bottom",name:"仰视图",label:"navigate.bottom",dir_num:5,img:"view-bottom",imgActive:"view-bottom-active"},{id:3,code:"left",name:"左视图",label:"navigate.left",dir_num:3,img:"view-left",imgActive:"view-left-active"},{id:4,code:"right",name:"右视图",label:"navigate.right",dir_num:2,img:"view-right",imgActive:"view-right-active"},{id:5,code:"front",name:"前视图",label:"navigate.front",dir_num:0,img:"view-front",imgActive:"view-front-active"},{id:6,code:"back",name:"后视图",label:"navigate.back",dir_num:1,img:"view-back",imgActive:"view-back-active"},{id:7,code:"left-bottom",name:"西南",label:"navigate.leftBottom",dir_num:14,img:"view-left-bottom",imgActive:"view-left-bottom-active"},{id:8,code:"right-bottom",name:"东南",label:"navigate.rightBottom",dir_num:15,img:"view-right-bottom",imgActive:"view-right-bottom-active"},{id:9,code:"right-top",name:"东北",label:"navigate.rightTop",dir_num:16,img:"view-right-top",imgActive:"view-right-top-active"},{id:10,code:"left-top",name:"西北",label:"navigate.leftTop",dir_num:17,img:"view-left-top",imgActive:"view-left-top-active"}],Bl=[{id:1,code:"image",name:"annotation.image",okType:"image/*",img:"image",img_active:"image_active",imgActive:"image-active"},{id:2,code:"record",name:"annotation.record",okType:"record",img:"record",img_active:"record_active",imgActive:"record-active"},{id:3,code:"video",name:"annotation.video",okType:"video/*",img:"video",img_active:"video_active",imgActive:"video-active"},{id:4,code:"file",name:"annotation.file",okType:"*/*",img:"file",img_active:"file_active",imgActive:"file-active"},{id:5,code:"text",name:"annotation.text",okType:"text",img:"text",img_active:"text_active",imgActive:"text-active"}],hT=[{id:1,name:"hidden.hide",img:"hidden",img_active:"hidden-active"},{id:2,name:"hidden.perspective",img:"xray",img_active:"xray-active"},{id:3,name:"hidden.select",img:"select",img_active:"select-active"},{id:0,name:"hidden.recover",img:"recover",img_active:"recover-active"}];let Pl=null;const fT=F=>{Pl=F},Ru=Km.defineStore("locale",()=>{const F=()=>{const x=Qt("locale");if(x&&(x==="zh-CN"||x==="en-US"))return x;const P=localStorage.getItem("BIMX_LOCALE");if(P&&(P==="zh-CN"||P==="en-US"))return P;const v=navigator.language;return v.startsWith("zh")?"zh-CN":v.startsWith("en")?"en-US":"zh-CN"},z=o.ref(F()),a=x=>{z.value=x,Pl&&Pl.global&&(Pl.global.locale.value=x),localStorage.setItem("BIMX_LOCALE",x)};return o.watch(z,x=>{Pl&&Pl.global&&(Pl.global.locale.value=x)}),{locale:z,setLocale:a}}),Ou="sectionPlanesChanged";class da{static get sectionTool(){var z;return(z=window.bimViewer)==null?void 0:z.sectionTool}static get store(){return Vi()}static SetActive(z){var a,x;if(!z){(a=window.bimViewer)==null||a.SetSectionToolActive(!1);return}(x=window.bimViewer)==null||x.SetSectionToolActive(!0),Qt("isMobile")&&this.store.setSectionMode("box"),this.applyMode()}static ToggleMode(z){this.store.sectionMode===z?(this.store.setSectionMode(null),z==="box"?this.destroyBox():this.clearPlanes()):this.store.setSectionMode(z),this.applyMode()}static ResetBox(){var z;(z=this.sectionTool)==null||z.resetSectionBox()}static ToggleBoxVisible(){var a;const z=(a=this.sectionTool)==null?void 0:a.sectionBox;return z?(z.visible=!z.visible,z.visible):!1}static IsBoxVisible(){var a;const z=(a=this.sectionTool)==null?void 0:a.sectionBox;return!!z&&!!z.visible}static CloseBox(){this.store.setSectionMode(null),this.destroyBox(),this.applyMode()}static applyMode(){const z=this.sectionTool;if(!z)return;const a=this.store.sectionMode;z.planeCreationEnabled=a==="plane",a==="box"?(this.suspendPlanes(),window.bimViewer.SetSectionBoxActive(!0)):a==="plane"?(window.bimViewer.SetSectionBoxActive(!1),this.restorePlanes()):(window.bimViewer.SetSectionBoxActive(!1),window.bimViewer.setSectionBoxVisible(!1))}static suspendPlanes(){const z=this.sectionTool;if(!z)return;const a=z.getSectionPlanes()||{};this.suspendedSectionIds=Object.keys(a).filter(x=>a[x].active),this.suspendedSectionIds.length&&(z.disableSections(),ur.emit(Ou))}static restorePlanes(){this.suspendedSectionIds.length&&(this.suspendedSectionIds.forEach(z=>this.sectionTool.setSectionEnable(z)),this.suspendedSectionIds=[],ur.emit(Ou))}static clearPlanes(){const z=this.sectionTool;if(!z)return;const a=z.getSectionPlanes()||{};Object.keys(a).forEach(x=>z.destroySectionPlane(x)),this.suspendedSectionIds=[],ur.emit(Ou)}static destroyBox(){var z;(z=this.sectionTool)==null||z.destroySectionBox()}}bi(da,"suspendedSectionIds",[]);let ab=!1;Wa.BIMX_CONFIGS.viewerManager||(ur.on("BIMX_CONFIGS",F=>{window.bimViewer?wi.ConfigViewer(F):ab=!0}),Wa.BIMX_CONFIGS.viewerManager=!0);const pT=()=>{wi.SetAllClose(),ab&&wi.ConfigViewer()};Wa.BimViewer.viewerManager||(ur.on("BimViewer",pT),Wa.BimViewer.viewerManager=!0);const Hc=class Hc{static ConfigViewer(z=""){if(z==""){if(window.bimViewer.navCubeMode.visible=!!Qt("showNavCube")&&!Qt("isMobile"),Nr.BIMX_CONFIGS.isMobile&&(window.bimViewer.setIsTouch(!0),window.bimViewer.navCubeMode.visible=!1),Nr.BIMX_CONFIGS.measureOffset&&window.bimViewer.setMeasureOffSet(Qt("measureOffset").offsetX,Qt("measureOffset").offsetY),Nr.BIMX_CONFIGS.commentOffset&&window.bimViewer.setCommentsOffset(Qt("commentOffset").offsetX,Qt("commentOffset").offsetY),Nr.BIMX_CONFIGS.navCubePos){let a=function(){let v=0,f=0;return Qt("navCubePos").pos.includes("left")?v+=parseInt(Qt("leftWidth")):Qt("navCubePos").pos.includes("right")&&(v+=parseInt(Qt("rightWidth"))),Qt("navCubePos").pos.includes("top")?f+=parseInt(Qt("topHeight")):Qt("navCubePos").pos.includes("bottom")&&(f+=parseInt(Qt("bottomHeight"))),[v,f]};const x=Qt("navCubePos").pos?Qt("navCubePos").pos:"right-bottom",P=a();x.includes("right")&&window.bimViewer.setNavCubePosition("right",P[0]),x.includes("top")&&window.bimViewer.setNavCubePosition("top",P[1]),x.includes("left")&&window.bimViewer.setNavCubePosition("left",P[0]),x.includes("bottom")&&window.bimViewer.setNavCubePosition("bottom",P[1])}Nr.BIMX_CONFIGS.navCubeSize&&window.bimViewer.setNavCubeSize(Qt("navCubeSize")),Nr.BIMX_CONFIGS.locale&&Ru().setLocale(Qt("locale"));return}switch(z){case"isMobile":window.bimViewer.setIsTouch(Nr.BIMX_CONFIGS.isMobile),window.bimViewer.navCubeMode.visible=!!Qt("showNavCube")&&!Qt("isMobile");break;case"showNavCube":window.bimViewer.navCubeMode.visible=!!Qt("showNavCube")&&!Qt("isMobile");break;case"measureOffset":window.bimViewer.setCommentsOffset(Qt("measureOffset").offsetX,Qt("measureOffset").offsetY);break;case"commentOffset":window.bimViewer.setCommentsOffset(Qt("commentOffset").offsetX,Qt("commentOffset").offsetY);break;case"navCubePos":const a=Qt("navCubePos").pos?Qt("navCubePos").pos:"right-bottom",x=Qt("navCubePos").posNum?Qt("navCubePos").posNum:[0,a.includes("top")?Qt("topHeight"):0];a.includes("right")&&window.bimViewer.setNavCubePosition("right",x[0]),a.includes("left")&&window.bimViewer.setNavCubePosition("left",x[0]),a.includes("top")&&window.bimViewer.setNavCubePosition("top",x[1]),a.includes("bottom")&&window.bimViewer.setNavCubePosition("bottom",x[1]);break;case"navCubeSize":window.bimViewer.setNavCubeSize(Qt("navCubeSize"));break;case"locale":Ru().setLocale(Qt("locale"));break}}static SetModelBrightness(z,a){window.bimViewer.setModelBrightness(z,a)}static GetModelBrightness(z){return window.bimViewer.getModelBrightness(z)}static SaveViewerState(z){z.measure&&(this.viewerState.measureType=Hc.NormalizeMeasureMode(z.measure))}static NormalizeMeasureMode(z){return z==="distance"?"pointDistance":z==="angle"?"pointAngle":El.some(a=>a.code===z)?z:El[0].code}static SetToolActiveById(z,a=!Vi().isToolActive(z)){const x=Vi().getKeyById(z);x?this.SetToolActiveByKey(x,a):console.log("no such key:",z)}static SetToolActiveByKey(z,a=!Vi().isToolActiveBykey(z)){switch(z){case"tree":break;case"reset":window.bimViewer.resetView();break;case"roam":window.bimViewer.SetFirstPersonModeActive(a);break;case"measure":a?window.bimViewer.SetMeasureProActive(Hc.NormalizeMeasureMode(this.viewerState.measureType),!0):window.bimViewer.SetMeasureProAllDisactive();break;case"section":da.SetActive(a);break;case"comment":a?setTimeout(()=>{window.bimViewer.SetCommentsToolActive(a)},100):window.bimViewer.SetCommentsToolActive(a);break;case"anno":window.bimViewer.SetAnnotationToolActive(a);break;case"screenshot":break;case"inspector":break;case"fullscreen":a?document.documentElement.requestFullscreen():document.exitFullscreen&&document.exitFullscreen();break;case"hidden":window.bimViewer.disableClickEvent=a;break;case"operate":window.bimViewer.disableClickEvent=a;break}}static SetAllClose(){window.bimViewer.closeAll()}static DestroyViewer(){window.bimViewer.destroy(),console.log("旧模型已销毁")}static showRequestBusy(z,a){window.bimViewer.showSpinner(z),a&&a()}};bi(Hc,"viewerState",{measureType:"pointDistance"}),bi(Hc,"entityState",{xrayedObjectIds:[],highlightedObjectIds:[],selectedObjectIds:[],visibleObjectIds:[],edgesObjectIds:[]});let wi=Hc;const mT=["src"],AT=["src"],gT=["src"],vT=["src"],_T=["src"],yT=["src"],bT=["src"],wT=o.defineComponent({__name:"ClickEvent",setup(F,{expose:z}){const a=di();Vi();const x=o.ref(!0);o.onMounted(()=>{});let P="",v,f;const p=()=>{f=window.bimViewer,f.eventTrigger.on("pickedNothing",()=>{x.value&&(c.value=!1,C.value=[],wi.entityState.selectedObjectIds=[],f.setAllObjectsSelected(!1))}),f.eventTrigger.on("touchEntity",j=>{x.value&&(v=j,P=v.id,_(P))}),f.viewer.cameraControl.on("touchmoveCanvas",()=>{})};ur.on("BimViewer",p);const u=o.ref(0),l=o.ref(0),c=o.ref(!1),d=o.ref(!0),h=o.ref(!0),m=o.ref(!1),_=j=>{(!v||v&&j!==v.id)&&(v=f.viewer.scene.objects[j]),P=j,C.value.length>0&&!C.value.find(G=>G==P)&&C.value.push(P),d.value=!v.xrayed,h.value=!v.highlighted;const{aabb:H}=v,W=[(H[0]+H[3])/2,(H[1]+H[4])/2,(H[2]+H[5])/2],X=f.viewer.scene.camera.projectWorldPos(W);let $=X[0]-172/2,D=X[1]-198/2;$<0?$=0:$>window.innerWidth-198&&($=window.innerWidth-198),D<0?D=0:D>window.innerHeight-172-72&&(D=window.innerHeight-172-72),u.value=$,l.value=D,c.value=!0,f.setEntitySelected(v,!0)},b=()=>{C.value.find(j=>j==v.id)||(C.value=C.value.filter(j=>j!=v.id),wi.entityState.selectedObjectIds=C.value),y()},y=()=>{v=null,P="",d.value=!0,h.value=!0,c.value=!1,w.value=-1,ur.emit("unFocus")},w=o.ref(-1),C=o.ref([]),S=j=>{w.value=j},T=j=>{switch(C.value.length>0&&(C.value.push(P),wi.entityState.selectedObjectIds.find(H=>H==v.id)||wi.entityState.selectedObjectIds.push(v.id)),j!==5&&j!==0&&(window.bimViewer.disableClickEvent=!1,f.setAllObjectsSelected(!1)),j==5&&C.value.length==0&&(window.bimViewer.disableClickEvent=!0),j){case 0:C.value.length>0?f.viewFitObjects(C.value):f.viewFitEntity(v),setTimeout(()=>{f.setAllObjectsSelected(!1)},1e3);break;case 1:C.value.length>0?f.setObjectsVisible(wi.entityState.selectedObjectIds,!1):f.setEntityVisible(v,!1);break;case 2:m.value?f.setAllObjectsVisible(!0):(f.setAllObjectsVisible(!1),C.value.length>0?f.setObjectsVisible(wi.entityState.selectedObjectIds,!0):f.setEntityVisible(v,!0),f.setAllObjectsSelected(!1)),m.value=!m.value;break;case 3:C.value.length>0?(f.viewer.scene.setObjectsXRayed(C.value,d.value),C.value.forEach(H=>{const W=f.viewer.scene.objects[H];W.edges=W.xrayed?!0:f.edgesActive,f.setEntityHighlighted(W,!1)})):(f.setEntityXRayed(v),v.edges=v.xrayed?!0:f.edgesActive,f.setEntityHighlighted(v,!1));break;case 4:C.value.length>0?C.value.forEach(H=>{const W=f.viewer.scene.objects[H];f.setEntityHighlighted(W,h.value),W.xrayed&&(f.setEntityXRayed(W,!1),W.edges=f.edgesActive)}):(f.setEntityHighlighted(v),v.xrayed&&(f.setEntityXRayed(v,!1),v.edges=f.edgesActive));break;case 5:C.value.find(H=>H==P)||(C.value.push(P),f.setObjectsSelected(C.value,!0)),wi.entityState.selectedObjectIds=C.value,ur.emit("multiSelect");break}j!==5&&j!==0&&(f.setEntitySelected(v,!1),C.value=[],wi.entityState.selectedObjectIds=C.value),wi.entityState.xrayedObjectIds=f.viewer.scene.xrayedObjectIds,wi.entityState.highlightedObjectIds=f.viewer.scene.highlightedObjectIds,wi.entityState.selectedObjectIds=f.viewer.scene.selectedObjectIds,wi.entityState.visibleObjectIds=f.viewer.scene.visibleObjectIds,wi.entityState.edgesObjectIds=f.viewer.scene.edgesObjectIds,setTimeout(()=>{y()},300)},R=()=>{y()},L=()=>{x.value=!1},Q=()=>{x.value=!0};return ur.on("focusEntity",_),o.onBeforeUnmount(()=>{ur.off("BimViewer",p),ur.off("focusEntity",_)}),z({reset:R,enable:Q,disable:L}),(j,H)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:"entity_tools",style:o.normalizeStyle({left:`${u.value}px`,top:`${l.value}px`})},[o.createElementVNode("div",{class:"close_btns",onClick:b},[o.createElementVNode("img",{src:`${o.unref(zt)}/industry-viewer/detail-bar/close-dark-circle.svg`},null,8,mT)]),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:w.value==0},"detail_btn fit"]),onPointerdown:H[0]||(H[0]=W=>S(0)),onPointerup:H[1]||(H[1]=W=>T(0))},[o.createElementVNode("img",{src:`${o.unref(zt)}/industry-viewer/detail-bar/fit.svg`},null,8,AT),o.createElementVNode("span",null,o.toDisplayString(o.unref(a)("clickEvent.focus")),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:w.value==1},"detail_btn hide_self"]),onPointerdown:H[2]||(H[2]=W=>S(1)),onPointerup:H[3]||(H[3]=W=>T(1))},[o.createElementVNode("img",{src:`${o.unref(zt)}/industry-viewer/detail-bar/hide-self.svg`},null,8,gT),o.createElementVNode("span",null,o.toDisplayString(o.unref(a)("clickEvent.hide")),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:w.value==2},"detail_btn hide_other"]),onPointerdown:H[4]||(H[4]=W=>S(2)),onPointerup:H[5]||(H[5]=W=>T(2))},[o.createElementVNode("img",{src:`${o.unref(zt)}/industry-viewer/detail-bar/hide-other.svg`},null,8,vT),o.createElementVNode("span",null,o.toDisplayString(m.value?o.unref(a)("clickEvent.cancel"):o.unref(a)("clickEvent.onlyShow")),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:w.value==3},"detail_btn edge_solid"]),onPointerdown:H[6]||(H[6]=W=>S(3)),onPointerup:H[7]||(H[7]=W=>T(3))},[o.createElementVNode("img",{src:`${o.unref(zt)}/industry-viewer/detail-bar/${d.value?"edge":"solid"}.svg`},null,8,_T),o.createElementVNode("span",null,o.toDisplayString(d.value?o.unref(a)("clickEvent.edge"):o.unref(a)("clickEvent.fill")),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:w.value==4},"detail_btn opacity_fill"]),onPointerdown:H[8]||(H[8]=W=>S(4)),onPointerup:H[9]||(H[9]=W=>T(4))},[o.createElementVNode("img",{src:`${o.unref(zt)}/industry-viewer/detail-bar/${h.value?"opacity":"fill"}.svg`},null,8,yT),o.createElementVNode("span",null,o.toDisplayString(h.value?o.unref(a)("clickEvent.transparent"):o.unref(a)("clickEvent.solid")),1)],34),o.createElementVNode("div",{class:o.normalizeClass([{detail_btn_active:w.value==5},"detail_btn multi_select"]),onPointerdown:H[10]||(H[10]=W=>S(5)),onPointerup:H[11]||(H[11]=W=>T(5))},[o.createElementVNode("img",{src:`${o.unref(zt)}/industry-viewer/detail-bar/multiSelect.svg`},null,8,bT),o.createElementVNode("span",null,o.toDisplayString(o.unref(a)("clickEvent.multiSelect")),1)],34)],4)),[[o.vShow,c.value]])}}),ha=(F,z,{checkForDefaultPrevented:a=!0}={})=>P=>{const v=F==null?void 0:F(P);if(a===!1||!v)return z==null?void 0:z(P)};var lb;const Kn=typeof window<"u",xT=F=>typeof F=="string",cb=()=>{},Jm=Kn&&((lb=window==null?void 0:window.navigator)==null?void 0:lb.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ub(F){return typeof F=="function"?F():o.unref(F)}function CT(F){return F}function Lh(F){return o.getCurrentScope()?(o.onScopeDispose(F),!0):!1}function ET(F,z=!0){o.getCurrentInstance()?o.onMounted(F):z?F():o.nextTick(F)}function fa(F){var z;const a=ub(F);return(z=a==null?void 0:a.$el)!=null?z:a}const Nh=Kn?window:void 0;function hs(...F){let z,a,x,P;if(xT(F[0])||Array.isArray(F[0])?([a,x,P]=F,z=Nh):[z,a,x,P]=F,!z)return cb;Array.isArray(a)||(a=[a]),Array.isArray(x)||(x=[x]);const v=[],f=()=>{v.forEach(c=>c()),v.length=0},p=(c,d,h,m)=>(c.addEventListener(d,h,m),()=>c.removeEventListener(d,h,m)),u=o.watch(()=>[fa(z),ub(P)],([c,d])=>{f(),c&&v.push(...a.flatMap(h=>x.map(m=>p(c,h,m,d))))},{immediate:!0,flush:"post"}),l=()=>{u(),f()};return Lh(l),l}let db=!1;function hb(F,z,a={}){const{window:x=Nh,ignore:P=[],capture:v=!0,detectIframe:f=!1}=a;if(!x)return;Jm&&!db&&(db=!0,Array.from(x.document.body.children).forEach(h=>h.addEventListener("click",cb)));let p=!0;const u=h=>P.some(m=>{if(typeof m=="string")return Array.from(x.document.querySelectorAll(m)).some(_=>_===h.target||h.composedPath().includes(_));{const _=fa(m);return _&&(h.target===_||h.composedPath().includes(_))}}),c=[hs(x,"click",h=>{const m=fa(F);if(!(!m||m===h.target||h.composedPath().includes(m))){if(h.detail===0&&(p=!u(h)),!p){p=!0;return}z(h)}},{passive:!0,capture:v}),hs(x,"pointerdown",h=>{const m=fa(F);m&&(p=!h.composedPath().includes(m)&&!u(h))},{passive:!0}),f&&hs(x,"blur",h=>{var m;const _=fa(F);((m=x.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(_!=null&&_.contains(x.document.activeElement))&&z(h)})].filter(Boolean);return()=>c.forEach(h=>h())}function fb(F,z=!1){const a=o.ref(),x=()=>a.value=!!F();return x(),ET(x,z),a}const pb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},mb="__vueuse_ssr_handlers__";pb[mb]=pb[mb]||{};var Ab=Object.getOwnPropertySymbols,BT=Object.prototype.hasOwnProperty,PT=Object.prototype.propertyIsEnumerable,ST=(F,z)=>{var a={};for(var x in F)BT.call(F,x)&&z.indexOf(x)<0&&(a[x]=F[x]);if(F!=null&&Ab)for(var x of Ab(F))z.indexOf(x)<0&&PT.call(F,x)&&(a[x]=F[x]);return a};function pa(F,z,a={}){const x=a,{window:P=Nh}=x,v=ST(x,["window"]);let f;const p=fb(()=>P&&"ResizeObserver"in P),u=()=>{f&&(f.disconnect(),f=void 0)},l=o.watch(()=>fa(F),d=>{u(),p.value&&P&&d&&(f=new ResizeObserver(z),f.observe(d,v))},{immediate:!0,flush:"post"}),c=()=>{u(),l()};return Lh(c),{isSupported:p,stop:c}}var gb=Object.getOwnPropertySymbols,MT=Object.prototype.hasOwnProperty,kT=Object.prototype.propertyIsEnumerable,TT=(F,z)=>{var a={};for(var x in F)MT.call(F,x)&&z.indexOf(x)<0&&(a[x]=F[x]);if(F!=null&&gb)for(var x of gb(F))z.indexOf(x)<0&&kT.call(F,x)&&(a[x]=F[x]);return a};function IT(F,z,a={}){const x=a,{window:P=Nh}=x,v=TT(x,["window"]);let f;const p=fb(()=>P&&"MutationObserver"in P),u=()=>{f&&(f.disconnect(),f=void 0)},l=o.watch(()=>fa(F),d=>{u(),p.value&&P&&d&&(f=new MutationObserver(z),f.observe(d,v))},{immediate:!0}),c=()=>{u(),l()};return Lh(c),{isSupported:p,stop:c}}var vb;(function(F){F.UP="UP",F.RIGHT="RIGHT",F.DOWN="DOWN",F.LEFT="LEFT",F.NONE="NONE"})(vb||(vb={}));var DT=Object.defineProperty,_b=Object.getOwnPropertySymbols,FT=Object.prototype.hasOwnProperty,RT=Object.prototype.propertyIsEnumerable,yb=(F,z,a)=>z in F?DT(F,z,{enumerable:!0,configurable:!0,writable:!0,value:a}):F[z]=a,OT=(F,z)=>{for(var a in z||(z={}))FT.call(z,a)&&yb(F,a,z[a]);if(_b)for(var a of _b(z))RT.call(z,a)&&yb(F,a,z[a]);return F};OT({linear:CT},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const LT=()=>Kn&&/firefox/i.test(window.navigator.userAgent);/**
2
2
  * @vue/shared v3.5.13
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
@@ -1,4 +1,4 @@
1
- import { o as Y, p as q, q as h, O as x, F as z, y as A } from "./index-DL-9hfEJ.mjs";
1
+ import { o as Y, p as q, q as h, O as x, F as z, y as A } from "./index-jngVSTsO.mjs";
2
2
  import { defineComponent as F, ref as l, watch as k, onMounted as P, onBeforeUnmount as W, openBlock as u, createElementBlock as g, normalizeClass as T, createElementVNode as t, createBlock as j, withCtx as G, unref as B, withDirectives as N, vModelText as E, createCommentVNode as J } from "vue";
3
3
  const K = { class: "cameraView_tool_btn" }, Q = ["src"], Z = {
4
4
  key: 1,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as ne, ref as o, openBlock as n, createElementBlock as c, createElementVNode as e, unref as s, toDisplayString as a, withModifiers as Z, Fragment as G, renderList as Q, createCommentVNode as A, createVNode as K, withCtx as ce, toRefs as Be, onMounted as me, watch as re, normalizeStyle as ee, createTextVNode as de, createBlock as oe, computed as ge, withDirectives as we, vShow as Ie, onBeforeUnmount as be, normalizeClass as ue } from "vue";
2
- import { O as P, y as ie, P as ke, n as ae, Q as xe, R as Te, U as De, v as pe, W as Se, X as fe, Y as ve, Z as _e, p as q, $ as ye, t as Ce, N as Me, a0 as Oe, a1 as ze, a2 as Ee, q as X, G as Re, I as Ne, o as $e, a3 as Le, a4 as Fe, a5 as Ue, a6 as Ae } from "./index-DL-9hfEJ.mjs";
2
+ import { O as P, y as ie, P as ke, n as ae, Q as xe, R as Te, U as De, v as pe, W as Se, X as fe, Y as ve, Z as _e, p as q, $ as ye, t as Ce, N as Me, a0 as Oe, a1 as ze, a2 as Ee, q as X, G as Re, I as Ne, o as $e, a3 as Le, a4 as Fe, a5 as Ue, a6 as Ae } from "./index-jngVSTsO.mjs";
3
3
  import { T as He } from "./timer-DoTiGoWP.mjs";
4
4
  const We = { class: "prompt_wrapper" }, Ye = { class: "prompt_box" }, Je = ["src"], Ze = { class: "text" }, Ge = /* @__PURE__ */ ne({
5
5
  __name: "prompt",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as V, onMounted as E, ref as k, onBeforeUnmount as B, openBlock as s, createElementBlock as l, createElementVNode as r, Fragment as C, renderList as H, unref as c, normalizeClass as w, toDisplayString as S } from "vue";
2
- import { n as I, o as O, q as m, H as T, O as A, p as x, y as j } from "./index-DL-9hfEJ.mjs";
2
+ import { n as I, o as O, q as m, H as T, O as A, p as x, y as j } from "./index-jngVSTsO.mjs";
3
3
  const D = { class: "hidden_wrapper" }, L = { class: "hidden_content" }, M = ["onClick"], N = ["src"], R = /* @__PURE__ */ V({
4
4
  __name: "HiddenTool",
5
5
  props: ["componentId"],
@@ -1,6 +1,6 @@
1
- import { z as ee, n as te, o as ne, q as D, p as v, T as N, O as H, v as oe, x as se, y as ie } from "./index-DL-9hfEJ.mjs";
2
- import { _ as ae } from "./tallPanel-DXh42FgN.mjs";
3
- import { _ as le } from "./panel.vue_vue_type_style_index_0_lang-C33jjUak.mjs";
1
+ import { z as ee, n as te, o as ne, q as D, p as v, T as N, O as H, v as oe, x as se, y as ie } from "./index-jngVSTsO.mjs";
2
+ import { _ as ae } from "./tallPanel-CNORaYkU.mjs";
3
+ import { _ as le } from "./panel.vue_vue_type_style_index_0_lang-DfDOwKP2.mjs";
4
4
  import { defineComponent as ce, onMounted as re, ref as W, reactive as G, watch as _e, onBeforeUnmount as pe, openBlock as c, createElementBlock as r, Fragment as y, unref as n, createBlock as Q, withCtx as I, withDirectives as d, createElementVNode as e, createVNode as B, toDisplayString as t, vShow as m, renderList as f, createCommentVNode as O } from "vue";
5
5
  const Z = {
6
6
  ExtendToStructure: "扩建物",
@@ -1,6 +1,6 @@
1
- import { _ as ft } from "./alert-CBH1N-0R.mjs";
2
- import { n as bt, o as yt, T as Xe, M as W, q as Ye, p as h, O as E, V as q, F as ht, t as gt, G as Mt, I as kt, x as wt, y as Tt } from "./index-DL-9hfEJ.mjs";
3
- import { _ as xt } from "./panel.vue_vue_type_style_index_0_lang-C33jjUak.mjs";
1
+ import { _ as ft } from "./alert-D-agI6w6.mjs";
2
+ import { n as bt, o as yt, T as Xe, M as W, q as Ye, p as h, O as E, V as q, F as ht, t as gt, G as Mt, I as kt, x as wt, y as Tt } from "./index-jngVSTsO.mjs";
3
+ import { _ as xt } from "./panel.vue_vue_type_style_index_0_lang-DfDOwKP2.mjs";
4
4
  import { defineComponent as Dt, ref as u, onMounted as Ne, computed as pe, onBeforeUnmount as At, watch as St, nextTick as Vt, openBlock as r, createElementBlock as d, Fragment as S, unref as o, createBlock as je, withCtx as O, createElementVNode as l, renderList as I, normalizeClass as J, toDisplayString as v, normalizeStyle as fe, createCommentVNode as ne, createVNode as p, withDirectives as We, vShow as qe } from "vue";
5
5
  const Pt = {
6
6
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as Y, onMounted as x, onBeforeUnmount as A, ref as _, watch as C, openBlock as M, createElementBlock as $, withDirectives as F, createElementVNode as g, normalizeStyle as D, unref as L, vShow as N } from "vue";
2
- import { o as R, q as s, O as V, V as k } from "./index-DL-9hfEJ.mjs";
2
+ import { o as R, q as s, O as V, V as k } from "./index-jngVSTsO.mjs";
3
3
  const U = { class: "mouse_tool" }, q = ["src"], z = ["src"], J = /* @__PURE__ */ Y({
4
4
  __name: "MouseTool",
5
5
  props: ["componentId"],
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, onMounted as p, ref as w, openBlock as n, createElementBlock as i, createElementVNode as s, Fragment as g, renderList as h, unref as a, normalizeClass as f, toDisplayString as B } from "vue";
2
- import { n as I, o as S, aB as T, O as k } from "./index-DL-9hfEJ.mjs";
2
+ import { n as I, o as S, aB as T, O as k } from "./index-jngVSTsO.mjs";
3
3
  const N = { class: "best-view-box" }, V = { class: "best-view-list" }, x = ["onClick"], y = { class: "best-view-icon" }, A = ["src"], C = { class: "best-view-name" }, O = /* @__PURE__ */ b({
4
4
  __name: "NavigateTool",
5
5
  props: ["componentId"],
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as U, onMounted as q, computed as I, ref as h, watch as z, onBeforeUnmount as G, openBlock as E, createBlock as J, Transition as K, withCtx as Q, withDirectives as W, createElementVNode as n, toDisplayString as O, normalizeClass as V, unref as f, createElementBlock as Y, Fragment as Z, renderList as ee, vShow as te } from "vue";
2
- import { n as se, o as le, q as T, O as _, V as m, y as ie } from "./index-DL-9hfEJ.mjs";
2
+ import { n as se, o as le, q as T, O as _, V as m, y as ie } from "./index-jngVSTsO.mjs";
3
3
  const ne = { class: "operate_tool_wrapper" }, ae = { class: "operate_hint" }, re = { class: "operate_toolbar" }, oe = ["src"], ce = ["onClick"], ue = ["src"], de = ["src"], ve = /* @__PURE__ */ U({
4
4
  __name: "OperateTool",
5
5
  props: ["componentId"],
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as A, ref as u, onMounted as j, onBeforeUnmount as q, watch as z, openBlock as h, createElementBlock as b, unref as r, createElementVNode as e, toDisplayString as m, createCommentVNode as L } from "vue";
2
- import { o as J, n as K, p as c, C as S, q as M, O as l, D as V, y as Q } from "./index-DL-9hfEJ.mjs";
2
+ import { o as J, n as K, p as c, C as S, q as M, O as l, D as V, y as Q } from "./index-jngVSTsO.mjs";
3
3
  const W = { class: "roam_container_wrapper" }, Y = {
4
4
  key: 0,
5
5
  class: "roam_container"
@@ -1,5 +1,5 @@
1
- import { _ as pe } from "./panel.vue_vue_type_style_index_0_lang-C33jjUak.mjs";
2
- import { a8 as G, a9 as x, f as j, aa as O, ab as H, ac as ve, ad as X, a as W, ae as fe, af as be, ag as _e, u as L, _ as T, ah as he, ai as ge, aj as ye, ak as Se, d as Ve, w as Re, al as Y, n as ke, o as Ee, am as U, t as Ie } from "./index-DL-9hfEJ.mjs";
1
+ import { _ as pe } from "./panel.vue_vue_type_style_index_0_lang-DfDOwKP2.mjs";
2
+ import { a8 as G, a9 as x, f as j, aa as O, ab as H, ac as ve, ad as X, a as W, ae as fe, af as be, ag as _e, u as L, _ as T, ah as he, ai as ge, aj as ye, ak as Se, d as Ve, w as Re, al as Y, n as ke, o as Ee, am as U, t as Ie } from "./index-jngVSTsO.mjs";
3
3
  import { ref as R, inject as Be, computed as g, defineComponent as E, openBlock as k, createElementBlock as B, normalizeClass as y, unref as e, createElementVNode as v, withDirectives as q, isRef as J, withModifiers as N, vModelRadio as Q, renderSlot as F, createTextVNode as z, toDisplayString as C, nextTick as Z, normalizeStyle as Ce, onMounted as ee, provide as we, reactive as Ne, toRefs as ze, watch as oe, createBlock as Ge, withCtx as $, createVNode as w, Fragment as Pe, renderList as Ue, createCommentVNode as $e } from "vue";
4
4
  const ae = G({
5
5
  modelValue: {
@@ -1,6 +1,6 @@
1
- import { _ as be } from "./alert-CBH1N-0R.mjs";
2
- import { n as ge, o as ke, T as G, p as b, q as f, J, K as h, O as g, L as Se, N as we, v as ye, x as xe, y as Ce } from "./index-DL-9hfEJ.mjs";
3
- import { _ as Le } from "./panel.vue_vue_type_style_index_0_lang-C33jjUak.mjs";
1
+ import { _ as be } from "./alert-D-agI6w6.mjs";
2
+ import { n as ge, o as ke, T as G, p as b, q as f, J, K as h, O as g, L as Se, N as we, v as ye, x as xe, y as Ce } from "./index-jngVSTsO.mjs";
3
+ import { _ as Le } from "./panel.vue_vue_type_style_index_0_lang-DfDOwKP2.mjs";
4
4
  import { defineComponent as Be, ref as _, onMounted as Te, watch as Pe, onBeforeUnmount as Ve, openBlock as a, createElementBlock as d, Fragment as I, unref as n, createBlock as Ee, withCtx as W, createElementVNode as o, toDisplayString as v, withDirectives as Q, renderList as X, vShow as Y, createVNode as L, normalizeClass as Z, withModifiers as Ie, createTextVNode as Oe } from "vue";
5
5
  const Me = { class: "section_panel_middle" }, Ae = { class: "section_middle_title" }, $e = { class: "section_control_button" }, De = ["src"], Ne = { class: "control_buttons" }, He = ["onClick"], ze = { class: "section_panel_cont" }, Re = {
6
6
  key: 0,
@@ -1,5 +1,5 @@
1
- import { an as yt, a8 as Ae, ad as Xe, aa as te, ah as Ge, ac as we, ao as re, ap as Me, a9 as ne, l as ut, u as $e, aj as qe, aq as ze, d as he, ae as Ze, af as rt, c as be, ar as tt, t as Vt, _ as Oe, as as De, f as Ie, w as Je, at as Ce, au as dt, av as wt, g as Fe, aw as lt, j as St, F as ct, ak as vt, k as Le, ab as Ue, ax as kt, ay as nt, n as Et, z as Ct, o as It, T as at, p as ge, az as ke, q as Ee, V as Nt, E as Bt, aA as Tt, v as _t, x as Mt, y as xt } from "./index-DL-9hfEJ.mjs";
2
- import { _ as Pt } from "./panel.vue_vue_type_style_index_0_lang-C33jjUak.mjs";
1
+ import { an as yt, a8 as Ae, ad as Xe, aa as te, ah as Ge, ac as we, ao as re, ap as Me, a9 as ne, l as ut, u as $e, aj as qe, aq as ze, d as he, ae as Ze, af as rt, c as be, ar as tt, t as Vt, _ as Oe, as as De, f as Ie, w as Je, at as Ce, au as dt, av as wt, g as Fe, aw as lt, j as St, F as ct, ak as vt, k as Le, ab as Ue, ax as kt, ay as nt, n as Et, z as Ct, o as It, T as at, p as ge, az as ke, q as Ee, V as Nt, E as Bt, aA as Tt, v as _t, x as Mt, y as xt } from "./index-jngVSTsO.mjs";
2
+ import { _ as Pt } from "./panel.vue_vue_type_style_index_0_lang-DfDOwKP2.mjs";
3
3
  import { defineComponent as de, ref as $, reactive as Qe, computed as N, watch as ye, onMounted as Re, onUpdated as At, openBlock as g, createElementBlock as z, normalizeClass as X, unref as t, withModifiers as xe, withDirectives as ot, withKeys as _e, renderSlot as Ke, createVNode as M, withCtx as ee, createBlock as q, createCommentVNode as H, nextTick as Pe, shallowRef as $t, inject as zt, toRefs as je, normalizeStyle as se, createElementVNode as u, toDisplayString as _, h as Lt, provide as Ut, Fragment as pe, renderList as Ne, resolveDynamicComponent as Te, onBeforeUnmount as Ft, createTextVNode as ue } from "vue";
4
4
  import { T as Kt } from "./timer-DoTiGoWP.mjs";
5
5
  import { ArrowDown as Ot, Minus as Rt, ArrowUp as Yt, Plus as Wt, Loading as Xt } from "@element-plus/icons-vue";
@@ -1,6 +1,6 @@
1
- import { u as re, _ as Ne, w as Ie, h as be, i as je, a as Oe, r as me, b as Me, E as Pe, c as He, d as ze, e as Fe, f as qe, g as Re, j as Z, k as Ve, l as Ue, s as We, m as Ye, n as Ge, o as Je, p as ee, q as ye, T as De, S as ve, t as Qe, v as Xe, x as Ze, y as et } from "./index-DL-9hfEJ.mjs";
2
- import { _ as tt } from "./tallPanel-DXh42FgN.mjs";
3
- import { _ as nt } from "./panel.vue_vue_type_style_index_0_lang-C33jjUak.mjs";
1
+ import { u as re, _ as Ne, w as Ie, h as be, i as je, a as Oe, r as me, b as Me, E as Pe, c as He, d as ze, e as Fe, f as qe, g as Re, j as Z, k as Ve, l as Ue, s as We, m as Ye, n as Ge, o as Je, p as ee, q as ye, T as De, S as ve, t as Qe, v as Xe, x as Ze, y as et } from "./index-jngVSTsO.mjs";
2
+ import { _ as tt } from "./tallPanel-CNORaYkU.mjs";
3
+ import { _ as nt } from "./panel.vue_vue_type_style_index_0_lang-DfDOwKP2.mjs";
4
4
  import { defineComponent as de, openBlock as w, createBlock as Y, Transition as ot, mergeProps as st, unref as x, toHandlers as at, withCtx as I, renderSlot as xe, reactive as rt, inject as ae, h as Ke, provide as fe, ref as E, getCurrentInstance as Be, watch as O, nextTick as ke, resolveComponent as ne, withDirectives as U, createElementBlock as $, normalizeClass as z, withModifiers as te, createElementVNode as _, normalizeStyle as dt, resolveDynamicComponent as it, createCommentVNode as le, createVNode as S, Fragment as ue, renderList as he, vShow as W, shallowRef as Te, onMounted as Ae, onUpdated as lt, computed as ct, toDisplayString as H, onBeforeUnmount as ut } from "vue";
5
5
  import { Loading as ht, CaretRight as ft } from "@element-plus/icons-vue";
6
6
  const pt = de({
@@ -1,4 +1,4 @@
1
- import { n as o, O as c, x as _, y as a } from "./index-DL-9hfEJ.mjs";
1
+ import { n as o, O as c, x as _, y as a } from "./index-jngVSTsO.mjs";
2
2
  import { defineComponent as i, openBlock as r, createElementBlock as d, createElementVNode as e, unref as n, toDisplayString as p, createVNode as u } from "vue";
3
3
  const m = { class: "alert_wrapper" }, h = { class: "alert_box_wrapper" }, f = { class: "alert_box" }, g = { class: "alert_img" }, v = ["src"], x = { class: "alert_title" }, k = { class: "alert_close" }, w = /* @__PURE__ */ i({
4
4
  __name: "alert",
@@ -919,7 +919,7 @@ const fde = (V) => {
919
919
  }, Un = () => {
920
920
  const V = KM();
921
921
  return V ? (G, ...a) => V.global.t(`bimxViewer.${G}`, ...a) : (G) => G;
922
- }, oE = "https://bimkk-api-test.tcbim.com", Pr = "https://tctwins-oss-test.oss-cn-beijing.aliyuncs.com", nW = "https://convert-test.tcbim.com", wi = WQ();
922
+ }, oE = "https://bimkk-api.tcbim.com", Pr = "https://bimkk-oss-production.oss-cn-beijing.aliyuncs.com", nW = "https://convert.tcbim.com", wi = WQ();
923
923
  let Oc = {
924
924
  BIMX_CONFIGS: {
925
925
  viewerManager: !1,
@@ -136089,21 +136089,21 @@ const ofe = { class: "bcf_wrapper" }, lfe = { class: "bcf_content" }, ufe = { cl
136089
136089
  __proto__: null,
136090
136090
  default: jT
136091
136091
  }, Symbol.toStringTag, { value: "Module" })), Hfe = {
136092
- StructureTree: Ys(() => import("./StructureTree-Ve6eLaxT.mjs")),
136093
- InspectorTool: Ys(() => import("./InspectorTool-C2nndt-g.mjs")),
136094
- RoamTool: Ys(() => import("./RoamTool-BbTe1gv-.mjs")),
136095
- CameraViewTool: Ys(() => import("./CameraViewTool-DZgfvZWz.mjs")),
136096
- HiddenTool: Ys(() => import("./HiddenTool-Cd4f17Dt.mjs")),
136097
- MeasureTool: Ys(() => import("./MeasureTool-BsMkog4B.mjs")),
136098
- SectionTool: Ys(() => import("./SectionTool-D2Sxtt9O.mjs")),
136099
- CommentTool: Ys(() => import("./CommentTool-wnbLGy67.mjs")),
136100
- AnnotationTool: Ys(() => import("./AnnotationTool-BdpbH5GD.mjs")),
136101
- ScreenShotTool: Ys(() => import("./ScreenShotTool-D5h8wDJx.mjs")),
136102
- SettingTool: Ys(() => import("./SettingTool-BhKIEnOm.mjs")),
136103
- NavigateTool: Ys(() => import("./NavigateTool-D2JI1BJD.mjs")),
136092
+ StructureTree: Ys(() => import("./StructureTree-BTqIDob7.mjs")),
136093
+ InspectorTool: Ys(() => import("./InspectorTool-D6DtUWoh.mjs")),
136094
+ RoamTool: Ys(() => import("./RoamTool-DueJxPwv.mjs")),
136095
+ CameraViewTool: Ys(() => import("./CameraViewTool-CJfs6vWu.mjs")),
136096
+ HiddenTool: Ys(() => import("./HiddenTool-BXTqbPUK.mjs")),
136097
+ MeasureTool: Ys(() => import("./MeasureTool-BZxE7H7U.mjs")),
136098
+ SectionTool: Ys(() => import("./SectionTool-CKrvJEQ9.mjs")),
136099
+ CommentTool: Ys(() => import("./CommentTool-mcXTV3bv.mjs")),
136100
+ AnnotationTool: Ys(() => import("./AnnotationTool-DCHJcLix.mjs")),
136101
+ ScreenShotTool: Ys(() => import("./ScreenShotTool-DDtQfqF5.mjs")),
136102
+ SettingTool: Ys(() => import("./SettingTool-CWAOl-yl.mjs")),
136103
+ NavigateTool: Ys(() => import("./NavigateTool-cQshheaw.mjs")),
136104
136104
  BCFTool: Ys(() => Promise.resolve().then(() => Vfe)),
136105
- MouseTool: Ys(() => import("./MouseTool-BNJTSuhL.mjs")),
136106
- OperateTool: Ys(() => import("./OperateTool-BebljnDn.mjs"))
136105
+ MouseTool: Ys(() => import("./MouseTool-Clt4JeIj.mjs")),
136106
+ OperateTool: Ys(() => import("./OperateTool-C86C-l1z.mjs"))
136107
136107
  }, zfe = { class: "section-mode-bar" }, Gfe = ["title", "onClick"], Qfe = ["src"], Wfe = { class: "mode-label" }, Kfe = /* @__PURE__ */ Ir({
136108
136108
  __name: "SectionModeBar",
136109
136109
  setup(V) {
@@ -1,4 +1,4 @@
1
- import { T as o, x as r } from "./index-DL-9hfEJ.mjs";
1
+ import { T as o, x as r } from "./index-jngVSTsO.mjs";
2
2
  import { defineComponent as c, ref as u, onMounted as p, openBlock as m, createBlock as h, unref as l, withCtx as _, createElementVNode as e, normalizeStyle as g, toDisplayString as f, createVNode as w, renderSlot as k } from "vue";
3
3
  import { ElDialog as v } from "element-plus";
4
4
  const y = { class: "panel_top" }, T = { class: "panel_title" }, V = { class: "panel_close" }, S = { class: "panel_content" }, C = /* @__PURE__ */ c({
@@ -1,4 +1,4 @@
1
- import { o as g, p as t, T as r, A as y, B as x, x as S, y as k } from "./index-DL-9hfEJ.mjs";
1
+ import { o as g, p as t, T as r, A as y, B as x, x as S, y as k } from "./index-jngVSTsO.mjs";
2
2
  import { defineComponent as P, ref as c, onMounted as W, watch as b, openBlock as _, createElementBlock as f, normalizeStyle as w, createElementVNode as o, toDisplayString as C, createVNode as T, unref as h, renderSlot as N, createCommentVNode as B } from "vue";
3
3
  const E = { class: "tall_panel_content" }, $ = { class: "panel_top" }, H = { class: "panel_title" }, L = { class: "panel_close" }, A = { class: "panel_content" }, M = {
4
4
  key: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtctwins/tctwins-bimx-engine",
3
- "version": "0.3.20",
3
+ "version": "0.3.21",
4
4
  "main": "dist/BIMX_Viewer_Lib.umd.js",
5
5
  "style": "dist/style.css",
6
6
  "module": "dist/BIMX_Viewer_Lib.es.js",