@das-fed/upf-web 6.4.0-dev.205 → 6.4.0-dev.207
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/es5.js +2 -2
- package/{index-CRYX4EeG.js → index-0HhODyux.js} +4 -4
- package/index-0HhODyux.js.gz +0 -0
- package/{index-PvvdYXX8.js → index-BrEU8ik3.js} +1 -1
- package/index-BrEU8ik3.js.gz +0 -0
- package/{index-ChYfyY85.js → index-NWclWq3D.js} +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/es5.js +3 -3
- package/packages/create-das-web-app/index.js +5 -5
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/es5.js +7 -7
- package/packages/i18n/index.js +6 -6
- package/packages/i18n/index.js.gz +0 -0
- package/index-CRYX4EeG.js.gz +0 -0
- package/index-PvvdYXX8.js.gz +0 -0
package/es5.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded=["light","dark","base"],_excluded2=["mode"],_excluded3=["dom"],_excluded4=["dom"],_excluded5=["dom"];function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function next(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e};}};}throw new TypeError(_typeof(e)+" is not iterable");}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i["return"])&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){if(r)i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n;else{var _o6=function _o6(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});};_o6("next",0),_o6("throw",1),_o6("return",2);}},_regeneratorDefine2(e,r,n,t);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n7=0,F=function F(){};return{s:F,n:function n(){return _n7>=r.length?{done:!0}:{done:!1,value:r[_n7++]};},e:function e(r){throw r;},f:F};}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 o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){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 _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}import{reactive,ref,computed,createApp,defineComponent,onBeforeMount,onMounted,onUnmounted,openBlock,createElementBlock,mergeProps,createCommentVNode,watch,createBlock,unref,withCtx,renderSlot,createVNode,onActivated,h,resolveComponent,withDirectives,createElementVNode,normalizeClass,normalizeStyle,vShow,Transition,normalizeProps,guardReactiveProps,KeepAlive,resolveDynamicComponent,getCurrentScope,onScopeDispose,Fragment,renderList,createSlots,isRef,getCurrentInstance,nextTick,render,onBeforeUnmount,TransitionGroup,createTextVNode,toDisplayString,withModifiers,toRefs,useCssVars}from'vue';import{DasWebLayout,DasWebNav,DasWebMenu,DasWebTabs,layout,layoutData}from'@das-fed/upf-web/packages/layout/index';import{setI18nRule,languageKey,registerMicroI18nData,microI18nStore,t as t$1,currentLang,setLang,i18n}from'@das-fed/upf-web/packages/i18n/index';import{DasAppContainer}from'@das-fed/upf-ui/packages/business-components/app-container/index';import{DasSpin}from'@das-fed/upf-ui/packages/components/spin/index';import{getProjectInfo,getSubApps,getTabInfo,getToken,getMenus,getTenantInfo,getLanguages,getPersonalInfo,getUserInfo}from'@das-fed/upf-utils/common-info';import{getUrlParams,handleI18nData,setShowWatermark,setShowLayout,flatTree as flatTree$1,filterTreeArray,isEmpty,objEqual,setBrowseTitle,updateFavIcon,dateFormat,runPromiseByQueue,treeFind,withToken}from'@das-fed/upf-utils/common-tools';import{createService}from'@das-fed/upf-utils/create-api-service';import{setThemeRule,initTheme,getVar}from'@das-fed/upf-web/packages/theme/index';import{createPinia}from'pinia';import or from'pinia-plugin-persistedstate';import{createRouter,createWebHistory,useRouter,useRoute}from'vue-router';import{getConfig}from'@das-fed/upf-utils/config';import{microFrontend}from'@das-fed/upf-web/packages/micro-frontend/index';import{DasIconWarning}from'@das-fed/upf-ui/packages/icons/warning/index';import{DasIconClose2}from'@das-fed/upf-ui/packages/icons/close-2/index';import{DasChangePwd,DasChangePwdRef}from'@das-fed/upf-ui/packages/business-components/change-pwd/index';import{DasChangeEnterprises}from'@das-fed/upf-ui/packages/business-components/change-enterprises/index';import{DasAiPanel}from'@das-fed/upf-ui/packages/business-components/ai-panel/index';import{pureImageSrc}from'@das-fed/upf-utils/pure-image-src';import{DasNotification}from'@das-fed/upf-ui/packages/components/notification/index';import{setProcessEngineToken,setProcessEngineProject}from'@das-fed/upf-utils/process-engine-info';import{oauthServer,justauth,enterpriseright,iotModules,portal,systemConfiguration as systemConfiguration$1}from'@das-fed/upf-utils/api-services/modules';import{useGetAuth}from'@das-fed/upf-utils/hooks/use-get-auth';import{systemConfiguration,portal as portal$1,enterpriseright as enterpriseright$1,createService as createService$1,spaceManage}from'@das-fed/upf-utils/api-services';import e7 from'dayjs';import{login,getTokenParams,real_uri,tokenStorage}from'@das-fed/upf-utils/create-api-service/sso';import{getAccessToken,removeAccessToken}from'@das-fed/upf-utils/token-tools';import{DasDialog}from'@das-fed/upf-ui/packages/components/dialog/index';import{DasButton}from'@das-fed/upf-ui/packages/components/button/index';import{vDasTooltip}from'@das-fed/upf-ui/packages/components/text-tooltip/index';import{setPersonalInfo}from'@das-fed/upf-utils/common-info/set-personal-info';import{devicePanelShow,closeDevicePanel,alarmDevicePanelShow,closeAlarmPanel}from'@das-fed/upf-ui/packages/business-components/device-panel/index';import{DasIconWarningFace}from'@das-fed/upf-ui/packages/icons/warning-face/index';import{socketService}from'@das-fed/upf-utils/webSocket-service';import{tokenNextTick,userInfoNextTick}from'@das-fed/upf-utils/nextTiken';import{mainAppFramework}from'@das-fed/upf-web/packages/main-app-framework/index';import{DasAutoRegisterIcon,DasIcon}from'@das-fed/upf-ui/packages/components/icon/index';import{DasTooltip}from'@das-fed/upf-ui/packages/components/tooltip/index';import{DasLivePlayer}from'@das-fed/upf-ui/packages/components/live-player/index';import{DasWatermark}from'@das-fed/upf-ui/packages/components/watermark/index';import{DasDrawer}from'@das-fed/upf-ui/packages/components/drawer/index';import{DasTabs}from'@das-fed/upf-ui/packages/components/tabs/index';import{DasMessage}from'@das-fed/upf-ui/packages/components/message/index';import{DasRadio}from'@das-fed/upf-ui/packages/components/radio/index';import{useImageViewer}from'@das-fed/upf-ui/packages/components/image-preview/index';import{DasForm}from'@das-fed/upf-ui/packages/components/form/index';import{DasFormItem}from'@das-fed/upf-ui/packages/components/form-item/index';import{DasTable,DasTableColumn}from'@das-fed/upf-ui/packages/components/table/index';import{DasSelect}from'@das-fed/upf-ui/packages/components/select/index';import{DasIconSearch}from'@das-fed/upf-ui/packages/icons/search/index';import{DasTree,DasTreeRef}from'@das-fed/upf-ui/packages/components/tree/index';import{DasSearch}from'@das-fed/upf-ui/packages/components/search/index';import{DasInput}from'@das-fed/upf-ui/packages/components/input/index';import{DasTreeSelect}from'@das-fed/upf-ui/packages/components/tree-select/index';import{DasCheckbox}from'@das-fed/upf-ui/packages/components/checkbox/index';import{flatTree}from'@das-fed/upf-utils/common-tools/nest-tree-format';import{setHtmlMinWH}from'@das-fed/upf-utils/common-tools/setHtmlMinWH';import{createCeNav,createCeTabs,createCeMenu}from'@das-fed/upf-web-components/das-web-app';var jt={install:function install(e,A){var v;var f=(v=A==null?undefined:A.plugins)==null?undefined:v.glob;f&&Object.values(f).sort(function(n,r){var _n$index,_r$index;return((_n$index=n.index)!==null&&_n$index!==void 0?_n$index:0)-((_r$index=r.index)!==null&&_r$index!==void 0?_r$index:0);}).filter(function(n){return n?!!(n["default"]&&n["default"].install||n.install):false;}).forEach(function(n){n["default"]&&n["default"].install&&e.use(n["default"],A),n.install&&e.use(n,A);});}},v7=createPinia();v7.use(or);var ot=function ot(e){var _ref;var d,p,X,b,a;var A=(_ref=(d=e==null?undefined:e.router)==null?undefined:d.routerBase)!==null&&_ref!==void 0?_ref:"/",f=((p=e==null?undefined:e.router)==null?undefined:p.options)||{};var v=Object.assign(((X=e==null?undefined:e.router)==null?undefined:X.glob)||{});var n=Object.values(v).filter(function(s){return!!s;}).flat().sort(function(s,i){var _s$index,_i$index;return((_s$index=s.index)!==null&&_s$index!==void 0?_s$index:0)-((_i$index=i.index)!==null&&_i$index!==void 0?_i$index:0);}),r=[];(b=e==null?undefined:e.microApps)==null||b.map(function(s){var H;var i=Object.values(((H=s.router)==null?undefined:H.glob)||{}).filter(function(c){return!!c;}).flat().sort(function(c,q){var _c$index,_q$index;return((_c$index=c.index)!==null&&_c$index!==void 0?_c$index:0)-((_q$index=q.index)!==null&&_q$index!==void 0?_q$index:0);});r.push.apply(r,_toConsumableArray(i.map(function(c){return _objectSpread(_objectSpread({},c),{},{path:"/".concat(s.microAppName).concat(c.path)});}))),r.push.apply(r,_toConsumableArray(i.filter(function(c){return!!c.path;}).filter(function(c){return c.path!=="";}).filter(function(c){return c.path!=="/";}).filter(function(c){return!c.path.startsWith("/".concat(c.microAppName));}).map(function(c){return{path:c.path,redirect:"/".concat(s.microAppName).concat(c.path),meta:_objectSpread(_objectSpread({},c.meta||{}),{},{isMicroAppRouteRedirect:true})};})));});var P=((a=e==null?undefined:e.router)==null?undefined:a.routers)||[],u=[].concat(_toConsumableArray(Pf(n,e)),_toConsumableArray(Pf(P,e)),_toConsumableArray(Pf(r,e))),z=createRouter(_objectSpread({history:createWebHistory(A),routes:u},f)),t=microI18nStore;if(Array.isArray(e==null?undefined:e.microApps)&&e.microApps.length&&t){var s=/* @__PURE__ */new Map();var _iterator=_createForOfIteratorHelper(e.microApps),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var i=_step.value;i!=null&&i.microAppName&&i!=null&&i.i18n&&s.set(i.microAppName,i.i18n);}}catch(err){_iterator.e(err);}finally{_iterator.f();}z.beforeEach(/*#__PURE__*/function(){var _ref2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(i,H,c){var q,m,_O,_iterator2,_step2,_step2$value,_V,_N,x,_t2,_t3,_t4;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:_context.p=0;m=((q=i.query)==null?void 0:q.uiCulture)||window.localStorage.getItem(languageKey)||window.navigator.language||"zh-CN",_O=i.path||"";_iterator2=_createForOfIteratorHelper(s.entries());_context.p=1;_iterator2.s();case 2:if((_step2=_iterator2.n()).done){_context.n=10;break;}_step2$value=_slicedToArray(_step2.value,2),_V=_step2$value[0],_N=_step2$value[1];if(!(!_V||!_O.toLowerCase().startsWith("/".concat(_V.toLowerCase())))){_context.n=3;break;}return _context.a(3,9);case 3:if(!(t.isLoaded(m,_V)||!_N||!(_N!=null&&_N.length))){_context.n=4;break;}return _context.a(3,10);case 4:x=typeof _N=="string"?[_N]:_N;t.markLoaded(m,_V);_context.p=5;_context.n=6;return registerMicroI18nData(x,m);case 6:_context.n=8;break;case 7:_context.p=7;_t2=_context.v;t.markUnloaded(m,_V);case 8:return _context.a(3,10);case 9:_context.n=2;break;case 10:_context.n=12;break;case 11:_context.p=11;_t3=_context.v;_iterator2.e(_t3);case 12:_context.p=12;_iterator2.f();return _context.f(12);case 13:_context.n=15;break;case 14:_context.p=14;_t4=_context.v;case 15:_context.p=15;c();return _context.f(15);case 16:return _context.a(2);}},_callee,null,[[5,7],[1,11,12,13],[0,14,15,16]]);}));return function(_x,_x2,_x3){return _ref2.apply(this,arguments);};}());}return{router:z};},Pf=function Pf(e,A){return e.map(function(f){var _ref3,_v$keepAlive;var v=f.meta||{};return v.keepAlive=(_ref3=(_v$keepAlive=v.keepAlive)!==null&&_v$keepAlive!==void 0?_v$keepAlive:A==null?undefined:A.keepAlive)!==null&&_ref3!==void 0?_ref3:true,_objectSpread(_objectSpread({},f),{},{meta:v});});},kb=function kb(e){var u;e||(e={});var A=ref(true);Promise.all([initTheme(e)]).then(function(){A.value=false;});var _ref4=(e==null?undefined:e.root)||{},f=_ref4.container,v=_ref4.component,n=_ref4.props,r=createApp(v||DasWebLayout,n);r.use(jt,e),r.use(v7);var _ot=ot(e),P=_ot.router;return r.use(P),r.mount(f||"#app"),(u=window.top)!=null&&u.vueRouter||window.top&&(window.top.vueRouter=P),{app:r,router:P,loading:A,store:v7};},Qb={loaded:{},isLoaded:function isLoaded(e,A){return!!(this.loaded[e]&&this.loaded[e][A]);},markLoaded:function markLoaded(e,A){this.loaded[e]||(this.loaded[e]={}),this.loaded[e][A]=true;},markUnloaded:function markUnloaded(e,A){this.loaded[e]&&(delete this.loaded[e][A],Object.keys(this.loaded[e]).length===0&&delete this.loaded[e]);}},Zt=/*#__PURE__*/function(){var _ref5=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e,A){var _ref6,_ref7,_ref8;var u,z,t,f,v,n,r,P,X,_t5;return _regenerator().w(function(_context2){while(1)switch(_context2.p=_context2.n){case 0:f=getConfig()||{},v=(_ref6=(u=f.i18n)==null?undefined:u.fromOss)!==null&&_ref6!==void 0?_ref6:true,n=(_ref7=(z=f.i18n)==null?undefined:z.isPullBack)!==null&&_ref7!==void 0?_ref7:false,r=(_ref8=(t=f.i18n)==null?undefined:t.isDasUI)!==null&&_ref8!==void 0?_ref8:true;P="/oss/resource/";_context2.p=1;_context2.n=2;return handleI18nData({baseUrl:v?P:"/",currentLang:A,appName:e,isPullBack:n,fallbackBaseUrl:"/",isDasUI:r});case 2:X=_context2.v;if(!(!X||!(X!=null&&X.frontEnd))){_context2.n=3;break;}throw new Error("Failed to fetch i18n data");case 3:return _context2.a(2,X);case 4:_context2.p=4;_t5=_context2.v;throw new Error("registerResources error: ".concat(_t5));case 5:return _context2.a(2);}},_callee2,null,[[1,4]]);}));return function Zt(_x4,_x5){return _ref5.apply(this,arguments);};}(),Tt="language",Ge=reactive({}),Ue=reactive({}),b9=reactive({}),Lt=getUrlParams(location.href,"uiCulture")||"",yt=Lt||window.localStorage.getItem(Tt)||window.navigator.language||"zh-CN",s9=ref(yt),wt="dasI18n",Fv=function Fv(){var e=document.documentElement;e&&e.setAttribute("lang",s9.value);},v3=function v3(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var A=arguments.length>1?arguments[1]:undefined;var f=A==="global",v=!f,n={};for(var r in e)for(var P in e[r]){var _e$r$P;n[P]||(n[P]={}),n[P][r]=(_e$r$P=e[r][P])!==null&&_e$r$P!==void 0?_e$r$P:"",f&&(Ue[P]||(Ue[P]={}),Ue[P][r]=n[P][r]),v&&(Ge[P]||(Ge[P]={}),Ge[P][r]=n[P][r]);}},Wt=function Wt(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var A=arguments.length>1?arguments[1]:undefined;var n;var f=A==="global",v=!f;for(var r in e)if(f&&!Ue[r]&&(Ue[r]=e[r]),v){var P=(n=e[r])!=null&&n._appCode?e[r]._appCode.toLowerCase():"";P&&(b9[P]||(b9[P]={}),b9[P][r]=e[r]),Ge[r]||(Ge[r]=e[r]);}},Yb=/*#__PURE__*/function(){var _ref9=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(e){var A;return _regenerator().w(function(_context3){while(1)switch(_context3.n){case 0:Fv();A=window[wt];A&&Wt(A,"global");case 1:return _context3.a(2);}},_callee3);}));return function Yb(_x6){return _ref9.apply(this,arguments);};}(),Et=function Et(e){var A="";var f=/\/([^\/]+)\/([^\/]+)\//,v=e.match(f);return v&&v.length>=3&&(A=v[1]+"/"+v[2]),A?A.toLowerCase():"";},It=function It(e){for(var _len=arguments.length,A=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){A[_key-1]=arguments[_key];}return computed(function(){var _b9$framework,_b9$f;var f=Et(location.pathname);var v=(_b9$framework=b9.framework)!==null&&_b9$framework!==void 0?_b9$framework:{},n=(_b9$f=b9[f])!==null&&_b9$f!==void 0?_b9$f:{},r=Ge[e]||Ue[e]||v[e]||n[e]||e;if(r===e)return e;typeof r=="string"&&(r={"zh-CN":r});var P=r[s9.value];return s9.value==="zh-CN"&&r["zh-cn"]&&!r["zh-CN"]&&(P=r["zh-cn"]),A.map(function(u,z){P&&(P=P.replace("$".concat(z),u));}),P;});},gt=It,Gb=function Gb(e){for(var _len2=arguments.length,A=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){A[_key2-1]=arguments[_key2];}return gt.apply(void 0,[e].concat(A)).value;},Mt=function Mt(e){s9.value=e,Fv();},Ub=function Ub(){return s9;},n3={"en-US":{ant:function ant(){return import('ant-design-vue/es/locale/en_US');},dayjs:function dayjs(){return import('dayjs/locale/en');}},"zh-CN":{ant:function ant(){return import('ant-design-vue/es/locale/zh_CN');},dayjs:function dayjs(){return import('dayjs/locale/zh-cn');}},"zh-MO":{ant:function ant(){return import('ant-design-vue/es/locale/zh_TW');},dayjs:function dayjs(){return import('dayjs/locale/zh-tw');}},"ru-RU":{ant:function ant(){return import('ant-design-vue/es/locale/ru_RU');},dayjs:function dayjs(){return import('dayjs/locale/ru');}},"sv-SE":{ant:function ant(){return import('ant-design-vue/es/locale/sv_SE');},dayjs:function dayjs(){return import('dayjs/locale/se');}},"fr-FR":{ant:function ant(){return import('ant-design-vue/es/locale/fr_FR');},dayjs:function dayjs(){return import('dayjs/locale/fr');}},"de-DE":{ant:function ant(){return import('ant-design-vue/es/locale/de_DE');},dayjs:function dayjs(){return import('dayjs/locale/de');}},"ar-EG":{ant:function ant(){return import('ant-design-vue/es/locale/ar_EG');},dayjs:function dayjs(){return import('dayjs/locale/ar');}},"es-ES":{ant:function ant(){return import('ant-design-vue/es/locale/es_ES');},dayjs:function dayjs(){return import('dayjs/locale/es');}},"it-IT":{ant:function ant(){return import('ant-design-vue/es/locale/it_IT');},dayjs:function dayjs(){return import('dayjs/locale/it');}},"pt-PT":{ant:function ant(){return import('ant-design-vue/es/locale/pt_PT');},dayjs:function dayjs(){return import('dayjs/locale/pt');}},"nl-NL":{ant:function ant(){return import('ant-design-vue/es/locale/nl_NL');},dayjs:function dayjs(){return import('dayjs/locale/nl');}},"tr-TR":{ant:function ant(){return import('ant-design-vue/es/locale/tr_TR');},dayjs:function dayjs(){return import('dayjs/locale/tr');}}};function Jb(e,A){var v;var f=window.DATE_FORMAT_MAP;return f&&f[e]&&f[e][A]?f[e][A]:((v=window.DATE_FORMAT_MAP[e])==null?undefined:v[A])||"YYYY-MM-DD";}var hb=/*#__PURE__*/function(){var _ref0=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(e){var A,f,_t6;return _regenerator().w(function(_context4){while(1)switch(_context4.p=_context4.n){case 0:A=n3[e]||n3["zh-CN"];_context4.p=1;_context4.n=2;return A.ant();case 2:f=_context4.v;_context4.n=3;return A.dayjs();case 3:return _context4.a(2,f["default"]);case 4:_context4.p=4;_t6=_context4.v;case 5:return _context4.a(2);}},_callee4,null,[[1,4]]);}));return function hb(_x7){return _ref0.apply(this,arguments);};}(),Fb=/*#__PURE__*/function(){var _ref1=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(){var e,A,f,_args5=arguments,_t7;return _regenerator().w(function(_context5){while(1)switch(_context5.p=_context5.n){case 0:e=_args5.length>0&&_args5[0]!==undefined?_args5[0]:[];A=_args5.length>1&&_args5[1]!==undefined?_args5[1]:"zh-CN";_context5.p=1;_context5.n=2;return Zt(e,A);case 2:f=_context5.v;f!=null&&f.frontEnd&&_typeof(f.frontEnd)=="object"&&Object.keys(f.frontEnd).length&&e.forEach(function(v){f.frontEnd[v]&&_typeof(f.frontEnd[v])=="object"&&Object.keys(f.frontEnd[v]).length&&v3(_defineProperty({},A,f.frontEnd[v]));}),f!=null&&f.dasUiEnd&&_typeof(f.dasUiEnd)=="object"&&Object.keys(f.dasUiEnd).length&&v3(_defineProperty({},A,f.dasUiEnd)),Mt(A);_context5.n=4;break;case 3:_context5.p=3;_t7=_context5.v;case 4:return _context5.a(2);}},_callee5,null,[[1,3]]);}));return function Fb(){return _ref1.apply(this,arguments);};}(),Je=ref("light"),z9=ref({light:{},dark:{}}),d9=ref({light:{},dark:{}}),Bt="dasTheme",a9="das-theme",kt=function kt(e){var A={light:{},dark:{}};if(!e)return A;var _ref10=e||{},_ref10$light=_ref10.light,f=_ref10$light===void 0?{}:_ref10$light,_ref10$dark=_ref10.dark,v=_ref10$dark===void 0?{}:_ref10$dark,_ref10$base=_ref10.base,n=_ref10$base===void 0?{}:_ref10$base,r=_objectWithoutProperties(_ref10,_excluded);A.light=_objectSpread(_objectSpread({},f),n),A.dark=v||{};for(var P in r){var u=r[P];if(typeof u=="string"&&(A.light[P]=u),_typeof(u)=="object")for(var z in u)A[z]||(A[z]={}),A[z][P]||(A[z][P]={}),A[z][P]=u[z];}return A;};function Qt(e){var A="das-global-theme",f="das-custom-theme";if(!document.getElementById(f)){var n=document.createElement("style");n.appendChild(document.createTextNode("")),n.setAttribute("id",f),document.head.appendChild(n);}if(!document.getElementById(A)){var _n2=document.createElement("style");_n2.appendChild(document.createTextNode("")),_n2.setAttribute("id",A),document.head.appendChild(_n2);}e||(e="custom");var v=document.getElementById(f);return e==="global"&&(v=document.getElementById(A)),v.sheet;}var r3=function r3(e,A){A||(A="custom");var f=Qt(A),v=kt(e);for(var r in v){var P=v[r];for(var u in P){var z=P[u],t="".concat(a9,"-").concat(r);f.insertRule(".".concat(t," { ").concat(u,":").concat(z," } "),f.cssRules.length);}A==="global"&&(d9.value[r]||(d9.value[r]={}),d9.value[r]=_objectSpread(_objectSpread({},d9.value[r]),P)),A==="custom"&&(z9.value[r]||(z9.value[r]={}),z9.value[r]=_objectSpread(_objectSpread({},z9.value[r]),P));}var n="".concat(a9,"-").concat(Je.value);document.body.classList.contains(n)||document.body.classList.add(n);},Sb=/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(e){var v,n,A,f;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:A=window[Bt];A&&r3(A,"global");f=Object.assign(((v=e==null?undefined:e.theme)==null?undefined:v.glob)||{});(n=e==null?undefined:e.microApps)==null||n.map(function(r){var P;f=Object.assign(f,((P=r.theme)==null?undefined:P.glob)||{});}),Object.values(f).filter(function(r){return!!r;}).flat().map(function(r){return r3(r);});case 1:return _context6.a(2);}},_callee6);}));return function Sb(_x8){return _ref11.apply(this,arguments);};}(),Kb=function Kb(e){document.body.classList.add("".concat(a9,"-light")),e==="light"&&document.body.classList.remove("".concat(a9,"-").concat(Je.value)),Je.value=e,document.body.classList.add("".concat(a9,"-").concat(Je.value));},Yt=function Yt(e){return computed(function(){var A,f,v,n;return((f=(A=d9.value)==null?undefined:A[Je.value])==null?undefined:f[e])||((n=(v=z9.value)==null?undefined:v[Je.value])==null?undefined:n[e])||e;});},Cb=function Cb(e){return"var(".concat(e,")");},_b=Yt,qA=reactive({visible:false,theme:"default",logo:"",items:[],projects:[],userInfo:{},config:{},searchConfig:{},// activeItem: '',
|
|
1
|
+
var _excluded=["light","dark","base"],_excluded2=["mode"],_excluded3=["dom"],_excluded4=["dom"],_excluded5=["dom"];function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _wrapNativeSuper(t){var r="function"==typeof Map?new Map():void 0;return _wrapNativeSuper=function _wrapNativeSuper(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper);}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor);}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,t);},_wrapNativeSuper(t);}function _construct(t,e,r){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o))();return r&&_setPrototypeOf(p,r.prototype),p;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]");}catch(n){return"function"==typeof t;}}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function next(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e};}};}throw new TypeError(_typeof(e)+" is not iterable");}function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.propertyIsEnumerable.call(e,o)&&(i[o]=e[o]);}return i;}function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n];}return t;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return _regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i["return"])&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this;}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(_regenerator=function _regenerator(){return{w:i,m:f};})();}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){if(r)i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n;else{var _o6=function _o6(r,n){_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});};_o6("next",0),_o6("throw",1),_o6("return",2);}},_regeneratorDefine2(e,r,n,t);}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n7=0,F=function F(){};return{s:F,n:function n(){return _n7>=r.length?{done:!0}:{done:!1,value:r[_n7++]};},e:function e(r){throw r;},f:F};}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 o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){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 _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}import{reactive,ref,computed,createApp,defineComponent,onBeforeMount,onMounted,onUnmounted,openBlock,createElementBlock,mergeProps,createCommentVNode,watch,createBlock,unref,withCtx,renderSlot,createVNode,onActivated,h,resolveComponent,withDirectives,createElementVNode,normalizeClass,normalizeStyle,vShow,Transition,normalizeProps,guardReactiveProps,KeepAlive,resolveDynamicComponent,getCurrentScope,onScopeDispose,Fragment,renderList,createSlots,isRef,getCurrentInstance,nextTick,render,onBeforeUnmount,TransitionGroup,createTextVNode,toDisplayString,withModifiers,toRefs,useCssVars}from'vue';import{DasWebLayout,DasWebNav,DasWebMenu,DasWebTabs,layout,layoutData}from'@das-fed/upf-web/packages/layout/index';import{setI18nRule,languageKey,registerMicroI18nData,microI18nStore,t as t$1,currentLang,setLang,i18n}from'@das-fed/upf-web/packages/i18n/index';import{DasAppContainer}from'@das-fed/upf-ui/packages/business-components/app-container/index';import{DasSpin}from'@das-fed/upf-ui/packages/components/spin/index';import{getProjectInfo,getSubApps,getTabInfo,getToken,getMenus,getTenantInfo,getLanguages,getPersonalInfo,getUserInfo}from'@das-fed/upf-utils/common-info';import{getUrlParams,handleI18nData,setShowWatermark,setShowLayout,flatTree as flatTree$1,filterTreeArray,isEmpty,objEqual,setBrowseTitle,updateFavIcon,dateFormat,runPromiseByQueue,treeFind,withToken}from'@das-fed/upf-utils/common-tools';import{createService}from'@das-fed/upf-utils/create-api-service';import{setThemeRule,initTheme,getVar}from'@das-fed/upf-web/packages/theme/index';import{createPinia}from'pinia';import or from'pinia-plugin-persistedstate';import{createRouter,createWebHistory,useRouter,useRoute}from'vue-router';import{getConfig}from'@das-fed/upf-utils/config';import{microFrontend}from'@das-fed/upf-web/packages/micro-frontend/index';import{DasIconWarning}from'@das-fed/upf-ui/packages/icons/warning/index';import{DasIconClose2}from'@das-fed/upf-ui/packages/icons/close-2/index';import{DasChangePwd,DasChangePwdRef}from'@das-fed/upf-ui/packages/business-components/change-pwd/index';import{DasChangeEnterprises}from'@das-fed/upf-ui/packages/business-components/change-enterprises/index';import{DasAiPanel}from'@das-fed/upf-ui/packages/business-components/ai-panel/index';import{pureImageSrc}from'@das-fed/upf-utils/pure-image-src';import{DasNotification}from'@das-fed/upf-ui/packages/components/notification/index';import{setProcessEngineToken,setProcessEngineProject}from'@das-fed/upf-utils/process-engine-info';import{oauthServer,justauth,enterpriseright,iotModules,portal,systemConfiguration as systemConfiguration$1}from'@das-fed/upf-utils/api-services/modules';import{useGetAuth}from'@das-fed/upf-utils/hooks/use-get-auth';import{systemConfiguration,portal as portal$1,enterpriseright as enterpriseright$1,createService as createService$1,spaceManage}from'@das-fed/upf-utils/api-services';import e7 from'dayjs';import{login,getTokenParams,real_uri,tokenStorage}from'@das-fed/upf-utils/create-api-service/sso';import{getAccessToken,removeAccessToken}from'@das-fed/upf-utils/token-tools';import{DasDialog}from'@das-fed/upf-ui/packages/components/dialog/index';import{DasButton}from'@das-fed/upf-ui/packages/components/button/index';import{vDasTooltip}from'@das-fed/upf-ui/packages/components/text-tooltip/index';import{setPersonalInfo}from'@das-fed/upf-utils/common-info/set-personal-info';import{devicePanelShow,closeDevicePanel,alarmDevicePanelShow,closeAlarmPanel}from'@das-fed/upf-ui/packages/business-components/device-panel/index';import{DasIconWarningFace}from'@das-fed/upf-ui/packages/icons/warning-face/index';import{socketService}from'@das-fed/upf-utils/webSocket-service';import{tokenNextTick,userInfoNextTick}from'@das-fed/upf-utils/nextTiken';import{mainAppFramework}from'@das-fed/upf-web/packages/main-app-framework/index';import{DasAutoRegisterIcon,DasIcon}from'@das-fed/upf-ui/packages/components/icon/index';import{DasTooltip}from'@das-fed/upf-ui/packages/components/tooltip/index';import{DasLivePlayer}from'@das-fed/upf-ui/packages/components/live-player/index';import{DasWatermark}from'@das-fed/upf-ui/packages/components/watermark/index';import{DasDrawer}from'@das-fed/upf-ui/packages/components/drawer/index';import{DasTabs}from'@das-fed/upf-ui/packages/components/tabs/index';import{DasMessage}from'@das-fed/upf-ui/packages/components/message/index';import{DasRadio}from'@das-fed/upf-ui/packages/components/radio/index';import{useImageViewer}from'@das-fed/upf-ui/packages/components/image-preview/index';import{DasForm}from'@das-fed/upf-ui/packages/components/form/index';import{DasFormItem}from'@das-fed/upf-ui/packages/components/form-item/index';import{DasTable,DasTableColumn}from'@das-fed/upf-ui/packages/components/table/index';import{DasSelect}from'@das-fed/upf-ui/packages/components/select/index';import{DasIconSearch}from'@das-fed/upf-ui/packages/icons/search/index';import{DasTree,DasTreeRef}from'@das-fed/upf-ui/packages/components/tree/index';import{DasSearch}from'@das-fed/upf-ui/packages/components/search/index';import{DasInput}from'@das-fed/upf-ui/packages/components/input/index';import{DasTreeSelect}from'@das-fed/upf-ui/packages/components/tree-select/index';import{DasCheckbox}from'@das-fed/upf-ui/packages/components/checkbox/index';import{flatTree}from'@das-fed/upf-utils/common-tools/nest-tree-format';import{setHtmlMinWH}from'@das-fed/upf-utils/common-tools/setHtmlMinWH';import{createCeNav,createCeTabs,createCeMenu}from'@das-fed/upf-web-components/das-web-app';var jt={install:function install(e,A){var v;var f=(v=A==null?undefined:A.plugins)==null?undefined:v.glob;f&&Object.values(f).sort(function(n,r){var _n$index,_r$index;return((_n$index=n.index)!==null&&_n$index!==void 0?_n$index:0)-((_r$index=r.index)!==null&&_r$index!==void 0?_r$index:0);}).filter(function(n){return n?!!(n["default"]&&n["default"].install||n.install):false;}).forEach(function(n){n["default"]&&n["default"].install&&e.use(n["default"],A),n.install&&e.use(n,A);});}},v7=createPinia();v7.use(or);var ot=function ot(e){var _ref;var d,p,X,b,a;var A=(_ref=(d=e==null?undefined:e.router)==null?undefined:d.routerBase)!==null&&_ref!==void 0?_ref:"/",f=((p=e==null?undefined:e.router)==null?undefined:p.options)||{};var v=Object.assign(((X=e==null?undefined:e.router)==null?undefined:X.glob)||{});var n=Object.values(v).filter(function(s){return!!s;}).flat().sort(function(s,i){var _s$index,_i$index;return((_s$index=s.index)!==null&&_s$index!==void 0?_s$index:0)-((_i$index=i.index)!==null&&_i$index!==void 0?_i$index:0);}),r=[];(b=e==null?undefined:e.microApps)==null||b.map(function(s){var H;var i=Object.values(((H=s.router)==null?undefined:H.glob)||{}).filter(function(c){return!!c;}).flat().sort(function(c,q){var _c$index,_q$index;return((_c$index=c.index)!==null&&_c$index!==void 0?_c$index:0)-((_q$index=q.index)!==null&&_q$index!==void 0?_q$index:0);});r.push.apply(r,_toConsumableArray(i.map(function(c){return _objectSpread(_objectSpread({},c),{},{path:"/".concat(s.microAppName).concat(c.path)});}))),r.push.apply(r,_toConsumableArray(i.filter(function(c){return!!c.path;}).filter(function(c){return c.path!=="";}).filter(function(c){return c.path!=="/";}).filter(function(c){return!c.path.startsWith("/".concat(c.microAppName));}).map(function(c){return{path:c.path,redirect:"/".concat(s.microAppName).concat(c.path),meta:_objectSpread(_objectSpread({},c.meta||{}),{},{isMicroAppRouteRedirect:true})};})));});var P=((a=e==null?undefined:e.router)==null?undefined:a.routers)||[],u=[].concat(_toConsumableArray(Pf(n,e)),_toConsumableArray(Pf(P,e)),_toConsumableArray(Pf(r,e))),z=createRouter(_objectSpread({history:createWebHistory(A),routes:u},f)),t=microI18nStore;if(Array.isArray(e==null?undefined:e.microApps)&&e.microApps.length&&t){var s=/* @__PURE__ */new Map();var _iterator=_createForOfIteratorHelper(e.microApps),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var i=_step.value;i!=null&&i.microAppName&&i!=null&&i.i18n&&s.set(i.microAppName,i.i18n);}}catch(err){_iterator.e(err);}finally{_iterator.f();}z.beforeEach(/*#__PURE__*/function(){var _ref2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(i,H,c){var q,m,_O,_iterator2,_step2,_step2$value,_V,_N,x,_t2,_t3,_t4;return _regenerator().w(function(_context){while(1)switch(_context.p=_context.n){case 0:_context.p=0;m=((q=i.query)==null?void 0:q.lang)||window.localStorage.getItem(languageKey)||window.navigator.language||"zh-CN",_O=i.path||"";_iterator2=_createForOfIteratorHelper(s.entries());_context.p=1;_iterator2.s();case 2:if((_step2=_iterator2.n()).done){_context.n=10;break;}_step2$value=_slicedToArray(_step2.value,2),_V=_step2$value[0],_N=_step2$value[1];if(!(!_V||!_O.toLowerCase().startsWith("/".concat(_V.toLowerCase())))){_context.n=3;break;}return _context.a(3,9);case 3:if(!(t.isLoaded(m,_V)||!_N||!(_N!=null&&_N.length))){_context.n=4;break;}return _context.a(3,10);case 4:x=typeof _N=="string"?[_N]:_N;t.markLoaded(m,_V);_context.p=5;_context.n=6;return registerMicroI18nData(x,m);case 6:_context.n=8;break;case 7:_context.p=7;_t2=_context.v;t.markUnloaded(m,_V);case 8:return _context.a(3,10);case 9:_context.n=2;break;case 10:_context.n=12;break;case 11:_context.p=11;_t3=_context.v;_iterator2.e(_t3);case 12:_context.p=12;_iterator2.f();return _context.f(12);case 13:_context.n=15;break;case 14:_context.p=14;_t4=_context.v;case 15:_context.p=15;c();return _context.f(15);case 16:return _context.a(2);}},_callee,null,[[5,7],[1,11,12,13],[0,14,15,16]]);}));return function(_x,_x2,_x3){return _ref2.apply(this,arguments);};}());}return{router:z};},Pf=function Pf(e,A){return e.map(function(f){var _ref3,_v$keepAlive;var v=f.meta||{};return v.keepAlive=(_ref3=(_v$keepAlive=v.keepAlive)!==null&&_v$keepAlive!==void 0?_v$keepAlive:A==null?undefined:A.keepAlive)!==null&&_ref3!==void 0?_ref3:true,_objectSpread(_objectSpread({},f),{},{meta:v});});},kb=function kb(e){var u;e||(e={});var A=ref(true);Promise.all([initTheme(e)]).then(function(){A.value=false;});var _ref4=(e==null?undefined:e.root)||{},f=_ref4.container,v=_ref4.component,n=_ref4.props,r=createApp(v||DasWebLayout,n);r.use(jt,e),r.use(v7);var _ot=ot(e),P=_ot.router;return r.use(P),r.mount(f||"#app"),(u=window.top)!=null&&u.vueRouter||window.top&&(window.top.vueRouter=P),{app:r,router:P,loading:A,store:v7};},Qb={loaded:{},isLoaded:function isLoaded(e,A){return!!(this.loaded[e]&&this.loaded[e][A]);},markLoaded:function markLoaded(e,A){this.loaded[e]||(this.loaded[e]={}),this.loaded[e][A]=true;},markUnloaded:function markUnloaded(e,A){this.loaded[e]&&(delete this.loaded[e][A],Object.keys(this.loaded[e]).length===0&&delete this.loaded[e]);}},Zt=/*#__PURE__*/function(){var _ref5=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e,A){var _ref6,_ref7,_ref8;var u,z,t,f,v,n,r,P,X,_t5;return _regenerator().w(function(_context2){while(1)switch(_context2.p=_context2.n){case 0:f=getConfig()||{},v=(_ref6=(u=f.i18n)==null?undefined:u.fromOss)!==null&&_ref6!==void 0?_ref6:true,n=(_ref7=(z=f.i18n)==null?undefined:z.isPullBack)!==null&&_ref7!==void 0?_ref7:false,r=(_ref8=(t=f.i18n)==null?undefined:t.isDasUI)!==null&&_ref8!==void 0?_ref8:true;P="/oss/resource/";_context2.p=1;_context2.n=2;return handleI18nData({baseUrl:v?P:"/",currentLang:A,appName:e,isPullBack:n,fallbackBaseUrl:"/",isDasUI:r});case 2:X=_context2.v;if(!(!X||!(X!=null&&X.frontEnd))){_context2.n=3;break;}throw new Error("Failed to fetch i18n data");case 3:return _context2.a(2,X);case 4:_context2.p=4;_t5=_context2.v;throw new Error("registerResources error: ".concat(_t5));case 5:return _context2.a(2);}},_callee2,null,[[1,4]]);}));return function Zt(_x4,_x5){return _ref5.apply(this,arguments);};}(),Tt="language",Ge=reactive({}),Ue=reactive({}),b9=reactive({}),Lt=getUrlParams(location.href,"lang")||"",yt=Lt||window.localStorage.getItem(Tt)||window.navigator.language||"zh-CN",s9=ref(yt),wt="dasI18n",Fv=function Fv(){var e=document.documentElement;e&&e.setAttribute("lang",s9.value);},v3=function v3(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var A=arguments.length>1?arguments[1]:undefined;var f=A==="global",v=!f,n={};for(var r in e)for(var P in e[r]){var _e$r$P;n[P]||(n[P]={}),n[P][r]=(_e$r$P=e[r][P])!==null&&_e$r$P!==void 0?_e$r$P:"",f&&(Ue[P]||(Ue[P]={}),Ue[P][r]=n[P][r]),v&&(Ge[P]||(Ge[P]={}),Ge[P][r]=n[P][r]);}},Wt=function Wt(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var A=arguments.length>1?arguments[1]:undefined;var n;var f=A==="global",v=!f;for(var r in e)if(f&&!Ue[r]&&(Ue[r]=e[r]),v){var P=(n=e[r])!=null&&n._appCode?e[r]._appCode.toLowerCase():"";P&&(b9[P]||(b9[P]={}),b9[P][r]=e[r]),Ge[r]||(Ge[r]=e[r]);}},Yb=/*#__PURE__*/function(){var _ref9=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(e){var A;return _regenerator().w(function(_context3){while(1)switch(_context3.n){case 0:Fv();A=window[wt];A&&Wt(A,"global");case 1:return _context3.a(2);}},_callee3);}));return function Yb(_x6){return _ref9.apply(this,arguments);};}(),Et=function Et(e){var A="";var f=/\/([^\/]+)\/([^\/]+)\//,v=e.match(f);return v&&v.length>=3&&(A=v[1]+"/"+v[2]),A?A.toLowerCase():"";},It=function It(e){for(var _len=arguments.length,A=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){A[_key-1]=arguments[_key];}return computed(function(){var _b9$framework,_b9$f;var f=Et(location.pathname);var v=(_b9$framework=b9.framework)!==null&&_b9$framework!==void 0?_b9$framework:{},n=(_b9$f=b9[f])!==null&&_b9$f!==void 0?_b9$f:{},r=Ge[e]||Ue[e]||v[e]||n[e]||e;if(r===e)return e;typeof r=="string"&&(r={"zh-CN":r});var P=r[s9.value];return s9.value==="zh-CN"&&r["zh-cn"]&&!r["zh-CN"]&&(P=r["zh-cn"]),A.map(function(u,z){P&&(P=P.replace("$".concat(z),u));}),P;});},gt=It,Gb=function Gb(e){for(var _len2=arguments.length,A=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){A[_key2-1]=arguments[_key2];}return gt.apply(void 0,[e].concat(A)).value;},Mt=function Mt(e){s9.value=e,Fv();},Ub=function Ub(){return s9;},n3={"en-US":{ant:function ant(){return import('ant-design-vue/es/locale/en_US');},dayjs:function dayjs(){return import('dayjs/locale/en');}},"zh-CN":{ant:function ant(){return import('ant-design-vue/es/locale/zh_CN');},dayjs:function dayjs(){return import('dayjs/locale/zh-cn');}},"zh-MO":{ant:function ant(){return import('ant-design-vue/es/locale/zh_TW');},dayjs:function dayjs(){return import('dayjs/locale/zh-tw');}},"ru-RU":{ant:function ant(){return import('ant-design-vue/es/locale/ru_RU');},dayjs:function dayjs(){return import('dayjs/locale/ru');}},"sv-SE":{ant:function ant(){return import('ant-design-vue/es/locale/sv_SE');},dayjs:function dayjs(){return import('dayjs/locale/se');}},"fr-FR":{ant:function ant(){return import('ant-design-vue/es/locale/fr_FR');},dayjs:function dayjs(){return import('dayjs/locale/fr');}},"de-DE":{ant:function ant(){return import('ant-design-vue/es/locale/de_DE');},dayjs:function dayjs(){return import('dayjs/locale/de');}},"ar-EG":{ant:function ant(){return import('ant-design-vue/es/locale/ar_EG');},dayjs:function dayjs(){return import('dayjs/locale/ar');}},"es-ES":{ant:function ant(){return import('ant-design-vue/es/locale/es_ES');},dayjs:function dayjs(){return import('dayjs/locale/es');}},"it-IT":{ant:function ant(){return import('ant-design-vue/es/locale/it_IT');},dayjs:function dayjs(){return import('dayjs/locale/it');}},"pt-PT":{ant:function ant(){return import('ant-design-vue/es/locale/pt_PT');},dayjs:function dayjs(){return import('dayjs/locale/pt');}},"nl-NL":{ant:function ant(){return import('ant-design-vue/es/locale/nl_NL');},dayjs:function dayjs(){return import('dayjs/locale/nl');}},"tr-TR":{ant:function ant(){return import('ant-design-vue/es/locale/tr_TR');},dayjs:function dayjs(){return import('dayjs/locale/tr');}}};function Jb(e,A){var v;var f=window.DATE_FORMAT_MAP;return f&&f[e]&&f[e][A]?f[e][A]:((v=window.DATE_FORMAT_MAP[e])==null?undefined:v[A])||"YYYY-MM-DD";}var hb=/*#__PURE__*/function(){var _ref0=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(e){var A,f,_t6;return _regenerator().w(function(_context4){while(1)switch(_context4.p=_context4.n){case 0:A=n3[e]||n3["zh-CN"];_context4.p=1;_context4.n=2;return A.ant();case 2:f=_context4.v;_context4.n=3;return A.dayjs();case 3:return _context4.a(2,f["default"]);case 4:_context4.p=4;_t6=_context4.v;case 5:return _context4.a(2);}},_callee4,null,[[1,4]]);}));return function hb(_x7){return _ref0.apply(this,arguments);};}(),Fb=/*#__PURE__*/function(){var _ref1=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(){var e,A,f,_args5=arguments,_t7;return _regenerator().w(function(_context5){while(1)switch(_context5.p=_context5.n){case 0:e=_args5.length>0&&_args5[0]!==undefined?_args5[0]:[];A=_args5.length>1&&_args5[1]!==undefined?_args5[1]:"zh-CN";_context5.p=1;_context5.n=2;return Zt(e,A);case 2:f=_context5.v;f!=null&&f.frontEnd&&_typeof(f.frontEnd)=="object"&&Object.keys(f.frontEnd).length&&e.forEach(function(v){f.frontEnd[v]&&_typeof(f.frontEnd[v])=="object"&&Object.keys(f.frontEnd[v]).length&&v3(_defineProperty({},A,f.frontEnd[v]));}),f!=null&&f.dasUiEnd&&_typeof(f.dasUiEnd)=="object"&&Object.keys(f.dasUiEnd).length&&v3(_defineProperty({},A,f.dasUiEnd)),Mt(A);_context5.n=4;break;case 3:_context5.p=3;_t7=_context5.v;case 4:return _context5.a(2);}},_callee5,null,[[1,3]]);}));return function Fb(){return _ref1.apply(this,arguments);};}(),Je=ref("light"),z9=ref({light:{},dark:{}}),d9=ref({light:{},dark:{}}),Bt="dasTheme",a9="das-theme",kt=function kt(e){var A={light:{},dark:{}};if(!e)return A;var _ref10=e||{},_ref10$light=_ref10.light,f=_ref10$light===void 0?{}:_ref10$light,_ref10$dark=_ref10.dark,v=_ref10$dark===void 0?{}:_ref10$dark,_ref10$base=_ref10.base,n=_ref10$base===void 0?{}:_ref10$base,r=_objectWithoutProperties(_ref10,_excluded);A.light=_objectSpread(_objectSpread({},f),n),A.dark=v||{};for(var P in r){var u=r[P];if(typeof u=="string"&&(A.light[P]=u),_typeof(u)=="object")for(var z in u)A[z]||(A[z]={}),A[z][P]||(A[z][P]={}),A[z][P]=u[z];}return A;};function Qt(e){var A="das-global-theme",f="das-custom-theme";if(!document.getElementById(f)){var n=document.createElement("style");n.appendChild(document.createTextNode("")),n.setAttribute("id",f),document.head.appendChild(n);}if(!document.getElementById(A)){var _n2=document.createElement("style");_n2.appendChild(document.createTextNode("")),_n2.setAttribute("id",A),document.head.appendChild(_n2);}e||(e="custom");var v=document.getElementById(f);return e==="global"&&(v=document.getElementById(A)),v.sheet;}var r3=function r3(e,A){A||(A="custom");var f=Qt(A),v=kt(e);for(var r in v){var P=v[r];for(var u in P){var z=P[u],t="".concat(a9,"-").concat(r);f.insertRule(".".concat(t," { ").concat(u,":").concat(z," } "),f.cssRules.length);}A==="global"&&(d9.value[r]||(d9.value[r]={}),d9.value[r]=_objectSpread(_objectSpread({},d9.value[r]),P)),A==="custom"&&(z9.value[r]||(z9.value[r]={}),z9.value[r]=_objectSpread(_objectSpread({},z9.value[r]),P));}var n="".concat(a9,"-").concat(Je.value);document.body.classList.contains(n)||document.body.classList.add(n);},Sb=/*#__PURE__*/function(){var _ref11=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(e){var v,n,A,f;return _regenerator().w(function(_context6){while(1)switch(_context6.n){case 0:A=window[Bt];A&&r3(A,"global");f=Object.assign(((v=e==null?undefined:e.theme)==null?undefined:v.glob)||{});(n=e==null?undefined:e.microApps)==null||n.map(function(r){var P;f=Object.assign(f,((P=r.theme)==null?undefined:P.glob)||{});}),Object.values(f).filter(function(r){return!!r;}).flat().map(function(r){return r3(r);});case 1:return _context6.a(2);}},_callee6);}));return function Sb(_x8){return _ref11.apply(this,arguments);};}(),Kb=function Kb(e){document.body.classList.add("".concat(a9,"-light")),e==="light"&&document.body.classList.remove("".concat(a9,"-").concat(Je.value)),Je.value=e,document.body.classList.add("".concat(a9,"-").concat(Je.value));},Yt=function Yt(e){return computed(function(){var A,f,v,n;return((f=(A=d9.value)==null?undefined:A[Je.value])==null?undefined:f[e])||((n=(v=z9.value)==null?undefined:v[Je.value])==null?undefined:n[e])||e;});},Cb=function Cb(e){return"var(".concat(e,")");},_b=Yt,qA=reactive({visible:false,theme:"default",logo:"",items:[],projects:[],userInfo:{},config:{},searchConfig:{},// activeItem: '',
|
|
2
2
|
// activeProject: {},
|
|
3
3
|
eventListeners:{}}),t3={show:function show(){qA.visible=true;},hide:function hide(){qA.visible=false;},setLogo:function setLogo(e){qA.logo=e;},setTheme:function setTheme(e){qA.theme=e;},setItems:function setItems(e){qA.visible||(qA.visible=true),qA.items=e;},getItems:function getItems(){return qA.items;},removeItem:function removeItem(e){var A=qA.items.filter(function(f){return f.value!==e;});qA.items=A;},appendItem:function appendItem(e){qA.visible||(qA.visible=true),!qA.items.find(function(f){return f.value==e.value;})&&qA.items.push(e);},setActiveItem:function setActiveItem(e){qA.activeItem=e;},setConfig:function setConfig(e){qA.config=e;},setProjects:function setProjects(e){qA.projects=e;},setProjectConfig:function setProjectConfig(e){qA.projectConfig=e;},setActiveProject:function setActiveProject(e){qA.activeProject=e;},setUserInfo:function setUserInfo(e){qA.userInfo=e;},setSearchConfig:function setSearchConfig(e){qA.searchConfig=e;},triggerEventListener:function triggerEventListener(e,A,f){var P;var v=qA.eventListeners,_ref12=f||{},_ref12$autoRemove=_ref12.autoRemove,n=_ref12$autoRemove===void 0?false:_ref12$autoRemove,r=[];var _loop=function _loop(){var z=v[u];z.type===e&&r.push((P=z==null?undefined:z.handler)==null?undefined:P.call(z,A).then(function(){n&&z.remove();}));};for(var u in v){_loop();}return Promise.all(r).then(function(){return true;})["catch"](function(){return false;});},addEventListener:function addEventListener(e,A){var f=(/* @__PURE__ */new Date()).getTime()+Math.random().toString(36).slice(-8),v=function v(){qA.eventListeners[f]&&delete qA.eventListeners[f];};return qA.eventListeners[f]={type:e,handler:function(){var _handler=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(n){var _t8;return _regenerator().w(function(_context7){while(1)switch(_context7.p=_context7.n){case 0:_context7.p=0;_context7.n=1;return A(n);case 1:_context7.n=3;break;case 2:_context7.p=2;_t8=_context7.v;throw _t8;case 3:return _context7.a(2);}},_callee7,null,[[0,2]]);}));function handler(_x9){return _handler.apply(this,arguments);}return handler;}(),remove:v},{remove:v};}},re=reactive({theme:"default",items:[],collapse:false,eventListeners:{}}),P3={setItems:function setItems(e){re.items=e;},getItems:function getItems(){return re.items;},setTheme:function setTheme(e){re.theme=e;},setActiveItem:function setActiveItem(e){re.activeItem=e;},setCollapse:function setCollapse(e){re.collapse=e;},setPopupClassName:function setPopupClassName(e){re.popupClassName=e;},triggerEventListener:function triggerEventListener(e,A,f){var P;var v=re.eventListeners,_ref13=f||{},_ref13$autoRemove=_ref13.autoRemove,n=_ref13$autoRemove===void 0?false:_ref13$autoRemove,r=[];var _loop2=function _loop2(){var z=v[u];z.type===e&&r.push((P=z==null?undefined:z.handler)==null?undefined:P.call(z,A).then(function(){n&&z.remove();}));};for(var u in v){_loop2();}return Promise.all(r).then(function(){return true;})["catch"](function(){return false;});},addEventListener:function addEventListener(e,A){var f=(/* @__PURE__ */new Date()).getTime()+Math.random().toString(36).slice(-8),v=function v(){re.eventListeners[f]&&delete re.eventListeners[f];};return re.eventListeners[f]={type:e,handler:function(){var _handler2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(n){var _t9;return _regenerator().w(function(_context8){while(1)switch(_context8.p=_context8.n){case 0:_context8.p=0;_context8.n=1;return A(n);case 1:_context8.n=3;break;case 2:_context8.p=2;_t9=_context8.v;throw _t9;case 3:return _context8.a(2);}},_callee8,null,[[0,2]]);}));function handler(_x0){return _handler2.apply(this,arguments);}return handler;}(),remove:v},{remove:v};}},hA=reactive({theme:"default",items:[],eventListeners:{}}),u3={setItems:function setItems(e){hA.items=e;},getItems:function getItems(){return hA.items;},setTheme:function setTheme(e){hA.theme=e;},removeItem:function removeItem(e){var A=hA.items.filter(function(f){return f.value!==e;});hA.items=A;},appendItem:function appendItem(e){var A=hA.items.findIndex(function(f){return f.value==e.value;});A!==-1?hA.items.splice(A,1,e):hA.items.push(e);},setActiveItem:function setActiveItem(e){hA.activeItem=e;},triggerEventListener:function triggerEventListener(e,A,f){var P;var v=hA.eventListeners,_ref14=f||{},_ref14$autoRemove=_ref14.autoRemove,n=_ref14$autoRemove===void 0?false:_ref14$autoRemove,r=[];var _loop3=function _loop3(){var z=v[u];z.type===e&&r.push((P=z==null?undefined:z.handler)==null?undefined:P.call(z,A).then(function(){n&&z.remove();}));};for(var u in v){_loop3();}return Promise.all(r).then(function(){return true;})["catch"](function(){return false;});},addEventListener:function addEventListener(e,A){var f=(/* @__PURE__ */new Date()).getTime()+Math.random().toString(36).slice(-8),v=function v(){hA.eventListeners[f]&&delete hA.eventListeners[f];};return hA.eventListeners[f]={type:e,handler:function(){var _handler3=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(n){var _t0;return _regenerator().w(function(_context9){while(1)switch(_context9.p=_context9.n){case 0:_context9.p=0;_context9.n=1;return A(n);case 1:_context9.n=3;break;case 2:_context9.p=2;_t0=_context9.v;throw _t0;case 3:return _context9.a(2);}},_callee9,null,[[0,2]]);}));function handler(_x1){return _handler3.apply(this,arguments);}return handler;}(),remove:v},{remove:v};}},X9=reactive({eventListeners:{}}),Gt={triggerEventListener:function triggerEventListener(e,A,f){var P;var v=X9.eventListeners,_ref15=f||{},_ref15$autoRemove=_ref15.autoRemove,n=_ref15$autoRemove===void 0?false:_ref15$autoRemove,r=[];var _loop4=function _loop4(){var z=v[u];z.type===e&&r.push((P=z==null?undefined:z.handler)==null?undefined:P.call(z,A).then(function(){n&&z.remove();}));};for(var u in v){_loop4();}return Promise.all(r).then(function(){return true;})["catch"](function(){return false;});},addEventListener:function addEventListener(e,A){var f=(/* @__PURE__ */new Date()).getTime()+Math.random().toString(36).slice(-8),v=function v(){X9.eventListeners[f]&&delete X9.eventListeners[f];};return X9.eventListeners[f]={type:e,handler:function(){var _handler4=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(n){var _t1;return _regenerator().w(function(_context0){while(1)switch(_context0.p=_context0.n){case 0:_context0.p=0;_context0.n=1;return A(n);case 1:_context0.n=3;break;case 2:_context0.p=2;_t1=_context0.v;throw _t1;case 3:return _context0.a(2);}},_callee0,null,[[0,2]]);}));function handler(_x10){return _handler4.apply(this,arguments);}return handler;}(),remove:v},{remove:v};}},n7=reactive({visible:false,style:{}}),Ut={set:function set(e,A){n7.visible=e,A||(A={}),A.transition||(A.transition="all 0.3s"),A&&(n7.style=A);}},Ve={nav:qA,menu:re,tab:hA,overlay:n7,iframeView:X9,visible:ref(false)},dA={nav:t3,menu:P3,tab:u3,overlay:Ut,iframeView:Gt,setVisible:function setVisible(e){return Ve.visible.value=e;},setTheme:function setTheme(e){t3.setTheme(e),P3.setTheme(e),u3.setTheme(e);}},Jt=["name"],ht=["name"],Ft=/* @__PURE__ */defineComponent({__name:"das-iframe-router-view",props:{needTransition:{type:Boolean},transitionConfig:{},exclude:{"default":function _default(){return[];}}},setup:function setup(e){var A=e,f=computed(function(){var _mode$enterActiveCl=_objectSpread({mode:"out-in","enter-active-class":"animate__animated animate__fadeInLeft"},A.transitionConfig||{}),_mode$enterActiveCl$m=_mode$enterActiveCl.mode,X=_mode$enterActiveCl$m===void 0?"":_mode$enterActiveCl$m,b=_objectWithoutProperties(_mode$enterActiveCl,_excluded2);return b;}),v=useRouter(),n=useRoute(),r=ref([]),P=computed(function(){return r.value.filter(function(X){var b;return(b=X.meta)==null?undefined:b.isOpen;});}),u=function u(X){var b=X.lastIndexOf("-");var a=b!==-1?X.substring(b+1):"";a==="0"?a="1":a="0",P.value.forEach(function(s){s.meta.key===X&&(s.meta.key="".concat(s.path,"-").concat(a));});};watch(function(){return A.exclude;},function(X){if(!X||!X.length)return;var b=X.map(function(s){return s.toLowerCase();}),a=P.value.find(function(s){return b.includes(s.path.toLowerCase());});a&&u(a.meta.key);},{deep:true});var z=/*#__PURE__*/function(){var _ref16=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(X){var b,a;return _regenerator().w(function(_context1){while(1)switch(_context1.n){case 0:b=X.component;a=null;if(!(typeof b=="function")){_context1.n=2;break;}_context1.n=1;return b();case 1:a=_context1.v["default"];_context1.n=3;break;case 2:a=b;case 3:return _context1.a(2,a);}},_callee1);}));return function z(_x11){return _ref16.apply(this,arguments);};}(),t=/*#__PURE__*/function(){var _ref17=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(){var b,X,_iterator3,_step3,_loop5,_t10;return _regenerator().w(function(_context11){while(1)switch(_context11.p=_context11.n){case 0:X=v.options.routes;_iterator3=_createForOfIteratorHelper(X);_context11.p=1;_loop5=/*#__PURE__*/_regenerator().m(function _loop5(){var a,s;return _regenerator().w(function(_context10){while(1)switch(_context10.n){case 0:a=_step3.value;if(!((b=a==null?undefined:a.meta)!=null&&b.isIframe&&!r.value.find(function(s){return s.path.toLowerCase()===a.path.toLowerCase();}))){_context10.n=2;break;}_context10.n=1;return z(a);case 1:s=_context10.v;r.value.push(_objectSpread(_objectSpread({},a),{},{meta:_objectSpread(_objectSpread({},a.meta),{},{key:"".concat(a.path,"-0"),componentInstance:s,isOpen:false,isShow:false})}));case 2:return _context10.a(2);}},_loop5);});_iterator3.s();case 2:if((_step3=_iterator3.n()).done){_context11.n=4;break;}return _context11.d(_regeneratorValues(_loop5()),3);case 3:_context11.n=2;break;case 4:_context11.n=6;break;case 5:_context11.p=5;_t10=_context11.v;_iterator3.e(_t10);case 6:_context11.p=6;_iterator3.f();return _context11.f(6);case 7:d();case 8:return _context11.a(2);}},_callee10,null,[[1,5,6,7]]);}));return function t(){return _ref17.apply(this,arguments);};}(),d=/*#__PURE__*/function(){var _ref18=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11(){var a,s,X,b,_t11,_t12;return _regenerator().w(function(_context12){while(1)switch(_context12.n){case 0:if(!(!r.value||!r.value.length)){_context12.n=1;break;}return _context12.a(2);case 1:X=r.value.find(function(i){return i.meta.isShow;});_t11=X;if(!_t11){_context12.n=3;break;}X.meta.isShow=false;_context12.n=2;return nextTick();case 2:dA.iframeView.triggerEventListener("onDeactivated",{route:X});case 3:b=r.value.find(function(i){return i.path.toLowerCase()===n.path.toLowerCase();});_t12=b;if(!_t12){_context12.n=5;break;}(a=b.meta)!=null&&a.isOpen||(b.meta.isOpen=true);(s=b.meta)!=null&&s.isShow||(b.meta.isShow=true);_context12.n=4;return nextTick();case 4:dA.iframeView.triggerEventListener("onActivated",{route:b});case 5:return _context12.a(2);}},_callee11);}));return function d(){return _ref18.apply(this,arguments);};}();var p=0;return watch(function(){return v.currentRoute.value;},function(){var X=v.options.routes.length;X!==p?(t(),p=X):d();},{immediate:true}),dA.iframeView.addEventListener("onRefreshCurrentPage",function(){P.value.forEach(function(X){var b;(b=X.meta)!=null&&b.isShow&&(X.meta.key.includes("0")?X.meta.key=X.meta.key.replaceAll("0","1"):X.meta.key=X.meta.key.replaceAll("1","0"));});}),dA.iframeView.addEventListener("onUnloadPage",function(X){r.value.forEach(function(b){b.path.toLowerCase()===X.toLowerCase()&&(b.meta.isOpen=false);});}),function(X,b){return openBlock(),createElementBlock(Fragment,null,[X.needTransition?(openBlock(),createBlock(TransitionGroup,normalizeProps(mergeProps({key:0},f.value)),{"default":withCtx(function(){return[(openBlock(true),createElementBlock(Fragment,null,renderList(P.value,function(_ref19){var a=_ref19.path,s=_ref19.meta;return withDirectives((openBlock(),createElementBlock("div",{"class":"das-iframe-router-view",key:s.key,name:a},[(openBlock(),createBlock(resolveDynamicComponent(s.componentInstance),{key:s.key}))],8,Jt)),[[vShow,s.componentInstance&&a.toLowerCase()===unref(n).path.toLowerCase()]]);}),128/* KEYED_FRAGMENT */))];}),_:1/* STABLE */},16/* FULL_PROPS */)):createCommentVNode("v-if",true),X.needTransition?createCommentVNode("v-if",true):(openBlock(true),createElementBlock(Fragment,{key:1},renderList(P.value,function(_ref20){var a=_ref20.path,s=_ref20.meta;return withDirectives((openBlock(),createElementBlock("div",{"class":"das-iframe-router-view",key:s.key,name:a},[(openBlock(),createBlock(resolveDynamicComponent(s.componentInstance),{key:s.key}))],8,ht)),[[vShow,s.componentInstance&&a.toLowerCase()===unref(n).path.toLowerCase()]]);}),128/* KEYED_FRAGMENT */))],64/* STABLE_FRAGMENT */);};}}),ZA=function ZA(e,A){var f=e.__vccOpts||e;var _iterator4=_createForOfIteratorHelper(A),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _step4$value=_slicedToArray(_step4.value,2),v=_step4$value[0],n=_step4$value[1];f[v]=n;}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}return f;},St=/* @__PURE__ */ZA(Ft,[["__scopeId","data-v-4bfc711f"]]),Kt={"class":"das-web-app-container"},Ct={key:0,"class":"das-web-app-header"},_t={"class":"das-web-app-main"},$t={key:0,"class":"aside"},AP={"class":"das-web-app-main-container"},eP={key:0,"class":"tab"},fP={"class":"das-web-app-main-content"},vP={"class":"banner"},nP={"class":"das-web-app-main-router-view"},rP={key:0,style:{width:"100%",height:"100%"}},tP={key:1,style:{width:"100%",height:"100%"}},PP={style:{width:"100%",height:"100%"}},uP={"class":"micro-app",style:{height:"100%",width:"100%"}},zP=/* @__PURE__ */defineComponent({__name:"das-web-layout",props:{needTransition:{type:Boolean,"default":true},transitionConfig:{},showLayout:{type:Boolean,"default":true},showAside:{type:Boolean,"default":true},showTabs:{type:Boolean,"default":true},routerViewVisible:{type:Boolean,"default":true},excludeRoutes:{},routeKeepAliveVisible:{type:Boolean,"default":true},pageKey:{"default":"0"}},setup:function setup(e){var A=e;createCeNav(),createCeTabs(),createCeMenu();var f=useRoute(),v=ref(false),n=ref(false),r=ref(false),P=computed(function(){return v.value&&A.showLayout;}),u=computed(function(){return n.value&&A.showLayout&&A.showAside;}),z=computed(function(){return v.value&&A.showLayout&&A.showTabs;}),t=computed(function(){var _A$routerViewVisible;return(_A$routerViewVisible=A.routerViewVisible)!==null&&_A$routerViewVisible!==void 0?_A$routerViewVisible:true;}),d=computed(function(){var _Ve$overlay$visible;return(_Ve$overlay$visible=Ve.overlay.visible)!==null&&_Ve$overlay$visible!==void 0?_Ve$overlay$visible:false;}),p=computed(function(){return{"das-web-app-overlay-show":d.value===true,"das-web-app-overlay-hide":d.value===false,"das-web-app-overlay-destroy":d.value==="destroy"};}),X=computed(function(){var _Ve$overlay$style;return(_Ve$overlay$style=Ve.overlay.style)!==null&&_Ve$overlay$style!==void 0?_Ve$overlay$style:{backgroundColor:"rgba(0,0,0,0.5)"};}),b=computed(function(){return A.excludeRoutes;}),a=computed(function(){return A.routeKeepAliveVisible;});watch(function(){return[f.meta,f.query];},function(_ref21){var _ref22=_slicedToArray(_ref21,2),q=_ref22[0],m=_ref22[1];var _q$showLayout=q.showLayout,O=_q$showLayout===void 0?true:_q$showLayout,_q$showAside=q.showAside,V=_q$showAside===void 0?true:_q$showAside,_q$showTabs=q.showTabs,N=_q$showTabs===void 0?true:_q$showTabs,_q$layout=q.layout,x=_q$layout===void 0?{}:_q$layout,_m$showLayout=m.showLayout,j=_m$showLayout===void 0?true:_m$showLayout,_m$showAside=m.showAside,l=_m$showAside===void 0?true:_m$showAside,_m$showTabs=m.showTabs,R=_m$showTabs===void 0?true:_m$showTabs,o=m.app;setHtmlMinWH(x);var Z=true,J=true,S=true;(O===false||j===false||j==="false")&&(Z=false,J=false,S=false),(V===false||l===false||l==="false")&&(J=false),(N===false||R===false||R==="false")&&(S=false),v.value=Z,n.value=J,r.value=S;});var s=computed(function(){return _objectSpread({mode:"out-in","enter-active-class":"animate__animated animate__fadeInLeft"},A.transitionConfig||{});});var i=/* @__PURE__ */new Map();var H=function H(q,m){var O;return i.has(m)?O=i.get(m):(O={name:m,render:function render(){return h("div",{style:{width:"100%",height:"100%"}},[h(q)]);}},i.set(m,O)),h(O);},c=computed(function(){return Ve.visible.value;});return function(q,m){var O=resolveComponent("router-view");return openBlock(),createElementBlock("div",Kt,[withDirectives(createElementVNode("div",{"class":normalizeClass(["das-web-app-overlay",p.value]),style:normalizeStyle(X.value)},null,6/* CLASS, STYLE */),[[vShow,c.value]]),P.value?withDirectives((openBlock(),createElementBlock("div",Ct,[renderSlot(q.$slots,"header",{},undefined,true)],512/* NEED_PATCH */)),[[vShow,c.value]]):createCommentVNode("v-if",true),createElementVNode("div",_t,[u.value?withDirectives((openBlock(),createElementBlock("div",$t,[renderSlot(q.$slots,"aside",{},undefined,true)],512/* NEED_PATCH */)),[[vShow,c.value]]):createCommentVNode("v-if",true),createElementVNode("div",AP,[z.value?withDirectives((openBlock(),createElementBlock("div",eP,[renderSlot(q.$slots,"tab",{},undefined,true)],512/* NEED_PATCH */)),[[vShow,c.value]]):createCommentVNode("v-if",true),createElementVNode("div",fP,[withDirectives(createElementVNode("div",vP,[renderSlot(q.$slots,"banner",{},undefined,true)],512/* NEED_PATCH */),[[vShow,c.value]]),createElementVNode("div",nP,[withDirectives((openBlock(),createElementBlock("div",{key:q.pageKey,style:{width:"100%",height:"100%"}},[renderSlot(q.$slots,"router-view",{},function(){return[createCommentVNode(" 有动画 "),q.needTransition?(openBlock(),createBlock(O,{key:0},{"default":withCtx(function(_ref23){var V=_ref23.Component;return[createVNode(Transition,normalizeProps(guardReactiveProps(s.value)),{"default":withCtx(function(){var N;return[unref(f).meta.keepAlive?(openBlock(),createBlock(KeepAlive,{key:0,exclude:b.value},[a.value&&!((N=unref(f).meta)!=null&&N.isIframe)?(openBlock(),createBlock(resolveDynamicComponent(H(V,unref(f).path)),{key:unref(f).path})):createCommentVNode("v-if",true)],1032,["exclude"])):createCommentVNode("v-if",true)];}),_:2/* DYNAMIC */},1040/* FULL_PROPS, DYNAMIC_SLOTS */),createVNode(Transition,normalizeProps(guardReactiveProps(s.value)),{"default":withCtx(function(){return[!unref(f).meta.keepAlive&&!unref(f).meta.isIframe?(openBlock(),createElementBlock("div",rP,[(openBlock(),createBlock(resolveDynamicComponent(V),{key:unref(f).path}))])):createCommentVNode("v-if",true)];}),_:2/* DYNAMIC */},1040/* FULL_PROPS, DYNAMIC_SLOTS */)];}),_:1/* STABLE */})):createCommentVNode("v-if",true),createCommentVNode(" 无动画 "),q.needTransition?createCommentVNode("v-if",true):(openBlock(),createBlock(O,{key:1},{"default":withCtx(function(_ref24){var V=_ref24.Component;return[unref(f).meta.keepAlive?(openBlock(),createBlock(KeepAlive,{key:0,exclude:b.value},[a.value&&!unref(f).meta.isIframe?(openBlock(),createBlock(resolveDynamicComponent(H(V,unref(f).path)),{key:unref(f).path})):createCommentVNode("v-if",true)],1032,["exclude"])):createCommentVNode("v-if",true),!unref(f).meta.keepAlive&&!unref(f).meta.isIframe?(openBlock(),createElementBlock("div",tP,[(openBlock(),createBlock(resolveDynamicComponent(V),{key:unref(f).path}))])):createCommentVNode("v-if",true)];}),_:1/* STABLE */})),withDirectives(createElementVNode("div",PP,[createVNode(St,{exclude:b.value,transitionConfig:s.value,needTransition:q.needTransition},null,8,["exclude","transitionConfig","needTransition"])],512/* NEED_PATCH */),[[vShow,unref(f).meta.isIframe]])];},true)])),[[vShow,t.value]]),withDirectives(createElementVNode("div",uP,[renderSlot(q.$slots,"default",{},undefined,true)],512/* NEED_PATCH */),[[vShow,!t.value]])])])])])]);};}}),$b=/* @__PURE__ */ZA(zP,[["__scopeId","data-v-cc197012"]]),dP=["theme","modelValue","logoUrl","config","innerPagesConfig","searchConfig","projectTreeConfig","userInfoConfig"],Aa=/* @__PURE__ */defineComponent({__name:"das-web-nav",setup:function setup(e){var A=Ve.nav,f=computed(function(){return A.theme;}),v=computed(function(){return A.logo||"";}),n=computed(function(){return A.activeItem||"";}),r=computed(function(){return(A.items||[]).filter(function(x){return x.fixed;});}),P=computed(function(){return(A.items||[]).filter(function(x){return!x.fixed;});}),u=computed(function(){var _ref25,_ref26,_ref27,_ref28,_ref29;var N,x,j,l,R;return{showAIHelper:(_ref25=(N=A.config)==null?undefined:N.showAIHelper)!==null&&_ref25!==void 0?_ref25:false,showFullScreen:(_ref26=(x=A.config)==null?undefined:x.showFullScreen)!==null&&_ref26!==void 0?_ref26:false,showChangeEnterprise:(_ref27=(j=A.config)==null?undefined:j.showChangeEnterprise)!==null&&_ref27!==void 0?_ref27:false,showSearch:(_ref28=(l=A.config)==null?undefined:l.showSearch)!==null&&_ref28!==void 0?_ref28:true,showProjectTree:(_ref29=(R=A.config)==null?undefined:R.showProjectTree)!==null&&_ref29!==void 0?_ref29:true,subAppList:P.value.map(function(o){return _objectSpread({code:o.value,name:o.label},o);})};}),z=computed(function(){var N=r.value.find(function(x){return x.value===A.activeItem;});return{activeInnerPagePath:(N==null?undefined:N.path)||"",innerPages:r.value.map(function(x){return _objectSpread({title:x.label},x);})};}),t=computed(function(){return _objectSpread({projectStore:{projectTree:A.projects,currentProject:A.activeProject}},A.projectConfig);}),d=computed(function(){return A.userInfo;}),p=computed(function(){return A.searchConfig;}),X=/*#__PURE__*/function(){var _ref30=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12(N){var x,j,_t13;return _regenerator().w(function(_context13){while(1)switch(_context13.n){case 0:x=N.detail[0],j=r.value.find(function(R){return x.value===R.value;});_context13.n=1;return dA.nav.triggerEventListener("onItemClick",j);case 1:_t13=_context13.v;if(!_t13){_context13.n=2;break;}dA.nav.setActiveItem(j.value);case 2:return _context13.a(2);}},_callee12);}));return function X(_x12){return _ref30.apply(this,arguments);};}(),b=/*#__PURE__*/function(){var _ref31=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee13(N){var x,j,_t14;return _regenerator().w(function(_context14){while(1)switch(_context14.n){case 0:x=N.detail[0],j=P.value.find(function(R){return x===R.value;});_context14.n=1;return dA.nav.triggerEventListener("onItemClick",j);case 1:_t14=_context14.v;if(!_t14){_context14.n=2;break;}dA.nav.setActiveItem(j.value);case 2:return _context14.a(2);}},_callee13);}));return function b(_x13){return _ref31.apply(this,arguments);};}(),a=/*#__PURE__*/function(){var _ref32=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee14(N){var x,j,_t15;return _regenerator().w(function(_context15){while(1)switch(_context15.n){case 0:x=N.detail[0],j=P.value.find(function(R){return x===R.value;});_context15.n=1;return dA.nav.triggerEventListener("onItemRemove",j);case 1:_t15=_context15.v;if(!_t15){_context15.n=2;break;}dA.nav.removeItem(j.value);case 2:return _context15.a(2);}},_callee14);}));return function a(_x14){return _ref32.apply(this,arguments);};}(),s=/*#__PURE__*/function(){var _ref33=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee15(N){var _N$detail,x,j,_t16,_t17;return _regenerator().w(function(_context16){while(1)switch(_context16.n){case 0:_N$detail=_slicedToArray(N.detail,2),x=_N$detail[0],j=_N$detail[1];_t16=!x;if(_t16){_context16.n=2;break;}_context16.n=1;return dA.nav.triggerEventListener("onProjectChange",j);case 1:_t16=!_context16.v;case 2:_t17=_t16;if(_t17){_context16.n=3;break;}dA.nav.setActiveProject(j);case 3:return _context16.a(2);}},_callee15);}));return function s(_x15){return _ref33.apply(this,arguments);};}(),i=function i(N){dA.nav.triggerEventListener("onUserCommandChange",N.detail[0]);},H=function H(N){dA.nav.triggerEventListener("searchToPage",{item:N.detail[0],keyword:N.detail[1],cb:N.detail[2]});},c=function c(N){dA.nav.triggerEventListener("clearSearchList",{cb:N.detail[0]});},q=function q(N){dA.nav.triggerEventListener("deleteSearchItem",{value:N.detail[0],cb:N.detail[1]});},m=function m(){dA.nav.triggerEventListener("changeEnterpriseHandle");},O=function O(){dA.nav.triggerEventListener("fullScreenHandle");},V=function V(){dA.nav.triggerEventListener("openAI");};return onBeforeMount(function(){dA.nav.triggerEventListener("onBeforeMount",null,{autoRemove:true});}),onMounted(function(){dA.nav.triggerEventListener("onMounted",null,{autoRemove:true});}),onUnmounted(function(){dA.nav.triggerEventListener("onUnmounted",null,{autoRemove:true});}),function(N,x){return openBlock(),createElementBlock("das-ce-nav",{theme:f.value,modelValue:n.value,logoUrl:v.value,config:u.value,innerPagesConfig:z.value,searchConfig:p.value,projectTreeConfig:t.value,userInfoConfig:d.value,"on:userCommandHandle":i,"on:changeInnerPage":X,"on:handleTabClick":b,"on:handleTabDelete":a,"on:changeTreeHandle":s,"on:searchToPage":H,"on:clearSearchList":c,"on:deleteSearchItem":q,"on:changeEnterpriseHandle":m,"on:fullScreen":O,"on:openAI":V},null,40,dP);};}}),XP=["theme","modelValue","data","collapse","fixedTopMenu","subMenuAttrs"],ea=/* @__PURE__ */defineComponent({__name:"das-web-menu",props:{menuAttr:{}},setup:function setup(e){var A=Ve.menu,f=e,v=computed(function(){return A.theme;}),n=computed(function(){return f.menuAttr||{};}),r=computed(function(){return A.items;}),P=computed(function(){return A.items.find(function(X){return X.fixed;});}),u=computed(function(){return A.activeItem||"";}),z=computed(function(){return A.collapse||false;}),t=computed(function(){var _A$popupClassName;return{popupClassName:(_A$popupClassName=A.popupClassName)!==null&&_A$popupClassName!==void 0?_A$popupClassName:""};}),d=/*#__PURE__*/function(){var _ref34=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee16(X){var b,a,_t18;return _regenerator().w(function(_context17){while(1)switch(_context17.n){case 0:b=X.detail[0],a=flatTree(r.value).find(function(i){return b===i.id;});_context17.n=1;return dA.menu.triggerEventListener("onItemClick",a);case 1:_t18=_context17.v;if(!_t18){_context17.n=2;break;}dA.menu.setActiveItem(a.id);case 2:return _context17.a(2);}},_callee16);}));return function d(_x16){return _ref34.apply(this,arguments);};}(),p=function p(X){dA.menu.setCollapse(X.detail[0]),dA.menu.triggerEventListener("toggleCollapse",X.detail[0]);};return function(X,b){return r.value.length>0?(openBlock(),createElementBlock("das-ce-menu",mergeProps({key:0,theme:v.value,modelValue:u.value,data:r.value,collapse:z.value,fixedTopMenu:P.value,subMenuAttrs:t.value},n.value,{onChange:d,"on:toggleCollapse":p}),null,16,XP)):createCommentVNode("v-if",true);};}}),cP=["theme","modelValue","options"],fa=/* @__PURE__ */defineComponent({__name:"das-web-tabs",props:{tabsAttr:{}},setup:function setup(e){var A=Ve.tab,f=e,v=computed(function(){return f.tabsAttr||{};}),n=computed(function(){return A.theme;}),r=computed(function(){return A.items.map(function(X){return _objectSpread(_objectSpread({},X),{},{key:X.value,tab:X.label});});}),P=computed(function(){return A.activeItem||"";}),u=/*#__PURE__*/function(){var _ref35=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee17(X){var b,a,_t19;return _regenerator().w(function(_context18){while(1)switch(_context18.n){case 0:b=X.detail[0],a=r.value.find(function(i){return b===i.value;});_context18.n=1;return dA.tab.triggerEventListener("onItemClick",a);case 1:_t19=_context18.v;if(!_t19){_context18.n=2;break;}dA.tab.setActiveItem(a.value);case 2:return _context18.a(2);}},_callee17);}));return function u(_x17){return _ref35.apply(this,arguments);};}(),z=/*#__PURE__*/function(){var _ref36=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee18(X){var b,a,_t20;return _regenerator().w(function(_context19){while(1)switch(_context19.n){case 0:b=X.detail[0],a=r.value.find(function(i){return b===i.value;});_context19.n=1;return dA.tab.triggerEventListener("onItemRemove",a);case 1:_t20=_context19.v;if(!_t20){_context19.n=2;break;}dA.tab.removeItem(a.value);case 2:return _context19.a(2);}},_callee18);}));return function z(_x18){return _ref36.apply(this,arguments);};}(),t=/*#__PURE__*/function(){var _ref37=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee19(X){return _regenerator().w(function(_context20){while(1)switch(_context20.n){case 0:_context20.n=1;return dA.tab.triggerEventListener("onMenuClick",{type:X.detail[0],data:X.detail[1]});case 1:return _context20.a(2);}},_callee19);}));return function t(_x19){return _ref37.apply(this,arguments);};}(),d=/*#__PURE__*/function(){var _ref38=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee20(X){return _regenerator().w(function(_context21){while(1)switch(_context21.n){case 0:_context21.n=1;return dA.tab.triggerEventListener("onPageRefresh",X.detail[0]);case 1:return _context21.a(2);}},_callee20);}));return function d(_x20){return _ref38.apply(this,arguments);};}(),p=function p(){dA.tab.triggerEventListener("onToggleFullScreen");};return function(X,b){return r.value.length>0?(openBlock(),createElementBlock("das-ce-tabs",mergeProps({key:0,theme:n.value,modelValue:P.value,options:r.value},v.value,{"on:tabClick":u,"on:tabDelete":z,"on:menuClick":t,"on:pageRefresh":d,"on:toggleFullScreen":p}),null,16,cP)):createCommentVNode("v-if",true);};}}),z3=ref("/das-micro-app"),yA=ref([]),E9=ref(false),L9=ref([]),y9=ref(true);var GA=null,UA=null,Be=null;var bP=function bP(e){return new Promise(function(A){var _f=function f(){if(GA!=null&&GA[e])return A();setTimeout(function(){return _f();},50);};_f();});},Qe=function Qe(e,A,f,v){var P;var _ref39=v||{},_ref39$awaitListener=_ref39.awaitListener,n=_ref39$awaitListener===void 0?false:_ref39$awaitListener,_URL=new URL(location.href),r=_URL.origin;n?bP(A).then(function(){var u;(u=window.self)==null||u.postMessage({type:A,data:f},r);}):(P=window.self)==null||P.postMessage({type:A,data:f},r);},aP=function aP(e){return new Promise(function(A){var _f2=function f(){if(UA!=null&&UA[e])return A();setTimeout(function(){return _f2();},50);};_f2();});},uf=function uf(e,A,f){var r;var _ref40=f||{},_ref40$awaitListener=_ref40.awaitListener,v=_ref40$awaitListener===void 0?false:_ref40$awaitListener,_URL2=new URL(location.href),n=_URL2.origin;v?aP(e).then(function(){var P;(P=window.self)==null||P.postMessage({type:e,data:A},n);}):(r=window.self)==null||r.postMessage({type:e,data:A},n);},iP=function iP(){UA||(UA||(UA={}),window.addEventListener("message",function(e){var _ref41=e.data||{},A=_ref41.type,f=_ref41.source;if(f!=="react-devtools-content-script"&&UA[A])for(var v in UA[A])UA[A][v](e.data);},false));},sP=function sP(){GA||(GA||(GA={}),window.addEventListener("message",function(e){var _ref42=e.data||{},A=_ref42.type;if(GA[A])for(var f in GA[A])GA[A][f](e.data);},false));},qP=function qP(e,A){sP();var f=(/* @__PURE__ */new Date()).getTime()+Math.random().toString(36).slice(-8);return GA[e]||(GA[e]={}),GA[e][f]=A,{remove:function remove(){GA[e]&&GA[e][f]&&delete GA[e][f];}};},HP=function HP(e,A){iP();var f=(/* @__PURE__ */new Date()).getTime()+Math.random().toString(36).slice(-8);return UA[e]||(UA[e]={}),UA[e][f]=A,{remove:function remove(){UA[e]&&UA[e][f]&&delete UA[e][f];}};},zf=/*#__PURE__*/function(){var _ref43=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee22(e){return _regenerator().w(function(_context23){while(1)switch(_context23.n){case 0:_context23.n=1;return Promise.all(yA.value.filter(function(A){return A.loaded;}).map(function(A){return new Promise(/*#__PURE__*/function(){var _ref44=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee21(f){var _t21;return _regenerator().w(function(_context22){while(1)switch(_context22.n){case 0:_t21=A.dom;if(_t21){_context22.n=1;break;}_context22.n=1;return new Promise(function(v){return watch(function(){return A.dom;},v);});case 1:setTimeout(function(){Qe(A.name,"sessionStorage",e),f(true);},0);case 2:return _context22.a(2);}},_callee21);}));return function(_x22){return _ref44.apply(this,arguments);};}());}));case 1:return _context23.a(2);}},_callee22);}));return function zf(_x21){return _ref43.apply(this,arguments);};}(),xA={loadMicroApp:function loadMicroApp(e){E9.value=true;var A=yA.value.find(function(P){return P.name===e;}),f=yA.value.find(function(P){return P.actived;}),v=!!A,n=!(A!=null&&A.loaded),r=A==null?undefined:A.actived;if(!v){f&&(f.actived=false);return;}if(A.isFirstActived=true,n){A.src=A.entry;var P=yA.value.find(function(u){return u.actived;});P&&(P.actived=false),A.loaded=true,A.actived=true;return;}if(!r){f&&(f.actived=false),A.actived=true;return;}},hideMicroApp:function(){var _hideMicroApp=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee23(e){var A,_t22,_t23;return _regenerator().w(function(_context24){while(1)switch(_context24.n){case 0:A=yA.value.find(function(f){return f.name===e;});_t22=A&&A.loaded;if(!_t22){_context24.n=2;break;}_t23=A.dom;if(_t23){_context24.n=1;break;}_context24.n=1;return new Promise(function(f){return watch(function(){return A.dom;},f);});case 1:Qe(e,"router",{cmd:"push",route:{name:"das-micro-app-ghost",microAppName:e}});case 2:return _context24.a(2);}},_callee23);}));function hideMicroApp(_x23){return _hideMicroApp.apply(this,arguments);}return hideMicroApp;}(),hideAllMicroApp:function hideAllMicroApp(){E9.value=false,yA.value.map(function(e){e.actived=false;});},unloadMicroApp:function unloadMicroApp(e){var A=yA.value.find(function(f){return f.name===e;});A&&(A.loaded=false,A.actived=false,A.dom=undefined);},unloadAllMicroApp:function unloadAllMicroApp(){E9.value=false,yA.value.map(function(e){e.loaded=false,e.actived=false,e.dom=undefined;});},setMicroAppRoute:function(){var _setMicroAppRoute=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee24(e,A,f){var v,n,r,P,_t24,_t25;return _regenerator().w(function(_context25){while(1)switch(_context25.n){case 0:v=yA.value.find(function(u){return u.name===A;});_t24=!v||!v.loaded||!v.actived;if(_t24){_context25.n=2;break;}_t25=v.dom;if(_t25){_context25.n=1;break;}_context25.n=1;return new Promise(function(u){return watch(function(){return v.dom;},u);});case 1:_t24=!v.actived;case 2:if(!_t24){_context25.n=3;break;}return _context25.a(2,v);case 3:n=f.path||f,r=f.query||{},P=f.params||{};return _context25.a(2,(e.push({path:"/".concat(A).concat(n),query:r,// @ts-ignore
|
|
4
4
|
params:P}),setTimeout(function(){var u=v.isFirstActived;Qe(A,"router",{cmd:u?"replace":"push",route:f,microAppName:A}),u&&(v.isFirstActived=false);},0),v));}},_callee24);}));function setMicroAppRoute(_x24,_x25,_x26){return _setMicroAppRoute.apply(this,arguments);}return setMicroAppRoute;}(),sendMessageToMicroApp:Qe,sendMessageToMainApp:uf,addEventListenerFromMainApp:qP,addEventListenerFromMicroApp:HP,setMainAppOverlay:function setMainAppOverlay(e,A){uf("bodyOverlay",{visible:e,style:A});},sessionStorage:{key:window.sessionStorage.key,getItem:window.sessionStorage.getItem,setItem:function setItem(e,A){window.sessionStorage.setItem(e,A),zf({cmd:"setItem",key:e,value:A});},removeItem:function removeItem(e){window.sessionStorage.removeItem(e),zf({cmd:"removeItem",key:e});},clear:function clear(){window.sessionStorage.clear(),zf({cmd:"clear"});}},addMicroAppLifeCycleListener:function addMicroAppLifeCycleListener(e,A){var f=(/* @__PURE__ */new Date()).getTime()+Math.random().toString(36).slice(-8);Be||(Be={});var v=function v(){Be[f]&&delete Be[f];};return Be[f]={type:e,handler:function(){var _handler5=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee25(n){return _regenerator().w(function(_context26){while(1)switch(_context26.n){case 0:_context26.n=1;return A(n);case 1:return _context26.a(2,_context26.v);}},_callee25);}));function handler(_x27){return _handler5.apply(this,arguments);}return handler;}(),remove:v},{remove:v};},triggerMicroAppLifeCycleListener:function triggerMicroAppLifeCycleListener(e,A,f){var r;var v=Be,_ref45=f||{},_ref45$autoRemove=_ref45.autoRemove,n=_ref45$autoRemove===void 0?false:_ref45$autoRemove;var _loop6=function _loop6(){var u=v[P];u.type===e&&((r=u==null?undefined:u.handler)==null||r.call(u,A).then(function(){n&&u.remove();}));};for(var P in v){_loop6();}},reloadMicroAppRoute:function(){var _reloadMicroAppRoute=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee26(e,A){var f,_t26,_t27,_t28;return _regenerator().w(function(_context27){while(1)switch(_context27.n){case 0:f=yA.value.find(function(v){return v.name===e;});_t26=f;if(!_t26){_context27.n=2;break;}_t27=!f.loaded||!f.actived;if(_t27){_context27.n=2;break;}_t28=f.dom;if(_t28){_context27.n=1;break;}_context27.n=1;return new Promise(function(v){return watch(function(){return f.dom;},v);});case 1:Qe(e,"route",{cmd:"reload",path:A});case 2:return _context27.a(2);}},_callee26);}));function reloadMicroAppRoute(_x28,_x29){return _reloadMicroAppRoute.apply(this,arguments);}return reloadMicroAppRoute;}(),unloadMicroAppRoute:function(){var _unloadMicroAppRoute=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee27(e,A){var f,_t29,_t30,_t31;return _regenerator().w(function(_context28){while(1)switch(_context28.n){case 0:f=yA.value.find(function(v){return v.name===e;});_t29=f;if(!_t29){_context28.n=2;break;}_t30=!f.loaded||!f.actived;if(_t30){_context28.n=2;break;}_t31=f.dom;if(_t31){_context28.n=1;break;}_context28.n=1;return new Promise(function(v){return watch(function(){return f.dom;},v);});case 1:Qe(e,"route",{cmd:"unload",path:A});case 2:return _context28.a(2);}},_callee27);}));function unloadMicroAppRoute(_x30,_x31){return _unloadMicroAppRoute.apply(this,arguments);}return unloadMicroAppRoute;}(),setMainAppLayoutVisible:function setMainAppLayoutVisible(e){uf("layoutVisible",{visible:e});}};var d3;var p7=(typeof window==="undefined"?"undefined":_typeof(window))<"u",pP=function pP(e){return typeof e=="string";},mP=function mP(){};p7&&(d3=window==null?undefined:window.navigator)!=null&&d3.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Sv(e){return typeof e=="function"?e():unref(e);}function lP(e){return e;}function Kv(e){return getCurrentScope()?(onScopeDispose(e),true):false;}function xP(e){var A=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;getCurrentInstance()?onMounted(e):A?e():nextTick(e);}function Cv(e){var A;var f=Sv(e);return(A=f==null?undefined:f.$el)!=null?A:f;}var OP=p7?window:undefined,DP=p7?window.document:undefined;function VP(){var _e2,_e3;var A,f,v,n;for(var _len3=arguments.length,e=new Array(_len3),_key3=0;_key3<_len3;_key3++){e[_key3]=arguments[_key3];}if(pP(e[0])||Array.isArray(e[0])?(f=e[0],v=e[1],n=e[2],A=OP):(_e2=e,_e3=_slicedToArray(_e2,4),A=_e3[0],f=_e3[1],v=_e3[2],n=_e3[3],_e2),!A)return mP;Array.isArray(f)||(f=[f]),Array.isArray(v)||(v=[v]);var r=[],P=function P(){r.forEach(function(d){return d();}),r.length=0;},u=function u(d,p,X,b){return d.addEventListener(p,X,b),function(){return d.removeEventListener(p,X,b);};},z=watch(function(){return[Cv(A),Sv(n)];},function(_ref46){var _ref47=_slicedToArray(_ref46,2),d=_ref47[0],p=_ref47[1];P(),d&&r.push.apply(r,_toConsumableArray(f.flatMap(function(X){return v.map(function(b){return u(d,X,b,p);});})));},{immediate:true,flush:"post"}),t=function t(){z(),P();};return Kv(t),t;}function NP(e){var A=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var f=ref(),v=function v(){return f.value=!!e();};return v(),xP(v,A),f;}var X3=(typeof globalThis==="undefined"?"undefined":_typeof(globalThis))<"u"?globalThis:(typeof window==="undefined"?"undefined":_typeof(window))<"u"?window:(typeof global==="undefined"?"undefined":_typeof(global))<"u"?global:(typeof self==="undefined"?"undefined":_typeof(self))<"u"?self:{},c3="__vueuse_ssr_handlers__";X3[c3]=X3[c3]||{};var b3=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];function e9(e){var A=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var _A$document=A.document,f=_A$document===void 0?DP:_A$document,_A$autoExit=A.autoExit,v=_A$autoExit===void 0?false:_A$autoExit,n=e||(f==null?undefined:f.querySelector("html")),r=ref(false);var P=b3[0];var u=NP(function(){if(f){for(var _i=0,_b2=b3;_i<_b2.length;_i++){var s=_b2[_i];if(s[1]in f)return P=s,true;}}else return false;return false;}),_P2=P,_P3=_slicedToArray(_P2,5),z=_P3[0],t=_P3[1],d=_P3[2],p=_P3[4];function X(){return _X2.apply(this,arguments);}function _X2(){_X2=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee28(){var _t32,_t33;return _regenerator().w(function(_context29){while(1)switch(_context29.n){case 0:_t32=u.value;if(!_t32){_context29.n=2;break;}_t33=f!=null&&f[d];if(!_t33){_context29.n=1;break;}_context29.n=1;return f[t]();case 1:r.value=false;case 2:return _context29.a(2);}},_callee28);}));return _X2.apply(this,arguments);}function b(){return _b3.apply(this,arguments);}function _b3(){_b3=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee29(){var s,_t34;return _regenerator().w(function(_context30){while(1)switch(_context30.n){case 0:if(u.value){_context30.n=1;break;}return _context30.a(2);case 1:_context30.n=2;return X();case 2:s=Cv(n);_t34=s;if(!_t34){_context30.n=4;break;}_context30.n=3;return s[z]();case 3:r.value=true;case 4:return _context30.a(2);}},_callee29);}));return _b3.apply(this,arguments);}function a(){return _a.apply(this,arguments);}function _a(){_a=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee30(){return _regenerator().w(function(_context31){while(1)switch(_context31.n){case 0:if(!r.value){_context31.n=2;break;}_context31.n=1;return X();case 1:_context31.n=3;break;case 2:_context31.n=3;return b();case 3:return _context31.a(2);}},_callee30);}));return _a.apply(this,arguments);}return f&&VP(f,p,function(){r.value=!!(f!=null&&f[d]);},false),v&&Kv(X),{isSupported:u,isFullscreen:r,enter:b,exit:X,toggle:a};}var a3;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE";})(a3||(a3={}));var RP=Object.defineProperty,i3=Object.getOwnPropertySymbols,jP=Object.prototype.hasOwnProperty,oP=Object.prototype.propertyIsEnumerable,s3=function s3(e,A,f){return A in e?RP(e,A,{enumerable:true,configurable:true,writable:true,value:f}):e[A]=f;},ZP=function ZP(e,A){for(var f in A)jP.call(A,f)&&s3(e,f,A[f]);if(i3){var _iterator5=_createForOfIteratorHelper(i3(A)),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var f=_step5.value;oP.call(A,f)&&s3(e,f,A[f]);}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}return e;};var TP={easeInSine:[0.12,0,0.39,0],easeOutSine:[0.61,1,0.88,1],easeInOutSine:[0.37,0,0.63,1],easeInQuad:[0.11,0,0.5,0],easeOutQuad:[0.5,1,0.89,1],easeInOutQuad:[0.45,0,0.55,1],easeInCubic:[0.32,0,0.67,0],easeOutCubic:[0.33,1,0.68,1],easeInOutCubic:[0.65,0,0.35,1],easeInQuart:[0.5,0,0.75,0],easeOutQuart:[0.25,1,0.5,1],easeInOutQuart:[0.76,0,0.24,1],easeInQuint:[0.64,0,0.78,0],easeOutQuint:[0.22,1,0.36,1],easeInOutQuint:[0.83,0,0.17,1],easeInExpo:[0.7,0,0.84,0],easeOutExpo:[0.16,1,0.3,1],easeInOutExpo:[0.87,0,0.13,1],easeInCirc:[0.55,0,1,0.45],easeOutCirc:[0,0.55,0.45,1],easeInOutCirc:[0.85,0,0.15,1],easeInBack:[0.36,0,0.66,-0.56],easeOutBack:[0.34,1.56,0.64,1],easeInOutBack:[0.68,-0.6,0.32,1.6]};ZP({linear:lP},TP);var LP=["src","entry","name"],yP=/* @__PURE__ */defineComponent({__name:"das-micro-app",props:{src:{},name:{},actived:{type:Boolean}},emits:["onLoaded","onActivated","onDeactivated"],setup:function setup(e,_ref48){var A=_ref48.emit;var f=e,v=A,n=function n(u){v("onLoaded",u);},r=computed(function(){return f.actived;});return watch(function(){return r.value;},function(u){u&&v("onActivated"),u||v("onDeactivated");}),function(u,z){return openBlock(),createElementBlock("iframe",{"class":"das-micro-app",src:f.src,entry:f.src,name:f.name,frameborder:"0",onLoad:n},null,40,LP);};}}),wP=/* @__PURE__ */ZA(yP,[["__scopeId","data-v-8ae871f6"]]),WP=/* @__PURE__ */defineComponent({__name:"das-micro-apps",setup:function setup(e){var A=ref(null),f=/*#__PURE__*/function(){var _ref49=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee31(r,P){var u,z,t,d;return _regenerator().w(function(_context32){while(1)switch(_context32.n){case 0:u=yA.value.find(function(X){return X.name===P;});if(u){_context32.n=1;break;}return _context32.a(2);case 1:u.dom=r.target;_context32.n=2;return nextTick();case 2:_context32.n=3;return new Promise(function(X){return setTimeout(X,50);});case 3:z=function z(){var X=A.value.getBoundingClientRect()||{};return X.width=A.value.clientWidth,X.height=A.value.clientHeight,X;};xA.sendMessageToMicroApp(P,"onLoaded",{href:location.href,microAppContainerRect:z(),entry:u.entry,name:u.name});t=u.dom,d=_objectWithoutProperties(u,_excluded3);xA.triggerMicroAppLifeCycleListener("onLoaded",d),new ResizeObserver(function(){xA.sendMessageToMicroApp(P,"resize",z());}).observe(A.value),xA.sendMessageToMicroApp(P,"setProxyMessageStatus",{visible:true,parentHref:location.href}),xA.sendMessageToMicroApp(P,"setProxSsoStatus",{visible:true,parentHref:location.href});case 4:return _context32.a(2);}},_callee31);}));return function f(_x32,_x33){return _ref49.apply(this,arguments);};}(),v=function v(r,P){var u=yA.value.find(function(d){return d.name===P;});if(!u)return;var z=u.dom,t=_objectWithoutProperties(u,_excluded4);xA.sendMessageToMicroApp(P,"onActivated"),xA.triggerMicroAppLifeCycleListener("onActivated",t);},n=function n(r,P){var u=yA.value.find(function(d){return d.name===P;});if(!u)return;var z=u.dom,t=_objectWithoutProperties(u,_excluded5);xA.sendMessageToMicroApp(P,"onDeactivated"),xA.triggerMicroAppLifeCycleListener("onDeactivated",t);};return function(r,P){return openBlock(),createElementBlock("div",{ref_key:"containerRef",ref:A,"class":"das-micro-app-container"},[(openBlock(true),createElementBlock(Fragment,null,renderList(unref(yA),function(u){return openBlock(),createElementBlock(Fragment,null,[u.loaded?withDirectives((openBlock(),createBlock(wP,{key:0,src:u.src||"",name:u.name,actived:u.actived,onOnLoaded:function onOnLoaded(z){return f(z,u.name);},onOnActivated:function onOnActivated(z){return v(z,u.name);},onOnDeactivated:function onOnDeactivated(z){return n(z,u.name);}},null,8,["src","name","actived","onOnLoaded","onOnActivated","onOnDeactivated"])),[[vShow,u.actived]]):createCommentVNode("v-if",true)],64/* STABLE_FRAGMENT */);}),256/* UNKEYED_FRAGMENT */))],512/* NEED_PATCH */);};}}),EP=/* @__PURE__ */ZA(WP,[["__scopeId","data-v-3abdb1e9"]]),va=/* @__PURE__ */defineComponent({__name:"das-main-app-layout",props:{transitionConfig:{"default":function _default(){}},showLayout:{type:Boolean,"default":true},showAside:{type:Boolean,"default":true},showTabs:{type:Boolean,"default":true},menuAttr:{"default":function _default(){}},tabsAttr:{"default":function _default(){}}},setup:function setup(e){var A=e,f=computed(function(){return!E9.value;}),v=computed(function(){return _objectSpread({"enter-active-class":"animate__animated animate__fadeInLeft"},A.transitionConfig);}),n=computed(function(){return{showLayout:A.showLayout,showAside:A.showAside,showTabs:A.showTabs};});return function(r,P){return openBlock(),createBlock(unref(DasWebLayout),mergeProps({"transition-config":v.value,"router-view-visible":f.value},n.value),{header:withCtx(function(){return[renderSlot(r.$slots,"header",{},function(){return[createVNode(unref(DasWebNav))];})];}),aside:withCtx(function(){return[renderSlot(r.$slots,"aside",{},function(){return[createVNode(unref(DasWebMenu),{menuAttr:r.menuAttr},null,8,["menuAttr"])];})];}),tab:withCtx(function(){return[renderSlot(r.$slots,"tab",{},function(){return[createVNode(unref(DasWebTabs),{tabsAttr:r.tabsAttr},null,8,["tabsAttr"])];})];}),"default":withCtx(function(){return[createVNode(EP)];}),_:3/* FORWARDED */},16,["transition-config","router-view-visible"]);};}}),_v=/* @__PURE__ */defineComponent({__name:"das-micro-app-ghost",setup:function setup(e){return onActivated(function(){setTimeout(function(){document.documentElement.checkVisibility()&&history.back();},300);}),function(A,f){return null;};}}),IP=function IP(e){return["http://","https://","ws://","wss://","/"].find(function(f){return e.startsWith(f);})?e:"/".concat(e);},na=function na(e,A){if(!(e!=null&&e.microApps)||!Array.isArray(e.microApps))return;window.__IN_DAS_MAIN_APP=true,e!=null&&e.microAppRouterPrefix&&(z3.value=e.microAppRouterPrefix),yA.value=(e.microApps||[]).filter(function(n){return!!n.name;}).map(function(n){return _objectSpread(_objectSpread({},n),{},{entry:IP(n.entry||n.name)});}),A==null||A.addRoute({name:"das-micro-app",path:"".concat(z3.value,"/:pathMatch(.*)*"),component:_v,meta:{isMicroApp:true,keepAlive:true}}),xA.addEventListenerFromMicroApp("bodyOverlay",function(n){var _n$data=n.data,r=_n$data.visible,P=_n$data.style;dA.overlay.set(r,P);}),xA.addEventListenerFromMicroApp("layoutVisible",function(n){var r=n.data.visible;dA.setVisible(r);}),xA.addEventListenerFromMicroApp("route",function(n){var _n$data2=n.data,r=_n$data2.name,P=_n$data2.cmd,u=_n$data2.path;P==="reload"&&xA.reloadMicroAppRoute(r,u),P==="unload"&&xA.unloadMicroAppRoute(r,u);});var _e4=e9(),f=_e4.enter,v=_e4.exit;xA.addEventListenerFromMicroApp("fullscreen",function(n){var r=n.data;r&&f(),r||v();}),xA.addEventListenerFromMicroApp("location",function(n){var _ref50=n.data||{},r=_ref50.cmd,P=_ref50.isAutoCloseApp;r==="reload"&&(P!==undefined&&(window.__isAutoCloseApp=P),location.reload());});},ra=function ra(e,A){if(!(e!=null&&e.microAppName))return;window.config.microAppName=e.microAppName,window.self!==window.top&&e.microAppName&&(window.__IN_DAS_MICRO_APP=true);var f="das-micro-app-ghost";A==null||A.addRoute({name:f,path:"/".concat(f,"/:pathMatch(.*)*"),component:_v,meta:{isMicroApp:true,keepAlive:true}});var v=ref(false),n=ref(false),r=ref("");watch(function(){return A.currentRoute.value;},function(P){if(v.value){v.value=false;return;}if(n.value){n.value=false;return;}var u=P.path,z=P.query,t=P.params,d=P.meta;if(r.value.includes(P.path)){r.value="";return;}xA.sendMessageToMainApp("router",{cmd:"push",route:{path:u,query:_objectSpread(_objectSpread({},z),{},{microAppName:e.microAppName}),params:t,meta:d}});}),xA.addEventListenerFromMainApp("router",/*#__PURE__*/function(){var _ref51=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee32(P){var d,_P$data,u,z,_P$data$microAppName,t;return _regenerator().w(function(_context33){while(1)switch(_context33.n){case 0:_P$data=P.data,u=_P$data.cmd,z=_P$data.route,_P$data$microAppName=_P$data.microAppName,t=_P$data$microAppName===void 0?"":_P$data$microAppName;r.value=("/"+t+z.path).replace(/\/\//g,"/"),(d=A==null?undefined:A[u])==null||d.call(A,z);case 1:return _context33.a(2);}},_callee32);}));return function(_x34){return _ref51.apply(this,arguments);};}()),xA.addEventListenerFromMainApp("onLoaded",function(P){var _P$data2=P.data,u=_P$data2.href,z=_P$data2.microAppContainerRect;window.__IN_DAS_MICRO_APP=true,window.__DAS_MICRO_APP_NAME=e.microAppName,window.__DAS_MAIN_APP_HREF=u,window.__DAS_MICRO_APP_CONTAINER_RECT=z;}),xA.addEventListenerFromMainApp("onDeactivated",function(P){var _A$currentRoute$value=A.currentRoute.value,_A$currentRoute$value2=_A$currentRoute$value.name,u=_A$currentRoute$value2===void 0?"":_A$currentRoute$value2,z=_A$currentRoute$value.path,_A$currentRoute$value3=_A$currentRoute$value.params,t=_A$currentRoute$value3===void 0?{}:_A$currentRoute$value3,_A$currentRoute$value4=_A$currentRoute$value.query,d=_A$currentRoute$value4===void 0?{}:_A$currentRoute$value4;n.value=true,A==null||A.push({name:f,query:{microAppName:e.microAppName,fromQuery:JSON.stringify(d),fromPath:z},params:t});}),xA.addEventListenerFromMainApp("onActivated",function(P){var _A$currentRoute$value5=A.currentRoute.value,_A$currentRoute$value6=_A$currentRoute$value5.name,u=_A$currentRoute$value6===void 0?"":_A$currentRoute$value6,_A$currentRoute$value7=_A$currentRoute$value5.params,z=_A$currentRoute$value7===void 0?{}:_A$currentRoute$value7,_A$currentRoute$value8=_A$currentRoute$value5.query,t=_A$currentRoute$value8===void 0?{}:_A$currentRoute$value8,_ref52=t||{},_ref52$fromPath=_ref52.fromPath,d=_ref52$fromPath===void 0?"":_ref52$fromPath,_ref52$fromQuery=_ref52.fromQuery,p=_ref52$fromQuery===void 0?"{}":_ref52$fromQuery;v.value=true,A==null||A.push({path:d,query:JSON.parse(p),params:z});}),xA.addEventListenerFromMainApp("sessionStorage",function(P){var _P$data3=P.data,u=_P$data3.cmd,z=_P$data3.key,t=_P$data3.value;u==="setItem"&&window.sessionStorage.setItem(z,t),u==="getItem"&&window.sessionStorage.getItem(z),u==="removeItem"&&window.sessionStorage.removeItem(z),u==="clear"&&window.sessionStorage.clear();}),xA.addEventListenerFromMainApp("route",function(P){var _P$data4=P.data,u=_P$data4.cmd,z=_P$data4.path;u==="reload"&&(L9.value.push(z),y9.value=false,setTimeout(function(){y9.value=true,L9.value=[];},300)),u==="unload"&&(L9.value.push(z),y9.value=false,setTimeout(function(){y9.value=true,L9.value=[];},100));});},be="/home",_A="/application",$v=[{value:be,label:"首页",path:be,fixed:true},{value:_A,label:"应用",path:_A,fixed:true}],Ne="/outerView",An="/placeholder",gP=[{value:"0",label:"个性化设置"},{value:"1",label:"个人中心"},{value:"2",label:"修改密码"},{value:"3",label:"退出登录"}],MP={key:0,"class":"box-banner-wrap"},BP={"class":"icon-wrap"},kP=/* @__PURE__ */defineComponent({__name:"banner",emits:["close-tip"],setup:function setup(e,_ref53){var A=_ref53.emit;var f=A,v=ref(true),n=ref(""),r=ref(0),P=ref({}),u=function u(){f("close-tip",true),v.value=true;};microFrontend.sendMessageToMicroApp("iot/iot","iot:banner-data-1",null,{awaitListener:true});var _microFrontend$addEve=microFrontend.addEventListenerFromMicroApp("iot:banner-data-2",function(t){var d=JSON.parse(t.data);v.value=d==null?undefined:d.isClosed,n.value=d==null?undefined:d.expireDate,r.value=d==null?undefined:d.relativeDate,P.value=d==null?undefined:d.curExample;}),z=_microFrontend$addEve.remove;return onUnmounted(function(){z();}),function(t,d){return v.value?createCommentVNode("v-if",true):(openBlock(),createElementBlock("div",MP,[createElementVNode("div",BP,[createVNode(unref(DasIconWarning),{"class":"icons",iconColor:"#fdaf1a"}),createTextVNode(" "+toDisplayString(unref(i18n)("iot-banner-tip",P.value.instanceName,r.value,n.value).value),1/* TEXT */)]),createVNode(unref(DasIconClose2),{"class":"icons close-icon",iconColor:"#999999",onClick:u})]));};}}),QP=/* @__PURE__ */ZA(kP,[["__scopeId","data-v-cb7c6db7"]]),YP=/* @__PURE__ */defineComponent({__name:"index",setup:function setup(e){var A=useRoute(),f=ref("");return watch(function(){return A.path;},function(v){f.value=v;},{immediate:true}),function(v,n){return f.value.startsWith("/iot/iot")?(openBlock(),createBlock(QP,{key:0})):createCommentVNode("v-if",true);};}}),GP=/* @__PURE__ */defineComponent({__name:"base-layout",props:{loading:{type:Boolean,"default":false},transitionConfig:{"default":function _default(){return{};}},showLayout:{type:Boolean,"default":true},showAside:{type:Boolean,"default":true},showTabs:{type:Boolean,"default":true},menuAttr:{"default":function _default(){return{};}},tabsAttr:{"default":function _default(){return{};}},excludeRoutes:{"default":function _default(){return[];}},routeKeepAliveVisible:{type:Boolean,"default":true},pageKey:{"default":"0"}},setup:function setup(e){var A=e,f=computed(function(){return _objectSpread({"enter-active-class":"animate__animated animate__fadeInLeft"},A.transitionConfig);}),v=computed(function(){return{showLayout:A.showLayout,showAside:A.showAside,showTabs:A.showTabs,excludeRoutes:A.excludeRoutes,routeKeepAliveVisible:A.routeKeepAliveVisible};});return function(n,r){return openBlock(),createBlock(unref(DasWebLayout),mergeProps({loading:n.loading,pageKey:n.pageKey,"transition-config":f.value},v.value),{header:withCtx(function(){return[renderSlot(n.$slots,"header",{},function(){return[createVNode(unref(DasWebNav))];})];}),aside:withCtx(function(){return[renderSlot(n.$slots,"aside",{},function(){return[createVNode(unref(DasWebMenu),{menuAttr:n.menuAttr},null,8,["menuAttr"])];})];}),tab:withCtx(function(){return[renderSlot(n.$slots,"tab",{},function(){return[createVNode(unref(DasWebTabs),{tabsAttr:n.tabsAttr},null,8,["tabsAttr"])];})];}),banner:withCtx(function(){return[renderSlot(n.$slots,"banner",{},function(){return[createVNode(YP)];})];}),_:3/* FORWARDED */},16,["loading","pageKey","transition-config"]);};}}),UP=systemConfiguration.get("watermark"),JP=/* @__PURE__ */defineComponent({__name:"index",props:{platformInitNextTick:{}},setup:function setup(e){var A=e,f=ref({}),v=ref(120),n=ref(64),r=ref([]),P=ref([]),u=reactive({color:"rgba(0,0,0,.15)",fontSize:16}),z=function z(s,i){var H=document.createElement("span");H.innerHTML=s,H.style.fontSize=i+"px",H.style.fontFamily="sans-serif",H.style.visibility="hidden",document.body.appendChild(H);var c=H.getBoundingClientRect();v.value=Math.ceil(c.width)+i/2,n.value=Math.ceil(c.height),document.body.removeChild(H);},t=ref(false),d=function d(){return new Promise(function(s){var _i2=function i(){if(t)return s(true);setTimeout(function(){return _i2();},50);};_i2();});},p=/*#__PURE__*/function(){var _ref54=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee33(s){var H,i;return _regenerator().w(function(_context34){while(1)switch(_context34.n){case 0:_context34.n=1;return d();case 1:i=!!((H=f.value)!=null&&H.pageSwith);P.value=s&&i?_toConsumableArray(r.value):[];case 2:return _context34.a(2);}},_callee33);}));return function p(_x35){return _ref54.apply(this,arguments);};}(),X=/*#__PURE__*/function(){var _ref55=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee34(){var c,q,m,O,V,N,x,_yield$UP$run,_yield$UP$run2,s,i,_yield$userInfoNextTi,j,l,R,_o,_o2;return _regenerator().w(function(_context35){while(1)switch(_context35.n){case 0:t.value=true;_context35.n=1;return A==null?undefined:A.platformInitNextTick();case 1:_context35.n=2;return UP().run();case 2:_yield$UP$run=_context35.v;_yield$UP$run2=_slicedToArray(_yield$UP$run,2);s=_yield$UP$run2[0];i=_yield$UP$run2[1];if(!s){_context35.n=3;break;}return _context35.a(2,null);case 3:if(!(f.value=i,!!((c=f.value)!=null&&c.pageSwith))){_context35.n=5;break;}r.value=[];_context35.n=4;return userInfoNextTick();case 4:_yield$userInfoNextTi=_context35.v;j=_yield$userInfoNextTi.name;l=_yield$userInfoNextTi.phone;R="";if((q=f.value)!=null&&q.nameSwith&&j&&(r.value.push(j),R=R+"".concat(j," ")),(m=f.value)!=null&&m.phoneSwith&&l){_o=l.slice(-4);r.value.push(_o),R=R+"".concat(_o," ");}if((O=f.value)!=null&&O.textSwith&&(V=f.value)!=null&&V.text){r.value.push(f.value.text);_o2=f.value.text.replaceAll("\n","<br/>");R=R+"".concat(_o2);}r.value.length&&(r.value=r.value.join(" ").split("\n")),u.color=(N=f.value)!=null&&N.textColor?f.value.textColor:"rgba(0,0,0,.15)",u.fontSize=(x=f.value)!=null&&x.textSize?parseInt(f.value.textSize):16,z(R,u.fontSize);case 5:return _context35.a(2,(t.value=false,i));}},_callee34);}));return function X(){return _ref55.apply(this,arguments);};}();X();var b=useRouter(),a=useRoute();return watch(function(){return b.currentRoute.value;},function(s){var _ref56,_ref57;var q,m,O;var i=!!((q=f.value)!=null&&q.pageSwith),H=(_ref56=(m=s.meta)==null?undefined:m.showWatermark)!==null&&_ref56!==void 0?_ref56:true;var c=(_ref57=(O=s.query)==null?undefined:O.showWatermark)!==null&&_ref57!==void 0?_ref57:true;c==="false"&&(c=false),p(i&&!!(H&&c));},{immediate:true}),microFrontend.addEventListenerFromMicroApp("systemconfig:watermark-change",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee35(){var _ref59;var H,c,s,i;return _regenerator().w(function(_context36){while(1)switch(_context36.n){case 0:_context36.n=1;return X();case 1:s=!!((H=f.value)!=null&&H.pageSwith);i=(_ref59=(c=a.query)==null?undefined:c.showWatermark)!==null&&_ref59!==void 0?_ref59:true;i==="false"&&(i=false),p(!!(s&&i));case 2:return _context36.a(2);}},_callee35);}))),function(s,i){return openBlock(),createBlock(unref(DasWatermark),{"class":"watermark",font:u,zIndex:2147483647,content:P.value,width:v.value,height:n.value},{"default":withCtx(function(){return[renderSlot(s.$slots,"default",{},undefined,true)];}),_:3/* FORWARDED */},8,["font","content","width","height"]);};}}),hP=/* @__PURE__ */ZA(JP,[["__scopeId","data-v-9d1f6b72"]]),FP={"--menu-tip-diaolg-content":"#212121","--menu-tip-diaolg-divide":"#d9d9d9","--menu-tip-diaolg-info":"#999999"},SP=["innerHTML"],KP={"class":"footer"},CP=/* @__PURE__ */defineComponent({__name:"tip",props:{title:{},content:{},desc:{},closeCallback:{}},setup:function setup(e){var A=ref(true);return function(f,v){return openBlock(),createBlock(unref(DasDialog),{modelValue:A.value,"onUpdate:modelValue":v[0]||(v[0]=function(n){return A.value=n;}),type:"feedback",feedType:"warning",width:f.desc&&f.desc.length?480:460,height:f.desc&&f.desc.length?450:340,title:f.title,"custom-class":"menu-tip-diaolg",onClosed:f.closeCallback},{footer:withCtx(function(){return[createElementVNode("div",KP,[createVNode(unref(DasButton),{btnType:"default",size:"small",onClick:f.closeCallback},{"default":withCtx(function(){return[createTextVNode(toDisplayString(unref(t$1)("我知道了")),1/* TEXT */)];}),_:1/* STABLE */},8,["onClick"])])];}),"default":withCtx(function(){return[createElementVNode("div",{"class":"content",innerHTML:f.content},null,8,SP),f.desc&&f.desc.length?(openBlock(),createElementBlock(Fragment,{key:0},[v[1]||(v[1]=createElementVNode("div",{"class":"divide"},null,-1/* CACHED */)),(openBlock(true),createElementBlock(Fragment,null,renderList(f.desc,function(n,r){return withDirectives((openBlock(),createElementBlock("div",{key:r,"class":"desc-item"},[createTextVNode(toDisplayString(n),1/* TEXT */)])),[[unref(vDasTooltip)]]);}),128/* KEYED_FRAGMENT */))],64/* STABLE_FRAGMENT */)):createCommentVNode("v-if",true)];}),_:1/* STABLE */},8,["modelValue","width","height","title","onClosed"]);};}}),_P=/* @__PURE__ */ZA(CP,[["__scopeId","data-v-75a4552b"]]),q9=function q9(_ref60){var _ref60$title=_ref60.title,e=_ref60$title===void 0?"":_ref60$title,_ref60$content=_ref60.content,A=_ref60$content===void 0?"":_ref60$content,_ref60$desc=_ref60.desc,f=_ref60$desc===void 0?[]:_ref60$desc;return new Promise(function(v){var n=document.createElement("div");n.setAttribute("id","entry-app-dialog"),document.body.appendChild(n);var P=h(_P,{title:e,content:A,desc:f,closeCallback:function closeCallback(){render(null,n),document.body.removeChild(n),v(null);}});render(P,n);});};setThemeRule(FP);var $P=function $P(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};sessionStorage.setItem("userInfo",JSON.stringify(e));},Au=function Au(){var _e$id,_e$userName,_e$flag,_ref61;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var f;sessionStorage.setItem("tenantInfo",JSON.stringify(e));var A={id:(_e$id=e.id)!==null&&_e$id!==void 0?_e$id:"",name:(_e$userName=e.userName)!==null&&_e$userName!==void 0?_e$userName:"",flag:(_e$flag=e.flag)!==null&&_e$flag!==void 0?_e$flag:null,tenantId:(_ref61=(f=e==null?undefined:e.tenant)==null?undefined:f.id)!==null&&_ref61!==void 0?_ref61:""};sessionStorage.setItem("hotentUserInfo",JSON.stringify(A));},eu=function eu(e){sessionStorage.setItem("languages",JSON.stringify(e));},fu=function fu(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};sessionStorage.setItem("home-config",JSON.stringify(e));},vu=function vu(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";localStorage.setItem("fav-icon",e);},nu=function nu(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};sessionStorage.setItem("project-message",JSON.stringify(e));},ru=function ru(){sessionStorage.removeItem("projectInfo"),sessionStorage.removeItem("project");},JA=function JA(e){var A=getTabInfo();e.forEach(function(f){var v;if(f.key.startsWith("tabMap")){var n=f.key.split(":")[1];if(Array.isArray(f.value))A.tabMap[n]=f.value;else if((v=A.tabMap[n])!=null&&v.length){var r=A.tabMap[n].findIndex(function(P){return P.code===f.value.code;});r!==-1?A.tabMap[n].splice(r,1,f.value):A.tabMap[n].push(f.value);}else A.tabMap[n]=[f.value];}else if(f.key.startsWith("preTab")){var _n3=f.key.split(":")[1];A.preTab||(A.preTab={}),A.preTab[_n3]=f.value;}else Object.assign(A,_defineProperty({},f.key,f.value));}),sessionStorage.setItem("tabs",JSON.stringify(A));},en=function en(){sessionStorage.removeItem("tabs");},FA=function FA(e){var A=getSubApps();e.forEach(function(f){if(f.key==="subAppList"&&!Array.isArray(f.value)){var v=A.subAppList.findIndex(function(n){return n.code===f.value.code;});v!==-1?A.subAppList.splice(v,1,f.value):A.subAppList.push(f.value);}else Object.assign(A,_defineProperty({},f.key,f.value));}),sessionStorage.setItem("subApps",JSON.stringify(A));},m7=function m7(){FA([{key:"currentSubApp",value:{}},{key:"currentSubAppCode",value:""},{key:"subAppList",value:[]},{key:"menuCollapses",value:[]}]);},fn=function fn(e){var A=getSubApps();A.currentSubApp.currentMenuCode=e;for(var f in A.subAppList)A.subAppList[f].code===A.currentSubAppCode&&(A.subAppList[f].currentMenuCode=e);sessionStorage.setItem("subApps",JSON.stringify(A));},tu=function tu(e,A){var f="permission-btn",v=JSON.parse(sessionStorage.getItem(f)||"{}")||{},n=e!=null&&e.length?e.filter(function(z){return z.routeUrl;}):[],r=e!=null&&e.length?e.filter(function(z){return!z.routeUrl&&z.children;}).map(function(z){return z.children;}).flat():[],P=[].concat(_toConsumableArray(n),_toConsumableArray(r)),u={};return P.forEach(function(z){var _ref62;var X;var t=z.code,d=(_ref62=z==null?undefined:z.originalCode)!==null&&_ref62!==void 0?_ref62:"";u[t]||(u[t]=[]);var p=[];z!=null&&z.children&&(X=z==null?undefined:z.children)!=null&&X.length&&(z.children.forEach(function(b){var a;!(b!=null&&b.children)||!((a=b.children)!=null&&a.length)?p.push({code:b.code,originalCode:b.originalCode,name:b.name}):flatTree$1([b]).forEach(function(i){p.push({code:i.code,originalCode:i.originalCode,name:i.name});});}),p.forEach(function(b){var a=b.originalCode?b.originalCode:b.code?b.code:"";a.includes(t+".")&&(a=a.replace(t+".","").replaceAll(".","-")),a.includes(d+".")&&(a=a.replace(d+".","").replaceAll(".","-"));var s={code:a,name:b.name};u[t].push(s),d&&t!==d&&(u["origin-auth"]||(u["origin-auth"]={}),u["origin-auth"][d]||(u["origin-auth"][d]=[]),u["origin-auth"][d].push(s));}));}),v[A]=u,sessionStorage.setItem(f,JSON.stringify(v)),v;},Pu=function Pu(){sessionStorage.removeItem("permission-btn");},uu=function uu(e,A){var f="breadcrumb",v=e.filter(function(r){return r.routeUrl;}),n=JSON.parse(sessionStorage.getItem(f)||"{}")||{};return v.forEach(function(r){var _ref63;var u=((_ref63=r==null?undefined:r.style)!==null&&_ref63!==void 0?_ref63:1)===1,z=r.code;n[A]||(n[A]={}),n[A][z]=u;}),sessionStorage.setItem(f,JSON.stringify(n)),n;},zu=function zu(){sessionStorage.removeItem("breadcrumb");},du=function du(e,A){var f="tabStyle",v=e.filter(function(r){return r.routeUrl;}),n=JSON.parse(sessionStorage.getItem(f)||"{}")||{};return v.forEach(function(r){var P=r.code,u={fontColor:r.fontColor,backgroundColor:r.backgroundColor};n[A]||(n[A]={}),n[A][P]=u;}),sessionStorage.setItem(f,JSON.stringify(n)),n;},Xu=function Xu(){sessionStorage.removeItem("tabStyle");},cu=function cu(e){sessionStorage.setItem("instance",JSON.stringify(e));},bu=function bu(){Pu(),m7(),en(),zu(),Xu();},au=function au(e){var A=JSON.parse(sessionStorage.getItem(e)||"{}");if(A&&JSON.stringify(A)!=="{}"&&A!=null&&A.exitConfirmPages&&A.exitConfirmPages.length){var _ref64;var f=(_ref64=A==null?undefined:A.currentPage)!==null&&_ref64!==void 0?_ref64:"";if(A.exitConfirmPages.includes(f)&&!window.confirm(t$1("切换后已录入的数据将会丢失且不可恢复,确定切换?")))throw new Error(t$1("取消切换"));}},I9=function I9(e,A){if(!A||!A.length)return;var f=JSON.parse(sessionStorage.getItem(e)||"{}");if(f&&JSON.stringify(f)!=="{}"&&f!=null&&f.closeTabPageConfirm&&f.closeTabPageConfirm.length){var v=f.closeTabPageConfirm.map(function(r){return r.code;}),n=A.find(function(r){return v.includes(r);});if(n){var _ref65;var r=f.closeTabPageConfirm.find(function(z){return z.code===n;}),P=(_ref65=r==null?undefined:r.text)!==null&&_ref65!==void 0?_ref65:t$1("确认关闭?");if(!window.confirm(P))throw new Error(t$1("取消关闭"));}}};var uA=(typeof globalThis==="undefined"?"undefined":_typeof(globalThis))<"u"?globalThis:(typeof window==="undefined"?"undefined":_typeof(window))<"u"?window:(typeof global==="undefined"?"undefined":_typeof(global))<"u"?global:(typeof self==="undefined"?"undefined":_typeof(self))<"u"?self:{};function iu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e;}function su(e){if(e.__esModule)return e;var A=e["default"];if(typeof A=="function"){var f=function v(){return this instanceof v?Reflect.construct(A,arguments,this.constructor):A.apply(this,arguments);};f.prototype=A.prototype;}else f={};return Object.defineProperty(f,"__esModule",{value:true}),Object.keys(e).forEach(function(v){var n=Object.getOwnPropertyDescriptor(e,v);Object.defineProperty(f,v,n.get?n:{enumerable:true,get:function get(){return e[v];}});}),f;}var vn={exports:{}};function qu(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');}var df={exports:{}};var Hu={},pu=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,"default":Hu},Symbol.toStringTag,{value:"Module"})),mu=/* @__PURE__ */su(pu);var q3;function XA(){return q3||(q3=1,function(e,A){(function(f,v){e.exports=v();})(uA,function(){var f=f||function(v,n){var r;if((typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window.crypto&&(r=window.crypto),(typeof self==="undefined"?"undefined":_typeof(self))<"u"&&self.crypto&&(r=self.crypto),(typeof globalThis==="undefined"?"undefined":_typeof(globalThis))<"u"&&globalThis.crypto&&(r=globalThis.crypto),!r&&(typeof window==="undefined"?"undefined":_typeof(window))<"u"&&window.msCrypto&&(r=window.msCrypto),!r&&_typeof(uA)<"u"&&uA.crypto&&(r=uA.crypto),!r&&typeof qu=="function")try{r=mu;}catch(_unused5){}var P=function P(){if(r){if(typeof r.getRandomValues=="function")try{return r.getRandomValues(new Uint32Array(1))[0];}catch(_unused6){}if(typeof r.randomBytes=="function")try{return r.randomBytes(4).readInt32LE();}catch(_unused7){}}throw new Error("Native crypto module could not be used to get secure random number.");},u=Object.create||/* @__PURE__ */function(){function c(){}return function(q){var m;return c.prototype=q,m=new c(),c.prototype=null,m;};}(),z={},t=z.lib={},d=t.Base=/* @__PURE__ */function(){return{/**
|
|
@@ -1193,4 +1193,4 @@ loopCount:0,// 正在播放第几次
|
|
|
1193
1193
|
loopTotalCount:0,// 总共需要播放几次
|
|
1194
1194
|
isplay:false,// 是否正在播放
|
|
1195
1195
|
loop:false// 轮播-无限次播放
|
|
1196
|
-
});microFrontend.addEventListenerFromMicroApp("alarm:change-alarmconfig",function(x){var _x$data=x.data,j=_x$data.isRealTimeAlarm,l=_x$data.audioPlay;j!=null&&(u.value=j),l!=null&&(z.value=l,z.value||m());});var d=function d(x){var l;var j=[];j.push({alarmId:x.recordId}),n.value=j,(l=f.value)==null||l.open();},_mainAppFramework$hoo4=mainAppFramework.hooks.useEntryApp(),p=_mainAppFramework$hoo4.entryApp,X=function X(x){devicePanelShow(x.equipmentCode,x.equipmentPanelCode);},_Xc=Xc(f,n),b=_Xc.handleAlarmVue,a=/*#__PURE__*/function(){var _ref211=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee149(){var _ref212;var l,j;return _regenerator().w(function(_context151){while(1)switch(_context151.n){case 0:j=((_ref212=(l=getSubApps().appcategorys)==null?undefined:l.map(function(R){return R.apps;}).flat())!==null&&_ref212!==void 0?_ref212:[]).find(function(R){return R.code==="alarm";});j&&p({microApp:j,menuPath:"/".concat(j.routeUrl,"/realTimeAlarm")});case 1:return _context151.a(2);}},_callee149);}));return function a(){return _ref211.apply(this,arguments);};}(),s=[],i=function i(x){if(s.push(x),r.value.length<2){_H7(s[0]),s.shift();return;}},_H7=function H(x){if(!x)return;var j=jc();DasNotification.open({key:j,"class":"alarm-notify",message:i18n("新告警").value,placement:"bottomRight",description:h(Rc,{msgItem:x,alarmhandle:P.value,onHanderDetail:X,onHanderFn:d}),duration:5,onClick:function onClick(){a();},onClose:function onClose(){setTimeout(function(){var l=r.value.findIndex(function(R){return R==j;});if(l>=0&&r.value.splice(l,1),r.value.length<2&&s.length){_H7(s[0]),s.shift();return;}},300);}}),r.value.includes(j)||r.value.push(j),c(x);},c=function c(x){if(x){if(!z.value){m();return;}if(!x.coverId){if(t.value.playLine===null){m(),Number(x.noticeNum)!=0&&q(x);return;}Number(x.alarmLevelId)<t.value.playLine&&(m(),Number(x.noticeNum)!=0&&q(x));}}},q=function q(x){var j=Number(x.noticeNum),l=location.origin+"/oss";t.value.isplay&&t.value.playId==x.recordId?m():(j<0?t.value.loop=true:t.value.loop=false,j>0?(t.value.loopTotalCount=Number(x.noticeNum),t.value.loopCount=0):(t.value.loopTotalCount=0,t.value.loopCount=0),t.value.isplay=true,t.value.playId=x.recordId,t.value.playLine=Number(x.alarmLevelId),t.value.playPath=l+x.noticePath,O());},m=function m(){t.value.playId="",t.value.playPath="",t.value.playLine=null,t.value.loopCount=0,t.value.loopTotalCount=0,t.value.isplay=false,t.value.loop=false;},O=function O(){v.value.onended=function(){t.value.loopCount=t.value.loopCount+1,t.value.loopTotalCount&&t.value.loopTotalCount&&(t.value.loopCount==t.value.loopTotalCount?(t.value.playPath="",t.value.isplay=false,t.value.playId="",t.value.loopTotalCount=0,t.value.loopCount=0,t.value.playLine=null):v.value.play());};},V=/*#__PURE__*/function(){var _ref213=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee150(){var _yield$S2$run,_yield$S2$run2,x,j;return _regenerator().w(function(_context152){while(1)switch(_context152.n){case 0:_context152.n=1;return S2().run();case 1:_yield$S2$run=_context152.v;_yield$S2$run2=_slicedToArray(_yield$S2$run,2);x=_yield$S2$run2[0];j=_yield$S2$run2[1];x||(z.value=j.isEnable);case 2:return _context152.a(2);}},_callee150);}));return function V(){return _ref213.apply(this,arguments);};}();return{alarmSocket:e,alarmCount:A,audioObj:t,audioAlarmRef:v,handleAlarmVue:b,creatAlarmSocket:function(){var _creatAlarmSocket=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee152(){var _yield$U2$run,_yield$U2$run2,x,j,l;return _regenerator().w(function(_context154){while(1)switch(_context154.n){case 0:V();_context154.n=1;return U2().run({code:"alarm",showBtn:true});case 1:_yield$U2$run=_context154.v;_yield$U2$run2=_slicedToArray(_yield$U2$run,2);x=_yield$U2$run2[0];j=_yield$U2$run2[1];if(!(x||!j||!j.length)){_context154.n=2;break;}return _context154.a(2);case 2:l=false;j.forEach(function(R){(R.code==="alarm.realTimeAlarm"||R.originalCode==="alarm.realTimeAlarm")&&(l=true,R.children&&R.children.length?P.value=R.children.findIndex(function(o){return o.code=="alarm.realTimeAlarm.handle";})>=0:P.value=false);}),l&&(e.value=new socketService({url:"/api/alarm/socket/v1/record/subscribe",reconnectWhenClose:true,opened:function opened(){var R=getProjectInfo().id;R&&e.value.send(R);},message:function(){var _message3=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee151(R){return _regenerator().w(function(_context153){while(1)switch(_context153.n){case 0:microFrontend.sendMessageToMicroApp("enterpriseadmin/alarm","alarm:message",{alarmMessage:R}),window.self===window.top&&(R.messageType==="ADD"&&(A.value=A.value+1,R.coverId||i(R)),R.messageType==="DELETE"&&(A.value=A.value-1,t.value.playId==R.recordId&&m()));case 1:return _context153.a(2);}},_callee151);}));function message(_x126){return _message3.apply(this,arguments);}return message;}()}));case 3:return _context154.a(2);}},_callee152);}));function creatAlarmSocket(){return _creatAlarmSocket.apply(this,arguments);}return creatAlarmSocket;}()};},Zc=["src","muted","loop"],Tc=/* @__PURE__ */defineComponent({__name:"index",setup:function setup(e){var _oc=oc(),A=_oc.alarmSocket,f=_oc.creatAlarmSocket,v=_oc.audioObj,n=_oc.audioAlarmRef,r=_oc.handleAlarmVue;return onMounted(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee153(){return _regenerator().w(function(_context155){while(1)switch(_context155.n){case 0:_context155.n=1;return tokenNextTick();case 1:f();case 2:return _context155.a(2);}},_callee153);}))),onBeforeUnmount(function(){A.value&&A.value.disconnect(),A.value=null;}),function(P,u){return openBlock(),createElementBlock(Fragment,null,[createVNode(unref(r)),createElementVNode("audio",{src:unref(v).playPath,"class":"audio-alarm-level",ref_key:"audioAlarmRef",ref:n,muted:!unref(v).isplay,loop:unref(v).loop,autoplay:""},null,8,Zc)],64/* STABLE_FRAGMENT */);};}}),Lc={"class":"das-main-app-container"},yc=/* @__PURE__ */defineComponent({__name:"index",props:{showLayout:{type:Boolean,"default":true}},setup:function setup(e){var _getConfig$showLayout;var A=e,_e18=e9(),f=_e18.isFullscreen,v=(_getConfig$showLayout=getConfig().showLayout)!==null&&_getConfig$showLayout!==void 0?_getConfig$showLayout:true,n=computed(function(){return v&&A.showLayout&&!f.value;}),r=computed(function(){return NA.excludeRoutes;}),P=computed(function(){return NA.routeKeepAliveVisible;}),u=computed(function(){return{mode:te.value.style===1?"vertical":"inline"};});watch(function(){return layoutData.nav.activeItem;},function(j){var l;if(j){var _o5=!!(((l=getSubApps())==null?undefined:l.menuCollapses)||[]).find(function(Z){return Z===j;});layout.menu.setCollapse(_o5);}},{immediate:true});var _$2=$8(),z=_$2.initNextTick,_eX=eX(z),t=_eX.loading,d=_eX.pageKey,p=_eX.innerPage,X=_eX.commandList,b=_eX.initNextTick;tX(p,z,b),nX(),dX();var _PX=PX(),a=_PX.$changePwd,s=_PX.$personSetDialog,_qX=qX(),i=_qX.$aiPanel,H=_qX.toApp,_Kn2=Kn(),c=_Kn2.changeEnterprisesVisible,q=_Kn2.userId,m=_Kn2.tenantId,O=_Kn2.changeEnterprise;vX();var _rX=rX(),V=_rX.fontColor,N=_rX.backgroudColor,x=_rX.borderColor;return HX(),pX(X),mX(),xX(),CX(),Y2(),function(j,l){return openBlock(),createElementBlock("div",Lc,[createCommentVNode(" <button @click=\"test(0)\">test</button>\r\n <button style=\"margin-left: 5px\" @click=\"test(1)\">test2</button> "),createVNode(unref(hP),{platformInitNextTick:unref(z)},{"default":withCtx(function(){return[createVNode(GP,{loading:unref(t),pageKey:unref(d)+unref(currentLang),showLayout:n.value,excludeRoutes:r.value,routeKeepAliveVisible:P.value,tabsAttr:{fontColor:unref(V),backgroudColor:unref(N),borderColor:unref(x)},menuAttr:u.value},createSlots({_:2/* DYNAMIC */},[renderList(j.$slots,function(R,o,Z){return{name:o,fn:withCtx(function(){return[renderSlot(j.$slots,o,{},undefined,true)];})};})]),1032,["loading","pageKey","showLayout","excludeRoutes","routeKeepAliveVisible","tabsAttr","menuAttr"])];}),_:3/* FORWARDED */},8,["platformInitNextTick"]),createCommentVNode(" 切换租户 "),createVNode(unref(DasChangeEnterprises),{visible:unref(c),"onUpdate:visible":l[0]||(l[0]=function(R){return isRef(c)?c.value=R:null;}),userId:unref(q),tenantId:unref(m),onConfirm:unref(O)},null,8,["visible","userId","tenantId","onConfirm"]),createCommentVNode(" 修改密码 "),createVNode(unref(DasChangePwd),{ref_key:"$changePwd",ref:a},null,512/* NEED_PATCH */),createCommentVNode(" 个性化设置 "),createVNode(unref(h8),{ref_key:"$personSetDialog",ref:s},null,512/* NEED_PATCH */),createCommentVNode(" AI助手 "),createVNode(unref(DasAiPanel),{onToApp:unref(H),ref_key:"$aiPanel",ref:i},null,8,["onToApp"]),createCommentVNode(" 告警 "),createVNode(unref(Tc))]);};}}),wc=/* @__PURE__ */ZA(yc,[["__scopeId","data-v-08280b49"]]),Wc={正在实时预览:{"zh-CN":"正在实时预览",en:"Real-time Video",_appCode:"framework","zh-MO":"正在實時預覽"},声音:{"zh-CN":"声音",en:"Sound",_appCode:"framework","zh-MO":"聲音"},截图:{"zh-CN":"截图",en:"Screenshot",_appCode:"framework","zh-MO":"截圖"},方向控制:{"zh-CN":"方向控制",en:"Direction Control",_appCode:"framework","zh-MO":"方向控制"},左上:{"zh-CN":"左上",en:"Top Left",_appCode:"framework","zh-MO":"左上"},上:{"zh-CN":"上",en:"Up",_appCode:"framework","zh-MO":"上"},右上:{"zh-CN":"右上",en:"Top Right",_appCode:"framework","zh-MO":"右上"},左:{"zh-CN":"左",en:"Left",_appCode:"framework","zh-MO":"左"},自动:{"zh-CN":"自动",en:"Auto",_appCode:"framework","zh-MO":"自動"},右:{"zh-CN":"右",en:"Right",_appCode:"framework","zh-MO":"右"},左下:{"zh-CN":"左下",en:"Bottom Left",_appCode:"framework","zh-MO":"左下"},下:{"zh-CN":"下",en:"Down",_appCode:"framework","zh-MO":"下"},右下:{"zh-CN":"右下",en:"Bottom Right",_appCode:"framework","zh-MO":"右下"},侧边菜单栏:{"zh-CN":"侧边菜单栏",en:"Sidebar Menu",_appCode:"framework","zh-MO":"側邊菜單欄"},弹出式菜单栏:{"zh-CN":"弹出式菜单栏",en:"Popup Menu",_appCode:"framework","zh-MO":"彈出式菜單欄"},内嵌式菜单栏:{"zh-CN":"内嵌式菜单栏",en:"Embedded Menu",_appCode:"framework","zh-MO":"內嵌式菜單欄"},皮肤风格设置:{"zh-CN":"皮肤风格设置",en:"Style Settings",_appCode:"framework","zh-MO":"皮膚風格設置"},默认皮肤:{"zh-CN":"默认皮肤",en:"Default",_appCode:"framework","zh-MO":"默認皮膚"},科技蓝:{"zh-CN":"科技蓝",en:"Tech Blue",_appCode:"framework","zh-MO":"科技藍"},纯净白:{"zh-CN":"纯净白",en:"Pure White",_appCode:"framework","zh-MO":"純淨白"},深邃蓝:{"zh-CN":"深邃蓝",en:"Deep Blue",_appCode:"framework","zh-MO":"深邃藍"},效果预览:{"zh-CN":"效果预览",en:"Effect Preview",_appCode:"framework","zh-MO":"效果預覽"},我知道了:{"zh-CN":"我知道了",en:"Got It",_appCode:"framework","zh-MO":"我知道了"},视频监控:{"zh-CN":"视频监控",en:"Video Surveillance",_appCode:"framework","zh-MO":"視頻監控"},页面全屏:{"zh-CN":"页面全屏",en:"Fullscreen Page",_appCode:"framework","zh-MO":"頁面全屏"},告警处理:{"zh-CN":"告警处理",en:"Alarm Processing",_appCode:"framework","zh-MO":"告警處理"},处理类型:{"zh-CN":"处理类型",en:"Processing Type",_appCode:"framework","zh-MO":"處理類型"},告警原因:{"zh-CN":"告警原因",en:"Alarm Reason",_appCode:"framework","zh-MO":"告警原因"},处理方案:{"zh-CN":"处理方案",en:"Processing Plan",_appCode:"framework","zh-MO":"處理方案"},备注:{"zh-CN":"备注",en:"Remarks",_appCode:"framework","zh-MO":"備註"},报事位置:{"zh-CN":"报事位置",en:"Incident Location",_appCode:"framework","zh-MO":"報事位置"},选填:{"zh-CN":"选填",en:"Optional",_appCode:"framework","zh-MO":"選填"},告警对象位置:{"zh-CN":"告警对象位置",en:"Alarm Object Location",_appCode:"framework","zh-MO":"告警對象位置"},报事主题:{"zh-CN":"报事主题",en:"Incident Subject",_appCode:"framework","zh-MO":"報事主題"},工单规则:{"zh-CN":"工单规则",en:"Work Order Rules",_appCode:"framework","zh-MO":"工單規則"},事件类型:{"zh-CN":"事件类型",en:"Event Type",_appCode:"framework","zh-MO":"事件類型"},事件等级:{"zh-CN":"事件等级",en:"Event Level",_appCode:"framework","zh-MO":"事件等級"},处置时限:{"zh-CN":"处置时限",en:"Processing Time Limit",_appCode:"framework","zh-MO":"處置時限"},请选择:{"zh-CN":"请选择",en:"Please select",_appCode:"framework","zh-MO":"請選擇"},取消:{"zh-CN":"取消",en:"Cancel",_appCode:"framework","zh-MO":"取消"},结束处理:{"zh-CN":"结束处理",en:"Finish Processing",_appCode:"framework","zh-MO":"結束處理"},继续处理:{"zh-CN":"继续处理",en:"Continue Processing",_appCode:"framework","zh-MO":"繼續處理"},时:{"zh-CN":"时",en:"Hour",_appCode:"framework","zh-MO":"時"},分:{"zh-CN":"分",en:"Minute",_appCode:"framework","zh-MO":"分"},不限:{"zh-CN":"不限",en:"Unlimited",_appCode:"framework","zh-MO":"不限"},请输入:{"zh-CN":"请输入",en:"Please enter",_appCode:"framework","zh-MO":"請輸入"},一级:{"zh-CN":"一级",en:"Level 1",_appCode:"framework","zh-MO":"一級"},二级:{"zh-CN":"二级",en:"Level 2",_appCode:"framework","zh-MO":"二級"},三级:{"zh-CN":"三级",en:"Level 3",_appCode:"framework","zh-MO":"三級"},四级:{"zh-CN":"四级",en:"Level 4",_appCode:"framework","zh-MO":"四級"},必填:{"zh-CN":"必填",en:"Required",_appCode:"framework","zh-MO":"必填"},最多:{"zh-CN":"最多",en:"Up to",_appCode:"framework","zh-MO":"最多"},个字符:{"zh-CN":"个字符",en:"Characters",_appCode:"framework","zh-MO":"個字符"},汉字:{"zh-CN":"汉字",en:"Chinese Characters",_appCode:"framework","zh-MO":"漢字"},个汉字:{"zh-CN":"个汉字",en:"Chinese Characters",_appCode:"framework","zh-MO":"個漢字"},字符:{"zh-CN":"字符",en:"Characters",_appCode:"framework","zh-MO":"字符"},必选:{"zh-CN":"必选",en:"Required",_appCode:"framework","zh-MO":"必選"},之间的正整数:{"zh-CN":"之间的正整数",en:"An Integer Between",_appCode:"framework","zh-MO":"之間的正整數"},告警等级:{"zh-CN":"告警等级",en:"Alert Level",_appCode:"framework","zh-MO":"告警等級"},告警对象:{"zh-CN":"告警对象",en:"Alarm Object",_appCode:"framework","zh-MO":"告警對象"},告警内容:{"zh-CN":"告警内容",en:"Alert Content",_appCode:"framework","zh-MO":"告警內容"},设备详情:{"zh-CN":"设备详情",en:"Device Details",_appCode:"framework","zh-MO":"設備詳情"},处理:{"zh-CN":"处理",en:"Process",_appCode:"framework","zh-MO":"處理"},确认关闭:{"zh-CN":"确认关闭",en:"Confirm Close",_appCode:"framework","zh-MO":"確認關閉"},取消关闭:{"zh-CN":"取消关闭",en:"Cancel Close",_appCode:"framework","zh-MO":"取消關閉"},实例:{"zh-CN":"实例",en:"Instance",_appCode:"framework","zh-MO":"實例"},取消切换:{"zh-CN":"取消切换",en:"Cancel Switch",_appCode:"framework","zh-MO":"取消切換"},提示:{"zh-CN":"提示",en:"Tip",_appCode:"framework","zh-MO":"提示"},无法使用:{"zh-CN":"无法使用",en:"Unavailable",_appCode:"framework","zh-MO":"無法使用"},查看详情:{"zh-CN":"查看详情",en:"View Details",_appCode:"framework","zh-MO":"查看詳情"},新告警:{"zh-CN":"新告警",en:"New Alarm",_appCode:"framework","zh-MO":"新告警"},上次登录信息:{"zh-CN":"上次登录信息",en:"Last Login Information",_appCode:"framework","zh-MO":"上次登錄信息"},时间:{"zh-CN":"时间",en:"Time",_appCode:"framework","zh-MO":"時間"},地址:{"zh-CN":"地址",en:"Address",_appCode:"framework","zh-MO":"地址"},应用:{"zh-CN":"应用",en:"Application",_appCode:"framework","zh-MO":"應用"},首页:{"zh-CN":"首页",en:"Home",_appCode:"framework","zh-MO":"首頁"},个性化设置:{"zh-CN":"个性化设置",en:"Personalized Setting",_appCode:"framework","zh-MO":"個性化設置"},主题设置:{"zh-CN":"主题设置",en:"Theme Setting",_appCode:"framework","zh-MO":"主題設置"},语言设置:{"zh-CN":"语言设置",en:"Language Setting",_appCode:"framework","zh-MO":"語言設置"},语言类型:{"zh-CN":"语言类型",en:"Language Type",_appCode:"framework","zh-MO":"語言類型"},中文简体:{"zh-CN":"中文简体",en:"Simplified Chinese",_appCode:"framework","zh-MO":"中文簡體"},"home-set":{"zh-CN":"($0)设置",en:"($0) Setting",_appCode:"framework","zh-MO":"($0)設置"},个人中心:{"zh-CN":"个人中心",en:"Personal Center",_appCode:"framework","zh-MO":"個人中心"},修改密码:{"zh-CN":"修改密码",en:"Change Password",_appCode:"framework","zh-MO":"修改密碼"},退出登录:{"zh-CN":"退出登录",en:"Log Out",_appCode:"framework","zh-MO":"退出登錄"},"告警等级:":{"zh-CN":"告警等级:",en:"Alarm Level: ",_appCode:"framework","zh-MO":"告警等級:"},"告警对象:":{"zh-CN":"告警对象:",en:"Alarm Object: ",_appCode:"framework","zh-MO":"告警對象:"},"告警内容:":{"zh-CN":"告警内容:",en:"Alarm Content: ",_appCode:"framework","zh-MO":"告警內容:"},"必填,最多50个字符/汉字":{"zh-CN":"必填,最多50个字符/汉字",en:"Required, up to 50 characters/chinese characters",_appCode:"framework","zh-MO":"必填,最多50個字符/漢字"},"必填,最多20个汉字/字符":{"zh-CN":"必填,最多20个汉字/字符",en:"Required, up to 20 chinese characters/characters",_appCode:"framework","zh-MO":"必填,最多20個漢字/字符"},"必填,请输入1~999之间的正整数":{"zh-CN":"必填,请输入1~999之间的正整数",en:"Required, please enter a positive integer between 1 and 999",_appCode:"framework","zh-MO":"必填,請輸入1~999之間的正整數"},"聚焦-":{"zh-CN":"聚焦-",en:"Focus-",_appCode:"framework","zh-MO":"聚焦-"},"聚焦+":{"zh-CN":"聚焦+",en:"Focus+",_appCode:"framework","zh-MO":"聚焦+"},"此应用未配置菜单/无菜单权限":{"zh-CN":"此应用未配置菜单/无菜单权限",en:"This app is not configured with menu/no menu permissions",_appCode:"framework","zh-MO":"此應用未配置菜單/無菜單權限"},"此应用菜单已过期/已收回/配置有误":{"zh-CN":"此应用菜单已过期/已收回/配置有误",en:"This app menu has expired/been withdrawn/configured incorrectly",_appCode:"framework","zh-MO":"此應用菜單已過期/已收回/配置有誤"},"时间:":{"zh-CN":"时间:",en:"Time:",_appCode:"framework","zh-MO":"時間:"},"切换后已录入的数据将会丢失且不可恢复,确定切换?":{"zh-CN":"切换后已录入的数据将会丢失且不可恢复,确定切换?",en:"The data entered will be lost and irrecoverable after switching. confirm switch?",_appCode:"framework","zh-MO":"切換後已錄入的數據將會丟失且不可恢復,確定切換?"},保存成功:{"zh-CN":"保存成功",en:"Saved Successfully",_appCode:"framework","zh-MO":"保存成功"},"确认关闭?":{"zh-CN":"确认关闭?",en:"Confirm Close?",_appCode:"framework","zh-MO":"確認關閉?"},"系统资源更新,请刷新系统":{"zh-CN":"系统资源更新,请刷新系统",en:"System resources updated, please refresh the system",_appCode:"framework","zh-MO":"系統資源更新,請刷新系統"},展示类型:{"zh-CN":"展示类型",en:"Display Type",_appCode:"framework","zh-MO":"展示類型"},链接:{"zh-CN":"链接",en:"Link",_appCode:"framework","zh-MO":"鏈接"},别名:{"zh-CN":"别名",en:"Alias",_appCode:"framework","zh-MO":"別名"},还原:{"zh-CN":"还原",en:"Restore",_appCode:"framework","zh-MO":"還原"},恢复项目初始设置:{"zh-CN":"恢复项目初始设置",en:"Restore the Initial Settings of the Project",_appCode:"framework","zh-MO":"恢復項目初始設置"},"framework-reset-home-confirm":{"zh-CN":"$0内容是否恢复项目初始设置?",en:"Does $0 content restore the initial settings of the project?",_appCode:"framework","zh-MO":"$0內容是否恢復項目初始設置?"},"iot-banner-tip":{"zh-CN":"当前实例($0)$1天后过期(到期时间:$2),请尽快联系管理人员续费,过期失效后将会停用物联网平台所有功能服务~",en:"Current instance ($0) will expire in $1 days (Expiration time: $2). Please contact the administrator for renewal as soon as possible. All IoT platform functions and services will be disabled after expiration.",_appCode:"framework","zh-MO":"當前實例($0)$1天后過期(到期時間:$2),請儘快聯繫管理人員續費,過期失效後將會停用物聯網平臺所有功能服務~"}};setI18nRule(Wc);ref("@das-fed/upf-web");var Ec=[{path:_A,component:function component(){return Promise.resolve().then(function(){return indexPvvdYXX8;});}},{path:An,component:function component(){return Promise.resolve().then(function(){return indexChYfyY85;});}}],Pa={routes:Ec,Layout:wc,data:{homeInfo:pe,personalConfig:te},hooks:{useEntryApp:Ee,useEntryMenu:ef}};var N="v1",O=createService("/api/justauth/client/".concat(N)),V=O.get("/visitor/kingdee/auth/user/auth_code"),z=/* @__PURE__ */defineComponent({__name:"index",setup:function setup(F){var _Ee7=Ee(),d=_Ee7.beforeEntryApp,g=_Ee7.entryApp,h=computed(function(){return te.value.skinStyle;}),m=computed(function(){return!!layoutData.menu.items.length;}),w=computed(function(){if(!X7.value||!X7.value.length)return[];var t=Ce(X7.value);return Array.isArray(t)?t.length?(t.forEach(function(r){r.apps=y(r.apps.filter(function(o){return(o==null?undefined:o.code)&&o.code!=="dasaiassistant";}),4);}),t):[]:[];}),y=function y(t,r){var o=[];for(var _a2=0;_a2<t.length;_a2+=r)o.push(t.slice(_a2,_a2+r));return o;},_=/*#__PURE__*/function(){var _ref215=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee154(t){var _ref217,_ref218;var o,e,_yield$V$run,_yield$V$run2,n,_s,_ref216,i,a,l,_ref219,_ref220,_n5,_s2,_i7,_e19,_ref221,_n6;return _regenerator().w(function(_context156){while(1)switch(_context156.n){case 0:if(t){_context156.n=1;break;}return _context156.a(2);case 1:if(sessionStorage.getItem("projectInfo")){_context156.n=2;break;}window.confirm(t$1("系统资源更新,请刷新系统"))&&(window.__isAutoCloseApp=false,window.location.reload());return _context156.a(2);case 2:o=Ce(t);if(!(NA.innerSet=true,o.routeUrl)){_context156.n=5;break;}if(!(t.code==="Ioc")){_context156.n=3;break;}window.open(o.routeUrl,"_blank");return _context156.a(2);case 3:if(!(t.code==="wojiacloud")){_context156.n=5;break;}e=sessionStorage.getItem("kingdee_token")||"";if(!e){_context156.n=5;break;}_context156.n=4;return V().run({accessToken:e});case 4:_yield$V$run=_context156.v;_yield$V$run2=_slicedToArray(_yield$V$run,2);n=_yield$V$run2[0];_s=_yield$V$run2[1];if(_s){i=(_ref216=_s==null?undefined:_s.auth_code)!==null&&_ref216!==void 0?_ref216:"";o.routeUrl=o.routeUrl.includes("?")?"".concat(o.routeUrl,"&code=").concat(i):"".concat(o.routeUrl,"?code=").concat(i);}case 5:a=(_ref217=t==null?undefined:t.openType)!==null&&_ref217!==void 0?_ref217:1,l=(_ref218=t==null?undefined:t.type)!==null&&_ref218!==void 0?_ref218:1;if(!(a===1)){_context156.n=8;break;}_context156.n=6;return d(t);case 6:if(_context156.v){_context156.n=7;break;}return _context156.a(2);case 7:_n5=getTabInfo().preTab[t.code],_s2=(_ref219=_n5==null?undefined:_n5.code)!==null&&_ref219!==void 0?_ref219:"",_i7=_objectSpread({},(_ref220=_n5==null?undefined:_n5.query)!==null&&_ref220!==void 0?_ref220:{});g({microApp:o,menuCode:_s2,route:{query:_i7}});case 8:if(!(a===2&&o.routeUrl)){_context156.n=12;break;}_e19="";if(!(l===1)){_context156.n=9;break;}_e19=o!=null&&o.applicationPath?location.origin+"/"+o.applicationPath+o.routeUrl:location.origin+o.routeUrl,_e19=setShowLayout(_e19);_context156.n=11;break;case 9:if(!(l===2)){_context156.n=11;break;}_context156.n=10;return cn(o.routeUrl,(_ref221=o==null?undefined:o.param)!==null&&_ref221!==void 0?_ref221:[]);case 10:_n6=_context156.v;_e19=r7(_n6);case 11:window.open(_e19,"_blank");case 12:return _context156.a(2);}},_callee154);}));return function _(_x127){return _ref215.apply(this,arguments);};}();return function(t,r){return withDirectives((openBlock(),createBlock(unref(DasSpin),{full:"",spinning:unref(lv)},{"default":withCtx(function(){return[createVNode(unref(DasAppContainer),{theme:h.value,appCategorys:w.value,onOpenApp:_},null,8,["theme","appCategorys"])];}),_:1/* STABLE */},8,["spinning"])),[[vShow,!m.value]]);};}});var indexPvvdYXX8=/*#__PURE__*/Object.freeze({__proto__:null,"default":z});var o={};function t(n,_){return openBlock(),createElementBlock("div");}var a=/* @__PURE__ */ZA(o,[["render",t]]);var indexChYfyY85=/*#__PURE__*/Object.freeze({__proto__:null,"default":a});export{va as DasMainAppLayout,$b as DasWebLayout,ea as DasWebMenu,Aa as DasWebNav,fa as DasWebTabs,kb as createDasWebApp,s9 as currentLang,Je as currentTheme,Ge as customLangeData,Jb as getDateFormat,It as getI18nRule,Ub as getLang,Yt as getThemeRule,Cb as getVar,_b as getVarValue,gt as i18n,Yb as initI18n,na as initMainApp,ra as initMicroApp,Sb as initTheme,Tt as languageKey,dA as layout,Ve as layoutData,hb as loadLocale,Pa as mainAppFramework,xA as microFrontend,Qb as microI18nStore,Fb as registerMicroI18nData,Wt as setI18nRule,Mt as setLang,v3 as setLangRule,Kb as setTheme,r3 as setThemeRule,Gb as t};
|
|
1196
|
+
});microFrontend.addEventListenerFromMicroApp("alarm:change-alarmconfig",function(x){var _x$data=x.data,j=_x$data.isRealTimeAlarm,l=_x$data.audioPlay;j!=null&&(u.value=j),l!=null&&(z.value=l,z.value||m());});var d=function d(x){var l;var j=[];j.push({alarmId:x.recordId}),n.value=j,(l=f.value)==null||l.open();},_mainAppFramework$hoo4=mainAppFramework.hooks.useEntryApp(),p=_mainAppFramework$hoo4.entryApp,X=function X(x){devicePanelShow(x.equipmentCode,x.equipmentPanelCode);},_Xc=Xc(f,n),b=_Xc.handleAlarmVue,a=/*#__PURE__*/function(){var _ref211=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee149(){var _ref212;var l,j;return _regenerator().w(function(_context151){while(1)switch(_context151.n){case 0:j=((_ref212=(l=getSubApps().appcategorys)==null?undefined:l.map(function(R){return R.apps;}).flat())!==null&&_ref212!==void 0?_ref212:[]).find(function(R){return R.code==="alarm";});j&&p({microApp:j,menuPath:"/".concat(j.routeUrl,"/realTimeAlarm")});case 1:return _context151.a(2);}},_callee149);}));return function a(){return _ref211.apply(this,arguments);};}(),s=[],i=function i(x){if(s.push(x),r.value.length<2){_H7(s[0]),s.shift();return;}},_H7=function H(x){if(!x)return;var j=jc();DasNotification.open({key:j,"class":"alarm-notify",message:i18n("新告警").value,placement:"bottomRight",description:h(Rc,{msgItem:x,alarmhandle:P.value,onHanderDetail:X,onHanderFn:d}),duration:5,onClick:function onClick(){a();},onClose:function onClose(){setTimeout(function(){var l=r.value.findIndex(function(R){return R==j;});if(l>=0&&r.value.splice(l,1),r.value.length<2&&s.length){_H7(s[0]),s.shift();return;}},300);}}),r.value.includes(j)||r.value.push(j),c(x);},c=function c(x){if(x){if(!z.value){m();return;}if(!x.coverId){if(t.value.playLine===null){m(),Number(x.noticeNum)!=0&&q(x);return;}Number(x.alarmLevelId)<t.value.playLine&&(m(),Number(x.noticeNum)!=0&&q(x));}}},q=function q(x){var j=Number(x.noticeNum),l=location.origin+"/oss";t.value.isplay&&t.value.playId==x.recordId?m():(j<0?t.value.loop=true:t.value.loop=false,j>0?(t.value.loopTotalCount=Number(x.noticeNum),t.value.loopCount=0):(t.value.loopTotalCount=0,t.value.loopCount=0),t.value.isplay=true,t.value.playId=x.recordId,t.value.playLine=Number(x.alarmLevelId),t.value.playPath=l+x.noticePath,O());},m=function m(){t.value.playId="",t.value.playPath="",t.value.playLine=null,t.value.loopCount=0,t.value.loopTotalCount=0,t.value.isplay=false,t.value.loop=false;},O=function O(){v.value.onended=function(){t.value.loopCount=t.value.loopCount+1,t.value.loopTotalCount&&t.value.loopTotalCount&&(t.value.loopCount==t.value.loopTotalCount?(t.value.playPath="",t.value.isplay=false,t.value.playId="",t.value.loopTotalCount=0,t.value.loopCount=0,t.value.playLine=null):v.value.play());};},V=/*#__PURE__*/function(){var _ref213=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee150(){var _yield$S2$run,_yield$S2$run2,x,j;return _regenerator().w(function(_context152){while(1)switch(_context152.n){case 0:_context152.n=1;return S2().run();case 1:_yield$S2$run=_context152.v;_yield$S2$run2=_slicedToArray(_yield$S2$run,2);x=_yield$S2$run2[0];j=_yield$S2$run2[1];x||(z.value=j.isEnable);case 2:return _context152.a(2);}},_callee150);}));return function V(){return _ref213.apply(this,arguments);};}();return{alarmSocket:e,alarmCount:A,audioObj:t,audioAlarmRef:v,handleAlarmVue:b,creatAlarmSocket:function(){var _creatAlarmSocket=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee152(){var _yield$U2$run,_yield$U2$run2,x,j,l;return _regenerator().w(function(_context154){while(1)switch(_context154.n){case 0:V();_context154.n=1;return U2().run({code:"alarm",showBtn:true});case 1:_yield$U2$run=_context154.v;_yield$U2$run2=_slicedToArray(_yield$U2$run,2);x=_yield$U2$run2[0];j=_yield$U2$run2[1];if(!(x||!j||!j.length)){_context154.n=2;break;}return _context154.a(2);case 2:l=false;j.forEach(function(R){(R.code==="alarm.realTimeAlarm"||R.originalCode==="alarm.realTimeAlarm")&&(l=true,R.children&&R.children.length?P.value=R.children.findIndex(function(o){return o.code=="alarm.realTimeAlarm.handle";})>=0:P.value=false);}),l&&(e.value=new socketService({url:"/api/alarm/socket/v1/record/subscribe",reconnectWhenClose:true,opened:function opened(){var R=getProjectInfo().id;R&&e.value.send(R);},message:function(){var _message3=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee151(R){return _regenerator().w(function(_context153){while(1)switch(_context153.n){case 0:microFrontend.sendMessageToMicroApp("enterpriseadmin/alarm","alarm:message",{alarmMessage:R}),window.self===window.top&&(R.messageType==="ADD"&&(A.value=A.value+1,R.coverId||i(R)),R.messageType==="DELETE"&&(A.value=A.value-1,t.value.playId==R.recordId&&m()));case 1:return _context153.a(2);}},_callee151);}));function message(_x126){return _message3.apply(this,arguments);}return message;}()}));case 3:return _context154.a(2);}},_callee152);}));function creatAlarmSocket(){return _creatAlarmSocket.apply(this,arguments);}return creatAlarmSocket;}()};},Zc=["src","muted","loop"],Tc=/* @__PURE__ */defineComponent({__name:"index",setup:function setup(e){var _oc=oc(),A=_oc.alarmSocket,f=_oc.creatAlarmSocket,v=_oc.audioObj,n=_oc.audioAlarmRef,r=_oc.handleAlarmVue;return onMounted(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee153(){return _regenerator().w(function(_context155){while(1)switch(_context155.n){case 0:_context155.n=1;return tokenNextTick();case 1:f();case 2:return _context155.a(2);}},_callee153);}))),onBeforeUnmount(function(){A.value&&A.value.disconnect(),A.value=null;}),function(P,u){return openBlock(),createElementBlock(Fragment,null,[createVNode(unref(r)),createElementVNode("audio",{src:unref(v).playPath,"class":"audio-alarm-level",ref_key:"audioAlarmRef",ref:n,muted:!unref(v).isplay,loop:unref(v).loop,autoplay:""},null,8,Zc)],64/* STABLE_FRAGMENT */);};}}),Lc={"class":"das-main-app-container"},yc=/* @__PURE__ */defineComponent({__name:"index",props:{showLayout:{type:Boolean,"default":true}},setup:function setup(e){var _getConfig$showLayout;var A=e,_e18=e9(),f=_e18.isFullscreen,v=(_getConfig$showLayout=getConfig().showLayout)!==null&&_getConfig$showLayout!==void 0?_getConfig$showLayout:true,n=computed(function(){return v&&A.showLayout&&!f.value;}),r=computed(function(){return NA.excludeRoutes;}),P=computed(function(){return NA.routeKeepAliveVisible;}),u=computed(function(){return{mode:te.value.style===1?"vertical":"inline"};});watch(function(){return layoutData.nav.activeItem;},function(j){var l;if(j){var _o5=!!(((l=getSubApps())==null?undefined:l.menuCollapses)||[]).find(function(Z){return Z===j;});layout.menu.setCollapse(_o5);}},{immediate:true});var _$2=$8(),z=_$2.initNextTick,_eX=eX(z),t=_eX.loading,d=_eX.pageKey,p=_eX.innerPage,X=_eX.commandList,b=_eX.initNextTick;tX(p,z,b),nX(),dX();var _PX=PX(),a=_PX.$changePwd,s=_PX.$personSetDialog,_qX=qX(),i=_qX.$aiPanel,H=_qX.toApp,_Kn2=Kn(),c=_Kn2.changeEnterprisesVisible,q=_Kn2.userId,m=_Kn2.tenantId,O=_Kn2.changeEnterprise;vX();var _rX=rX(),V=_rX.fontColor,N=_rX.backgroudColor,x=_rX.borderColor;return HX(),pX(X),mX(),xX(),CX(),Y2(),function(j,l){return openBlock(),createElementBlock("div",Lc,[createCommentVNode(" <button @click=\"test(0)\">test</button>\r\n <button style=\"margin-left: 5px\" @click=\"test(1)\">test2</button> "),createVNode(unref(hP),{platformInitNextTick:unref(z)},{"default":withCtx(function(){return[createVNode(GP,{loading:unref(t),pageKey:unref(d)+unref(currentLang),showLayout:n.value,excludeRoutes:r.value,routeKeepAliveVisible:P.value,tabsAttr:{fontColor:unref(V),backgroudColor:unref(N),borderColor:unref(x)},menuAttr:u.value},createSlots({_:2/* DYNAMIC */},[renderList(j.$slots,function(R,o,Z){return{name:o,fn:withCtx(function(){return[renderSlot(j.$slots,o,{},undefined,true)];})};})]),1032,["loading","pageKey","showLayout","excludeRoutes","routeKeepAliveVisible","tabsAttr","menuAttr"])];}),_:3/* FORWARDED */},8,["platformInitNextTick"]),createCommentVNode(" 切换租户 "),createVNode(unref(DasChangeEnterprises),{visible:unref(c),"onUpdate:visible":l[0]||(l[0]=function(R){return isRef(c)?c.value=R:null;}),userId:unref(q),tenantId:unref(m),onConfirm:unref(O)},null,8,["visible","userId","tenantId","onConfirm"]),createCommentVNode(" 修改密码 "),createVNode(unref(DasChangePwd),{ref_key:"$changePwd",ref:a},null,512/* NEED_PATCH */),createCommentVNode(" 个性化设置 "),createVNode(unref(h8),{ref_key:"$personSetDialog",ref:s},null,512/* NEED_PATCH */),createCommentVNode(" AI助手 "),createVNode(unref(DasAiPanel),{onToApp:unref(H),ref_key:"$aiPanel",ref:i},null,8,["onToApp"]),createCommentVNode(" 告警 "),createVNode(unref(Tc))]);};}}),wc=/* @__PURE__ */ZA(yc,[["__scopeId","data-v-08280b49"]]),Wc={正在实时预览:{"zh-CN":"正在实时预览",en:"Real-time Video",_appCode:"framework","zh-MO":"正在實時預覽"},声音:{"zh-CN":"声音",en:"Sound",_appCode:"framework","zh-MO":"聲音"},截图:{"zh-CN":"截图",en:"Screenshot",_appCode:"framework","zh-MO":"截圖"},方向控制:{"zh-CN":"方向控制",en:"Direction Control",_appCode:"framework","zh-MO":"方向控制"},左上:{"zh-CN":"左上",en:"Top Left",_appCode:"framework","zh-MO":"左上"},上:{"zh-CN":"上",en:"Up",_appCode:"framework","zh-MO":"上"},右上:{"zh-CN":"右上",en:"Top Right",_appCode:"framework","zh-MO":"右上"},左:{"zh-CN":"左",en:"Left",_appCode:"framework","zh-MO":"左"},自动:{"zh-CN":"自动",en:"Auto",_appCode:"framework","zh-MO":"自動"},右:{"zh-CN":"右",en:"Right",_appCode:"framework","zh-MO":"右"},左下:{"zh-CN":"左下",en:"Bottom Left",_appCode:"framework","zh-MO":"左下"},下:{"zh-CN":"下",en:"Down",_appCode:"framework","zh-MO":"下"},右下:{"zh-CN":"右下",en:"Bottom Right",_appCode:"framework","zh-MO":"右下"},侧边菜单栏:{"zh-CN":"侧边菜单栏",en:"Sidebar Menu",_appCode:"framework","zh-MO":"側邊菜單欄"},弹出式菜单栏:{"zh-CN":"弹出式菜单栏",en:"Popup Menu",_appCode:"framework","zh-MO":"彈出式菜單欄"},内嵌式菜单栏:{"zh-CN":"内嵌式菜单栏",en:"Embedded Menu",_appCode:"framework","zh-MO":"內嵌式菜單欄"},皮肤风格设置:{"zh-CN":"皮肤风格设置",en:"Style Settings",_appCode:"framework","zh-MO":"皮膚風格設置"},默认皮肤:{"zh-CN":"默认皮肤",en:"Default",_appCode:"framework","zh-MO":"默認皮膚"},科技蓝:{"zh-CN":"科技蓝",en:"Tech Blue",_appCode:"framework","zh-MO":"科技藍"},纯净白:{"zh-CN":"纯净白",en:"Pure White",_appCode:"framework","zh-MO":"純淨白"},深邃蓝:{"zh-CN":"深邃蓝",en:"Deep Blue",_appCode:"framework","zh-MO":"深邃藍"},效果预览:{"zh-CN":"效果预览",en:"Effect Preview",_appCode:"framework","zh-MO":"效果預覽"},我知道了:{"zh-CN":"我知道了",en:"Got It",_appCode:"framework","zh-MO":"我知道了"},视频监控:{"zh-CN":"视频监控",en:"Video Surveillance",_appCode:"framework","zh-MO":"視頻監控"},页面全屏:{"zh-CN":"页面全屏",en:"Fullscreen Page",_appCode:"framework","zh-MO":"頁面全屏"},告警处理:{"zh-CN":"告警处理",en:"Alarm Processing",_appCode:"framework","zh-MO":"告警處理"},处理类型:{"zh-CN":"处理类型",en:"Processing Type",_appCode:"framework","zh-MO":"處理類型"},告警原因:{"zh-CN":"告警原因",en:"Alarm Reason",_appCode:"framework","zh-MO":"告警原因"},处理方案:{"zh-CN":"处理方案",en:"Processing Plan",_appCode:"framework","zh-MO":"處理方案"},备注:{"zh-CN":"备注",en:"Remarks",_appCode:"framework","zh-MO":"備註"},报事位置:{"zh-CN":"报事位置",en:"Incident Location",_appCode:"framework","zh-MO":"報事位置"},选填:{"zh-CN":"选填",en:"Optional",_appCode:"framework","zh-MO":"選填"},告警对象位置:{"zh-CN":"告警对象位置",en:"Alarm Object Location",_appCode:"framework","zh-MO":"告警對象位置"},报事主题:{"zh-CN":"报事主题",en:"Incident Subject",_appCode:"framework","zh-MO":"報事主題"},工单规则:{"zh-CN":"工单规则",en:"Work Order Rules",_appCode:"framework","zh-MO":"工單規則"},事件类型:{"zh-CN":"事件类型",en:"Event Type",_appCode:"framework","zh-MO":"事件類型"},事件等级:{"zh-CN":"事件等级",en:"Event Level",_appCode:"framework","zh-MO":"事件等級"},处置时限:{"zh-CN":"处置时限",en:"Processing Time Limit",_appCode:"framework","zh-MO":"處置時限"},请选择:{"zh-CN":"请选择",en:"Please select",_appCode:"framework","zh-MO":"請選擇"},取消:{"zh-CN":"取消",en:"Cancel",_appCode:"framework","zh-MO":"取消"},结束处理:{"zh-CN":"结束处理",en:"Finish Processing",_appCode:"framework","zh-MO":"結束處理"},继续处理:{"zh-CN":"继续处理",en:"Continue Processing",_appCode:"framework","zh-MO":"繼續處理"},时:{"zh-CN":"时",en:"Hour",_appCode:"framework","zh-MO":"時"},分:{"zh-CN":"分",en:"Minute",_appCode:"framework","zh-MO":"分"},不限:{"zh-CN":"不限",en:"Unlimited",_appCode:"framework","zh-MO":"不限"},请输入:{"zh-CN":"请输入",en:"Please enter",_appCode:"framework","zh-MO":"請輸入"},一级:{"zh-CN":"一级",en:"Level 1",_appCode:"framework","zh-MO":"一級"},二级:{"zh-CN":"二级",en:"Level 2",_appCode:"framework","zh-MO":"二級"},三级:{"zh-CN":"三级",en:"Level 3",_appCode:"framework","zh-MO":"三級"},四级:{"zh-CN":"四级",en:"Level 4",_appCode:"framework","zh-MO":"四級"},必填:{"zh-CN":"必填",en:"Required",_appCode:"framework","zh-MO":"必填"},最多:{"zh-CN":"最多",en:"Up to",_appCode:"framework","zh-MO":"最多"},个字符:{"zh-CN":"个字符",en:"Characters",_appCode:"framework","zh-MO":"個字符"},汉字:{"zh-CN":"汉字",en:"Chinese Characters",_appCode:"framework","zh-MO":"漢字"},个汉字:{"zh-CN":"个汉字",en:"Chinese Characters",_appCode:"framework","zh-MO":"個漢字"},字符:{"zh-CN":"字符",en:"Characters",_appCode:"framework","zh-MO":"字符"},必选:{"zh-CN":"必选",en:"Required",_appCode:"framework","zh-MO":"必選"},之间的正整数:{"zh-CN":"之间的正整数",en:"An Integer Between",_appCode:"framework","zh-MO":"之間的正整數"},告警等级:{"zh-CN":"告警等级",en:"Alert Level",_appCode:"framework","zh-MO":"告警等級"},告警对象:{"zh-CN":"告警对象",en:"Alarm Object",_appCode:"framework","zh-MO":"告警對象"},告警内容:{"zh-CN":"告警内容",en:"Alert Content",_appCode:"framework","zh-MO":"告警內容"},设备详情:{"zh-CN":"设备详情",en:"Device Details",_appCode:"framework","zh-MO":"設備詳情"},处理:{"zh-CN":"处理",en:"Process",_appCode:"framework","zh-MO":"處理"},确认关闭:{"zh-CN":"确认关闭",en:"Confirm Close",_appCode:"framework","zh-MO":"確認關閉"},取消关闭:{"zh-CN":"取消关闭",en:"Cancel Close",_appCode:"framework","zh-MO":"取消關閉"},实例:{"zh-CN":"实例",en:"Instance",_appCode:"framework","zh-MO":"實例"},取消切换:{"zh-CN":"取消切换",en:"Cancel Switch",_appCode:"framework","zh-MO":"取消切換"},提示:{"zh-CN":"提示",en:"Tip",_appCode:"framework","zh-MO":"提示"},无法使用:{"zh-CN":"无法使用",en:"Unavailable",_appCode:"framework","zh-MO":"無法使用"},查看详情:{"zh-CN":"查看详情",en:"View Details",_appCode:"framework","zh-MO":"查看詳情"},新告警:{"zh-CN":"新告警",en:"New Alarm",_appCode:"framework","zh-MO":"新告警"},上次登录信息:{"zh-CN":"上次登录信息",en:"Last Login Information",_appCode:"framework","zh-MO":"上次登錄信息"},时间:{"zh-CN":"时间",en:"Time",_appCode:"framework","zh-MO":"時間"},地址:{"zh-CN":"地址",en:"Address",_appCode:"framework","zh-MO":"地址"},应用:{"zh-CN":"应用",en:"Application",_appCode:"framework","zh-MO":"應用"},首页:{"zh-CN":"首页",en:"Home",_appCode:"framework","zh-MO":"首頁"},个性化设置:{"zh-CN":"个性化设置",en:"Personalized Setting",_appCode:"framework","zh-MO":"個性化設置"},主题设置:{"zh-CN":"主题设置",en:"Theme Setting",_appCode:"framework","zh-MO":"主題設置"},语言设置:{"zh-CN":"语言设置",en:"Language Setting",_appCode:"framework","zh-MO":"語言設置"},语言类型:{"zh-CN":"语言类型",en:"Language Type",_appCode:"framework","zh-MO":"語言類型"},中文简体:{"zh-CN":"中文简体",en:"Simplified Chinese",_appCode:"framework","zh-MO":"中文簡體"},"home-set":{"zh-CN":"($0)设置",en:"($0) Setting",_appCode:"framework","zh-MO":"($0)設置"},个人中心:{"zh-CN":"个人中心",en:"Personal Center",_appCode:"framework","zh-MO":"個人中心"},修改密码:{"zh-CN":"修改密码",en:"Change Password",_appCode:"framework","zh-MO":"修改密碼"},退出登录:{"zh-CN":"退出登录",en:"Log Out",_appCode:"framework","zh-MO":"退出登錄"},"告警等级:":{"zh-CN":"告警等级:",en:"Alarm Level: ",_appCode:"framework","zh-MO":"告警等級:"},"告警对象:":{"zh-CN":"告警对象:",en:"Alarm Object: ",_appCode:"framework","zh-MO":"告警對象:"},"告警内容:":{"zh-CN":"告警内容:",en:"Alarm Content: ",_appCode:"framework","zh-MO":"告警內容:"},"必填,最多50个字符/汉字":{"zh-CN":"必填,最多50个字符/汉字",en:"Required, up to 50 characters/chinese characters",_appCode:"framework","zh-MO":"必填,最多50個字符/漢字"},"必填,最多20个汉字/字符":{"zh-CN":"必填,最多20个汉字/字符",en:"Required, up to 20 chinese characters/characters",_appCode:"framework","zh-MO":"必填,最多20個漢字/字符"},"必填,请输入1~999之间的正整数":{"zh-CN":"必填,请输入1~999之间的正整数",en:"Required, please enter a positive integer between 1 and 999",_appCode:"framework","zh-MO":"必填,請輸入1~999之間的正整數"},"聚焦-":{"zh-CN":"聚焦-",en:"Focus-",_appCode:"framework","zh-MO":"聚焦-"},"聚焦+":{"zh-CN":"聚焦+",en:"Focus+",_appCode:"framework","zh-MO":"聚焦+"},"此应用未配置菜单/无菜单权限":{"zh-CN":"此应用未配置菜单/无菜单权限",en:"This app is not configured with menu/no menu permissions",_appCode:"framework","zh-MO":"此應用未配置菜單/無菜單權限"},"此应用菜单已过期/已收回/配置有误":{"zh-CN":"此应用菜单已过期/已收回/配置有误",en:"This app menu has expired/been withdrawn/configured incorrectly",_appCode:"framework","zh-MO":"此應用菜單已過期/已收回/配置有誤"},"时间:":{"zh-CN":"时间:",en:"Time:",_appCode:"framework","zh-MO":"時間:"},"切换后已录入的数据将会丢失且不可恢复,确定切换?":{"zh-CN":"切换后已录入的数据将会丢失且不可恢复,确定切换?",en:"The data entered will be lost and irrecoverable after switching. confirm switch?",_appCode:"framework","zh-MO":"切換後已錄入的數據將會丟失且不可恢復,確定切換?"},保存成功:{"zh-CN":"保存成功",en:"Saved Successfully",_appCode:"framework","zh-MO":"保存成功"},"确认关闭?":{"zh-CN":"确认关闭?",en:"Confirm Close?",_appCode:"framework","zh-MO":"確認關閉?"},"系统资源更新,请刷新系统":{"zh-CN":"系统资源更新,请刷新系统",en:"System resources updated, please refresh the system",_appCode:"framework","zh-MO":"系統資源更新,請刷新系統"},展示类型:{"zh-CN":"展示类型",en:"Display Type",_appCode:"framework","zh-MO":"展示類型"},链接:{"zh-CN":"链接",en:"Link",_appCode:"framework","zh-MO":"鏈接"},别名:{"zh-CN":"别名",en:"Alias",_appCode:"framework","zh-MO":"別名"},还原:{"zh-CN":"还原",en:"Restore",_appCode:"framework","zh-MO":"還原"},恢复项目初始设置:{"zh-CN":"恢复项目初始设置",en:"Restore the Initial Settings of the Project",_appCode:"framework","zh-MO":"恢復項目初始設置"},"framework-reset-home-confirm":{"zh-CN":"$0内容是否恢复项目初始设置?",en:"Does $0 content restore the initial settings of the project?",_appCode:"framework","zh-MO":"$0內容是否恢復項目初始設置?"},"iot-banner-tip":{"zh-CN":"当前实例($0)$1天后过期(到期时间:$2),请尽快联系管理人员续费,过期失效后将会停用物联网平台所有功能服务~",en:"Current instance ($0) will expire in $1 days (Expiration time: $2). Please contact the administrator for renewal as soon as possible. All IoT platform functions and services will be disabled after expiration.",_appCode:"framework","zh-MO":"當前實例($0)$1天后過期(到期時間:$2),請儘快聯繫管理人員續費,過期失效後將會停用物聯網平臺所有功能服務~"}};setI18nRule(Wc);ref("@das-fed/upf-web");var Ec=[{path:_A,component:function component(){return Promise.resolve().then(function(){return indexBrEU8ik3;});}},{path:An,component:function component(){return Promise.resolve().then(function(){return indexNWclWq3D;});}}],Pa={routes:Ec,Layout:wc,data:{homeInfo:pe,personalConfig:te},hooks:{useEntryApp:Ee,useEntryMenu:ef}};var N="v1",O=createService("/api/justauth/client/".concat(N)),V=O.get("/visitor/kingdee/auth/user/auth_code"),z=/* @__PURE__ */defineComponent({__name:"index",setup:function setup(F){var _Ee7=Ee(),d=_Ee7.beforeEntryApp,g=_Ee7.entryApp,h=computed(function(){return te.value.skinStyle;}),m=computed(function(){return!!layoutData.menu.items.length;}),w=computed(function(){if(!X7.value||!X7.value.length)return[];var t=Ce(X7.value);return Array.isArray(t)?t.length?(t.forEach(function(r){r.apps=y(r.apps.filter(function(o){return(o==null?undefined:o.code)&&o.code!=="dasaiassistant";}),4);}),t):[]:[];}),y=function y(t,r){var o=[];for(var _a2=0;_a2<t.length;_a2+=r)o.push(t.slice(_a2,_a2+r));return o;},_=/*#__PURE__*/function(){var _ref215=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee154(t){var _ref217,_ref218;var o,e,_yield$V$run,_yield$V$run2,n,_s,_ref216,i,a,l,_ref219,_ref220,_n5,_s2,_i7,_e19,_ref221,_n6;return _regenerator().w(function(_context156){while(1)switch(_context156.n){case 0:if(t){_context156.n=1;break;}return _context156.a(2);case 1:if(sessionStorage.getItem("projectInfo")){_context156.n=2;break;}window.confirm(t$1("系统资源更新,请刷新系统"))&&(window.__isAutoCloseApp=false,window.location.reload());return _context156.a(2);case 2:o=Ce(t);if(!(NA.innerSet=true,o.routeUrl)){_context156.n=5;break;}if(!(t.code==="Ioc")){_context156.n=3;break;}window.open(o.routeUrl,"_blank");return _context156.a(2);case 3:if(!(t.code==="wojiacloud")){_context156.n=5;break;}e=sessionStorage.getItem("kingdee_token")||"";if(!e){_context156.n=5;break;}_context156.n=4;return V().run({accessToken:e});case 4:_yield$V$run=_context156.v;_yield$V$run2=_slicedToArray(_yield$V$run,2);n=_yield$V$run2[0];_s=_yield$V$run2[1];if(_s){i=(_ref216=_s==null?undefined:_s.auth_code)!==null&&_ref216!==void 0?_ref216:"";o.routeUrl=o.routeUrl.includes("?")?"".concat(o.routeUrl,"&code=").concat(i):"".concat(o.routeUrl,"?code=").concat(i);}case 5:a=(_ref217=t==null?undefined:t.openType)!==null&&_ref217!==void 0?_ref217:1,l=(_ref218=t==null?undefined:t.type)!==null&&_ref218!==void 0?_ref218:1;if(!(a===1)){_context156.n=8;break;}_context156.n=6;return d(t);case 6:if(_context156.v){_context156.n=7;break;}return _context156.a(2);case 7:_n5=getTabInfo().preTab[t.code],_s2=(_ref219=_n5==null?undefined:_n5.code)!==null&&_ref219!==void 0?_ref219:"",_i7=_objectSpread({},(_ref220=_n5==null?undefined:_n5.query)!==null&&_ref220!==void 0?_ref220:{});g({microApp:o,menuCode:_s2,route:{query:_i7}});case 8:if(!(a===2&&o.routeUrl)){_context156.n=12;break;}_e19="";if(!(l===1)){_context156.n=9;break;}_e19=o!=null&&o.applicationPath?location.origin+"/"+o.applicationPath+o.routeUrl:location.origin+o.routeUrl,_e19=setShowLayout(_e19);_context156.n=11;break;case 9:if(!(l===2)){_context156.n=11;break;}_context156.n=10;return cn(o.routeUrl,(_ref221=o==null?undefined:o.param)!==null&&_ref221!==void 0?_ref221:[]);case 10:_n6=_context156.v;_e19=r7(_n6);case 11:window.open(_e19,"_blank");case 12:return _context156.a(2);}},_callee154);}));return function _(_x127){return _ref215.apply(this,arguments);};}();return function(t,r){return withDirectives((openBlock(),createBlock(unref(DasSpin),{full:"",spinning:unref(lv)},{"default":withCtx(function(){return[createVNode(unref(DasAppContainer),{theme:h.value,appCategorys:w.value,onOpenApp:_},null,8,["theme","appCategorys"])];}),_:1/* STABLE */},8,["spinning"])),[[vShow,!m.value]]);};}});var indexBrEU8ik3=/*#__PURE__*/Object.freeze({__proto__:null,"default":z});var o={};function t(n,_){return openBlock(),createElementBlock("div");}var a=/* @__PURE__ */ZA(o,[["render",t]]);var indexNWclWq3D=/*#__PURE__*/Object.freeze({__proto__:null,"default":a});export{va as DasMainAppLayout,$b as DasWebLayout,ea as DasWebMenu,Aa as DasWebNav,fa as DasWebTabs,kb as createDasWebApp,s9 as currentLang,Je as currentTheme,Ge as customLangeData,Jb as getDateFormat,It as getI18nRule,Ub as getLang,Yt as getThemeRule,Cb as getVar,_b as getVarValue,gt as i18n,Yb as initI18n,na as initMainApp,ra as initMicroApp,Sb as initTheme,Tt as languageKey,dA as layout,Ve as layoutData,hb as loadLocale,Pa as mainAppFramework,xA as microFrontend,Qb as microI18nStore,Fb as registerMicroI18nData,Wt as setI18nRule,Mt as setLang,v3 as setLangRule,Kb as setTheme,r3 as setThemeRule,Gb as t};
|
|
@@ -96,7 +96,7 @@ const ot = (e) => {
|
|
|
96
96
|
z.beforeEach(async (i, H, c) => {
|
|
97
97
|
var q;
|
|
98
98
|
try {
|
|
99
|
-
const m = ((q = i.query) == null ? void 0 : q.
|
|
99
|
+
const m = ((q = i.query) == null ? void 0 : q.lang) || window.localStorage.getItem(Lr) || window.navigator.language || "zh-CN", O = i.path || "";
|
|
100
100
|
for (const [V, N] of s.entries()) {
|
|
101
101
|
if (!V || !O.toLowerCase().startsWith(`/${V.toLowerCase()}`)) continue;
|
|
102
102
|
if (t.isLoaded(m, V) || !N || !(N != null && N.length)) break;
|
|
@@ -160,7 +160,7 @@ const ot = (e) => {
|
|
|
160
160
|
} catch (d) {
|
|
161
161
|
throw new Error(`registerResources error: ${d}`);
|
|
162
162
|
}
|
|
163
|
-
}, Tt = "language", Ge = de({}), Ue = de({}), b9 = de({}), Lt = Ev(location.href, "
|
|
163
|
+
}, Tt = "language", Ge = de({}), Ue = de({}), b9 = de({}), Lt = Ev(location.href, "lang") || "", yt = Lt || window.localStorage.getItem(Tt) || window.navigator.language || "zh-CN", s9 = T(yt), wt = "dasI18n", Fv = () => {
|
|
164
164
|
const e = document.documentElement;
|
|
165
165
|
e && e.setAttribute("lang", s9.value);
|
|
166
166
|
}, v3 = (e = {}, A) => {
|
|
@@ -13903,11 +13903,11 @@ T("@das-fed/upf-web");
|
|
|
13903
13903
|
const Ec = [
|
|
13904
13904
|
{
|
|
13905
13905
|
path: _A,
|
|
13906
|
-
component: () => import("./index-
|
|
13906
|
+
component: () => import("./index-BrEU8ik3.js")
|
|
13907
13907
|
},
|
|
13908
13908
|
{
|
|
13909
13909
|
path: An,
|
|
13910
|
-
component: () => import("./index-
|
|
13910
|
+
component: () => import("./index-NWclWq3D.js")
|
|
13911
13911
|
}
|
|
13912
13912
|
], Pa = {
|
|
13913
13913
|
routes: Ec,
|
|
Binary file
|
|
@@ -6,7 +6,7 @@ import { DasSpin as x } from "@das-fed/upf-ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as T } from "@das-fed/upf-utils/common-info";
|
|
7
7
|
import { setShowLayout as b } from "@das-fed/upf-utils/common-tools";
|
|
8
8
|
import { createService as E } from "@das-fed/upf-utils/create-api-service";
|
|
9
|
-
import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-
|
|
9
|
+
import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-0HhODyux.js";
|
|
10
10
|
const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(F) {
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as s, F as t, H as n, G as r, I as i, e as o, o as u, B as g, r as m, f as l, j as p, n as D, A as c, D as L, E as b, k as h, i as y, L as A, M as I, y as M, h as T, J as R, K as W, v as F, P as V, N as d, w as f, x as k, s as v, m as w, q as x, z as K, C as N, t as j } from "./index-
|
|
1
|
+
import { O as s, F as t, H as n, G as r, I as i, e as o, o as u, B as g, r as m, f as l, j as p, n as D, A as c, D as L, E as b, k as h, i as y, L as A, M as I, y as M, h as T, J as R, K as W, v as F, P as V, N as d, w as f, x as k, s as v, m as w, q as x, z as K, C as N, t as j } from "./index-0HhODyux.js";
|
|
2
2
|
export {
|
|
3
3
|
s as DasMainAppLayout,
|
|
4
4
|
t as DasWebLayout,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/upf-web",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.207",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/upf-ui": "6.4.0-dev.
|
|
8
|
-
"@das-fed/upf-utils": "6.4.0-dev.
|
|
9
|
-
"@das-fed/upf-web": "6.4.0-dev.
|
|
10
|
-
"@das-fed/upf-web-components": "6.4.0-dev.
|
|
7
|
+
"@das-fed/upf-ui": "6.4.0-dev.207",
|
|
8
|
+
"@das-fed/upf-utils": "6.4.0-dev.207",
|
|
9
|
+
"@das-fed/upf-web": "6.4.0-dev.207",
|
|
10
|
+
"@das-fed/upf-web-components": "6.4.0-dev.207",
|
|
11
11
|
"@microsoft/signalr": "^8.0.7",
|
|
12
12
|
"@vueuse/core": "^9.13.0",
|
|
13
13
|
"animate.css": "^4.1.1",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"vue-router": "^4.4.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@das-fed/upf-cli": "6.4.0-dev.
|
|
22
|
+
"@das-fed/upf-cli": "6.4.0-dev.207",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -25,7 +25,7 @@ var vue = require('vue');
|
|
|
25
25
|
var index = require('@das-fed/upf-web/packages/theme/index/es5');
|
|
26
26
|
var index$1 = require('@das-fed/upf-web/packages/layout/index/es5');
|
|
27
27
|
var pinia = require('pinia');
|
|
28
|
-
var
|
|
28
|
+
var D = require('pinia-plugin-persistedstate');
|
|
29
29
|
var vueRouter = require('vue-router');
|
|
30
30
|
var index$2 = require('@das-fed/upf-web/packages/i18n/index/es5');
|
|
31
31
|
var I = {
|
|
@@ -43,7 +43,7 @@ var I = {
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
b = pinia.createPinia();
|
|
46
|
-
b.use(
|
|
46
|
+
b.use(D);
|
|
47
47
|
var q = function q(e) {
|
|
48
48
|
var _ref;
|
|
49
49
|
var y, R, v, k, x;
|
|
@@ -115,7 +115,7 @@ var q = function q(e) {
|
|
|
115
115
|
while (1) switch (_context.p = _context.n) {
|
|
116
116
|
case 0:
|
|
117
117
|
_context.p = 0;
|
|
118
|
-
m = ((p = a.query) == null ? void 0 : p.
|
|
118
|
+
m = ((p = a.query) == null ? void 0 : p.lang) || window.localStorage.getItem(index$2.languageKey) || window.navigator.language || "zh-CN", $ = a.path || "";
|
|
119
119
|
_iterator2 = _createForOfIteratorHelper(n.entries());
|
|
120
120
|
_context.p = 1;
|
|
121
121
|
_iterator2.s();
|
|
@@ -2,8 +2,8 @@ import { ref as N, createApp as W } from "vue";
|
|
|
2
2
|
import { initTheme as O } from "@das-fed/upf-web/packages/theme/index";
|
|
3
3
|
import { DasWebLayout as P } from "@das-fed/upf-web/packages/layout/index";
|
|
4
4
|
import { createPinia as j } from "pinia";
|
|
5
|
-
import
|
|
6
|
-
import { createRouter as
|
|
5
|
+
import D from "pinia-plugin-persistedstate";
|
|
6
|
+
import { createRouter as M, createWebHistory as C } from "vue-router";
|
|
7
7
|
import { languageKey as S, registerMicroI18nData as B, microI18nStore as E } from "@das-fed/upf-web/packages/i18n/index";
|
|
8
8
|
const I = {
|
|
9
9
|
install: (e, u) => {
|
|
@@ -14,7 +14,7 @@ const I = {
|
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
}, b = j();
|
|
17
|
-
b.use(
|
|
17
|
+
b.use(D);
|
|
18
18
|
const q = (e) => {
|
|
19
19
|
var y, R, v, k, x;
|
|
20
20
|
const u = ((y = e == null ? void 0 : e.router) == null ? void 0 : y.routerBase) ?? "/", f = ((R = e == null ? void 0 : e.router) == null ? void 0 : R.options) || {};
|
|
@@ -37,7 +37,7 @@ const q = (e) => {
|
|
|
37
37
|
...A(t, e),
|
|
38
38
|
...A(i, e),
|
|
39
39
|
...A(c, e)
|
|
40
|
-
], w =
|
|
40
|
+
], w = M({ history: C(u), routes: d, ...f }), h = E;
|
|
41
41
|
if (Array.isArray(e == null ? void 0 : e.microApps) && e.microApps.length && h) {
|
|
42
42
|
const n = /* @__PURE__ */ new Map();
|
|
43
43
|
for (const a of e.microApps)
|
|
@@ -45,7 +45,7 @@ const q = (e) => {
|
|
|
45
45
|
w.beforeEach(async (a, g, r) => {
|
|
46
46
|
var p;
|
|
47
47
|
try {
|
|
48
|
-
const m = ((p = a.query) == null ? void 0 : p.
|
|
48
|
+
const m = ((p = a.query) == null ? void 0 : p.lang) || window.localStorage.getItem(S) || window.navigator.language || "zh-CN", $ = a.path || "";
|
|
49
49
|
for (const [o, s] of n.entries()) {
|
|
50
50
|
if (!o || !$.toLowerCase().startsWith(`/${o.toLowerCase()}`)) continue;
|
|
51
51
|
if (h.isLoaded(m, o) || !s || !(s != null && s.length)) break;
|
|
Binary file
|
package/packages/i18n/es5.js
CHANGED
|
@@ -24,7 +24,7 @@ var x = {
|
|
|
24
24
|
this.loaded[t] && (delete this.loaded[t][e], Object.keys(this.loaded[t]).length === 0 && delete this.loaded[t]);
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
U = /*#__PURE__*/function () {
|
|
28
28
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(t, e) {
|
|
29
29
|
var _ref2, _ref3, _ref4;
|
|
30
30
|
var m, u, g, o, a, s, n, r, l, _t;
|
|
@@ -61,16 +61,16 @@ var x = {
|
|
|
61
61
|
}
|
|
62
62
|
}, _callee, null, [[1, 4]]);
|
|
63
63
|
}));
|
|
64
|
-
return function
|
|
64
|
+
return function U(_x, _x2) {
|
|
65
65
|
return _ref.apply(this, arguments);
|
|
66
66
|
};
|
|
67
67
|
}(),
|
|
68
|
-
|
|
68
|
+
C = "language",
|
|
69
69
|
i = vue.reactive({}),
|
|
70
70
|
c = vue.reactive({}),
|
|
71
71
|
d = vue.reactive({}),
|
|
72
|
-
M = commonTools.getUrlParams(location.href, "
|
|
73
|
-
O = M || window.localStorage.getItem(
|
|
72
|
+
M = commonTools.getUrlParams(location.href, "lang") || "",
|
|
73
|
+
O = M || window.localStorage.getItem(C) || window.navigator.language || "zh-CN",
|
|
74
74
|
f = vue.ref(O),
|
|
75
75
|
z = "dasI18n",
|
|
76
76
|
w = function w() {
|
|
@@ -361,7 +361,7 @@ var K = /*#__PURE__*/function () {
|
|
|
361
361
|
e = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : "zh-CN";
|
|
362
362
|
_context4.p = 1;
|
|
363
363
|
_context4.n = 2;
|
|
364
|
-
return
|
|
364
|
+
return U(t, e);
|
|
365
365
|
case 2:
|
|
366
366
|
o = _context4.v;
|
|
367
367
|
o != null && o.frontEnd && _typeof(o.frontEnd) == "object" && Object.keys(o.frontEnd).length && t.forEach(function (a) {
|
|
@@ -388,7 +388,7 @@ exports.getI18nRule = k;
|
|
|
388
388
|
exports.getLang = G;
|
|
389
389
|
exports.i18n = v;
|
|
390
390
|
exports.initI18n = B;
|
|
391
|
-
exports.languageKey =
|
|
391
|
+
exports.languageKey = C;
|
|
392
392
|
exports.loadLocale = K;
|
|
393
393
|
exports.microI18nStore = x;
|
|
394
394
|
exports.registerMicroI18nData = $;
|
package/packages/i18n/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive as p, ref as b, computed as j } from "vue";
|
|
2
2
|
import { handleI18nData as I, getUrlParams as L } from "@das-fed/upf-utils/common-tools";
|
|
3
|
-
import { getConfig as
|
|
3
|
+
import { getConfig as D } from "@das-fed/upf-utils/config";
|
|
4
4
|
const x = {
|
|
5
5
|
loaded: {},
|
|
6
6
|
isLoaded(t, e) {
|
|
@@ -12,9 +12,9 @@ const x = {
|
|
|
12
12
|
markUnloaded(t, e) {
|
|
13
13
|
this.loaded[t] && (delete this.loaded[t][e], Object.keys(this.loaded[t]).length === 0 && delete this.loaded[t]);
|
|
14
14
|
}
|
|
15
|
-
},
|
|
15
|
+
}, U = async (t, e) => {
|
|
16
16
|
var m, u, g;
|
|
17
|
-
const o =
|
|
17
|
+
const o = D() || {}, a = ((m = o.i18n) == null ? void 0 : m.fromOss) ?? !0, s = ((u = o.i18n) == null ? void 0 : u.isPullBack) ?? !1, n = ((g = o.i18n) == null ? void 0 : g.isDasUI) ?? !0;
|
|
18
18
|
let r = "/oss/resource/";
|
|
19
19
|
try {
|
|
20
20
|
const l = await I({
|
|
@@ -31,7 +31,7 @@ const x = {
|
|
|
31
31
|
} catch (h) {
|
|
32
32
|
throw new Error(`registerResources error: ${h}`);
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, C = "language", i = p({}), c = p({}), d = p({}), M = L(location.href, "lang") || "", O = M || window.localStorage.getItem(C) || window.navigator.language || "zh-CN", f = b(O), z = "dasI18n", w = () => {
|
|
35
35
|
const t = document.documentElement;
|
|
36
36
|
t && t.setAttribute("lang", f.value);
|
|
37
37
|
}, y = (t = {}, e) => {
|
|
@@ -95,7 +95,7 @@ const K = async (t) => {
|
|
|
95
95
|
}
|
|
96
96
|
}, $ = async (t = [], e = "zh-CN") => {
|
|
97
97
|
try {
|
|
98
|
-
const o = await
|
|
98
|
+
const o = await U(t, e);
|
|
99
99
|
o != null && o.frontEnd && typeof o.frontEnd == "object" && Object.keys(o.frontEnd).length && t.forEach((a) => {
|
|
100
100
|
o.frontEnd[a] && typeof o.frontEnd[a] == "object" && Object.keys(o.frontEnd[a]).length && y({ [e]: o.frontEnd[a] });
|
|
101
101
|
}), o != null && o.dasUiEnd && typeof o.dasUiEnd == "object" && Object.keys(o.dasUiEnd).length && y({ [e]: o.dasUiEnd }), N(e);
|
|
@@ -110,7 +110,7 @@ export {
|
|
|
110
110
|
G as getLang,
|
|
111
111
|
v as i18n,
|
|
112
112
|
B as initI18n,
|
|
113
|
-
|
|
113
|
+
C as languageKey,
|
|
114
114
|
K as loadLocale,
|
|
115
115
|
x as microI18nStore,
|
|
116
116
|
$ as registerMicroI18nData,
|
|
Binary file
|
package/index-CRYX4EeG.js.gz
DELETED
|
Binary file
|
package/index-PvvdYXX8.js.gz
DELETED
|
Binary file
|