@next-bricks/data-view 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +18 -3
- package/dist/chunks/2618.a2399464.js +2 -0
- package/dist/chunks/2618.a2399464.js.map +1 -0
- package/dist/chunks/2916.949ccbac.js +2 -0
- package/dist/chunks/2916.949ccbac.js.map +1 -0
- package/dist/chunks/2951.57059430.js +3 -0
- package/dist/chunks/2951.57059430.js.map +1 -0
- package/dist/chunks/{3494.49ab0ed3.js → 3494.f3d54505.js} +2 -2
- package/dist/chunks/{3494.49ab0ed3.js.map → 3494.f3d54505.js.map} +1 -1
- package/dist/chunks/353.aaa52aa5.js +2 -0
- package/dist/chunks/353.aaa52aa5.js.map +1 -0
- package/dist/chunks/4454.25db2c7a.js +2 -0
- package/dist/chunks/4454.25db2c7a.js.map +1 -0
- package/dist/chunks/4512.6ed82117.js +2 -0
- package/dist/chunks/4512.6ed82117.js.map +1 -0
- package/dist/chunks/4791.3791c567.js +2 -0
- package/dist/chunks/4791.3791c567.js.map +1 -0
- package/dist/chunks/5636.ed10ef34.js +2 -0
- package/dist/chunks/5636.ed10ef34.js.map +1 -0
- package/dist/chunks/{6205.ac5f4fb2.js → 6205.de9bf2ba.js} +2 -2
- package/dist/chunks/{6205.ac5f4fb2.js.map → 6205.de9bf2ba.js.map} +1 -1
- package/dist/chunks/{7164.b1dddefc.js → 7164.4bb29d10.js} +2 -2
- package/dist/chunks/{7164.b1dddefc.js.map → 7164.4bb29d10.js.map} +1 -1
- package/dist/chunks/{7822.a67018b0.js → 7822.c3e6d531.js} +2 -2
- package/dist/chunks/{7822.a67018b0.js.map → 7822.c3e6d531.js.map} +1 -1
- package/dist/chunks/873.58c2e4d7.js +2 -0
- package/dist/chunks/873.58c2e4d7.js.map +1 -0
- package/dist/chunks/9685.b7dafab6.js +3 -0
- package/dist/chunks/9685.b7dafab6.js.map +1 -0
- package/dist/chunks/991.42fd7b7b.js +2 -0
- package/dist/chunks/991.42fd7b7b.js.map +1 -0
- package/dist/chunks/app-wall-card-item.840fb3f9.js +3 -0
- package/dist/chunks/app-wall-card-item.840fb3f9.js.map +1 -0
- package/dist/chunks/app-wall-system-card.2a19da39.js +3 -0
- package/dist/chunks/app-wall-system-card.2a19da39.js.LICENSE.txt +5 -0
- package/dist/chunks/app-wall-system-card.2a19da39.js.map +1 -0
- package/dist/chunks/battery-chart.2c991e97.js +2 -0
- package/dist/chunks/battery-chart.2c991e97.js.map +1 -0
- package/dist/chunks/complex-search.e5ad7ef3.js +2 -0
- package/dist/chunks/complex-search.e5ad7ef3.js.map +1 -0
- package/dist/chunks/dropdown-menu.2681372b.js +3 -0
- package/dist/chunks/dropdown-menu.2681372b.js.LICENSE.txt +5 -0
- package/dist/chunks/dropdown-menu.2681372b.js.map +1 -0
- package/dist/chunks/gauge-chart.5c4ba6a4.js +2 -0
- package/dist/chunks/{gauge-chart.1f452553.js.map → gauge-chart.5c4ba6a4.js.map} +1 -1
- package/dist/chunks/loading-panel.c594808c.js +2 -0
- package/dist/chunks/loading-panel.c594808c.js.map +1 -0
- package/dist/chunks/main.887a6193.js +2 -0
- package/dist/chunks/main.887a6193.js.map +1 -0
- package/dist/chunks/modern-style-component-title.e8b2aa60.js +2 -0
- package/dist/chunks/modern-style-component-title.e8b2aa60.js.map +1 -0
- package/dist/chunks/modern-style-page-title.9290bacc.js +2 -0
- package/dist/chunks/modern-style-page-title.9290bacc.js.map +1 -0
- package/dist/chunks/modern-style-treemap.025c61b9.js +2 -0
- package/dist/chunks/modern-style-treemap.025c61b9.js.map +1 -0
- package/dist/chunks/particle-animation.37f88acb.js +2 -0
- package/dist/chunks/particle-animation.37f88acb.js.map +1 -0
- package/dist/chunks/tabs-drawer.a75dc490.js +3 -0
- package/dist/chunks/tabs-drawer.a75dc490.js.LICENSE.txt +5 -0
- package/dist/chunks/{tabs-drawer.8f87a1b2.js.map → tabs-drawer.a75dc490.js.map} +1 -1
- package/dist/images/6d954a25.png +0 -0
- package/dist/index.d5a4d33a.js +2 -0
- package/dist/index.d5a4d33a.js.map +1 -0
- package/dist-types/app-wall/card-item/index.d.ts +40 -0
- package/dist-types/app-wall/card-item/index.spec.d.ts +1 -0
- package/dist-types/app-wall/system-card/index.d.ts +75 -0
- package/dist-types/app-wall/system-card/index.spec.d.ts +1 -0
- package/dist-types/bootstrap.d.ts +6 -0
- package/dist-types/complex-search/i18n.d.ts +12 -0
- package/dist-types/complex-search/index.d.ts +73 -0
- package/dist-types/complex-search/index.spec.d.ts +1 -0
- package/dist-types/dropdown-menu/index.d.ts +49 -0
- package/dist-types/dropdown-menu/index.spec.d.ts +1 -0
- package/dist-types/hooks/index.d.ts +1 -0
- package/dist-types/hooks/usePrevious/index.d.ts +1 -0
- package/dist-types/hooks/usePrevious/usePrevious.spec.d.ts +1 -0
- package/dist-types/loading-panel/index.d.ts +60 -0
- package/dist-types/loading-panel/index.spec.d.ts +1 -0
- package/dist-types/modern-style-treemap/index.d.ts +14 -6
- package/dist-types/particle-animation/index.d.ts +38 -0
- package/dist-types/particle-animation/index.spec.d.ts +1 -0
- package/dist-types/utils/debounceByAnimationFrame.d.ts +4 -0
- package/dist-types/utils/debounceByAnimationFrame.spec.d.ts +1 -0
- package/package.json +6 -6
- package/dist/chunks/2241.9f705baa.js +0 -3
- package/dist/chunks/2241.9f705baa.js.map +0 -1
- package/dist/chunks/2993.e6502630.js +0 -2
- package/dist/chunks/2993.e6502630.js.map +0 -1
- package/dist/chunks/4454.22c6779c.js +0 -2
- package/dist/chunks/4454.22c6779c.js.map +0 -1
- package/dist/chunks/5603.39981534.js +0 -2
- package/dist/chunks/5603.39981534.js.map +0 -1
- package/dist/chunks/6173.73523a3f.js +0 -3
- package/dist/chunks/6173.73523a3f.js.map +0 -1
- package/dist/chunks/7179.6e1ec8ff.js +0 -2
- package/dist/chunks/7179.6e1ec8ff.js.map +0 -1
- package/dist/chunks/8207.d017a10a.js +0 -2
- package/dist/chunks/8207.d017a10a.js.map +0 -1
- package/dist/chunks/873.4a237712.js +0 -2
- package/dist/chunks/873.4a237712.js.map +0 -1
- package/dist/chunks/battery-chart.02988af9.js +0 -2
- package/dist/chunks/battery-chart.02988af9.js.map +0 -1
- package/dist/chunks/gauge-chart.1f452553.js +0 -2
- package/dist/chunks/main.25a99d0e.js +0 -2
- package/dist/chunks/main.25a99d0e.js.map +0 -1
- package/dist/chunks/modern-style-component-title.17b744e0.js +0 -2
- package/dist/chunks/modern-style-component-title.17b744e0.js.map +0 -1
- package/dist/chunks/modern-style-page-title.ae7b75cb.js +0 -2
- package/dist/chunks/modern-style-page-title.ae7b75cb.js.map +0 -1
- package/dist/chunks/modern-style-treemap.0fd4d0cd.js +0 -2
- package/dist/chunks/modern-style-treemap.0fd4d0cd.js.map +0 -1
- package/dist/chunks/tabs-drawer.8f87a1b2.js +0 -3
- package/dist/index.30ce150c.js +0 -2
- package/dist/index.30ce150c.js.map +0 -1
- /package/dist/chunks/{2241.9f705baa.js.LICENSE.txt → 2951.57059430.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{6173.73523a3f.js.LICENSE.txt → 9685.b7dafab6.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{tabs-drawer.8f87a1b2.js.LICENSE.txt → app-wall-card-item.840fb3f9.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/7164.
|
|
1
|
+
{"version":3,"file":"chunks/7164.4bb29d10.js","mappings":"sOAEIA,GAAc,EACdC,EAAwB,IAAIC,IACzB,SAASC,EAAeC,EAAIC,GAyBjC,GAxBKL,IACHA,GAAc,EACd,EAAAM,KAAA,IAIoF,WAEnFC,KAAK,CACJC,YAAa,KACbC,OAAO,EACPC,cAAe,CAAC,KAAM,MACtBC,0BAA0B,EAC1BC,cAAe,CACbC,aAAa,GAGfC,MAAO,CACLC,aAAa,GAEfC,kBAAmB,KACnBC,UAAW,CAAC,KAGXb,GAAOC,IAAWJ,EAAsBiB,IAAId,GAIjD,IAAK,IAAKe,EAAMF,KADhBhB,EAAsBmB,IAAIhB,GACIiB,OAAOC,QAAQjB,IAC3C,EAAAC,KAAA,kBAAuBa,EAAMf,EAAIa,EAErC,C,cClCO,SAASM,EAASC,GACvB,IAAIC,EACJ,GAAKD,EAAL,CAGA,IAAIE,EAAgD,QAApCD,EAAiB,EAAAnB,KAAA,gBAA8C,IAAnBmB,EAA4BA,EAAiB,QAEzG,IAAI,IAAAE,gBAAeH,EAAME,GACvB,OAAOF,EAAKE,GAGd,IAAIE,EAAkBF,EAASG,MAAM,KAAK,GAC1C,GAAID,IAAoBF,EAGtB,OAAO,IAAAC,gBAAeH,EAAMI,GAAmBJ,EAAKI,QAAmBE,EAKzE,IAAIC,EAAS,GAAGC,OAAOJ,EAAiB,KACxC,IAAK,IAAIK,KAAOZ,OAAOa,KAAKV,GAC1B,GAAIS,EAAIE,WAAWJ,GACjB,OAAOP,EAAKS,EAnBhB,CAsBF,CC3BO,IAAI3B,EAA6E,S","sources":["webpack:///../../node_modules/@next-core/i18n/dist/esm/init.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/text.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/index.js"],"sourcesContent":["import { i18n } from \"@next-core/i18n\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nvar initialized = false;\nvar initializedNamespaces = new Set();\nexport function initializeI18n(NS, locales) {\n if (!initialized) {\n initialized = true;\n i18n\n // learn more: https://github.com/i18next/i18next-xhr-backend\n // .use(Backend)\n // learn more: https://github.com/i18next/i18next-browser-languageDetector\n .use(process.env.NODE_ENV === \"test\" ? LanguageDetector : /* istanbul ignore next */LanguageDetector.default)\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n fallbackLng: \"zh\",\n debug: process.env.NODE_ENV === \"development\",\n supportedLngs: [\"zh\", \"en\"],\n nonExplicitSupportedLngs: true,\n interpolation: {\n escapeValue: false // not needed for react as it escapes by default\n },\n\n react: {\n useSuspense: false\n },\n compatibilityJSON: \"v3\",\n resources: {}\n });\n }\n if (!NS || !locales || initializedNamespaces.has(NS)) {\n return;\n }\n initializedNamespaces.add(NS);\n for (var [lang, resources] of Object.entries(locales)) {\n i18n.addResourceBundle(lang, NS, resources);\n }\n}\n//# sourceMappingURL=init.js.map","import { i18n } from \"@next-core/i18n\";\nimport { hasOwnProperty } from \"@next-core/utils/general\";\nexport function i18nText(data) {\n var _i18n$language;\n if (!data) {\n return;\n }\n var language = (_i18n$language = i18n.language) !== null && _i18n$language !== void 0 ? _i18n$language : \"zh-CN\";\n // First, make a perfect match.\n if (hasOwnProperty(data, language)) {\n return data[language];\n }\n // https://en.wikipedia.org/wiki/IETF_language_tag\n var primaryLanguage = language.split(\"-\")[0];\n if (primaryLanguage !== language) {\n // Then, match the primary language (which omits other subtags).\n // E.g., match `zh` if the current language is `zh-CN`.\n return hasOwnProperty(data, primaryLanguage) ? data[primaryLanguage] : undefined;\n }\n // At last, match the first key which starts with the primary language,\n // if the current language contains primary subtag only.\n // E.g., match `zh-CN` if the current language is `zh`.\n var prefix = \"\".concat(primaryLanguage, \"-\");\n for (var key of Object.keys(data)) {\n if (key.startsWith(prefix)) {\n return data[key];\n }\n }\n}\n//# sourceMappingURL=text.js.map","import i18next from \"i18next\";\nexport var i18n = process.env.NODE_ENV === \"test\" ? i18next : /* istanbul ignore next */i18next.default;\nexport * from \"./init.js\";\nexport * from \"./text.js\";\n//# sourceMappingURL=index.js.map"],"names":["initialized","initializedNamespaces","Set","initializeI18n","NS","locales","i18n","init","fallbackLng","debug","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","has","lang","add","Object","entries","i18nText","data","_i18n$language","language","hasOwnProperty","primaryLanguage","split","undefined","prefix","concat","key","keys","startsWith"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_next_bricks_data_view=self.webpackChunk_next_bricks_data_view||[]).push([[7822,4795,3494],{4795:(e,t,r)=>{function n(e,t,r,n,a,u,c){try{var i=e[u](c),s=i.value}catch(e){return void r(e)}i.done?t(s):Promise.resolve(s).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(a,u){var c=e.apply(t,r);function i(e){n(c,a,u,i,s,"next",e)}function s(e){n(c,a,u,i,s,"throw",e)}i(void 0)}))}}r.d(t,{Z:()=>a})},7822:(e,t,r)=>{r.r(t),r.d(t,{ReactUseBrick:()=>c,ReactUseMultipleBricks:()=>i,useCurrentApp:()=>o,useCurrentTheme:()=>s,useRecentApps:()=>l});var n=r(4795),a=r(8657),u=r(
|
|
2
|
-
//# sourceMappingURL=7822.
|
|
1
|
+
"use strict";(self.webpackChunk_next_bricks_data_view=self.webpackChunk_next_bricks_data_view||[]).push([[7822,4795,3494],{4795:(e,t,r)=>{function n(e,t,r,n,a,u,c){try{var i=e[u](c),s=i.value}catch(e){return void r(e)}i.done?t(s):Promise.resolve(s).then(n,a)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(a,u){var c=e.apply(t,r);function i(e){n(c,a,u,i,s,"next",e)}function s(e){n(c,a,u,i,s,"throw",e)}i(void 0)}))}}r.d(t,{Z:()=>a})},7822:(e,t,r)=>{r.r(t),r.d(t,{ReactUseBrick:()=>c,ReactUseMultipleBricks:()=>i,useCurrentApp:()=>o,useCurrentTheme:()=>s,useRecentApps:()=>l});var n=r(4795),a=r(8657),u=r(6011);function c(e){var{useBrick:t,data:r}=e,[c,i]=(0,a.useState)(null),s=(0,a.useRef)(),[l,o]=(0,a.useState)(),d=(0,a.useRef)(0);(0,a.useEffect)((()=>{function e(){return(e=(0,n.Z)((function*(){try{i(yield u.__secret_internals.renderUseBrick(t,r)),o(++d.current)}catch(e){console.error("Render useBrick failed:",t,"with data:",r),(0,u.handleHttpError)(e)}}))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[r,t]);var f=(0,a.useCallback)((e=>{e?s.current=u.__secret_internals.mountUseBrick(c,e):(u.__secret_internals.unmountUseBrick(c,s.current),s.current=void 0)}),[c]);if(!c)return null;var{tagName:v}=c;if(null===v)return null;var p=v;return a.createElement(p,{key:l,ref:f})}function i(e){var{useBrick:t,data:r}=e;return Array.isArray(t)?a.createElement(a.Fragment,null,t.map(((e,t)=>a.createElement(c,{key:t,useBrick:e,data:r})))):a.createElement(c,{useBrick:t,data:r})}function s(){var[e,t]=(0,a.useState)(u.getCurrentTheme);return(0,a.useEffect)((()=>{var e=e=>{t(e.detail)};return window.addEventListener("theme.change",e),()=>{window.removeEventListener("theme.change",e)}}),[]),e}function l(){var[e,t]=a.useState((()=>(0,u.getRuntime)().getRecentApps()));return a.useEffect((()=>{var e=e=>{t(e.detail)};return window.addEventListener("app.change",e),()=>window.removeEventListener("app.change",e)}),[]),e}function o(){return l().currentApp}}}]);
|
|
2
|
+
//# sourceMappingURL=7822.c3e6d531.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/7822.
|
|
1
|
+
{"version":3,"file":"chunks/7822.c3e6d531.js","mappings":"0IAAA,SAASA,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQC,EAAKC,GACpE,IACE,IAAIC,EAAOP,EAAIK,GAAKC,GAChBE,EAAQD,EAAKC,KACnB,CAAE,MAAOC,GAEP,YADAP,EAAOO,EAET,CACIF,EAAKG,KACPT,EAAQO,GAERG,QAAQV,QAAQO,GAAOI,KAAKT,EAAOC,EAEvC,CACe,SAASS,EAAkBC,GACxC,OAAO,WACL,IAAIC,EAAOC,KACTC,EAAOC,UACT,OAAO,IAAIP,SAAQ,SAAUV,EAASC,GACpC,IAAIF,EAAMc,EAAGK,MAAMJ,EAAME,GACzB,SAASd,EAAMK,GACbT,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQ,OAAQI,EAClE,CACA,SAASJ,EAAOgB,GACdrB,EAAmBC,EAAKC,EAASC,EAAQC,EAAOC,EAAQ,QAASgB,EACnE,CACAjB,OAAMkB,EACR,GACF,CACF,C,kMCxBO,SAASC,EAAcC,GAC5B,IAAI,SACFC,EAAQ,KACRC,GACEF,GACCG,EAAcC,IAAmB,IAAAC,UAAS,MAC3CC,GAAc,IAAAC,WACbC,EAAWC,IAAgB,IAAAJ,YAC5BK,GAAe,IAAAH,QAAO,IAC1B,IAAAI,YAAU,KAIR,SAASC,IAWP,OAVAA,GAAQ,QAAkB,YACxB,IACER,QAAsB,EAAAS,mBAAA,eAAkCZ,EAAUC,IAClEO,IAAyBC,EAyCpBI,QAxCP,CAAE,MAAO5B,GAEP6B,QAAQ7B,MAAM,0BAA2Be,EAAU,aAAcC,IACjE,IAAAc,iBAAgB9B,EAClB,CACF,KACaU,MAAMH,KAAME,UAC3B,EAfA,WACSiB,EAAMhB,MAAMH,KAAME,UAC3B,CAcAsB,EAAM,GACL,CAACf,EAAMD,IACV,IAAIiB,GAAc,IAAAC,cAAYC,IACxBA,EACFd,EAAYQ,QAAU,EAAAD,mBAAA,cAEtBV,EAAciB,IAGd,EAAAP,mBAAA,gBAAmCV,EAAcG,EAAYQ,SAC7DR,EAAYQ,aAAUhB,EACxB,GACC,CAACK,IACJ,IAAKA,EAEH,OAAO,KAIT,IAAI,QACFkB,GACElB,EACJ,GAAgB,OAAZkB,EACF,OAAO,KAET,IAAIC,EAAeD,EACnB,OAAoB,gBAAoBC,EAAc,CACpDxC,IAAK0B,EACLe,IAAKL,GAET,CAIO,SAASM,EAAuBC,GACrC,IAAI,SACFxB,EAAQ,KACRC,GACEuB,EACJ,OAAIC,MAAMC,QAAQ1B,GACI,gBAAoB,WAAgB,KAAMA,EAAS2B,KAAI,CAACC,EAAMC,IAAuB,gBAAoB/B,EAAe,CAC1IjB,IAAKgD,EACL7B,SAAU4B,EACV3B,KAAMA,OAGU,gBAAoBH,EAAe,CACrDE,SAAUA,EACVC,KAAMA,GAEV,CC/EO,SAAS6B,IACd,IAAKC,EAAcC,IAAmB,IAAA5B,UAAS,EAAA6B,iBAU/C,OATA,IAAAvB,YAAU,KACR,IAAIwB,EAAsBC,IACxBH,EAAgBG,EAAMC,OAAO,EAG/B,OADAC,OAAOC,iBAAiB,eAAgBJ,GACjC,KACLG,OAAOE,oBAAoB,eAAgBL,EAAoB,CAChE,GACA,IACIH,CACT,CCZO,SAASS,IACd,IAAKC,EAAYC,GAAiB,YAAe,KAAM,IAAAC,cAAaC,kBAQpE,OAPA,aAAgB,KACd,IAAIC,EAAWV,IACbO,EAAcP,EAAMC,OAAO,EAG7B,OADAC,OAAOC,iBAAiB,aAAcO,GAC/B,IAAMR,OAAOE,oBAAoB,aAAcM,EAAS,GAC9D,IACIJ,CACT,CCIO,SAASK,IACd,OAAON,IAAgBO,UACzB,C","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/ReactUseBrick.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useCurrentTheme.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useRecentApps.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useCurrentApp.js"],"sourcesContent":["function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}","import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport React, { useCallback, useEffect, useRef, useState } from \"react\";\nimport { __secret_internals, handleHttpError } from \"@next-core/runtime\";\n// Note: always synchronize code in LegacyUseBrick:\n// `bricks/v2-adapter/src/data-providers/legacy-brick-kit/getLegacyUseBrick.ts`\nexport function ReactUseBrick(_ref) {\n var {\n useBrick,\n data\n } = _ref;\n var [renderResult, setRenderResult] = useState(null);\n var mountResult = useRef();\n var [renderKey, setRenderKey] = useState();\n var IdCounterRef = useRef(0);\n useEffect(() => {\n function init() {\n return _init.apply(this, arguments);\n }\n function _init() {\n _init = _asyncToGenerator(function* () {\n try {\n setRenderResult(yield __secret_internals.renderUseBrick(useBrick, data));\n setRenderKey(getUniqueId(IdCounterRef));\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(\"Render useBrick failed:\", useBrick, \"with data:\", data);\n handleHttpError(error);\n }\n });\n return _init.apply(this, arguments);\n }\n init();\n }, [data, useBrick]);\n var refCallback = useCallback(element => {\n if (element) {\n mountResult.current = __secret_internals.mountUseBrick(\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n renderResult, element);\n } else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n __secret_internals.unmountUseBrick(renderResult, mountResult.current);\n mountResult.current = undefined;\n }\n }, [renderResult]);\n if (!renderResult) {\n // Fallback when loading/\n return null;\n // return <span>🌀 Loading...</span>;\n }\n\n var {\n tagName\n } = renderResult;\n if (tagName === null) {\n return null;\n }\n var WebComponent = tagName;\n return /*#__PURE__*/React.createElement(WebComponent, {\n key: renderKey,\n ref: refCallback\n });\n}\nfunction getUniqueId(ref) {\n return ++ref.current;\n}\nexport function ReactUseMultipleBricks(_ref2) {\n var {\n useBrick,\n data\n } = _ref2;\n if (Array.isArray(useBrick)) {\n return /*#__PURE__*/React.createElement(React.Fragment, null, useBrick.map((item, index) => /*#__PURE__*/React.createElement(ReactUseBrick, {\n key: index,\n useBrick: item,\n data: data\n })));\n }\n return /*#__PURE__*/React.createElement(ReactUseBrick, {\n useBrick: useBrick,\n data: data\n });\n}\n//# sourceMappingURL=ReactUseBrick.js.map","import { useEffect, useState } from \"react\";\nimport { getCurrentTheme } from \"@next-core/runtime\";\nexport function useCurrentTheme() {\n var [currentTheme, setCurrentTheme] = useState(getCurrentTheme);\n useEffect(() => {\n var listenToThemeChange = event => {\n setCurrentTheme(event.detail);\n };\n window.addEventListener(\"theme.change\", listenToThemeChange);\n return () => {\n window.removeEventListener(\"theme.change\", listenToThemeChange);\n };\n }, []);\n return currentTheme;\n}\n//# sourceMappingURL=useCurrentTheme.js.map","import React from \"react\";\nimport { getRuntime } from \"@next-core/runtime\";\nexport function useRecentApps() {\n var [recentApps, setRecentApps] = React.useState(() => getRuntime().getRecentApps());\n React.useEffect(() => {\n var listener = event => {\n setRecentApps(event.detail);\n };\n window.addEventListener(\"app.change\", listener);\n return () => window.removeEventListener(\"app.change\", listener);\n }, []);\n return recentApps;\n}\n//# sourceMappingURL=useRecentApps.js.map","import { useRecentApps } from \"./useRecentApps.js\";\n\n/**\n * 获取当前所在微应用信息的 React hooks。\n *\n * @example\n *\n * ```tsx\n * function MyReactComponent() {\n * const app = useCurrentApp();\n * return <div>{app.id}</div>;\n * }\n * ```\n *\n * @returns 当前所在微应用的信息。\n */\nexport function useCurrentApp() {\n return useRecentApps().currentApp;\n}\n//# sourceMappingURL=useCurrentApp.js.map"],"names":["asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","value","error","done","Promise","then","_asyncToGenerator","fn","self","this","args","arguments","apply","err","undefined","ReactUseBrick","_ref","useBrick","data","renderResult","setRenderResult","useState","mountResult","useRef","renderKey","setRenderKey","IdCounterRef","useEffect","_init","__secret_internals","current","console","handleHttpError","init","refCallback","useCallback","element","tagName","WebComponent","ref","ReactUseMultipleBricks","_ref2","Array","isArray","map","item","index","useCurrentTheme","currentTheme","setCurrentTheme","getCurrentTheme","listenToThemeChange","event","detail","window","addEventListener","removeEventListener","useRecentApps","recentApps","setRecentApps","getRuntime","getRecentApps","listener","useCurrentApp","currentApp"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_next_bricks_data_view=self.webpackChunk_next_bricks_data_view||[]).push([[873,4795,4454],{4795:(r,e,t)=>{function n(r,e,t,n,a,o,i){try{var c=r[o](i),s=c.value}catch(r){return void t(r)}c.done?e(s):Promise.resolve(s).then(n,a)}function a(r){return function(){var e=this,t=arguments;return new Promise((function(a,o){var i=r.apply(e,t);function c(r){n(i,a,o,c,s,"next",r)}function s(r){n(i,a,o,c,s,"throw",r)}c(void 0)}))}}t.d(e,{Z:()=>a})},4454:(r,e,t)=>{t.r(e),t.d(e,{enqueueStableLoadBricks:()=>v,enqueueStableLoadProcessors:()=>f,flushStableLoadBricks:()=>p,loadBricksImperatively:()=>h,loadProcessorsImperatively:()=>w,loadScript:()=>a,loadSharedModule:()=>c});var n=new Map;function a(r,e){if(Array.isArray(r))return Promise.all(r.map((r=>a(r,e))));var t=e?"".concat(e).concat(r):r,o=n.get(t);if(o)return o;var i=new Promise(((r,e)=>{var n=()=>{window.dispatchEvent(new Event("request.end"))},a=document.createElement("script");a.src=t,a.type="text/javascript",a.async=!0,a.onload=()=>{r(t),n()},a.onerror=r=>{e(r),n()};var o=document.currentScript||document.getElementsByTagName("script")[0];o.parentNode.insertBefore(a,o),window.dispatchEvent(new Event("request.start"))}));return n.set(t,i),i}var o,i=t(4795);function c(r,e){return s.apply(this,arguments)}function s(){return(s=(0,i.Z)((function*(r,e){yield t.I("default");var n=window[r];return yield n.init(t.S.default),(yield n.get(e))()}))).apply(this,arguments)}var u,l=!1,d=new Promise((r=>{o=r}));function p(){l||o()}function v(r,e){var t=g("bricks",r,e);return _(t),t}function f(r,e){var t=g("processors",r,e);return _(t),t}function h(r,e){var t=g("bricks",r,e);return p(),_(t),t}function w(r,e){var t=g("processors",r,e);return p(),_(t),t}var y="v2-adapter.load-bricks";function m(r,e,t){var n=new Map,a=new Set,o=e=>{var i;if(!a.has(e)){a.add(e);var[c,s]=e.split("."),u="bricks/".concat("processors"===r?c.replace(/[A-Z]/g,(r=>"-".concat(r[0].toLocaleLowerCase()))).replace(/_[0-9]/g,(r=>"-".concat(r[1]))):c),l=t.get(u);if(!l)throw new Error("Package ".concat(u," not found."));var d=n.get(l);d||(d=[],n.set(l,d)),d.push(s);var p=null===(i=l.dependencies)||void 0===i?void 0:i[e];if(p)for(var v of p)o(v)}};for(var i of e)o(i);return n}function k(r,e,t){return P.apply(this,arguments)}function P(){return(P=(0,i.Z)((function*(r,e,t){var n="".concat("processors"===r?"./processors/":"./").concat(t);try{yield c(e,n)}catch(t){throw console.error(t),new Error("Load ".concat(r,' of "').concat(e.split("/").pop(),".").concat(n.split("/").pop(),'" failed'))}}))).apply(this,arguments)}function b(r,e,t){return e.map(function(){var e=(0,i.Z)((function*(e){var n;return yield a(e.filePath,null!==(n=window.PUBLIC_ROOT)&&void 0!==n?n:""),yield d,Promise.all(t.get(e).map((t=>k(r,e.id,t))))}));return function(r){return e.apply(this,arguments)}}())}function g(r,e,t){return E.apply(this,arguments)}function E(){return E=(0,i.Z)((function*(r,e,t){var n=new Map;for(var c of t){var s,d=null!==(s=c.id)&&void 0!==s?s:L(c.filePath);n.set(d,c)}var p,v,f=m(r,e,n),h=[],w=[];for(var P of f.keys())P.id?"bricks/basic"===P.id?p=P:w.push(P):(h.push(P),(v=n.get("bricks/v2-adapter"))||console.error("Using v2 bricks, but v2-adapter not found"));var g,E=v,_=p;if(_){var S,B=a(_.filePath,null!==(S=window.PUBLIC_ROOT)&&void 0!==S?S:"");l||(l=!0,B.then((()=>Promise.resolve())).then(o)),g=B.then((()=>Promise.all(f.get(_).map((e=>k(r,_.id,e))))))}var Z=[g].concat(b(r,w,f));if(E&&h.length>0){if(!u){var q=m("bricks",[y],n),C=[...q.keys()],I=function(){var r=(0,i.Z)((function*(){return yield Promise.all(b("bricks",C,q)),document.createElement(y)}));return function(){return r.apply(this,arguments)}}();u=I()}Z.push(u.then((e=>Promise.all(h.map((n=>{var a=L(n.filePath).split("/")[1];return e.resolve(E.filePath,n.filePath,"bricks"===r?f.get(n).map((r=>"".concat(a,".").concat(r))):[],n.dll,t)}))))))}yield Promise.all(Z)})),E.apply(this,arguments)}function _(r){window.dispatchEvent(new Event("request.start")),r.finally((()=>{window.dispatchEvent(new Event("request.end"))}))}function L(r){return r.split("/").slice(0,2).join("/")}}}]);
|
|
2
|
+
//# sourceMappingURL=873.58c2e4d7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunks/873.58c2e4d7.js","mappings":"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","sources":["webpack:///../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack:///../../node_modules/@next-core/loader/dist/esm/loadScript.js","webpack:///../../node_modules/@next-core/loader/dist/esm/stableLoadBricks.js","webpack:///../../node_modules/@next-core/loader/dist/esm/loadSharedModule.js"],"sourcesContent":["function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}","var cache = new Map();\nexport default function loadScript(src, prefix) {\n if (Array.isArray(src)) {\n return Promise.all(src.map(item => loadScript(item, prefix)));\n }\n var fixedSrc = prefix ? \"\".concat(prefix).concat(src) : src;\n var cachedPromise = cache.get(fixedSrc);\n if (cachedPromise) {\n return cachedPromise;\n }\n var promise = new Promise((resolve, reject) => {\n var end = () => {\n window.dispatchEvent(new Event(\"request.end\"));\n };\n var script = document.createElement(\"script\");\n script.src = fixedSrc;\n script.type = \"text/javascript\";\n script.async = true;\n script.onload = () => {\n resolve(fixedSrc);\n end();\n };\n script.onerror = e => {\n reject(e);\n end();\n };\n var firstScript = document.currentScript || document.getElementsByTagName(\"script\")[0];\n firstScript.parentNode.insertBefore(script, firstScript);\n window.dispatchEvent(new Event(\"request.start\"));\n });\n cache.set(fixedSrc, promise);\n return promise;\n}\n//# sourceMappingURL=loadScript.js.map","import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport loadScript from \"./loadScript.js\";\nimport loadSharedModule from \"./loadSharedModule.js\";\nvar resolveBasicPkg;\nvar basicPkgWillBeResolved = false;\nvar waitBasicPkg = new Promise(resolve => {\n resolveBasicPkg = resolve;\n});\nexport function flushStableLoadBricks() {\n if (!basicPkgWillBeResolved) {\n resolveBasicPkg();\n }\n}\n\n/**\n * When loading bundles with webpack module federation concurrently, if\n * these bundles share some modules, webpack will load a singleton module\n * if versions are matched. Webpack will use the first bundle who started\n * to init the shared scope. Generally which bundle to use for a specific\n * module, does not matter. However, it may cause flaky result since the\n * shared module may from different bundles which maybe not exactly the\n * same, especially developers declare dependencies incorrectly sometimes.\n * So in order to make it less flaky, we try to make a BASIC package takes\n * precedence over others. We will always load the shared modules from the\n * basic package bundle if it contains the shared modules.\n */\nexport function enqueueStableLoadBricks(bricks, brickPackages) {\n var promise = enqueueStableLoad(\"bricks\", bricks, brickPackages);\n dispatchRequestStatus(promise);\n return promise;\n}\nexport function enqueueStableLoadProcessors(processors, brickPackages) {\n var promise = enqueueStableLoad(\"processors\", processors, brickPackages);\n dispatchRequestStatus(promise);\n return promise;\n}\nexport function loadBricksImperatively(bricks, brickPackages) {\n var promise = enqueueStableLoad(\"bricks\", bricks, brickPackages);\n flushStableLoadBricks();\n dispatchRequestStatus(promise);\n return promise;\n}\nexport function loadProcessorsImperatively(processors, brickPackages) {\n var promise = enqueueStableLoad(\"processors\", processors, brickPackages);\n flushStableLoadBricks();\n dispatchRequestStatus(promise);\n return promise;\n}\nvar v2AdapterPromise;\nvar V2_ADAPTER_LOAD_BRICKS = \"v2-adapter.load-bricks\";\n\n// Get brick/processor items including their dependencies\nfunction getItemsByPkg(type, list, brickPackagesMap) {\n var itemsByPkg = new Map();\n var listToLoad = new Set();\n var add = item => {\n var _pkg$dependencies;\n if (listToLoad.has(item)) {\n return;\n }\n listToLoad.add(item);\n var [namespace, itemName] = item.split(\".\");\n var pkgId = \"bricks/\".concat(type === \"processors\" ? getProcessorPackageName(namespace) : namespace);\n var pkg = brickPackagesMap.get(pkgId);\n if (!pkg) {\n throw new Error(\"Package \".concat(pkgId, \" not found.\"));\n }\n var groupItems = itemsByPkg.get(pkg);\n if (!groupItems) {\n groupItems = [];\n itemsByPkg.set(pkg, groupItems);\n }\n groupItems.push(itemName);\n\n // Load their dependencies too\n var deps = (_pkg$dependencies = pkg.dependencies) === null || _pkg$dependencies === void 0 ? void 0 : _pkg$dependencies[item];\n if (deps) {\n for (var dep of deps) {\n add(dep);\n }\n }\n };\n for (var item of list) {\n add(item);\n }\n return itemsByPkg;\n}\nfunction loadBrickModule(_x, _x2, _x3) {\n return _loadBrickModule.apply(this, arguments);\n}\nfunction _loadBrickModule() {\n _loadBrickModule = _asyncToGenerator(function* (type, pkgId, itemName) {\n var moduleName = \"\".concat(type === \"processors\" ? \"./processors/\" : \"./\").concat(itemName);\n try {\n yield loadSharedModule(pkgId, moduleName);\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(error);\n throw new Error(\"Load \".concat(type, \" of \\\"\").concat(pkgId.split(\"/\").pop(), \".\").concat(moduleName.split(\"/\").pop(), \"\\\" failed\"));\n }\n });\n return _loadBrickModule.apply(this, arguments);\n}\nfunction loadRestBricks(type, pkgs, itemsMap) {\n return pkgs.map( /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (pkg) {\n var _window$PUBLIC_ROOT;\n yield loadScript(pkg.filePath, (_window$PUBLIC_ROOT = window.PUBLIC_ROOT) !== null && _window$PUBLIC_ROOT !== void 0 ? _window$PUBLIC_ROOT : \"\");\n yield waitBasicPkg;\n return Promise.all(\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n itemsMap.get(pkg).map(itemName => loadBrickModule(type, pkg.id, itemName)));\n });\n return function (_x4) {\n return _ref.apply(this, arguments);\n };\n }());\n}\nfunction enqueueStableLoad(_x5, _x6, _x7) {\n return _enqueueStableLoad.apply(this, arguments);\n}\nfunction _enqueueStableLoad() {\n _enqueueStableLoad = _asyncToGenerator(function* (type, list, brickPackages) {\n var brickPackagesMap = new Map();\n for (var pkg of brickPackages) {\n var _pkg$id;\n var pkgId = (_pkg$id = pkg.id) !== null && _pkg$id !== void 0 ? _pkg$id : getPkgIdByFilePath(pkg.filePath);\n brickPackagesMap.set(pkgId, pkg);\n }\n var itemsByPkg = getItemsByPkg(type, list, brickPackagesMap);\n var foundBasicPkg;\n var v2Packages = [];\n var v3PackagesOtherThanBasic = [];\n var maybeV2Adapter;\n for (var _pkg of itemsByPkg.keys()) {\n if (_pkg.id) {\n if (_pkg.id === \"bricks/basic\") {\n foundBasicPkg = _pkg;\n } else {\n v3PackagesOtherThanBasic.push(_pkg);\n }\n } else {\n // Brick packages of v2 has no `id`\n v2Packages.push(_pkg);\n maybeV2Adapter = brickPackagesMap.get(\"bricks/v2-adapter\");\n if (!maybeV2Adapter) {\n // eslint-disable-next-line no-console\n console.error(\"Using v2 bricks, but v2-adapter not found\");\n }\n }\n }\n var v2Adapter = maybeV2Adapter;\n var basicPkgPromise;\n var basicPkg = foundBasicPkg;\n if (basicPkg) {\n var _window$PUBLIC_ROOT2;\n var tempPromise = loadScript(basicPkg.filePath, (_window$PUBLIC_ROOT2 = window.PUBLIC_ROOT) !== null && _window$PUBLIC_ROOT2 !== void 0 ? _window$PUBLIC_ROOT2 : \"\");\n // Packages other than BASIC will wait for an extra micro-task tick.\n if (!basicPkgWillBeResolved) {\n basicPkgWillBeResolved = true;\n tempPromise.then(() => Promise.resolve()).then(resolveBasicPkg);\n }\n basicPkgPromise = tempPromise.then(() => Promise.all(\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n itemsByPkg.get(basicPkg).map(itemName => loadBrickModule(type, basicPkg.id, itemName))));\n }\n var pkgPromises = [basicPkgPromise].concat(loadRestBricks(type, v3PackagesOtherThanBasic, itemsByPkg));\n if (v2Adapter && v2Packages.length > 0) {\n if (!v2AdapterPromise) {\n // Load `v2-adapter.load-bricks` and its dependencies\n var v2AdapterItemsByPkg = getItemsByPkg(\"bricks\", [V2_ADAPTER_LOAD_BRICKS], brickPackagesMap);\n var v2AdapterPackages = [...v2AdapterItemsByPkg.keys()];\n var loadV2Adapter = /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator(function* () {\n yield Promise.all(loadRestBricks(\"bricks\", v2AdapterPackages, v2AdapterItemsByPkg));\n return document.createElement(V2_ADAPTER_LOAD_BRICKS);\n });\n return function loadV2Adapter() {\n return _ref2.apply(this, arguments);\n };\n }();\n v2AdapterPromise = loadV2Adapter();\n }\n pkgPromises.push(v2AdapterPromise.then(adapter => Promise.all(v2Packages.map(pkg => {\n var pkgId = getPkgIdByFilePath(pkg.filePath);\n var pkgNamespace = pkgId.split(\"/\")[1];\n return adapter.resolve(v2Adapter.filePath, pkg.filePath, type === \"bricks\" ?\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n itemsByPkg.get(pkg).map(itemName => \"\".concat(pkgNamespace, \".\").concat(itemName)) : [], pkg.dll,\n // Todo: remove `brickPackages` as an argument\n brickPackages);\n }))));\n }\n yield Promise.all(pkgPromises);\n });\n return _enqueueStableLoad.apply(this, arguments);\n}\nfunction dispatchRequestStatus(promise) {\n window.dispatchEvent(new Event(\"request.start\"));\n promise.finally(() => {\n window.dispatchEvent(new Event(\"request.end\"));\n });\n}\nfunction getProcessorPackageName(camelPackageName) {\n return camelPackageName.replace(/[A-Z]/g, match => \"-\".concat(match[0].toLocaleLowerCase())).replace(/_[0-9]/g, match => \"-\".concat(match[1]));\n}\nfunction getPkgIdByFilePath(filePath) {\n return filePath.split(\"/\").slice(0, 2).join(\"/\");\n}\n//# sourceMappingURL=stableLoadBricks.js.map","import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\n// https://github.com/module-federation/module-federation-examples/blob/eda9493f3991a423479fd834cfb1d7b241d9d1f0/advanced-api/dynamic-remotes/app1/src/App.js\nexport default function loadSharedModule(_x, _x2) {\n return _loadSharedModule.apply(this, arguments);\n}\nfunction _loadSharedModule() {\n _loadSharedModule = _asyncToGenerator(function* (scope, module) {\n // Initializes the share scope. This fills it with known provided modules from this build and all remotes\n yield __webpack_init_sharing__(\"default\");\n var container = window[scope]; // or get the container somewhere else\n // Initialize the container, it may provide shared modules\n yield container.init(__webpack_share_scopes__.default);\n var factory = yield container.get(module);\n return factory();\n });\n return _loadSharedModule.apply(this, arguments);\n}\n//# sourceMappingURL=loadSharedModule.js.map"],"names":["asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","value","error","done","Promise","then","_asyncToGenerator","fn","self","this","args","arguments","apply","err","undefined","cache","Map","loadScript","src","prefix","Array","isArray","all","map","item","fixedSrc","concat","cachedPromise","get","promise","end","window","dispatchEvent","Event","script","document","createElement","type","async","onload","onerror","e","firstScript","currentScript","getElementsByTagName","parentNode","insertBefore","set","resolveBasicPkg","loadSharedModule","_x","_x2","_loadSharedModule","scope","module","container","init","default","v2AdapterPromise","basicPkgWillBeResolved","waitBasicPkg","flushStableLoadBricks","enqueueStableLoadBricks","bricks","brickPackages","enqueueStableLoad","dispatchRequestStatus","enqueueStableLoadProcessors","processors","loadBricksImperatively","loadProcessorsImperatively","V2_ADAPTER_LOAD_BRICKS","getItemsByPkg","list","brickPackagesMap","itemsByPkg","listToLoad","Set","add","_pkg$dependencies","has","namespace","itemName","split","pkgId","replace","match","toLocaleLowerCase","pkg","Error","groupItems","push","deps","dependencies","dep","loadBrickModule","_x3","_loadBrickModule","moduleName","console","pop","loadRestBricks","pkgs","itemsMap","_ref","_window$PUBLIC_ROOT","filePath","PUBLIC_ROOT","id","_x4","_x5","_x6","_x7","_enqueueStableLoad","_pkg$id","getPkgIdByFilePath","foundBasicPkg","maybeV2Adapter","v2Packages","v3PackagesOtherThanBasic","_pkg","keys","basicPkgPromise","v2Adapter","basicPkg","_window$PUBLIC_ROOT2","tempPromise","pkgPromises","length","v2AdapterItemsByPkg","v2AdapterPackages","loadV2Adapter","_ref2","adapter","pkgNamespace","dll","finally","slice","join"],"sourceRoot":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see 9685.b7dafab6.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_next_bricks_data_view=self.webpackChunk_next_bricks_data_view||[]).push([[9685],{3525:(e,t,a)=>{"use strict";a.r(t);var r,i,n,o,l,s,c,p,d,h,u,m,v,b,g=a(3395),f=a(381),x=a(687),w=a(5303),y=a(8657),Z=a.n(y),k=a(857),E=a(9355),M=a(1043),N=a(7788),{defineElement:S,property:W}=(0,k.createDecorators)();i=S("data-view.gauge-chart",{styleTexts:[M.Z,N.Z]}),n=W({type:Number}),l=W({type:Number}),c=W(),d=W({type:Number}),u=W({type:Number});var C=new WeakMap,T=new WeakMap,z=new WeakMap,B=new WeakMap,R=new WeakMap;class I extends E.ReactNextElement{constructor(){super(...arguments),(0,g.Z)(this,C,{writable:!0,value:(v(this),o(this))}),(0,g.Z)(this,T,{writable:!0,value:s(this)}),(0,g.Z)(this,z,{writable:!0,value:p(this)}),(0,g.Z)(this,B,{writable:!0,value:h(this)}),(0,g.Z)(this,R,{writable:!0,value:m(this)})}get radius(){return(0,x.Z)(this,C)}set radius(e){(0,f.Z)(this,C,e)}get strokeWidth(){return(0,x.Z)(this,T)}set strokeWidth(e){(0,f.Z)(this,T,e)}get description(){return(0,x.Z)(this,z)}set description(e){(0,f.Z)(this,z,e)}get value(){return(0,x.Z)(this,B)}set value(e){(0,f.Z)(this,B,e)}get fontSize(){return(0,x.Z)(this,R)}set fontSize(e){(0,f.Z)(this,R,e)}render(){return Z().createElement(F,{value:this.value,radius:this.radius,strokeWidth:this.strokeWidth,description:this.description,fontSize:this.fontSize})}}function F(e){var{value:t,radius:a,strokeWidth:r=20,description:i,fontSize:n}=e,[o,l]=(0,y.useState)(-a),[s,c]=(0,y.useState)(0);function p(e,t){if(0===e)return{x:t,y:0};if(180===e)return{x:-t,y:0};var a=Math.tan(2*Math.PI*e/360),r=Math.abs(Math.sqrt(1/(a*a+1))*t*a);return{x:r/a,y:r}}var d=(0,y.useMemo)((()=>{for(var e=180-180*t/100,r=180,i=window.setInterval((()=>{r<=e&&window.clearInterval(i);var t=p(r,a);l(t.x),c(t.y),r-=1}),10),n="",o=0;o<8;o++){var s=o*(180/7),d=p(s,a+24),h=p(s,a+30);n+="M".concat(d.x," ").concat(-d.y," L").concat(h.x," ").concat(-h.y," ")}return n}),[t,a]),h=(0,y.useMemo)((()=>{var e=2*(a+30),t=a+30,i=Math.round(r+4)/2;return{x:e/2,y:a+30,height:t,width:e,circleR:i}}),[a]),u=a-r/2;return Z().createElement("div",{className:"gaugeChartWrapper"},Z().createElement("svg",{width:"".concat(h.width,"px"),height:"".concat(h.height,"px"),version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(h.width," ").concat(h.height+h.circleR)},Z().createElement("defs",null,Z().createElement("linearGradient",{id:"strokeGradient"},Z().createElement("stop",{offset:"0%",stopColor:"var(--color-brand)"}),Z().createElement("stop",{offset:"100%",stopColor:"var(--color-contrast-1)"})),Z().createElement("linearGradient",{id:"wordGradient"},Z().createElement("stop",{offset:"0%",stopColor:"#FFCF02"}),Z().createElement("stop",{offset:"100%",stopColor:"#FF7352"})),Z().createElement("linearGradient",{id:"innerStrokeGradient"},Z().createElement("stop",{offset:"0%",stopColor:"var(--color-normal-text)"}),Z().createElement("stop",{offset:"100%",stopColor:"transparent"})),Z().createElement("filter",{id:"shadow"},Z().createElement("feDropShadow",{dx:"0",dy:"1",stdDeviation:"4",floodColor:"#2863ee"}))),Z().createElement("path",{transform:"translate(".concat(h.x,", ").concat(h.y,")"),d:"M-".concat(a," 0 A ").concat(a," ").concat(a,", 0, 0, 1, ").concat(a," 0"),strokeWidth:r,stroke:"var(--color-fill-bg-base-4)",fill:"transparent"}),Z().createElement("path",{transform:"translate(".concat(h.x,", ").concat(h.y,")"),d:"M-".concat(u," 0 A ").concat(u," ").concat(u,", 0, 0, 1, ").concat(u," 0"),strokeWidth:"1.5",stroke:"url(#innerStrokeGradient)",fill:"transparent"}),Z().createElement("path",{transform:"translate(".concat(h.x,", ").concat(h.y,")"),d:"M-".concat(a," 0 A ").concat(a," ").concat(a,", 0, 0, 1, ").concat(o," ").concat(-s),strokeWidth:r,stroke:"url(#strokeGradient)",fill:"transparent"}),Z().createElement("circle",{transform:"translate(".concat(h.x,", ").concat(h.y,")"),fill:"#fff",cx:o,cy:-s,r:h.circleR}),Z().createElement("circle",{transform:"translate(".concat(h.x,", ").concat(h.y,")"),fill:"#46E0DB",cx:o,cy:-s,r:h.circleR/3}),Z().createElement("path",{transform:"translate(".concat(h.x,", ").concat(h.y,")"),d,stroke:"#74757A"}),Z().createElement("text",{x:"0",y:"-30",transform:"translate(".concat(h.x,", ").concat(h.y,")"),fontSize:null!=n?n:"var(--overview-data-font-size)",textAnchor:"middle",fontWeight:"var(--font-weight-600)",fill:"var(--color-normal-text)",filter:"url(#shadow)"},"".concat(t,"%")),Z().createElement("text",{x:"0",y:"-1",transform:"translate(".concat(h.x,", ").concat(h.y,")"),fontSize:"var(--normal-data-font-size)",textAnchor:"middle",fill:"var(--color-secondary-text)",opacity:"0.55"},i)),Z().createElement("slot",null))}({e:[o,s,p,h,m,v],c:[b,r]}=(0,w.Z)(I,[[n,1,"radius"],[l,1,"strokeWidth"],[c,1,"description"],[d,1,"value"],[u,1,"fontSize"]],[i])),r();var D,L,A,P,V,U,q,H,_,O,j,K,Y,G,X=a(8491),{defineElement:Q,property:J}=(0,k.createDecorators)();L=Q("data-view.modern-style-component-title",{styleTexts:[M.Z,X.Z]}),A=J({type:Boolean}),V=J({type:Boolean}),q=J(),_=J({attribute:!1}),j=J({attribute:!1});var $=new WeakMap,ee=new WeakMap,te=new WeakMap,ae=new WeakMap,re=new WeakMap;class ie extends E.ReactNextElement{constructor(){super(...arguments),(0,g.Z)(this,$,{writable:!0,value:(Y(this),P(this,!1))}),(0,g.Z)(this,ee,{writable:!0,value:U(this,!0)}),(0,g.Z)(this,te,{writable:!0,value:H(this)}),(0,g.Z)(this,ae,{writable:!0,value:O(this)}),(0,g.Z)(this,re,{writable:!0,value:K(this)})}get hideLeftComponent(){return(0,x.Z)(this,$)}set hideLeftComponent(e){(0,f.Z)(this,$,e)}get hideRightComponent(){return(0,x.Z)(this,ee)}set hideRightComponent(e){(0,f.Z)(this,ee,e)}get componentTitle(){return(0,x.Z)(this,te)}set componentTitle(e){(0,f.Z)(this,te,e)}get titleTextStyle(){return(0,x.Z)(this,ae)}set titleTextStyle(e){(0,f.Z)(this,ae,e)}get squareColor(){return(0,x.Z)(this,re)}set squareColor(e){(0,f.Z)(this,re,e)}render(){return Z().createElement(ne,{hideLeftComponent:this.hideLeftComponent,hideRightComponent:this.hideRightComponent,componentTitle:this.componentTitle,titleTextStyle:this.titleTextStyle,squareColor:this.squareColor})}}function ne(e){var{hideLeftComponent:t,hideRightComponent:a,componentTitle:r,titleTextStyle:i,squareColor:n}=e,o=(0,y.useCallback)((e=>{var{className:t,squareColor:a}=e;return Z().createElement("div",{className:t},Z().createElement("div",{className:"slash-component-wrapper"},Z().createElement("div",{className:"circle"}),Z().createElement("div",{className:"gray-slash"}),Z().createElement("div",{className:"blue-slash",style:{backgroundColor:a}})))}),[]);return Z().createElement("div",{className:"wrapper"},!t&&Z().createElement(o,{className:"left-slash-component",squareColor:n}),!a&&Z().createElement(o,{className:"right-slash-component",squareColor:n}),Z().createElement("div",{className:"bottom-line",style:{left:t?0:28,right:a?0:28,backgroundImage:"linear-gradient(\n 90deg,\n ".concat(t?"transparent":"var(--color-text-divider-line-1)"," 0,\n var(--color-text-divider-line-1) 50%,\n ").concat(a?"transparent":"var(--color-text-divider-line-1)"," 100%\n )")}}),Z().createElement("div",{className:"title-wrapper",style:{justifyContent:t===a?"space-around":"space-between"}},t&&Z().createElement("div",null,Z().createElement("slot",{name:"toolbar"})),Z().createElement("div",{className:"title-text-container",style:{marginLeft:t||!a?0:38,marginRight:a||!t?0:38,flexDirection:a||!t?"row":"row-reverse"}},Z().createElement("div",{className:"title-text",style:i},r),Z().createElement("slot",{name:"titleSuffix"})),a&&Z().createElement("div",null,Z().createElement("slot",{name:"toolbar"}))))}({e:[P,U,H,O,K,Y],c:[G,D]}=(0,w.Z)(ie,[[A,1,"hideLeftComponent"],[V,1,"hideRightComponent"],[q,1,"componentTitle"],[_,1,"titleTextStyle"],[j,1,"squareColor"]],[L])),D();var oe,le,se,ce,pe,de,he,ue,me,ve,be,ge,fe,xe,we=a(6042),{defineElement:ye,property:Ze}=(0,k.createDecorators)();le=ye("data-view.modern-style-page-title",{styleTexts:[M.Z,we.Z]}),se=Ze(),pe=Ze(),he=Ze({attribute:!1}),me=Ze({attribute:!1}),be=Ze({attribute:!1});var ke=new WeakMap,Ee=new WeakMap,Me=new WeakMap,Ne=new WeakMap,Se=new WeakMap;class We extends E.ReactNextElement{constructor(){super(...arguments),(0,g.Z)(this,ke,{writable:!0,value:(fe(this),ce(this))}),(0,g.Z)(this,Ee,{writable:!0,value:de(this)}),(0,g.Z)(this,Me,{writable:!0,value:ue(this)}),(0,g.Z)(this,Ne,{writable:!0,value:ve(this)}),(0,g.Z)(this,Se,{writable:!0,value:ge(this)})}get pageTitle(){return(0,x.Z)(this,ke)}set pageTitle(e){(0,f.Z)(this,ke,e)}get description(){return(0,x.Z)(this,Ee)}set description(e){(0,f.Z)(this,Ee,e)}get backgroundStyle(){return(0,x.Z)(this,Me)}set backgroundStyle(e){(0,f.Z)(this,Me,e)}get leftRoundStyle(){return(0,x.Z)(this,Ne)}set leftRoundStyle(e){(0,f.Z)(this,Ne,e)}get rightRoundStyle(){return(0,x.Z)(this,Se)}set rightRoundStyle(e){(0,f.Z)(this,Se,e)}render(){return Z().createElement(Ce,{pageTitle:this.pageTitle,description:this.description,backgroundStyle:this.backgroundStyle,leftRoundStyle:this.leftRoundStyle,rightRoundStyle:this.rightRoundStyle})}}function Ce(e){var{pageTitle:t,description:a,backgroundStyle:r,leftRoundStyle:i,rightRoundStyle:n}=e;return Z().createElement("div",{className:"wrapper"},Z().createElement("div",{className:"background-container",style:r},Z().createElement("div",{className:"left-round",style:i}),Z().createElement("div",{className:"right-round",style:n})),Z().createElement("svg",{width:"100%",height:"100%",viewBox:"0,0,1920,82",className:"svg",preserveAspectRatio:"none"},Z().createElement("defs",null,Z().createElement("linearGradient",{id:"path-grad",x1:"0%",y1:"0%",x2:"100%",y2:"0%"},Z().createElement("stop",{offset:"0%",stopColor:"var(--color-brand)",stopOpacity:"0"}),Z().createElement("stop",{offset:"38%",stopColor:"var(--color-brand)",stopOpacity:"1"}),Z().createElement("stop",{offset:"62%",stopColor:"var(--color-brand)",stopOpacity:"1"}),Z().createElement("stop",{offset:"100%",stopColor:"var(--color-brand)",stopOpacity:"0"}))),Z().createElement("path",{d:"M0 58 L672 58 C720 58 720 80 768 80 L1152 80 C1200 80 1200 58 1248 58 L1920 58",strokeWidth:1.5,stroke:"url(#path-grad)",fill:"transparent"})),Z().createElement("div",{className:"text-container"},Z().createElement("div",{className:"title-text"},t),Z().createElement("div",{className:"description"},a)))}({e:[ce,de,ue,ve,ge,fe],c:[xe,oe]}=(0,w.Z)(We,[[se,1,"pageTitle"],[pe,1,"description"],[he,1,"backgroundStyle"],[me,1,"leftRoundStyle"],[be,1,"rightRoundStyle"]],[le])),oe();var Te,ze,Be,Re,Ie,Fe,De,Le,Ae,Pe,Ve,Ue,qe,He,_e,Oe,je,Ke,Ye,Ge,Xe,Qe,Je,$e,et,tt,at,rt,it,nt,ot,lt,st=a(3028),ct=a(9503),pt=a(2779),dt=a.n(pt),{defineElement:ht,property:ut,event:mt,method:vt}=(0,k.createDecorators)(),bt=(0,E.wrapBrick)("icons.general-icon");ze=ht("data-view.tabs-drawer",{styleTexts:[M.Z,ct.Z]}),Be=ut({attribute:!1}),Ie=ut(),De=ut({attribute:!1}),Ae=ut({attribute:!1}),Ve=ut({attribute:!1}),qe=ut({type:Number}),_e=ut({type:Boolean}),je=mt({type:"open"}),Xe=mt({type:"close"}),et=mt({type:"tab.change"}),it=vt(),nt=vt();var gt=new WeakMap,ft=new WeakMap,xt=new WeakMap,wt=new WeakMap,yt=new WeakMap,Zt=new WeakMap,kt=new WeakMap,Et=new WeakMap,Mt=new WeakMap,Nt=new WeakMap,St=new WeakMap,Wt=new WeakMap,Ct=new WeakMap,Tt=new WeakMap,zt=new WeakMap,Bt=new WeakMap;class Rt extends E.ReactNextElement{constructor(){super(...arguments),(0,g.Z)(this,Ct,{get:Pt,set:At}),(0,g.Z)(this,St,{get:Lt,set:Dt}),(0,g.Z)(this,Mt,{get:Ft,set:It}),(0,g.Z)(this,gt,{writable:!0,value:(ot(this),Re(this))}),(0,g.Z)(this,ft,{writable:!0,value:Fe(this)}),(0,g.Z)(this,xt,{writable:!0,value:Le(this)}),(0,g.Z)(this,wt,{writable:!0,value:Pe(this)}),(0,g.Z)(this,yt,{writable:!0,value:Ue(this)}),(0,g.Z)(this,Zt,{writable:!0,value:He(this)}),(0,g.Z)(this,kt,{writable:!0,value:Oe(this)}),(0,g.Z)(this,Et,{writable:!0,value:Ke(this)}),(0,g.Z)(this,Nt,{writable:!0,value:Qe(this)}),(0,g.Z)(this,Wt,{writable:!0,value:tt(this)}),(0,g.Z)(this,Tt,{writable:!0,value:e=>{this.activeKey=e,(0,x.Z)(this,Ct).emit(e)}}),(0,g.Z)(this,zt,{writable:!0,value:()=>{this.visible=!0,(0,x.Z)(this,Mt).emit()}}),(0,g.Z)(this,Bt,{writable:!0,value:()=>{this.visible=!1,(0,x.Z)(this,St).emit()}})}get tabList(){return(0,x.Z)(this,gt)}set tabList(e){(0,f.Z)(this,gt,e)}get activeKey(){return(0,x.Z)(this,ft)}set activeKey(e){(0,f.Z)(this,ft,e)}get width(){return(0,x.Z)(this,xt)}set width(e){(0,f.Z)(this,xt,e)}get drawerStyle(){return(0,x.Z)(this,wt)}set drawerStyle(e){(0,f.Z)(this,wt,e)}get bodyStyle(){return(0,x.Z)(this,yt)}set bodyStyle(e){(0,f.Z)(this,yt,e)}get zIndex(){return(0,x.Z)(this,Zt)}set zIndex(e){(0,f.Z)(this,Zt,e)}get visible(){return(0,x.Z)(this,kt)}set visible(e){(0,f.Z)(this,kt,e)}open(){(0,x.Z)(this,zt).call(this)}close(){(0,x.Z)(this,Bt).call(this)}render(){return Z().createElement(Vt,{tabList:this.tabList,activeKey:this.activeKey,width:this.width,bodyStyle:this.bodyStyle,drawerStyle:this.drawerStyle,zIndex:this.zIndex,visible:this.visible,onClose:(0,x.Z)(this,Bt),onOpen:(0,x.Z)(this,zt),onTabChange:(0,x.Z)(this,Tt)})}}function It(e){Ge(this,e)}function Ft(){return Ye(this)}function Dt(e){$e(this,e)}function Lt(){return Je(this)}function At(e){rt(this,e)}function Pt(){return at(this)}function Vt(e){var{tabList:t=[],width:a=378,drawerStyle:r,bodyStyle:i,zIndex:n,visible:o,onClose:l,onOpen:s,onTabChange:c}=e,p=(0,y.useRef)(null),[d,h]=(0,y.useState)(e.activeKey);(0,y.useEffect)((()=>{var a;t.length&&(e=>{var t=p.current;if(t){var a=t.querySelectorAll("slot");null==a||a.forEach((t=>{t.hidden=t.name!==e})),h(e)}})(null!==(a=e.activeKey)&&void 0!==a?a:t[0].key)}),[e.activeKey,t]);var u=(0,y.useMemo)((()=>Z().createElement("div",{className:"menuWrapper"},Z().createElement("div",{className:"menuMask"}),t.map(((e,t)=>Z().createElement("div",{className:dt()("menuIconItem",{menuIconItemHover:!!e.tooltip,active:e.key===d}),key:"menu-".concat(t),onClick:()=>null==c?void 0:c(e.key)},e.icon&&Z().createElement(bt,e.icon),e.tooltip&&Z().createElement("div",{className:"menuIconTooltip"},e.tooltip)))))),[d,t]);return Z().createElement("div",{className:dt()("drawerWrapper",{open:o,close:!o}),style:(0,st.Z)((0,st.Z)({},r),n?{zIndex:n}:{})},Z().createElement("span",{className:"closeIconBtn",onClick:()=>o?null==l?void 0:l():null==s?void 0:s()},Z().createElement("span",{className:"closeIcon"})),Z().createElement("div",{className:dt()("drawerBody"),style:(0,st.Z)((0,st.Z)({},i),{},{width:a})},u,Z().createElement("div",{className:"content",ref:p},t.map(((e,t)=>Z().createElement("slot",{name:e.key,key:"slot-".concat(t)}))))))}({e:[Re,Fe,Le,Pe,Ue,He,Oe,Ke,Ye,Ge,Qe,Je,$e,tt,at,rt,ot],c:[lt,Te]}=(0,w.Z)(Rt,[[Be,1,"tabList"],[Ie,1,"activeKey"],[De,1,"width"],[Ae,1,"drawerStyle"],[Ve,1,"bodyStyle"],[qe,1,"zIndex"],[_e,1,"visible"],[je,1,"drawerOpenEvent",function(){return(0,x.Z)(this,Et)},function(e){(0,f.Z)(this,Et,e)}],[Xe,1,"drawerCloseEvent",function(){return(0,x.Z)(this,Nt)},function(e){(0,f.Z)(this,Nt,e)}],[et,1,"tabChangeEvent",function(){return(0,x.Z)(this,Wt)},function(e){(0,f.Z)(this,Wt,e)}],[it,2,"open"],[nt,2,"close"]],[ze])),Te();var Ut,qt,Ht,_t,Ot,jt,Kt,Yt,Gt,Xt,Qt,Jt,$t,ea,ta,aa,ra=a(1150),ia=a(7847),na=a(4214),oa=a(5725),la=a(2253),sa=a(4334),ca=a(891),pa=a(470),da=a(6426),ha=a(637),ua=a(5444),ma=a(7215),va=a(1211),{defineElement:ba,property:ga}=(0,k.createDecorators)(),fa=function(e){return e.treemapBinary="treemapBinary",e.treemapDice="treemapDice",e.treemapResquarify="treemapResquarify",e.treemapSlice="treemapSlice",e.treemapSliceDice="treemapSliceDice",e.treemapSquarify="treemapSquarify",e}(fa||{});qt=ba("data-view.modern-style-treemap",{styleTexts:[M.Z,ha.Z]}),Ht=ga({attribute:!1}),Ot=ga({attribute:!1}),Kt=ga({attribute:!1}),Gt=ga({attribute:!1}),Qt=ga({attribute:!1}),$t=ga({attribute:!1});var xa=new WeakMap,wa=new WeakMap,ya=new WeakMap,Za=new WeakMap,ka=new WeakMap,Ea=new WeakMap;class Ma extends E.ReactNextElement{constructor(){super(...arguments),(0,g.Z)(this,xa,{writable:!0,value:(ta(this),_t(this))}),(0,g.Z)(this,wa,{writable:!0,value:jt(this,fa.treemapSquarify)}),(0,g.Z)(this,ya,{writable:!0,value:Yt(this)}),(0,g.Z)(this,Za,{writable:!0,value:Xt(this)}),(0,g.Z)(this,ka,{writable:!0,value:Jt(this)}),(0,g.Z)(this,Ea,{writable:!0,value:ea(this)})}get data(){return(0,x.Z)(this,xa)}set data(e){(0,f.Z)(this,xa,e)}get tail(){return(0,x.Z)(this,wa)}set tail(e){(0,f.Z)(this,wa,e)}get leafUseBrick(){return(0,x.Z)(this,ya)}set leafUseBrick(e){(0,f.Z)(this,ya,e)}get leafContainerStyle(){return(0,x.Z)(this,Za)}set leafContainerStyle(e){(0,f.Z)(this,Za,e)}get tooltipUseBrick(){return(0,x.Z)(this,ka)}set tooltipUseBrick(e){(0,f.Z)(this,ka,e)}get tooltipStyle(){return(0,x.Z)(this,Ea)}set tooltipStyle(e){(0,f.Z)(this,Ea,e)}render(){return Z().createElement(Sa,{data:this.data,tail:this.tail,leafUseBrick:this.leafUseBrick,leafContainerStyle:this.leafContainerStyle,tooltipUseBrick:this.tooltipUseBrick,tooltipStyle:this.tooltipStyle})}}({e:[_t,jt,Yt,Xt,Jt,ea,ta],c:[aa,Ut]}=(0,w.Z)(Ma,[[Ht,1,"data"],[Ot,1,"tail"],[Kt,1,"leafUseBrick"],[Gt,1,"leafContainerStyle"],[Qt,1,"tooltipUseBrick"],[$t,1,"tooltipStyle"]],[qt])),Ut();var Na={[fa.treemapBinary]:ia.Z,[fa.treemapDice]:na.Z,[fa.treemapResquarify]:oa.Z,[fa.treemapSlice]:la.Z,[fa.treemapSliceDice]:sa.Z,[fa.treemapSquarify]:ca.ZP};function Sa(e){var t,a,{data:r,tail:i,leafUseBrick:n,leafContainerStyle:o,tooltipUseBrick:l,tooltipStyle:s}=e,[c,{clientWidth:p,clientHeight:d}]=(0,ua.y)(),[h,{clientWidth:u,clientHeight:m}]=(0,ua.y)(),[v,b]=(0,y.useState)({clientX:0,clientY:0}),g=(0,y.useMemo)((()=>(0,pa.ZP)(r).sum((e=>e.value)).sort(((e,t)=>t.value-e.value))),[r]),f=(0,y.useMemo)((()=>(0,da.Z)().tile(Na[i]).size([p,d]).padding(1).round(!0)),[i,p,d]),[x,w]=(0,y.useMemo)((()=>{var e=f(g).leaves().map((e=>(0,st.Z)({},e)));return[e,(0,va.keyBy)(e,"data.name")]}),[f,g]),k=(0,y.useMemo)((()=>x.map((e=>{var t=e.y0,a=e.x0,r=e.x1-e.x0,i=e.y1-e.y0;return Z().createElement("div",{key:e.data.name,className:"treemap-leaf","data-leaf-id":e.data.name,style:(0,st.Z)((0,st.Z)({},o),{},{top:0,left:0,transform:"translate(".concat(a,"px, ").concat(t,"px)"),width:r,height:i})},(null==n?void 0:n.useBrick)&&Z().createElement(ra.ReactUseMultipleBricks,{useBrick:n.useBrick,data:e}))}))),[o,null==n?void 0:n.useBrick,x]),E=(0,y.useMemo)((()=>(0,st.Z)({},w[v.name])),[w,v.name]),M=(0,y.useMemo)((()=>(0,ma.Q)((e=>{var t=e.target.closest(".treemap-leaf"),a=null==t?void 0:t.getAttribute("data-leaf-id");b((r=>({clientX:e.clientX,clientY:e.clientY,name:t?a:r.name})))}))),[]);return Z().createElement("div",{className:"wrapper"},Z().createElement("div",{className:"treemap",ref:c,onMouseMove:M,onMouseEnter:()=>{h.current.style.visibility="visible"},onMouseLeave:()=>{h.current.style.visibility="hidden"}},k),Z().createElement("div",{className:"tooltip",style:(0,st.Z)((0,st.Z)({},s),{},{transform:"translate(\n ".concat(v.clientX-(null===(t=c.current)||void 0===t?void 0:t.getBoundingClientRect().left)+16,"px,\n ").concat(v.clientY-(null===(a=c.current)||void 0===a?void 0:a.getBoundingClientRect().top)-m/2,"px)")}),ref:h},(null==l?void 0:l.useBrick)&&Z().createElement(ra.ReactUseMultipleBricks,{useBrick:l.useBrick,data:E})))}var Wa,Ca,Ta,za,Ba,Ra,Ia,Fa,Da,La,Aa,Pa,Va,Ua,qa=a(5498),{defineElement:Ha,property:_a}=(0,k.createDecorators)();Ca=Ha("data-view.battery-chart",{styleTexts:[M.Z,qa.Z]}),Ta=_a({type:Number}),Ba=_a({type:Number}),Ia=_a({type:Number}),Da=_a({attribute:!1}),Aa=_a({type:Number});var Oa=new WeakMap,ja=new WeakMap,Ka=new WeakMap,Ya=new WeakMap,Ga=new WeakMap;class Xa extends E.ReactNextElement{constructor(){super(...arguments),(0,g.Z)(this,Oa,{writable:!0,value:(Va(this),za(this))}),(0,g.Z)(this,ja,{writable:!0,value:Ra(this)}),(0,g.Z)(this,Ka,{writable:!0,value:Fa(this)}),(0,g.Z)(this,Ya,{writable:!0,value:La(this)}),(0,g.Z)(this,Ga,{writable:!0,value:Pa(this)})}get value(){return(0,x.Z)(this,Oa)}set value(e){(0,f.Z)(this,Oa,e)}get batteryWidth(){return(0,x.Z)(this,ja)}set batteryWidth(e){(0,f.Z)(this,ja,e)}get batteryHeight(){return(0,x.Z)(this,Ka)}set batteryHeight(e){(0,f.Z)(this,Ka,e)}get thresholdColors(){return(0,x.Z)(this,Ya)}set thresholdColors(e){(0,f.Z)(this,Ya,e)}get thresholdValue(){return(0,x.Z)(this,Ga)}set thresholdValue(e){(0,f.Z)(this,Ga,e)}render(){return Z().createElement(Qa,{value:this.value,thresholdValue:this.thresholdValue,thresholdColors:this.thresholdColors,batteryHeight:this.batteryHeight,batteryWidth:this.batteryWidth})}}function Qa(e){var t=[{color:"linear-gradient(180deg, #246EFF 0%, #26CE90 100%)",startValue:0,endValue:50,headerColor:"#246EFF"},{color:"linear-gradient(180deg, #FF772A 0%, #FFC22A 100%)",startValue:50,endValue:100,headerColor:"#FF772A"}],{value:a,batteryHeight:r=58,batteryWidth:i=38,thresholdValue:n=50,thresholdColors:o=t}=e,l=(0,y.useMemo)((()=>{var e,t=o[o.length-1],i=r/(t.endValue-o[0].startValue),l=o.find((e=>e.startValue<=a&&e.endValue>=a));return{height:i*a,color:null==l?void 0:l.color,headerColor:null!==(e=null==l?void 0:l.headerColor)&&void 0!==e?e:null==l?void 0:l.color,thresholdValueLineHeight:i*n,isFullMarks:a===t.endValue-o[0].startValue}}),[a,r,o,n]);return Z().createElement("div",{className:"container"},Z().createElement("div",{className:"header",style:{width:Math.round(i/3),background:l.headerColor,boxShadow:"0 1px 2px 0 ".concat(l.headerColor)}}),Z().createElement("div",{className:"content",style:{width:i,height:r}},Z().createElement("div",{className:"threshold",style:{bottom:l.thresholdValueLineHeight-1}}),Z().createElement("div",{className:"valueWrapper",style:{height:l.height}},Z().createElement("div",{className:"value",style:{background:l.color,boxShadow:"0 8px 10px 0 ".concat(l.color),borderRadius:l.isFullMarks?"4px":"0 0 4px 4px"}})),Z().createElement("div",{className:"word",style:{top:r-l.thresholdValueLineHeight-12}},Z().createElement("slot",{name:"left"}))),Z().createElement("slot",null))}({e:[za,Ra,Fa,La,Pa,Va],c:[Ua,Wa]}=(0,w.Z)(Xa,[[Ta,1,"value"],[Ba,1,"batteryWidth"],[Ia,1,"batteryHeight"],[Da,1,"thresholdColors"],[Aa,1,"thresholdValue"]],[Ca])),Wa();var Ja=a(567);const $a=a.p+"images/6d954a25.png";var er,tr,ar,rr,ir,nr,or,lr,sr,cr,pr,dr,hr,ur,mr=(0,E.wrapBrick)("icons.general-icon"),{defineElement:vr,property:br,event:gr}=(0,k.createDecorators)();tr=vr("data-view.dropdown-menu",{styleTexts:[M.Z,Ja.Z]}),ar=br({attribute:!1}),ir=br(),or=br(),sr=gr({type:"value.change"});var fr=new WeakMap,xr=new WeakMap,wr=new WeakMap,yr=new WeakMap,Zr=new WeakMap,kr=new WeakMap;class Er extends E.ReactNextElement{constructor(){super(...arguments),(0,g.Z)(this,Zr,{get:Nr,set:Mr}),(0,g.Z)(this,fr,{writable:!0,value:(hr(this),rr(this))}),(0,g.Z)(this,xr,{writable:!0,value:nr(this)}),(0,g.Z)(this,wr,{writable:!0,value:lr(this)}),(0,g.Z)(this,yr,{writable:!0,value:cr(this)}),(0,g.Z)(this,kr,{writable:!0,value:e=>{(0,x.Z)(this,Zr).emit(e)}})}get options(){return(0,x.Z)(this,fr)}set options(e){(0,f.Z)(this,fr,e)}get value(){return(0,x.Z)(this,xr)}set value(e){(0,f.Z)(this,xr,e)}get placeholder(){return(0,x.Z)(this,wr)}set placeholder(e){(0,f.Z)(this,wr,e)}render(){return Z().createElement(Sr,{curElement:this,options:this.options,value:this.value,placeholder:this.placeholder,onChange:(0,x.Z)(this,kr)})}}function Mr(e){dr(this,e)}function Nr(){return pr(this)}function Sr(e){var{curElement:t,options:a,placeholder:r,onChange:i}=e,[n,o]=Z().useState(!0),l=(0,y.useRef)(),[s,c]=Z().useState(""),[p,d]=Z().useState(!1),[h,u]=(0,y.useState)(e.value);(0,y.useEffect)((()=>{u(e.value)}),[e.value]),(0,y.useEffect)((()=>{var e=e=>{t.contains(e.target)||(o(!0),d((()=>(l.current.blur(),c(""),!1))))};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}));var m=(0,y.useMemo)((()=>a.filter((e=>{var t=(null==s?void 0:s.trim().toLowerCase())||"";return e.label.toLowerCase().includes(t)||e.value.toLowerCase().includes(t)}))),[s,a]);return Z().createElement("div",{className:"container"},Z().createElement("div",{className:dt()("select",{"select-focused":p})},Z().createElement("div",{className:"select-selector",onClick:()=>{o(!1),d((e=>(e||c(""),l.current.focus(),!0)))}},Z().createElement("div",{className:"select-selector-search"},Z().createElement("input",{className:"select-selector-search-input",type:"search",autoComplete:"off",ref:l,value:s,onChange:e=>{c(e.target.value)}})),h?Z().createElement("div",{className:"select-selector-item",style:{visibility:s?"hidden":"visible"}},h):Z().createElement("div",{className:"select-selection-placeholder",style:{visibility:s?"hidden":"visible"}},r),Z().createElement("div",{className:"select-arrow"},p?Z().createElement(mr,{className:"ant-select-suffix search-icon",lib:"antd",theme:"outlined",icon:"search"}):Z().createElement(mr,{className:"ant-select-suffix down-icon",lib:"antd",theme:"outlined",icon:"down"})),Z().createElement("div",{className:"select-clear",style:{visibility:h?"visible":"hidden"},onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),c(""),u(null),null==i||i(null)}},Z().createElement(mr,{className:"ant-select-suffix clear-icon",lib:"antd",theme:"filled",icon:"close-circle"})))),Z().createElement("div",{className:"select-dropdown",style:{display:n?"none":"block"}},m.length?Z().createElement("div",{className:"dropdown-list"},Z().createElement("div",{className:"dropdown-list-inner"},m.map((e=>Z().createElement("div",{className:dt()("select-item",{selected:h===e.value}),key:e.value,onClick:()=>{u(e.value),o(!0),d((()=>(l.current.blur(),c(""),!1))),null==i||i(e.value)}},Z().createElement("div",{className:"select-item-option-content"},e.label)))))):Z().createElement("div",{className:"empty-state"},Z().createElement("img",{src:$a,className:"empty-image"}),Z().createElement("div",{className:"empty-description"},"暂无数据"))))}({e:[rr,nr,lr,cr,pr,dr,hr],c:[ur,er]}=(0,w.Z)(Er,[[ar,1,"options"],[ir,1,"value"],[or,1,"placeholder"],[sr,1,"valueChange",function(){return(0,x.Z)(this,yr)},function(e){(0,f.Z)(this,yr,e)}]],[tr])),er();var Wr,Cr,Tr,zr,Br,Rr,Ir,Fr,Dr,Lr,Ar,Pr,Vr,Ur,qr,Hr,_r,Or,jr,Kr,Yr,Gr,Xr,Qr,Jr,$r,ei,ti,ai,ri,ii,ni=a(7896),oi=a(6666),li=a(1365),si=a(7594),ci=function(e){return e.EMPTY_DATA="EMPTY_DATA",e}({}),pi="bricks/data-view/complex-search",{defineElement:di,property:hi,event:ui}=(0,k.createDecorators)();(0,si.initializeReactI18n)(pi,{en:{EMPTY_DATA:"Empty data"},zh:{EMPTY_DATA:"空数据"}});var mi,vi=(0,E.wrapBrick)("icons.general-icon");Cr=di("data-view.complex-search",{styleTexts:[M.Z,li.Z]}),Tr=hi(),Br=hi(),Ir=hi({attribute:!1}),Dr=hi({attribute:!1}),Ar=ui({type:"change"}),qr=ui({type:"search"}),jr=ui({type:"select"}),Xr=ui({type:"focus"}),ei=ui({type:"blur"});var bi=new WeakMap,gi=new WeakMap,fi=new WeakMap,xi=new WeakMap,wi=new WeakMap,yi=new WeakMap,Zi=new WeakMap,ki=new WeakMap,Ei=new WeakMap,Mi=new WeakMap,Ni=new WeakMap,Si=new WeakMap,Wi=new WeakMap,Ci=new WeakMap;class Ti extends E.ReactNextElement{constructor(){super(...arguments),(0,g.Z)(this,Ci,{get:Vi,set:Pi}),(0,g.Z)(this,Si,{get:Ai,set:Li}),(0,g.Z)(this,Mi,{get:Di,set:Fi}),(0,g.Z)(this,ki,{get:Ii,set:Ri}),(0,g.Z)(this,yi,{get:Bi,set:zi}),(0,g.Z)(this,bi,{writable:!0,value:(ii(this),zr(this))}),(0,g.Z)(this,gi,{writable:!0,value:Rr(this)}),(0,g.Z)(this,fi,{writable:!0,value:Fr(this)}),(0,g.Z)(this,xi,{writable:!0,value:Lr(this)}),(0,g.Z)(this,wi,{writable:!0,value:Pr(this)}),(0,g.Z)(this,Zi,{writable:!0,value:Hr(this)}),(0,g.Z)(this,Ei,{writable:!0,value:Kr(this)}),(0,g.Z)(this,Ni,{writable:!0,value:Qr(this)}),(0,g.Z)(this,Wi,{writable:!0,value:ti(this)}),(0,oi.Z)(this,"handleInputChange",(e=>{this.value=e,(0,x.Z)(this,yi).emit(e)})),(0,oi.Z)(this,"handleSearch",(e=>{(0,x.Z)(this,ki).emit(e)})),(0,oi.Z)(this,"handleFocus",(()=>{(0,x.Z)(this,Si).emit()})),(0,oi.Z)(this,"handleBlur",(()=>{(0,x.Z)(this,Ci).emit()})),(0,oi.Z)(this,"handleSelect",(e=>{this.value=e.name,(0,x.Z)(this,Mi).emit(e)}))}get value(){return(0,x.Z)(this,bi)}set value(e){(0,f.Z)(this,bi,e)}get placeholder(){return(0,x.Z)(this,gi)}set placeholder(e){(0,f.Z)(this,gi,e)}get options(){return(0,x.Z)(this,fi)}set options(e){(0,f.Z)(this,fi,e)}get tooltipUseBrick(){return(0,x.Z)(this,xi)}set tooltipUseBrick(e){(0,f.Z)(this,xi,e)}render(){return Z().createElement(Ui,{value:this.value,onInputChange:this.handleInputChange,onSearch:this.handleSearch,onBlur:this.handleBlur,onFocus:this.handleFocus,tooltipUseBrick:this.tooltipUseBrick,placeholder:this.placeholder,onSelect:this.handleSelect,options:this.options})}}function zi(e){Ur(this,e)}function Bi(){return Vr(this)}function Ri(e){Or(this,e)}function Ii(){return _r(this)}function Fi(e){Gr(this,e)}function Di(){return Yr(this)}function Li(e){$r(this,e)}function Ai(){return Jr(this)}function Pi(e){ri(this,e)}function Vi(){return ai(this)}function Ui(e){var{value:t,onInputChange:a,onSearch:r,onBlur:i,onFocus:n,tooltipUseBrick:o,placeholder:l,onSelect:s,options:c=[]}=e,{t:p}=(0,si.useTranslation)(pi),[d,h]=(0,y.useState)(!1),u=(0,y.useRef)(null),[m,v]=(0,y.useState)(!1),[b,g]=(0,y.useState)(),[f,x]=(0,y.useState)(0),[w,k]=(0,y.useState)(!1);(0,y.useEffect)((()=>{h(!!t)}),[t]);var E=e=>{e.composedPath().some((e=>e===u.current))||v(!1)},M=(0,y.useMemo)((()=>null!=o&&o.useBrick?Z().createElement("div",{className:"dropdownMenuItemTooltip",style:{top:f,visibility:w?"visible":"hidden"},onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1)},Z().createElement("div",{className:"mask"}),Z().createElement("div",{className:"useBrickWrapper"},Z().createElement(ra.ReactUseMultipleBricks,{useBrick:o.useBrick,data:b||{}}))):void 0),[b,o,f,w]);return(0,y.useEffect)((()=>(document.addEventListener("click",E),()=>document.removeEventListener("click",E))),[]),Z().createElement("div",{className:"wrapper",ref:u},Z().createElement("div",{className:"inputWrapper"},Z().createElement("input",{placeholder:l,value:null!=t?t:"",onChange:e=>(e=>{a(e),v(!0)})(e.target.value),onFocus:()=>{v(!0),n()},onBlur:i,onKeyDown:e=>{"Enter"===e.key&&(v(!1),r(e.target.value))}}),Z().createElement(vi,{className:"searchIcon icon",lib:"antd",icon:"search",theme:"outlined"}),d&&Z().createElement(vi,{className:"clearIcon icon",onClick:()=>{a(""),v(!1)},lib:"antd",icon:"close-circle",theme:"filled"})),Z().createElement("div",{className:"dropdownWrapper",style:{visibility:m?"visible":"hidden"}},c.length?Z().createElement("div",{className:"dropdownMenu"},c.map(((e,t)=>Z().createElement("div",{className:"dropdownMenuItem",key:t,onMouseEnter:t=>((e,t)=>{g(t),k(!0);var a=e.target.getBoundingClientRect().top-u.current.getBoundingClientRect().top;x(a)})(t,e),onMouseLeave:()=>k(!1),onClick:()=>(s(e),void v(!1))},Z().createElement(vi,(0,ni.Z)({},e.icon,{className:"menuIcon"})),Z().createElement("span",{className:"menuTitle"},e.name))))):Z().createElement("div",{className:"emptyData"},Z().createElement("img",{src:$a,alt:p(ci.EMPTY_DATA)}),Z().createElement("span",null,p(ci.EMPTY_DATA)))),M)}({e:[zr,Rr,Fr,Lr,Pr,Vr,Ur,Hr,_r,Or,Kr,Yr,Gr,Qr,Jr,$r,ti,ai,ri,ii],c:[mi,Wr]}=(0,w.Z)(Ti,[[Tr,1,"value"],[Br,1,"placeholder"],[Ir,1,"options"],[Dr,1,"tooltipUseBrick"],[Ar,1,"inputChangeEvent",function(){return(0,x.Z)(this,wi)},function(e){(0,f.Z)(this,wi,e)}],[qr,1,"onSearchEvent",function(){return(0,x.Z)(this,Zi)},function(e){(0,f.Z)(this,Zi,e)}],[jr,1,"onSelectEvent",function(){return(0,x.Z)(this,Ei)},function(e){(0,f.Z)(this,Ei,e)}],[Xr,1,"onFocusEvent",function(){return(0,x.Z)(this,Ni)},function(e){(0,f.Z)(this,Ni,e)}],[ei,1,"onBlurEvent",function(){return(0,x.Z)(this,Wi)},function(e){(0,f.Z)(this,Wi,e)}]],[Cr])),Wr();var qi,Hi,_i,Oi,ji,Ki,Yi,Gi,Xi,Qi,Ji,$i,en,tn,an,rn,nn,on,ln=a(4818),{defineElement:sn,property:cn,event:pn}=(0,k.createDecorators)();Hi=sn("data-view.loading-panel",{styleTexts:[M.Z,ln.Z]}),_i=cn(),ji=cn({type:Boolean}),Yi=cn({type:Boolean}),Xi=cn({type:Number}),Ji=cn({type:Number}),en=pn({type:"end"});var dn=new WeakMap,hn=new WeakMap,un=new WeakMap,mn=new WeakMap,vn=new WeakMap,bn=new WeakMap,gn=new WeakMap;class fn extends E.ReactNextElement{constructor(){super(...arguments),(0,g.Z)(this,gn,{get:wn,set:xn}),(0,g.Z)(this,dn,{writable:!0,value:(nn(this),Oi(this))}),(0,g.Z)(this,hn,{writable:!0,value:Ki(this)}),(0,g.Z)(this,un,{writable:!0,value:Gi(this,!1)}),(0,g.Z)(this,mn,{writable:!0,value:Qi(this)}),(0,g.Z)(this,vn,{writable:!0,value:$i(this)}),(0,g.Z)(this,bn,{writable:!0,value:tn(this)}),(0,oi.Z)(this,"onEnd",(()=>{(0,x.Z)(this,gn).emit()}))}get customTitle(){return(0,x.Z)(this,dn)}set customTitle(e){(0,f.Z)(this,dn,e)}get loading(){return(0,x.Z)(this,hn)}set loading(e){(0,f.Z)(this,hn,e)}get useRealTimeProgress(){return(0,x.Z)(this,un)}set useRealTimeProgress(e){(0,f.Z)(this,un,e)}get progress(){return(0,x.Z)(this,mn)}set progress(e){(0,f.Z)(this,mn,e)}get intervalTime(){return(0,x.Z)(this,vn)}set intervalTime(e){(0,f.Z)(this,vn,e)}render(){return Z().createElement(yn,{loading:this.loading,customTitle:this.customTitle,progress:this.progress,useRealTimeProgress:this.useRealTimeProgress,intervalTime:this.intervalTime,onEnd:this.onEnd})}}function xn(e){rn(this,e)}function wn(){return an(this)}function yn(e){var{customTitle:t,loading:a,progress:r,useRealTimeProgress:i,intervalTime:n=100,onEnd:o}=e,[l,s]=(0,y.useState)(0),c=(0,y.useRef)(null),p=(0,ua.D)(r),d=(e,t,a)=>e>=t?1:Math.ceil((a-e)/10);return(0,y.useEffect)((()=>{var e=1;return i||a||(e=d(l,80,100)),i&&(e=d(l,p,r)),(e=>{var t,{curVal:n,step:o,time:l}=e,p=n;t=i?r:a?80:100,c.current=window.setInterval((()=>{p>=t&&(window.clearInterval(c.current),p=t),s(p),p+=o}),l)})({step:e,curVal:null!=l?l:0,time:n}),()=>{window.clearInterval(c.current)}}),[a,r,i,n]),(0,y.useEffect)((()=>{100===l&&(null==o||o())}),[l]),Z().createElement("div",{className:"wrapper"},Z().createElement("div",{className:"titleWrapper"},Z().createElement("div",{className:"title"},null!=t?t:"Tarsier"),Z().createElement("div",{className:"description"},"Loading...")),Z().createElement("div",{className:"progress"},"".concat(l,"%")))}({e:[Oi,Ki,Gi,Qi,$i,tn,an,rn,nn],c:[on,qi]}=(0,w.Z)(fn,[[_i,1,"customTitle"],[ji,1,"loading"],[Yi,1,"useRealTimeProgress"],[Xi,1,"progress"],[Ji,1,"intervalTime"],[en,1,"onEndEvent",function(){return(0,x.Z)(this,bn)},function(e){(0,f.Z)(this,bn,e)}]],[Hi])),qi();var Zn,kn,En,Mn,Nn,Sn,Wn,Cn,Tn=a(6578),{defineElement:zn,property:Bn}=(0,k.createDecorators)();kn=zn("data-view.particle-animation",{styleTexts:[M.Z,Tn.Z]}),En=Bn({attribute:!1}),Nn=Bn({attribute:!1});var Rn=new WeakMap,In=new WeakMap;class Fn extends E.ReactNextElement{constructor(){super(...arguments),(0,g.Z)(this,Rn,{writable:!0,value:(Wn(this),Mn(this))}),(0,g.Z)(this,In,{writable:!0,value:Sn(this)})}get colors(){return(0,x.Z)(this,Rn)}set colors(e){(0,f.Z)(this,Rn,e)}get containerStyle(){return(0,x.Z)(this,In)}set containerStyle(e){(0,f.Z)(this,In,e)}render(){return Z().createElement(Dn,{colors:this.colors,containerStyle:this.containerStyle})}}function Dn(e){var{colors:t,containerStyle:a}=e,r=new Array(8).fill(2);return Z().createElement("div",{className:"animation-wrapper",style:a},[{h:29,w:1,left:"10%",bottom:"5%"},{h:23,w:2,left:"45%",bottom:"0"},{h:29,w:2,left:"90%",bottom:"20%"},{h:23,w:1,left:"40%",bottom:"20%"},{h:42,w:3,left:"50%",bottom:"30%"}].map(((e,a)=>{var r={width:"".concat(e.w,"px"),height:"".concat(e.h,"px"),background:"linear-gradient(0deg, ".concat(t.startColor," 0%, ").concat(t.middleColor," 72%, ").concat(t.endColor," 100%)")};return Z().createElement("div",{className:"particle-wrapper",key:a,style:{width:"".concat(e.w,"px"),height:"".concat(2*e.h,"px"),bottom:e.bottom,left:e.left}},Z().createElement("div",{className:"particle",style:r}),Z().createElement("div",{className:"delay",style:r}))})),Z().createElement("div",{className:"circle-container",style:{color:t.middleColor}},r.map(((e,t)=>Z().createElement("div",{className:"circle",key:t})))),Z().createElement("slot",null))}({e:[Mn,Sn,Wn],c:[Cn,Zn]}=(0,w.Z)(Fn,[[En,1,"colors"],[Nn,1,"containerStyle"]],[kn])),Zn();var Ln,An,Pn,Vn,Un,qn,Hn,_n,On,jn,Kn=a(9214),{defineElement:Yn,property:Gn}=(0,k.createDecorators)();An=Yn("data-view.app-wall-card-item",{styleTexts:[M.Z,Kn.Z]}),Pn=Gn(),Un=Gn(),Hn=Gn();var Xn=new WeakMap,Qn=new WeakMap,Jn=new WeakMap;class $n extends E.ReactNextElement{constructor(){super(...arguments),(0,g.Z)(this,Xn,{writable:!0,value:(On(this),Vn(this,"normal"))}),(0,g.Z)(this,Qn,{writable:!0,value:qn(this)}),(0,g.Z)(this,Jn,{writable:!0,value:_n(this)})}get status(){return(0,x.Z)(this,Xn)}set status(e){(0,f.Z)(this,Xn,e)}get cardTitle(){return(0,x.Z)(this,Qn)}set cardTitle(e){(0,f.Z)(this,Qn,e)}get description(){return(0,x.Z)(this,Jn)}set description(e){(0,f.Z)(this,Jn,e)}render(){return Z().createElement(eo,{status:this.status,cardTitle:this.cardTitle,description:this.description})}}function eo(e){var{status:t,cardTitle:a,description:r}=e;return Z().createElement("div",{className:dt()("card-item-container",t&&"status-".concat(t))},Z().createElement("div",{className:"card-item"},Z().createElement("div",{className:"card-item-text-container"},Z().createElement("div",{className:"card-item-title"},a),Z().createElement("div",{className:"card-item-description"},r))))}({e:[Vn,qn,_n,On],c:[jn,Ln]}=(0,w.Z)($n,[[Pn,1,"status"],[Un,1,"cardTitle"],[Hn,1,"description"]],[An])),Ln();var to,ao,ro,io,no,oo,lo,so,co,po,ho,uo,mo,vo,bo,go,fo,xo,wo=a(9948),{defineElement:yo,property:Zo,event:ko}=(0,k.createDecorators)(),Eo=(0,E.wrapBrick)("icons.general-icon");ao=yo("data-view.app-wall-system-card",{styleTexts:[M.Z,wo.Z]}),ro=Zo({attribute:!1}),no=Zo(),lo=Zo({attribute:!1}),co=Zo(),ho=Zo({attribute:!1}),mo=ko({type:"click"});var Mo=new WeakMap,No=new WeakMap,So=new WeakMap,Wo=new WeakMap,Co=new WeakMap,To=new WeakMap,zo=new WeakMap;class Bo extends E.ReactNextElement{constructor(){super(...arguments),(0,g.Z)(this,zo,{get:Io,set:Ro}),(0,g.Z)(this,Mo,{writable:!0,value:(fo(this),io(this,"normal"))}),(0,g.Z)(this,No,{writable:!0,value:oo(this)}),(0,g.Z)(this,So,{writable:!0,value:so(this)}),(0,g.Z)(this,Wo,{writable:!0,value:po(this)}),(0,g.Z)(this,Co,{writable:!0,value:uo(this)}),(0,g.Z)(this,To,{writable:!0,value:vo(this)}),(0,oi.Z)(this,"handleClick",(()=>{(0,x.Z)(this,zo).emit()}))}get status(){return(0,x.Z)(this,Mo)}set status(e){(0,f.Z)(this,Mo,e)}get cardTitle(){return(0,x.Z)(this,No)}set cardTitle(e){(0,f.Z)(this,No,e)}get itemList(){return(0,x.Z)(this,So)}set itemList(e){(0,f.Z)(this,So,e)}get buttonName(){return(0,x.Z)(this,Wo)}set buttonName(e){(0,f.Z)(this,Wo,e)}get containerStyle(){return(0,x.Z)(this,Co)}set containerStyle(e){(0,f.Z)(this,Co,e)}render(){return Z().createElement(Fo,{buttonName:this.buttonName,status:this.status,cardTitle:this.cardTitle,itemList:this.itemList,handleClick:this.handleClick,containerStyle:this.containerStyle})}}function Ro(e){go(this,e)}function Io(){return bo(this)}function Fo(e){var{status:t,itemList:a,cardTitle:r,buttonName:i,handleClick:n,containerStyle:o}=e;return Z().createElement("div",{className:dt()("wrapper",{infoWrapper:"normal"===t,warningWrapper:"warning"===t}),style:o},Z().createElement("div",{className:"cardName"},r),Z().createElement("div",{className:"descriptions"},null==a?void 0:a.map(((e,t)=>Z().createElement("div",{key:t,className:"descriptionsItem"},Z().createElement("div",{className:"itemKey"},e.key),Z().createElement("div",{className:"itemValue"},e.value))))),i&&Z().createElement("div",{className:"buttonContent",onClick:n},Z().createElement(Eo,{lib:"antd",icon:"fall",theme:"outlined"}),Z().createElement("span",{className:"buttonName"},i)))}({e:[io,oo,so,po,uo,vo,bo,go,fo],c:[xo,to]}=(0,w.Z)(Bo,[[ro,1,"status"],[no,1,"cardTitle"],[lo,1,"itemList"],[co,1,"buttonName"],[ho,1,"containerStyle"],[mo,1,"onClickEvent",function(){return(0,x.Z)(this,To)},function(e){(0,f.Z)(this,To,e)}]],[ao])),to()},2779:(e,t)=>{var a;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var a=arguments[t];if(a){var n=typeof a;if("string"===n||"number"===n)e.push(a);else if(Array.isArray(a)){if(a.length){var o=i.apply(null,a);o&&e.push(o)}}else if("object"===n){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){e.push(a.toString());continue}for(var l in a)r.call(a,l)&&a[l]&&e.push(l)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(a=function(){return i}.apply(t,[]))||(e.exports=a)}()},9214:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var r=a(9601),i=a.n(r),n=a(2609),o=a.n(n)()(i());o.push([e.id,':host{display:inline-block;width:100%;height:100%}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.card-item-container{position:relative;width:100%;height:100%;opacity:1;transition:opacity 0.5s ease,width 0.3s,height 0.3s}.card-item-container::before{content:"";position:absolute;left:calc((188% - 100%) / -2);top:calc((214% - 100%) / -2);width:188%;height:214%;opacity:0;transition:opacity 0.5s ease;pointer-events:none}.card-item-container:hover::before{opacity:1}.card-item{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center;border-radius:var(--no-border-radius);border-color:transparent;transition:border-color 0.5s;border22:1px solid;border-image22:radial-gradient(circle,rgba(50,130,253,0.5),rgba(50,130,253,0)) 1 1}.card-item-container.status-normal .card-item{background:var(--color-fill-bg-base-4);box-shadow:inset 0px 1px 2px 0px rgba(255,255,255,0.45)}.card-item-container.status-normal::before{background:radial-gradient(ellipse 50% 50%,rgba(80,255,255,1) 0%,rgba(80,255,255,0) 100%);filter:blur(19px)}.card-item-container.status-normal:hover .card-item{border:2px solid rgba(80,255,255,0.58)}.card-item-container.status-warning .card-item{background:linear-gradient(180deg,#CC0066 0%,rgba(204,0,102,0.2) 100%);box-shadow:inset 0px 2px 6px 0px rgba(255,255,255,0.65)}.card-item-container.status-warning::before{background:radial-gradient(ellipse 50% 50%,rgba(204,0,102,1) 0%,rgba(204,0,102,0) 100%);filter:blur(19px)}.card-item-container.status-warning:hover .card-item{border:none}.card-item-text-container{width:100%;padding:0 12px}.card-item-title,\n.card-item-description{font-size:8px;font-weight:var(--font-weight-500);color:var(--color-normal-text)}.card-item-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-item-description{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}',""]);const l=o.toString()},9948:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var r=a(9601),i=a.n(r),n=a(2609),o=a.n(n)()(i());o.push([e.id,".wrapper{width:260px;height:354px;padding:30px 24px 35px;margin-right:20px;position:relative}.infoWrapper{background:#292F39;box-shadow:0 0 12px 2px rgba(80,255,255,0.45),inset 0 0 22px 0 #20242A;border:2px solid #50FFFF}.warningWrapper{background:linear-gradient(180deg,#CC0066 0%,rgba(204,0,102,0.2) 100%);box-shadow:0 0 12px 2px rgba(204,0,102,0.4),inset 0 4px 10px 0 rgba(255,255,255,0.65)}.cardName{font-size:22px;line-height:22px;text-align:center;font-weight:500;color:var(--color-normal-text);text-shadow:0 1px 4px rgba(51,102,255,0.5);margin-bottom:35px}.descriptions{max-height:calc(100% - 70px);color:var(--color-normal-text);font-size:var(--auxiliary-font-size-small);overflow:auto}.descriptionsItem{display:flex;gap:10px;margin-bottom:12px}.descriptionsItem >div{flex:1;text-align:left;word-break:break-all}.buttonContent{position:absolute;bottom:16px;right:24px;font-size:16px;color:#99CCFF;cursor:pointer}.buttonName{margin-left:5px}",""]);const l=o.toString()},5498:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var r=a(9601),i=a.n(r),n=a(2609),o=a.n(n)()(i());o.push([e.id,'.container{position:relative;margin:auto;text-align:center;border-radius:var(--medius-border-radius)}.header{display:inline-block;width:12px;height:2px;background:#296DFF;box-shadow:0 1px 2px 0 rgba(41,109,255,0.6);border-radius:4px}.content{position:relative;background:var(--color-fill-bg-base-4);border-radius:var(--medius-border-radius);margin:auto}.word{position:absolute;left:calc(110% + 10px);top:calc(50% - 12px);width:auto;white-space:nowrap}.threshold{position:absolute;bottom:50%;left:-10%;width:120%;border-top:2px dotted rgba(255,255,255,0.4);z-index:2}.valueWrapper{position:absolute;width:100%;bottom:0;left:0;border-radius:0 0 4px 4px;z-index:1}.value{content:"";position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,#246EFF 0%,#26CE90 100%);border-radius:0 0 4px 4px;animation:run 1s linear forwards}@keyframes run{0%{height:0;border-radius:0 0 5px 5px}100%{height:100%}}',""]);const l=o.toString()},1365:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var r=a(9601),i=a.n(r),n=a(2609),o=a.n(n)()(i());o.push([e.id,".wrapper{width:100%;position:relative}.inputWrapper{width:100%;height:32px;position:relative}input{height:100%;line-height:32px;border:none;width:100%;box-sizing:border-box;padding:0 32px;background:var(--color-fill-bg-base-1);border-radius:var(--medius-border-radius);font-size:var(--auxiliary-font-size-small);font-weight:var(--font-weight-400);color:var(--color-normal-text)}input::placeholder{color:var(--color-disabled-text);font-size:var(--auxiliary-font-size-small);font-weight:var(--font-weight-400)}input:not(:disabled):focus{border:none;outline:0}.icon{position:absolute;color:var(--color-normal-text);opacity:0.6}.searchIcon{left:10px;top:6px;font-size:16px}.clearIcon{right:10px;top:7px;font-size:14px}.dropdownWrapper{width:100%;height:336px;margin:5px 0;padding:8px 0;box-sizing:border-box;position:absolute;z-index:900;overflow:auto;background:var(--color-fill-bg-base-1);border-radius:var(--medius-border-radius)}.emptyData{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;color:var(--color-disabled-text);gap:20px}.emptyData img{width:62px}.dropdownMenu{overflow-y:auto}.dropdownMenuItem{padding:6px 18px;color:var(--color-normal-text);font-size:var(--auxiliary-font-size-small);font-weight:var(--font-weight-400);display:flex;align-items:center;gap:6px;height:32px;line-height:20px;box-sizing:border-box;cursor:pointer}.menuTitle{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.menuIcon{font-size:20px}.dropdownMenuItem:hover{border-radius:var(--no-border-radius);background:var(--color-fill-bg-container-1)}.dropdownMenuItemTooltip{position:absolute;width:324px;min-height:100px;max-height:465px;overflow:auto;left:-325px;top:0;background:var(--color-fill-bg-base-4);border-radius:var(--medius-border-radius)}.mask , .useBrickWrapper{position:absolute;top:0;width:100%;height:100%;left:0}.mask{background:#282E3A linear-gradient(186deg,rgba(51,102,255,0.3) 0%,rgba(51,102,255,0) 100%);border-radius:4px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);pointer-events:none}",""]);const l=o.toString()},567:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var r=a(9601),i=a.n(r),n=a(2609),o=a.n(n)()(i());o.push([e.id,":host{display:inline-block}:host([hidden]){display:none}*,\n*::before,\n*::after{box-sizing:border-box}.container{position:relative}.select{position:relative}.select:hover .select-selector{background:var(--color-brand)}.select-focused .select-selector{background:var(--color-brand-active)!important}.select:hover .select-clear{opacity:1}.select-focused .select-selector-item,\n.select-focused .select-selection-placeholder{color:var(--color-disabled-text)}.select:hover .select-selector-item~.select-arrow{opacity:0}.select-selector{display:flex;position:relative;width:100%;height:46px;padding:0 12px;border:var(--border-width-base) solid;border-image:linear-gradient(90deg,var(--palette-rgba-white-5),transparent,var(--palette-rgba-white-5)) 1;border-radius:var(--no-border-radius);background:var(--color-fill-bg-base-3);box-shadow:inset 0px 0px 11px 0px #3366ff;transition:all .2s cubic-bezier(.645,.045,.355,1);cursor:text}.select-selector-search{position:absolute;top:0;bottom:0;inset-inline-start:11px;inset-inline-end:29px}.select-selector-search-input{width:100%;height:calc(46px - var(--border-width-base) * 2);color:var(--color-normal-text);margin:0;padding:0;background:none;border:none;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:auto}.select-selector-search-input::-webkit-search-cancel-button{display:none;-webkit-appearance:none;appearance:none}.select-selection-placeholder,\n.select-selector-item{flex:1;padding:0;-webkit-padding-end:18px;padding-inline-end:18px;line-height:calc(46px - var(--border-width-base) * 2);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--auxiliary-font-size);font-weight:var(--font-weight-500)}.select-selection-placeholder{color:var(--color-normal-text);transition:color .3s;pointer-events:none}.select-selector-item{color:var(--color-normal-text);position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color .3s;font-weight:400}.select-arrow,\n.select-clear{margin-top:-6px;position:absolute;top:50%;inset-inline-start:auto;inset-inline-end:11px;text-align:center;font-size:12px;line-height:1;width:12px;height:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-arrow{pointer-events:none;transition:opacity .3s ease}.select-clear{opacity:0;z-index:1;transition:color .2s ease,opacity .3s ease;cursor:pointer}.ant-select-suffix{display:inline-block;width:100%;height:100%;line-height:1}.search-icon{color:var(--color-disabled-text)}.down-icon,\n.clear-icon{color:var(--color-auxiliary-text)}.select-dropdown{position:absolute;bottom:50px;width:100%;border-radius:var(--no-border-radius);background:rgba(var(--palette-tech-blue-6-channel),.4);box-shadow:inset 0px 0px 11px 0px #1861D6;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dropdown-list{max-height:160px;padding:8px 0;overflow-y:scroll;overflow-anchor:none}.dropdown-inner{display:flex;flex-direction:column;height:36px}.select-item{display:flex;align-items:center;padding:7px;border-radius:var(--no-border-radius);cursor:pointer;transition:background 0.3s ease}.select-item:hover,\n.select-item.selected{background:var(--color-fill-bg-container-1)}.select-item-option-content{font-size:var(--auxiliary-font-size);font-weight:var(--font-weight-400);color:var(--color-normal-text);line-height:22px}.empty-state{padding:47px 0;display:flex;flex-direction:column;align-items:center}.empty-image{width:auto;height:39px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.empty-description{margin-top:10px;color:var(--palette-rgba-white-6)}",""]);const l=o.toString()},7788:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var r=a(9601),i=a.n(r),n=a(2609),o=a.n(n)()(i());o.push([e.id,".gaugeChartWrapper{text-align:center;background:var(--color-fill-global-bg)}",""]);const l=o.toString()},4818:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var r=a(9601),i=a.n(r),n=a(2609),o=a.n(n)()(i());o.push([e.id,'.wrapper{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1001;background:var(--color-fill-global-bg);display:flex;justify-content:center;align-items:center}.wrapper:before{content:"";position:absolute;width:100%;height:100%;display:block;opacity:0.35;background:radial-gradient(#3366FF 0%,rgba(51,102,255,0) 100%)}.titleWrapper{transform:translate(-50px,0)}.title{color:var(--color-normal-text);font-size:46px}.description{color:var(--color-secondary-text);font-size:16px;letter-spacing:3px}.progress{font-size:100px;color:rgba(51,102,255,0.5);position:absolute;z-index:-1;left:calc(50% - 80px)}',""]);const l=o.toString()},8491:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var r=a(9601),i=a.n(r),n=a(2609),o=a.n(n)()(i());o.push([e.id,".wrapper{position:relative;height:34px}.left-slash-component{position:absolute;top:0;left:0;transform:rotate(-40deg)}.right-slash-component{position:absolute;top:0;right:0;transform:rotate(40deg)}.bottom-line{position:absolute;top:32px;height:2px;border-radius:1px}.title-wrapper{display:flex;align-items:center}.title-text-container{display:flex}.title-text{font-size:var(--title-font-size);font-weight:var(--font-weight-500);line-height:25px;color:var(--color-normal-text);text-shadow:var(--text-shadow)}.slash-component-wrapper{position:relative;transform-origin:10px 10px}.circle{width:20px;height:20px;border-radius:50%;border:var(--border-width-base) solid var(--color-border-divider-line)}.blue-slash{position:absolute;top:10px;left:8px;width:4px;height:26px;background-color:var(--color-brand)}.gray-slash{position:absolute;top:10px;left:9px;width:2px;height:29px;border-radius:1px;background-color:var(--color-text-divider-line-1)}",""]);const l=o.toString()},6042:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var r=a(9601),i=a.n(r),n=a(2609),o=a.n(n)()(i());o.push([e.id,".wrapper{height:82px;position:relative;display:flex;justify-content:center}.svg{position:absolute}.background-container{width:100%;height:100%;position:absolute;background:var(--color-fill-bg-base-5);-webkit-clip-path:polygon(0 0,0 58px,36.25% 58px,38.75% 80px,61.25% 80px,63.75% 58px,100% 58px,100% 0);clip-path:polygon(0 0,0 58px,36.25% 58px,38.75% 80px,61.25% 80px,63.75% 58px,100% 58px,100% 0)}.left-round{position:absolute;width:144px;height:144px;border-radius:50%;left:37.5%;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(var(--palette-tech-blue-6-channel),100%),rgba(var(--palette-tech-blue-6-channel),0%));opacity:0.4}.right-round{position:absolute;width:144px;height:144px;border-radius:50%;left:62.5%;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(var(--palette-sea-green-4-channel),100%),rgba(var(--palette-sea-green-4-channel),0%));opacity:0.3}.text-container{z-index:0;display:flex;flex-direction:column;align-items:center}.title-text{margin-top:20px;font-size:var(--title-font-size-larger);font-weight:var(--font-weight-600);color:var(--color-header-text-big);letter-spacing:2px;line-height:1em;text-shadow:0px 2px 2px rgba(114,81,230,0.7)}.description{margin-top:6px;font-size:var(--auxiliary-font-size-small);font-weight:var(--font-weight-500);color:var(--color-secondary-text);line-height:14px}",""]);const l=o.toString()},6578:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var r=a(9601),i=a.n(r),n=a(2609),o=a.n(n)()(i());o.push([e.id,".animation-wrapper{width:125px;height:125px;position:relative;overflow-y:hidden}.particle-wrapper{position:absolute;overflow-y:hidden}.particle{position:absolute;filter:blur(0.5px);border-radius:4px 4px 10px 10px;animation:animParticle 1.2s linear infinite;opacity:1}.delay{position:absolute;filter:blur(0.5px);border-radius:2px 2px 10px 10px;animation:animParticle 1.2s linear 0.5s infinite;opacity:1}.circle-container{width:100%;height:100%;position:absolute}.circle{background:currentColor;filter:blur(1px);border-radius:50%;position:absolute;mix-blend-mode:screen}.circle-container > .circle:nth-child(1){width:2px;height:2px;left:25%;bottom:10%;animation:circle-move-1 1.2s linear infinite}.circle-container > .circle:nth-child(2){width:3px;height:3px;left:30%;bottom:20%;animation:circle-move-2 2s linear infinite}.circle-container > .circle:nth-child(3){width:4px;height:4px;left:20%;bottom:30%;animation:circle-move-3 1.4s linear infinite}.circle-container > .circle:nth-child(4){width:2px;height:2px;left:40%;bottom:25%;animation:circle-move-4 1.5s linear infinite}.circle-container > .circle:nth-child(5){width:3px;height:3px;left:55%;bottom:30%;animation:circle-move-5 1.2s linear infinite}.circle-container > .circle:nth-child(6){width:2px;height:2px;left:60%;bottom:18%;animation:circle-move-6 1.8s linear infinite}.circle-container > .circle:nth-child(7){width:3px;height:3px;left:68%;bottom:10%;animation:circle-move-7 2s linear infinite}.circle-container > .circle:nth-child(8){width:4px;height:4px;left:76%;bottom:15%;animation:circle-move-8 1.8s linear infinite}@keyframes animParticle{0%{bottom:0;opacity:1}25%{bottom:50%;opacity:0.7}50%{bottom:75%;opacity:0.5}75%{bottom:100%;opacity:0.3}100%{bottom:125%;opacity:0.1}}@keyframes circle-move-1{from{bottom:10%}to{bottom:120%}}@keyframes circle-move-2{from{bottom:20%}to{bottom:120%}}@keyframes circle-move-3{from{bottom:30%}to{bottom:120%}}@keyframes circle-move-4{from{bottom:25%}to{bottom:145%}}@keyframes circle-move-5{from{bottom:30%}to{bottom:150%}}@keyframes circle-move-6{from{bottom:60%}to{bottom:180%}}@keyframes circle-move-7{from{bottom:10%}to{bottom:110%}}@keyframes circle-move-8{from{bottom:18%}to{bottom:120%}}",""]);const l=o.toString()},9503:(e,t,a)=>{"use strict";a.d(t,{Z:()=>l});var r=a(9601),i=a.n(r),n=a(2609),o=a.n(n)()(i());o.push([e.id,'.drawerWrapper{position:fixed;right:0;top:0;height:100vh;z-index:1000}.drawerWrapper.open,\n.drawerWrapper.close{transition:transform 0.3s cubic-bezier(0.7,0.3,0.1,1),box-shadow 0.3s cubic-bezier(0.7,0.3,0.1,1)}.drawerBody{display:flex;min-width:200px;height:100%;background:var(--color-fill-global-bg)}.drawerWrapper.open{transform:translate(0,0)}.drawerWrapper.close{transform:translateX(100%)}.drawerBodyHidden{display:none}.menuWrapper{position:relative;width:46px;height:100%;background:var(--color-fill-bg-base-1)}.menuMask{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(41,109,255,0.8);opacity:0.1;filter:blur(50px);pointer-events:none}.closeIconBtn{position:absolute;top:50%;left:-17px;width:17px;height:40px;background:linear-gradient(180deg,#232431 0%,#15191F 53%,#232431 100%);display:flex;justify-content:center;align-items:center;border-radius:4px 0 0 4px}.closeIconBtn:hover{background:#3B3C4F}.closeIcon{width:3px;height:11px;border-left:2px solid var(--color-normal-text);border-right:2px solid var(--color-normal-text)}.menuIconItem{width:100%;height:46px;text-align:center;line-height:46px;color:var(--color-normal-text);background:rgba(25,26,34,0);opacity:0.4;position:relative}.menuIconItem:hover{opacity:0.8}.menuIconItem.active{background:var(--color-fill-global-bg);opacity:1}.menuIconItemHover:hover > .menuIconTooltip{display:block}.menuIconTooltip{display:none;position:absolute;right:55px;top:7px;line-height:20px;padding:8px 15px 8px 8px;font-size:var(--chart-tooltips-font-size-2);color:var(--color-normal-text);width:auto;white-space:nowrap;--treemap-tooltip-background:rgba(103,149,219,0.12) radial-gradient(100% 100% ellipse at 12px 4px,rgba(var(--palette-tech-blue-6-channel),0.3),rgba(var(--palette-tech-blue-6-channel),0));--treemap-backdrop-filter:blur(5px);z-index:0}.menuIconTooltip:before,\n.menuIconTooltip:after{content:"";clear:both;position:absolute;display:block;left:0;right:0;top:0;bottom:0;z-index:-1;background:var(--treemap-tooltip-background);-webkit-backdrop-filter:var(--treemap-backdrop-filter);backdrop-filter:var(--treemap-backdrop-filter)}.menuIconTooltip::before{-webkit-clip-path:inset(0 7px 0 0 round var(--medius-border-radius));clip-path:inset(0 7px 0 0 round var(--medius-border-radius))}.menuIconTooltip::after{-webkit-clip-path:polygon(calc(100% - 7px) calc(50% - 7px),100% 50%,calc(100% - 7px) calc(50% + 7px));clip-path:polygon(calc(100% - 7px) calc(50% - 7px),100% 50%,calc(100% - 7px) calc(50% + 7px))}.content{flex:1}',""]);const l=o.toString()},7896:(e,t,a)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},r.apply(this,arguments)}a.d(t,{Z:()=>r})}}]);
|
|
3
|
+
//# sourceMappingURL=9685.b7dafab6.js.map
|