@manycore/custom-sdk 1.11.1 → 1.12.0
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.
- package/index.d.ts +12 -1
- package/index.js +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1138,6 +1138,17 @@ export declare class FittingDesignService extends BaseService {
|
|
|
1138
1138
|
setHidden(isHidden: boolean): void;
|
|
1139
1139
|
}
|
|
1140
1140
|
|
|
1141
|
+
/**
|
|
1142
|
+
* 获取交接面配置信息
|
|
1143
|
+
*/
|
|
1144
|
+
export declare interface IGetModelIntersectedOption extends IBaseOptions {
|
|
1145
|
+
/**
|
|
1146
|
+
* 含义为交接面/体进行运算过程中的阈值容差;即两个平行面之间,生成交接信息时,最大距离
|
|
1147
|
+
* 默认值为 0.001m
|
|
1148
|
+
*/
|
|
1149
|
+
tolerance?: number;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1141
1152
|
/**
|
|
1142
1153
|
* 获取模型数据
|
|
1143
1154
|
*/
|
|
@@ -2703,7 +2714,7 @@ export declare class FittingDesignService extends BaseService {
|
|
|
2703
2714
|
*
|
|
2704
2715
|
* @param options
|
|
2705
2716
|
*/
|
|
2706
|
-
getParamIntersected(options?:
|
|
2717
|
+
getParamIntersected(options?: IGetModelIntersectedOption): Promise<IIntersectedResult>;
|
|
2707
2718
|
/**
|
|
2708
2719
|
* 获取方案顶层模型列表
|
|
2709
2720
|
* @param options
|
package/index.js
CHANGED
|
@@ -105,7 +105,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
105
105
|
***************************************************************************** */
|
|
106
106
|
var sc=function(e,t){return(sc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function uc(e,t){function r(){this.constructor=e}sc(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var cc,lc,gc=function(){return(gc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function fc(e,t,r,n){var o,i=arguments.length,A=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":_u(Reflect))&&"function"==typeof Reflect.decorate)A=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(A=(i<3?o(A):i>3?o(t,r,A):o(t,r))||A);return i>3&&A&&Object.defineProperty(t,r,A),A}!function(e){e[e.Local=0]="Local",e[e.OnLine=1]="OnLine"}(cc||(cc={})),function(e){e.TOP_BAR="TOP_BAR",e.SM="SM"}(lc||(lc={}));var pc,hc,dc,Ic;!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getAvailableMiniApp=function(){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"getAvailableMiniApp"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.available.app",version:"1.0.0",ACL:nc.PRIVATE})],t)}(bu.ServService);!function(e){e.sense2d="s2d",e.sense3d="s3d"}(pc||(pc={})),function(e){e[e.innerSpace=0]="innerSpace",e[e.defineSelf=1]="defineSelf",e[e.specialCut=2]="specialCut",e[e.partitionTools=3]="partitionTools"}(hc||(hc={})),function(e){e.RIGHT_FUNCTION_PANEL="RIGHT_FUNCTION_PANEL",e.DIALOG_CENTER="DIALOG_CENTER",e.FULL_SCREEN="FULL_SCREEN",e.DRAGGABLE_PANEL="DRAGGABLE_PANEL"}(dc||(dc={})),function(e){e.LEFT_TOP="LEFT_TOP",e.LEFT_BOTTOM="LEFT_BOTTOM",e.RIGHT_TOP="RIGHT_TOP",e.RIGHT_BOTTOM="RIGHT_BOTTOM",e.DEFINE_SELF="DEFINE_SELF"}(Ic||(Ic={}));var yc;!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.loadMode=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.isOpened=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.close=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.bootstrap=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.bootstrapDev=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"loadMode"),fc([bu.anno.decl.api()],t.prototype,"isOpened"),fc([bu.anno.decl.api()],t.prototype,"close"),fc([bu.anno.decl.event()],t.prototype,"loaded"),fc([bu.anno.decl.api({ACL:nc.PROTECTED})],t.prototype,"bootstrap"),fc([bu.anno.decl.api({ACL:nc.PRIVATE})],t.prototype,"bootstrapDev"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.bootstrap",version:"1.0.0"})],t)}(bu.ServService);!function(e){e.Undo="undo",e.Redo="redo",e.Clear="clear"}(yc||(yc={}));var Cc;(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.handleTopBarIconClick=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"handleTopBarIconClick"),t=fc([bu.anno.decl({id:"com.custom.miniapp.topbar.handle",version:"1.0.0"})],t)})(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getDesignBaseInfo=function(){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api({ACL:nc.PROTECTED})],t.prototype,"getDesignBaseInfo"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.design.base.info",version:"1.0.0",ACL:nc.PROTECTED})],t)}(bu.ServService);!function(e){e[e.none=0]="none",e[e.onlyUndo=1]="onlyUndo",e[e.onlyRedo=2]="onlyRedo",e[e.both=3]="both"}(Cc||(Cc={}));var Ec;(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getDocStackState=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.doUndo=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.doRedo=function(){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.event()],t.prototype,"docStackState"),fc([bu.anno.decl.api()],t.prototype,"getDocStackState"),fc([bu.anno.decl.event()],t.prototype,"undo"),fc([bu.anno.decl.api()],t.prototype,"doUndo"),fc([bu.anno.decl.event()],t.prototype,"redo"),fc([bu.anno.decl.api()],t.prototype,"doRedo"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.action.shortcut",version:"1.0.0"})],t)})(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.confirm=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"confirm"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.dialog",version:"1.0.0"})],t)}(bu.ServService);!function(e){e.ok="ok",e.cancel="cancel",e.close="close"}(Ec||(Ec={}));var Bc;(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.open=function(e,t){return Object(bu.API_UNSUPPORT)()},t.prototype.close=function(){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.event()],t.prototype,"whenSelected"),fc([bu.anno.decl.api()],t.prototype,"open"),fc([bu.anno.decl.api()],t.prototype,"close"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.product.select",version:"1.0.0"})],t)})(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.success=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.error=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.info=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.warn=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.loading=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"success"),fc([bu.anno.decl.api()],t.prototype,"error"),fc([bu.anno.decl.api()],t.prototype,"info"),fc([bu.anno.decl.api()],t.prototype,"warn"),fc([bu.anno.decl.api()],t.prototype,"loading"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.toast",version:"1.0.0"})],t)}(bu.ServService);!function(e){e.LEFT_PANEL="leftPanel",e.BOTTOM_BAR="bottomBar",e.TOP_BAR="topbar",e.RIGHT_SIDE_VIEWER_PANEL="rightSideViewerPanel",e.RIGHT_SIDE_BOTTOM_CONTAINER="rightSideBottomContainer"}(Bc||(Bc={}));var vc;!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.hideAllMenuItems=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.showAllMenuItems=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.hidePanel=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.showPanel=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.notify()],t.prototype,"hideAllMenuItems"),fc([bu.anno.decl.notify()],t.prototype,"showAllMenuItems"),fc([bu.anno.decl.notify()],t.prototype,"hidePanel"),fc([bu.anno.decl.notify()],t.prototype,"showPanel"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.ui",version:"1.0.0"})],t)}(bu.ServService);!function(e){e.SCENE_2D="SCENE_2D",e.SCENE_3D="SCENE_3D"}(vc||(vc={}));var mc,Qc,bc,_c,wc,Sc;(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.currentMainView=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.switchMainViewSceneTo=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.event()],t.prototype,"watchMainViewSense"),fc([bu.anno.decl.api()],t.prototype,"currentMainView"),fc([bu.anno.decl.notify()],t.prototype,"switchMainViewSceneTo"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.scene",version:"1.0.0"})],t)})(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getSelected=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.unSelected=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.select=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.setSelectAbleByCategories=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.setSelectedByCategories=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.event()],t.prototype,"watcher"),fc([bu.anno.decl.api()],t.prototype,"getSelected"),fc([bu.anno.decl.api()],t.prototype,"unSelected"),fc([bu.anno.decl.api()],t.prototype,"select"),fc([bu.anno.decl.api()],t.prototype,"setSelectAbleByCategories"),fc([bu.anno.decl.api()],t.prototype,"setSelectedByCategories"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.selected.model",version:"1.0.0"})],t)}(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getParamModelPhotoById=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"getParamModelPhotoById"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.param.model.data.info.service",version:"1.0.0"})],t)}(bu.ServService);!function(e){e[e.TopToBottom=0]="TopToBottom",e[e.LeftToRight=1]="LeftToRight",e[e.FrontToBack=2]="FrontToBack"}(mc||(mc={})),function(e){e[e.LeftBack=0]="LeftBack",e[e.LeftFront=1]="LeftFront",e[e.RightBack=2]="RightBack",e[e.RightFront=3]="RightFront",e[e.TopSide=4]="TopSide",e[e.BottomSide=5]="BottomSide",e[e.LeftSide=6]="LeftSide",e[e.RightSide=7]="RightSide"}(Qc||(Qc={})),function(e){e[e.BackLeftTop=1]="BackLeftTop",e[e.BackLeftBottom=2]="BackLeftBottom",e[e.FrontLeftTop=3]="FrontLeftTop",e[e.FrontLeftBottom=4]="FrontLeftBottom",e[e.BackRightTop=5]="BackRightTop",e[e.BackRightBottom=6]="BackRightBottom",e[e.FrontRightTop=7]="FrontRightTop",e[e.FrontRightBottom=8]="FrontRightBottom",e[e.FrontTopSide=9]="FrontTopSide",e[e.FrontBottomSide=10]="FrontBottomSide",e[e.FrontLeftSide=11]="FrontLeftSide",e[e.FrontRightSide=12]="FrontRightSide",e[e.BackTopSide=13]="BackTopSide",e[e.BackBottomSide=14]="BackBottomSide",e[e.BackLeftSide=15]="BackLeftSide",e[e.BackRightSide=16]="BackRightSide",e[e.BackAll=17]="BackAll",e[e.FrontAll=18]="FrontAll",e[e.Inside=19]="Inside",e[e.OutSide=20]="OutSide",e[e.All=21]="All"}(bc||(bc={})),function(e){e[e.drawer=1]="drawer",e[e.pole=2]="pole"}(_c||(_c={})),function(e){e[e.INSIDE=0]="INSIDE",e[e.FULL_COVER=1]="FULL_COVER"}(wc||(wc={})),function(e){e[e.no=0]="no",e[e.yes=1]="yes"}(Sc||(Sc={}));var Dc,Rc,Mc,xc;(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.highlightCornerCut=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.getStructures=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.activeWardrobeMsg=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.updateStructuresMsg=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.cutWardrobeMsg=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.delOneStructureMsg=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.onMiniAppOpen=function(){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.event()],t.prototype,"watcher"),fc([bu.anno.decl.api()],t.prototype,"highlightCornerCut"),fc([bu.anno.decl.api()],t.prototype,"getStructures"),fc([bu.anno.decl.api()],t.prototype,"activeWardrobeMsg"),fc([bu.anno.decl.api()],t.prototype,"updateStructuresMsg"),fc([bu.anno.decl.api()],t.prototype,"cutWardrobeMsg"),fc([bu.anno.decl.api()],t.prototype,"delOneStructureMsg"),fc([bu.anno.decl.api()],t.prototype,"onMiniAppOpen"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.special.cutting.crud",version:"1.0.0",ACL:nc.PRIVATE})],t)})(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),fc([bu.anno.decl.event()],t.prototype,"onRequestReceived"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.debug",version:"1.0.0",ACL:nc.PRIVATE})],t)}(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getSelectedWalls=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.unSelected=function(){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.event()],t.prototype,"watcher"),fc([bu.anno.decl.api()],t.prototype,"getSelectedWalls"),fc([bu.anno.decl.api()],t.prototype,"unSelected"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.select.wall",version:"1.0.0"})],t)}(bu.ServService);!function(e){e[e.LEFT_TO_RIGHT=1]="LEFT_TO_RIGHT",e[e.RIGHT_TO_LEFT=2]="RIGHT_TO_LEFT"}(Dc||(Dc={})),function(e){e[e.front=1]="front",e[e.back=2]="back"}(Rc||(Rc={})),function(e){e.FRONT_LEFT="1",e.FRONT_TOP="2",e.FRONT_RIGHT="3",e.FRONT_BOTTOM="4",e.BACK_LEFT="5",e.BACK_TOP="6",e.BACK_RIGHT="7",e.BACK_BOTTOM="8"}(Mc||(Mc={})),function(e){e[e.PARTITION_STYLE=1]="PARTITION_STYLE",e[e.COLOR_PLATE_STYLE=2]="COLOR_PLATE_STYLE",e[e.COLOR_PLATE_MATERIAL=3]="COLOR_PLATE_MATERIAL",e[e.COLOR_PLATE_THICKNESS=4]="COLOR_PLATE_THICKNESS",e[e.COLOR_PLATE_WIDTH=5]="COLOR_PLATE_WIDTH",e[e.LINE_STYLE=6]="LINE_STYLE",e[e.LINE_MATERIAL=7]="LINE_MATERIAL",e[e.WALL_DIRECTION=8]="WALL_DIRECTION",e[e.LINE_POSITION=9]="LINE_POSITION"}(xc||(xc={}));var Pc;(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getSelectedPartitionWalls=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.generatePartitionWalls=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.editPartitionWalls=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.setIWallPavingDirection=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.setILineSimplePosition=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.event()],t.prototype,"watcher"),fc([bu.anno.decl.api()],t.prototype,"getSelectedPartitionWalls"),fc([bu.anno.decl.api()],t.prototype,"generatePartitionWalls"),fc([bu.anno.decl.api()],t.prototype,"editPartitionWalls"),fc([bu.anno.decl.api()],t.prototype,"setIWallPavingDirection"),fc([bu.anno.decl.api()],t.prototype,"setILineSimplePosition"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.partition.model",version:"1.0.0"})],t)})(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getSelectedPartitionProduct=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.getSelectedLConnectorProduct=function(){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"getSelectedPartitionProduct"),fc([bu.anno.decl.api()],t.prototype,"getSelectedLConnectorProduct"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.partition.product",version:"1.0.0"})],t)}(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.undo=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.redo=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.clear=function(){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"undo"),fc([bu.anno.decl.api()],t.prototype,"redo"),fc([bu.anno.decl.api()],t.prototype,"clear"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.partition.document",version:"1.0.0"})],t)}(bu.ServService);!function(e){e.style="style",e.material="material"}(Pc||(Pc={}));var Fc;(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getSelectedLConnectors=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.editSelectedLConnectors=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.unSelected=function(){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.event()],t.prototype,"watcher"),fc([bu.anno.decl.api()],t.prototype,"getSelectedLConnectors"),fc([bu.anno.decl.api()],t.prototype,"editSelectedLConnectors"),fc([bu.anno.decl.api()],t.prototype,"unSelected"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.select.lconnector",version:"1.0.0"})],t)})(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getSelectedColumns=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.unSelected=function(){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.event()],t.prototype,"watcher"),fc([bu.anno.decl.api()],t.prototype,"getSelectedColumns"),fc([bu.anno.decl.api()],t.prototype,"unSelected"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.select.column",version:"1.0.0",ACL:nc.PRIVATE})],t)}(bu.ServService);!function(e){e[e.right=0]="right",e[e.left=1]="left"}(Fc||(Fc={}));var Oc;!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.generateColumnsParamsChanged=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.generateColumns=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"generateColumnsParamsChanged"),fc([bu.anno.decl.api()],t.prototype,"generateColumns"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.column.generate",version:"1.0.0",ACL:nc.PRIVATE})],t)}(bu.ServService);!function(e){e[e.ALL=0]="ALL",e[e.WALL=1]="WALL",e[e.CELING=2]="CELING",e[e.GROUND=3]="GROUND"}(Oc||(Oc={}));var Tc,Lc,kc;(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getSelectedRooms=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.clearSelectedRooms=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.openSelectRoom=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.setOpenLinePanel=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.generateLineFormData=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.event()],t.prototype,"watcher"),fc([bu.anno.decl.event()],t.prototype,"watcherOpen"),fc([bu.anno.decl.api()],t.prototype,"getSelectedRooms"),fc([bu.anno.decl.api()],t.prototype,"clearSelectedRooms"),fc([bu.anno.decl.api()],t.prototype,"openSelectRoom"),fc([bu.anno.decl.api()],t.prototype,"setOpenLinePanel"),fc([bu.anno.decl.api()],t.prototype,"generateLineFormData"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.angular.line",version:"1.0.0",ACL:nc.PRIVATE})],t)})(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getDefaultParam=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.getPartitionVersion=function(){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"getDefaultParam"),fc([bu.anno.decl.api()],t.prototype,"getPartitionVersion"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.default.params",version:"1.0.0",ACL:nc.PRIVATE})],t)}(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.design.storage.service",version:"1.0.0"})],t)}(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return uc(t,e),t.prototype.getKeys=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.getItem=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.getItems=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.setItem=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.removeItem=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.removeItems=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"getKeys"),fc([bu.anno.decl.api()],t.prototype,"getItem"),fc([bu.anno.decl.api()],t.prototype,"getItems"),fc([bu.anno.decl.api()],t.prototype,"setItem"),fc([bu.anno.decl.api()],t.prototype,"removeItem"),fc([bu.anno.decl.api()],t.prototype,"removeItems"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.storage.service",version:"1.0.0"})],t)}(bu.ServService)),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getCachedModelJsonDataByModelId=function(e,t){return Object(bu.API_UNSUPPORT)()},t.prototype.getModelJsonDataByModelId=function(e,t){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"getCachedModelJsonDataByModelId"),fc([bu.anno.decl.api()],t.prototype,"getModelJsonDataByModelId"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.model.output",version:"1.0.0",ACL:nc.PRIVATE})],t)}(bu.ServService);!function(e){e[e.NONE=0]="NONE",e[e.CIRCLE=1]="CIRCLE",e[e.LINE=2]="LINE",e[e.CUT_CIRCLE=3]="CUT_CIRCLE"}(Tc||(Tc={})),function(e){e.TRUE="true",e.FALSE="false"}(Lc||(Lc={})),function(e){e[e.SEGMENT=0]="SEGMENT",e[e.CIRCLE_ARC=1]="CIRCLE_ARC",e[e.ELLIPSE_ARC=3]="ELLIPSE_ARC"}(kc||(kc={}));!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getDesignRoomList=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.getDesignSelectedRoom=function(){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"getDesignRoomList"),fc([bu.anno.decl.api()],t.prototype,"getDesignSelectedRoom"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.design.floor.room",version:"1.0.0"})],t)}(bu.ServService);var Nc,Gc,Uc=function(e){return e&&"object"===_u(e)?e.toJSON():e},jc=function(e){return e&&"object"===_u(e)?Ac.deserialize(JSON.stringify(e)):e},Yc={onRetnTransform:{recv:jc,send:Uc}},Vc={onCallTransform:{recv:function(e){return gc(gc({},e),{models:e.models.map(jc)})},send:function(e){return gc(gc({},e),{models:e.models.map(Uc)})}}},Hc=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.newParamModelByCategory=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.newParamModelByBrandGoodId=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.getParamModelByModelId=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.listTopModels=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.save=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.remove=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api(Yc)],t.prototype,"newParamModelByCategory"),fc([bu.anno.decl.api(Yc)],t.prototype,"newParamModelByBrandGoodId"),fc([bu.anno.decl.api(Yc)],t.prototype,"getParamModelByModelId"),fc([bu.anno.decl.api({onRetnTransform:{recv:function(e){return Array.isArray(e)?{data:e.map(jc)}:gc(gc({},e),{data:e.data.map(jc)})},send:function(e){return Array.isArray(e)?e.map(jc):gc(gc({},e),{data:e.data.map(jc)})}}})],t.prototype,"listTopModels"),fc([bu.anno.decl.api(Vc)],t.prototype,"save"),fc([bu.anno.decl.api(Vc)],t.prototype,"remove"),t=fc([bu.anno.decl({id:"com.custom.design.param-model.service",version:"1.0.0"})],t)}(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getDesignJson=function(e){throw Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"getDesignJson"),t=fc([bu.anno.decl({id:"com.custom.design.export.service",version:"1.0.0"})],t)}(bu.ServService),function(e){return e&&"object"===_u(e)?gc(gc({},e),{parent:e.parent.toJSON()}):e}),Kc=function(e){return e&&"object"===_u(e)?gc(gc({},e),{parent:Ac.deserialize(JSON.stringify(e.parent))}):e};(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getSelected=function(){throw Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.event({transform:{recv:Kc,send:Hc}})],t.prototype,"selection"),fc([bu.anno.decl.api({onRetnTransform:{send:Hc,recv:Kc}})],t.prototype,"getSelected"),t=fc([bu.anno.decl({id:"com.custom.inner-space.service",version:"1.0.0"})],t)})(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.current=function(){throw Object(bu.API_UNSUPPORT)()},t.prototype.enter=function(e){throw Object(bu.API_UNSUPPORT)()},t.prototype.exit=function(){throw Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"current"),fc([bu.anno.decl.api()],t.prototype,"enter"),fc([bu.anno.decl.api()],t.prototype,"exit"),t=fc([bu.anno.decl({id:"com.custom.mode.service",version:"1.0.0"})],t)}(bu.ServService);!function(e){e.FLOAT="float",e.FLOAT2="float2",e.FLOAT3="float3",e.FLOAT_BUFFER="floatbuf",e.FLOAT2_BUFFER="float2buf",e.FLOAT3_BUFFER="float3buf",e.REFERENCE="reference",e.INT="int",e.INT_BUFFER="intbuf",e.STRING="string",e.SHAPE="shape",e.MATERIAL="material",e.BOOLEAN="boolean",e.BOOLEAN_BUFFER="booleanbuf",e.FIT="fit",e.PATH="paramcornerpath",e.STYLE="style",e.FORMULA_STRING="formulaString",e.BOOLEAN_LIST="booleanlist"}(Nc||(Nc={})),function(e){e[e.ORIGIN=0]="ORIGIN",e[e.CENTER=1]="CENTER",e[e.LEFT_BACK_BOTTOM=2]="LEFT_BACK_BOTTOM",e[e.LEFT_BACK_TOP=3]="LEFT_BACK_TOP",e[e.LEFT_FRONT_BOTTOM=4]="LEFT_FRONT_BOTTOM",e[e.LEFT_FRONT_TOP=5]="LEFT_FRONT_TOP",e[e.RIGHT_BACK_BOTTOM=6]="RIGHT_BACK_BOTTOM",e[e.RIGHT_BACK_TOP=7]="RIGHT_BACK_TOP",e[e.RIGHT_FRONT_BOTTOM=8]="RIGHT_FRONT_BOTTOM",e[e.RIGHT_FRONT_TOP=9]="RIGHT_FRONT_TOP",e[e.BACK_CENTER=10]="BACK_CENTER",e[e.FRONT_CENTER=11]="FRONT_CENTER"}(Gc||(Gc={}));String.fromCharCode(1),/Mac|iPod|iPhone|iPad/.test(navigator.platform),new Map;var Jc;!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.createHandsFree=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"createHandsFree"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.hands.free.create",version:"1.0.0",ACL:nc.PRIVATE})],t)}(bu.ServService);!function(e){e.top="top",e.left="left",e.right="right",e.bottom="bottom",e.leftTop="leftTop",e.leftBottom="leftBottom",e.rightTop="rightTop",e.rightBottom="rightBottom"}(Jc||(Jc={}));var qc;!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.createWineCell=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"createWineCell"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.inner.space.crud",version:"1.0.0",ACL:nc.PRIVATE})],t)}(bu.ServService);!function(e){e[e.include=0]="include",e[e.exclude=1]="exclude"}(qc||(qc={}));(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.showModelByCateId=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"showModelByCateId"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.model.toggle.visible",version:"1.0.0"})],t)})(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.remove=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.getParamModelCountByCategory=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.updateAttacheds=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.updateAttachedsNew=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.addAccessoryByBrandGoodId=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.getParamModelRootList=function(e){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.api()],t.prototype,"remove"),fc([bu.anno.decl.api()],t.prototype,"getParamModelCountByCategory"),fc([bu.anno.decl.api()],t.prototype,"updateAttacheds"),fc([bu.anno.decl.api()],t.prototype,"updateAttachedsNew"),fc([bu.anno.decl.api()],t.prototype,"addAccessoryByBrandGoodId"),fc([bu.anno.decl.api()],t.prototype,"getParamModelRootList"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.model.crud.service",version:"1.0.0"})],t)}(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}uc(t,e),t.prototype.getSelectedInnerSpace=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.unSelected=function(){return Object(bu.API_UNSUPPORT)()},fc([bu.anno.decl.event()],t.prototype,"watcher"),fc([bu.anno.decl.api()],t.prototype,"getSelectedInnerSpace"),fc([bu.anno.decl.api()],t.prototype,"unSelected"),t=fc([bu.anno.decl({id:"com.custom.miniapp.service.inner.space",version:"1.0.0"})],t)}(bu.ServService);var Wc=r(206),zc=r.n(Wc),Xc=r(423),Zc=r.n(Xc),$c=r(515),el=r(421),tl=r(422),rl=r.n(tl);function nl(e){return(nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
107
107
|
/*!
|
|
108
|
-
* @qunhe/custom-miniapp-sdk v0.
|
|
108
|
+
* @qunhe/custom-miniapp-sdk v0.16.0
|
|
109
109
|
* (c) 2022
|
|
110
110
|
* @license MIT
|
|
111
111
|
*/
|
|
@@ -122,7 +122,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
122
122
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
123
123
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
124
124
|
PERFORMANCE OF THIS SOFTWARE.
|
|
125
|
-
***************************************************************************** */var ol=function(e,t){return(ol=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function il(e,t){function r(){this.constructor=e}ol(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Al(e,t,r,n){var o,i=arguments.length,A=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":nl(Reflect))&&"function"==typeof Reflect.decorate)A=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(A=(i<3?o(A):i>3?o(t,r,A):o(t,r))||A);return i>3&&A&&Object.defineProperty(t,r,A),A}function al(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),A=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)A.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return A}function sl(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(al(arguments[t]));return e}var ul,cl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return il(t,e),t.prototype.request=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.get=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.delete=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.post=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.put=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.encryptedRequest=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.encryptedGet=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.encryptedDelete=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.encryptedPost=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.encryptedPut=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.gzipRequest=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.gzipGet=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.gzipPost=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.gzipPut=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.pbGzipGet=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.pbGzipPost=function(e){return Object(bu.API_UNSUPPORT)()},Al([bu.anno.decl.api()],t.prototype,"request",null),Al([bu.anno.decl.api()],t.prototype,"get",null),Al([bu.anno.decl.api()],t.prototype,"delete",null),Al([bu.anno.decl.api()],t.prototype,"post",null),Al([bu.anno.decl.api()],t.prototype,"put",null),Al([bu.anno.decl.api()],t.prototype,"encryptedRequest",null),Al([bu.anno.decl.api()],t.prototype,"encryptedGet",null),Al([bu.anno.decl.api()],t.prototype,"encryptedDelete",null),Al([bu.anno.decl.api()],t.prototype,"encryptedPost",null),Al([bu.anno.decl.api()],t.prototype,"encryptedPut",null),Al([bu.anno.decl.api()],t.prototype,"gzipRequest",null),Al([bu.anno.decl.api()],t.prototype,"gzipGet",null),Al([bu.anno.decl.api()],t.prototype,"gzipPost",null),Al([bu.anno.decl.api()],t.prototype,"gzipPut",null),Al([bu.anno.decl.api()],t.prototype,"pbGzipGet",null),Al([bu.anno.decl.api()],t.prototype,"pbGzipPost",null),t=Al([bu.anno.decl({id:"com.custom.miniapp.inner.service.http.proxy.client",version:"1.0.0",ACL:nc.INNER})],t)}(bu.ServService);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}il(t,e),t.prototype.getAllAvailableService=function(){return Object(bu.API_UNSUPPORT)()},Al([bu.anno.decl.api()],t.prototype,"getAllAvailableService",null),t=Al([bu.anno.decl({id:"com.custom.miniapp.inner.service.app.available.service",version:"1.0.0",ACL:nc.INNER})],t)}(bu.ServService);!function(e){e.CABINET="CABINET",e.WARDROBE="WARDROBE",e.DOOR_WINDOW="DW",e.CABINET_COPY="CABINET_COPY",e.WARDROBE_COPY="WARDROBE_COPY",e.DOOR_WINDOW_COPY="DW_COPY"}(ul||(ul={}));var ll,gl,fl,pl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return il(t,e),t.prototype.getParamModelDataByIds=function(e,t){return Object(bu.API_UNSUPPORT)()},t.prototype.getTopParamModels=function(e){return Object(bu.API_UNSUPPORT)()},Al([bu.anno.decl.api()],t.prototype,"getParamModelDataByIds",null),Al([bu.anno.decl.api()],t.prototype,"getTopParamModels",null),t=Al([bu.anno.decl({id:"com.custom.miniapp.inner.service.model.param.data",version:"1.0.0",ACL:nc.INNER})],t)}(bu.ServService),hl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return il(t,e),t.prototype.lockModelBySplit=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.fittingDesignHasChanged=function(){return Object(bu.API_UNSUPPORT)()},Al([bu.anno.decl.api()],t.prototype,"lockModelBySplit",null),Al([bu.anno.decl.notify()],t.prototype,"fittingDesignHasChanged",null),t=Al([bu.anno.decl({id:"com.custom.miniapp.inner.service.lock.model",version:"1.0.0",ACL:nc.INNER})],t)}(bu.ServService),dl=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}il(t,e),t.prototype.getPackageInfo=function(){return Object(bu.API_UNSUPPORT)()},Al([bu.anno.decl.event()],t.prototype,"onRequestReceived",void 0),Al([bu.anno.decl.api()],t.prototype,"getPackageInfo",null),t=Al([bu.anno.decl({id:"com.custom.miniapp.service.packageInfo",version:"1.0.0",ACL:nc.PRIVATE})],t)}(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}il(t,e),Al([bu.anno.decl.event()],t.prototype,"onBorderResultReceived",void 0),t=Al([bu.anno.decl({id:"com.custom.miniapp.service.borderResult",version:"1.0.0",ACL:nc.PRIVATE})],t)}(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return il(t,e),t.prototype.toJSON=function(){return{paramPackages:sl(this.paramPackages.values()),hardwares:sl(this.products.values()),paramModelAttacheds:Array.from(this.paramModelAttacheds).map((function(e){var t=al(e,2);t[0];var r=t[1],n=new Zc.a;return Object(_e.extend)(n,r),n.parsedHoles=[],n.parsedInnerFrames=[],n})),displayInfoMap:sl(this.displayInfos.values()),wireFrames:Object(_e.fromPairs)(sl(this.wireGeometrysMap.entries()).map((function(e){return[e[0],e[1].vertices]})))}},t.prototype.serialize=function(){return JSON.stringify(this.toJSON())},t.prototype.unSerialize=function(e){var t=this,r="string"==typeof e?JSON.parse(e):e,n=Object(_e.omit)(r,["wireFrames","paramModelAttacheds"]);r.paramModelAttacheds&&(n.paramModelAttacheds=r.paramModelAttacheds.map((function(e){var t=new Zc.a;if(Object(_e.extend)(t,e),t.meshModels=t.meshModels.map((function(e){var t=new rl.a,r=new Kt.a;return Object(_e.extend)(r,e.geometry),t.texture=e.texture,t.displayMaterial=Object($c.toPopBufferMtl)(e.displayMaterial),t.geometry=r,t})),t.furnitureModel){var r=new el.FurnitureModel;Object(_e.extend)(r,t.furnitureModel),r.size=new M.a(r.size),r.position=new M.a(r.position),r.rotate=new M.a(r.rotate),r.scale=new M.a(r.scale),t.furnitureModel=r}return t}))),r.wireFrames&&Object(_e.each)(r.wireFrames,(function(e,r){t.addWireGeometrysMap(r,e)})),this.addCustomResources(n)},t}(zc.a));!function(e){e[e.willExit=0]="willExit"}(ll||(ll={})),function(e){e[e.exit=0]="exit"}(gl||(gl={})),function(e){e[e.personalLibrary=1]="personalLibrary",e[e.enterpriseLibrary=2]="enterpriseLibrary"}(fl||(fl={}));var Il=r(237),yl=r.n(Il),Cl=r(279),El=r.n(Cl),Bl=r(1102),vl=r.n(Bl),ml=r(351),Ql=r.n(ml),bl=r(703),_l=r.n(bl),wl=r(1103),Sl=r.n(wl),Dl=r(709),Rl=r.n(Dl),Ml=r(710),xl=r.n(Ml),Pl=r(205),Fl=r.n(Pl),Ol=r(115),Tl=r.n(Ol),Ll=r(182),kl=r.n(Ll),Nl=r(514),Gl=r.n(Nl),Ul=r(1104),jl=r.n(Ul),Yl=r(708),Vl=r.n(Yl),Hl=r(707),Kl=r.n(Hl),Jl=r(352),ql=r.n(Jl),Wl=r(236),zl=r.n(Wl),Xl=r(714),Zl=r.n(Xl),$l=r(702),eg=r.n($l),tg=r(1105),rg=r.n(tg),ng=Object({DEPLOY_VERSION:1,APP_VERSION:1}).ENABLE_DEV_CHECK?[Zr.a,Gr.a,Ql.a,m.a,_l.a,b.a,Sl.a,Fl.a,Tl.a,kl.a,Gl.a,w.a,jr.a,Vr.a,Kr.a,jl.a,Vl.a,Kl.a,D.a,ql.a,zl.a,Zl.a,Xl.LineIndex,qr.a,eg.a,rg.a,dt.a,M.a,ArrayBuffer,xi.Vector3,El.a,vl.a,va.ParamStore,Rl.a,xl.a,rl.a,Kt.a,el.FurnitureModel,Map,xi.SkyBackground]:[];Object(Il.inject)({isKnownImmutableInstance:function(e){return ng.some((function(t){return e instanceof t}))}});yl.a;var og=r(209);function ig(e){return(ig="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ag(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ag(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function sg(e,t){return(sg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ug(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=lg(e);if(t){var o=lg(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return cg(this,r)}}function cg(e,t){return!t||"object"!==ig(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function lg(e){return(lg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gg,fg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sg(e,t)}(i,e);var t,r,n,o=ug(i);function i(){var e;return Ag(this,i),(e=o.apply(this,arguments)).rootState=new ms,e}return t=i,(r=[{key:"stateManager",get:function(){return this.rootState}},{key:"onInitialize",value:function(){var e=new du(this,this.rootState);e.init(),e.run()}}])&&ag(t.prototype,r),n&&ag(t,n),i}(og.BasePlugin);fg.dependencies=[vn.AppServicePlugin];var pg,hg,dg,Ig=function(e){if(!gg)throw new Error("please new Application before call method");return gg.getCustomMiniAppService(e)},yg=r(241),Cg=r(90),Eg=r(426);function Bg(e){dg=e}function vg(e){return(vg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mg(e){return function(e){if(Array.isArray(e))return Qg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qg(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bg(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _g(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function wg(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){_g(i,n,o,A,a,"next",e)}function a(e){_g(i,n,o,A,a,"throw",e)}A(void 0)}))}}function Sg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Rg(e,t){return(Rg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Pg(e);if(t){var o=Pg(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return xg(this,r)}}function xg(e,t){return!t||"object"!==vg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Pg(e){return(Pg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rg(e,t)}(i,e);var t,r,n,o=Mg(i);function i(){var e;return Sg(this,i),(e=o.apply(this,arguments)).state={currentCustomData:void 0,designInfo:void 0,hardwarelist:[],casbinModelIdMap:{}},e.lastCurrentCustomDataArgs=[],e.getCurrentBaseDesignInfo=wg(s.a.mark((function t(){var r,n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.state.designInfo)){t.next=3;break}return t.abrupt("return",r);case 3:return n=Ig(yg.MiniAppDesignBaseInfoService),t.next=6,n.getDesignBaseInfo();case 6:return r=t.sent,e.state.designInfo=r,t.abrupt("return",r);case 9:case"end":return t.stop()}}),t)}))),e.getCurrentCustomData=function(){var t=wg(s.a.mark((function t(r){var n,o,i;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.state.currentCustomData,r){t.next=3;break}return t.abrupt("return",n);case 3:if(o=Object(_e.castArray)(r),i=Object(_e.difference)(o,e.lastCurrentCustomDataArgs),e.lastCurrentCustomDataArgs=o,!i.length&&n){t.next=12;break}return t.next=9,vB(r);case 9:n=t.sent,t.next=13;break;case 12:return t.abrupt("return",n);case 13:return e.state.currentCustomData=n,t.abrupt("return",n);case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.loadFittingHardwareToSense=function(){var t=wg(s.a.mark((function t(r){var n,o,i,A,a,u,c,l,g,f,p;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=Object(_e.uniq)(Object(_e.flatten)(Object(_e.map)(r.hardware,(function(e){return e.map((function(e){return e.brandGoodId}))})))),e.state.casbinModelIdMap={},n.length){t.next=4;break}return t.abrupt("return");case 4:return o=e.getStateManager(),t.next=7,Promise.allSettled(Object(_e.map)(n,function(){var e=wg(s.a.mark((function e(t){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,DB(t);case 2:return r=e.sent,e.abrupt("return",[t,r]);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 7:return i=t.sent,t.next=10,RB(n);case 10:for(p in A=t.sent,a=Object(_e.mapValues)(Object(_e.keyBy)(Object(_e.filter)(i,(function(e){return"fulfilled"===e.status})).map((function(e){return e.value})),(function(e){return e[0]})),(function(e){return e[1]})),u=o.core.design.getCustom(),c=u.getParamModels(),l=[],g={},f=function(e){var t=r.hardware[e],n=Pr(c,e);if(n){var o=n.getConcatenatedMatrix(),i=n.getSize(),s=(new w.a).makeTranslation(new M.a(-i.x/2,i.y/2,-i.z/2)),u=o.clone().multiply(s),f=Object(_e.map)(t,(function(e){var t=a[e.brandGoodId],r=A[e.brandGoodId]||{x:0,y:0,z:0};if(t){var o=t.paramModelData,i=bg(t,["paramModelData"]),s=e.rotate,c=(new fe).parse(o);Object(Cg.attach)(c,Object(Cg.toAttachedMap)(i)),c.setIsAppendHardware(!0),c.setLinkedIds(e.linkedIds),c.setHardwareData(e),c.linkParamModelId=n.id;var l=u.clone().multiply((new w.a).compose(new M.a(e.position),new b.a(s.x,s.y,s.z),new M.a(e.scale)).multiply((new w.a).setPosition(new M.a(r)))),f=kr.a.decompose(l),p=f.rotation,h=f.position,d=f.scale,I=new M.a(h);return c.setPosition({x:I.x,y:I.y,z:I.z}),c.setRotation({x:p.x,y:p.y,z:p.z}),c.setScale(d),c.assignUniqueId(),g[e.id]=c.id,c}})).filter((function(e){return!!e}));l.push.apply(l,mg(f))}else Object({DEPLOY_VERSION:1,APP_VERSION:1}).IS_DEV_OR_TESTING&&console.warn("当前五金信息找不到对应模型!")},r.hardware)f(p);if(!l.length){t.next=23;break}return t.next=21,pg.updateAttacheds(l);case 21:u.addParamModels.apply(u,l),e.state.casbinModelIdMap=g;case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e}return t=i,(r=[{key:"module",value:function(){return"baseDesignInfo"}}])&&Dg(t.prototype,r),n&&Dg(t,n),i}(Bn.AXR);function Og(e){return(Og="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function kg(e,t){return(kg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ng(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ug(e);if(t){var o=Ug(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Gg(this,r)}}function Gg(e,t){return!t||"object"!==Og(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ug(e){return(Ug=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var jg,Yg,Vg,Hg,Kg,Jg,qg,Wg,zg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kg(e,t)}(i,e);var t,r,n,o=Ng(i);function i(){var e;return Tg(this,i),(e=o.apply(this,arguments)).paramModelConstructor=fe,e}return t=i,(r=[{key:"parseParamModelAssemblies",value:function(e){var t=this;return e.forEach((function(e){var r=(new ve).parse(e,t,{isRootWorldMatrix:!0});t.addParamModelAssembly(r)})),this}}])&&Lg(t.prototype,r),n&&Lg(t,n),i}(dl),Xg=r(76),Zg=Symbol("fitting-data"),$g=Symbol("groove-fitting-entity"),ef=Symbol("intersect-data"),tf=Symbol("param-model-hint-entity"),rf=Symbol("fitting-hint-entity"),nf=Symbol("plank-outline-hint-entity");!function(e){e.FAIL="fail",e.SUCCESS="success",e.LOADING="loading"}(jg||(jg={})),function(e){e[e.READY=0]="READY",e[e.LOADING=1]="LOADING",e[e.FAILED=2]="FAILED",e[e.INVALID=3]="INVALID",e[e.SUCCESS=4]="SUCCESS"}(Yg||(Yg={})),function(e){e[e.READY=0]="READY",e[e.RUNNING=1]="RUNNING",e[e.FAILED=2]="FAILED",e[e.SUCCESS=3]="SUCCESS"}(Vg||(Vg={})),function(e){e.SCENE_ID="cp"}(Hg||(Hg={})),function(e){e[e.theme=1735419]="theme",e[e.sceneBG=15461612]="sceneBG",e[e.outline=0]="outline"}(Kg||(Kg={})),function(e){e.selectBlank="sb",e.renderModeChange="r",e.doorVisibilityChange="d"}(Jg||(Jg={})),function(e){e[e.opaqueModel=1]="opaqueModel",e[e.translucentModel=.4]="translucentModel",e[e.transparentModel=0]="transparentModel"}(qg||(qg={})),function(e){e.SHADING="0",e.OUTLINE_WITH_SHADING="1",e.TRANSLUCENT="2",e.OUTLINE_AND_TRANSLUCENT="3"}(Wg||(Wg={}));var of,Af=[];function af(e){return(af="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sf(e){return function(e){if(Array.isArray(e))return uf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return uf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uf(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cf(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function lf(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){cf(i,n,o,A,a,"next",e)}function a(e){cf(i,n,o,A,a,"throw",e)}A(void 0)}))}}function gf(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ff(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function hf(e,t){return(hf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function df(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=yf(e);if(t){var o=yf(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return If(this,r)}}function If(e,t){return!t||"object"!==af(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yf(e){return(yf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.design="design",e.series="series"}(of||(of={}));var Cf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hf(e,t)}(i,e);var t,r,n,o=df(i);function i(){var e;return ff(this,i),(e=o.apply(this,arguments)).state=e.stateCreator.create({main:Yg.READY,design:Yg.READY,series:Yg.READY}),e.$reducerState=e.reducerCreator.create(e.state),e.$actionLoad=e.unitCreator.async((function(t){t.started.latest(s.a.mark((function e(t,r){var n,o,i,A;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hg.getParamModelDataByBrandGoodId(t);case 2:return n=e.sent,o=n.paramModelData,i=gf(n,["paramModelData"]),A=(new fe).parse(o),Object(Cg.attach)(A,Object(Cg.toAttachedMap)(i)),e.next=9,pg.updateAttacheds([A]);case 9:return r.core.design.getCustom().addParamModels(A),r.core.fittingDesign.setFittings(Af),e.next=13,Object(Xg.put)(this.$actionLoad.done.message({params:t,result:Yg.SUCCESS}));case 13:case"end":return e.stop()}}),e,this)}))),t.done.produce(e.$reducerState,(function(e,t){e.main=t.result}))})),e.$actionAddModelToSense=e.unitCreator.async((function(t){t.started.latest(s.a.mark((function e(t,r){var n,o,i,A,a,u;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.custom,o=t.needAttach,i=n.getParamModels(),A=n.getParamModelAssemblies(),!o){e.next=6;break}return e.next=6,Promise.all(i.map(function(){var e=lf(s.a.mark((function e(t){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hg.getParamModelDataByBrandGoodId(t.getBrandGoodId());case 2:r=e.sent,Object(Cg.attach)(t,Object(Cg.toAttachedMap)(r));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 6:if(r.core.design.setCustom(n),a=i.filter((function(e){return!e.getAssembly()})),!o){e.next=12;break}return u=[].concat(sf(a),sf(A)),e.next=12,pg.updateAttacheds(u);case 12:return e.next=14,Object(Xg.put)(this.$actionAddModelToSense.done.message({params:{custom:n,needAttach:o},result:Yg.SUCCESS}));case 14:case"end":return e.stop()}}),e,this)}))),t.done.produce(e.$reducerState,(function(e,t){e.main=t.result}))})),e.$actionAddParamModelToSense=e.unitCreator.async((function(t){t.started.latest(s.a.mark((function e(t,r){var n,o;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.map((function(e){var t=e.paramModelData,r=gf(e,["paramModelData"]),n=(new fe).parse(t,new zg);return Object(Cg.attach)(n,Object(Cg.toAttachedMap)(r)),n})),e.next=3,pg.updateAttacheds(o);case 3:return(n=r.core.design.getCustom()).addParamModels.apply(n,sf(o)),e.next=6,Object(Xg.put)(this.$actionAddParamModelToSense.done.message({params:t,result:Yg.SUCCESS}));case 6:case"end":return e.stop()}}),e,this)}))),t.done.produce(e.$reducerState,(function(e,t){e.main=t.result}))})),e.$actionAddParamModelAssemblyToSense=e.unitCreator.async((function(t){t.started.latest(s.a.mark((function e(t,r){var n,o,i,A;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.core.design.getCustom(),o=new zg,i=t.map((function(e){return(new ve).parse(e,o)})),A=o.getParamModels(),e.next=6,Promise.all(A.map(function(){var e=lf(s.a.mark((function e(t){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hg.getParamModelDataByBrandGoodId(t.getBrandGoodId());case 2:r=e.sent,Object(Cg.attach)(t,Object(Cg.toAttachedMap)(r));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 6:return e.next=8,pg.updateAttacheds(sf(i));case 8:return n.addParamModelAssemblies.apply(n,sf(i)),n.addParamModels.apply(n,sf(A)),e.next=12,Object(Xg.put)(this.$actionAddParamModelAssemblyToSense.done.message({params:t,result:Yg.SUCCESS}));case 12:case"end":return e.stop()}}),e,this)}))),t.done.produce(e.$reducerState,(function(e,t){e.main=t.result}))})),e}return t=i,(r=[{key:"module",value:function(){return"entry"}}])&&pf(t.prototype,r),n&&pf(t,n),i}(Bn.AXR);function Ef(e){return(Ef="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vf(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mf(e,t)}function mf(e,t){return(mf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_f(e);if(t){var o=_f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return bf(this,r)}}function bf(e,t){return!t||"object"!==Ef(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _f(e){return(_f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Bn.AXR;var wf=function(e){vf(r,e);var t=Qf(r);function r(){return Bf(this,r),t.apply(this,arguments)}return r}(Bn.AXRPartial),Sf=(Bn.AXRManager,Math.sqrt(2)),Df=Math.PI/6,Rf=Math.PI/3+Math.PI;function Mf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rf,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Df,n=e.getPosition(),o=e.getSize(),i=n.clone(),A=o.length()*Sf,a=new M.a(Math.cos(r)*Math.cos(t),Math.cos(r)*Math.sin(t),Math.sin(r)).mul(A).applyMatrix4(e.getMatrix());return{lookAt:i,position:a}}var xf=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5e3,t=arguments.length>1?arguments[1]:void 0;return new Promise((function(r){setTimeout(r,e,t)}))};function Pf(e){var t,r,n,o=function(e){return function(){void 0!==n&&(clearTimeout(n),n=void 0);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];e.call.apply(e,[this].concat(r))}};return{promise:new Promise((function(i,A){t=o(i),r=o(A),"number"==typeof e&&(n=setTimeout((function(){n=void 0,r(new Error("defer waiting timeout, ".concat(e,"ms")))}),e))})),resolve:t,reject:r}}function Ff(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Of(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ff(Object(r),!0).forEach((function(t){Tf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ff(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lf(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}var kf=function(){var e,t=(e=s.a.mark((function e(t){var r,n,o,i,A,a,u,c,l,g,f;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=YI(),n=r.baseDesignInfo,e.next=3,n.getCurrentBaseDesignInfo();case 3:return o=e.sent,i=o.designId,A=o.levelid,a={modelid:null!=t?t:"",designid:i,levelid:A,toolType:0},u=n.getStateManager().core.design.getCustom(),t||((c=u.getParamModelAssemblies()).length?a.modelid=c[0].id:(l=u.getParamModels().filter((function(e){return!e.isAppendHardware}))).length&&(a.modelid=l[0].id)),e.next=11,n.getCurrentCustomData(null!=t?t:a.modelid);case 11:return g=e.sent,f=g.toolType,a.toolType=f,e.abrupt("return",a);case 15:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){Lf(i,n,o,A,a,"next",e)}function a(e){Lf(i,n,o,A,a,"throw",e)}A(void 0)}))});return function(e){return t.apply(this,arguments)}}();function Nf(e){return function(e){if(Array.isArray(e))return Gf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Gf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gf(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Uf(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zg;r.parseParamModels(e.paramModels).parseParamModelGroups(e.paramModelGroups).parseParamModelAssemblies(e.paramModelCombinations);var n=r.getParamModelAssemblies(),o=(t=Nf(r.getParamModels())).concat.apply(t,Nf(n.map((function(e){return e.getParamModels()}))));return o=o.filter((function(e){return!e.isAccessory()})),Object(_e.uniqBy)(u.ParamModelUtils.collectAccessories(o),"id").forEach((function(e){e.toLocalMatrix()})),{paramModels:o,paramModelAssemblies:n}}function jf(e){return(jf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yf(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function Vf(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){Yf(i,n,o,A,a,"next",e)}function a(e){Yf(i,n,o,A,a,"throw",e)}A(void 0)}))}}function Hf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Jf(e,t){return(Jf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=zf(e);if(t){var o=zf(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Wf(this,r)}}function Wf(e,t){return!t||"object"!==jf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zf(e){return(zf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xf(e){return function(e){if(Array.isArray(e))return Zf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Zf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zf(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $f(e){var t=e.map((function(e){return e.subModels&&e.subModels.length?$f(e.subModels):[]})).flat();return t.push.apply(t,Xf(e)),t}var ep=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jf(e,t)}(f,e);var t,r,n,o,i,A,a,c,l,g=qf(f);function f(){var e;return Hf(this,f),(e=g.apply(this,arguments)).state=e.stateCreator.create({loading:jg.FAIL,allSubModels:[],result:void 0,currModelId:""}),e.$reducerState=e.reducerCreator.create(e.state),e.$actionSetModelId=e.unitCreator.sync((function(t){t.produce(e.$reducerState,(function(e,t){e.currModelId!==t&&(e.result=void 0,e.allSubModels=[]),e.currModelId=t}))})),e.$actionLoadParamModelJsonData=e.unitCreator.async((function(t){t.started.every(s.a.mark((function e(t){var r,n,o,i,A,a,u,c,l,g,f,p,h,d,I,y;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.modelId,n=t.defer,o=t.hasFitting,i=void 0!==o&&o,A=t.force,a=void 0!==A&&A,u=t.templateId,c=this.state.state,l=c.currModelId,g=c.result,f=c.currTemplateId,r){e.next=4;break}throw new Error("not selected model!");case 4:if(p=r===l,h=f===u,d=this.$actionLoadParamModelJsonData,e.prev=7,I=p&&!a&&h?g:void 0,!i||I){e.next=13;break}return e.next=12,mB(r,u);case 12:I=e.sent;case 13:if(I){e.next=18;break}return gB.delete(r),e.next=17,QB(r,u);case 17:I=e.sent;case 18:if(I){e.next=20;break}throw new Error("输入json数据出现异常");case 20:return y=p&&!u?$f(I.paramModel):this.state.state.allSubModels,p&&YI().scene.$actionToggleSelectModel.dispatch(!0),e.next=24,d.done.dispatch({params:t,result:{ossContent:I,allSubModels:y}});case 24:e.next=31;break;case 26:return e.prev=26,e.t0=e.catch(7),e.next=30,d.failed.dispatch({params:t});case 30:n&&n.reject(e.t0);case 31:case"end":return e.stop()}}),e,this,[[7,26]])}))),t.done.every((function(e){var t=e.params.defer;t&&t.resolve(e.result.ossContent)})),t.started.produce(e.$reducerState,(function(e,t){e.loading=jg.LOADING})),t.done.produce(e.$reducerState,(function(e,t){var r=t.result,n=r.ossContent,o=r.allSubModels,i=t.params,A=i.templateId,a=i.modelId===e.currModelId;e.loading=jg.SUCCESS,e.result=a?n:e.result,e.allSubModels=a?o:e.allSubModels,e.currTemplateId=A})),t.failed.produce(e.$reducerState,(function(e,t){e.loading=jg.FAIL}))})),e}return t=f,(r=[{key:"module",value:function(){return"viewParamModel"}},{key:"viewParamModelById",value:(l=Vf(s.a.mark((function e(t){var r,n,o,i,A,a,u,c=this;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(_e.isArray)(t)?t[0]:t,this.$actionSetModelId.dispatchResolve(r),(n=YI().scene).cameraController.$actionInit.dispatch(),this.resetView(),(o=this.getAxr($h).fittingDesignSense).initFittingDesign(),function(){var e=Vf(s.a.mark((function e(){var t,n;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Pf(),o.$actionLoadFittingDesign.started.dispatch({defer:t,params:{modelid:r}}),e.prev=2,e.next=5,t.promise;case 5:n=e.sent,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),Object({DEPLOY_VERSION:1,APP_VERSION:1}).IS_DEV&&console.log(e.t0);case 11:return e.prev=11,e.next=14,c.$actionLoadParamModelJsonData.started.dispatchResolve({modelId:r,hasFitting:!!n});case 14:return e.finish(11);case 15:case"end":return e.stop()}}),e,null,[[2,8,11,15]])})));return function(){return e.apply(this,arguments)}}()(),n.$actionToggleSelectModel.dispatchResolve(!1),e.next=12,this.getAxr(Fg).getCurrentCustomData(r);case 12:return i=e.sent,A=new zg,i.context&&A.unSerialize(i.context),a=Uf(i,A),(u=new G).addParamModels.apply(u,Xf(a.paramModels)),u.addParamModelAssemblies.apply(u,Xf(a.paramModelAssemblies)),e.next=21,this.getAxr(Cf).$actionAddModelToSense.started.dispatchResolve({custom:u,needAttach:!0});case 21:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"refreshCustomModelData",value:(c=Vf(s.a.mark((function e(){var t,r,n,o,i,A;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.getStateManager().core.design.getCustom(),r=t.getParamModels().filter((function(e){return!e.isAppendHardware})),n=t.getParamModelAssemblies(),0!==r.length||0!==n.length){e.next=5;break}throw new Error("No custom model in the scene!");case 5:return e.next=7,vB(this.state.state.currModelId);case 7:return o=e.sent,i=Uf(o),r.forEach((function(e){t.removeParamModel(e)})),n.forEach((function(e){t.removeParamModelAssembly(e)})),e.next=13,Promise.all(i.paramModels.map(function(){var e=Vf(s.a.mark((function e(t){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hg.getParamModelDataByBrandGoodId(t.getBrandGoodId());case 2:r=e.sent,Object(Cg.attach)(t,Object(Cg.toAttachedMap)(r));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 13:return A=i.paramModels.filter((function(e){return!e.getAssembly()})),e.next=16,pg.updateAttacheds([].concat(Xf(A),Xf(i.paramModelAssemblies)));case 16:t.addParamModels.apply(t,Xf(i.paramModels)),t.addParamModelAssemblies.apply(t,Xf(i.paramModelAssemblies));case 18:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"viewSelectedParamModel",value:(a=Vf(s.a.mark((function e(){var t,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Ig(yg.MiniAppSelectModelService),e.next=3,null==t?void 0:t.getSelected();case 3:if(!(null==(r=e.sent)?void 0:r.length)){e.next=9;break}return e.next=7,this.viewParamModelById(Object(_e.map)(r,"id").filter((function(e){return!!e})));case 7:e.next=10;break;case 9:throw new Error("current not selected any parammodel!");case 10:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"getParamModelJsonData",value:(A=Vf(s.a.mark((function e(t){var r,n,o,i,A,a,u,c,l,g,f,p;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.state.state,o=(n=t||{}).timeout,i=void 0===o?5e4:o,A=n.modelId,a=void 0===A?r.currModelId:A,u=n.force,c=void 0!==u&&u,l=n.templateId,c){e.next=14;break}return f=Pf(),this.getAxr($h).fittingDesignSense.$actionLoadFittingDesign.started.dispatch({defer:f,params:{modelid:a}}),e.prev=5,e.next=8,f.promise;case 8:g=e.sent,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(5),console.log(e.t0);case 14:return p=Pf(i),this.$actionLoadParamModelJsonData.started.dispatch({defer:p,modelId:a,hasFitting:!!g,force:c,templateId:l}),e.abrupt("return",p.promise);case 17:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e){return A.apply(this,arguments)})},{key:"validateModelStable",value:function(e){var t=this.getStateManager().core.design.getCustom(),r=Pr(u.ParamModelUtils.flattenModels(t.getParamModels()),e);if(r){for(var n=[r],o={total:0,invalidateTotal:0,validate:!0,invalidateList:[]};n.length;){var i=n.shift();i.getType()===Tr.ParamModelType.PARAM_PRIMITIVE?(o.total++,i.getVersionReflectedId()||(o.invalidateTotal++,o.validate=!1,o.invalidateList.push(i.id))):n.push.apply(n,Xf(i.getChildNodes()))}return o}}},{key:"getTopModelList",value:(i=Vf(s.a.mark((function e(t){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ig(pl),e.next=3,r.getTopParamModels(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"getParamModelPhotoData",value:(o=Vf(s.a.mark((function e(t){var r,n,o,i;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=Object(_e.castArray)(t),n=Ig(yg.MiniAppParamModelDataInfoService),o=[],i=r.length-1;case 4:if(!(i>=0)){e.next=10;break}return e.next=7,n.getParamModelPhotoById(r[i]).then((function(e){o.push(e)}));case 7:--i,e.next=4;break;case 10:return e.abrupt("return",o);case 11:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"resetView",value:function(){var e=this.getStateManager().core,t=e.design.getCustom();t.clearAllParamModels();var r=t.getParamModelAssemblies();r.length&&r.map((function(e){return t.removeParamModelAssembly(e)})),e.fittingDesign.setIntersects([]),e.fittingDesign.setPlankFaceHintModels([])}}])&&Kf(t.prototype,r),n&&Kf(t,n),f}(Bn.AXR);function tp(e){return(tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function np(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rp(Object(r),!0).forEach((function(t){op(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function op(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ip(e){return function(e){if(Array.isArray(e))return Ap(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ap(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ap(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ap(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ap(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function sp(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){ap(i,n,o,A,a,"next",e)}function a(e){ap(i,n,o,A,a,"throw",e)}A(void 0)}))}}function up(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lp(e,t,r){return(lp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=hp(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}function gp(e,t){return(gp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=hp(e);if(t){var o=hp(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return pp(this,r)}}function pp(e,t){return!t||"object"!==tp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hp(e){return(hp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dp={holes:{},grooves:{},hardwares:{},hardwareGrooves:{}},Ip=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gp(e,t)}(A,e);var t,r,o,i=fp(A);function A(){var e;return up(this,A),(e=i.apply(this,arguments)).state=e.stateCreator.create({autoSave:!0,designLoading:jg.FAIL,design:Object(_e.cloneDeep)(dp)}),e.$reducerState=e.reducerCreator.create(e.state),e.$actionInit=e.unitCreator.sync((function(e){e.latest(s.a.mark((function e(t,r){var n,o,i,A,a,u,c;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this.getAxr(Cf);case 1:return o=n.$actionAddModelToSense.done.messageType(),i=this.$actionRestoreFittingDesign.messageType(),e.next=6,Object(Xg.take)([o,i]);case 6:A=r.core,a=A.fittingDesign,u=A.design,a.setFittings([]),a.setGrooveFittings([]),u.getCustom().getParamModels().forEach((function(e){e.isAppendHardware&&e.dispose()})),c=this.state.state.design,this.fittingAddDataToFittingDesignSense(c),this.getAxr(Fg).loadFittingHardwareToSense({hardware:c.hardwares}),e.next=1;break;case 16:case"end":return e.stop()}}),e,this)})))})),e.$actionEnableAutoSave=e.unitCreator.sync((function(t){t.produce(e.$reducerState,(function(e,t){e.autoSave=t}))})),e.initFittingDesign=function(){e.$actionRestoreFittingDesign.dispatch(Object(_e.cloneDeep)(dp))},e.getConnectedFittingDesign=function(){var t=sp(s.a.mark((function t(r){var n,o,i,A,a,u,c,l,g,f,p=arguments;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=p.length>1&&void 0!==p[1]&&p[1],o=e.state.state.design,r){t.next=4;break}return t.abrupt("return",Object(_e.cloneDeep)(o));case 4:if(i={holes:{},grooves:{},hardwares:{},hardwareGrooves:{}},!n){t.next=26;break}A=o.hardwares||{},t.t0=s.a.keys(A);case 8:if((t.t1=t.t0()).done){t.next=18;break}if(c=t.t1.value,!A.hasOwnProperty(c)){t.next=16;break}if(!(l=Object(_e.find)(A[c]||[],(function(e){return e.id===r})))){t.next=16;break}return u=c,a=l,t.abrupt("break",18);case 16:t.next=8;break;case 18:if(a&&u){t.next=20;break}throw new Error("当前五金不存在!");case 20:g=a.linkedIds,f=function(e){return g.includes(e.id)},i.holes[u]=Object(_e.filter)(o.holes[u],f),i.grooves[u]=Object(_e.filter)(o.grooves[u],f),t.next=27;break;case 26:Object(_e.keys)(i).forEach((function(e){o[e]&&o[e][r]&&(i[e][r]=Object(_e.cloneDeep)(o[e][r]))}));case 27:return t.abrupt("return",i);case 28:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.fittingAddDataToFittingDesignSense=function(t){var r=e.stateManager.core,o=r.fittingDesign,i=r.design,A=YI().fittingDesign.senseSetting.getSenseSettings(),a=Object(_e.pick)(A,["holeColor","grooveColor","holeOpacity","grooveOpacity"]),s=t.holes,c=void 0===s?{}:s,l=t.grooves,g=void 0===l?{}:l,f=t.hardwareGrooves,p=void 0===f?{}:f,h=u.ParamModelUtils.flattenModels(i.getCustom().getParamModels()),d={findRelativeModel:function(e){return Pr(h,e)},transformModel:Dr};o.addFittings([].concat(ip(vu(c,np(np({},d),{},{type:n.HOLE,defaultConfig:a}))),ip(vu(g,np(np({},d),{},{type:n.GROOVE,defaultConfig:a}))))),o.addGrooveFittings(vu(p,np(np({},d),{},{type:n.HARDWARE_GROOVE,transformModel:En,defaultConfig:a})))},e.appendFittingDataToFittingDesign=function(){var t=sp(s.a.mark((function t(r,n){var o,i,A,a,u,c,l,g,f,p,h;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.state.state,A=i.design,a=i.autoSave,u=!r.id||r.id===A.id,c=dp,l=n.timeout,g=n.save,f=void 0===g?a:g,p={id:null!==(o=r.id)&&void 0!==o?o:A.id,holes:np(np({},u?A.holes:c.holes),r.holes||{}),grooves:np(np({},u?A.grooves:c.grooves),r.grooves||{}),hardwares:np(np({},u?A.hardwares:c.hardwares),r.hardwares||{}),hardwareGrooves:np(np({},u?A.hardwareGrooves:c.hardwareGrooves),r.hardwareGrooves||{})},Object(_e.pull)(Object(_e.keys)(p),"id").forEach((function(e){var t=p[e];Object(_e.keys)(t).forEach((function(e){0===t[e].length&&delete t[e]}))})),!f){t.next=12;break}return h=Pf(l),e.$actionSaveFittingDesign.started.dispatch({defer:h,design:p}),t.abrupt("return",h.promise);case 12:e.$actionRestoreFittingDesign.dispatch(p);case 13:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),e.$actionRestoreFittingDesign=e.unitCreator.sync((function(t){t.produce(e.$reducerState,(function(e,t){e.design=t}))})),e.$actionLoadFittingDesign=e.unitCreator.async((function(e){e.started.every(s.a.mark((function e(t,r){var n,o,i,A;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.$actionLoadFittingDesign,o=t.params,e.next=4,kf(o.modelid);case 4:return i=e.sent,e.prev=5,e.next=8,pB(np(np({},o),i));case 8:A=e.sent,n.done.dispatch({params:t,result:{designData:A,modelId:i.modelid}}),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),n.failed.dispatch({params:t});case 15:case"end":return e.stop()}}),e,this,[[5,12]])}))),e.done.every((function(e,t){var r=this.$actionRestoreFittingDesign,n=e.result.designData?e.result.designData:Object(_e.cloneDeep)(dp),o=this.getAxr(ep).state.state.currModelId;e.result.modelId===o&&r.dispatch(n);var i=e.params.defer;i&&i.resolve(e.result.designData)})),e.failed.every((function(e,t){var r,n=this.getAxr(ep).state.state.currModelId;(null===(r=e.result)||void 0===r?void 0:r.modelId)===n&&this.initFittingDesign();var o=e.params.defer;o&&o.reject(new Error("load fitting design error"))}))})),e.$actionClearFittingDesign=e.unitCreator.async((function(e){e.started.every(s.a.mark((function e(t,r){var n,o,i,A,a;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.getAxr(ep).state.state.currModelId,o=t.modelId,i=void 0===o?n:o,e.next=4,kf(i);case 4:return A=e.sent,a=this.$actionClearFittingDesign,e.prev=6,e.next=9,CB(A);case 9:a.done.dispatch({params:t,result:void 0}),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(6),a.failed.dispatch({params:t});case 15:case"end":return e.stop()}}),e,this,[[6,12]])}))),e.done.every(s.a.mark((function e(t,r){var n,o,i;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=this.getAxr(ep).state.state.currModelId,(null!==(n=t.params.modelId)&&void 0!==n?n:o)===o&&this.initFittingDesign(),(i=t.params.defer)&&i.resolve();case 5:case"end":return e.stop()}}),e,this)}))),e.failed.every(s.a.mark((function e(t,r){var n;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=t.params.defer)&&n.reject(new Error("delete error"));case 2:case"end":return e.stop()}}),e)})))})),e.$actionSaveFittingDesign=e.unitCreator.async((function(e){e.started.every(s.a.mark((function e(t){var r,n,o,i;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.design,n=void 0===r?this.state.state.design:r,e.next=3,kf(n.id);case 3:return o=e.sent,i=this.$actionSaveFittingDesign,e.prev=5,e.next=8,yB(np(np({},n),{},{id:o.modelid}),o);case 8:i.done.dispatch({params:t,result:void 0}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(5),i.failed.dispatch({params:t,result:e.t0});case 14:case"end":return e.stop()}}),e,this,[[5,11]])}))),e.failed.every(s.a.mark((function e(t,r){var n;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=t.params.defer)&&n.reject(new Error("save failed!"));case 2:case"end":return e.stop()}}),e)}))),e.done.every(s.a.mark((function e(t,r){var n,o,i;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.params.design,o=this.getAxr(ep).state.state.currModelId,!n||n.id&&n.id!==o||this.$actionRestoreFittingDesign.dispatch(n),(i=t.params.defer)&&setTimeout((function(){i.resolve()}));case 5:case"end":return e.stop()}}),e,this)})))})),e}return t=A,(r=[{key:"init",value:function(){lp(hp(A.prototype),"init",this).call(this),this.$actionInit.dispatch()}},{key:"isAutoSaveEnabled",value:function(){return this.state.state.autoSave}}])&&cp(t.prototype,r),o&&cp(t,o),A}(wf);function yp(e){return(yp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ep(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Bp(e,t){return(Bp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Qp(e);if(t){var o=Qp(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return mp(this,r)}}function mp(e,t){return!t||"object"!==yp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qp(e){return(Qp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bp(e,t)}(i,e);var t,r,n,o=vp(i);function i(){var e;return Cp(this,i),(e=o.apply(this,arguments)).state=e.stateCreator.create({option:{}}),e.$reducerState=e.reducerCreator.create(e.state),e.$actionUpdateFittingHintConf=e.unitCreator.sync((function(t){t.latest((function(){e.rerenderToSense()})),t.produce(e.$reducerState,(function(e,t){e.option=t}))})),e}return t=i,(r=[{key:"setFittingHint",value:function(e){this.$actionUpdateFittingHintConf.dispatch(e)}},{key:"clearFittingHint",value:function(e){var t=e?Object(_e.omit)(this.state.state.option,e):{};this.$actionUpdateFittingHintConf.dispatch(t)}},{key:"rerenderToSense",value:function(){var e=this.state.state.option,t=this.stateManager.core,r=t.design,n=t.fittingDesign,o=r.getCustom().getParamModels(),i=n.getFittings(),A=n.getGrooveFittings(),a=Object(_e.map)(e,(function(e,t){var r=o.find((function(e){return e.id===t&&e.isAppendHardware}))||i.find((function(e){return e.id===t}))||A.find((function(e){return e.id===t}));if(r)return new tt({linkModel:r,hintOutline:e.outline})})).filter((function(e){return!!e}));n.setFittingHintModels(a)}}])&&Ep(t.prototype,r),n&&Ep(t,n),i}(wf);function _p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var wp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__changeMap={}}var t,r,n;return t=e,(r=[{key:"getHidden",value:function(){return this.isHidden}},{key:"setHidden",value:function(e){this.__trackUpdateField({field:"isHidden"},this.isHidden,e),this.isHidden=e}},{key:"__trackUpdateField",value:function(e,t,r){this.__changeMap.update=this.__changeMap.update||[];var n=this.__changeMap.update,o=e.field;t===r||n.some((function(e){return e.field===o}))||n.push({field:o})}}])&&_p(t.prototype,r),n&&_p(t,n),e}();function Sp(e){var t,r=new wp;if(r.id=e.id,e instanceof fe){if(!e.isAppendHardware)return;t=n.HARDWARE,r.isHidden=e.getInvisible(),r.originalData=e.hardwareData}else r.isHidden=!e.visible,t=e.type,r.originalData=e.fittingData;return r.linkParamModelId=e.linkParamModelId,r.modelType=t,r}function Dp(e){return(Dp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rp(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=xp(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,A=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return A=e.done,e},e:function(e){a=!0,i=e},f:function(){try{A||null==r.return||r.return()}finally{if(a)throw i}}}}function Mp(e){return function(e){if(Array.isArray(e))return Pp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||xp(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xp(e,t){if(e){if("string"==typeof e)return Pp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pp(e,t):void 0}}function Pp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Op(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Tp(e,t){return(Tp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Np(e);if(t){var o=Np(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return kp(this,r)}}function kp(e,t){return!t||"object"!==Dp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Np(e){return(Np=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Gp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tp(e,t)}(A,e);var t,r,o,i=Lp(A);function A(){return Fp(this,A),i.apply(this,arguments)}return t=A,(r=[{key:"getAllFittingModels",value:function(e){var t=this.findHardwareParamModels(this.stateManager.core.design.getCustom().getParamModels()),r=this.stateManager.core.fittingDesign.getFittings(),n=this.stateManager.core.fittingDesign.getGrooveFittings();return[].concat(Mp(t),Mp(r),Mp(n)).filter((function(t){return!e||t.linkParamModelId===e})).map((function(e){return Sp(e)}))}},{key:"findHardwareParamModels",value:function(e){var t,r=[],n=Rp(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;o.isAppendHardware&&r.push(o),r.push.apply(r,Mp(this.findHardwareParamModels(o.getChildNodes())))}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"save",value:function(e){var t,r=[],o=[],i=Rp(e);try{for(i.s();!(t=i.n()).done;){var A=t.value;A.modelType===n.HARDWARE?r.push(A):o.push(A)}}catch(e){i.e(e)}finally{i.f()}this.saveHardwareFittingModelLite(r),this.saveFittingModelLite(o)}},{key:"saveHardwareFittingModelLite",value:function(e){var t=this.stateManager.core.design.getCustom().getParamModels();e.forEach((function(e){var r=Pr(t,e.id);if(r){var n=e.__changeMap.update;(void 0===n?[]:n).forEach((function(t){"isHidden"===t.field&&r.setInvisible(e.getHidden())})),e.__changeMap.update=[]}})),nB().viewer.triggerReducer()}},{key:"saveFittingModelLite",value:function(e){var t=this.stateManager.core.fittingDesign.getFittings(),r=this.stateManager.core.fittingDesign.getGrooveFittings(),o=this.stateManager.core.fittingDesign.getFittingHintModels();e.forEach((function(e){var i;e.modelType===n.HARDWARE_GROOVE?i=r.find((function(t){return t.id===e.id})):e.modelType!==n.HOLE&&e.modelType!==n.GROOVE||(i=t.find((function(t){return t.id===e.id})));var A=o.find((function(t){return t.linkModel.id===e.id}));if(i){var a=e.__changeMap.update;(void 0===a?[]:a).forEach((function(t){"isHidden"===t.field&&(null==i||i.setVisible(!e.getHidden()),null==A||A.setVisible(!e.getHidden()))})),e.__changeMap.update=[]}}))}}])&&Op(t.prototype,r),o&&Op(t,o),A}(wf);function Up(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Up(Object(r),!0).forEach((function(t){Yp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Up(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vp(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function Hp(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){Vp(i,n,o,A,a,"next",e)}function a(e){Vp(i,n,o,A,a,"throw",e)}A(void 0)}))}}var Kp=function(){var e=Hp(s.a.mark((function e(t,r){var n,o;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=ou(),e.next=3,n.post("/cos/api/c/task/intersected",{modelIds:t},{params:jp(jp({},r),{},{compress:1})});case 3:return o=e.sent,e.abrupt("return",o.data);case 5:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),Jp=function(){var e=Hp(s.a.mark((function e(t){var r,n;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=ou(),e.next=3,r.gzipGet("/cos/api/task/intersected",{params:{taskId:t}});case 3:return n=e.sent,e.abrupt("return",n.data.d);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),qp=function(){var e=Hp(s.a.mark((function e(t){var r,n;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=ou(),e.next=3,r.gzipGet("/cos/api/task/intersected/data",{params:{taskid:t}});case 3:return n=e.sent,e.abrupt("return",n.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function Wp(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function zp(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){Wp(i,n,o,A,a,"next",e)}function a(e){Wp(i,n,o,A,a,"throw",e)}A(void 0)}))}}function Xp(e,t){return Zp.apply(this,arguments)}function Zp(){return(Zp=zp(s.a.mark((function e(t,r){var n,o,i,A,a,u,c,l,g,f,p,h,d=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=d.length>2&&void 0!==d[2]?d[2]:{},o=n.times,i=void 0===o?50:o,A=n.delay,a=void 0===A?1e3:A,u=n.firstDelay,c=n.errorFilter,l=void 0===c?_e.noop:c,e.next=4,t();case 4:return g=e.sent,e.next=7,xf(null!=u?u:a);case 7:f=0;case 8:return f++,p=void 0,h=void 0,e.prev=12,e.next=15,r(g);case 15:h=e.sent,e.next=21;break;case 18:e.prev=18,e.t0=e.catch(12),p=e.t0;case 21:if(!p){e.next=25;break}if(!1!==l(p,f)){e.next=25;break}throw new Error("break loop because user cancel!");case 25:if(![dB.CANCEL,dB.TIMEOUT,dB.FAIL,dB.UNKNOWN].includes(h.status)){e.next=29;break}throw new Error("task status: ".concat(h.status));case 29:if(h.status!==dB.SUCCESS){e.next=31;break}return e.abrupt("return",h.result);case 31:if(!(f>=i)){e.next=33;break}throw new Error("maximum limit is exceeded!");case 33:return e.next=35,xf(a);case 35:e.next=8;break;case 37:case"end":return e.stop()}}),e,null,[[12,18]])})))).apply(this,arguments)}function $p(e){return($p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function th(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(r),!0).forEach((function(t){rh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nh(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function oh(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){nh(i,n,o,A,a,"next",e)}function a(e){nh(i,n,o,A,a,"throw",e)}A(void 0)}))}}function ih(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ah(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ah(e,t){return(ah=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ch(e);if(t){var o=ch(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return uh(this,r)}}function uh(e,t){return!t||"object"!==$p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ch(e){return(ch=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ah(e,t)}(c,e);var t,r,n,A,a=sh(c);function c(){var e;return ih(this,c),(e=a.apply(this,arguments)).state=e.stateCreator.create({intersectedLoading:jg.FAIL,intersectedResult:void 0,intersectedVisible:!1}),e.$reducerState=e.reducerCreator.create(e.state),e._getParamModelIntersectedCallback=[],e.$actionLoadParamModelIntersectedData=e.unitCreator.async((function(t){t.started.every(s.a.mark((function e(t,r){var n,o,i,A,a,u,c,l,g,f;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kf(null===(n=t.models)||void 0===n?void 0:n[0]);case 2:return o=e.sent,i=t.models,A=void 0===i?[o.modelid]:i,a=t.defer,u=this.$actionLoadParamModelIntersectedData,e.prev=5,e.next=8,Xp(oh(s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Kp(A,Object(_e.omit)(o,"modelid"));case 2:return t=e.sent,e.abrupt("return",t.d);case 4:case"end":return e.stop()}}),e)}))),function(){var e=oh(s.a.mark((function e(t){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Jp(t);case 2:return r=e.sent,e.abrupt("return",{status:r.status,result:{taskId:t}});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{firstDelay:500});case 8:return c=e.sent,l=YI().viewParamModel.state.state.currModelId===o.modelid,g=c.taskId,e.next=13,qp(g);case 13:if(f=e.sent,!l){e.next=17;break}return e.next=17,u.done.dispatch({params:t,result:{result:f,modelId:o.modelid}});case 17:a&&a.resolve(f),e.next=25;break;case 20:return e.prev=20,e.t0=e.catch(5),e.next=24,u.failed.dispatch({params:t});case 24:a&&a.reject(e.t0);case 25:case"end":return e.stop()}}),e,this,[[5,20]])}))),t.done.every((function(t,r){var n=t.params.defer,o=YI().viewParamModel.state.state.currModelId;n&&n.resolve(t.result.result),t.result.modelId===o&&e.$actionAddIntersectedDataToSense.dispatch(t.result.result)})),t.failed.every((function(t,r){e._getParamModelIntersectedCallback.forEach((function(e){e.reject(new Error("load json error!"))}))})),t.started.produce(e.$reducerState,(function(e,t){e.intersectedLoading=jg.LOADING})),t.done.produce(e.$reducerState,(function(e,t){e.intersectedLoading=jg.SUCCESS,e.intersectedResult=t.result.result})),t.failed.produce(e.$reducerState,(function(e,t){e.intersectedLoading=jg.FAIL}))})),e.$actionAddIntersectedDataToSense=e.unitCreator.sync((function(t){t.every((function(t,r){var n=r.core,A=n.design,a=n.fittingDesign,s=e.state.state.intersectedVisible,c=e.app.axr.axrs.fittingDesign.senseSetting.getSenseSettings(),l=c.intersectedColor,g=c.intersectedBodyColor,f=c.grooveIntersectedColor,p=c.grooveIntersectedBodyColor;a.setIntersects([]);var h=t.option,d=void 0===h?{}:h,I=t.intersectedGroups,y=u.ParamModelUtils.flattenModels(A.getCustom().getParamModels()),C=Object(_e.map)(I,(function(e){var t=!0===d.references?1:0,r=e.intersecteds[t],n=r["@type"],A=e.intersectType;if(void 0!==d.plankFaceIds&&!d.plankFaceIds.includes(r.plankFaceId))return!1;if(Pr(y,r.linkedParentModelId)){var a=an(e,r,Pr(y,r.linkedModelId)),s=A===i.BOTH_PLANK?n===o.FACE?l:g:n===o.FACE?f:p;return a.setViewColor(s),a}})).filter((function(e){return!!e}));a.setIntersects(C),s||r.kaf.invisibleManager.hide("scene3d",ef,C.map((function(e){return e.id})))}))})),e.$actionToggleShowIntersected=e.unitCreator.sync((function(t){t.latest((function(e,t){var r=t.core.fittingDesign;e?t.kaf.invisibleManager.display("scene3d",ef,r.getIntersects().map((function(e){return e.id}))):t.kaf.invisibleManager.hide("scene3d",ef,r.getIntersects().map((function(e){return e.id})))})),t.produce(e.$reducerState,(function(e,t){e.intersectedVisible=t}))})),e.toggleShowIntersectGroupData=function(t){var r=e.state.state.intersectedResult;if(!r)throw new Error("暂无交接数据!");e.$actionAddIntersectedDataToSense.dispatch(th(th({},r),{},{option:t}))},e}return t=c,(r=[{key:"getParamModelIntersectedData",value:(A=oh(s.a.mark((function e(t){var r,n,o,i,A,a,u,c,l=this;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=YI().viewParamModel.state.state.currModelId,o=(n=t||{}).timeout,i=void 0===o?5e4:o,A=n.modelId,a=void 0===A?r:A,u=Pf(i),this.$actionLoadParamModelIntersectedData.started.dispatch({models:[a],defer:u}),this._getParamModelIntersectedCallback.push(u),c=function(){var e=l._getParamModelIntersectedCallback.indexOf(u);l._getParamModelIntersectedCallback.splice(e,1)},e.abrupt("return",u.promise.then((function(e){return c(),e})).catch((function(e){return c(),Promise.reject(e)})));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})}])&&Ah(t.prototype,r),n&&Ah(t,n),c}(wf);function gh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gh(Object(r),!0).forEach((function(t){ph(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ph(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hh(e,t){var r=t.x/2,n=t.y/2,o=t.z/2,i=[{x:-r,y:-n,z:o},{x:r,y:-n,z:o},{x:r,y:n,z:o},{x:-r,y:n,z:o}],A=i.map((function(e){return fh(fh({},e),{},{z:-e.z})}));switch(e){case 0:return i;case 1:return[i[0],A[0],A[3],i[3]];case 2:return[i[0],A[0],A[1],i[1]];case 3:return[i[1],A[1],A[2],i[2]];case 4:return[i[2],A[2],A[3],i[3]];case 5:return A}return[]}function dh(e){return(dh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ih(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ch(e,t){return(Ch=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Eh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=vh(e);if(t){var o=vh(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Bh(this,r)}}function Bh(e,t){return!t||"object"!==dh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vh(e){return(vh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mh={outline:{color:"#ff4d4f",opacity:.5},plankFace:{color:"#9318ff",opacity:.5}},Qh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ch(e,t)}(i,e);var t,r,n,o=Eh(i);function i(){var e;return Ih(this,i),(e=o.apply(this,arguments)).state=e.stateCreator.create({option:{},defaultConfig:mh}),e.$reducerState=e.reducerCreator.create(e.state),e.$actionUpdateDefaultOption=e.unitCreator.sync((function(t){t.produce(e.$reducerState,(function(e,t){e.defaultConfig=Object(_e.extend)({},e.defaultConfig,t)}))})),e.$actionUpdateHintOption=e.unitCreator.sync((function(t){t.latest((function(){e.rerenderToSense()})),t.produce(e.$reducerState,(function(e,t){e.option=t}))})),e}return t=i,(r=[{key:"setDefaultHintConfig",value:function(e){this.$actionUpdateDefaultOption.dispatch(e)}},{key:"setModelHint",value:function(e){var t=this,r=Object(_e.mapValues)(e,(function(e){return function(e,t){var r={};return Object(_e.isObject)(e.hintOutline)?r.hintOutline=e.hintOutline:!0===e.hintOutline&&(r.hintOutline=t.outline),e.hintPlankFace&&e.hintPlankFace.length&&(r.hintPlankFace=e.hintPlankFace.map((function(e){var r="color"in e?e:t.plankFace,n=r.color,o=r.opacity;return Object(_e.isArray)(e.plankFaceId)?e.plankFaceId.map((function(e){return{color:n,opacity:o,plankFaceId:e}})):{plankFaceId:e.plankFaceId,color:n,opacity:o}})).flat()),r}(e,t.state.state.defaultConfig)}));this.$actionUpdateHintOption.dispatch(r)}},{key:"clearModelHint",value:function(e){var t=e?Object(_e.omit)(this.state.state.option,e):{};this.setModelHint(t)}},{key:"rerenderToSense",value:function(){var e=this.stateManager.core,t=e.design,r=e.fittingDesign,n=t.getCustom(),o=this.state.state.option,i=n.getParamModels(),A=Object(_e.map)(o,(function(e,t){var r=Pr(i,t);if(r)return function(e,t){var r={linkModel:t};if(e.hintPlankFace&&e.hintPlankFace.length){var n=t.getSize();r.plankFaces=e.hintPlankFace.map((function(e){var t=br(e.plankFaceId,M.a).mul(.1),r=hh(e.plankFaceId,n).map((function(e){var r=new M.a(e).add(t);return{x:r.x,y:r.y,z:r.z}}));return fh(fh({},e),{},{points:r})}))}if(e.hintOutline&&(r.hintOutline=e.hintOutline),r.plankFaces||r.hintOutline)return new pr(r)}(e,r)})).filter((function(e){return!!e}));r.setPlankFaceHintModels(A)}}])&&yh(t.prototype,r),n&&yh(t,n),i}(wf);function bh(e){return(bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Sh(e,t){return(Sh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Mh(e);if(t){var o=Mh(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Rh(this,r)}}function Rh(e,t){return!t||"object"!==bh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mh(e){return(Mh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sh(e,t)}(i,e);var t,r,n,o=Dh(i);function i(){var e;return _h(this,i),(e=o.apply(this,arguments)).state=e.stateCreator.create({intersectedColor:16729344,intersectedBodyColor:16711935,grooveIntersectedColor:12092939,grooveIntersectedBodyColor:16776960,holeColor:65280,grooveColor:2003199,renderIgnoreCategory:y,holeOpacity:1,grooveOpacity:1}),e.$reducerState=e.reducerCreator.create(e.state),e.$actionSenseSetting=e.unitCreator.sync((function(t){t.produce(e.$reducerState,(function(e,t){t.renderIgnoreCategory&&(t.renderIgnoreCategory=Object(_e.castArray)(t.renderIgnoreCategory)),Object(_e.extend)(e,t)}))})),e}return t=i,(r=[{key:"getSenseSettings",value:function(){return this.state.state}}])&&wh(t.prototype,r),n&&wh(t,n),i}(wf);function Ph(e){return(Ph="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Th(e,t){return(Th=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Nh(e);if(t){var o=Nh(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return kh(this,r)}}function kh(e,t){return!t||"object"!==Ph(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Nh(e){return(Nh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Gh,Uh,jh,Yh,Vh,Hh,Kh,Jh,qh,Wh,zh,Xh,Zh,$h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Th(e,t)}(i,e);var t,r,n,o=Lh(i);function i(){var e;return Fh(this,i),(e=o.apply(this,arguments)).fittingDesignSense=e.partialCreator.create(Ip),e.intersected=e.partialCreator.create(lh),e.senseSetting=e.partialCreator.create(xh),e.fittingModel=e.partialCreator.create(Gp),e.plankFaceHint=e.partialCreator.create(Qh),e.fittingHint=e.partialCreator.create(bp),e}return t=i,(r=[{key:"module",value:function(){return"FittingDesign"}}])&&Oh(t.prototype,r),n&&Oh(t,n),i}(Bn.AXR);
|
|
125
|
+
***************************************************************************** */var ol=function(e,t){return(ol=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function il(e,t){function r(){this.constructor=e}ol(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Al(e,t,r,n){var o,i=arguments.length,A=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":nl(Reflect))&&"function"==typeof Reflect.decorate)A=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(A=(i<3?o(A):i>3?o(t,r,A):o(t,r))||A);return i>3&&A&&Object.defineProperty(t,r,A),A}function al(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),A=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)A.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return A}function sl(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(al(arguments[t]));return e}var ul,cl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return il(t,e),t.prototype.request=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.get=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.delete=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.post=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.put=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.encryptedRequest=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.encryptedGet=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.encryptedDelete=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.encryptedPost=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.encryptedPut=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.gzipRequest=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.gzipGet=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.gzipPost=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.gzipPut=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.pbGzipGet=function(e){return Object(bu.API_UNSUPPORT)()},t.prototype.pbGzipPost=function(e){return Object(bu.API_UNSUPPORT)()},Al([bu.anno.decl.api()],t.prototype,"request",null),Al([bu.anno.decl.api()],t.prototype,"get",null),Al([bu.anno.decl.api()],t.prototype,"delete",null),Al([bu.anno.decl.api()],t.prototype,"post",null),Al([bu.anno.decl.api()],t.prototype,"put",null),Al([bu.anno.decl.api()],t.prototype,"encryptedRequest",null),Al([bu.anno.decl.api()],t.prototype,"encryptedGet",null),Al([bu.anno.decl.api()],t.prototype,"encryptedDelete",null),Al([bu.anno.decl.api()],t.prototype,"encryptedPost",null),Al([bu.anno.decl.api()],t.prototype,"encryptedPut",null),Al([bu.anno.decl.api()],t.prototype,"gzipRequest",null),Al([bu.anno.decl.api()],t.prototype,"gzipGet",null),Al([bu.anno.decl.api()],t.prototype,"gzipPost",null),Al([bu.anno.decl.api()],t.prototype,"gzipPut",null),Al([bu.anno.decl.api()],t.prototype,"pbGzipGet",null),Al([bu.anno.decl.api()],t.prototype,"pbGzipPost",null),t=Al([bu.anno.decl({id:"com.custom.miniapp.inner.service.http.proxy.client",version:"1.0.0",ACL:nc.INNER})],t)}(bu.ServService);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}il(t,e),t.prototype.getAllAvailableService=function(){return Object(bu.API_UNSUPPORT)()},Al([bu.anno.decl.api()],t.prototype,"getAllAvailableService",null),t=Al([bu.anno.decl({id:"com.custom.miniapp.inner.service.app.available.service",version:"1.0.0",ACL:nc.INNER})],t)}(bu.ServService);!function(e){e.CABINET="CABINET",e.WARDROBE="WARDROBE",e.DOOR_WINDOW="DW",e.CABINET_COPY="CABINET_COPY",e.WARDROBE_COPY="WARDROBE_COPY",e.DOOR_WINDOW_COPY="DW_COPY"}(ul||(ul={}));var ll,gl,fl,pl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return il(t,e),t.prototype.getParamModelDataByIds=function(e,t){return Object(bu.API_UNSUPPORT)()},t.prototype.getTopParamModels=function(e){return Object(bu.API_UNSUPPORT)()},Al([bu.anno.decl.api()],t.prototype,"getParamModelDataByIds",null),Al([bu.anno.decl.api()],t.prototype,"getTopParamModels",null),t=Al([bu.anno.decl({id:"com.custom.miniapp.inner.service.model.param.data",version:"1.0.0",ACL:nc.INNER})],t)}(bu.ServService),hl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return il(t,e),t.prototype.lockModelBySplit=function(){return Object(bu.API_UNSUPPORT)()},t.prototype.fittingDesignHasChanged=function(){return Object(bu.API_UNSUPPORT)()},Al([bu.anno.decl.api()],t.prototype,"lockModelBySplit",null),Al([bu.anno.decl.notify()],t.prototype,"fittingDesignHasChanged",null),t=Al([bu.anno.decl({id:"com.custom.miniapp.inner.service.lock.model",version:"1.0.0",ACL:nc.INNER})],t)}(bu.ServService),dl=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}il(t,e),t.prototype.getPackageInfo=function(){return Object(bu.API_UNSUPPORT)()},Al([bu.anno.decl.event()],t.prototype,"onRequestReceived",void 0),Al([bu.anno.decl.api()],t.prototype,"getPackageInfo",null),t=Al([bu.anno.decl({id:"com.custom.miniapp.service.packageInfo",version:"1.0.0",ACL:nc.PRIVATE})],t)}(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}il(t,e),t.prototype.getFitRule=function(e){return Object(bu.API_UNSUPPORT)()},Al([bu.anno.decl.event()],t.prototype,"onBorderResultReceived",void 0),Al([bu.anno.decl.api()],t.prototype,"getFitRule",null),t=Al([bu.anno.decl({id:"com.custom.miniapp.service.borderResult",version:"1.0.0",ACL:nc.PRIVATE})],t)}(bu.ServService),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return il(t,e),t.prototype.toJSON=function(){return{paramPackages:sl(this.paramPackages.values()),hardwares:sl(this.products.values()),paramModelAttacheds:Array.from(this.paramModelAttacheds).map((function(e){var t=al(e,2);t[0];var r=t[1],n=new Zc.a;return Object(_e.extend)(n,r),n.parsedHoles=[],n.parsedInnerFrames=[],n})),displayInfoMap:sl(this.displayInfos.values()),wireFrames:Object(_e.fromPairs)(sl(this.wireGeometrysMap.entries()).map((function(e){return[e[0],e[1].vertices]})))}},t.prototype.serialize=function(){return JSON.stringify(this.toJSON())},t.prototype.unSerialize=function(e){var t=this,r="string"==typeof e?JSON.parse(e):e,n=Object(_e.omit)(r,["wireFrames","paramModelAttacheds"]);r.paramModelAttacheds&&(n.paramModelAttacheds=r.paramModelAttacheds.map((function(e){var t=new Zc.a;if(Object(_e.extend)(t,e),t.meshModels=t.meshModels.map((function(e){var t=e.displayMaterial,r=new rl.a,n=new Kt.a;return Object(_e.extend)(n,e.geometry),r.texture=e.texture,r.displayMaterial=t?Object($c.toPopBufferMtl)(t):void 0,r.geometry=n,r})),t.furnitureModel){var r=new el.FurnitureModel;Object(_e.extend)(r,t.furnitureModel),r.size=new M.a(r.size),r.position=new M.a(r.position),r.rotate=new M.a(r.rotate),r.scale=new M.a(r.scale),t.furnitureModel=r}return t}))),r.wireFrames&&Object(_e.each)(r.wireFrames,(function(e,r){t.addWireGeometrysMap(r,e)})),this.addCustomResources(n)},t}(zc.a));!function(e){e[e.willExit=0]="willExit"}(ll||(ll={})),function(e){e[e.exit=0]="exit"}(gl||(gl={})),function(e){e[e.personalLibrary=1]="personalLibrary",e[e.enterpriseLibrary=2]="enterpriseLibrary"}(fl||(fl={}));var Il=r(237),yl=r.n(Il),Cl=r(279),El=r.n(Cl),Bl=r(1102),vl=r.n(Bl),ml=r(351),Ql=r.n(ml),bl=r(703),_l=r.n(bl),wl=r(1103),Sl=r.n(wl),Dl=r(709),Rl=r.n(Dl),Ml=r(710),xl=r.n(Ml),Pl=r(205),Fl=r.n(Pl),Ol=r(115),Tl=r.n(Ol),Ll=r(182),kl=r.n(Ll),Nl=r(514),Gl=r.n(Nl),Ul=r(1104),jl=r.n(Ul),Yl=r(708),Vl=r.n(Yl),Hl=r(707),Kl=r.n(Hl),Jl=r(352),ql=r.n(Jl),Wl=r(236),zl=r.n(Wl),Xl=r(714),Zl=r.n(Xl),$l=r(702),eg=r.n($l),tg=r(1105),rg=r.n(tg),ng=Object({DEPLOY_VERSION:1,APP_VERSION:1}).ENABLE_DEV_CHECK?[Zr.a,Gr.a,Ql.a,m.a,_l.a,b.a,Sl.a,Fl.a,Tl.a,kl.a,Gl.a,w.a,jr.a,Vr.a,Kr.a,jl.a,Vl.a,Kl.a,D.a,ql.a,zl.a,Zl.a,Xl.LineIndex,qr.a,eg.a,rg.a,dt.a,M.a,ArrayBuffer,xi.Vector3,El.a,vl.a,va.ParamStore,Rl.a,xl.a,rl.a,Kt.a,el.FurnitureModel,Map,xi.SkyBackground]:[];Object(Il.inject)({isKnownImmutableInstance:function(e){return ng.some((function(t){return e instanceof t}))}});yl.a;var og=r(209);function ig(e){return(ig="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ag(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ag(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function sg(e,t){return(sg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ug(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=lg(e);if(t){var o=lg(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return cg(this,r)}}function cg(e,t){return!t||"object"!==ig(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function lg(e){return(lg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gg,fg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sg(e,t)}(i,e);var t,r,n,o=ug(i);function i(){var e;return Ag(this,i),(e=o.apply(this,arguments)).rootState=new ms,e}return t=i,(r=[{key:"stateManager",get:function(){return this.rootState}},{key:"onInitialize",value:function(){var e=new du(this,this.rootState);e.init(),e.run()}}])&&ag(t.prototype,r),n&&ag(t,n),i}(og.BasePlugin);fg.dependencies=[vn.AppServicePlugin];var pg,hg,dg,Ig=function(e){if(!gg)throw new Error("please new Application before call method");return gg.getCustomMiniAppService(e)},yg=r(241),Cg=r(90),Eg=r(426);function Bg(e){dg=e}function vg(e){return(vg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mg(e){return function(e){if(Array.isArray(e))return Qg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qg(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bg(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _g(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function wg(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){_g(i,n,o,A,a,"next",e)}function a(e){_g(i,n,o,A,a,"throw",e)}A(void 0)}))}}function Sg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Rg(e,t){return(Rg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Pg(e);if(t){var o=Pg(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return xg(this,r)}}function xg(e,t){return!t||"object"!==vg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Pg(e){return(Pg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rg(e,t)}(i,e);var t,r,n,o=Mg(i);function i(){var e;return Sg(this,i),(e=o.apply(this,arguments)).state={currentCustomData:void 0,designInfo:void 0,hardwarelist:[],casbinModelIdMap:{}},e.lastCurrentCustomDataArgs=[],e.getCurrentBaseDesignInfo=wg(s.a.mark((function t(){var r,n;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=e.state.designInfo)){t.next=3;break}return t.abrupt("return",r);case 3:return n=Ig(yg.MiniAppDesignBaseInfoService),t.next=6,n.getDesignBaseInfo();case 6:return r=t.sent,e.state.designInfo=r,t.abrupt("return",r);case 9:case"end":return t.stop()}}),t)}))),e.getCurrentCustomData=function(){var t=wg(s.a.mark((function t(r){var n,o,i;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.state.currentCustomData,r){t.next=3;break}return t.abrupt("return",n);case 3:if(o=Object(_e.castArray)(r),i=Object(_e.difference)(o,e.lastCurrentCustomDataArgs),e.lastCurrentCustomDataArgs=o,!i.length&&n){t.next=12;break}return t.next=9,vB(r);case 9:n=t.sent,t.next=13;break;case 12:return t.abrupt("return",n);case 13:return e.state.currentCustomData=n,t.abrupt("return",n);case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.loadFittingHardwareToSense=function(){var t=wg(s.a.mark((function t(r){var n,o,i,A,a,u,c,l,g,f,p;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=Object(_e.uniq)(Object(_e.flatten)(Object(_e.map)(r.hardware,(function(e){return e.map((function(e){return e.brandGoodId}))})))),e.state.casbinModelIdMap={},n.length){t.next=4;break}return t.abrupt("return");case 4:return o=e.getStateManager(),t.next=7,Promise.allSettled(Object(_e.map)(n,function(){var e=wg(s.a.mark((function e(t){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,DB(t);case 2:return r=e.sent,e.abrupt("return",[t,r]);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 7:return i=t.sent,t.next=10,RB(n);case 10:for(p in A=t.sent,a=Object(_e.mapValues)(Object(_e.keyBy)(Object(_e.filter)(i,(function(e){return"fulfilled"===e.status})).map((function(e){return e.value})),(function(e){return e[0]})),(function(e){return e[1]})),u=o.core.design.getCustom(),c=u.getParamModels(),l=[],g={},f=function(e){var t=r.hardware[e],n=Pr(c,e);if(n){var o=n.getConcatenatedMatrix(),i=n.getSize(),s=(new w.a).makeTranslation(new M.a(-i.x/2,i.y/2,-i.z/2)),u=o.clone().multiply(s),f=Object(_e.map)(t,(function(e){var t=a[e.brandGoodId],r=A[e.brandGoodId]||{x:0,y:0,z:0};if(t){var o=t.paramModelData,i=bg(t,["paramModelData"]),s=e.rotate,c=(new fe).parse(o);Object(Cg.attach)(c,Object(Cg.toAttachedMap)(i)),c.setIsAppendHardware(!0),c.setLinkedIds(e.linkedIds),c.setHardwareData(e),c.linkParamModelId=n.id;var l=u.clone().multiply((new w.a).compose(new M.a(e.position),new b.a(s.x,s.y,s.z),new M.a(e.scale)).multiply((new w.a).setPosition(new M.a(r)))),f=kr.a.decompose(l),p=f.rotation,h=f.position,d=f.scale,I=new M.a(h);return c.setPosition({x:I.x,y:I.y,z:I.z}),c.setRotation({x:p.x,y:p.y,z:p.z}),c.setScale(d),c.assignUniqueId(),g[e.id]=c.id,c}})).filter((function(e){return!!e}));l.push.apply(l,mg(f))}else Object({DEPLOY_VERSION:1,APP_VERSION:1}).IS_DEV_OR_TESTING&&console.warn("当前五金信息找不到对应模型!")},r.hardware)f(p);if(!l.length){t.next=23;break}return t.next=21,pg.updateAttacheds(l);case 21:u.addParamModels.apply(u,l),e.state.casbinModelIdMap=g;case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e}return t=i,(r=[{key:"module",value:function(){return"baseDesignInfo"}}])&&Dg(t.prototype,r),n&&Dg(t,n),i}(Bn.AXR);function Og(e){return(Og="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function kg(e,t){return(kg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ng(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ug(e);if(t){var o=Ug(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Gg(this,r)}}function Gg(e,t){return!t||"object"!==Og(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ug(e){return(Ug=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var jg,Yg,Vg,Hg,Kg,Jg,qg,Wg,zg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kg(e,t)}(i,e);var t,r,n,o=Ng(i);function i(){var e;return Tg(this,i),(e=o.apply(this,arguments)).paramModelConstructor=fe,e}return t=i,(r=[{key:"parseParamModelAssemblies",value:function(e){var t=this;return e.forEach((function(e){var r=(new ve).parse(e,t,{isRootWorldMatrix:!0});t.addParamModelAssembly(r)})),this}}])&&Lg(t.prototype,r),n&&Lg(t,n),i}(dl),Xg=r(76),Zg=Symbol("fitting-data"),$g=Symbol("groove-fitting-entity"),ef=Symbol("intersect-data"),tf=Symbol("param-model-hint-entity"),rf=Symbol("fitting-hint-entity"),nf=Symbol("plank-outline-hint-entity");!function(e){e.FAIL="fail",e.SUCCESS="success",e.LOADING="loading"}(jg||(jg={})),function(e){e[e.READY=0]="READY",e[e.LOADING=1]="LOADING",e[e.FAILED=2]="FAILED",e[e.INVALID=3]="INVALID",e[e.SUCCESS=4]="SUCCESS"}(Yg||(Yg={})),function(e){e[e.READY=0]="READY",e[e.RUNNING=1]="RUNNING",e[e.FAILED=2]="FAILED",e[e.SUCCESS=3]="SUCCESS"}(Vg||(Vg={})),function(e){e.SCENE_ID="cp"}(Hg||(Hg={})),function(e){e[e.theme=1735419]="theme",e[e.sceneBG=15461612]="sceneBG",e[e.outline=0]="outline"}(Kg||(Kg={})),function(e){e.selectBlank="sb",e.renderModeChange="r",e.doorVisibilityChange="d"}(Jg||(Jg={})),function(e){e[e.opaqueModel=1]="opaqueModel",e[e.translucentModel=.4]="translucentModel",e[e.transparentModel=0]="transparentModel"}(qg||(qg={})),function(e){e.SHADING="0",e.OUTLINE_WITH_SHADING="1",e.TRANSLUCENT="2",e.OUTLINE_AND_TRANSLUCENT="3"}(Wg||(Wg={}));var of,Af=[];function af(e){return(af="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sf(e){return function(e){if(Array.isArray(e))return uf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return uf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uf(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cf(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function lf(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){cf(i,n,o,A,a,"next",e)}function a(e){cf(i,n,o,A,a,"throw",e)}A(void 0)}))}}function gf(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ff(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function hf(e,t){return(hf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function df(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=yf(e);if(t){var o=yf(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return If(this,r)}}function If(e,t){return!t||"object"!==af(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yf(e){return(yf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.design="design",e.series="series"}(of||(of={}));var Cf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hf(e,t)}(i,e);var t,r,n,o=df(i);function i(){var e;return ff(this,i),(e=o.apply(this,arguments)).state=e.stateCreator.create({main:Yg.READY,design:Yg.READY,series:Yg.READY}),e.$reducerState=e.reducerCreator.create(e.state),e.$actionLoad=e.unitCreator.async((function(t){t.started.latest(s.a.mark((function e(t,r){var n,o,i,A;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hg.getParamModelDataByBrandGoodId(t);case 2:return n=e.sent,o=n.paramModelData,i=gf(n,["paramModelData"]),A=(new fe).parse(o),Object(Cg.attach)(A,Object(Cg.toAttachedMap)(i)),e.next=9,pg.updateAttacheds([A]);case 9:return r.core.design.getCustom().addParamModels(A),r.core.fittingDesign.setFittings(Af),e.next=13,Object(Xg.put)(this.$actionLoad.done.message({params:t,result:Yg.SUCCESS}));case 13:case"end":return e.stop()}}),e,this)}))),t.done.produce(e.$reducerState,(function(e,t){e.main=t.result}))})),e.$actionAddModelToSense=e.unitCreator.async((function(t){t.started.latest(s.a.mark((function e(t,r){var n,o,i,A,a,u;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.custom,o=t.needAttach,i=n.getParamModels(),A=n.getParamModelAssemblies(),!o){e.next=6;break}return e.next=6,Promise.all(i.map(function(){var e=lf(s.a.mark((function e(t){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hg.getParamModelDataByBrandGoodId(t.getBrandGoodId());case 2:r=e.sent,Object(Cg.attach)(t,Object(Cg.toAttachedMap)(r));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 6:if(r.core.design.setCustom(n),a=i.filter((function(e){return!e.getAssembly()})),!o){e.next=12;break}return u=[].concat(sf(a),sf(A)),e.next=12,pg.updateAttacheds(u);case 12:return e.next=14,Object(Xg.put)(this.$actionAddModelToSense.done.message({params:{custom:n,needAttach:o},result:Yg.SUCCESS}));case 14:case"end":return e.stop()}}),e,this)}))),t.done.produce(e.$reducerState,(function(e,t){e.main=t.result}))})),e.$actionAddParamModelToSense=e.unitCreator.async((function(t){t.started.latest(s.a.mark((function e(t,r){var n,o;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.map((function(e){var t=e.paramModelData,r=gf(e,["paramModelData"]),n=(new fe).parse(t,new zg);return Object(Cg.attach)(n,Object(Cg.toAttachedMap)(r)),n})),e.next=3,pg.updateAttacheds(o);case 3:return(n=r.core.design.getCustom()).addParamModels.apply(n,sf(o)),e.next=6,Object(Xg.put)(this.$actionAddParamModelToSense.done.message({params:t,result:Yg.SUCCESS}));case 6:case"end":return e.stop()}}),e,this)}))),t.done.produce(e.$reducerState,(function(e,t){e.main=t.result}))})),e.$actionAddParamModelAssemblyToSense=e.unitCreator.async((function(t){t.started.latest(s.a.mark((function e(t,r){var n,o,i,A;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.core.design.getCustom(),o=new zg,i=t.map((function(e){return(new ve).parse(e,o)})),A=o.getParamModels(),e.next=6,Promise.all(A.map(function(){var e=lf(s.a.mark((function e(t){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hg.getParamModelDataByBrandGoodId(t.getBrandGoodId());case 2:r=e.sent,Object(Cg.attach)(t,Object(Cg.toAttachedMap)(r));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 6:return e.next=8,pg.updateAttacheds(sf(i));case 8:return n.addParamModelAssemblies.apply(n,sf(i)),n.addParamModels.apply(n,sf(A)),e.next=12,Object(Xg.put)(this.$actionAddParamModelAssemblyToSense.done.message({params:t,result:Yg.SUCCESS}));case 12:case"end":return e.stop()}}),e,this)}))),t.done.produce(e.$reducerState,(function(e,t){e.main=t.result}))})),e}return t=i,(r=[{key:"module",value:function(){return"entry"}}])&&pf(t.prototype,r),n&&pf(t,n),i}(Bn.AXR);function Ef(e){return(Ef="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vf(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mf(e,t)}function mf(e,t){return(mf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=_f(e);if(t){var o=_f(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return bf(this,r)}}function bf(e,t){return!t||"object"!==Ef(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _f(e){return(_f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Bn.AXR;var wf=function(e){vf(r,e);var t=Qf(r);function r(){return Bf(this,r),t.apply(this,arguments)}return r}(Bn.AXRPartial),Sf=(Bn.AXRManager,Math.sqrt(2)),Df=Math.PI/6,Rf=Math.PI/3+Math.PI;function Mf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rf,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Df,n=e.getPosition(),o=e.getSize(),i=n.clone(),A=o.length()*Sf,a=new M.a(Math.cos(r)*Math.cos(t),Math.cos(r)*Math.sin(t),Math.sin(r)).mul(A).applyMatrix4(e.getMatrix());return{lookAt:i,position:a}}var xf=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5e3,t=arguments.length>1?arguments[1]:void 0;return new Promise((function(r){setTimeout(r,e,t)}))};function Pf(e){var t,r,n,o=function(e){return function(){void 0!==n&&(clearTimeout(n),n=void 0);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];e.call.apply(e,[this].concat(r))}};return{promise:new Promise((function(i,A){t=o(i),r=o(A),"number"==typeof e&&(n=setTimeout((function(){n=void 0,r(new Error("defer waiting timeout, ".concat(e,"ms")))}),e))})),resolve:t,reject:r}}function Ff(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Of(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ff(Object(r),!0).forEach((function(t){Tf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ff(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Tf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lf(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}var kf=function(){var e,t=(e=s.a.mark((function e(t){var r,n,o,i,A,a,u,c,l,g,f;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=YI(),n=r.baseDesignInfo,e.next=3,n.getCurrentBaseDesignInfo();case 3:return o=e.sent,i=o.designId,A=o.levelid,a={modelid:null!=t?t:"",designid:i,levelid:A,toolType:0},u=n.getStateManager().core.design.getCustom(),t||((c=u.getParamModelAssemblies()).length?a.modelid=c[0].id:(l=u.getParamModels().filter((function(e){return!e.isAppendHardware}))).length&&(a.modelid=l[0].id)),e.next=11,n.getCurrentCustomData(null!=t?t:a.modelid);case 11:return g=e.sent,f=g.toolType,a.toolType=f,e.abrupt("return",a);case 15:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){Lf(i,n,o,A,a,"next",e)}function a(e){Lf(i,n,o,A,a,"throw",e)}A(void 0)}))});return function(e){return t.apply(this,arguments)}}();function Nf(e){return function(e){if(Array.isArray(e))return Gf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Gf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gf(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Uf(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new zg;r.parseParamModels(e.paramModels).parseParamModelGroups(e.paramModelGroups).parseParamModelAssemblies(e.paramModelCombinations);var n=r.getParamModelAssemblies(),o=(t=Nf(r.getParamModels())).concat.apply(t,Nf(n.map((function(e){return e.getParamModels()}))));return o=o.filter((function(e){return!e.isAccessory()})),Object(_e.uniqBy)(u.ParamModelUtils.collectAccessories(o),"id").forEach((function(e){e.toLocalMatrix()})),{paramModels:o,paramModelAssemblies:n}}function jf(e){return(jf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yf(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function Vf(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){Yf(i,n,o,A,a,"next",e)}function a(e){Yf(i,n,o,A,a,"throw",e)}A(void 0)}))}}function Hf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Jf(e,t){return(Jf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=zf(e);if(t){var o=zf(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Wf(this,r)}}function Wf(e,t){return!t||"object"!==jf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zf(e){return(zf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xf(e){return function(e){if(Array.isArray(e))return Zf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Zf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zf(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zf(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $f(e){var t=e.map((function(e){return e.subModels&&e.subModels.length?$f(e.subModels):[]})).flat();return t.push.apply(t,Xf(e)),t}var ep=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jf(e,t)}(f,e);var t,r,n,o,i,A,a,c,l,g=qf(f);function f(){var e;return Hf(this,f),(e=g.apply(this,arguments)).state=e.stateCreator.create({loading:jg.FAIL,allSubModels:[],result:void 0,currModelId:""}),e.$reducerState=e.reducerCreator.create(e.state),e.$actionSetModelId=e.unitCreator.sync((function(t){t.produce(e.$reducerState,(function(e,t){e.currModelId!==t&&(e.result=void 0,e.allSubModels=[]),e.currModelId=t}))})),e.$actionLoadParamModelJsonData=e.unitCreator.async((function(t){t.started.every(s.a.mark((function e(t){var r,n,o,i,A,a,u,c,l,g,f,p,h,d,I,y;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.modelId,n=t.defer,o=t.hasFitting,i=void 0!==o&&o,A=t.force,a=void 0!==A&&A,u=t.templateId,c=this.state.state,l=c.currModelId,g=c.result,f=c.currTemplateId,r){e.next=4;break}throw new Error("not selected model!");case 4:if(p=r===l,h=f===u,d=this.$actionLoadParamModelJsonData,e.prev=7,I=p&&!a&&h?g:void 0,!i||I){e.next=13;break}return e.next=12,mB(r,u);case 12:I=e.sent;case 13:if(I){e.next=18;break}return gB.delete(r),e.next=17,QB(r,u);case 17:I=e.sent;case 18:if(I){e.next=20;break}throw new Error("输入json数据出现异常");case 20:return y=p&&!u?$f(I.paramModel):this.state.state.allSubModels,p&&YI().scene.$actionToggleSelectModel.dispatch(!0),e.next=24,d.done.dispatch({params:t,result:{ossContent:I,allSubModels:y}});case 24:e.next=31;break;case 26:return e.prev=26,e.t0=e.catch(7),e.next=30,d.failed.dispatch({params:t});case 30:n&&n.reject(e.t0);case 31:case"end":return e.stop()}}),e,this,[[7,26]])}))),t.done.every((function(e){var t=e.params.defer;t&&t.resolve(e.result.ossContent)})),t.started.produce(e.$reducerState,(function(e,t){e.loading=jg.LOADING})),t.done.produce(e.$reducerState,(function(e,t){var r=t.result,n=r.ossContent,o=r.allSubModels,i=t.params,A=i.templateId,a=i.modelId===e.currModelId;e.loading=jg.SUCCESS,e.result=a?n:e.result,e.allSubModels=a?o:e.allSubModels,e.currTemplateId=A})),t.failed.produce(e.$reducerState,(function(e,t){e.loading=jg.FAIL}))})),e}return t=f,(r=[{key:"module",value:function(){return"viewParamModel"}},{key:"viewParamModelById",value:(l=Vf(s.a.mark((function e(t){var r,n,o,i,A,a,u,c=this;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object(_e.isArray)(t)?t[0]:t,this.$actionSetModelId.dispatchResolve(r),(n=YI().scene).cameraController.$actionInit.dispatch(),this.resetView(),(o=this.getAxr($h).fittingDesignSense).initFittingDesign(),function(){var e=Vf(s.a.mark((function e(){var t,n;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Pf(),o.$actionLoadFittingDesign.started.dispatch({defer:t,params:{modelid:r}}),e.prev=2,e.next=5,t.promise;case 5:n=e.sent,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(2),Object({DEPLOY_VERSION:1,APP_VERSION:1}).IS_DEV&&console.log(e.t0);case 11:return e.prev=11,e.next=14,c.$actionLoadParamModelJsonData.started.dispatchResolve({modelId:r,hasFitting:!!n});case 14:return e.finish(11);case 15:case"end":return e.stop()}}),e,null,[[2,8,11,15]])})));return function(){return e.apply(this,arguments)}}()(),n.$actionToggleSelectModel.dispatchResolve(!1),e.next=12,this.getAxr(Fg).getCurrentCustomData(r);case 12:return i=e.sent,A=new zg,i.context&&A.unSerialize(i.context),a=Uf(i,A),(u=new G).addParamModels.apply(u,Xf(a.paramModels)),u.addParamModelAssemblies.apply(u,Xf(a.paramModelAssemblies)),e.next=21,this.getAxr(Cf).$actionAddModelToSense.started.dispatchResolve({custom:u,needAttach:!i.context});case 21:case"end":return e.stop()}}),e,this)}))),function(e){return l.apply(this,arguments)})},{key:"refreshCustomModelData",value:(c=Vf(s.a.mark((function e(){var t,r,n,o,i,A;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.getStateManager().core.design.getCustom(),r=t.getParamModels().filter((function(e){return!e.isAppendHardware})),n=t.getParamModelAssemblies(),0!==r.length||0!==n.length){e.next=5;break}throw new Error("No custom model in the scene!");case 5:return e.next=7,vB(this.state.state.currModelId);case 7:return o=e.sent,i=Uf(o),r.forEach((function(e){t.removeParamModel(e)})),n.forEach((function(e){t.removeParamModelAssembly(e)})),e.next=13,Promise.all(i.paramModels.map(function(){var e=Vf(s.a.mark((function e(t){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hg.getParamModelDataByBrandGoodId(t.getBrandGoodId());case 2:r=e.sent,Object(Cg.attach)(t,Object(Cg.toAttachedMap)(r));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 13:return A=i.paramModels.filter((function(e){return!e.getAssembly()})),e.next=16,pg.updateAttacheds([].concat(Xf(A),Xf(i.paramModelAssemblies)));case 16:t.addParamModels.apply(t,Xf(i.paramModels)),t.addParamModelAssemblies.apply(t,Xf(i.paramModelAssemblies));case 18:case"end":return e.stop()}}),e,this)}))),function(){return c.apply(this,arguments)})},{key:"viewSelectedParamModel",value:(a=Vf(s.a.mark((function e(){var t,r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Ig(yg.MiniAppSelectModelService),e.next=3,null==t?void 0:t.getSelected();case 3:if(!(null==(r=e.sent)?void 0:r.length)){e.next=9;break}return e.next=7,this.viewParamModelById(Object(_e.map)(r,"id").filter((function(e){return!!e})));case 7:e.next=10;break;case 9:throw new Error("current not selected any parammodel!");case 10:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"getParamModelJsonData",value:(A=Vf(s.a.mark((function e(t){var r,n,o,i,A,a,u,c,l,g,f,p;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.state.state,o=(n=t||{}).timeout,i=void 0===o?5e4:o,A=n.modelId,a=void 0===A?r.currModelId:A,u=n.force,c=void 0!==u&&u,l=n.templateId,c){e.next=14;break}return f=Pf(),this.getAxr($h).fittingDesignSense.$actionLoadFittingDesign.started.dispatch({defer:f,params:{modelid:a}}),e.prev=5,e.next=8,f.promise;case 8:g=e.sent,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(5),console.log(e.t0);case 14:return p=Pf(i),this.$actionLoadParamModelJsonData.started.dispatch({defer:p,modelId:a,hasFitting:!!g,force:c,templateId:l}),e.abrupt("return",p.promise);case 17:case"end":return e.stop()}}),e,this,[[5,11]])}))),function(e){return A.apply(this,arguments)})},{key:"validateModelStable",value:function(e){var t=this.getStateManager().core.design.getCustom(),r=Pr(u.ParamModelUtils.flattenModels(t.getParamModels()),e);if(r){for(var n=[r],o={total:0,invalidateTotal:0,validate:!0,invalidateList:[]};n.length;){var i=n.shift();i.getType()===Tr.ParamModelType.PARAM_PRIMITIVE&&i.getLegal()?(o.total++,i.getVersionReflectedId()||(o.invalidateTotal++,o.validate=!1,o.invalidateList.push(i.id))):n.push.apply(n,Xf(i.getChildNodes()))}return o}}},{key:"getTopModelList",value:(i=Vf(s.a.mark((function e(t){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ig(pl),e.next=3,r.getTopParamModels(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"getParamModelPhotoData",value:(o=Vf(s.a.mark((function e(t){var r,n,o,i;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=Object(_e.castArray)(t),n=Ig(yg.MiniAppParamModelDataInfoService),o=[],i=r.length-1;case 4:if(!(i>=0)){e.next=10;break}return e.next=7,n.getParamModelPhotoById(r[i]).then((function(e){o.push(e)}));case 7:--i,e.next=4;break;case 10:return e.abrupt("return",o);case 11:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"resetView",value:function(){var e=this.getStateManager().core,t=e.design.getCustom();t.clearAllParamModels();var r=t.getParamModelAssemblies();r.length&&r.map((function(e){return t.removeParamModelAssembly(e)})),e.fittingDesign.setIntersects([]),e.fittingDesign.setPlankFaceHintModels([])}}])&&Kf(t.prototype,r),n&&Kf(t,n),f}(Bn.AXR);function tp(e){return(tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function np(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rp(Object(r),!0).forEach((function(t){op(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function op(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ip(e){return function(e){if(Array.isArray(e))return Ap(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ap(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ap(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ap(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ap(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function sp(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){ap(i,n,o,A,a,"next",e)}function a(e){ap(i,n,o,A,a,"throw",e)}A(void 0)}))}}function up(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cp(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lp(e,t,r){return(lp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=hp(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}function gp(e,t){return(gp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=hp(e);if(t){var o=hp(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return pp(this,r)}}function pp(e,t){return!t||"object"!==tp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hp(e){return(hp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dp={holes:{},grooves:{},hardwares:{},hardwareGrooves:{}},Ip=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gp(e,t)}(A,e);var t,r,o,i=fp(A);function A(){var e;return up(this,A),(e=i.apply(this,arguments)).state=e.stateCreator.create({autoSave:!0,designLoading:jg.FAIL,design:Object(_e.cloneDeep)(dp)}),e.$reducerState=e.reducerCreator.create(e.state),e.$actionInit=e.unitCreator.sync((function(e){e.latest(s.a.mark((function e(t,r){var n,o,i,A,a,u,c;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this.getAxr(Cf);case 1:return o=n.$actionAddModelToSense.done.messageType(),i=this.$actionRestoreFittingDesign.messageType(),e.next=6,Object(Xg.take)([o,i]);case 6:A=r.core,a=A.fittingDesign,u=A.design,a.setFittings([]),a.setGrooveFittings([]),u.getCustom().getParamModels().forEach((function(e){e.isAppendHardware&&e.dispose()})),c=this.state.state.design,this.fittingAddDataToFittingDesignSense(c),this.getAxr(Fg).loadFittingHardwareToSense({hardware:c.hardwares}),e.next=1;break;case 16:case"end":return e.stop()}}),e,this)})))})),e.$actionEnableAutoSave=e.unitCreator.sync((function(t){t.produce(e.$reducerState,(function(e,t){e.autoSave=t}))})),e.initFittingDesign=function(){e.$actionRestoreFittingDesign.dispatch(Object(_e.cloneDeep)(dp))},e.getConnectedFittingDesign=function(){var t=sp(s.a.mark((function t(r){var n,o,i,A,a,u,c,l,g,f,p=arguments;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=p.length>1&&void 0!==p[1]&&p[1],o=e.state.state.design,r){t.next=4;break}return t.abrupt("return",Object(_e.cloneDeep)(o));case 4:if(i={holes:{},grooves:{},hardwares:{},hardwareGrooves:{}},!n){t.next=26;break}A=o.hardwares||{},t.t0=s.a.keys(A);case 8:if((t.t1=t.t0()).done){t.next=18;break}if(c=t.t1.value,!A.hasOwnProperty(c)){t.next=16;break}if(!(l=Object(_e.find)(A[c]||[],(function(e){return e.id===r})))){t.next=16;break}return u=c,a=l,t.abrupt("break",18);case 16:t.next=8;break;case 18:if(a&&u){t.next=20;break}throw new Error("当前五金不存在!");case 20:g=a.linkedIds,f=function(e){return g.includes(e.id)},i.holes[u]=Object(_e.filter)(o.holes[u],f),i.grooves[u]=Object(_e.filter)(o.grooves[u],f),t.next=27;break;case 26:Object(_e.keys)(i).forEach((function(e){o[e]&&o[e][r]&&(i[e][r]=Object(_e.cloneDeep)(o[e][r]))}));case 27:return t.abrupt("return",i);case 28:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),e.fittingAddDataToFittingDesignSense=function(t){var r=e.stateManager.core,o=r.fittingDesign,i=r.design,A=YI().fittingDesign.senseSetting.getSenseSettings(),a=Object(_e.pick)(A,["holeColor","grooveColor","holeOpacity","grooveOpacity"]),s=t.holes,c=void 0===s?{}:s,l=t.grooves,g=void 0===l?{}:l,f=t.hardwareGrooves,p=void 0===f?{}:f,h=u.ParamModelUtils.flattenModels(i.getCustom().getParamModels()),d={findRelativeModel:function(e){return Pr(h,e)},transformModel:Dr};o.addFittings([].concat(ip(vu(c,np(np({},d),{},{type:n.HOLE,defaultConfig:a}))),ip(vu(g,np(np({},d),{},{type:n.GROOVE,defaultConfig:a}))))),o.addGrooveFittings(vu(p,np(np({},d),{},{type:n.HARDWARE_GROOVE,transformModel:En,defaultConfig:a})))},e.appendFittingDataToFittingDesign=function(){var t=sp(s.a.mark((function t(r,n){var o,i,A,a,u,c,l,g,f,p,h;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=e.state.state,A=i.design,a=i.autoSave,u=!r.id||r.id===A.id,c=dp,l=n.timeout,g=n.save,f=void 0===g?a:g,p={id:null!==(o=r.id)&&void 0!==o?o:A.id,holes:np(np({},u?A.holes:c.holes),r.holes||{}),grooves:np(np({},u?A.grooves:c.grooves),r.grooves||{}),hardwares:np(np({},u?A.hardwares:c.hardwares),r.hardwares||{}),hardwareGrooves:np(np({},u?A.hardwareGrooves:c.hardwareGrooves),r.hardwareGrooves||{})},Object(_e.pull)(Object(_e.keys)(p),"id").forEach((function(e){var t=p[e];Object(_e.keys)(t).forEach((function(e){0===t[e].length&&delete t[e]}))})),!f){t.next=12;break}return h=Pf(l),e.$actionSaveFittingDesign.started.dispatch({defer:h,design:p}),t.abrupt("return",h.promise);case 12:e.$actionRestoreFittingDesign.dispatch(p);case 13:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),e.$actionRestoreFittingDesign=e.unitCreator.sync((function(t){t.produce(e.$reducerState,(function(e,t){e.design=t}))})),e.$actionLoadFittingDesign=e.unitCreator.async((function(e){e.started.every(s.a.mark((function e(t,r){var n,o,i,A;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.$actionLoadFittingDesign,o=t.params,e.next=4,kf(o.modelid);case 4:return i=e.sent,e.prev=5,e.next=8,pB(np(np({},o),i));case 8:A=e.sent,n.done.dispatch({params:t,result:{designData:A,modelId:i.modelid}}),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),n.failed.dispatch({params:t});case 15:case"end":return e.stop()}}),e,this,[[5,12]])}))),e.done.every((function(e,t){var r=this.$actionRestoreFittingDesign,n=e.result.designData?e.result.designData:Object(_e.cloneDeep)(dp),o=this.getAxr(ep).state.state.currModelId;e.result.modelId===o&&r.dispatch(n);var i=e.params.defer;i&&i.resolve(e.result.designData)})),e.failed.every((function(e,t){var r,n=this.getAxr(ep).state.state.currModelId;(null===(r=e.result)||void 0===r?void 0:r.modelId)===n&&this.initFittingDesign();var o=e.params.defer;o&&o.reject(new Error("load fitting design error"))}))})),e.$actionClearFittingDesign=e.unitCreator.async((function(e){e.started.every(s.a.mark((function e(t,r){var n,o,i,A,a;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.getAxr(ep).state.state.currModelId,o=t.modelId,i=void 0===o?n:o,e.next=4,kf(i);case 4:return A=e.sent,a=this.$actionClearFittingDesign,e.prev=6,e.next=9,CB(A);case 9:a.done.dispatch({params:t,result:void 0}),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(6),a.failed.dispatch({params:t});case 15:case"end":return e.stop()}}),e,this,[[6,12]])}))),e.done.every(s.a.mark((function e(t,r){var n,o,i;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=this.getAxr(ep).state.state.currModelId,(null!==(n=t.params.modelId)&&void 0!==n?n:o)===o&&this.initFittingDesign(),(i=t.params.defer)&&i.resolve();case 5:case"end":return e.stop()}}),e,this)}))),e.failed.every(s.a.mark((function e(t,r){var n;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=t.params.defer)&&n.reject(new Error("delete error"));case 2:case"end":return e.stop()}}),e)})))})),e.$actionSaveFittingDesign=e.unitCreator.async((function(e){e.started.every(s.a.mark((function e(t){var r,n,o,i;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.design,n=void 0===r?this.state.state.design:r,e.next=3,kf(n.id);case 3:return o=e.sent,i=this.$actionSaveFittingDesign,e.prev=5,e.next=8,yB(np(np({},n),{},{id:o.modelid}),o);case 8:i.done.dispatch({params:t,result:void 0}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(5),i.failed.dispatch({params:t,result:e.t0});case 14:case"end":return e.stop()}}),e,this,[[5,11]])}))),e.failed.every(s.a.mark((function e(t,r){var n;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=t.params.defer)&&n.reject(new Error("save failed!"));case 2:case"end":return e.stop()}}),e)}))),e.done.every(s.a.mark((function e(t,r){var n,o,i;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.params.design,o=this.getAxr(ep).state.state.currModelId,!n||n.id&&n.id!==o||this.$actionRestoreFittingDesign.dispatch(n),(i=t.params.defer)&&setTimeout((function(){i.resolve()}));case 5:case"end":return e.stop()}}),e,this)})))})),e}return t=A,(r=[{key:"init",value:function(){lp(hp(A.prototype),"init",this).call(this),this.$actionInit.dispatch()}},{key:"isAutoSaveEnabled",value:function(){return this.state.state.autoSave}}])&&cp(t.prototype,r),o&&cp(t,o),A}(wf);function yp(e){return(yp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ep(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Bp(e,t){return(Bp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Qp(e);if(t){var o=Qp(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return mp(this,r)}}function mp(e,t){return!t||"object"!==yp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qp(e){return(Qp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bp(e,t)}(i,e);var t,r,n,o=vp(i);function i(){var e;return Cp(this,i),(e=o.apply(this,arguments)).state=e.stateCreator.create({option:{}}),e.$reducerState=e.reducerCreator.create(e.state),e.$actionUpdateFittingHintConf=e.unitCreator.sync((function(t){t.latest((function(){e.rerenderToSense()})),t.produce(e.$reducerState,(function(e,t){e.option=t}))})),e}return t=i,(r=[{key:"setFittingHint",value:function(e){this.$actionUpdateFittingHintConf.dispatch(e)}},{key:"clearFittingHint",value:function(e){var t=e?Object(_e.omit)(this.state.state.option,e):{};this.$actionUpdateFittingHintConf.dispatch(t)}},{key:"rerenderToSense",value:function(){var e=this.state.state.option,t=this.stateManager.core,r=t.design,n=t.fittingDesign,o=r.getCustom().getParamModels(),i=n.getFittings(),A=n.getGrooveFittings(),a=Object(_e.map)(e,(function(e,t){var r=o.find((function(e){return e.id===t&&e.isAppendHardware}))||i.find((function(e){return e.id===t}))||A.find((function(e){return e.id===t}));if(r)return new tt({linkModel:r,hintOutline:e.outline})})).filter((function(e){return!!e}));n.setFittingHintModels(a)}}])&&Ep(t.prototype,r),n&&Ep(t,n),i}(wf);function _p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var wp=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__changeMap={}}var t,r,n;return t=e,(r=[{key:"getHidden",value:function(){return this.isHidden}},{key:"setHidden",value:function(e){this.__trackUpdateField({field:"isHidden"},this.isHidden,e),this.isHidden=e}},{key:"__trackUpdateField",value:function(e,t,r){this.__changeMap.update=this.__changeMap.update||[];var n=this.__changeMap.update,o=e.field;t===r||n.some((function(e){return e.field===o}))||n.push({field:o})}}])&&_p(t.prototype,r),n&&_p(t,n),e}();function Sp(e){var t,r=new wp;if(r.id=e.id,e instanceof fe){if(!e.isAppendHardware)return;t=n.HARDWARE,r.isHidden=e.getInvisible(),r.originalData=e.hardwareData}else r.isHidden=!e.visible,t=e.type,r.originalData=e.fittingData;return r.linkParamModelId=e.linkParamModelId,r.modelType=t,r}function Dp(e){return(Dp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rp(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=xp(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,A=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return A=e.done,e},e:function(e){a=!0,i=e},f:function(){try{A||null==r.return||r.return()}finally{if(a)throw i}}}}function Mp(e){return function(e){if(Array.isArray(e))return Pp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||xp(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xp(e,t){if(e){if("string"==typeof e)return Pp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pp(e,t):void 0}}function Pp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Op(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Tp(e,t){return(Tp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Np(e);if(t){var o=Np(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return kp(this,r)}}function kp(e,t){return!t||"object"!==Dp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Np(e){return(Np=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Gp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tp(e,t)}(A,e);var t,r,o,i=Lp(A);function A(){return Fp(this,A),i.apply(this,arguments)}return t=A,(r=[{key:"getAllFittingModels",value:function(e){var t=this.findHardwareParamModels(this.stateManager.core.design.getCustom().getParamModels()),r=this.stateManager.core.fittingDesign.getFittings(),n=this.stateManager.core.fittingDesign.getGrooveFittings();return[].concat(Mp(t),Mp(r),Mp(n)).filter((function(t){return!e||t.linkParamModelId===e})).map((function(e){return Sp(e)}))}},{key:"findHardwareParamModels",value:function(e){var t,r=[],n=Rp(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;o.isAppendHardware&&r.push(o),r.push.apply(r,Mp(this.findHardwareParamModels(o.getChildNodes())))}}catch(e){n.e(e)}finally{n.f()}return r}},{key:"save",value:function(e){var t,r=[],o=[],i=Rp(e);try{for(i.s();!(t=i.n()).done;){var A=t.value;A.modelType===n.HARDWARE?r.push(A):o.push(A)}}catch(e){i.e(e)}finally{i.f()}this.saveHardwareFittingModelLite(r),this.saveFittingModelLite(o)}},{key:"saveHardwareFittingModelLite",value:function(e){var t=this.stateManager.core.design.getCustom().getParamModels();e.forEach((function(e){var r=Pr(t,e.id);if(r){var n=e.__changeMap.update;(void 0===n?[]:n).forEach((function(t){"isHidden"===t.field&&r.setInvisible(e.getHidden())})),e.__changeMap.update=[]}})),nB().viewer.triggerReducer()}},{key:"saveFittingModelLite",value:function(e){var t=this.stateManager.core.fittingDesign.getFittings(),r=this.stateManager.core.fittingDesign.getGrooveFittings(),o=this.stateManager.core.fittingDesign.getFittingHintModels();e.forEach((function(e){var i;e.modelType===n.HARDWARE_GROOVE?i=r.find((function(t){return t.id===e.id})):e.modelType!==n.HOLE&&e.modelType!==n.GROOVE||(i=t.find((function(t){return t.id===e.id})));var A=o.find((function(t){return t.linkModel.id===e.id}));if(i){var a=e.__changeMap.update;(void 0===a?[]:a).forEach((function(t){"isHidden"===t.field&&(null==i||i.setVisible(!e.getHidden()),null==A||A.setVisible(!e.getHidden()))})),e.__changeMap.update=[]}}))}}])&&Op(t.prototype,r),o&&Op(t,o),A}(wf);function Up(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Up(Object(r),!0).forEach((function(t){Yp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Up(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vp(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function Hp(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){Vp(i,n,o,A,a,"next",e)}function a(e){Vp(i,n,o,A,a,"throw",e)}A(void 0)}))}}var Kp=function(){var e=Hp(s.a.mark((function e(t,r){var n,o;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=ou(),e.next=3,n.post("/cos/api/c/task/intersected",{modelIds:t},{params:jp(jp({},r),{},{compress:1})});case 3:return o=e.sent,e.abrupt("return",o.data);case 5:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}(),Jp=function(){var e=Hp(s.a.mark((function e(t){var r,n;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=ou(),e.next=3,r.gzipGet("/cos/api/task/intersected",{params:{taskId:t}});case 3:return n=e.sent,e.abrupt("return",n.data.d);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),qp=function(){var e=Hp(s.a.mark((function e(t){var r,n;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=ou(),e.next=3,r.gzipGet("/cos/api/task/intersected/data",{params:{taskid:t}});case 3:return n=e.sent,e.abrupt("return",n.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function Wp(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function zp(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){Wp(i,n,o,A,a,"next",e)}function a(e){Wp(i,n,o,A,a,"throw",e)}A(void 0)}))}}function Xp(e,t){return Zp.apply(this,arguments)}function Zp(){return(Zp=zp(s.a.mark((function e(t,r){var n,o,i,A,a,u,c,l,g,f,p,h,d=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=d.length>2&&void 0!==d[2]?d[2]:{},o=n.times,i=void 0===o?50:o,A=n.delay,a=void 0===A?1e3:A,u=n.firstDelay,c=n.errorFilter,l=void 0===c?_e.noop:c,e.next=4,t();case 4:return g=e.sent,e.next=7,xf(null!=u?u:a);case 7:f=0;case 8:return f++,p=void 0,h=void 0,e.prev=12,e.next=15,r(g);case 15:h=e.sent,e.next=21;break;case 18:e.prev=18,e.t0=e.catch(12),p=e.t0;case 21:if(!p){e.next=25;break}if(!1!==l(p,f)){e.next=25;break}throw new Error("break loop because user cancel!");case 25:if(![dB.CANCEL,dB.TIMEOUT,dB.FAIL,dB.UNKNOWN].includes(h.status)){e.next=29;break}throw new Error("task status: ".concat(h.status));case 29:if(h.status!==dB.SUCCESS){e.next=31;break}return e.abrupt("return",h.result);case 31:if(!(f>=i)){e.next=33;break}throw new Error("maximum limit is exceeded!");case 33:return e.next=35,xf(a);case 35:e.next=8;break;case 37:case"end":return e.stop()}}),e,null,[[12,18]])})))).apply(this,arguments)}function $p(e){return($p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function th(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eh(Object(r),!0).forEach((function(t){rh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nh(e,t,r,n,o,i,A){try{var a=e[i](A),s=a.value}catch(e){return void r(e)}a.done?t(s):Promise.resolve(s).then(n,o)}function oh(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function A(e){nh(i,n,o,A,a,"next",e)}function a(e){nh(i,n,o,A,a,"throw",e)}A(void 0)}))}}function ih(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ah(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ah(e,t){return(ah=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ch(e);if(t){var o=ch(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return uh(this,r)}}function uh(e,t){return!t||"object"!==$p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ch(e){return(ch=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ah(e,t)}(c,e);var t,r,n,A,a=sh(c);function c(){var e;return ih(this,c),(e=a.apply(this,arguments)).state=e.stateCreator.create({intersectedLoading:jg.FAIL,intersectedResult:void 0,intersectedVisible:!1}),e.$reducerState=e.reducerCreator.create(e.state),e._getParamModelIntersectedCallback=[],e.$actionLoadParamModelIntersectedData=e.unitCreator.async((function(t){t.started.every(s.a.mark((function e(t,r){var n,o,i,A,a,u,c,l,g,f;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kf(t.modelId);case 2:return n=e.sent,o=t.modelId,i=void 0===o?n.modelid:o,A=t.defer,a=t.tolerance,u=this.$actionLoadParamModelIntersectedData,e.prev=5,e.next=8,Xp(oh(s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Kp([i],th(th({},Object(_e.omit)(n,"modelid")),{},{tolerance:a}));case 2:return t=e.sent,e.abrupt("return",t.d);case 4:case"end":return e.stop()}}),e)}))),function(){var e=oh(s.a.mark((function e(t){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Jp(t);case 2:return r=e.sent,e.abrupt("return",{status:r.status,result:{taskId:t}});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),{firstDelay:500});case 8:return c=e.sent,l=YI().viewParamModel.state.state.currModelId===i,g=c.taskId,e.next=13,qp(g);case 13:if(f=e.sent,!l){e.next=17;break}return e.next=17,u.done.dispatch({params:t,result:{result:f,modelId:i}});case 17:A&&A.resolve(f),e.next=25;break;case 20:return e.prev=20,e.t0=e.catch(5),e.next=24,u.failed.dispatch({params:t});case 24:A&&A.reject(e.t0);case 25:case"end":return e.stop()}}),e,this,[[5,20]])}))),t.done.every((function(t,r){var n=t.params.defer,o=YI().viewParamModel.state.state.currModelId;n&&n.resolve(t.result.result),t.result.modelId===o&&e.$actionAddIntersectedDataToSense.dispatch(t.result.result)})),t.failed.every((function(t,r){e._getParamModelIntersectedCallback.forEach((function(e){e.reject(new Error("load json error!"))}))})),t.started.produce(e.$reducerState,(function(e,t){e.intersectedLoading=jg.LOADING})),t.done.produce(e.$reducerState,(function(e,t){e.intersectedLoading=jg.SUCCESS,e.intersectedResult=t.result.result})),t.failed.produce(e.$reducerState,(function(e,t){e.intersectedLoading=jg.FAIL}))})),e.$actionAddIntersectedDataToSense=e.unitCreator.sync((function(t){t.every((function(t,r){var n=r.core,A=n.design,a=n.fittingDesign,s=e.state.state.intersectedVisible,c=e.app.axr.axrs.fittingDesign.senseSetting.getSenseSettings(),l=c.intersectedColor,g=c.intersectedBodyColor,f=c.grooveIntersectedColor,p=c.grooveIntersectedBodyColor;a.setIntersects([]);var h=t.option,d=void 0===h?{}:h,I=t.intersectedGroups,y=u.ParamModelUtils.flattenModels(A.getCustom().getParamModels()),C=Object(_e.map)(I,(function(e){var t=!0===d.references?1:0,r=e.intersecteds[t],n=r["@type"],A=e.intersectType;if(void 0!==d.plankFaceIds&&!d.plankFaceIds.includes(r.plankFaceId))return!1;if(Pr(y,r.linkedParentModelId)){var a=an(e,r,Pr(y,r.linkedModelId)),s=A===i.BOTH_PLANK?n===o.FACE?l:g:n===o.FACE?f:p;return a.setViewColor(s),a}})).filter((function(e){return!!e}));a.setIntersects(C),s||r.kaf.invisibleManager.hide("scene3d",ef,C.map((function(e){return e.id})))}))})),e.$actionToggleShowIntersected=e.unitCreator.sync((function(t){t.latest((function(e,t){var r=t.core.fittingDesign;e?t.kaf.invisibleManager.display("scene3d",ef,r.getIntersects().map((function(e){return e.id}))):t.kaf.invisibleManager.hide("scene3d",ef,r.getIntersects().map((function(e){return e.id})))})),t.produce(e.$reducerState,(function(e,t){e.intersectedVisible=t}))})),e.toggleShowIntersectGroupData=function(t){var r=e.state.state.intersectedResult;if(!r)throw new Error("暂无交接数据!");e.$actionAddIntersectedDataToSense.dispatch(th(th({},r),{},{option:t}))},e}return t=c,(r=[{key:"getParamModelIntersectedData",value:(A=oh(s.a.mark((function e(t){var r,n,o,i,A,a,u,c,l,g=this;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=YI().viewParamModel.state.state.currModelId,o=(n=t||{}).timeout,i=void 0===o?5e4:o,A=n.modelId,a=void 0===A?r:A,u=n.tolerance,c=Pf(i),this.$actionLoadParamModelIntersectedData.started.dispatch({modelId:a,tolerance:u,defer:c}),this._getParamModelIntersectedCallback.push(c),l=function(){var e=g._getParamModelIntersectedCallback.indexOf(c);g._getParamModelIntersectedCallback.splice(e,1)},e.abrupt("return",c.promise.then((function(e){return l(),e})).catch((function(e){return l(),Promise.reject(e)})));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})}])&&Ah(t.prototype,r),n&&Ah(t,n),c}(wf);function gh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gh(Object(r),!0).forEach((function(t){ph(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ph(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hh(e,t){var r=t.x/2,n=t.y/2,o=t.z/2,i=[{x:-r,y:-n,z:o},{x:r,y:-n,z:o},{x:r,y:n,z:o},{x:-r,y:n,z:o}],A=i.map((function(e){return fh(fh({},e),{},{z:-e.z})}));switch(e){case 0:return i;case 1:return[i[0],A[0],A[3],i[3]];case 2:return[i[0],A[0],A[1],i[1]];case 3:return[i[1],A[1],A[2],i[2]];case 4:return[i[2],A[2],A[3],i[3]];case 5:return A}return[]}function dh(e){return(dh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ih(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ch(e,t){return(Ch=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Eh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=vh(e);if(t){var o=vh(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Bh(this,r)}}function Bh(e,t){return!t||"object"!==dh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vh(e){return(vh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mh={outline:{color:"#ff4d4f",opacity:.5},plankFace:{color:"#9318ff",opacity:.5}},Qh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ch(e,t)}(i,e);var t,r,n,o=Eh(i);function i(){var e;return Ih(this,i),(e=o.apply(this,arguments)).state=e.stateCreator.create({option:{},defaultConfig:mh}),e.$reducerState=e.reducerCreator.create(e.state),e.$actionUpdateDefaultOption=e.unitCreator.sync((function(t){t.produce(e.$reducerState,(function(e,t){e.defaultConfig=Object(_e.extend)({},e.defaultConfig,t)}))})),e.$actionUpdateHintOption=e.unitCreator.sync((function(t){t.latest((function(){e.rerenderToSense()})),t.produce(e.$reducerState,(function(e,t){e.option=t}))})),e}return t=i,(r=[{key:"setDefaultHintConfig",value:function(e){this.$actionUpdateDefaultOption.dispatch(e)}},{key:"setModelHint",value:function(e){var t=this,r=Object(_e.mapValues)(e,(function(e){return function(e,t){var r={};return Object(_e.isObject)(e.hintOutline)?r.hintOutline=e.hintOutline:!0===e.hintOutline&&(r.hintOutline=t.outline),e.hintPlankFace&&e.hintPlankFace.length&&(r.hintPlankFace=e.hintPlankFace.map((function(e){var r="color"in e?e:t.plankFace,n=r.color,o=r.opacity;return Object(_e.isArray)(e.plankFaceId)?e.plankFaceId.map((function(e){return{color:n,opacity:o,plankFaceId:e}})):{plankFaceId:e.plankFaceId,color:n,opacity:o}})).flat()),r}(e,t.state.state.defaultConfig)}));this.$actionUpdateHintOption.dispatch(r)}},{key:"clearModelHint",value:function(e){var t=e?Object(_e.omit)(this.state.state.option,e):{};this.setModelHint(t)}},{key:"rerenderToSense",value:function(){var e=this.stateManager.core,t=e.design,r=e.fittingDesign,n=t.getCustom(),o=this.state.state.option,i=n.getParamModels(),A=Object(_e.map)(o,(function(e,t){var r=Pr(i,t);if(r)return function(e,t){var r={linkModel:t};if(e.hintPlankFace&&e.hintPlankFace.length){var n=t.getSize();r.plankFaces=e.hintPlankFace.map((function(e){var t=br(e.plankFaceId,M.a).mul(.1),r=hh(e.plankFaceId,n).map((function(e){var r=new M.a(e).add(t);return{x:r.x,y:r.y,z:r.z}}));return fh(fh({},e),{},{points:r})}))}if(e.hintOutline&&(r.hintOutline=e.hintOutline),r.plankFaces||r.hintOutline)return new pr(r)}(e,r)})).filter((function(e){return!!e}));r.setPlankFaceHintModels(A)}}])&&yh(t.prototype,r),n&&yh(t,n),i}(wf);function bh(e){return(bh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Sh(e,t){return(Sh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Mh(e);if(t){var o=Mh(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Rh(this,r)}}function Rh(e,t){return!t||"object"!==bh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mh(e){return(Mh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sh(e,t)}(i,e);var t,r,n,o=Dh(i);function i(){var e;return _h(this,i),(e=o.apply(this,arguments)).state=e.stateCreator.create({intersectedColor:16729344,intersectedBodyColor:16711935,grooveIntersectedColor:12092939,grooveIntersectedBodyColor:16776960,holeColor:65280,grooveColor:2003199,renderIgnoreCategory:y,holeOpacity:1,grooveOpacity:1}),e.$reducerState=e.reducerCreator.create(e.state),e.$actionSenseSetting=e.unitCreator.sync((function(t){t.produce(e.$reducerState,(function(e,t){t.renderIgnoreCategory&&(t.renderIgnoreCategory=Object(_e.castArray)(t.renderIgnoreCategory)),Object(_e.extend)(e,t)}))})),e}return t=i,(r=[{key:"getSenseSettings",value:function(){return this.state.state}}])&&wh(t.prototype,r),n&&wh(t,n),i}(wf);function Ph(e){return(Ph="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Th(e,t){return(Th=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Nh(e);if(t){var o=Nh(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return kh(this,r)}}function kh(e,t){return!t||"object"!==Ph(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Nh(e){return(Nh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Gh,Uh,jh,Yh,Vh,Hh,Kh,Jh,qh,Wh,zh,Xh,Zh,$h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Th(e,t)}(i,e);var t,r,n,o=Lh(i);function i(){var e;return Fh(this,i),(e=o.apply(this,arguments)).fittingDesignSense=e.partialCreator.create(Ip),e.intersected=e.partialCreator.create(lh),e.senseSetting=e.partialCreator.create(xh),e.fittingModel=e.partialCreator.create(Gp),e.plankFaceHint=e.partialCreator.create(Qh),e.fittingHint=e.partialCreator.create(bp),e}return t=i,(r=[{key:"module",value:function(){return"FittingDesign"}}])&&Oh(t.prototype,r),n&&Oh(t,n),i}(Bn.AXR);
|
|
126
126
|
/*!
|
|
127
127
|
* @qunhe/custom-apass-api v0.29.0
|
|
128
128
|
* (c) 2022 yuanlin <yuanlin@qunhemail.com>
|