@next-bricks/nav 1.22.2 → 1.22.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/bricks.json +16 -16
  2. package/dist/chunks/{1889.1c81b9a6.js → 1889.2cc36eb0.js} +2 -2
  3. package/dist/chunks/{1889.1c81b9a6.js.map → 1889.2cc36eb0.js.map} +1 -1
  4. package/dist/chunks/{2133.f1181811.js → 2133.b3f42995.js} +2 -2
  5. package/dist/chunks/{2133.f1181811.js.map → 2133.b3f42995.js.map} +1 -1
  6. package/dist/chunks/2252.d3da24a8.js +3 -0
  7. package/dist/chunks/2252.d3da24a8.js.map +1 -0
  8. package/dist/chunks/{3171.8c0808db.js → 3171.37902a27.js} +2 -2
  9. package/dist/chunks/{3171.8c0808db.js.map → 3171.37902a27.js.map} +1 -1
  10. package/dist/chunks/3796.8022978a.js +3 -0
  11. package/dist/chunks/{3796.6828d229.js.map → 3796.8022978a.js.map} +1 -1
  12. package/dist/chunks/{3933.659a4e40.js → 3933.928cded4.js} +2 -2
  13. package/dist/chunks/{3933.659a4e40.js.map → 3933.928cded4.js.map} +1 -1
  14. package/dist/chunks/4433.8a2db39c.js +2 -0
  15. package/dist/chunks/{4433.7f2599ca.js.map → 4433.8a2db39c.js.map} +1 -1
  16. package/dist/chunks/{4727.6fb0beff.js → 4727.04c7f61d.js} +2 -2
  17. package/dist/chunks/{4727.6fb0beff.js.map → 4727.04c7f61d.js.map} +1 -1
  18. package/dist/chunks/4837.8de8edba.js +2 -0
  19. package/dist/chunks/{7218.6a0d03bf.js.map → 4837.8de8edba.js.map} +1 -1
  20. package/dist/chunks/{5552.5757666c.js → 5552.075020be.js} +2 -2
  21. package/dist/chunks/{5552.5757666c.js.map → 5552.075020be.js.map} +1 -1
  22. package/dist/chunks/{6314.a92d20d9.js → 6314.b04ccf93.js} +2 -2
  23. package/dist/chunks/{6314.a92d20d9.js.map → 6314.b04ccf93.js.map} +1 -1
  24. package/dist/chunks/{6595.f6bad476.js → 6595.e9199ff8.js} +2 -2
  25. package/dist/chunks/{6595.f6bad476.js.map → 6595.e9199ff8.js.map} +1 -1
  26. package/dist/chunks/7218.d98e4c1e.js +2 -0
  27. package/dist/chunks/{4837.4464bee6.js.map → 7218.d98e4c1e.js.map} +1 -1
  28. package/dist/chunks/{8097.77afb7bb.js → 8097.3603bfee.js} +2 -2
  29. package/dist/chunks/{8097.77afb7bb.js.map → 8097.3603bfee.js.map} +1 -1
  30. package/dist/chunks/871.6937a15d.js +2 -0
  31. package/dist/chunks/871.6937a15d.js.map +1 -0
  32. package/dist/chunks/9140.7835c9bd.js +3 -0
  33. package/dist/chunks/9140.7835c9bd.js.map +1 -0
  34. package/dist/chunks/{9149.6a8b907d.js → 9149.0c92a507.js} +2 -2
  35. package/dist/chunks/{9149.6a8b907d.js.map → 9149.0c92a507.js.map} +1 -1
  36. package/dist/chunks/9363.fc28662e.js +3 -0
  37. package/dist/chunks/{9363.65310518.js.map → 9363.fc28662e.js.map} +1 -1
  38. package/dist/chunks/{9515.e5c4f96a.js → 9515.e919ad47.js} +2 -2
  39. package/dist/chunks/9515.e919ad47.js.map +1 -0
  40. package/dist/chunks/{easyops-navbar-alerts.e2efe363.js → easyops-navbar-alerts.bc939a72.js} +2 -2
  41. package/dist/chunks/{easyops-navbar-alerts.e2efe363.js.map → easyops-navbar-alerts.bc939a72.js.map} +1 -1
  42. package/dist/chunks/{eo-directory-tree.c9c39164.js → eo-directory-tree.bf18dc76.js} +3 -3
  43. package/dist/chunks/{eo-directory-tree.c9c39164.js.map → eo-directory-tree.bf18dc76.js.map} +1 -1
  44. package/dist/chunks/{eo-directory.9edb0684.js → eo-directory.f5a87fa2.js} +3 -3
  45. package/dist/chunks/{eo-directory.9edb0684.js.map → eo-directory.f5a87fa2.js.map} +1 -1
  46. package/dist/chunks/{eo-frame-breadcrumb.add0104b.js → eo-frame-breadcrumb.bf819fbc.js} +2 -2
  47. package/dist/chunks/{eo-frame-breadcrumb.add0104b.js.map → eo-frame-breadcrumb.bf819fbc.js.map} +1 -1
  48. package/dist/chunks/eo-launchpad-button-v2.e81da15c.js +3 -0
  49. package/dist/chunks/{eo-launchpad-button-v2.dd3cff9e.js.map → eo-launchpad-button-v2.e81da15c.js.map} +1 -1
  50. package/dist/chunks/{eo-launchpad-button.e5d75002.js → eo-launchpad-button.c7990f0e.js} +3 -3
  51. package/dist/chunks/{eo-launchpad-button.e5d75002.js.map → eo-launchpad-button.c7990f0e.js.map} +1 -1
  52. package/dist/chunks/eo-nav-menu.1bb0aba1.js +2 -0
  53. package/dist/chunks/eo-nav-menu.1bb0aba1.js.map +1 -0
  54. package/dist/chunks/eo-sidebar-menu-group.a35ec0d3.js +3 -0
  55. package/dist/chunks/{eo-sidebar-menu-group.8864f4d9.js.map → eo-sidebar-menu-group.a35ec0d3.js.map} +1 -1
  56. package/dist/chunks/eo-sidebar-menu-submenu.669ac870.js +3 -0
  57. package/dist/chunks/{eo-sidebar-menu-submenu.a1ab5f7a.js.map → eo-sidebar-menu-submenu.669ac870.js.map} +1 -1
  58. package/dist/chunks/{eo-sidebar-menu.6a44ad80.js → eo-sidebar-menu.9c8bfe04.js} +2 -2
  59. package/dist/chunks/{eo-sidebar-menu.6a44ad80.js.map → eo-sidebar-menu.9c8bfe04.js.map} +1 -1
  60. package/dist/chunks/eo-sidebar-sub-menu.2e382908.js +3 -0
  61. package/dist/chunks/{eo-sidebar-sub-menu.5b2c1c1d.js.map → eo-sidebar-sub-menu.2e382908.js.map} +1 -1
  62. package/dist/chunks/eo-sidebar.4895576a.js +3 -0
  63. package/dist/chunks/eo-sidebar.4895576a.js.map +1 -0
  64. package/dist/chunks/{get-menu-config-options.14762ff7.js → get-menu-config-options.b141a9e3.js} +2 -2
  65. package/dist/chunks/{get-menu-config-options.14762ff7.js.map → get-menu-config-options.b141a9e3.js.map} +1 -1
  66. package/dist/chunks/{get-menu-config-tree.1dc2b9f2.js → get-menu-config-tree.d659b581.js} +2 -2
  67. package/dist/chunks/{get-menu-config-tree.1dc2b9f2.js.map → get-menu-config-tree.d659b581.js.map} +1 -1
  68. package/dist/chunks/{launchpad-config.75391f5e.js → launchpad-config.822d8f06.js} +3 -3
  69. package/dist/chunks/{launchpad-config.75391f5e.js.map → launchpad-config.822d8f06.js.map} +1 -1
  70. package/dist/chunks/main.3b673ac6.js +2 -0
  71. package/dist/chunks/{main.ec2217b3.js.map → main.3b673ac6.js.map} +1 -1
  72. package/dist/chunks/{nav-logo.3ede00ce.js → nav-logo.07efbab1.js} +2 -2
  73. package/dist/chunks/{nav-logo.3ede00ce.js.map → nav-logo.07efbab1.js.map} +1 -1
  74. package/dist/chunks/{poll-announce.f19d278d.js → poll-announce.97676990.js} +3 -3
  75. package/dist/chunks/{poll-announce.f19d278d.js.map → poll-announce.97676990.js.map} +1 -1
  76. package/dist/chunks/{query-search.14d7cb12.js → query-search.f47848f6.js} +3 -3
  77. package/dist/chunks/{query-search.14d7cb12.js.map → query-search.f47848f6.js.map} +1 -1
  78. package/dist/index.e563bd3f.js +2 -0
  79. package/dist/index.e563bd3f.js.map +1 -0
  80. package/dist/manifest.json +30 -30
  81. package/dist/types.json +28 -28
  82. package/package.json +2 -2
  83. package/dist/chunks/2252.d2fb0bb2.js +0 -3
  84. package/dist/chunks/2252.d2fb0bb2.js.map +0 -1
  85. package/dist/chunks/3796.6828d229.js +0 -3
  86. package/dist/chunks/4433.7f2599ca.js +0 -2
  87. package/dist/chunks/4837.4464bee6.js +0 -2
  88. package/dist/chunks/7218.6a0d03bf.js +0 -2
  89. package/dist/chunks/871.e41dac4c.js +0 -2
  90. package/dist/chunks/871.e41dac4c.js.map +0 -1
  91. package/dist/chunks/9140.7338091c.js +0 -3
  92. package/dist/chunks/9140.7338091c.js.map +0 -1
  93. package/dist/chunks/9363.65310518.js +0 -3
  94. package/dist/chunks/9515.e5c4f96a.js.map +0 -1
  95. package/dist/chunks/eo-launchpad-button-v2.dd3cff9e.js +0 -3
  96. package/dist/chunks/eo-nav-menu.18a02f14.js +0 -2
  97. package/dist/chunks/eo-nav-menu.18a02f14.js.map +0 -1
  98. package/dist/chunks/eo-sidebar-menu-group.8864f4d9.js +0 -3
  99. package/dist/chunks/eo-sidebar-menu-submenu.a1ab5f7a.js +0 -3
  100. package/dist/chunks/eo-sidebar-sub-menu.5b2c1c1d.js +0 -3
  101. package/dist/chunks/eo-sidebar.5120d756.js +0 -3
  102. package/dist/chunks/eo-sidebar.5120d756.js.map +0 -1
  103. package/dist/chunks/main.ec2217b3.js +0 -2
  104. package/dist/index.4e22b349.js +0 -2
  105. package/dist/index.4e22b349.js.map +0 -1
  106. /package/dist/chunks/{2252.d2fb0bb2.js.LICENSE.txt → 2252.d3da24a8.js.LICENSE.txt} +0 -0
  107. /package/dist/chunks/{3796.6828d229.js.LICENSE.txt → 3796.8022978a.js.LICENSE.txt} +0 -0
  108. /package/dist/chunks/{9140.7338091c.js.LICENSE.txt → 9140.7835c9bd.js.LICENSE.txt} +0 -0
  109. /package/dist/chunks/{9363.65310518.js.LICENSE.txt → 9363.fc28662e.js.LICENSE.txt} +0 -0
  110. /package/dist/chunks/{eo-directory-tree.c9c39164.js.LICENSE.txt → eo-directory-tree.bf18dc76.js.LICENSE.txt} +0 -0
  111. /package/dist/chunks/{eo-directory.9edb0684.js.LICENSE.txt → eo-directory.f5a87fa2.js.LICENSE.txt} +0 -0
  112. /package/dist/chunks/{eo-launchpad-button-v2.dd3cff9e.js.LICENSE.txt → eo-launchpad-button-v2.e81da15c.js.LICENSE.txt} +0 -0
  113. /package/dist/chunks/{eo-launchpad-button.e5d75002.js.LICENSE.txt → eo-launchpad-button.c7990f0e.js.LICENSE.txt} +0 -0
  114. /package/dist/chunks/{eo-sidebar-menu-group.8864f4d9.js.LICENSE.txt → eo-sidebar-menu-group.a35ec0d3.js.LICENSE.txt} +0 -0
  115. /package/dist/chunks/{eo-sidebar-menu-submenu.a1ab5f7a.js.LICENSE.txt → eo-sidebar-menu-submenu.669ac870.js.LICENSE.txt} +0 -0
  116. /package/dist/chunks/{eo-sidebar-sub-menu.5b2c1c1d.js.LICENSE.txt → eo-sidebar-sub-menu.2e382908.js.LICENSE.txt} +0 -0
  117. /package/dist/chunks/{eo-sidebar.5120d756.js.LICENSE.txt → eo-sidebar.4895576a.js.LICENSE.txt} +0 -0
  118. /package/dist/chunks/{launchpad-config.75391f5e.js.LICENSE.txt → launchpad-config.822d8f06.js.LICENSE.txt} +0 -0
  119. /package/dist/chunks/{poll-announce.f19d278d.js.LICENSE.txt → poll-announce.97676990.js.LICENSE.txt} +0 -0
  120. /package/dist/chunks/{query-search.14d7cb12.js.LICENSE.txt → query-search.f47848f6.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/7218.6a0d03bf.js","mappings":"kYAIA,IAAIA,EAAgB,SAAuBC,GACzC,IAAI,SACFC,EAAQ,KACRC,EAAI,cACJC,EAAa,YACbC,EAAW,gBACXC,GACEL,EACJ,MAAOM,EAAcC,IAAmB,IAAAC,UAAS,MAC3CC,GAAc,IAAAC,WACbC,EAAWC,IAAgB,IAAAJ,YAC5BK,GAAe,IAAAH,QAAO,GACtBI,GAAkB,IAAAC,UAAQ,KAC9B,IAAIC,EACJ,OAAmE,QAA3DA,EAAuB,EAAAC,mBAAmBC,mBAAkD,IAAzBF,OAAkC,EAASA,EAAqBG,KAAK,EAAAF,mBAAmB,GAClK,KACH,IAAAG,YAAU,KACR,IAAIC,GAAS,EAkBb,OAjBAC,iBACE,IACE,MAAMC,QAAkB,EAAAN,mBAAmBO,eAAevB,EAAUC,EAAMC,GAC1E,GAAIkB,EACF,OAEFd,EAAgBgB,GAChBX,IAAyBC,EA6ClBY,QA5CT,CAAE,MAAOC,IACFL,GA6Cb,SAAyBP,GACvB,IAAIa,EACJ,MAAMC,EAA2E,QAA5DD,EAAwB,EAAAV,mBAAmBC,mBAAmD,IAA1BS,OAAmC,EAASA,EAAsBR,KAAK,EAAAF,oBAChK,OAAQH,IAAo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EAAeC,EAAWC,GAE9C,aADM,EAAA1I,mBAAmB2I,WAAW,CAACF,KAC9B,IAAAG,WAAUH,EAAWC,EAC9B,CClBO,SAASG,IACd,MAAOC,EAAWC,IAAgB,IAAAxJ,WAAS,KAAM,IAAA2D,cAAa8F,iBAQ9D,OAPA,IAAA7I,YAAU,KACR,MAAMiD,EAAWV,IACfqG,EAAarG,EAAMC,OAAO,EAG5B,OADAC,OAAOC,iBAAiB,mBAAoBO,GACrC,IAAMR,OAAOE,oBAAoB,mBAAoBM,EAAS,GACpE,IACI0F,CACT,CC2CO,SAASG,EAAiBR,EAAWC,GAC1C,OAAO,IAAA5I,UAAQ,IACI,MAAb2I,GACkB,IAAAS,OAAK7I,UAAY,CACnC8I,cAAeX,EAAeC,EAAWC,OAGtC,MACN,CAACD,EAAWC,GACjB,C","sources":["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","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useRouteRender.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useProvider/useProviderArgsDefaults.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useProvider/fetch.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useProvider/useProvider.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useProvider/useProviderArgs.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/asyncWrapBrick.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useNavConfig.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useLazyWrapBrick.js"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { __secret_internals, handleHttpError, getV2RuntimeFromDll } from \"@next-core/runtime\";\n// Note: always synchronize code in LegacyUseBrick:\n// `bricks/v2-adapter/src/data-providers/legacy-brick-kit/getLegacyUseBrick.ts`\nlet ReactUseBrick = function ReactUseBrick(_ref) {\n let {\n useBrick,\n data,\n errorBoundary,\n refCallback,\n ignoredCallback\n } = _ref;\n const [renderResult, setRenderResult] = useState(null);\n const mountResult = useRef();\n const [renderKey, setRenderKey] = useState();\n const IdCounterRef = useRef(0);\n const initialRenderId = useMemo(() => {\n var _secret_internals$ge;\n return (_secret_internals$ge = __secret_internals.getRenderId) === null || _secret_internals$ge === void 0 ? void 0 : _secret_internals$ge.call(__secret_internals);\n }, []);\n useEffect(() => {\n let ignore = false;\n async function init() {\n try {\n const newRender = await __secret_internals.renderUseBrick(useBrick, data, errorBoundary);\n if (ignore) {\n return;\n }\n setRenderResult(newRender);\n setRenderKey(getUniqueId(IdCounterRef));\n } catch (error) {\n if (!ignore && isTheSameRender(initialRenderId)) {\n // eslint-disable-next-line no-console\n console.error(\"Render useBrick failed:\", useBrick, \"with data:\", data);\n handleHttpError(error);\n }\n }\n }\n init();\n return () => {\n ignore = true;\n };\n }, [data, useBrick, initialRenderId, errorBoundary]);\n const _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 refCallback === null || refCallback === void 0 || refCallback(element);\n }, [refCallback, renderResult]);\n if (!renderResult) {\n // Fallback when loading/\n return null;\n // return <span>🌀 Loading...</span>;\n }\n const {\n tagName\n } = renderResult;\n if (tagName === null) {\n ignoredCallback === null || ignoredCallback === void 0 || ignoredCallback();\n return null;\n }\n const WebComponent = tagName;\n return /*#__PURE__*/React.createElement(WebComponent, {\n key: renderKey,\n ref: _refCallback\n });\n};\nfunction getUniqueId(ref) {\n return ++ref.current;\n}\nfunction isTheSameRender(initialRenderId) {\n var _secret_internals$ge2;\n const newRenderId = (_secret_internals$ge2 = __secret_internals.getRenderId) === null || _secret_internals$ge2 === void 0 ? void 0 : _secret_internals$ge2.call(__secret_internals);\n return !initialRenderId || !newRenderId || initialRenderId === newRenderId;\n}\nlet ReactUseMultipleBricks = function ReactUseMultipleBricks(_ref2) {\n let {\n useBrick,\n data,\n errorBoundary\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 errorBoundary: errorBoundary\n })));\n }\n return /*#__PURE__*/React.createElement(ReactUseBrick, {\n useBrick: useBrick,\n data: data,\n errorBoundary: errorBoundary\n });\n};\n\n// Make v3 bricks compatible with Brick Next v2.\n// istanbul ignore next\nconst v2Kit = getV2RuntimeFromDll();\n// istanbul ignore next\nif (v2Kit) {\n const {\n SingleBrickAsComponentFactory,\n BrickAsComponentFactory\n } = v2Kit;\n if (SingleBrickAsComponentFactory && BrickAsComponentFactory) {\n ReactUseBrick = SingleBrickAsComponentFactory(React);\n ReactUseMultipleBricks = BrickAsComponentFactory(React);\n }\n}\nexport { ReactUseBrick, ReactUseMultipleBricks };\n//# sourceMappingURL=ReactUseBrick.js.map","import { useEffect, useState } from \"react\";\nimport { getCurrentTheme } from \"@next-core/runtime\";\nexport function useCurrentTheme() {\n const [currentTheme, setCurrentTheme] = useState(getCurrentTheme);\n useEffect(() => {\n const 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 const [recentApps, setRecentApps] = React.useState(() => getRuntime().getRecentApps());\n React.useEffect(() => {\n const 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","import React from \"react\";\nexport function useRouteRender() {\n const [routeRender, setRouteRender] = React.useState(null);\n React.useEffect(() => {\n const listener = event => {\n setRouteRender(event.detail);\n };\n window.addEventListener(\"route.render\", listener);\n return () => window.removeEventListener(\"route.render\", listener);\n }, []);\n return routeRender;\n}\n//# sourceMappingURL=useRouteRender.js.map","export const useProviderArgsDefaults = {\n provider: \"\",\n customOptions: {\n onError: () => {\n /* Do nothing.. */\n },\n transform: (oldData, newData) => newData,\n data: undefined,\n loading: false,\n suspense: false,\n cache: true\n },\n dependencies: undefined\n};\nexport default Object.entries(useProviderArgsDefaults).reduce((acc, _ref) => {\n let [key, value] = _ref;\n if (Object.prototype.toString.call(value) === \"[object Object]\") return {\n ...acc,\n ...value\n };\n return {\n ...acc,\n [key]: value\n };\n}, {});\n//# sourceMappingURL=useProviderArgsDefaults.js.map","import { fetchByProvider } from \"@next-core/runtime\";\nconst cacheMap = new Map();\nfunction isObj(v) {\n return typeof v === \"object\" && v !== null && !Array.isArray(v);\n}\nfunction isString(v) {\n return typeof v === \"string\";\n}\nfunction buildSortedCacheKey(provider) {\n const sortObj = obj => Object.keys(obj).sort().map(k => ({\n [k]: obj[k]\n }));\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n try {\n const sortedArgs = isObj(args) ? sortObj(args) : args.map(arg => isString(arg) ? arg : sortObj(arg));\n return JSON.stringify({\n provider,\n args: sortedArgs\n });\n } catch (e) {\n return JSON.stringify({\n provider,\n args\n });\n }\n}\nexport default async function fetch(provider, cache, args) {\n let promise;\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n const cacheKey = buildSortedCacheKey(provider, ...args);\n !cache && cacheMap.has(cacheKey) && cacheMap.delete(cacheKey);\n if (cacheMap.has(cacheKey)) {\n promise = cacheMap.get(cacheKey);\n } else {\n promise = (() => {\n return fetchByProvider(provider, args, {\n cache: cache ? \"default\" : \"reload\"\n });\n })();\n cache && cacheMap.set(cacheKey, promise);\n }\n return promise;\n}\n//# sourceMappingURL=fetch.js.map","import { useCallback, useEffect, useMemo, useReducer, useRef, useState } from \"react\";\nimport useProviderArgs from \"./useProviderArgs.js\";\nimport { isObject, isString } from \"lodash\";\nimport fetch from \"./fetch.js\";\nexport function useProvider() {\n const {\n provider,\n customOptions,\n dependencies,\n requestInit\n } = useProviderArgs(...arguments);\n const {\n onError,\n transform,\n suspense,\n cache,\n ...defaults\n } = customOptions;\n const [loading, setLoading] = useState(defaults.loading);\n const suspenseStatus = useRef(\"pending\");\n const suspender = useRef();\n const mounted = useRef(false);\n const error = useRef();\n const response = useRef();\n const data = useRef(defaults.data);\n const forceUpdate = useReducer(() => ({}), [])[1];\n const doFetch = useCallback(async (provider, providerArgs) => {\n try {\n error.current = undefined;\n if (!suspense) setLoading(true);\n const newRes = await fetch(provider, cache, providerArgs);\n response.current = newRes;\n data.current = transform(data.current, newRes);\n } catch (e) {\n error.current = e;\n data.current = undefined;\n }\n if (!suspense) setLoading(false);\n if (error.current) onError(error.current);\n return data.current;\n }, [provider, customOptions, dependencies, requestInit, suspense, transform, defaults.data, onError, cache]);\n const makeFetch = useCallback(async (providerOrBody, args) => {\n let providerStr = provider;\n let providerArgs = [];\n if (isString(providerOrBody)) {\n providerStr = providerOrBody;\n }\n if (isObject(providerOrBody)) {\n providerArgs = providerOrBody;\n } else if (isObject(args)) {\n providerArgs = args;\n }\n if (suspense) {\n return (async () => {\n suspender.current = doFetch(providerStr, providerArgs).then(newData => {\n suspenseStatus.current = \"success\";\n return newData;\n }, error => {\n /* istanbul ignore next */\n suspenseStatus.current = \"error\";\n error.current = error;\n return error;\n });\n forceUpdate();\n return await suspender.current;\n })();\n }\n return doFetch(providerStr, providerArgs);\n }, [doFetch]);\n const request = useMemo(() => Object.defineProperties({\n query: makeFetch\n }, {\n loading: {\n get() {\n return loading;\n }\n },\n data: {\n get() {\n return data.current;\n }\n },\n error: {\n get() {\n return error.current;\n }\n }\n }), [makeFetch]);\n\n // onMount/onUpdate\n useEffect(() => {\n mounted.current = true;\n if (Array.isArray(dependencies) && provider) {\n request.query(provider, requestInit.args);\n }\n return () => mounted.current = false;\n }, dependencies);\n if (suspense && suspender.current) {\n switch (suspenseStatus.current) {\n case \"pending\":\n throw suspender.current;\n /* istanbul ignore next */\n case \"error\":\n throw error.current;\n }\n }\n return Object.assign([request, response.current, loading, error.current], {\n request,\n ...request,\n response: response.current,\n data: data.current,\n loading,\n error: error.current\n });\n}\n//# sourceMappingURL=useProvider.js.map","import { useMemo } from \"react\";\nimport defaults, { useProviderArgsDefaults } from \"./useProviderArgsDefaults.js\";\nimport { isObject } from \"lodash\";\nexport default function useProviderArgs(providerOrParamsOrGlobalOptions, globalOptionsOrDeps, deps) {\n const provider = useMemo(() => {\n if (typeof providerOrParamsOrGlobalOptions === \"string\") {\n return providerOrParamsOrGlobalOptions;\n }\n return useProviderArgsDefaults.provider;\n }, [providerOrParamsOrGlobalOptions, globalOptionsOrDeps]);\n const options = useMemo(() => {\n let localOptions = {};\n if (isObject(providerOrParamsOrGlobalOptions)) {\n localOptions = providerOrParamsOrGlobalOptions;\n } else if (isObject(globalOptionsOrDeps)) {\n localOptions = globalOptionsOrDeps;\n }\n return {\n ...defaults,\n ...localOptions\n };\n }, [providerOrParamsOrGlobalOptions, globalOptionsOrDeps]);\n const requestInit = useMemo(() => {\n const customOptionKeys = [...Object.keys(useProviderArgsDefaults), ...Object.keys(useProviderArgsDefaults.customOptions)];\n const {\n args = null,\n ...restOptions\n } = Object.keys(options).reduce((acc, key) => {\n if (!customOptionKeys.includes(key)) acc[key] = options[key];\n return acc;\n }, {});\n return {\n options: {\n ...restOptions\n },\n args\n };\n }, [options]);\n const dependencies = useMemo(() => {\n if (Array.isArray(globalOptionsOrDeps)) return globalOptionsOrDeps;\n if (Array.isArray(deps)) return deps;\n return defaults.dependencies;\n }, [globalOptionsOrDeps, deps]);\n const loading = options.loading || Array.isArray(dependencies);\n const customOptions = useMemo(() => {\n const customOptionKeys = Object.keys(useProviderArgsDefaults.customOptions);\n const customOptions = customOptionKeys.reduce((opts, key) => {\n opts[key] = options[key];\n return opts;\n }, {});\n return {\n ...customOptions,\n loading\n };\n }, [options]);\n return {\n provider,\n customOptions,\n requestInit,\n dependencies\n };\n}\n//# sourceMappingURL=useProviderArgs.js.map","import { __secret_internals } from \"@next-core/runtime\";\nimport { wrapBrick } from \"@next-core/react-element\";\n\n/**\n * 使用异步加载的方式包装一个构件,可用于按条件渲染的构件依赖。\n *\n * 例如提供复杂弹层内容的按钮构件,其内容需要使用到一些大型构件,那么这些依赖可以使用 asyncWrapBrick,\n * 这样只有在需要时才会加载这些依赖的构件。\n */\n\n/**\n * 使用异步加载的方式包装一个构件,可用于按条件渲染的构件依赖。\n *\n * 例如提供复杂弹层内容的按钮构件,其内容需要使用到一些大型构件,那么这些依赖可以使用 asyncWrapBrick,\n * 这样只有在需要时才会加载这些依赖的构件。\n */\n\nexport async function asyncWrapBrick(brickName, eventsMapping) {\n await __secret_internals.loadBricks([brickName]);\n return wrapBrick(brickName, eventsMapping);\n}\n//# sourceMappingURL=asyncWrapBrick.js.map","import { useEffect, useState } from \"react\";\nimport { getRuntime } from \"@next-core/runtime\";\nexport function useNavConfig() {\n const [navConfig, setNavConfig] = useState(() => getRuntime().getNavConfig());\n useEffect(() => {\n const listener = event => {\n setNavConfig(event.detail);\n };\n window.addEventListener(\"navConfig.change\", listener);\n return () => window.removeEventListener(\"navConfig.change\", listener);\n }, []);\n return navConfig;\n}\n//# sourceMappingURL=useNavConfig.js.map","import { lazy, useMemo } from \"react\";\nimport { asyncWrapBrick } from \"./asyncWrapBrick.js\";\n\n/**\n * 使用 `React.lazy` 包装一个异步加载的构件。\n *\n * ```jsx\n * const DepComponent = useLazyWrapBrick(\"async-dep\");\n * return (\n * <Suspense fallback=\"Loading...\">\n * <DepComponent {...props} />\n * </Suspense>\n * );\n * ```\n */\n\n/**\n * 使用 `React.lazy` 包装一个异步加载的构件。\n *\n * ```jsx\n * const DepComponent = useLazyWrapBrick(\"async-dep\");\n * return (\n * <Suspense fallback=\"Loading...\">\n * <DepComponent {...props} />\n * </Suspense>\n * );\n * ```\n */\n\n/**\n * 使用 `React.lazy` 包装一个异步加载的构件。\n *\n * ```jsx\n * const DepComponent = useLazyWrapBrick(\"async-dep\");\n * return (\n * <Suspense fallback=\"Loading...\">\n * <DepComponent {...props} />\n * </Suspense>\n * );\n * ```\n */\n\n/**\n * 使用 `React.lazy` 包装一个异步加载的构件。\n *\n * ```jsx\n * const DepComponent = useLazyWrapBrick(\"async-dep\");\n * return (\n * <Suspense fallback=\"Loading...\">\n * <DepComponent {...props} />\n * </Suspense>\n * );\n * ```\n */\n\nexport function useLazyWrapBrick(brickName, eventsMapping) {\n return useMemo(() => {\n if (brickName != null) {\n return /*#__PURE__*/lazy(async () => ({\n default: await asyncWrapBrick(brickName, eventsMapping)\n }));\n }\n return null;\n }, [brickName, eventsMapping]);\n}\n//# sourceMappingURL=useLazyWrapBrick.js.map"],"names":["ReactUseBrick","_ref","useBrick","data","errorBoundary","refCallback","ignoredCallback","renderResult","setRenderResult","useState","mountResult","useRef","renderKey","setRenderKey","IdCounterRef","initialRenderId","useMemo","_secret_internals$ge","__secret_internals","getRenderId","call","useEffect","ignore","async","newRender","renderUseBrick","current","error","_secret_internals$ge2","newRenderId","isTheSameRender","console","handleHttpError","init","_refCallback","useCallback","element","mountUseBrick","unmountUseBrick","undefined","tagName","WebComponent","key","ref","ReactUseMultipleBricks","_ref2","Array","isArray","map","item","index","v2Kit","getV2RuntimeFromDll","SingleBrickAsComponentFactory","BrickAsComponentFactory","useCurrentTheme","currentTheme","setCurrentTheme","getCurrentTheme","listenToThemeChange","event","detail","window","addEventListener","removeEventListener","useRecentApps","recentApps","setRecentApps","getRuntime","getRecentApps","listener","useCurrentApp","currentApp","useRouteRender","routeRender","setRouteRender","useProviderArgsDefaults","provider","customOptions","onError","transform","oldData","newData","loading","suspense","cache","dependencies","Object","entries","reduce","acc","value","prototype","toString","cacheMap","Map","useProvider","requestInit","providerOrParamsOrGlobalOptions","globalOptionsOrDeps","deps","options","localOptions","isObject","customOptionKeys","keys","args","restOptions","includes","opts","useProviderArgs","arguments","defaults","setLoading","suspenseStatus","suspender","mounted","response","forceUpdate","useReducer","doFetch","providerArgs","newRes","promise","cacheKey","sortObj","obj","sort","k","_len","length","_key","sortedArgs","v","arg","isString","JSON","stringify","e","buildSortedCacheKey","has","delete","get","fetchByProvider","set","fetch","makeFetch","providerOrBody","providerStr","then","request","defineProperties","query","assign","asyncWrapBrick","brickName","eventsMapping","loadBricks","wrapBrick","useNavConfig","navConfig","setNavConfig","getNavConfig","useLazyWrapBrick","lazy","default"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/4837.8de8edba.js","mappings":"iYAIA,IAAIA,EAAgB,SAAuBC,GACzC,IAAI,SACFC,EAAQ,KACRC,EAAI,cACJC,EAAa,YACbC,EAAW,gBACXC,GACEL,EACJ,MAAOM,EAAcC,IAAmB,IAAAC,UAAS,MAC3CC,GAAc,IAAAC,WACbC,EAAWC,IAAgB,IAAAJ,YAC5BK,GAAe,IAAAH,QAAO,GACtBI,GAAkB,IAAAC,UAAQ,KAC9B,IAAIC,EACJ,OAAmE,QAA3DA,EAAuB,EAAAC,mBAAmBC,mBAAkD,IAAzBF,OAAkC,EAASA,EAAqBG,KAAK,EAAAF,mBAAmB,GAClK,KACH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oB,EAAYS,MAE/B,IAAMU,EAAQ1F,SAAU,IAC9B4D,GACCF,GAAY+B,EAAUzF,QACxB,OAAQwF,EAAexF,SACrB,IAAK,UACH,MAAMyF,EAAUzF,QAElB,IAAK,QACH,MAAMC,EAAMD,QAGlB,OAAO6D,OAAOkE,OAAO,CAACH,EAASjC,EAAS3F,QAASyD,EAASxD,EAAMD,SAAU,CACxE4H,aACGA,EACHjC,SAAUA,EAAS3F,QACnBvB,KAAMA,EAAKuB,QACXyD,UACAxD,MAAOA,EAAMD,SAEjB,C,cEjGOH,eAAemI,EAAeC,EAAWC,GAE9C,aADM,EAAA1I,mBAAmB2I,WAAW,CAACF,KAC9B,IAAAG,WAAUH,EAAWC,EAC9B,CClBO,SAASG,IACd,MAAOC,EAAWC,IAAgB,IAAAxJ,WAAS,KAAM,IAAA2D,cAAa8F,iBAQ9D,OAPA,IAAA7I,YAAU,KACR,MAAMiD,EAAWV,IACfqG,EAAarG,EAAMC,OAAO,EAG5B,OADAC,OAAOC,iBAAiB,mBAAoBO,GACrC,IAAMR,OAAOE,oBAAoB,mBAAoBM,EAAS,GACpE,IACI0F,CACT,CC2CO,SAASG,EAAiBR,EAAWC,GAC1C,OAAO,IAAA5I,UAAQ,IACI,MAAb2I,GACkB,IAAAS,OAAK7I,UAAY,CACnC8I,cAAeX,EAAeC,EAAWC,OAGtC,MACN,CAACD,EAAWC,GACjB,C","sources":["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","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useRouteRender.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useProvider/useProviderArgsDefaults.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useProvider/fetch.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useProvider/useProvider.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useProvider/useProviderArgs.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/asyncWrapBrick.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useNavConfig.js","webpack:///../../node_modules/@next-core/react-runtime/dist/esm/useLazyWrapBrick.js"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\nimport { __secret_internals, handleHttpError, getV2RuntimeFromDll } from \"@next-core/runtime\";\n// Note: always synchronize code in LegacyUseBrick:\n// `bricks/v2-adapter/src/data-providers/legacy-brick-kit/getLegacyUseBrick.ts`\nlet ReactUseBrick = function ReactUseBrick(_ref) {\n let {\n useBrick,\n data,\n errorBoundary,\n refCallback,\n ignoredCallback\n } = _ref;\n const [renderResult, setRenderResult] = useState(null);\n const mountResult = useRef();\n const [renderKey, setRenderKey] = useState();\n const IdCounterRef = useRef(0);\n const initialRenderId = useMemo(() => {\n var _secret_internals$ge;\n return (_secret_internals$ge = __secret_internals.getRenderId) === null || _secret_internals$ge === void 0 ? void 0 : _secret_internals$ge.call(__secret_internals);\n }, []);\n useEffect(() => {\n let ignore = false;\n async function init() {\n try {\n const newRender = await __secret_internals.renderUseBrick(useBrick, data, errorBoundary);\n if (ignore) {\n return;\n }\n setRenderResult(newRender);\n setRenderKey(getUniqueId(IdCounterRef));\n } catch (error) {\n if (!ignore && isTheSameRender(initialRenderId)) {\n // eslint-disable-next-line no-console\n console.error(\"Render useBrick failed:\", useBrick, \"with data:\", data);\n handleHttpError(error);\n }\n }\n }\n init();\n return () => {\n ignore = true;\n };\n }, [data, useBrick, initialRenderId, errorBoundary]);\n const _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 refCallback === null || refCallback === void 0 || refCallback(element);\n }, [refCallback, renderResult]);\n if (!renderResult) {\n // Fallback when loading/\n return null;\n // return <span>🌀 Loading...</span>;\n }\n const {\n tagName\n } = renderResult;\n if (tagName === null) {\n ignoredCallback === null || ignoredCallback === void 0 || ignoredCallback();\n return null;\n }\n const WebComponent = tagName;\n return /*#__PURE__*/React.createElement(WebComponent, {\n key: renderKey,\n ref: _refCallback\n });\n};\nfunction getUniqueId(ref) {\n return ++ref.current;\n}\nfunction isTheSameRender(initialRenderId) {\n var _secret_internals$ge2;\n const newRenderId = (_secret_internals$ge2 = __secret_internals.getRenderId) === null || _secret_internals$ge2 === void 0 ? void 0 : _secret_internals$ge2.call(__secret_internals);\n return !initialRenderId || !newRenderId || initialRenderId === newRenderId;\n}\nlet ReactUseMultipleBricks = function ReactUseMultipleBricks(_ref2) {\n let {\n useBrick,\n data,\n errorBoundary\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 errorBoundary: errorBoundary\n })));\n }\n return /*#__PURE__*/React.createElement(ReactUseBrick, {\n useBrick: useBrick,\n data: data,\n errorBoundary: errorBoundary\n });\n};\n\n// Make v3 bricks compatible with Brick Next v2.\n// istanbul ignore next\nconst v2Kit = getV2RuntimeFromDll();\n// istanbul ignore next\nif (v2Kit) {\n const {\n SingleBrickAsComponentFactory,\n BrickAsComponentFactory\n } = v2Kit;\n if (SingleBrickAsComponentFactory && BrickAsComponentFactory) {\n ReactUseBrick = SingleBrickAsComponentFactory(React);\n ReactUseMultipleBricks = BrickAsComponentFactory(React);\n }\n}\nexport { ReactUseBrick, ReactUseMultipleBricks };\n//# sourceMappingURL=ReactUseBrick.js.map","import { useEffect, useState } from \"react\";\nimport { getCurrentTheme } from \"@next-core/runtime\";\nexport function useCurrentTheme() {\n const [currentTheme, setCurrentTheme] = useState(getCurrentTheme);\n useEffect(() => {\n const 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 const [recentApps, setRecentApps] = React.useState(() => getRuntime().getRecentApps());\n React.useEffect(() => {\n const 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","import React from \"react\";\nexport function useRouteRender() {\n const [routeRender, setRouteRender] = React.useState(null);\n React.useEffect(() => {\n const listener = event => {\n setRouteRender(event.detail);\n };\n window.addEventListener(\"route.render\", listener);\n return () => window.removeEventListener(\"route.render\", listener);\n }, []);\n return routeRender;\n}\n//# sourceMappingURL=useRouteRender.js.map","export const useProviderArgsDefaults = {\n provider: \"\",\n customOptions: {\n onError: () => {\n /* Do nothing.. */\n },\n transform: (oldData, newData) => newData,\n data: undefined,\n loading: false,\n suspense: false,\n cache: true\n },\n dependencies: undefined\n};\nexport default Object.entries(useProviderArgsDefaults).reduce((acc, _ref) => {\n let [key, value] = _ref;\n if (Object.prototype.toString.call(value) === \"[object Object]\") return {\n ...acc,\n ...value\n };\n return {\n ...acc,\n [key]: value\n };\n}, {});\n//# sourceMappingURL=useProviderArgsDefaults.js.map","import { fetchByProvider } from \"@next-core/runtime\";\nconst cacheMap = new Map();\nfunction isObj(v) {\n return typeof v === \"object\" && v !== null && !Array.isArray(v);\n}\nfunction isString(v) {\n return typeof v === \"string\";\n}\nfunction buildSortedCacheKey(provider) {\n const sortObj = obj => Object.keys(obj).sort().map(k => ({\n [k]: obj[k]\n }));\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n try {\n const sortedArgs = isObj(args) ? sortObj(args) : args.map(arg => isString(arg) ? arg : sortObj(arg));\n return JSON.stringify({\n provider,\n args: sortedArgs\n });\n } catch (e) {\n return JSON.stringify({\n provider,\n args\n });\n }\n}\nexport default async function fetch(provider, cache, args) {\n let promise;\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n const cacheKey = buildSortedCacheKey(provider, ...args);\n !cache && cacheMap.has(cacheKey) && cacheMap.delete(cacheKey);\n if (cacheMap.has(cacheKey)) {\n promise = cacheMap.get(cacheKey);\n } else {\n promise = (() => {\n return fetchByProvider(provider, args, {\n cache: cache ? \"default\" : \"reload\"\n });\n })();\n cache && cacheMap.set(cacheKey, promise);\n }\n return promise;\n}\n//# sourceMappingURL=fetch.js.map","import { useCallback, useEffect, useMemo, useReducer, useRef, useState } from \"react\";\nimport useProviderArgs from \"./useProviderArgs.js\";\nimport { isObject, isString } from \"lodash\";\nimport fetch from \"./fetch.js\";\nexport function useProvider() {\n const {\n provider,\n customOptions,\n dependencies,\n requestInit\n } = useProviderArgs(...arguments);\n const {\n onError,\n transform,\n suspense,\n cache,\n ...defaults\n } = customOptions;\n const [loading, setLoading] = useState(defaults.loading);\n const suspenseStatus = useRef(\"pending\");\n const suspender = useRef();\n const mounted = useRef(false);\n const error = useRef();\n const response = useRef();\n const data = useRef(defaults.data);\n const forceUpdate = useReducer(() => ({}), [])[1];\n const doFetch = useCallback(async (provider, providerArgs) => {\n try {\n error.current = undefined;\n if (!suspense) setLoading(true);\n const newRes = await fetch(provider, cache, providerArgs);\n response.current = newRes;\n data.current = transform(data.current, newRes);\n } catch (e) {\n error.current = e;\n data.current = undefined;\n }\n if (!suspense) setLoading(false);\n if (error.current) onError(error.current);\n return data.current;\n }, [provider, customOptions, dependencies, requestInit, suspense, transform, defaults.data, onError, cache]);\n const makeFetch = useCallback(async (providerOrBody, args) => {\n let providerStr = provider;\n let providerArgs = [];\n if (isString(providerOrBody)) {\n providerStr = providerOrBody;\n }\n if (isObject(providerOrBody)) {\n providerArgs = providerOrBody;\n } else if (isObject(args)) {\n providerArgs = args;\n }\n if (suspense) {\n return (async () => {\n suspender.current = doFetch(providerStr, providerArgs).then(newData => {\n suspenseStatus.current = \"success\";\n return newData;\n }, error => {\n /* istanbul ignore next */\n suspenseStatus.current = \"error\";\n error.current = error;\n return error;\n });\n forceUpdate();\n return await suspender.current;\n })();\n }\n return doFetch(providerStr, providerArgs);\n }, [doFetch]);\n const request = useMemo(() => Object.defineProperties({\n query: makeFetch\n }, {\n loading: {\n get() {\n return loading;\n }\n },\n data: {\n get() {\n return data.current;\n }\n },\n error: {\n get() {\n return error.current;\n }\n }\n }), [makeFetch]);\n\n // onMount/onUpdate\n useEffect(() => {\n mounted.current = true;\n if (Array.isArray(dependencies) && provider) {\n request.query(provider, requestInit.args);\n }\n return () => mounted.current = false;\n }, dependencies);\n if (suspense && suspender.current) {\n switch (suspenseStatus.current) {\n case \"pending\":\n throw suspender.current;\n /* istanbul ignore next */\n case \"error\":\n throw error.current;\n }\n }\n return Object.assign([request, response.current, loading, error.current], {\n request,\n ...request,\n response: response.current,\n data: data.current,\n loading,\n error: error.current\n });\n}\n//# sourceMappingURL=useProvider.js.map","import { useMemo } from \"react\";\nimport defaults, { useProviderArgsDefaults } from \"./useProviderArgsDefaults.js\";\nimport { isObject } from \"lodash\";\nexport default function useProviderArgs(providerOrParamsOrGlobalOptions, globalOptionsOrDeps, deps) {\n const provider = useMemo(() => {\n if (typeof providerOrParamsOrGlobalOptions === \"string\") {\n return providerOrParamsOrGlobalOptions;\n }\n return useProviderArgsDefaults.provider;\n }, [providerOrParamsOrGlobalOptions, globalOptionsOrDeps]);\n const options = useMemo(() => {\n let localOptions = {};\n if (isObject(providerOrParamsOrGlobalOptions)) {\n localOptions = providerOrParamsOrGlobalOptions;\n } else if (isObject(globalOptionsOrDeps)) {\n localOptions = globalOptionsOrDeps;\n }\n return {\n ...defaults,\n ...localOptions\n };\n }, [providerOrParamsOrGlobalOptions, globalOptionsOrDeps]);\n const requestInit = useMemo(() => {\n const customOptionKeys = [...Object.keys(useProviderArgsDefaults), ...Object.keys(useProviderArgsDefaults.customOptions)];\n const {\n args = null,\n ...restOptions\n } = Object.keys(options).reduce((acc, key) => {\n if (!customOptionKeys.includes(key)) acc[key] = options[key];\n return acc;\n }, {});\n return {\n options: {\n ...restOptions\n },\n args\n };\n }, [options]);\n const dependencies = useMemo(() => {\n if (Array.isArray(globalOptionsOrDeps)) return globalOptionsOrDeps;\n if (Array.isArray(deps)) return deps;\n return defaults.dependencies;\n }, [globalOptionsOrDeps, deps]);\n const loading = options.loading || Array.isArray(dependencies);\n const customOptions = useMemo(() => {\n const customOptionKeys = Object.keys(useProviderArgsDefaults.customOptions);\n const customOptions = customOptionKeys.reduce((opts, key) => {\n opts[key] = options[key];\n return opts;\n }, {});\n return {\n ...customOptions,\n loading\n };\n }, [options]);\n return {\n provider,\n customOptions,\n requestInit,\n dependencies\n };\n}\n//# sourceMappingURL=useProviderArgs.js.map","import { __secret_internals } from \"@next-core/runtime\";\nimport { wrapBrick } from \"@next-core/react-element\";\n\n/**\n * 使用异步加载的方式包装一个构件,可用于按条件渲染的构件依赖。\n *\n * 例如提供复杂弹层内容的按钮构件,其内容需要使用到一些大型构件,那么这些依赖可以使用 asyncWrapBrick,\n * 这样只有在需要时才会加载这些依赖的构件。\n */\n\n/**\n * 使用异步加载的方式包装一个构件,可用于按条件渲染的构件依赖。\n *\n * 例如提供复杂弹层内容的按钮构件,其内容需要使用到一些大型构件,那么这些依赖可以使用 asyncWrapBrick,\n * 这样只有在需要时才会加载这些依赖的构件。\n */\n\nexport async function asyncWrapBrick(brickName, eventsMapping) {\n await __secret_internals.loadBricks([brickName]);\n return wrapBrick(brickName, eventsMapping);\n}\n//# sourceMappingURL=asyncWrapBrick.js.map","import { useEffect, useState } from \"react\";\nimport { getRuntime } from \"@next-core/runtime\";\nexport function useNavConfig() {\n const [navConfig, setNavConfig] = useState(() => getRuntime().getNavConfig());\n useEffect(() => {\n const listener = event => {\n setNavConfig(event.detail);\n };\n window.addEventListener(\"navConfig.change\", listener);\n return () => window.removeEventListener(\"navConfig.change\", listener);\n }, []);\n return navConfig;\n}\n//# sourceMappingURL=useNavConfig.js.map","import { lazy, useMemo } from \"react\";\nimport { asyncWrapBrick } from \"./asyncWrapBrick.js\";\n\n/**\n * 使用 `React.lazy` 包装一个异步加载的构件。\n *\n * ```jsx\n * const DepComponent = useLazyWrapBrick(\"async-dep\");\n * return (\n * <Suspense fallback=\"Loading...\">\n * <DepComponent {...props} />\n * </Suspense>\n * );\n * ```\n */\n\n/**\n * 使用 `React.lazy` 包装一个异步加载的构件。\n *\n * ```jsx\n * const DepComponent = useLazyWrapBrick(\"async-dep\");\n * return (\n * <Suspense fallback=\"Loading...\">\n * <DepComponent {...props} />\n * </Suspense>\n * );\n * ```\n */\n\n/**\n * 使用 `React.lazy` 包装一个异步加载的构件。\n *\n * ```jsx\n * const DepComponent = useLazyWrapBrick(\"async-dep\");\n * return (\n * <Suspense fallback=\"Loading...\">\n * <DepComponent {...props} />\n * </Suspense>\n * );\n * ```\n */\n\n/**\n * 使用 `React.lazy` 包装一个异步加载的构件。\n *\n * ```jsx\n * const DepComponent = useLazyWrapBrick(\"async-dep\");\n * return (\n * <Suspense fallback=\"Loading...\">\n * <DepComponent {...props} />\n * </Suspense>\n * );\n * ```\n */\n\nexport function useLazyWrapBrick(brickName, eventsMapping) {\n return useMemo(() => {\n if (brickName != null) {\n return /*#__PURE__*/lazy(async () => ({\n default: await asyncWrapBrick(brickName, eventsMapping)\n }));\n }\n return null;\n }, [brickName, eventsMapping]);\n}\n//# sourceMappingURL=useLazyWrapBrick.js.map"],"names":["ReactUseBrick","_ref","useBrick","data","errorBoundary","refCallback","ignoredCallback","renderResult","setRenderResult","useState","mountResult","useRef","renderKey","setRenderKey","IdCounterRef","initialRenderId","useMemo","_secret_internals$ge","__secret_internals","getRenderId","call","useEffect","ignore","async","newRender","renderUseBrick","current","error","_secret_internals$ge2","newRenderId","isTheSameRender","console","handleHttpError","init","_refCallback","useCallback","element","mountUseBrick","unmountUseBrick","undefined","tagName","WebComponent","key","ref","ReactUseMultipleBricks","_ref2","Array","isArray","map","item","index","v2Kit","getV2RuntimeFromDll","SingleBrickAsComponentFactory","BrickAsComponentFactory","useCurrentTheme","currentTheme","setCurrentTheme","getCurrentTheme","listenToThemeChange","event","detail","window","addEventListener","removeEventListener","useRecentApps","recentApps","setRecentApps","getRuntime","getRecentApps","listener","useCurrentApp","currentApp","useRouteRender","routeRender","setRouteRender","useProviderArgsDefaults","provider","customOptions","onError","transform","oldData","newData","loading","suspense","cache","dependencies","Object","entries","reduce","acc","value","prototype","toString","cacheMap","Map","useProvider","requestInit","providerOrParamsOrGlobalOptions","globalOptionsOrDeps","deps","options","localOptions","isObject","customOptionKeys","keys","args","restOptions","includes","opts","useProviderArgs","arguments","defaults","setLoading","suspenseStatus","suspender","mounted","response","forceUpdate","useReducer","doFetch","providerArgs","newRes","promise","cacheKey","sortObj","obj","sort","k","_len","length","_key","sortedArgs","v","arg","isString","JSON","stringify","e","buildSortedCacheKey","has","delete","get","fetchByProvider","set","fetch","makeFetch","providerOrBody","providerStr","then","request","defineProperties","query","assign","asyncWrapBrick","brickName","eventsMapping","loadBricks","wrapBrick","useNavConfig","navConfig","setNavConfig","getNavConfig","useLazyWrapBrick","lazy","default"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[3171,5552],{5552:(n,e,t)=>{t.r(e),t.d(e,{i18n:()=>p,i18nText:()=>l,initializeI18n:()=>u});var i=t(5630),s=t(3922),r=t(848);let a=!1;const o=new Set;function u(n,e){if(a||(a=!0,s.i18n.use(r.default).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{}})),n&&e&&!o.has(n)){o.add(n);for(const[t,i]of Object.entries(e))s.i18n.addResourceBundle(t,n,i)}}var c=t(4427);function l(n){var e;if(!n)return;const t=null!==(e=s.i18n.language)&&void 0!==e?e:"zh-CN";if((0,c.hasOwnProperty)(n,t))return n[t];const i=t.split("-")[0];if(i!==t)return(0,c.hasOwnProperty)(n,i)?n[i]:void 0;const r=`${i}-`;for(const e of Object.keys(n))if(e.startsWith(r))return n[e]}const p=i.default}}]);
2
- //# sourceMappingURL=5552.5757666c.js.map
1
+ "use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[3171,5552],{5552:(n,e,t)=>{t.r(e),t.d(e,{i18n:()=>p,i18nText:()=>l,initializeI18n:()=>u});var i=t(5630),s=t(7448),r=t(848);let a=!1;const o=new Set;function u(n,e){if(a||(a=!0,s.i18n.use(r.default).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{}})),n&&e&&!o.has(n)){o.add(n);for(const[t,i]of Object.entries(e))s.i18n.addResourceBundle(t,n,i)}}var c=t(9005);function l(n){var e;if(!n)return;const t=null!==(e=s.i18n.language)&&void 0!==e?e:"zh-CN";if((0,c.hasOwnProperty)(n,t))return n[t];const i=t.split("-")[0];if(i!==t)return(0,c.hasOwnProperty)(n,i)?n[i]:void 0;const r=`${i}-`;for(const e of Object.keys(n))if(e.startsWith(r))return n[e]}const p=i.default}}]);
2
+ //# sourceMappingURL=5552.075020be.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/5552.5757666c.js","mappings":"qOAEA,IAAIA,GAAc,EAClB,MAAMC,EAAwB,IAAIC,IAC3B,SAASC,EAAeC,EAAIC,GAwBjC,GAvBKL,IACHA,GAAc,EACd,EAAAM,KAICC,IAAmF,WAEnFC,KAAK,CACJC,YAAa,KACbC,OAAO,EACPC,cAAe,CAAC,KAAM,MACtBC,0BAA0B,EAC1BC,cAAe,CACbC,aAAa,GAEfC,MAAO,CACLC,aAAa,GAEfC,kBAAmB,KACnBC,UAAW,CAAC,KAGXd,GAAOC,IAAWJ,EAAsBkB,IAAIf,GAAjD,CAGAH,EAAsBmB,IAAIhB,GAC1B,IAAK,MAAOiB,EAAMH,KAAcI,OAAOC,QAAQlB,GAC7C,EAAAC,KAAKkB,kBAAkBH,EAAMjB,EAAIc,EAHnC,CAKF,C,cCjCO,SAASO,EAASC,GACvB,IAAIC,EACJ,IAAKD,EACH,OAEF,MAAME,EAAgD,QAApCD,EAAiB,EAAArB,KAAKsB,gBAAyC,IAAnBD,EAA4BA,EAAiB,QAE3G,IAAI,IAAAE,gBAAeH,EAAME,GACvB,OAAOF,EAAKE,GAGd,MAAME,EAAkBF,EAASG,MAAM,KAAK,GAC5C,GAAID,IAAoBF,EAGtB,OAAO,IAAAC,gBAAeH,EAAMI,GAAmBJ,EAAKI,QAAmBE,EAKzE,MAAMC,EAAS,GAAGH,KAClB,IAAK,MAAMI,KAAOZ,OAAOa,KAAKT,GAC5B,GAAIQ,EAAIE,WAAWH,GACjB,OAAOP,EAAKQ,EAGlB,CC3BO,MAAM5B,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\";\nlet initialized = false;\nconst 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 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 (const [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 const 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 const 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 const prefix = `${primaryLanguage}-`;\n for (const 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 const 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","use","init","fallbackLng","debug","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","has","add","lang","Object","entries","addResourceBundle","i18nText","data","_i18n$language","language","hasOwnProperty","primaryLanguage","split","undefined","prefix","key","keys","startsWith"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/5552.075020be.js","mappings":"qOAEA,IAAIA,GAAc,EAClB,MAAMC,EAAwB,IAAIC,IAC3B,SAASC,EAAeC,EAAIC,GAwBjC,GAvBKL,IACHA,GAAc,EACd,EAAAM,KAICC,IAAmF,WAEnFC,KAAK,CACJC,YAAa,KACbC,OAAO,EACPC,cAAe,CAAC,KAAM,MACtBC,0BAA0B,EAC1BC,cAAe,CACbC,aAAa,GAEfC,MAAO,CACLC,aAAa,GAEfC,kBAAmB,KACnBC,UAAW,CAAC,KAGXd,GAAOC,IAAWJ,EAAsBkB,IAAIf,GAAjD,CAGAH,EAAsBmB,IAAIhB,GAC1B,IAAK,MAAOiB,EAAMH,KAAcI,OAAOC,QAAQlB,GAC7C,EAAAC,KAAKkB,kBAAkBH,EAAMjB,EAAIc,EAHnC,CAKF,C,cCjCO,SAASO,EAASC,GACvB,IAAIC,EACJ,IAAKD,EACH,OAEF,MAAME,EAAgD,QAApCD,EAAiB,EAAArB,KAAKsB,gBAAyC,IAAnBD,EAA4BA,EAAiB,QAE3G,IAAI,IAAAE,gBAAeH,EAAME,GACvB,OAAOF,EAAKE,GAGd,MAAME,EAAkBF,EAASG,MAAM,KAAK,GAC5C,GAAID,IAAoBF,EAGtB,OAAO,IAAAC,gBAAeH,EAAMI,GAAmBJ,EAAKI,QAAmBE,EAKzE,MAAMC,EAAS,GAAGH,KAClB,IAAK,MAAMI,KAAOZ,OAAOa,KAAKT,GAC5B,GAAIQ,EAAIE,WAAWH,GACjB,OAAOP,EAAKQ,EAGlB,CC3BO,MAAM5B,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\";\nlet initialized = false;\nconst 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 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 (const [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 const 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 const 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 const prefix = `${primaryLanguage}-`;\n for (const 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 const 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","use","init","fallbackLng","debug","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","has","add","lang","Object","entries","addResourceBundle","i18nText","data","_i18n$language","language","hasOwnProperty","primaryLanguage","split","undefined","prefix","key","keys","startsWith"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[3933,6314],{3933:(e,t,o)=>{function n(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,s){if("string"==typeof t?r.name===t:t.includes(r.name)){const t=[];for(let i=1;i<=o;i++){const o=s[s.length-i];if("MemberExpression"===(null==o?void 0:o.node.type)&&"object"===o.key){const s=o.node;s.computed||"Identifier"!==s.property.type?s.computed&&"Literal"===s.property.type&&"string"==typeof s.property.value?t.push(n?`${r.name}.${s.property.value}`:s.property.value):e.hasNonStaticUsage=!0:t.push(n?`${r.name}.${s.property.name}`:s.property.name)}else e.hasNonStaticUsage=!0}t.length===o&&e.usedProperties.add(t.join("."))}}}function r(e,t){return function(o,n,r){if(n.name===e){const e=r[r.length-1],n=r[r.length-2];if("CallExpression"===(null==n?void 0:n.node.type)&&"callee"===(null==n?void 0:n.key)&&"MemberExpression"===(null==e?void 0:e.node.type)&&"object"===e.key&&(e.node.computed?"Literal"===e.node.property.type&&e.node.property.value===t:"Identifier"===e.node.property.type&&e.node.property.name===t)){const e=n.node.arguments;if(e.length>0){const t=e[0];"Literal"===t.type&&"string"==typeof t.value?o.usedArgs.add(t.value):o.hasNonStaticUsage=!0}}}}}o.r(t),o.d(t,{beforeVisitGlobalMember:()=>n,collectAppGetMenuUsage:()=>s,collectInstalledAppsHasUsage:()=>i,collectMemberUsage:()=>p,collectMemberUsageInFunction:()=>S,createProviderClass:()=>c.createProviderClass,scanPermissionActionsInAny:()=>P,scanPermissionActionsInStoryboard:()=>b,strictCollectMemberUsage:()=>l,track:()=>f,trackAll:()=>y,traverseStoryboardExpressions:()=>u,traverseStoryboardFunction:()=>g,traverseStoryboardFunctions:()=>h,unwrapProvider:()=>c.unwrapProvider});const s=r("APP","getMenu"),i=r("INSTALLED_APPS","has");var a=o(1321),c=o(4427);function u(e,t,o){const n=new WeakSet,{matchExpressionString:r,visitNotMatchedExpressionString:s,visitNonExpressionString:i,visitObject:u}="string"==typeof o?{matchExpressionString:e=>e.includes(o)}:o;!function e(o){if("string"==typeof o)if((0,a.isEvaluable)(o))if(r(o))try{(0,a.preevaluate)(o,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal(e,n){t(e,n,o)}}})}catch(e){console.error("Parse storyboard expression failed:",e)}else null==s||s(o);else null==i||i(o);else if((0,c.isObject)(o)){if(n.has(o))return;n.add(o),null==u||u(o);for(const t of Array.isArray(o)?o:Object.values(o))e(t)}}(e)}function l(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const{hasNonStaticUsage:n,nonStaticUsage:r,usedProperties:s}=p(e,t,o);if(n)throw new Error(`Non-static usage of ${t} is prohibited, check your expression: "${r}"`);return s}function p(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r={usedProperties:new Set,hasNonStaticUsage:!1},s=n(r,t,o);return u(e,((e,t,o)=>{s(e,t),r.hasNonStaticUsage&&(r.nonStaticUsage=o)}),t),r}const d=["CTX","STATE","FORM_STATE"];function f(e,t,o){if(e.includes(t)){const r={usedProperties:new Set,hasNonStaticUsage:!1},{expression:s}=(0,a.preevaluate)(e,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal:n(r,o)}});let i;if("SequenceExpression"===s.type&&(i=s.expressions[0])&&"Literal"===i.type&&i.value===t){if(r.usedProperties.size>0)return r.usedProperties;console.warn(`You are using "${t}" but no \`${o}\` usage found in your expression: ${JSON.stringify(e)}`)}}return!1}function y(e){if(d.some((t=>e.includes(t)))){const t={usedProperties:new Set,hasNonStaticUsage:!1};if((0,a.preevaluate)(e,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal:n(t,d,1,!0)}}),t.usedProperties.size>0){const e=[...t.usedProperties],o={context:!1,state:!1,formState:!1},n={CTX:"context",STATE:"state",FORM_STATE:"formState"};return e.forEach((e=>{const[t,r]=e.split(".");o[n[t]]||(o[n[t]]=[]),o[n[t]].push(r)})),o}console.warn(`You are using track all but no "CTX" or "STATE" or "FORM_STATE" usage found in your expression: ${JSON.stringify(e)}`)}return!1}function h(e,t,o){if(Array.isArray(e))for(const n of e)null!=o&&o.matchSource&&!o.matchSource(n.source)||g(n,t)}function g(e,t,o){try{(0,a.precookFunction)(e.source,{typescript:e.typescript,withParent:!0,hooks:{beforeVisitGlobal:t},cacheKey:e})}catch(t){o||console.error(`Parse storyboard function "${e.name}" failed:`,t)}}function S(e,t,o){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const s={usedProperties:new Set,hasNonStaticUsage:!1};if(e.source.includes(t)&&g(e,n(s,t,r),o),s.hasNonStaticUsage&&!o)throw new Error(`Non-static usage of ${t} is prohibited, check your function: "${e.name}"`);return s.usedProperties.delete(e.name),s.usedProperties}const v="PERMISSIONS",m="check";function b(e){var t;const o=new Set,n=k(o),{customTemplates:r,functions:s}=null!==(t=e.meta)&&void 0!==t?t:{};return u([e.routes,r],n,v),h(s,n,{matchSource:e=>e.includes(v)}),Array.from(o)}function P(e){const t=new Set;return u(e,k(t),v),Array.from(t)}function k(e){return function(t,o){if(t.name===v){const t=o[o.length-1],n=o[o.length-2];if("CallExpression"===(null==n?void 0:n.node.type)&&"callee"===(null==n?void 0:n.key)&&"MemberExpression"===(null==t?void 0:t.node.type)&&"object"===t.key&&(t.node.computed?"Literal"===t.node.property.type&&t.node.property.value===m:"Identifier"===t.node.property.type&&t.node.property.name===m))for(const t of n.node.arguments)"Literal"===t.type&&"string"==typeof t.value&&e.add(t.value)}}}}}]);
2
- //# sourceMappingURL=6314.a92d20d9.js.map
1
+ "use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[3933,6314],{3933:(e,t,o)=>{function n(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,s){if("string"==typeof t?r.name===t:t.includes(r.name)){const t=[];for(let i=1;i<=o;i++){const o=s[s.length-i];if("MemberExpression"===(null==o?void 0:o.node.type)&&"object"===o.key){const s=o.node;s.computed||"Identifier"!==s.property.type?s.computed&&"Literal"===s.property.type&&"string"==typeof s.property.value?t.push(n?`${r.name}.${s.property.value}`:s.property.value):e.hasNonStaticUsage=!0:t.push(n?`${r.name}.${s.property.name}`:s.property.name)}else e.hasNonStaticUsage=!0}t.length===o&&e.usedProperties.add(t.join("."))}}}function r(e,t){return function(o,n,r){if(n.name===e){const e=r[r.length-1],n=r[r.length-2];if("CallExpression"===(null==n?void 0:n.node.type)&&"callee"===(null==n?void 0:n.key)&&"MemberExpression"===(null==e?void 0:e.node.type)&&"object"===e.key&&(e.node.computed?"Literal"===e.node.property.type&&e.node.property.value===t:"Identifier"===e.node.property.type&&e.node.property.name===t)){const e=n.node.arguments;if(e.length>0){const t=e[0];"Literal"===t.type&&"string"==typeof t.value?o.usedArgs.add(t.value):o.hasNonStaticUsage=!0}}}}}o.r(t),o.d(t,{beforeVisitGlobalMember:()=>n,collectAppGetMenuUsage:()=>s,collectInstalledAppsHasUsage:()=>i,collectMemberUsage:()=>p,collectMemberUsageInFunction:()=>S,createProviderClass:()=>c.createProviderClass,scanPermissionActionsInAny:()=>P,scanPermissionActionsInStoryboard:()=>b,strictCollectMemberUsage:()=>l,track:()=>f,trackAll:()=>y,traverseStoryboardExpressions:()=>u,traverseStoryboardFunction:()=>g,traverseStoryboardFunctions:()=>h,unwrapProvider:()=>c.unwrapProvider});const s=r("APP","getMenu"),i=r("INSTALLED_APPS","has");var a=o(1321),c=o(9005);function u(e,t,o){const n=new WeakSet,{matchExpressionString:r,visitNotMatchedExpressionString:s,visitNonExpressionString:i,visitObject:u}="string"==typeof o?{matchExpressionString:e=>e.includes(o)}:o;!function e(o){if("string"==typeof o)if((0,a.isEvaluable)(o))if(r(o))try{(0,a.preevaluate)(o,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal(e,n){t(e,n,o)}}})}catch(e){console.error("Parse storyboard expression failed:",e)}else null==s||s(o);else null==i||i(o);else if((0,c.isObject)(o)){if(n.has(o))return;n.add(o),null==u||u(o);for(const t of Array.isArray(o)?o:Object.values(o))e(t)}}(e)}function l(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const{hasNonStaticUsage:n,nonStaticUsage:r,usedProperties:s}=p(e,t,o);if(n)throw new Error(`Non-static usage of ${t} is prohibited, check your expression: "${r}"`);return s}function p(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r={usedProperties:new Set,hasNonStaticUsage:!1},s=n(r,t,o);return u(e,((e,t,o)=>{s(e,t),r.hasNonStaticUsage&&(r.nonStaticUsage=o)}),t),r}const d=["CTX","STATE","FORM_STATE"];function f(e,t,o){if(e.includes(t)){const r={usedProperties:new Set,hasNonStaticUsage:!1},{expression:s}=(0,a.preevaluate)(e,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal:n(r,o)}});let i;if("SequenceExpression"===s.type&&(i=s.expressions[0])&&"Literal"===i.type&&i.value===t){if(r.usedProperties.size>0)return r.usedProperties;console.warn(`You are using "${t}" but no \`${o}\` usage found in your expression: ${JSON.stringify(e)}`)}}return!1}function y(e){if(d.some((t=>e.includes(t)))){const t={usedProperties:new Set,hasNonStaticUsage:!1};if((0,a.preevaluate)(e,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal:n(t,d,1,!0)}}),t.usedProperties.size>0){const e=[...t.usedProperties],o={context:!1,state:!1,formState:!1},n={CTX:"context",STATE:"state",FORM_STATE:"formState"};return e.forEach((e=>{const[t,r]=e.split(".");o[n[t]]||(o[n[t]]=[]),o[n[t]].push(r)})),o}console.warn(`You are using track all but no "CTX" or "STATE" or "FORM_STATE" usage found in your expression: ${JSON.stringify(e)}`)}return!1}function h(e,t,o){if(Array.isArray(e))for(const n of e)null!=o&&o.matchSource&&!o.matchSource(n.source)||g(n,t)}function g(e,t,o){try{(0,a.precookFunction)(e.source,{typescript:e.typescript,withParent:!0,hooks:{beforeVisitGlobal:t},cacheKey:e})}catch(t){o||console.error(`Parse storyboard function "${e.name}" failed:`,t)}}function S(e,t,o){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const s={usedProperties:new Set,hasNonStaticUsage:!1};if(e.source.includes(t)&&g(e,n(s,t,r),o),s.hasNonStaticUsage&&!o)throw new Error(`Non-static usage of ${t} is prohibited, check your function: "${e.name}"`);return s.usedProperties.delete(e.name),s.usedProperties}const v="PERMISSIONS",m="check";function b(e){var t;const o=new Set,n=k(o),{customTemplates:r,functions:s}=null!==(t=e.meta)&&void 0!==t?t:{};return u([e.routes,r],n,v),h(s,n,{matchSource:e=>e.includes(v)}),Array.from(o)}function P(e){const t=new Set;return u(e,k(t),v),Array.from(t)}function k(e){return function(t,o){if(t.name===v){const t=o[o.length-1],n=o[o.length-2];if("CallExpression"===(null==n?void 0:n.node.type)&&"callee"===(null==n?void 0:n.key)&&"MemberExpression"===(null==t?void 0:t.node.type)&&"object"===t.key&&(t.node.computed?"Literal"===t.node.property.type&&t.node.property.value===m:"Identifier"===t.node.property.type&&t.node.property.name===m))for(const t of n.node.arguments)"Literal"===t.type&&"string"==typeof t.value&&e.add(t.value)}}}}}]);
2
+ //# sourceMappingURL=6314.b04ccf93.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/6314.a92d20d9.js","mappings":"qIAAO,SAASA,EAAwBC,EAAOC,GAC7C,IAAIC,EAAQC,UAAUC,OAAS,QAAsBC,IAAjBF,UAAU,GAAmBA,UAAU,GAAK,EAC5EG,EAAqBH,UAAUC,OAAS,QAAsBC,IAAjBF,UAAU,IAAmBA,UAAU,GACxF,OAAO,SAA2BI,EAAMC,GACtC,GAA0B,iBAAfP,EAA0BM,EAAKE,OAASR,EAAaA,EAAWS,SAASH,EAAKE,MAAO,CAC9F,MAAME,EAAW,GACjB,IAAK,IAAIC,EAAI,EAAGA,GAAKV,EAAOU,IAAK,CAC/B,MAAMC,EAAeL,EAAOA,EAAOJ,OAASQ,GAC5C,GAA6F,sBAAxFC,aAAmD,EAASA,EAAaN,KAAKO,OAAqD,WAArBD,EAAaE,IAAkB,CAChJ,MAAMC,EAAaH,EAAaN,KAC3BS,EAAWC,UAAyC,eAA7BD,EAAWE,SAASJ,KAErCE,EAAWC,UAAyC,YAA7BD,EAAWE,SAASJ,MAA2D,iBAA9BE,EAAWE,SAASC,MACrGR,EAASS,KAAKd,EAAqB,GAAGC,EAAKE,QAAQO,EAAWE,SAASC,QAAUH,EAAWE,SAASC,OAErGnB,EAAMqB,mBAAoB,EAJ1BV,EAASS,KAAKd,EAAqB,GAAGC,EAAKE,QAAQO,EAAWE,SAAST,OAASO,EAAWE,SAAST,KAMxG,MACET,EAAMqB,mBAAoB,CAE9B,CACIV,EAASP,SAAWF,GACtBF,EAAMsB,eAAeC,IAAIZ,EAASa,KAAK,KAE3C,CACF,CACF,CC1BA,SAASC,EAA8BC,EAAQR,GAC7C,OAAO,SAAgClB,EAAOO,EAAMC,GAClD,GAAID,EAAKE,OAASiB,EAAQ,CACxB,MAAMb,EAAeL,EAAOA,EAAOJ,OAAS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A+C,EAASA,EAAWZ,MAA8G,sBAAxFF,aAAmD,EAASA,EAAaN,KAAKO,OAAqD,WAArBD,EAAaE,MAAqBF,EAAaN,KAAKU,SAA+C,YAApCJ,EAAaN,KAAKW,SAASJ,MAAsBD,EAAaN,KAAKW,SAASC,QAAUmF,EAA4C,eAApCzF,EAAaN,KAAKW,SAASJ,MAAyBD,EAAaN,KAAKW,SAAST,OAAS6F,GACtiB,IAAK,MAAMY,KAAOvF,EAAWpB,KAAKJ,UACf,YAAb+G,EAAIpG,MAA2C,iBAAdoG,EAAI/F,OACvCuF,EAAWnF,IAAI2F,EAAI/F,MAI3B,CACF,CACF,C","sources":["webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/beforeVisitGlobalMember.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/collectMemberCallUsage.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/traverse.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/collectMemberUsage.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/track.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/functions/traverse.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/functions/collectMemberUsageInFunction.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/permissions.js"],"sourcesContent":["export function beforeVisitGlobalMember(usage, objectName) {\n let level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n let rememberObjectName = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n return function beforeVisitGlobal(node, parent) {\n if (typeof objectName === \"string\" ? node.name === objectName : objectName.includes(node.name)) {\n const segments = [];\n for (let i = 1; i <= level; i++) {\n const memberParent = parent[parent.length - i];\n if ((memberParent === null || memberParent === void 0 ? void 0 : memberParent.node.type) === \"MemberExpression\" && memberParent.key === \"object\") {\n const memberNode = memberParent.node;\n if (!memberNode.computed && memberNode.property.type === \"Identifier\") {\n segments.push(rememberObjectName ? `${node.name}.${memberNode.property.name}` : memberNode.property.name);\n } else if (memberNode.computed && memberNode.property.type === \"Literal\" && typeof memberNode.property.value === \"string\") {\n segments.push(rememberObjectName ? `${node.name}.${memberNode.property.value}` : memberNode.property.value);\n } else {\n usage.hasNonStaticUsage = true;\n }\n } else {\n usage.hasNonStaticUsage = true;\n }\n }\n if (segments.length === level) {\n usage.usedProperties.add(segments.join(\".\"));\n }\n }\n };\n}\n//# sourceMappingURL=beforeVisitGlobalMember.js.map","function collectMemberCallUsageFactory(object, property) {\n return function collectMemberCallUsage(usage, node, parent) {\n if (node.name === object) {\n const memberParent = parent[parent.length - 1];\n const callParent = parent[parent.length - 2];\n if ((callParent === null || callParent === void 0 ? void 0 : callParent.node.type) === \"CallExpression\" && (callParent === null || callParent === void 0 ? void 0 : callParent.key) === \"callee\" && (memberParent === null || memberParent === void 0 ? void 0 : memberParent.node.type) === \"MemberExpression\" && memberParent.key === \"object\" && (memberParent.node.computed ? memberParent.node.property.type === \"Literal\" && memberParent.node.property.value === property : memberParent.node.property.type === \"Identifier\" && memberParent.node.property.name === property)) {\n const args = callParent.node.arguments;\n if (args.length > 0) {\n const firstArg = args[0];\n if (firstArg.type === \"Literal\" && typeof firstArg.value === \"string\") {\n usage.usedArgs.add(firstArg.value);\n } else {\n usage.hasNonStaticUsage = true;\n }\n }\n }\n }\n };\n}\nexport const collectAppGetMenuUsage = collectMemberCallUsageFactory(\"APP\", \"getMenu\");\nexport const collectInstalledAppsHasUsage = collectMemberCallUsageFactory(\"INSTALLED_APPS\", \"has\");\n//# sourceMappingURL=collectMemberCallUsage.js.map","import { isEvaluable, preevaluate } from \"@next-core/cook\";\nimport { isObject } from \"@next-core/utils/general\";\nexport function traverseStoryboardExpressions(data, beforeVisitGlobal,\n// If `options` is a string, it means the *keyword*.\noptions) {\n const memo = new WeakSet();\n const {\n matchExpressionString,\n visitNotMatchedExpressionString,\n visitNonExpressionString,\n visitObject\n } = typeof options === \"string\" ? {\n matchExpressionString: v => v.includes(options)\n } : options;\n function traverse(value) {\n if (typeof value === \"string\") {\n if (isEvaluable(value)) {\n if (matchExpressionString(value)) {\n try {\n preevaluate(value, {\n cache: true,\n withParent: true,\n hooks: {\n beforeVisitGlobal(node, parent) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n beforeVisitGlobal(node, parent, value);\n }\n }\n });\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(\"Parse storyboard expression failed:\", error);\n }\n } else {\n visitNotMatchedExpressionString === null || visitNotMatchedExpressionString === void 0 || visitNotMatchedExpressionString(value);\n }\n } else {\n visitNonExpressionString === null || visitNonExpressionString === void 0 || visitNonExpressionString(value);\n }\n } else if (isObject(value)) {\n // Avoid call stack overflow.\n if (memo.has(value)) {\n return;\n }\n memo.add(value);\n visitObject === null || visitObject === void 0 || visitObject(value);\n for (const item of Array.isArray(value) ? value : Object.values(value)) {\n traverse(item);\n }\n }\n }\n traverse(data);\n}\n//# sourceMappingURL=traverse.js.map","import { beforeVisitGlobalMember } from \"./beforeVisitGlobalMember.js\";\nimport { traverseStoryboardExpressions } from \"./traverse.js\";\nexport function strictCollectMemberUsage(data, objectName) {\n let level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n const {\n hasNonStaticUsage,\n nonStaticUsage,\n usedProperties\n } = collectMemberUsage(data, objectName, level);\n if (hasNonStaticUsage) {\n throw new Error(`Non-static usage of ${objectName} is prohibited, check your expression: \"${nonStaticUsage}\"`);\n }\n return usedProperties;\n}\nexport function collectMemberUsage(data, objectName) {\n let level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n const usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n const beforeVisitGlobal = beforeVisitGlobalMember(usage, objectName, level);\n traverseStoryboardExpressions(data, (node, parent, expr) => {\n beforeVisitGlobal(node, parent);\n if (usage.hasNonStaticUsage) {\n usage.nonStaticUsage = expr;\n }\n }, objectName);\n return usage;\n}\n//# sourceMappingURL=collectMemberUsage.js.map","import { preevaluate } from \"@next-core/cook\";\nimport { beforeVisitGlobalMember } from \"./beforeVisitGlobalMember.js\";\nconst TRACK_NAMES = [\"CTX\", \"STATE\", \"FORM_STATE\"];\nexport function track(raw, trackText, variableName) {\n if (raw.includes(trackText)) {\n const usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n const {\n expression\n } = preevaluate(raw, {\n cache: true,\n withParent: true,\n hooks: {\n beforeVisitGlobal: beforeVisitGlobalMember(usage, variableName)\n }\n });\n let trackCtxExp;\n if (expression.type === \"SequenceExpression\" && (trackCtxExp = expression.expressions[0]) && trackCtxExp.type === \"Literal\" && trackCtxExp.value === trackText) {\n if (usage.usedProperties.size > 0) {\n return usage.usedProperties;\n } else {\n // eslint-disable-next-line no-console\n console.warn(`You are using \"${trackText}\" but no \\`${variableName}\\` usage found in your expression: ${JSON.stringify(raw)}`);\n }\n }\n }\n return false;\n}\nexport function trackAll(raw) {\n // Do not pre-evaluate a string if it doesn't include track names.\n if (TRACK_NAMES.some(name => raw.includes(name))) {\n const usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n preevaluate(raw, {\n cache: true,\n withParent: true,\n hooks: {\n beforeVisitGlobal: beforeVisitGlobalMember(usage, TRACK_NAMES, 1, true)\n }\n });\n if (usage.usedProperties.size > 0) {\n const usedProperties = [...usage.usedProperties];\n const result = {\n context: false,\n state: false,\n formState: false\n };\n const keyMap = {\n CTX: \"context\",\n STATE: \"state\",\n FORM_STATE: \"formState\"\n };\n usedProperties.forEach(item => {\n const [key, name] = item.split(\".\");\n if (!result[keyMap[key]]) {\n result[keyMap[key]] = [];\n }\n result[keyMap[key]].push(name);\n });\n return result;\n } else {\n // eslint-disable-next-line no-console\n console.warn(`You are using track all but no \"CTX\" or \"STATE\" or \"FORM_STATE\" usage found in your expression: ${JSON.stringify(raw)}`);\n }\n }\n return false;\n}\n//# sourceMappingURL=track.js.map","import { precookFunction } from \"@next-core/cook\";\nexport function traverseStoryboardFunctions(functions, beforeVisitGlobal, options) {\n if (Array.isArray(functions)) {\n for (const fn of functions) {\n if (!(options !== null && options !== void 0 && options.matchSource) || options.matchSource(fn.source)) {\n traverseStoryboardFunction(fn, beforeVisitGlobal);\n }\n }\n }\n}\nexport function traverseStoryboardFunction(fn, beforeVisitGlobal, silentErrors) {\n try {\n precookFunction(fn.source, {\n typescript: fn.typescript,\n withParent: true,\n hooks: {\n beforeVisitGlobal\n },\n cacheKey: fn\n });\n } catch (error) {\n if (!silentErrors) {\n // eslint-disable-next-line no-console\n console.error(`Parse storyboard function \"${fn.name}\" failed:`, error);\n }\n }\n}\n//# sourceMappingURL=traverse.js.map","import { beforeVisitGlobalMember } from \"../expressions/beforeVisitGlobalMember.js\";\nimport { traverseStoryboardFunction } from \"./traverse.js\";\nexport function collectMemberUsageInFunction(fn, objectName, silentErrors) {\n let level = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;\n const usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n if (fn.source.includes(objectName)) {\n traverseStoryboardFunction(fn, beforeVisitGlobalMember(usage, objectName, level), silentErrors);\n }\n if (usage.hasNonStaticUsage && !silentErrors) {\n throw new Error(`Non-static usage of ${objectName} is prohibited, check your function: \"${fn.name}\"`);\n }\n usage.usedProperties.delete(fn.name);\n return usage.usedProperties;\n}\n//# sourceMappingURL=collectMemberUsageInFunction.js.map","import { traverseStoryboardExpressions } from \"./expressions/index.js\";\nimport { traverseStoryboardFunctions } from \"./functions/index.js\";\nconst PERMISSIONS = \"PERMISSIONS\";\nconst check = \"check\";\nexport function scanPermissionActionsInStoryboard(storyboard) {\n var _storyboard$meta;\n const collection = new Set();\n const beforeVisitPermissions = beforeVisitPermissionsFactory(collection);\n const {\n customTemplates,\n functions\n } = (_storyboard$meta = storyboard.meta) !== null && _storyboard$meta !== void 0 ? _storyboard$meta : {};\n traverseStoryboardExpressions([storyboard.routes, customTemplates], beforeVisitPermissions, PERMISSIONS);\n traverseStoryboardFunctions(functions, beforeVisitPermissions, {\n matchSource(source) {\n return source.includes(PERMISSIONS);\n }\n });\n return Array.from(collection);\n}\nexport function scanPermissionActionsInAny(data) {\n const collection = new Set();\n traverseStoryboardExpressions(data, beforeVisitPermissionsFactory(collection), PERMISSIONS);\n return Array.from(collection);\n}\nfunction beforeVisitPermissionsFactory(collection) {\n return function beforeVisitPermissions(node, parent) {\n if (node.name === PERMISSIONS) {\n const memberParent = parent[parent.length - 1];\n const callParent = parent[parent.length - 2];\n if ((callParent === null || callParent === void 0 ? void 0 : callParent.node.type) === \"CallExpression\" && (callParent === null || callParent === void 0 ? void 0 : callParent.key) === \"callee\" && (memberParent === null || memberParent === void 0 ? void 0 : memberParent.node.type) === \"MemberExpression\" && memberParent.key === \"object\" && (memberParent.node.computed ? memberParent.node.property.type === \"Literal\" && memberParent.node.property.value === check : memberParent.node.property.type === \"Identifier\" && memberParent.node.property.name === check)) {\n for (const arg of callParent.node.arguments) {\n if (arg.type === \"Literal\" && typeof arg.value === \"string\") {\n collection.add(arg.value);\n }\n }\n }\n }\n };\n}\n//# sourceMappingURL=permissions.js.map"],"names":["beforeVisitGlobalMember","usage","objectName","level","arguments","length","undefined","rememberObjectName","node","parent","name","includes","segments","i","memberParent","type","key","memberNode","computed","property","value","push","hasNonStaticUsage","usedProperties","add","join","collectMemberCallUsageFactory","object","callParent","args","firstArg","usedArgs","collectAppGetMenuUsage","collectInstalledAppsHasUsage","traverseStoryboardExpressions","data","beforeVisitGlobal","options","memo","WeakSet","matchExpressionString","visitNotMatchedExpressionString","visitNonExpressionString","visitObject","v","traverse","isEvaluable","preevaluate","cache","withParent","hooks","error","console","isObject","has","item","Array","isArray","Object","values","strictCollectMemberUsage","nonStaticUsage","collectMemberUsage","Error","Set","expr","TRACK_NAMES","track","raw","trackText","variableName","expression","trackCtxExp","expressions","size","warn","JSON","stringify","trackAll","some","result","context","state","formState","keyMap","CTX","STATE","FORM_STATE","forEach","split","traverseStoryboardFunctions","functions","fn","matchSource","source","traverseStoryboardFunction","silentErrors","precookFunction","typescript","cacheKey","collectMemberUsageInFunction","delete","PERMISSIONS","check","scanPermissionActionsInStoryboard","storyboard","_storyboard$meta","collection","beforeVisitPermissions","beforeVisitPermissionsFactory","customTemplates","meta","routes","from","scanPermissionActionsInAny","arg"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/6314.b04ccf93.js","mappings":"qIAAO,SAASA,EAAwBC,EAAOC,GAC7C,IAAIC,EAAQC,UAAUC,OAAS,QAAsBC,IAAjBF,UAAU,GAAmBA,UAAU,GAAK,EAC5EG,EAAqBH,UAAUC,OAAS,QAAsBC,IAAjBF,UAAU,IAAmBA,UAAU,GACxF,OAAO,SAA2BI,EAAMC,GACtC,GAA0B,iBAAfP,EAA0BM,EAAKE,OAASR,EAAaA,EAAWS,SAASH,EAAKE,MAAO,CAC9F,MAAME,EAAW,GACjB,IAAK,IAAIC,EAAI,EAAGA,GAAKV,EAAOU,IAAK,CAC/B,MAAMC,EAAeL,EAAOA,EAAOJ,OAASQ,GAC5C,GAA6F,sBAAxFC,aAAmD,EAASA,EAAaN,KAAKO,OAAqD,WAArBD,EAAaE,IAAkB,CAChJ,MAAMC,EAAaH,EAAaN,KAC3BS,EAAWC,UAAyC,eAA7BD,EAAWE,SAASJ,KAErCE,EAAWC,UAAyC,YAA7BD,EAAWE,SAASJ,MAA2D,iBAA9BE,EAAWE,SAASC,MACrGR,EAASS,KAAKd,EAAqB,GAAGC,EAAKE,QAAQO,EAAWE,SAASC,QAAUH,EAAWE,SAASC,OAErGnB,EAAMqB,mBAAoB,EAJ1BV,EAASS,KAAKd,EAAqB,GAAGC,EAAKE,QAAQO,EAAWE,SAAST,OAASO,EAAWE,SAAST,KAMxG,MACET,EAAMqB,mBAAoB,CAE9B,CACIV,EAASP,SAAWF,GACtBF,EAAMsB,eAAeC,IAAIZ,EAASa,KAAK,KAE3C,CACF,CACF,CC1BA,SAASC,EAA8BC,EAAQR,GAC7C,OAAO,SAAgClB,EAAOO,E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,OAAS,GAC1C,GAAuF,oBAAlFuB,aAA+C,EAASA,EAAWpB,KAAKO,OAA2G,YAA5Ea,aAA+C,EAASA,EAAWZ,MAA8G,sBAAxFF,aAAmD,EAASA,EAAaN,KAAKO,OAAqD,WAArBD,EAAaE,MAAqBF,EAAaN,KAAKU,SAA+C,YAApCJ,EAAaN,KAAKW,SAASJ,MAAsBD,EAAaN,KAAKW,SAASC,QAAUmF,EAA4C,eAApCzF,EAAaN,KAAKW,SAASJ,MAAyBD,EAAaN,KAAKW,SAAST,OAAS6F,GACtiB,IAAK,MAAMY,KAAOvF,EAAWpB,KAAKJ,UACf,YAAb+G,EAAIpG,MAA2C,iBAAdoG,EAAI/F,OACvCuF,EAAWnF,IAAI2F,EAAI/F,MAI3B,CACF,CACF,C","sources":["webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/beforeVisitGlobalMember.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/collectMemberCallUsage.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/traverse.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/collectMemberUsage.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/expressions/track.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/functions/traverse.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/functions/collectMemberUsageInFunction.js","webpack:///../../node_modules/@next-core/utils/dist/esm/storyboard/permissions.js"],"sourcesContent":["export function beforeVisitGlobalMember(usage, objectName) {\n let level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n let rememberObjectName = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n return function beforeVisitGlobal(node, parent) {\n if (typeof objectName === \"string\" ? node.name === objectName : objectName.includes(node.name)) {\n const segments = [];\n for (let i = 1; i <= level; i++) {\n const memberParent = parent[parent.length - i];\n if ((memberParent === null || memberParent === void 0 ? void 0 : memberParent.node.type) === \"MemberExpression\" && memberParent.key === \"object\") {\n const memberNode = memberParent.node;\n if (!memberNode.computed && memberNode.property.type === \"Identifier\") {\n segments.push(rememberObjectName ? `${node.name}.${memberNode.property.name}` : memberNode.property.name);\n } else if (memberNode.computed && memberNode.property.type === \"Literal\" && typeof memberNode.property.value === \"string\") {\n segments.push(rememberObjectName ? `${node.name}.${memberNode.property.value}` : memberNode.property.value);\n } else {\n usage.hasNonStaticUsage = true;\n }\n } else {\n usage.hasNonStaticUsage = true;\n }\n }\n if (segments.length === level) {\n usage.usedProperties.add(segments.join(\".\"));\n }\n }\n };\n}\n//# sourceMappingURL=beforeVisitGlobalMember.js.map","function collectMemberCallUsageFactory(object, property) {\n return function collectMemberCallUsage(usage, node, parent) {\n if (node.name === object) {\n const memberParent = parent[parent.length - 1];\n const callParent = parent[parent.length - 2];\n if ((callParent === null || callParent === void 0 ? void 0 : callParent.node.type) === \"CallExpression\" && (callParent === null || callParent === void 0 ? void 0 : callParent.key) === \"callee\" && (memberParent === null || memberParent === void 0 ? void 0 : memberParent.node.type) === \"MemberExpression\" && memberParent.key === \"object\" && (memberParent.node.computed ? memberParent.node.property.type === \"Literal\" && memberParent.node.property.value === property : memberParent.node.property.type === \"Identifier\" && memberParent.node.property.name === property)) {\n const args = callParent.node.arguments;\n if (args.length > 0) {\n const firstArg = args[0];\n if (firstArg.type === \"Literal\" && typeof firstArg.value === \"string\") {\n usage.usedArgs.add(firstArg.value);\n } else {\n usage.hasNonStaticUsage = true;\n }\n }\n }\n }\n };\n}\nexport const collectAppGetMenuUsage = collectMemberCallUsageFactory(\"APP\", \"getMenu\");\nexport const collectInstalledAppsHasUsage = collectMemberCallUsageFactory(\"INSTALLED_APPS\", \"has\");\n//# sourceMappingURL=collectMemberCallUsage.js.map","import { isEvaluable, preevaluate } from \"@next-core/cook\";\nimport { isObject } from \"@next-core/utils/general\";\nexport function traverseStoryboardExpressions(data, beforeVisitGlobal,\n// If `options` is a string, it means the *keyword*.\noptions) {\n const memo = new WeakSet();\n const {\n matchExpressionString,\n visitNotMatchedExpressionString,\n visitNonExpressionString,\n visitObject\n } = typeof options === \"string\" ? {\n matchExpressionString: v => v.includes(options)\n } : options;\n function traverse(value) {\n if (typeof value === \"string\") {\n if (isEvaluable(value)) {\n if (matchExpressionString(value)) {\n try {\n preevaluate(value, {\n cache: true,\n withParent: true,\n hooks: {\n beforeVisitGlobal(node, parent) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n beforeVisitGlobal(node, parent, value);\n }\n }\n });\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(\"Parse storyboard expression failed:\", error);\n }\n } else {\n visitNotMatchedExpressionString === null || visitNotMatchedExpressionString === void 0 || visitNotMatchedExpressionString(value);\n }\n } else {\n visitNonExpressionString === null || visitNonExpressionString === void 0 || visitNonExpressionString(value);\n }\n } else if (isObject(value)) {\n // Avoid call stack overflow.\n if (memo.has(value)) {\n return;\n }\n memo.add(value);\n visitObject === null || visitObject === void 0 || visitObject(value);\n for (const item of Array.isArray(value) ? value : Object.values(value)) {\n traverse(item);\n }\n }\n }\n traverse(data);\n}\n//# sourceMappingURL=traverse.js.map","import { beforeVisitGlobalMember } from \"./beforeVisitGlobalMember.js\";\nimport { traverseStoryboardExpressions } from \"./traverse.js\";\nexport function strictCollectMemberUsage(data, objectName) {\n let level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n const {\n hasNonStaticUsage,\n nonStaticUsage,\n usedProperties\n } = collectMemberUsage(data, objectName, level);\n if (hasNonStaticUsage) {\n throw new Error(`Non-static usage of ${objectName} is prohibited, check your expression: \"${nonStaticUsage}\"`);\n }\n return usedProperties;\n}\nexport function collectMemberUsage(data, objectName) {\n let level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;\n const usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n const beforeVisitGlobal = beforeVisitGlobalMember(usage, objectName, level);\n traverseStoryboardExpressions(data, (node, parent, expr) => {\n beforeVisitGlobal(node, parent);\n if (usage.hasNonStaticUsage) {\n usage.nonStaticUsage = expr;\n }\n }, objectName);\n return usage;\n}\n//# sourceMappingURL=collectMemberUsage.js.map","import { preevaluate } from \"@next-core/cook\";\nimport { beforeVisitGlobalMember } from \"./beforeVisitGlobalMember.js\";\nconst TRACK_NAMES = [\"CTX\", \"STATE\", \"FORM_STATE\"];\nexport function track(raw, trackText, variableName) {\n if (raw.includes(trackText)) {\n const usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n const {\n expression\n } = preevaluate(raw, {\n cache: true,\n withParent: true,\n hooks: {\n beforeVisitGlobal: beforeVisitGlobalMember(usage, variableName)\n }\n });\n let trackCtxExp;\n if (expression.type === \"SequenceExpression\" && (trackCtxExp = expression.expressions[0]) && trackCtxExp.type === \"Literal\" && trackCtxExp.value === trackText) {\n if (usage.usedProperties.size > 0) {\n return usage.usedProperties;\n } else {\n // eslint-disable-next-line no-console\n console.warn(`You are using \"${trackText}\" but no \\`${variableName}\\` usage found in your expression: ${JSON.stringify(raw)}`);\n }\n }\n }\n return false;\n}\nexport function trackAll(raw) {\n // Do not pre-evaluate a string if it doesn't include track names.\n if (TRACK_NAMES.some(name => raw.includes(name))) {\n const usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n preevaluate(raw, {\n cache: true,\n withParent: true,\n hooks: {\n beforeVisitGlobal: beforeVisitGlobalMember(usage, TRACK_NAMES, 1, true)\n }\n });\n if (usage.usedProperties.size > 0) {\n const usedProperties = [...usage.usedProperties];\n const result = {\n context: false,\n state: false,\n formState: false\n };\n const keyMap = {\n CTX: \"context\",\n STATE: \"state\",\n FORM_STATE: \"formState\"\n };\n usedProperties.forEach(item => {\n const [key, name] = item.split(\".\");\n if (!result[keyMap[key]]) {\n result[keyMap[key]] = [];\n }\n result[keyMap[key]].push(name);\n });\n return result;\n } else {\n // eslint-disable-next-line no-console\n console.warn(`You are using track all but no \"CTX\" or \"STATE\" or \"FORM_STATE\" usage found in your expression: ${JSON.stringify(raw)}`);\n }\n }\n return false;\n}\n//# sourceMappingURL=track.js.map","import { precookFunction } from \"@next-core/cook\";\nexport function traverseStoryboardFunctions(functions, beforeVisitGlobal, options) {\n if (Array.isArray(functions)) {\n for (const fn of functions) {\n if (!(options !== null && options !== void 0 && options.matchSource) || options.matchSource(fn.source)) {\n traverseStoryboardFunction(fn, beforeVisitGlobal);\n }\n }\n }\n}\nexport function traverseStoryboardFunction(fn, beforeVisitGlobal, silentErrors) {\n try {\n precookFunction(fn.source, {\n typescript: fn.typescript,\n withParent: true,\n hooks: {\n beforeVisitGlobal\n },\n cacheKey: fn\n });\n } catch (error) {\n if (!silentErrors) {\n // eslint-disable-next-line no-console\n console.error(`Parse storyboard function \"${fn.name}\" failed:`, error);\n }\n }\n}\n//# sourceMappingURL=traverse.js.map","import { beforeVisitGlobalMember } from \"../expressions/beforeVisitGlobalMember.js\";\nimport { traverseStoryboardFunction } from \"./traverse.js\";\nexport function collectMemberUsageInFunction(fn, objectName, silentErrors) {\n let level = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;\n const usage = {\n usedProperties: new Set(),\n hasNonStaticUsage: false\n };\n if (fn.source.includes(objectName)) {\n traverseStoryboardFunction(fn, beforeVisitGlobalMember(usage, objectName, level), silentErrors);\n }\n if (usage.hasNonStaticUsage && !silentErrors) {\n throw new Error(`Non-static usage of ${objectName} is prohibited, check your function: \"${fn.name}\"`);\n }\n usage.usedProperties.delete(fn.name);\n return usage.usedProperties;\n}\n//# sourceMappingURL=collectMemberUsageInFunction.js.map","import { traverseStoryboardExpressions } from \"./expressions/index.js\";\nimport { traverseStoryboardFunctions } from \"./functions/index.js\";\nconst PERMISSIONS = \"PERMISSIONS\";\nconst check = \"check\";\nexport function scanPermissionActionsInStoryboard(storyboard) {\n var _storyboard$meta;\n const collection = new Set();\n const beforeVisitPermissions = beforeVisitPermissionsFactory(collection);\n const {\n customTemplates,\n functions\n } = (_storyboard$meta = storyboard.meta) !== null && _storyboard$meta !== void 0 ? _storyboard$meta : {};\n traverseStoryboardExpressions([storyboard.routes, customTemplates], beforeVisitPermissions, PERMISSIONS);\n traverseStoryboardFunctions(functions, beforeVisitPermissions, {\n matchSource(source) {\n return source.includes(PERMISSIONS);\n }\n });\n return Array.from(collection);\n}\nexport function scanPermissionActionsInAny(data) {\n const collection = new Set();\n traverseStoryboardExpressions(data, beforeVisitPermissionsFactory(collection), PERMISSIONS);\n return Array.from(collection);\n}\nfunction beforeVisitPermissionsFactory(collection) {\n return function beforeVisitPermissions(node, parent) {\n if (node.name === PERMISSIONS) {\n const memberParent = parent[parent.length - 1];\n const callParent = parent[parent.length - 2];\n if ((callParent === null || callParent === void 0 ? void 0 : callParent.node.type) === \"CallExpression\" && (callParent === null || callParent === void 0 ? void 0 : callParent.key) === \"callee\" && (memberParent === null || memberParent === void 0 ? void 0 : memberParent.node.type) === \"MemberExpression\" && memberParent.key === \"object\" && (memberParent.node.computed ? memberParent.node.property.type === \"Literal\" && memberParent.node.property.value === check : memberParent.node.property.type === \"Identifier\" && memberParent.node.property.name === check)) {\n for (const arg of callParent.node.arguments) {\n if (arg.type === \"Literal\" && typeof arg.value === \"string\") {\n collection.add(arg.value);\n }\n }\n }\n }\n };\n}\n//# sourceMappingURL=permissions.js.map"],"names":["beforeVisitGlobalMember","usage","objectName","level","arguments","length","undefined","rememberObjectName","node","parent","name","includes","segments","i","memberParent","type","key","memberNode","computed","property","value","push","hasNonStaticUsage","usedProperties","add","join","collectMemberCallUsageFactory","object","callParent","args","firstArg","usedArgs","collectAppGetMenuUsage","collectInstalledAppsHasUsage","traverseStoryboardExpressions","data","beforeVisitGlobal","options","memo","WeakSet","matchExpressionString","visitNotMatchedExpressionString","visitNonExpressionString","visitObject","v","traverse","isEvaluable","preevaluate","cache","withParent","hooks","error","console","isObject","has","item","Array","isArray","Object","values","strictCollectMemberUsage","nonStaticUsage","collectMemberUsage","Error","Set","expr","TRACK_NAMES","track","raw","trackText","variableName","expression","trackCtxExp","expressions","size","warn","JSON","stringify","trackAll","some","result","context","state","formState","keyMap","CTX","STATE","FORM_STATE","forEach","split","traverseStoryboardFunctions","functions","fn","matchSource","source","traverseStoryboardFunction","silentErrors","precookFunction","typescript","cacheKey","collectMemberUsageInFunction","delete","PERMISSIONS","check","scanPermissionActionsInStoryboard","storyboard","_storyboard$meta","collection","beforeVisitPermissions","beforeVisitPermissionsFactory","customTemplates","meta","routes","from","scanPermissionActionsInAny","arg"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[6595],{1:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".launchpadLink{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.launchpadLink svg{vertical-align:top;filter:grayscale(100%);opacity:0.6;width:16px;height:16px;cursor:pointer}.launchpadLink:hover svg{color:var(--color-brand-hover)!important;filter:none;opacity:1}",""]);const s=r.toString()},219:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".cellWrapper--celYo8CM{display:flex;align-items:center;position:relative;transform-origin:0 0}.cellWrapper--celYo8CM:hover{background-color:rgba(255,255,255,0.1);border-radius:10px;cursor:pointer}.cellWrapper--celYo8CM:hover .closeIcon--kqBgSmBL{display:block}.cellWrapper--celYo8CM.disabled--SXwx9i_9{color:#d8d8d8;opacity:0.5;cursor:no-drop}.cellWrapper--celYo8CM.disabled--SXwx9i_9 .appLink--xxDzS__h,.cellWrapper--celYo8CM.disabled--SXwx9i_9 .name--gT42Hr47{cursor:no-drop}.cellWrapper--celYo8CM.disabled--SXwx9i_9:hover{background:none;border-radius:0}.cellWrapper--celYo8CM.disabled--SXwx9i_9:hover .closeIcon--kqBgSmBL{display:none}.cellItem--JZfNDEVv{height:144px;padding:10px;min-width:120px;display:flex;justify-content:space-between;align-items:center;flex-direction:column}.appLink--xxDzS__h{display:flex;width:46px;height:46px;color:#fff;justify-content:center;align-items:center;position:relative}.appLink--xxDzS__h.circle--wjMEocD_,.appLink--xxDzS__h.square--lOfLBD3x{background-color:rgba(255,255,255,0.1)}.appLink--xxDzS__h.circle--wjMEocD_{border-radius:40px}.appLink--xxDzS__h.square--lOfLBD3x{border-radius:10px}.appLink--xxDzS__h.installing--drkxXY1n{opacity:0.5}.addIcon--ruhiXc4_{position:absolute;font-size:25px;color:white}.circleIcon--nexpPxUz{right:-6px;bottom:5px}.squareIcon--BkpShWWs{right:-6px;bottom:5px}.appLink--xxDzS__h:hover{color:#fff}.appIcon--w9kHpYGc{width:95%}.appName--CLwLdUBP{display:block;font-size:16px;line-height:1.5;height:24px;text-align:center}.link--bllF9zn6{display:flex;justify-content:center;align-items:center}.name--gT42Hr47{flex:1;padding-left:20px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;color:white}.closeIcon--kqBgSmBL{font-size:12px;position:absolute;top:-5px;right:-3px;color:rgba(255,255,255,0.7);display:none}@media (max-height: 860px), (max-width: 1280px){.cellWrapper--celYo8CM{transform:scale(0.8)}}@media (max-height: 700px), (max-width: 1024px){.cellWrapper--celYo8CM{transform:scale(0.7)}}",""]),r.locals={cellWrapper:"cellWrapper--celYo8CM",closeIcon:"closeIcon--kqBgSmBL",disabled:"disabled--SXwx9i_9",appLink:"appLink--xxDzS__h",name:"name--gT42Hr47",cellItem:"cellItem--JZfNDEVv",circle:"circle--wjMEocD_",square:"square--lOfLBD3x",installing:"installing--drkxXY1n",addIcon:"addIcon--ruhiXc4_",circleIcon:"circleIcon--nexpPxUz",squareIcon:"squareIcon--BkpShWWs",appIcon:"appIcon--w9kHpYGc",appName:"appName--CLwLdUBP",link:"link--bllF9zn6"};const s=r},1135:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".desktopSlider--AScHB1Kd{flex:1;position:relative;padding-top:110px;padding-bottom:50px}.filtered--OQSTba5B .desktopList--nOFGKtg0,.filtered--OQSTba5B .arrowLeft--xkZ60z9A,.filtered--OQSTba5B .arrowRight--SFdZw31z,.filtered--OQSTba5B .desktopSelector--rYqx7sAu{display:none}.scrollContainer--PyCfQg85{width:100%;height:100%;overflow:hidden}.desktopList--nOFGKtg0{display:flex;height:100%}.filteredList--qgFcXHyE{display:flex;height:100%}.arrowLeft--xkZ60z9A,\n.arrowRight--SFdZw31z{position:absolute;top:110px;bottom:50px;justify-content:center;align-items:center;display:none}.available--yspNdU90.arrowLeft--xkZ60z9A,.available--yspNdU90.arrowRight--SFdZw31z{display:flex}.arrowLeft--xkZ60z9A{left:0}.arrowRight--SFdZw31z{right:0}.arrowButton--MHbxtjNQ{width:70px;height:70px;font-size:36px;display:flex;justify-content:center;align-items:center;color:#e6e6e6;background-color:rgba(255,255,255,0.1);border-radius:6px;visibility:hidden}.arrowLeft--xkZ60z9A:hover .arrowButton--MHbxtjNQ,\n.arrowRight--SFdZw31z:hover .arrowButton--MHbxtjNQ{visibility:visible}.desktopSelector--rYqx7sAu{position:absolute;top:0;left:0;right:0;height:110px;padding:36px 0;display:flex;justify-content:center;align-items:center;flex-wrap:wrap}.desktopName--M1GlY6Xe{display:block;color:rgba(255,255,255,0.65);border-radius:6px;font-size:12px;line-height:38px;padding:0 16px}.desktopName--M1GlY6Xe:hover{color:#fff}.desktopName--M1GlY6Xe.active--gh6q8Xsv{color:#fff;background-color:rgba(18,21,26,0.3)}.selectorSeparator--tLrL2o9J{display:block;margin:0 8px;width:1px;height:16px;border-left:1px dashed rgba(255,255,255,0.15)}@media (max-height: 860px), (max-width: 1280px){.arrowButton--MHbxtjNQ{width:60px;height:60px;font-size:30px}.desktopSlider--AScHB1Kd{padding-top:98px}.desktopSelector--rYqx7sAu{padding:30px 0;height:98px}}@media (max-height: 700px), (max-width: 1024px){.arrowButton--MHbxtjNQ{width:50px;height:50px;font-size:25px}.desktopSlider--AScHB1Kd{padding-top:86px}.desktopSelector--rYqx7sAu{padding:24px 0;height:86px}}@media (max-height: 640px), (max-width: 900px){.arrowButton--MHbxtjNQ{width:40px;height:40px;font-size:20px}.desktopSlider--AScHB1Kd{padding-top:74px}.desktopSelector--rYqx7sAu{padding:18px 0;height:74px}}",""]),r.locals={desktopSlider:"desktopSlider--AScHB1Kd",filtered:"filtered--OQSTba5B",desktopList:"desktopList--nOFGKtg0",arrowLeft:"arrowLeft--xkZ60z9A",arrowRight:"arrowRight--SFdZw31z",desktopSelector:"desktopSelector--rYqx7sAu",scrollContainer:"scrollContainer--PyCfQg85",filteredList:"filteredList--qgFcXHyE",available:"available--yspNdU90",arrowButton:"arrowButton--MHbxtjNQ",desktopName:"desktopName--M1GlY6Xe",active:"active--gh6q8Xsv",selectorSeparator:"selectorSeparator--tLrL2o9J"};const s=r},1651:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".appLink--XvctrW4d{display:flex;width:80px;height:80px;color:#fff;justify-content:center;align-items:center;position:relative}.appLink--XvctrW4d.circle--ZQ_SHyEN,.appLink--XvctrW4d.square--C8X1afGq{background-color:rgba(255,255,255,0.1)}.appLink--XvctrW4d.small--Mux_F8QK{width:56px;height:56px}@media (max-height: 860px), (max-width: 1280px){.appLink--XvctrW4d.small--Mux_F8QK.appLink--XvctrW4d{transform:scale(0.8)}.appLink--XvctrW4d.small--Mux_F8QK + .appName--wsBI2CZC{font-size:14px;height:21px}}@media (max-height: 700px), (max-width: 1024px){.appLink--XvctrW4d.small--Mux_F8QK.appLink--XvctrW4d{transform:scale(0.7)}.appLink--XvctrW4d.small--Mux_F8QK + .appName--wsBI2CZC{font-size:12px;height:18px}}.appLink--XvctrW4d.circle--ZQ_SHyEN{border-radius:40px}.appLink--XvctrW4d.square--C8X1afGq{border-radius:10px}.addIcon--DHJxfx2l{position:absolute;display:none;font-size:20px;color:white}.circleIcon--NoKu04zb{right:-7px;bottom:5px}.squareIcon--JeHz5VMI{right:-3px;bottom:5px}.appLink--XvctrW4d:hover{color:#fff}.appIcon--K35YGQTl{width:100%}.appName--wsBI2CZC{display:block;font-size:16px;line-height:1.5;height:24px;text-align:center}@media (max-height: 860px), (max-width: 1280px){.appLink--XvctrW4d{transform:scale(0.75)}.appName--wsBI2CZC{font-size:14px;height:21px}}@media (max-height: 700px), (max-width: 1024px){.appLink--XvctrW4d{transform:scale(0.6)}.appName--wsBI2CZC{font-size:12px;height:18px}}@media (max-height: 640px), (max-width: 900px){.appLink--XvctrW4d{transform:scale(0.5)}}",""]),r.locals={appLink:"appLink--XvctrW4d",circle:"circle--ZQ_SHyEN",square:"square--C8X1afGq",small:"small--Mux_F8QK",appName:"appName--wsBI2CZC",addIcon:"addIcon--DHJxfx2l",circleIcon:"circleIcon--NoKu04zb",squareIcon:"squareIcon--JeHz5VMI",appIcon:"appIcon--K35YGQTl"};const s=r},1759:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".dirContainer--yobNkKHJ{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;left:0;top:0;transition:transform 150ms ease-out}.dirName--S6uKBACL{margin-bottom:40px;font-size:24px;line-height:32px;text-align:center}.dirContent--zQ9gweDn{display:grid;background-color:rgba(18,21,26,0.4);border-radius:20px;width:100%}",""]),r.locals={dirContainer:"dirContainer--yobNkKHJ",dirName:"dirName--S6uKBACL",dirContent:"dirContent--zQ9gweDn"};const s=r},2240:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(9575),n=i(8769);const o=e=>n.createElement("svg",(0,a.A)({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16"},e),n.createElement("g",{fill:"currentColor",fillRule:"nonzero"},n.createElement("path",{d:"M0 0h4v4H0zM0 6h4v4H0zM6 0h4v4H6zM6 6h4v4H6zM12 0h4v4h-4zM12 6h4v4h-4zM0 12h4v4H0zM6 12h4v4H6zM12 12h4v4h-4z"})))},2535:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".cellWrapper--NydKY8Uu{display:flex;justify-content:center;align-items:center;overflow:hidden}.cellWrapper--NydKY8Uu.positionLeft--VreE62uh{justify-content:flex-start}.cellItem--Se6r55Ne{height:144px;padding:10px;min-width:120px;display:flex;justify-content:space-between;align-items:center;flex-direction:column}.cellItem--Se6r55Ne.small--QJ2gld44{height:110px}.cellItem--Se6r55Ne.active--KANJZK5a{background-color:rgba(0,0,0,0.3);border-radius:6px}@media (max-height: 860px), (max-width: 1280px){.cellItem--Se6r55Ne{height:134px;min-width:100px;justify-content:normal}.cellItem--Se6r55Ne.small--QJ2gld44{height:110px;min-width:76px;justify-content:normal}}@media (max-height: 700px), (max-width: 1024px){.cellItem--Se6r55Ne{height:129px;min-width:80px;justify-content:normal}.cellItem--Se6r55Ne.small--QJ2gld44{height:100px;min-width:60px;justify-content:normal}}",""]),r.locals={cellWrapper:"cellWrapper--NydKY8Uu",positionLeft:"positionLeft--VreE62uh",cellItem:"cellItem--Se6r55Ne",small:"small--QJ2gld44",active:"active--KANJZK5a"};const s=r},2575:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".dirLink--Ezp7L944{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);width:80px;height:80px;color:#fff;justify-content:center;align-items:center;background-color:rgba(0,0,0,0.15);border-radius:10px;font-size:21px;padding:7px}.dirLink--Ezp7L944.small--S5JXqzG8{width:56px;height:56px}.dirLink--Ezp7L944 .appIcon--TdWlSNU2,.dirLink--Ezp7L944 .anticon{width:33px;height:33px}.dirLink--Ezp7L944 .anticon{display:flex;justify-content:center;align-items:center;overflow:hidden}.dirLink--Ezp7L944:hover{color:#fff}.dirName--zvy885aK{display:block;font-size:16px;line-height:1.5;height:24px;text-align:center}@media (max-height: 860px), (max-width: 1280px){.dirLink--Ezp7L944{transform:scale(0.75)}.dirName--zvy885aK{font-size:14px;height:21px}}@media (max-height: 700px), (max-width: 1024px){.dirLink--Ezp7L944{transform:scale(0.6)}.dirName--zvy885aK{font-size:12px;height:18px}}@media (max-height: 640px), (max-width: 900px){.dirLink--Ezp7L944{transform:scale(0.5)}}",""]),r.locals={dirLink:"dirLink--Ezp7L944",small:"small--S5JXqzG8",appIcon:"appIcon--TdWlSNU2",dirName:"dirName--zvy885aK"};const s=r},2867:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".appLink--lI6ZH8_J{display:flex;width:80px;height:80px;color:#fff;justify-content:center;align-items:center;position:relative}.appLink--lI6ZH8_J.circle--CqDDCO2g,.appLink--lI6ZH8_J.square--KkzxvIhL{background-color:rgba(255,255,255,0.1)}.appLink--lI6ZH8_J.small--oHLIwdUo{width:56px;height:56px}@media (max-height: 860px), (max-width: 1280px){.appLink--lI6ZH8_J.small--oHLIwdUo.appLink--lI6ZH8_J{transform:scale(0.8)}.appLink--lI6ZH8_J.small--oHLIwdUo + .appName--YMtvoP3g{font-size:14px;height:21px}}@media (max-height: 700px), (max-width: 1024px){.appLink--lI6ZH8_J.small--oHLIwdUo.appLink--lI6ZH8_J{transform:scale(0.7)}.appLink--lI6ZH8_J.small--oHLIwdUo + .appName--YMtvoP3g{font-size:12px;height:18px}}.appLink--lI6ZH8_J.circle--CqDDCO2g{border-radius:40px}.appLink--lI6ZH8_J.square--KkzxvIhL{border-radius:10px}.appLink--lI6ZH8_J.installing--wQF5JcJn{opacity:0.5}.appLink--lI6ZH8_J:hover .addIcon--EM1rukmN{display:block}.addIcon--EM1rukmN{position:absolute;font-size:20px;color:white;display:none}.circleIcon--C6tDgTcK{right:-7px;bottom:5px}.squareIcon--Vl9EHU0t{right:-3px;bottom:5px}.appLink--lI6ZH8_J:hover{color:#fff;opacity:0.6}.appIcon--CfrDjC_d{width:100%}.appName--YMtvoP3g{display:block;font-size:16px;line-height:1.5;height:24px;text-align:center}@media (max-height: 860px), (max-width: 1280px){.appLink--lI6ZH8_J{transform:scale(0.75)}.appName--YMtvoP3g{font-size:14px;height:21px}}@media (max-height: 700px), (max-width: 1024px){.appLink--lI6ZH8_J{transform:scale(0.6)}.appName--YMtvoP3g{font-size:12px;height:18px}}@media (max-height: 640px), (max-width: 900px){.appLink--lI6ZH8_J{transform:scale(0.5)}}",""]),r.locals={appLink:"appLink--lI6ZH8_J",circle:"circle--CqDDCO2g",square:"square--KkzxvIhL",small:"small--oHLIwdUo",appName:"appName--YMtvoP3g",installing:"installing--wQF5JcJn",addIcon:"addIcon--EM1rukmN",circleIcon:"circleIcon--C6tDgTcK",squareIcon:"squareIcon--Vl9EHU0t",appIcon:"appIcon--CfrDjC_d"};const s=r},3031:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".launchpad--jiWBelji{background:rgba(36,41,51,0.93);position:fixed;top:0;bottom:0;left:0;right:0;z-index:5000;overflow:hidden;overflow-y:auto;color:#fff;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}.launchpadContainer--_vrKLUwW{display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden}.fadeEnter--lOmmReOY{opacity:0;transform:scale(0.95)}.fadeEnterActive--PRkux5Hj{opacity:1;transform:translateX(0);transition:opacity 100ms ease-out,transform 100ms ease-out}.fadeExit--egWs3z_Z{opacity:1}.fadeExitActive--Emt0ZO0f{opacity:0;transform:scale(0.95);transition:opacity 100ms ease-out,transform 100ms ease-out}.fadeExitDone--KS8Y8j_i{display:none}.loadingWrapper--a0uhMogW{display:flex;justify-content:center;align-items:center;height:100%;font-size:58px;color:var(--theme-cyan-color)}",""]),r.locals={launchpad:"launchpad--jiWBelji",launchpadContainer:"launchpadContainer--_vrKLUwW",fadeEnter:"fadeEnter--lOmmReOY",fadeEnterActive:"fadeEnterActive--PRkux5Hj",fadeExit:"fadeExit--egWs3z_Z",fadeExitActive:"fadeExitActive--Emt0ZO0f",fadeExitDone:"fadeExitDone--KS8Y8j_i",loadingWrapper:"loadingWrapper--a0uhMogW"};const s=r},4739:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".appear--fTt52aoG{opacity:0;transform:scale(1.05)}.appearActive--VTTHohOa{opacity:1;transform:translateX(0);transition:opacity 100ms ease-out,transform 100ms ease-out}.exit--xJVirpkU{opacity:1}.exitActive--JBRp0ETG{opacity:0;transform:scale(1.05);transition:opacity 100ms ease-out,transform 100ms ease-out}",""]),r.locals={appear:"appear--fTt52aoG",appearActive:"appearActive--VTTHohOa",exit:"exit--xJVirpkU",exitActive:"exitActive--JBRp0ETG"};const s=r},6087:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,'.searchBar--k7ys_9bU{display:flex;justify-content:center;align-items:flex-end;height:10%}.searchBar--k7ys_9bU .inputAffixWrapper--r90ghnJb{position:relative;width:100%;min-width:0;padding:4px 11px;color:var(--antd-input-color);font-size:14px;line-height:1.5715;background-image:none;display:inline-flex;height:42px;border-radius:21px;padding-left:54px;padding-right:4px;border:2px solid rgba(255,255,255,0.1);background-color:rgba(0,0,0,0.06);transition:padding-left 150ms ease-out;box-sizing:border-box}.searchBar--k7ys_9bU .inputAffixWrapper--r90ghnJb:hover{border-color:#0071eb;border-right-width:2px!important}.searchBar--k7ys_9bU .inputAffixWrapper--r90ghnJb .antInputPrefix--vr3ceVIR{width:30px;margin-left:0;margin-right:6px;display:flex;justify-content:center;color:rgba(255,255,255,0.65);flex:none;align-items:center;box-sizing:border-box}.searchBar--k7ys_9bU .inputAffixWrapper--r90ghnJb::before{width:0;visibility:hidden;content:"\\a0"}.searchBar--k7ys_9bU.focus--rcoZCXD5 .inputAffixWrapper--r90ghnJb,.searchBar--k7ys_9bU .inputAffixWrapperFocused--ym85u9fT{padding-left:4px;border-color:#2893f7;border-right-width:2px!important}.inputContainer--spZyJlDc{width:300px}.input--LvcE67vF{padding:0;border:none;outline:none;color:#fff;background-color:transparent;text-overflow:ellipsis;border-radius:3px}.input--LvcE67vF::placeholder{color:rgba(255,255,255,0.25)}',""]),r.locals={searchBar:"searchBar--k7ys_9bU",inputAffixWrapper:"inputAffixWrapper--r90ghnJb",antInputPrefix:"antInputPrefix--vr3ceVIR",focus:"focus--rcoZCXD5",inputAffixWrapperFocused:"inputAffixWrapperFocused--ym85u9fT",inputContainer:"inputContainer--spZyJlDc",input:"input--LvcE67vF"};const s=r},6293:(e,t,i)=>{i.d(t,{D:()=>nt});var a=i(8769),n=i.n(a),o=i(8974),r=i(2240),s=i(9435),l=i(2865),p=i(9575),c=i(9859),d=i(3373),m=i.n(d),h=i(2591),u=i.n(h),f=i(1740),g=i.n(f),x=i(8128),v=i.n(x),k=i(855),y=i.n(k),w=i(3051),b=i.n(w),A=i(3656),E=i.n(A),C=i(6087),L={};L.styleTagTransform=E(),L.setAttributes=y(),L.insert=v().bind(null,"head"),L.domAPI=g(),L.insertStyleElement=b(),u()(C.A,L);const I=C.A&&C.A.locals?C.A.locals:void 0,N=(0,c.wrapBrick)("eo-link"),S=(0,c.wrapBrick)("eo-icon");var W=i(9929),z=i(8399);function _(e){const{t}=(0,z.useTranslation)(W.NS),[i,a]=n().useState(!1),o=n().useCallback((e=>{e&&Promise.resolve().then((()=>{try{e.focus()}catch(e){}}))}),[]);return n().createElement("div",{className:m()(I.searchBar,{[I.focus]:i})},n().createElement("div",{className:I.inputContainer,role:"inputContainer",onClick:e=>{e.stopPropagation()}},n().createElement("span",{className:m()(I.inputAffixWrapper,{[I.inputAffixWrapperFocused]:i})},n().createElement("span",{className:I.antInputPrefix},n().createElement(S,{icon:"search",lib:"antd",theme:"outlined"})),n().createElement("input",{role:"input",className:I.input,placeholder:t(W.K.SEARCH_BY_NAME_KEYWORD),onChange:t=>{e.onChange(t.target.value)},onKeyDown:e=>{const t=e.key||e.keyCode||e.which;["Tab","Enter","ArrowLeft","ArrowUp","ArrowRight","ArrowDown",9,13,37,38,39,40].includes(t)&&e.preventDefault()},onFocus:()=>{a(!0)},onBlur:()=>{a(!1)},ref:o}))))}var B=i(1030),P=i(2535),D={};D.styleTagTransform=E(),D.setAttributes=y(),D.insert=v().bind(null,"head"),D.domAPI=g(),D.insertStyleElement=b(),u()(P.A,D);const M=P.A&&P.A.locals?P.A.locals:void 0;var F=i(2867),H={};H.styleTagTransform=E(),H.setAttributes=y(),H.insert=v().bind(null,"head"),H.domAPI=g(),H.insertStyleElement=b(),u()(F.A,H);const T=F.A&&F.A.locals?F.A.locals:void 0,j=i.p+"images/cc952ed5.png";function q(e,t){var i;return e.icons&&e.icons.large?/^(?:https?|data):|^\//.test(e.icons.large)?e.icons.large:window.STANDALONE_MICRO_APPS?e.standaloneMode?`${null===(i=window.PUBLIC_ROOT)||void 0===i?void 0:i.replace(/-\/$/,"")}${e.id}/versions/${e.currentVersion}/webroot/-/micro-apps/${e.id}/${e.icons.large}`:`${window.PUBLIC_CDN||""}micro-apps/${e.id}/${e.icons.large}`:`${window.PUBLIC_ROOT||""}micro-apps/${e.id}/${e.icons.large}`:t}const R=(0,c.wrapBrick)("eo-link"),J=(0,c.wrapBrick)("eo-icon");function K(e){let{app:t,onAddClick:i,onClick:a,isFavorite:o,showAddIcon:r,size:s}=e;const l="running"===t.installStatus;return n().createElement(n().Fragment,null,n().createElement(R,{className:m()(T.appLink,T[s],"circle"===t.iconBackground?T.circle:T.square,{[T.installing]:l}),url:t.homepage,onClick:e=>{e.stopPropagation(),l&&e.preventDefault(),null==a||a()}},n().createElement("img",{className:T.appIcon,src:q(t,j)}),r&&o&&n().createElement(J,{className:m()(T.addIcon,"circle"===t.iconBackground?T.circleIcon:T.squareIcon),icon:"plus",lib:"antd",theme:"outlined",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==i||i()}})),n().createElement("span",{className:T.appName},l&&n().createElement(J,{style:{paddingRight:5},icon:"loading-3-quarters",lib:"antd",theme:"outlined"}),t.localeName))}const Z=n().createContext({}),V=()=>n().useContext(Z);var U=i(2575),Y={};Y.styleTagTransform=E(),Y.setAttributes=y(),Y.insert=v().bind(null,"head"),Y.domAPI=g(),Y.insertStyleElement=b(),u()(U.A,Y);const O=U.A&&U.A.locals?U.A.locals:void 0;function X(e){const{setDesktopDir:t}=V();return n().createElement(n().Fragment,null,n().createElement("a",{className:m()(O.dirLink,{[O[e.size]]:!!e.size}),onClick:i=>{i.stopPropagation(),null==t||t({dir:{name:e.name,items:e.items},coordinates:{x:i.clientX,y:i.clientY},activeIndex:-1})},role:"button"},e.items.slice(0,4).map((e=>"app"===e.type?n().createElement("img",{className:O.appIcon,key:e.id,src:q(e.app,j)}):n().createElement("img",{className:O.appIcon,key:e.id,src:j})))),n().createElement("span",{className:O.dirName},e.name))}var G=i(1651),Q={};Q.styleTagTransform=E(),Q.setAttributes=y(),Q.insert=v().bind(null,"head"),Q.domAPI=g(),Q.insertStyleElement=b(),u()(G.A,Q);const $=G.A&&G.A.locals?G.A.locals:void 0,ee=(0,c.wrapBrick)("eo-link"),te=(0,c.wrapBrick)("eo-icon");function ie(e){let{name:t,url:i,showAddIcon:a,isFavorite:o,onClick:r,onAddClick:s,size:l,responsive:p=!0}=e;return n().createElement(n().Fragment,null,n().createElement(ee,{className:m()($.appLink,$.circle,$[l],{[$.responsive]:p}),href:i,target:"_blank",onClick:e=>{e.stopPropagation(),null==r||r()}},n().createElement("img",{className:$.appIcon,src:j}),a&&o&&n().createElement(te,{className:m()($.addIcon,$.circleIcon),icon:"plus-circle-filled",lib:"antd",theme:"outlined",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==s||s()}})),n().createElement("span",{className:$.appName},t))}var ae=i(4586),ne=i(7137),oe=i(9684),re=i(1644),se=i(3887),le=i(3346),pe=i(480),ce=i(3922),de=i(4864);const me=new class{constructor(){var e;(0,ae.A)(this,"storageKey",`launchpad-recently-visited:${null===(e=pe.auth.getAuth())||void 0===e?void 0:e.org}`),(0,ae.A)(this,"storage",void 0),(0,ae.A)(this,"favoriteList",[]),(0,ae.A)(this,"filteredFavoriteList",[]),(0,ae.A)(this,"microApps",[]),(0,ae.A)(this,"customList",[]),(0,ae.A)(this,"maxVisitorLength",7),(0,ae.A)(this,"baseInfo",{settings:{columns:7,rows:4},microApps:[],desktops:[],siteSort:[]}),(0,ae.A)(this,"loaded",!1),(0,ae.A)(this,"favoritesLoaded",!1),(0,ae.A)(this,"deferredLaunchpadInfo",void 0),(0,ae.A)(this,"deferredFavorites",void 0),(0,ae.A)(this,"doFetchFavorites",(async()=>{const e=(await(0,oe.o)({page:1,pageSize:25},{interceptorParams:{ignoreLoadingBar:!0},noAbortOnRouteChange:!0})).list;this.setFavorites(e),this.favoritesLoaded=!0})),(0,ae.A)(this,"doFetchLaunchpadInfo",(async()=>{const e=await(0,le.i)({},{interceptorParams:{ignoreLoadingBar:!0},noAbortOnRouteChange:!0});for(const t of e.storyboards){const e=t.app;if(e)if(e.locales){const t=`$tmp-${e.id}`;Object.entries(e.locales).forEach((e=>{let[i,a]=e;ce.i18n.addResourceBundle(i,t,a)})),e.localeName=ce.i18n.getFixedT(null,t)("name",e.name),Object.keys(e.locales).forEach((e=>{ce.i18n.removeResourceBundle(e,t)}))}else e.localeName=e.name}this.baseInfo={...e,settings:e.settings.launchpad,microApps:e.storyboards.map((e=>e.app)).filter(Boolean)},this.initValue(),this.loaded=!0})),this.storage=new ne.G(localStorage),this.deferredLaunchpadInfo=new de.x(this.doFetchLaunchpadInfo),this.deferredFavorites=new de.x(this.doFetchFavorites),this.init()}init(){const e=(0,o.getRuntime)();this.baseInfo={desktops:e.getDesktops(),microApps:[e.getCurrentApp()],settings:e.getLaunchpadSettings(),siteSort:e.getLaunchpadSiteMap()},this.initValue()}initValue(){this.customList=this.baseInfo.desktops.map((e=>e.items.filter((e=>"custom"===e.type)))).flat();const e=this.baseInfo.microApps.filter((e=>e&&(!e.status||"enabled"===e.status||"developing"===e.status)));this.setMicroApps(e)}setMaxVisitorLength(e){this.maxVisitorLength=e}preFetchFavorites(){this.deferredFavorites.schedulePrefetch()}async fetchFavoriteList(e){return await this.deferredFavorites.fetch(e),this.favoriteList}preFetchLaunchpadInfo(){window.STANDALONE_MICRO_APPS&&this.deferredLaunchpadInfo.schedulePrefetch()}fetchLaunchpadInfo(){return this.deferredLaunchpadInfo.fetch()}getBaseInfo(){return this.baseInfo}getFavoritesLength(){return this.favoriteList.length}typeAdaptor(e){return"customItem"===e?"custom":"microApp"===e?"app":e}setFavorites(e){var t;this.filteredFavoriteList=null!==(t=null==e?void 0:e.filter((e=>{var t;return"microApp"===(null===(t=e.launchpadCollection)||void 0===t?void 0:t.type)||"customItem"===e.launchpadCollection.type})))&&void 0!==t?t:[],this.favoriteList=e}setMicroApps(e){this.microApps=e,this.syncValidRecentlyVisitor()}syncValidRecentlyVisitor(){if(window.STANDALONE_MICRO_APPS)return;const e=this.getAllVisitors().filter((e=>"app"===e.type?this.microApps.some((t=>t.id===e.id)):this.customList.some((t=>t.type===e.type&&t.id===e.id))));this.setAllVisitors(e)}async setAsFavorite(e){await(0,re.a)(e,{interceptorParams:{ignoreLoadingBar:!0}})}async deleteFavorite(e){await(0,se.j)(e,{interceptorParams:{ignoreLoadingBar:!0}})}isFavorite(e){return"app"===e.type?this.filteredFavoriteList.some((t=>"app"===this.typeAdaptor(t.launchpadCollection.type)&&t.microAppId===e.id)):this.filteredFavoriteList.some((t=>"custom"===this.typeAdaptor(t.launchpadCollection.type)&&t.customItemId===e.id))}getItem(e,t){return(this.storage.getItem(this.storageKey)||[]).find((i=>i.id===t&&i.type===e))}getItemIndex(e,t){return(this.storage.getItem(this.storageKey)||[]).findIndex((i=>i.id===t&&i.type===e))}hasItem(e,t){return(this.storage.getItem(this.storageKey)||[]).some((i=>i.id===t&&i.type===e))}getAllVisitors(){return this.storage.getItem(this.storageKey)||[]}setItem(e,t){const i=this.getAllVisitors();if(this.hasItem(e,t.id)){const a=this.getItemIndex(e,t.id);i.splice(a,1),i.unshift(t)}else i.unshift(t);i.length>this.maxVisitorLength&&i.pop(),this.setAllVisitors(i)}setAllVisitors(e){this.storage.setItem(this.storageKey,e)}pushVisitor(e,t){if("app"===e){const e=t;t={id:e.id,app:{name:e.name,icons:e.icons,localeName:e.localeName,id:e.id,homepage:e.homepage,currentVersion:e.currentVersion,standaloneMode:e.standaloneMode},type:"app"}}this.setItem(e,t)}getVisitor(e,t){return this.getItem(e,t)}getRealDesktopItem(e){var t;return"microApp"===(null===(t=e.launchpadCollection)||void 0===t?void 0:t.type)?this.microApps.find((t=>t.id===e.microAppId)):this.customList.find((t=>t.id===e.customItemId))}setFavoriteAsVisitor(e){var t;const i=this.typeAdaptor(null===(t=e.launchpadCollection)||void 0===t?void 0:t.type);if("link"===i)return;const a=this.getRealDesktopItem(e);a&&this.pushVisitor(i,a)}getSitemapList(){const e=this.baseInfo.microApps.filter((e=>!e.internal)),t=this.baseInfo.siteSort;return null==t?void 0:t.map((t=>({...t,apps:(t.apps||[]).map((t=>{const i=e.find((e=>e.id===t.id))||{};return{...t,...(0,B.pick)(i,["name","icons","localeName","homepage","currentVersion","standaloneMode"])}}))})))}};function he(e){const t=async()=>{if(!(me.getFavoritesLength()>=25&&(o.Dialog.show({title:"收藏数量已达上限",content:"当前收藏链接数量已达上限(25个),请删除部分链接后再添加。",contentStyle:{zIndex:5001}}),1))){let i;if("app"===e.item.type){const t=e.item;i={microAppId:t.id,launchpadCollection:{type:"microApp",name:t.app.name}}}else{const t=e.item;i={customItemId:t.id,launchpadCollection:{type:"customItem",name:t.name}}}try{var t;await me.setAsFavorite(i),null==e||null===(t=e.onSetAsFavorite)||void 0===t||t.call(e)}catch(e){}}};return n().createElement("div",{className:m()(M.cellWrapper,{[M.positionLeft]:"left"===(null==e?void 0:e.position)})},n().createElement("div",{className:m()(M.cellItem,M[e.size],{[M.active]:e.active})},"app"===e.item.type?n().createElement(K,{showAddIcon:e.showAddIcon,isFavorite:e.isFavorite,app:e.item.app,onClick:()=>{const t=e.item.app;me.pushVisitor("app",t)},onAddClick:t,size:e.size}):"custom"===e.item.type?n().createElement(ie,{showAddIcon:e.showAddIcon,isFavorite:e.isFavorite,name:e.item.name,url:e.item.url,onClick:()=>{const t=e.item;me.pushVisitor("custom",t)},onAddClick:t,size:e.size}):n().createElement(X,{name:e.item.name,items:e.item.items,size:e.size})))}const ue=n().createContext({columns:7,rows:4}),fe=()=>n().useContext(ue);var ge=i(8479),xe={};xe.styleTagTransform=E(),xe.setAttributes=y(),xe.insert=v().bind(null,"head"),xe.domAPI=g(),xe.insertStyleElement=b(),u()(ge.A,xe);const ve=ge.A&&ge.A.locals?ge.A.locals:void 0;function ke(e){const{columns:t,rows:i}=fe();return n().createElement("div",{className:ve.desktop,style:{padding:`0 ${e.arrowWidthPercent/e.desktopCount}%`,gridTemplateColumns:`repeat(${t},1fr)`,gridTemplateRows:`repeat(${i},1fr)`}},e.desktop.items.map(((t,i)=>n().createElement(he,{key:i,item:t,active:i===e.activeIndex}))))}var ye=i(1135),we={};we.styleTagTransform=E(),we.setAttributes=y(),we.insert=v().bind(null,"head"),we.domAPI=g(),we.insertStyleElement=b(),u()(ye.A,we);const be=ye.A&&ye.A.locals?ye.A.locals:void 0;var Ae=i(8095),Ee={};Ee.styleTagTransform=E(),Ee.setAttributes=y(),Ee.insert=v().bind(null,"head"),Ee.domAPI=g(),Ee.insertStyleElement=b(),u()(Ae.A,Ee);const Ce=Ae.A&&Ae.A.locals?Ae.A.locals:void 0;var Le=i(219),Ie={};Ie.styleTagTransform=E(),Ie.setAttributes=y(),Ie.insert=v().bind(null,"head"),Ie.domAPI=g(),Ie.insertStyleElement=b(),u()(Le.A,Ie);const Ne=Le.A&&Le.A.locals?Le.A.locals:void 0;function Se(e){var t,i,o;let{item:r}=e;const s=(0,a.useMemo)((()=>{var e,t;return"microApp"===(null===(e=r.launchpadCollection)||void 0===e?void 0:e.type)?!r.microAppId:"customItem"===(null===(t=r.launchpadCollection)||void 0===t?void 0:t.type)&&!(null!=r&&r.customItemId)}),[r]),l=(0,a.useMemo)((()=>{var e,t,i;const a=null===(e=r.launchpadCollection)||void 0===e?void 0:e.link;if("microApp"===(null===(t=r.launchpadCollection)||void 0===t?void 0:t.type))return a;const n=document.baseURI;return null!=a&&a.startsWith(n)?null==a?void 0:a.replace(n,"/"):null===(i=r.launchpadCollection)||void 0===i?void 0:i.link}),[r]);return n().createElement("div",null,n().createElement("div",{className:m()(Ne.cellWrapper,{[Ne.disabled]:s})},n().createElement(N,{className:Ne.link,url:l,onClick:e=>{var t,i,a,n;s?e.preventDefault():("link"!==(null===(n=r.launchpadCollection)||void 0===n?void 0:n.type)&&me.setFavoriteAsVisitor(r),!(null!==(t=r.launchpadCollection)&&void 0!==t&&null!==(t=t.link)&&void 0!==t&&t.startsWith("https://")||null!==(i=r.launchpadCollection)&&void 0!==i&&null!==(i=i.link)&&void 0!==i&&i.startsWith("http://"))||null!==(a=r.launchpadCollection)&&void 0!==a&&null!==(a=a.link)&&void 0!==a&&a.startsWith(document.baseURI)||(e.preventDefault(),window.open(r.launchpadCollection.link,"_blank")))}},n().createElement(n().Fragment,null,n().createElement("span",{className:m()(Ne.appLink,Ne.square)},n().createElement(S,(0,p.A)({},null!==(t=(0,B.omit)(null==r||null===(i=r.launchpadCollection)||void 0===i?void 0:i.icon,["prefix","type"]))&&void 0!==t?t:{},{style:{fontSize:18}}))),n().createElement("span",{className:Ne.name},null==r||null===(o=r.launchpadCollection)||void 0===o?void 0:o.name)))))}var We=i(8430),ze={};ze.styleTagTransform=E(),ze.setAttributes=y(),ze.insert=v().bind(null,"head"),ze.domAPI=g(),ze.insertStyleElement=b(),u()(We.A,ze);const _e=We.A&&We.A.locals?We.A.locals:void 0,Be=(0,c.wrapBrick)("eo-link");function Pe(e,t){var i;return(0,a.useEffect)((()=>{var t;null===(t=e.onLoad)||void 0===t||t.call(e)}),[]),n().createElement("div",{className:_e.scrollContainer,style:e.containerStyle,ref:t,onWheel:e=>{e.stopPropagation()}},n().createElement("div",{className:_e.siteMapContainer},null===(i=e.categoryList)||void 0===i?void 0:i.map((e=>{var t;return n().createElement("div",{className:_e.groupWrapper,key:e.name},n().createElement("div",null,e.name),n().createElement("ul",{className:_e.group},null===(t=e.apps)||void 0===t?void 0:t.map(((e,t)=>n().createElement("li",{className:_e.item,key:t},n().createElement(Be,{type:"plain",url:e.homepage,onClick:()=>{return t=e,void me.pushVisitor("app",t);var t}},e.name))))))}))))}const De=(0,a.forwardRef)(Pe),Me=(0,c.wrapBrick)("eo-link"),Fe=(0,c.wrapBrick)("eo-icon");var He=function(e){return e.Favorities="favorities",e.Sitemap="sitemap",e}(He||{});let Te=He.Sitemap;function je(e,t){const[i]=(0,a.useState)(me.getAllVisitors()),[o,r]=(0,a.useState)([]),[s,l]=(0,a.useState)(!me.favoritesLoaded),[p,c]=(0,a.useState)(Te),d=(0,a.createRef)(),h=(0,a.useRef)(null),[u,f]=(0,a.useState)(),g=async e=>{const t=await me.fetchFavoriteList(e);l(!1),r(t)},x=(e,t)=>{e.stopPropagation(),Te=t,c(t)};(0,a.useEffect)((()=>{(async()=>{g()})()}),[]);const v=()=>{g(!0)},k=()=>{const e=d.current,t=h.current;e&&t&&Promise.resolve().then((()=>{const i=e.getBoundingClientRect(),a=t.getBoundingClientRect().bottom-i.top;f(a)}))},y=(0,a.useMemo)((()=>n().createElement("div",{className:Ce.visited},n().createElement("div",{className:Ce.title},"最近访问"),n().createElement("div",{className:Ce.desktop},null==i?void 0:i.map(((e,t)=>n().createElement(he,{size:"small",key:t,item:e,showAddIcon:!0,isFavorite:!me.isFavorite(e),onSetAsFavorite:v})))))),[i,s]),w=(0,a.useMemo)((()=>n().createElement("div",{className:m()([Ce.section,Ce.favorites])},s&&n().createElement("div",{className:Ce.spin},n().createElement(Fe,{lib:"antd",icon:"loading",theme:"outlined",style:{fontSize:"2.5rem"},spinning:!0})),(0,B.isEmpty)(o)?!s&&n().createElement("div",{className:Ce.emptyTips},"把常用的页面链接加入收藏夹,方便快速访问 ~"," ",n().createElement(Me,{url:"/launchpad-collection",style:{marginLeft:30}},"管理我的收藏")):n().createElement("div",{className:Ce.favoriteContainer},null==o?void 0:o.map(((e,t)=>n().createElement(Se,{key:t,item:e})))))),[o,s]),b=(0,a.useMemo)((()=>{var e;const t=null===(e=me.getSitemapList())||void 0===e?void 0:e.filter((e=>{var t;return(null===(t=e.apps)||void 0===t?void 0:t.length)>0}));return n().createElement(De,{ref:d,categoryList:t,containerStyle:{height:u,overflow:"auto"},onLoad:k})}),[u]);return n().createElement("div",{ref:h,style:{flex:1,padding:`0 ${e.desktopCount?e.arrowWidthPercent/e.desktopCount:10}%`}},!(null==i||!i.length)&&y,n().createElement("div",{className:Ce.modeWrapper},n().createElement("div",{className:Ce.header},p===He.Favorities?n().createElement("div",{className:Ce.title}," ","我的收藏",n().createElement(Fe,{className:Ce.modeIcon,icon:"launchpad-sitmap",lib:"easyops",category:"app",onClick:e=>x(e,He.Sitemap)})):n().createElement("div",{className:Ce.title},"系统地图",n().createElement(Fe,{className:Ce.modeIcon,icon:"launchpad-collection",lib:"easyops",category:"app",onClick:e=>x(e,He.Favorities)})),p===He.Favorities&&n().createElement("div",{className:Ce.settingsContainer},n().createElement(Me,{url:"/launchpad-collection"},n().createElement(Fe,{className:Ce.settings,icon:"launchpad-setting",lib:"easyops",category:"app"}),"管理收藏"))),p===He.Favorities?w:b))}let qe=0;function Re(e){const[t,i]=n().useState(qe),[r,s]=n().useState(-1),{columns:l,rows:p}=fe(),{setDesktopDir:c}=V();(0,a.useEffect)((()=>{me.setMaxVisitorLength(8)}),[l,!0]);const d=e=>({name:"-",items:e.map((e=>"custom"===e.type?{id:e.id,name:e.name,url:e.homepage,type:"custom",app:e}:{type:"app",id:e.id,app:e}))}),h=e=>({localeName:e.name,homepage:e.url,...e,type:"custom"});let u=[],f=e.microApps;if("object"==typeof(null==e?void 0:e.desktops)&&e.desktops.length>0){f=[];const t=e.microApps.reduce(((e,t)=>(e.set(t.id,t),e)),new Map);u=e.desktops.map((e=>({name:e.name,items:e.items.map((e=>{if("app"===e.type){if(t.has(e.id)){const i=t.get(e.id);return f.push(i),t.delete(e.id),{type:e.type,id:e.id,app:i}}}else if("dir"===e.type){const i=e.items.map((e=>{if("app"===e.type){if(t.has(e.id)){const i=t.get(e.id);return f.push(i),t.delete(e.id),{type:e.type,id:e.id,app:i}}}else if("custom"===e.type)return f.push(h(e)),e})).filter(Boolean);if(i.length>0)return{type:e.type,id:e.id,name:e.name,items:i}}else if("custom"===e.type)return f.push(h(e)),e})).filter(Boolean).slice(0,l*p)}))).filter((e=>e.items.length>0))}else e.desktops||(u=(0,B.chunk)(e.microApps,l*p).map(d));let g={};if(e.q){const t=e.q.toLowerCase();g=d(f.filter((e=>e.localeName.toLowerCase().includes(t)||e.name.toLowerCase().includes(t)||e.id.toLowerCase().includes(t))).slice(0,l*p))}n().useEffect((()=>{s(-1)}),[t]),n().useEffect((()=>{s(e.q&&g&&g.items.length>0?0:-1)}),[e.q]);const x=n().useRef(!1),v=e=>{x.current||(qe=e,i(e),x.current=!0,setTimeout((()=>{x.current=!1}),400))},k=n().useCallback((()=>{t>0&&v(t-1)}),[t]),y=n().useCallback((()=>{const e=u.length;t<e&&v(t+1)}),[t,u.length]);n().useEffect((()=>{const i=i=>{if(0===t&&!e.q)return;const a=i.key||i.keyCode||i.which,n=e.q?g:u[t-1];if("Enter"===a||13===a){if(i.preventDefault(),r>=0&&r<n.items.length){const e=n.items[r];if("app"===e.type)me.pushVisitor("app",e.app),(0,o.getHistory)().push(e.app.homepage);else if("custom"===e.type)me.pushVisitor("custom",e),window.open(e.url);else if("dir"===e.type){const t=r%l,i=Math.floor(r/l);null==c||c({activeIndex:0,dir:{name:e.name,items:e.items},coordinates:{x:window.innerWidth*(t+1)/(l+1),y:window.innerHeight*(i+1)/(p+1)}})}}}else{let e=0;if("ArrowRight"===a||39===a?e=1:"ArrowLeft"===a||37===a?e=-1===r?n.items.length:-1:"ArrowDown"===a||40===a?e=-1===r?1:l:"ArrowUp"!==a&&38!==a||(e=-1===r?n.items.length:-l),0!==e){i.preventDefault();const t=r+e;t>=0&&t<n.items.length&&s(t)}}};return window.addEventListener("keydown",i),()=>{window.removeEventListener("keydown",i)}}),[t,r,e.q,l,c]);const w=n().useRef(0),b=n().useRef(0),A=n().useRef(!0),E=n().useRef(),C=u.length+1;return n().createElement("div",{onWheel:e=>{w.current+=e.deltaX,b.current+=e.deltaY,(()=>{if(!A.current)return;const e=Math.abs(b.current)>Math.abs(w.current)?b:w,t=e===b?4:40;if(e.current>=t)y();else{if(!(e.current<=-t))return;k()}w.current=0,b.current=0,A.current=!1})(),E.current&&clearTimeout(E.current),E.current=setTimeout((()=>{w.current=0,b.current=0,A.current=!0}),50)},className:m()(be.desktopSlider,{[be.filtered]:e.q})},n().createElement("div",{className:be.desktopSelector},[{name:n().createElement(S,{lib:"antd",theme:"filled",icon:"home"})},...u].map(((e,i)=>n().createElement(n().Fragment,{key:i},0!==i&&n().createElement("span",{className:be.selectorSeparator}),n().createElement("a",{className:m()(be.desktopName,{[be.active]:t===i}),onClick:e=>((e,i)=>{e.stopPropagation(),t!==i&&v(i)})(e,i),role:"button"},e.name))))),n().createElement("div",{className:be.scrollContainer},n().createElement("div",{className:be.desktopList,style:{width:100*C+"%",marginLeft:-100*t+"%",transition:"margin-left 400ms ease-out"}},n().createElement(je,{desktopCount:u.length,arrowWidthPercent:e.arrowWidthPercent}),u.map(((i,a)=>n().createElement(ke,{key:a,desktop:i,desktopCount:u.length,arrowWidthPercent:e.arrowWidthPercent,activeIndex:t-1===a?r:-1})))),e.q&&n().createElement("div",{className:be.filteredList},n().createElement(ke,{desktop:g,desktopCount:1,arrowWidthPercent:e.arrowWidthPercent,activeIndex:r}))),n().createElement("a",{className:m()(be.arrowLeft,{[be.available]:t>0}),style:{width:`${e.arrowWidthPercent}%`},onClick:e=>{e.stopPropagation(),k()},role:"button"},n().createElement("span",{className:be.arrowButton},n().createElement(S,{lib:"antd",theme:"outlined",icon:"left"}))),n().createElement("a",{className:m()(be.arrowRight,{[be.available]:t<C-1}),style:{width:`${e.arrowWidthPercent}%`},onClick:e=>{e.stopPropagation(),y()},role:"button"},n().createElement("span",{className:be.arrowButton},n().createElement(S,{lib:"antd",theme:"outlined",icon:"right"}))))}var Je=i(1759),Ke={};Ke.styleTagTransform=E(),Ke.setAttributes=y(),Ke.insert=v().bind(null,"head"),Ke.domAPI=g(),Ke.insertStyleElement=b(),u()(Je.A,Ke);const Ze=Je.A&&Je.A.locals?Je.A.locals:void 0;function Ve(e){const{columns:t,rows:i}=fe(),{setDesktopDir:a}=V(),[r,s]=n().useState(!1),[p,c]=n().useState(e.activeIndex),d=e.dir.items.slice(0,t*i),m=e.coordinates.x-document.documentElement.clientWidth/2,h=e.coordinates.y-document.documentElement.clientHeight/2;n().useEffect((()=>{const e=e=>{e.stopPropagation(),e.preventDefault();const i=e.key||e.keyCode||e.which;if("Escape"===i||27===i)null==a||a(void 0);else if("Enter"===i||13===i){if(p>=0&&p<d.length){const e=d[p];"app"===e.type?(0,o.getHistory)().push(e.app.homepage):window.open(e.url)}}else{let e=0;if("ArrowRight"===i||39===i?e=1:"ArrowLeft"===i||37===i?e=-1===p?d.length:-1:"ArrowDown"===i||40===i?e=-1===p?1:t:"ArrowUp"!==i&&38!==i||(e=-1===p?d.length:-t),0!==e){const t=p+e;t>=0&&t<d.length&&c(t)}}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[e.dir,p,t,i,a]);const u=Math.ceil(d.length/t);return n().createElement(l.A,{in:!0,timeout:150,appear:!0,classNames:"no-rules-class-name",onEntering:()=>{s(!0)}},n().createElement("div",{className:Ze.dirContainer,onClick:e=>{e.stopPropagation(),null==a||a(void 0)},style:{padding:`0 ${e.arrowWidthPercent}% 36px`,transform:r?"none":`translate(${m}px,${h}px) scale(0.01)`}},n().createElement("div",{className:Ze.dirName},e.dir.name),n().createElement("div",{className:Ze.dirContent,style:{height:100*(u+.2)/(i+1)+"%",gridTemplateColumns:`repeat(${t},1fr)`,gridTemplateRows:`repeat(${u},1fr)`}},d.map(((e,t)=>n().createElement(he,{key:e.id,item:e,active:p===t}))))))}var Ue=i(3031),Ye={};Ye.styleTagTransform=E(),Ye.setAttributes=y(),Ye.insert=v().bind(null,"head"),Ye.domAPI=g(),Ye.insertStyleElement=b(),u()(Ue.A,Ye);const Oe=Ue.A&&Ue.A.locals?Ue.A.locals:void 0,Xe=(0,c.wrapBrick)("eo-icon");function Ge(e){const{settings:t,desktops:i}=me.getBaseInfo(),a=()=>me.getBaseInfo().microApps.filter((e=>e&&(!e.status||"enabled"===e.status||"developing"===e.status))),[r,s]=n().useState(""),[c,d]=n().useState(a()),[m,h]=n().useState(),[u,f]=n().useState(!!window.STANDALONE_MICRO_APPS&&!me.loaded);return n().useEffect((()=>{window.STANDALONE_MICRO_APPS?(async()=>{try{await me.fetchLaunchpadInfo(),f(!1),d(a())}catch(i){var t;null===(t=e.onWillClose)||void 0===t||t.call(e),(0,o.handleHttpError)(i)}})():me.init()}),[]),n().useEffect((()=>{const t=t=>{const i=t.key||t.keyCode||t.which;var a;"Escape"!==i&&27!==i||null===(a=e.onWillClose)||void 0===a||a.call(e)};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}}),[e.onWillClose]),n().createElement(ue.Provider,{value:t},n().createElement(Z.Provider,{value:{desktopDir:m,setDesktopDir:h}},n().createElement("div",{className:Oe.launchpad,onClick:e.onWillClose},u?n().createElement("div",{className:Oe.loadingWrapper},n().createElement(Xe,{icon:"loading",lib:"antd",theme:"outlined",spinning:!0})):n().createElement(n().Fragment,null,n().createElement(l.A,{in:!m,timeout:100,classNames:{enter:Oe.fadeEnter,enterActive:Oe.fadeEnterActive,exit:Oe.fadeExit,exitActive:Oe.fadeExitActive,exitDone:Oe.fadeExitDone}},n().createElement("div",{className:Oe.launchpadContainer},n().createElement(_,{onChange:e=>{s(e)}}),n().createElement(Re,{q:r,microApps:c,desktops:i,arrowWidthPercent:9}))),m&&n().createElement(Ve,(0,p.A)({},m,{arrowWidthPercent:9}))))))}var Qe=i(4739),$e={};$e.styleTagTransform=E(),$e.setAttributes=y(),$e.insert=v().bind(null,"head"),$e.domAPI=g(),$e.insertStyleElement=b(),u()(Qe.A,$e);const et=Qe.A&&Qe.A.locals?Qe.A.locals:void 0;function tt(e){const[t,i]=n().useState(!0);return n().createElement(l.A,{in:t,timeout:100,appear:!0,classNames:{...et},onExited:()=>{var t;null===(t=e.onClose)||void 0===t||t.call(e)}},n().createElement(Ge,{onWillClose:()=>{var t;i(!1),null===(t=e.onWillClose)||void 0===t||t.call(e)}}))}function it(e){const t=document.createElement("div");return n().useEffect((()=>(document.body.appendChild(t),()=>{document.body.removeChild(t)}))),e.visible?(0,s.createPortal)(n().createElement(tt,{onWillClose:e.onWillClose,onClose:e.onClose}),t):null}var at=i(6674);function nt(){const[e,t]=(0,a.useState)(!1),i=(0,a.useCallback)((()=>{(0,o.getRuntime)().toggleLaunchpadEffect(!1)}),[]);return(0,a.useEffect)((()=>(0,o.getHistory)().listen((()=>{i(),t(!1)}))),[i]),(0,a.useEffect)((()=>(at.A.filter=function(){return!0},(0,at.A)("alt+l",(e=>{e.preventDefault(),t((e=>{const t=!e;return t||i(),t}))})),()=>{at.A.unbind("alt+l")})),[i]),(0,a.useEffect)((()=>{(0,o.getRuntime)().toggleLaunchpadEffect(e)}),[e]),(0,a.useEffect)((()=>{me.preFetchLaunchpadInfo(),me.preFetchFavorites()}),[]),n().createElement(n().Fragment,null,n().createElement("a",{role:"button",className:"launchpadLink",onClick:()=>{t(!0)}},n().createElement(r.A,null)),n().createElement(it,{visible:e,onWillClose:i,onClose:()=>{t(!1)}}))}},8095:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".desktop--ou0P6iGf{display:grid;grid-template-columns:repeat(8,1fr)}.desktop--ou0P6iGf .cellWrapper{justify-content:flex-start}.title--waO4P2iB{color:#fff;font-size:16px;padding-bottom:6px}.visited--tdY4xwnJ{padding-bottom:24px;margin-bottom:20px;border-bottom:1px rgba(255,255,255,0.25) solid}.favorites--lfUhBPuB .ant-spin-blur{opacity:1}.favorites--lfUhBPuB .ant-spin-blur::after{opacity:0}.modeWrapper--L03hs70G{height:0}.modeWrapper--L03hs70G .header--sdla4qan{display:flex;justify-content:space-between}.modeWrapper--L03hs70G .section--zyFAea1p{padding:10px 30px 20px}.modeWrapper--L03hs70G .modeIcon--CE2TFixF{margin-left:15px;padding:3px;border-radius:50%;opacity:0.8;background:rgba(255,255,255,0.1)}.modeWrapper--L03hs70G .modeIcon--CE2TFixF:hover{opacity:1}.modeWrapper--L03hs70G .emptyTips--IvkqCJZN{font-size:16px;line-height:24px}.modeWrapper--L03hs70G .emptyTips--IvkqCJZN a{color:#52a6f9}.modeWrapper--L03hs70G .emptyTips--IvkqCJZN a:hover{color:var(--antd-link-hover-color)}.spin--wMvBU9Kg{color:#8c8c8c;width:100%;height:200px;line-height:200px;display:flex;align-items:center;justify-content:center}.settingsContainer--Z_f8juq_ a{color:#fff}.settingsContainer--Z_f8juq_ .settings--nnLSnU29{cursor:pointer;margin-right:10px;color:rgba(255,255,255,0.7);font-size:13px;transition-duration:0.8s;transition-property:transform}.settingsContainer--Z_f8juq_:hover .settings--nnLSnU29{transform:rotate(180deg)}.favoriteContainer--CjB0c4Dt{display:grid;grid-template-columns:repeat(5,1fr);gap:2.5rem 7%}@media (max-height: 860px), (max-width: 1280px){.favoriteContainer--CjB0c4Dt{gap:1.7rem 4%}}@media (max-height: 720px), (max-width: 1024px){.favoriteContainer--CjB0c4Dt{gap:1rem 3%}.visited--tdY4xwnJ{padding-bottom:18px;margin-bottom:15px}}@media (max-height: 640px), (max-width: 900px){.favoriteContainer--CjB0c4Dt{gap:0.8rem 2%}}",""]),r.locals={desktop:"desktop--ou0P6iGf",title:"title--waO4P2iB",visited:"visited--tdY4xwnJ",favorites:"favorites--lfUhBPuB",modeWrapper:"modeWrapper--L03hs70G",header:"header--sdla4qan",section:"section--zyFAea1p",modeIcon:"modeIcon--CE2TFixF",emptyTips:"emptyTips--IvkqCJZN",spin:"spin--wMvBU9Kg",settingsContainer:"settingsContainer--Z_f8juq_",settings:"settings--nnLSnU29",favoriteContainer:"favoriteContainer--CjB0c4Dt"};const s=r},8430:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".scrollContainer--dNX8Cn8d::-webkit-scrollbar{width:6px}.scrollContainer--dNX8Cn8d::-webkit-scrollbar-thumb{visibility:hidden;border-radius:3px;background-color:rgba(69,69,73,0.45)}.scrollContainer--dNX8Cn8d::-webkit-scrollbar-track{visibility:hidden;width:12px;background-color:rgb(140,140,140,0.2)}.scrollContainer--dNX8Cn8d:hover{background:rgba(18,21,26,0.4);box-shadow:0px 5px 10px 4px rgba(0,0,0,0.1);border-radius:6px}.scrollContainer--dNX8Cn8d:hover::-webkit-scrollbar-thumb,.scrollContainer--dNX8Cn8d:hover::-webkit-scrollbar-track{visibility:visible}.siteMapContainer--oPV4617W{padding-top:10px;column-count:5}.siteMapContainer--oPV4617W .groupWrapper--vg8DzjpO{margin:0 30px;page-break-inside:avoid;break-inside:avoid}.siteMapContainer--oPV4617W .groupWrapper--vg8DzjpO .group--ojLUh6U2{margin:0;padding:9px 0 58px}.siteMapContainer--oPV4617W .groupWrapper--vg8DzjpO .item--UDV8jW76{list-style-type:none;font-size:12px;padding:5px 0px}.siteMapContainer--oPV4617W .groupWrapper--vg8DzjpO .item--UDV8jW76 > eo-link{cursor:pointer;color:rgba(255,255,255,0.65)}.siteMapContainer--oPV4617W .groupWrapper--vg8DzjpO .item--UDV8jW76 > eo-link:hover{color:var(--antd-link-hover-color)}",""]),r.locals={scrollContainer:"scrollContainer--dNX8Cn8d",siteMapContainer:"siteMapContainer--oPV4617W",groupWrapper:"groupWrapper--vg8DzjpO",group:"group--ojLUh6U2",item:"item--UDV8jW76"};const s=r},8479:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".desktop--LCHJxkdK{flex:1;display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(4,1fr)}",""]),r.locals={desktop:"desktop--LCHJxkdK"};const s=r},9929:(e,t,i)=>{i.d(t,{I:()=>o,K:()=>a,NS:()=>n});let a=function(e){return e.SEARCH_BY_NAME_KEYWORD="SEARCH_BY_NAME_KEYWORD",e}({});const n="bricks/basic/launchpad",o={en:{SEARCH_BY_NAME_KEYWORD:"Search by name/keyword"},zh:{SEARCH_BY_NAME_KEYWORD:"通过名称/关键字搜索"}}}}]);
2
- //# sourceMappingURL=6595.f6bad476.js.map
1
+ "use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[6595],{1:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".launchpadLink{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.launchpadLink svg{vertical-align:top;filter:grayscale(100%);opacity:0.6;width:16px;height:16px;cursor:pointer}.launchpadLink:hover svg{color:var(--color-brand-hover)!important;filter:none;opacity:1}",""]);const s=r.toString()},219:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".cellWrapper--celYo8CM{display:flex;align-items:center;position:relative;transform-origin:0 0}.cellWrapper--celYo8CM:hover{background-color:rgba(255,255,255,0.1);border-radius:10px;cursor:pointer}.cellWrapper--celYo8CM:hover .closeIcon--kqBgSmBL{display:block}.cellWrapper--celYo8CM.disabled--SXwx9i_9{color:#d8d8d8;opacity:0.5;cursor:no-drop}.cellWrapper--celYo8CM.disabled--SXwx9i_9 .appLink--xxDzS__h,.cellWrapper--celYo8CM.disabled--SXwx9i_9 .name--gT42Hr47{cursor:no-drop}.cellWrapper--celYo8CM.disabled--SXwx9i_9:hover{background:none;border-radius:0}.cellWrapper--celYo8CM.disabled--SXwx9i_9:hover .closeIcon--kqBgSmBL{display:none}.cellItem--JZfNDEVv{height:144px;padding:10px;min-width:120px;display:flex;justify-content:space-between;align-items:center;flex-direction:column}.appLink--xxDzS__h{display:flex;width:46px;height:46px;color:#fff;justify-content:center;align-items:center;position:relative}.appLink--xxDzS__h.circle--wjMEocD_,.appLink--xxDzS__h.square--lOfLBD3x{background-color:rgba(255,255,255,0.1)}.appLink--xxDzS__h.circle--wjMEocD_{border-radius:40px}.appLink--xxDzS__h.square--lOfLBD3x{border-radius:10px}.appLink--xxDzS__h.installing--drkxXY1n{opacity:0.5}.addIcon--ruhiXc4_{position:absolute;font-size:25px;color:white}.circleIcon--nexpPxUz{right:-6px;bottom:5px}.squareIcon--BkpShWWs{right:-6px;bottom:5px}.appLink--xxDzS__h:hover{color:#fff}.appIcon--w9kHpYGc{width:95%}.appName--CLwLdUBP{display:block;font-size:16px;line-height:1.5;height:24px;text-align:center}.link--bllF9zn6{display:flex;justify-content:center;align-items:center}.name--gT42Hr47{flex:1;padding-left:20px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;color:white}.closeIcon--kqBgSmBL{font-size:12px;position:absolute;top:-5px;right:-3px;color:rgba(255,255,255,0.7);display:none}@media (max-height: 860px), (max-width: 1280px){.cellWrapper--celYo8CM{transform:scale(0.8)}}@media (max-height: 700px), (max-width: 1024px){.cellWrapper--celYo8CM{transform:scale(0.7)}}",""]),r.locals={cellWrapper:"cellWrapper--celYo8CM",closeIcon:"closeIcon--kqBgSmBL",disabled:"disabled--SXwx9i_9",appLink:"appLink--xxDzS__h",name:"name--gT42Hr47",cellItem:"cellItem--JZfNDEVv",circle:"circle--wjMEocD_",square:"square--lOfLBD3x",installing:"installing--drkxXY1n",addIcon:"addIcon--ruhiXc4_",circleIcon:"circleIcon--nexpPxUz",squareIcon:"squareIcon--BkpShWWs",appIcon:"appIcon--w9kHpYGc",appName:"appName--CLwLdUBP",link:"link--bllF9zn6"};const s=r},1135:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".desktopSlider--AScHB1Kd{flex:1;position:relative;padding-top:110px;padding-bottom:50px}.filtered--OQSTba5B .desktopList--nOFGKtg0,.filtered--OQSTba5B .arrowLeft--xkZ60z9A,.filtered--OQSTba5B .arrowRight--SFdZw31z,.filtered--OQSTba5B .desktopSelector--rYqx7sAu{display:none}.scrollContainer--PyCfQg85{width:100%;height:100%;overflow:hidden}.desktopList--nOFGKtg0{display:flex;height:100%}.filteredList--qgFcXHyE{display:flex;height:100%}.arrowLeft--xkZ60z9A,\n.arrowRight--SFdZw31z{position:absolute;top:110px;bottom:50px;justify-content:center;align-items:center;display:none}.available--yspNdU90.arrowLeft--xkZ60z9A,.available--yspNdU90.arrowRight--SFdZw31z{display:flex}.arrowLeft--xkZ60z9A{left:0}.arrowRight--SFdZw31z{right:0}.arrowButton--MHbxtjNQ{width:70px;height:70px;font-size:36px;display:flex;justify-content:center;align-items:center;color:#e6e6e6;background-color:rgba(255,255,255,0.1);border-radius:6px;visibility:hidden}.arrowLeft--xkZ60z9A:hover .arrowButton--MHbxtjNQ,\n.arrowRight--SFdZw31z:hover .arrowButton--MHbxtjNQ{visibility:visible}.desktopSelector--rYqx7sAu{position:absolute;top:0;left:0;right:0;height:110px;padding:36px 0;display:flex;justify-content:center;align-items:center;flex-wrap:wrap}.desktopName--M1GlY6Xe{display:block;color:rgba(255,255,255,0.65);border-radius:6px;font-size:12px;line-height:38px;padding:0 16px}.desktopName--M1GlY6Xe:hover{color:#fff}.desktopName--M1GlY6Xe.active--gh6q8Xsv{color:#fff;background-color:rgba(18,21,26,0.3)}.selectorSeparator--tLrL2o9J{display:block;margin:0 8px;width:1px;height:16px;border-left:1px dashed rgba(255,255,255,0.15)}@media (max-height: 860px), (max-width: 1280px){.arrowButton--MHbxtjNQ{width:60px;height:60px;font-size:30px}.desktopSlider--AScHB1Kd{padding-top:98px}.desktopSelector--rYqx7sAu{padding:30px 0;height:98px}}@media (max-height: 700px), (max-width: 1024px){.arrowButton--MHbxtjNQ{width:50px;height:50px;font-size:25px}.desktopSlider--AScHB1Kd{padding-top:86px}.desktopSelector--rYqx7sAu{padding:24px 0;height:86px}}@media (max-height: 640px), (max-width: 900px){.arrowButton--MHbxtjNQ{width:40px;height:40px;font-size:20px}.desktopSlider--AScHB1Kd{padding-top:74px}.desktopSelector--rYqx7sAu{padding:18px 0;height:74px}}",""]),r.locals={desktopSlider:"desktopSlider--AScHB1Kd",filtered:"filtered--OQSTba5B",desktopList:"desktopList--nOFGKtg0",arrowLeft:"arrowLeft--xkZ60z9A",arrowRight:"arrowRight--SFdZw31z",desktopSelector:"desktopSelector--rYqx7sAu",scrollContainer:"scrollContainer--PyCfQg85",filteredList:"filteredList--qgFcXHyE",available:"available--yspNdU90",arrowButton:"arrowButton--MHbxtjNQ",desktopName:"desktopName--M1GlY6Xe",active:"active--gh6q8Xsv",selectorSeparator:"selectorSeparator--tLrL2o9J"};const s=r},1651:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".appLink--XvctrW4d{display:flex;width:80px;height:80px;color:#fff;justify-content:center;align-items:center;position:relative}.appLink--XvctrW4d.circle--ZQ_SHyEN,.appLink--XvctrW4d.square--C8X1afGq{background-color:rgba(255,255,255,0.1)}.appLink--XvctrW4d.small--Mux_F8QK{width:56px;height:56px}@media (max-height: 860px), (max-width: 1280px){.appLink--XvctrW4d.small--Mux_F8QK.appLink--XvctrW4d{transform:scale(0.8)}.appLink--XvctrW4d.small--Mux_F8QK + .appName--wsBI2CZC{font-size:14px;height:21px}}@media (max-height: 700px), (max-width: 1024px){.appLink--XvctrW4d.small--Mux_F8QK.appLink--XvctrW4d{transform:scale(0.7)}.appLink--XvctrW4d.small--Mux_F8QK + .appName--wsBI2CZC{font-size:12px;height:18px}}.appLink--XvctrW4d.circle--ZQ_SHyEN{border-radius:40px}.appLink--XvctrW4d.square--C8X1afGq{border-radius:10px}.addIcon--DHJxfx2l{position:absolute;display:none;font-size:20px;color:white}.circleIcon--NoKu04zb{right:-7px;bottom:5px}.squareIcon--JeHz5VMI{right:-3px;bottom:5px}.appLink--XvctrW4d:hover{color:#fff}.appIcon--K35YGQTl{width:100%}.appName--wsBI2CZC{display:block;font-size:16px;line-height:1.5;height:24px;text-align:center}@media (max-height: 860px), (max-width: 1280px){.appLink--XvctrW4d{transform:scale(0.75)}.appName--wsBI2CZC{font-size:14px;height:21px}}@media (max-height: 700px), (max-width: 1024px){.appLink--XvctrW4d{transform:scale(0.6)}.appName--wsBI2CZC{font-size:12px;height:18px}}@media (max-height: 640px), (max-width: 900px){.appLink--XvctrW4d{transform:scale(0.5)}}",""]),r.locals={appLink:"appLink--XvctrW4d",circle:"circle--ZQ_SHyEN",square:"square--C8X1afGq",small:"small--Mux_F8QK",appName:"appName--wsBI2CZC",addIcon:"addIcon--DHJxfx2l",circleIcon:"circleIcon--NoKu04zb",squareIcon:"squareIcon--JeHz5VMI",appIcon:"appIcon--K35YGQTl"};const s=r},1759:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".dirContainer--yobNkKHJ{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;left:0;top:0;transition:transform 150ms ease-out}.dirName--S6uKBACL{margin-bottom:40px;font-size:24px;line-height:32px;text-align:center}.dirContent--zQ9gweDn{display:grid;background-color:rgba(18,21,26,0.4);border-radius:20px;width:100%}",""]),r.locals={dirContainer:"dirContainer--yobNkKHJ",dirName:"dirName--S6uKBACL",dirContent:"dirContent--zQ9gweDn"};const s=r},2240:(e,t,i)=>{i.d(t,{A:()=>o});var a=i(9575),n=i(8769);const o=e=>n.createElement("svg",(0,a.A)({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 16 16"},e),n.createElement("g",{fill:"currentColor",fillRule:"nonzero"},n.createElement("path",{d:"M0 0h4v4H0zM0 6h4v4H0zM6 0h4v4H6zM6 6h4v4H6zM12 0h4v4h-4zM12 6h4v4h-4zM0 12h4v4H0zM6 12h4v4H6zM12 12h4v4h-4z"})))},2535:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".cellWrapper--NydKY8Uu{display:flex;justify-content:center;align-items:center;overflow:hidden}.cellWrapper--NydKY8Uu.positionLeft--VreE62uh{justify-content:flex-start}.cellItem--Se6r55Ne{height:144px;padding:10px;min-width:120px;display:flex;justify-content:space-between;align-items:center;flex-direction:column}.cellItem--Se6r55Ne.small--QJ2gld44{height:110px}.cellItem--Se6r55Ne.active--KANJZK5a{background-color:rgba(0,0,0,0.3);border-radius:6px}@media (max-height: 860px), (max-width: 1280px){.cellItem--Se6r55Ne{height:134px;min-width:100px;justify-content:normal}.cellItem--Se6r55Ne.small--QJ2gld44{height:110px;min-width:76px;justify-content:normal}}@media (max-height: 700px), (max-width: 1024px){.cellItem--Se6r55Ne{height:129px;min-width:80px;justify-content:normal}.cellItem--Se6r55Ne.small--QJ2gld44{height:100px;min-width:60px;justify-content:normal}}",""]),r.locals={cellWrapper:"cellWrapper--NydKY8Uu",positionLeft:"positionLeft--VreE62uh",cellItem:"cellItem--Se6r55Ne",small:"small--QJ2gld44",active:"active--KANJZK5a"};const s=r},2575:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".dirLink--Ezp7L944{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);width:80px;height:80px;color:#fff;justify-content:center;align-items:center;background-color:rgba(0,0,0,0.15);border-radius:10px;font-size:21px;padding:7px}.dirLink--Ezp7L944.small--S5JXqzG8{width:56px;height:56px}.dirLink--Ezp7L944 .appIcon--TdWlSNU2,.dirLink--Ezp7L944 .anticon{width:33px;height:33px}.dirLink--Ezp7L944 .anticon{display:flex;justify-content:center;align-items:center;overflow:hidden}.dirLink--Ezp7L944:hover{color:#fff}.dirName--zvy885aK{display:block;font-size:16px;line-height:1.5;height:24px;text-align:center}@media (max-height: 860px), (max-width: 1280px){.dirLink--Ezp7L944{transform:scale(0.75)}.dirName--zvy885aK{font-size:14px;height:21px}}@media (max-height: 700px), (max-width: 1024px){.dirLink--Ezp7L944{transform:scale(0.6)}.dirName--zvy885aK{font-size:12px;height:18px}}@media (max-height: 640px), (max-width: 900px){.dirLink--Ezp7L944{transform:scale(0.5)}}",""]),r.locals={dirLink:"dirLink--Ezp7L944",small:"small--S5JXqzG8",appIcon:"appIcon--TdWlSNU2",dirName:"dirName--zvy885aK"};const s=r},2867:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".appLink--lI6ZH8_J{display:flex;width:80px;height:80px;color:#fff;justify-content:center;align-items:center;position:relative}.appLink--lI6ZH8_J.circle--CqDDCO2g,.appLink--lI6ZH8_J.square--KkzxvIhL{background-color:rgba(255,255,255,0.1)}.appLink--lI6ZH8_J.small--oHLIwdUo{width:56px;height:56px}@media (max-height: 860px), (max-width: 1280px){.appLink--lI6ZH8_J.small--oHLIwdUo.appLink--lI6ZH8_J{transform:scale(0.8)}.appLink--lI6ZH8_J.small--oHLIwdUo + .appName--YMtvoP3g{font-size:14px;height:21px}}@media (max-height: 700px), (max-width: 1024px){.appLink--lI6ZH8_J.small--oHLIwdUo.appLink--lI6ZH8_J{transform:scale(0.7)}.appLink--lI6ZH8_J.small--oHLIwdUo + .appName--YMtvoP3g{font-size:12px;height:18px}}.appLink--lI6ZH8_J.circle--CqDDCO2g{border-radius:40px}.appLink--lI6ZH8_J.square--KkzxvIhL{border-radius:10px}.appLink--lI6ZH8_J.installing--wQF5JcJn{opacity:0.5}.appLink--lI6ZH8_J:hover .addIcon--EM1rukmN{display:block}.addIcon--EM1rukmN{position:absolute;font-size:20px;color:white;display:none}.circleIcon--C6tDgTcK{right:-7px;bottom:5px}.squareIcon--Vl9EHU0t{right:-3px;bottom:5px}.appLink--lI6ZH8_J:hover{color:#fff;opacity:0.6}.appIcon--CfrDjC_d{width:100%}.appName--YMtvoP3g{display:block;font-size:16px;line-height:1.5;height:24px;text-align:center}@media (max-height: 860px), (max-width: 1280px){.appLink--lI6ZH8_J{transform:scale(0.75)}.appName--YMtvoP3g{font-size:14px;height:21px}}@media (max-height: 700px), (max-width: 1024px){.appLink--lI6ZH8_J{transform:scale(0.6)}.appName--YMtvoP3g{font-size:12px;height:18px}}@media (max-height: 640px), (max-width: 900px){.appLink--lI6ZH8_J{transform:scale(0.5)}}",""]),r.locals={appLink:"appLink--lI6ZH8_J",circle:"circle--CqDDCO2g",square:"square--KkzxvIhL",small:"small--oHLIwdUo",appName:"appName--YMtvoP3g",installing:"installing--wQF5JcJn",addIcon:"addIcon--EM1rukmN",circleIcon:"circleIcon--C6tDgTcK",squareIcon:"squareIcon--Vl9EHU0t",appIcon:"appIcon--CfrDjC_d"};const s=r},3031:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".launchpad--jiWBelji{background:rgba(36,41,51,0.93);position:fixed;top:0;bottom:0;left:0;right:0;z-index:5000;overflow:hidden;overflow-y:auto;color:#fff;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}.launchpadContainer--_vrKLUwW{display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden}.fadeEnter--lOmmReOY{opacity:0;transform:scale(0.95)}.fadeEnterActive--PRkux5Hj{opacity:1;transform:translateX(0);transition:opacity 100ms ease-out,transform 100ms ease-out}.fadeExit--egWs3z_Z{opacity:1}.fadeExitActive--Emt0ZO0f{opacity:0;transform:scale(0.95);transition:opacity 100ms ease-out,transform 100ms ease-out}.fadeExitDone--KS8Y8j_i{display:none}.loadingWrapper--a0uhMogW{display:flex;justify-content:center;align-items:center;height:100%;font-size:58px;color:var(--theme-cyan-color)}",""]),r.locals={launchpad:"launchpad--jiWBelji",launchpadContainer:"launchpadContainer--_vrKLUwW",fadeEnter:"fadeEnter--lOmmReOY",fadeEnterActive:"fadeEnterActive--PRkux5Hj",fadeExit:"fadeExit--egWs3z_Z",fadeExitActive:"fadeExitActive--Emt0ZO0f",fadeExitDone:"fadeExitDone--KS8Y8j_i",loadingWrapper:"loadingWrapper--a0uhMogW"};const s=r},4739:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".appear--fTt52aoG{opacity:0;transform:scale(1.05)}.appearActive--VTTHohOa{opacity:1;transform:translateX(0);transition:opacity 100ms ease-out,transform 100ms ease-out}.exit--xJVirpkU{opacity:1}.exitActive--JBRp0ETG{opacity:0;transform:scale(1.05);transition:opacity 100ms ease-out,transform 100ms ease-out}",""]),r.locals={appear:"appear--fTt52aoG",appearActive:"appearActive--VTTHohOa",exit:"exit--xJVirpkU",exitActive:"exitActive--JBRp0ETG"};const s=r},6087:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,'.searchBar--k7ys_9bU{display:flex;justify-content:center;align-items:flex-end;height:10%}.searchBar--k7ys_9bU .inputAffixWrapper--r90ghnJb{position:relative;width:100%;min-width:0;padding:4px 11px;color:var(--antd-input-color);font-size:14px;line-height:1.5715;background-image:none;display:inline-flex;height:42px;border-radius:21px;padding-left:54px;padding-right:4px;border:2px solid rgba(255,255,255,0.1);background-color:rgba(0,0,0,0.06);transition:padding-left 150ms ease-out;box-sizing:border-box}.searchBar--k7ys_9bU .inputAffixWrapper--r90ghnJb:hover{border-color:#0071eb;border-right-width:2px!important}.searchBar--k7ys_9bU .inputAffixWrapper--r90ghnJb .antInputPrefix--vr3ceVIR{width:30px;margin-left:0;margin-right:6px;display:flex;justify-content:center;color:rgba(255,255,255,0.65);flex:none;align-items:center;box-sizing:border-box}.searchBar--k7ys_9bU .inputAffixWrapper--r90ghnJb::before{width:0;visibility:hidden;content:"\\a0"}.searchBar--k7ys_9bU.focus--rcoZCXD5 .inputAffixWrapper--r90ghnJb,.searchBar--k7ys_9bU .inputAffixWrapperFocused--ym85u9fT{padding-left:4px;border-color:#2893f7;border-right-width:2px!important}.inputContainer--spZyJlDc{width:300px}.input--LvcE67vF{padding:0;border:none;outline:none;color:#fff;background-color:transparent;text-overflow:ellipsis;border-radius:3px}.input--LvcE67vF::placeholder{color:rgba(255,255,255,0.25)}',""]),r.locals={searchBar:"searchBar--k7ys_9bU",inputAffixWrapper:"inputAffixWrapper--r90ghnJb",antInputPrefix:"antInputPrefix--vr3ceVIR",focus:"focus--rcoZCXD5",inputAffixWrapperFocused:"inputAffixWrapperFocused--ym85u9fT",inputContainer:"inputContainer--spZyJlDc",input:"input--LvcE67vF"};const s=r},6293:(e,t,i)=>{i.d(t,{D:()=>nt});var a=i(8769),n=i.n(a),o=i(140),r=i(2240),s=i(9435),l=i(2865),p=i(9575),c=i(9859),d=i(3373),m=i.n(d),h=i(2591),u=i.n(h),f=i(1740),g=i.n(f),x=i(8128),v=i.n(x),k=i(855),y=i.n(k),w=i(3051),b=i.n(w),A=i(3656),E=i.n(A),C=i(6087),L={};L.styleTagTransform=E(),L.setAttributes=y(),L.insert=v().bind(null,"head"),L.domAPI=g(),L.insertStyleElement=b(),u()(C.A,L);const I=C.A&&C.A.locals?C.A.locals:void 0,N=(0,c.wrapBrick)("eo-link"),S=(0,c.wrapBrick)("eo-icon");var W=i(9929),z=i(7201);function _(e){const{t}=(0,z.useTranslation)(W.NS),[i,a]=n().useState(!1),o=n().useCallback((e=>{e&&Promise.resolve().then((()=>{try{e.focus()}catch(e){}}))}),[]);return n().createElement("div",{className:m()(I.searchBar,{[I.focus]:i})},n().createElement("div",{className:I.inputContainer,role:"inputContainer",onClick:e=>{e.stopPropagation()}},n().createElement("span",{className:m()(I.inputAffixWrapper,{[I.inputAffixWrapperFocused]:i})},n().createElement("span",{className:I.antInputPrefix},n().createElement(S,{icon:"search",lib:"antd",theme:"outlined"})),n().createElement("input",{role:"input",className:I.input,placeholder:t(W.K.SEARCH_BY_NAME_KEYWORD),onChange:t=>{e.onChange(t.target.value)},onKeyDown:e=>{const t=e.key||e.keyCode||e.which;["Tab","Enter","ArrowLeft","ArrowUp","ArrowRight","ArrowDown",9,13,37,38,39,40].includes(t)&&e.preventDefault()},onFocus:()=>{a(!0)},onBlur:()=>{a(!1)},ref:o}))))}var B=i(1030),P=i(2535),D={};D.styleTagTransform=E(),D.setAttributes=y(),D.insert=v().bind(null,"head"),D.domAPI=g(),D.insertStyleElement=b(),u()(P.A,D);const M=P.A&&P.A.locals?P.A.locals:void 0;var F=i(2867),H={};H.styleTagTransform=E(),H.setAttributes=y(),H.insert=v().bind(null,"head"),H.domAPI=g(),H.insertStyleElement=b(),u()(F.A,H);const T=F.A&&F.A.locals?F.A.locals:void 0,j=i.p+"images/cc952ed5.png";function q(e,t){var i;return e.icons&&e.icons.large?/^(?:https?|data):|^\//.test(e.icons.large)?e.icons.large:window.STANDALONE_MICRO_APPS?e.standaloneMode?`${null===(i=window.PUBLIC_ROOT)||void 0===i?void 0:i.replace(/-\/$/,"")}${e.id}/versions/${e.currentVersion}/webroot/-/micro-apps/${e.id}/${e.icons.large}`:`${window.PUBLIC_CDN||""}micro-apps/${e.id}/${e.icons.large}`:`${window.PUBLIC_ROOT||""}micro-apps/${e.id}/${e.icons.large}`:t}const R=(0,c.wrapBrick)("eo-link"),J=(0,c.wrapBrick)("eo-icon");function K(e){let{app:t,onAddClick:i,onClick:a,isFavorite:o,showAddIcon:r,size:s}=e;const l="running"===t.installStatus;return n().createElement(n().Fragment,null,n().createElement(R,{className:m()(T.appLink,T[s],"circle"===t.iconBackground?T.circle:T.square,{[T.installing]:l}),url:t.homepage,onClick:e=>{e.stopPropagation(),l&&e.preventDefault(),null==a||a()}},n().createElement("img",{className:T.appIcon,src:q(t,j)}),r&&o&&n().createElement(J,{className:m()(T.addIcon,"circle"===t.iconBackground?T.circleIcon:T.squareIcon),icon:"plus",lib:"antd",theme:"outlined",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==i||i()}})),n().createElement("span",{className:T.appName},l&&n().createElement(J,{style:{paddingRight:5},icon:"loading-3-quarters",lib:"antd",theme:"outlined"}),t.localeName))}const Z=n().createContext({}),V=()=>n().useContext(Z);var U=i(2575),Y={};Y.styleTagTransform=E(),Y.setAttributes=y(),Y.insert=v().bind(null,"head"),Y.domAPI=g(),Y.insertStyleElement=b(),u()(U.A,Y);const O=U.A&&U.A.locals?U.A.locals:void 0;function X(e){const{setDesktopDir:t}=V();return n().createElement(n().Fragment,null,n().createElement("a",{className:m()(O.dirLink,{[O[e.size]]:!!e.size}),onClick:i=>{i.stopPropagation(),null==t||t({dir:{name:e.name,items:e.items},coordinates:{x:i.clientX,y:i.clientY},activeIndex:-1})},role:"button"},e.items.slice(0,4).map((e=>"app"===e.type?n().createElement("img",{className:O.appIcon,key:e.id,src:q(e.app,j)}):n().createElement("img",{className:O.appIcon,key:e.id,src:j})))),n().createElement("span",{className:O.dirName},e.name))}var G=i(1651),Q={};Q.styleTagTransform=E(),Q.setAttributes=y(),Q.insert=v().bind(null,"head"),Q.domAPI=g(),Q.insertStyleElement=b(),u()(G.A,Q);const $=G.A&&G.A.locals?G.A.locals:void 0,ee=(0,c.wrapBrick)("eo-link"),te=(0,c.wrapBrick)("eo-icon");function ie(e){let{name:t,url:i,showAddIcon:a,isFavorite:o,onClick:r,onAddClick:s,size:l,responsive:p=!0}=e;return n().createElement(n().Fragment,null,n().createElement(ee,{className:m()($.appLink,$.circle,$[l],{[$.responsive]:p}),href:i,target:"_blank",onClick:e=>{e.stopPropagation(),null==r||r()}},n().createElement("img",{className:$.appIcon,src:j}),a&&o&&n().createElement(te,{className:m()($.addIcon,$.circleIcon),icon:"plus-circle-filled",lib:"antd",theme:"outlined",onClick:e=>{e.stopPropagation(),e.preventDefault(),null==s||s()}})),n().createElement("span",{className:$.appName},t))}var ae=i(4586),ne=i(7137),oe=i(9684),re=i(1644),se=i(3887),le=i(3346),pe=i(2340),ce=i(7448),de=i(4864);const me=new class{constructor(){var e;(0,ae.A)(this,"storageKey",`launchpad-recently-visited:${null===(e=pe.auth.getAuth())||void 0===e?void 0:e.org}`),(0,ae.A)(this,"storage",void 0),(0,ae.A)(this,"favoriteList",[]),(0,ae.A)(this,"filteredFavoriteList",[]),(0,ae.A)(this,"microApps",[]),(0,ae.A)(this,"customList",[]),(0,ae.A)(this,"maxVisitorLength",7),(0,ae.A)(this,"baseInfo",{settings:{columns:7,rows:4},microApps:[],desktops:[],siteSort:[]}),(0,ae.A)(this,"loaded",!1),(0,ae.A)(this,"favoritesLoaded",!1),(0,ae.A)(this,"deferredLaunchpadInfo",void 0),(0,ae.A)(this,"deferredFavorites",void 0),(0,ae.A)(this,"doFetchFavorites",(async()=>{const e=(await(0,oe.o)({page:1,pageSize:25},{interceptorParams:{ignoreLoadingBar:!0},noAbortOnRouteChange:!0})).list;this.setFavorites(e),this.favoritesLoaded=!0})),(0,ae.A)(this,"doFetchLaunchpadInfo",(async()=>{const e=await(0,le.i)({},{interceptorParams:{ignoreLoadingBar:!0},noAbortOnRouteChange:!0});for(const t of e.storyboards){const e=t.app;if(e)if(e.locales){const t=`$tmp-${e.id}`;Object.entries(e.locales).forEach((e=>{let[i,a]=e;ce.i18n.addResourceBundle(i,t,a)})),e.localeName=ce.i18n.getFixedT(null,t)("name",e.name),Object.keys(e.locales).forEach((e=>{ce.i18n.removeResourceBundle(e,t)}))}else e.localeName=e.name}this.baseInfo={...e,settings:e.settings.launchpad,microApps:e.storyboards.map((e=>e.app)).filter(Boolean)},this.initValue(),this.loaded=!0})),this.storage=new ne.G(localStorage),this.deferredLaunchpadInfo=new de.x(this.doFetchLaunchpadInfo),this.deferredFavorites=new de.x(this.doFetchFavorites),this.init()}init(){const e=(0,o.getRuntime)();this.baseInfo={desktops:e.getDesktops(),microApps:[e.getCurrentApp()],settings:e.getLaunchpadSettings(),siteSort:e.getLaunchpadSiteMap()},this.initValue()}initValue(){this.customList=this.baseInfo.desktops.map((e=>e.items.filter((e=>"custom"===e.type)))).flat();const e=this.baseInfo.microApps.filter((e=>e&&(!e.status||"enabled"===e.status||"developing"===e.status)));this.setMicroApps(e)}setMaxVisitorLength(e){this.maxVisitorLength=e}preFetchFavorites(){this.deferredFavorites.schedulePrefetch()}async fetchFavoriteList(e){return await this.deferredFavorites.fetch(e),this.favoriteList}preFetchLaunchpadInfo(){window.STANDALONE_MICRO_APPS&&this.deferredLaunchpadInfo.schedulePrefetch()}fetchLaunchpadInfo(){return this.deferredLaunchpadInfo.fetch()}getBaseInfo(){return this.baseInfo}getFavoritesLength(){return this.favoriteList.length}typeAdaptor(e){return"customItem"===e?"custom":"microApp"===e?"app":e}setFavorites(e){var t;this.filteredFavoriteList=null!==(t=null==e?void 0:e.filter((e=>{var t;return"microApp"===(null===(t=e.launchpadCollection)||void 0===t?void 0:t.type)||"customItem"===e.launchpadCollection.type})))&&void 0!==t?t:[],this.favoriteList=e}setMicroApps(e){this.microApps=e,this.syncValidRecentlyVisitor()}syncValidRecentlyVisitor(){if(window.STANDALONE_MICRO_APPS)return;const e=this.getAllVisitors().filter((e=>"app"===e.type?this.microApps.some((t=>t.id===e.id)):this.customList.some((t=>t.type===e.type&&t.id===e.id))));this.setAllVisitors(e)}async setAsFavorite(e){await(0,re.a)(e,{interceptorParams:{ignoreLoadingBar:!0}})}async deleteFavorite(e){await(0,se.j)(e,{interceptorParams:{ignoreLoadingBar:!0}})}isFavorite(e){return"app"===e.type?this.filteredFavoriteList.some((t=>"app"===this.typeAdaptor(t.launchpadCollection.type)&&t.microAppId===e.id)):this.filteredFavoriteList.some((t=>"custom"===this.typeAdaptor(t.launchpadCollection.type)&&t.customItemId===e.id))}getItem(e,t){return(this.storage.getItem(this.storageKey)||[]).find((i=>i.id===t&&i.type===e))}getItemIndex(e,t){return(this.storage.getItem(this.storageKey)||[]).findIndex((i=>i.id===t&&i.type===e))}hasItem(e,t){return(this.storage.getItem(this.storageKey)||[]).some((i=>i.id===t&&i.type===e))}getAllVisitors(){return this.storage.getItem(this.storageKey)||[]}setItem(e,t){const i=this.getAllVisitors();if(this.hasItem(e,t.id)){const a=this.getItemIndex(e,t.id);i.splice(a,1),i.unshift(t)}else i.unshift(t);i.length>this.maxVisitorLength&&i.pop(),this.setAllVisitors(i)}setAllVisitors(e){this.storage.setItem(this.storageKey,e)}pushVisitor(e,t){if("app"===e){const e=t;t={id:e.id,app:{name:e.name,icons:e.icons,localeName:e.localeName,id:e.id,homepage:e.homepage,currentVersion:e.currentVersion,standaloneMode:e.standaloneMode},type:"app"}}this.setItem(e,t)}getVisitor(e,t){return this.getItem(e,t)}getRealDesktopItem(e){var t;return"microApp"===(null===(t=e.launchpadCollection)||void 0===t?void 0:t.type)?this.microApps.find((t=>t.id===e.microAppId)):this.customList.find((t=>t.id===e.customItemId))}setFavoriteAsVisitor(e){var t;const i=this.typeAdaptor(null===(t=e.launchpadCollection)||void 0===t?void 0:t.type);if("link"===i)return;const a=this.getRealDesktopItem(e);a&&this.pushVisitor(i,a)}getSitemapList(){const e=this.baseInfo.microApps.filter((e=>!e.internal)),t=this.baseInfo.siteSort;return null==t?void 0:t.map((t=>({...t,apps:(t.apps||[]).map((t=>{const i=e.find((e=>e.id===t.id))||{};return{...t,...(0,B.pick)(i,["name","icons","localeName","homepage","currentVersion","standaloneMode"])}}))})))}};function he(e){const t=async()=>{if(!(me.getFavoritesLength()>=25&&(o.Dialog.show({title:"收藏数量已达上限",content:"当前收藏链接数量已达上限(25个),请删除部分链接后再添加。",contentStyle:{zIndex:5001}}),1))){let i;if("app"===e.item.type){const t=e.item;i={microAppId:t.id,launchpadCollection:{type:"microApp",name:t.app.name}}}else{const t=e.item;i={customItemId:t.id,launchpadCollection:{type:"customItem",name:t.name}}}try{var t;await me.setAsFavorite(i),null==e||null===(t=e.onSetAsFavorite)||void 0===t||t.call(e)}catch(e){}}};return n().createElement("div",{className:m()(M.cellWrapper,{[M.positionLeft]:"left"===(null==e?void 0:e.position)})},n().createElement("div",{className:m()(M.cellItem,M[e.size],{[M.active]:e.active})},"app"===e.item.type?n().createElement(K,{showAddIcon:e.showAddIcon,isFavorite:e.isFavorite,app:e.item.app,onClick:()=>{const t=e.item.app;me.pushVisitor("app",t)},onAddClick:t,size:e.size}):"custom"===e.item.type?n().createElement(ie,{showAddIcon:e.showAddIcon,isFavorite:e.isFavorite,name:e.item.name,url:e.item.url,onClick:()=>{const t=e.item;me.pushVisitor("custom",t)},onAddClick:t,size:e.size}):n().createElement(X,{name:e.item.name,items:e.item.items,size:e.size})))}const ue=n().createContext({columns:7,rows:4}),fe=()=>n().useContext(ue);var ge=i(8479),xe={};xe.styleTagTransform=E(),xe.setAttributes=y(),xe.insert=v().bind(null,"head"),xe.domAPI=g(),xe.insertStyleElement=b(),u()(ge.A,xe);const ve=ge.A&&ge.A.locals?ge.A.locals:void 0;function ke(e){const{columns:t,rows:i}=fe();return n().createElement("div",{className:ve.desktop,style:{padding:`0 ${e.arrowWidthPercent/e.desktopCount}%`,gridTemplateColumns:`repeat(${t},1fr)`,gridTemplateRows:`repeat(${i},1fr)`}},e.desktop.items.map(((t,i)=>n().createElement(he,{key:i,item:t,active:i===e.activeIndex}))))}var ye=i(1135),we={};we.styleTagTransform=E(),we.setAttributes=y(),we.insert=v().bind(null,"head"),we.domAPI=g(),we.insertStyleElement=b(),u()(ye.A,we);const be=ye.A&&ye.A.locals?ye.A.locals:void 0;var Ae=i(8095),Ee={};Ee.styleTagTransform=E(),Ee.setAttributes=y(),Ee.insert=v().bind(null,"head"),Ee.domAPI=g(),Ee.insertStyleElement=b(),u()(Ae.A,Ee);const Ce=Ae.A&&Ae.A.locals?Ae.A.locals:void 0;var Le=i(219),Ie={};Ie.styleTagTransform=E(),Ie.setAttributes=y(),Ie.insert=v().bind(null,"head"),Ie.domAPI=g(),Ie.insertStyleElement=b(),u()(Le.A,Ie);const Ne=Le.A&&Le.A.locals?Le.A.locals:void 0;function Se(e){var t,i,o;let{item:r}=e;const s=(0,a.useMemo)((()=>{var e,t;return"microApp"===(null===(e=r.launchpadCollection)||void 0===e?void 0:e.type)?!r.microAppId:"customItem"===(null===(t=r.launchpadCollection)||void 0===t?void 0:t.type)&&!(null!=r&&r.customItemId)}),[r]),l=(0,a.useMemo)((()=>{var e,t,i;const a=null===(e=r.launchpadCollection)||void 0===e?void 0:e.link;if("microApp"===(null===(t=r.launchpadCollection)||void 0===t?void 0:t.type))return a;const n=document.baseURI;return null!=a&&a.startsWith(n)?null==a?void 0:a.replace(n,"/"):null===(i=r.launchpadCollection)||void 0===i?void 0:i.link}),[r]);return n().createElement("div",null,n().createElement("div",{className:m()(Ne.cellWrapper,{[Ne.disabled]:s})},n().createElement(N,{className:Ne.link,url:l,onClick:e=>{var t,i,a,n;s?e.preventDefault():("link"!==(null===(n=r.launchpadCollection)||void 0===n?void 0:n.type)&&me.setFavoriteAsVisitor(r),!(null!==(t=r.launchpadCollection)&&void 0!==t&&null!==(t=t.link)&&void 0!==t&&t.startsWith("https://")||null!==(i=r.launchpadCollection)&&void 0!==i&&null!==(i=i.link)&&void 0!==i&&i.startsWith("http://"))||null!==(a=r.launchpadCollection)&&void 0!==a&&null!==(a=a.link)&&void 0!==a&&a.startsWith(document.baseURI)||(e.preventDefault(),window.open(r.launchpadCollection.link,"_blank")))}},n().createElement(n().Fragment,null,n().createElement("span",{className:m()(Ne.appLink,Ne.square)},n().createElement(S,(0,p.A)({},null!==(t=(0,B.omit)(null==r||null===(i=r.launchpadCollection)||void 0===i?void 0:i.icon,["prefix","type"]))&&void 0!==t?t:{},{style:{fontSize:18}}))),n().createElement("span",{className:Ne.name},null==r||null===(o=r.launchpadCollection)||void 0===o?void 0:o.name)))))}var We=i(8430),ze={};ze.styleTagTransform=E(),ze.setAttributes=y(),ze.insert=v().bind(null,"head"),ze.domAPI=g(),ze.insertStyleElement=b(),u()(We.A,ze);const _e=We.A&&We.A.locals?We.A.locals:void 0,Be=(0,c.wrapBrick)("eo-link");function Pe(e,t){var i;return(0,a.useEffect)((()=>{var t;null===(t=e.onLoad)||void 0===t||t.call(e)}),[]),n().createElement("div",{className:_e.scrollContainer,style:e.containerStyle,ref:t,onWheel:e=>{e.stopPropagation()}},n().createElement("div",{className:_e.siteMapContainer},null===(i=e.categoryList)||void 0===i?void 0:i.map((e=>{var t;return n().createElement("div",{className:_e.groupWrapper,key:e.name},n().createElement("div",null,e.name),n().createElement("ul",{className:_e.group},null===(t=e.apps)||void 0===t?void 0:t.map(((e,t)=>n().createElement("li",{className:_e.item,key:t},n().createElement(Be,{type:"plain",url:e.homepage,onClick:()=>{return t=e,void me.pushVisitor("app",t);var t}},e.name))))))}))))}const De=(0,a.forwardRef)(Pe),Me=(0,c.wrapBrick)("eo-link"),Fe=(0,c.wrapBrick)("eo-icon");var He=function(e){return e.Favorities="favorities",e.Sitemap="sitemap",e}(He||{});let Te=He.Sitemap;function je(e,t){const[i]=(0,a.useState)(me.getAllVisitors()),[o,r]=(0,a.useState)([]),[s,l]=(0,a.useState)(!me.favoritesLoaded),[p,c]=(0,a.useState)(Te),d=(0,a.createRef)(),h=(0,a.useRef)(null),[u,f]=(0,a.useState)(),g=async e=>{const t=await me.fetchFavoriteList(e);l(!1),r(t)},x=(e,t)=>{e.stopPropagation(),Te=t,c(t)};(0,a.useEffect)((()=>{(async()=>{g()})()}),[]);const v=()=>{g(!0)},k=()=>{const e=d.current,t=h.current;e&&t&&Promise.resolve().then((()=>{const i=e.getBoundingClientRect(),a=t.getBoundingClientRect().bottom-i.top;f(a)}))},y=(0,a.useMemo)((()=>n().createElement("div",{className:Ce.visited},n().createElement("div",{className:Ce.title},"最近访问"),n().createElement("div",{className:Ce.desktop},null==i?void 0:i.map(((e,t)=>n().createElement(he,{size:"small",key:t,item:e,showAddIcon:!0,isFavorite:!me.isFavorite(e),onSetAsFavorite:v})))))),[i,s]),w=(0,a.useMemo)((()=>n().createElement("div",{className:m()([Ce.section,Ce.favorites])},s&&n().createElement("div",{className:Ce.spin},n().createElement(Fe,{lib:"antd",icon:"loading",theme:"outlined",style:{fontSize:"2.5rem"},spinning:!0})),(0,B.isEmpty)(o)?!s&&n().createElement("div",{className:Ce.emptyTips},"把常用的页面链接加入收藏夹,方便快速访问 ~"," ",n().createElement(Me,{url:"/launchpad-collection",style:{marginLeft:30}},"管理我的收藏")):n().createElement("div",{className:Ce.favoriteContainer},null==o?void 0:o.map(((e,t)=>n().createElement(Se,{key:t,item:e})))))),[o,s]),b=(0,a.useMemo)((()=>{var e;const t=null===(e=me.getSitemapList())||void 0===e?void 0:e.filter((e=>{var t;return(null===(t=e.apps)||void 0===t?void 0:t.length)>0}));return n().createElement(De,{ref:d,categoryList:t,containerStyle:{height:u,overflow:"auto"},onLoad:k})}),[u]);return n().createElement("div",{ref:h,style:{flex:1,padding:`0 ${e.desktopCount?e.arrowWidthPercent/e.desktopCount:10}%`}},!(null==i||!i.length)&&y,n().createElement("div",{className:Ce.modeWrapper},n().createElement("div",{className:Ce.header},p===He.Favorities?n().createElement("div",{className:Ce.title}," ","我的收藏",n().createElement(Fe,{className:Ce.modeIcon,icon:"launchpad-sitmap",lib:"easyops",category:"app",onClick:e=>x(e,He.Sitemap)})):n().createElement("div",{className:Ce.title},"系统地图",n().createElement(Fe,{className:Ce.modeIcon,icon:"launchpad-collection",lib:"easyops",category:"app",onClick:e=>x(e,He.Favorities)})),p===He.Favorities&&n().createElement("div",{className:Ce.settingsContainer},n().createElement(Me,{url:"/launchpad-collection"},n().createElement(Fe,{className:Ce.settings,icon:"launchpad-setting",lib:"easyops",category:"app"}),"管理收藏"))),p===He.Favorities?w:b))}let qe=0;function Re(e){const[t,i]=n().useState(qe),[r,s]=n().useState(-1),{columns:l,rows:p}=fe(),{setDesktopDir:c}=V();(0,a.useEffect)((()=>{me.setMaxVisitorLength(8)}),[l,!0]);const d=e=>({name:"-",items:e.map((e=>"custom"===e.type?{id:e.id,name:e.name,url:e.homepage,type:"custom",app:e}:{type:"app",id:e.id,app:e}))}),h=e=>({localeName:e.name,homepage:e.url,...e,type:"custom"});let u=[],f=e.microApps;if("object"==typeof(null==e?void 0:e.desktops)&&e.desktops.length>0){f=[];const t=e.microApps.reduce(((e,t)=>(e.set(t.id,t),e)),new Map);u=e.desktops.map((e=>({name:e.name,items:e.items.map((e=>{if("app"===e.type){if(t.has(e.id)){const i=t.get(e.id);return f.push(i),t.delete(e.id),{type:e.type,id:e.id,app:i}}}else if("dir"===e.type){const i=e.items.map((e=>{if("app"===e.type){if(t.has(e.id)){const i=t.get(e.id);return f.push(i),t.delete(e.id),{type:e.type,id:e.id,app:i}}}else if("custom"===e.type)return f.push(h(e)),e})).filter(Boolean);if(i.length>0)return{type:e.type,id:e.id,name:e.name,items:i}}else if("custom"===e.type)return f.push(h(e)),e})).filter(Boolean).slice(0,l*p)}))).filter((e=>e.items.length>0))}else e.desktops||(u=(0,B.chunk)(e.microApps,l*p).map(d));let g={};if(e.q){const t=e.q.toLowerCase();g=d(f.filter((e=>e.localeName.toLowerCase().includes(t)||e.name.toLowerCase().includes(t)||e.id.toLowerCase().includes(t))).slice(0,l*p))}n().useEffect((()=>{s(-1)}),[t]),n().useEffect((()=>{s(e.q&&g&&g.items.length>0?0:-1)}),[e.q]);const x=n().useRef(!1),v=e=>{x.current||(qe=e,i(e),x.current=!0,setTimeout((()=>{x.current=!1}),400))},k=n().useCallback((()=>{t>0&&v(t-1)}),[t]),y=n().useCallback((()=>{const e=u.length;t<e&&v(t+1)}),[t,u.length]);n().useEffect((()=>{const i=i=>{if(0===t&&!e.q)return;const a=i.key||i.keyCode||i.which,n=e.q?g:u[t-1];if("Enter"===a||13===a){if(i.preventDefault(),r>=0&&r<n.items.length){const e=n.items[r];if("app"===e.type)me.pushVisitor("app",e.app),(0,o.getHistory)().push(e.app.homepage);else if("custom"===e.type)me.pushVisitor("custom",e),window.open(e.url);else if("dir"===e.type){const t=r%l,i=Math.floor(r/l);null==c||c({activeIndex:0,dir:{name:e.name,items:e.items},coordinates:{x:window.innerWidth*(t+1)/(l+1),y:window.innerHeight*(i+1)/(p+1)}})}}}else{let e=0;if("ArrowRight"===a||39===a?e=1:"ArrowLeft"===a||37===a?e=-1===r?n.items.length:-1:"ArrowDown"===a||40===a?e=-1===r?1:l:"ArrowUp"!==a&&38!==a||(e=-1===r?n.items.length:-l),0!==e){i.preventDefault();const t=r+e;t>=0&&t<n.items.length&&s(t)}}};return window.addEventListener("keydown",i),()=>{window.removeEventListener("keydown",i)}}),[t,r,e.q,l,c]);const w=n().useRef(0),b=n().useRef(0),A=n().useRef(!0),E=n().useRef(),C=u.length+1;return n().createElement("div",{onWheel:e=>{w.current+=e.deltaX,b.current+=e.deltaY,(()=>{if(!A.current)return;const e=Math.abs(b.current)>Math.abs(w.current)?b:w,t=e===b?4:40;if(e.current>=t)y();else{if(!(e.current<=-t))return;k()}w.current=0,b.current=0,A.current=!1})(),E.current&&clearTimeout(E.current),E.current=setTimeout((()=>{w.current=0,b.current=0,A.current=!0}),50)},className:m()(be.desktopSlider,{[be.filtered]:e.q})},n().createElement("div",{className:be.desktopSelector},[{name:n().createElement(S,{lib:"antd",theme:"filled",icon:"home"})},...u].map(((e,i)=>n().createElement(n().Fragment,{key:i},0!==i&&n().createElement("span",{className:be.selectorSeparator}),n().createElement("a",{className:m()(be.desktopName,{[be.active]:t===i}),onClick:e=>((e,i)=>{e.stopPropagation(),t!==i&&v(i)})(e,i),role:"button"},e.name))))),n().createElement("div",{className:be.scrollContainer},n().createElement("div",{className:be.desktopList,style:{width:100*C+"%",marginLeft:-100*t+"%",transition:"margin-left 400ms ease-out"}},n().createElement(je,{desktopCount:u.length,arrowWidthPercent:e.arrowWidthPercent}),u.map(((i,a)=>n().createElement(ke,{key:a,desktop:i,desktopCount:u.length,arrowWidthPercent:e.arrowWidthPercent,activeIndex:t-1===a?r:-1})))),e.q&&n().createElement("div",{className:be.filteredList},n().createElement(ke,{desktop:g,desktopCount:1,arrowWidthPercent:e.arrowWidthPercent,activeIndex:r}))),n().createElement("a",{className:m()(be.arrowLeft,{[be.available]:t>0}),style:{width:`${e.arrowWidthPercent}%`},onClick:e=>{e.stopPropagation(),k()},role:"button"},n().createElement("span",{className:be.arrowButton},n().createElement(S,{lib:"antd",theme:"outlined",icon:"left"}))),n().createElement("a",{className:m()(be.arrowRight,{[be.available]:t<C-1}),style:{width:`${e.arrowWidthPercent}%`},onClick:e=>{e.stopPropagation(),y()},role:"button"},n().createElement("span",{className:be.arrowButton},n().createElement(S,{lib:"antd",theme:"outlined",icon:"right"}))))}var Je=i(1759),Ke={};Ke.styleTagTransform=E(),Ke.setAttributes=y(),Ke.insert=v().bind(null,"head"),Ke.domAPI=g(),Ke.insertStyleElement=b(),u()(Je.A,Ke);const Ze=Je.A&&Je.A.locals?Je.A.locals:void 0;function Ve(e){const{columns:t,rows:i}=fe(),{setDesktopDir:a}=V(),[r,s]=n().useState(!1),[p,c]=n().useState(e.activeIndex),d=e.dir.items.slice(0,t*i),m=e.coordinates.x-document.documentElement.clientWidth/2,h=e.coordinates.y-document.documentElement.clientHeight/2;n().useEffect((()=>{const e=e=>{e.stopPropagation(),e.preventDefault();const i=e.key||e.keyCode||e.which;if("Escape"===i||27===i)null==a||a(void 0);else if("Enter"===i||13===i){if(p>=0&&p<d.length){const e=d[p];"app"===e.type?(0,o.getHistory)().push(e.app.homepage):window.open(e.url)}}else{let e=0;if("ArrowRight"===i||39===i?e=1:"ArrowLeft"===i||37===i?e=-1===p?d.length:-1:"ArrowDown"===i||40===i?e=-1===p?1:t:"ArrowUp"!==i&&38!==i||(e=-1===p?d.length:-t),0!==e){const t=p+e;t>=0&&t<d.length&&c(t)}}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[e.dir,p,t,i,a]);const u=Math.ceil(d.length/t);return n().createElement(l.A,{in:!0,timeout:150,appear:!0,classNames:"no-rules-class-name",onEntering:()=>{s(!0)}},n().createElement("div",{className:Ze.dirContainer,onClick:e=>{e.stopPropagation(),null==a||a(void 0)},style:{padding:`0 ${e.arrowWidthPercent}% 36px`,transform:r?"none":`translate(${m}px,${h}px) scale(0.01)`}},n().createElement("div",{className:Ze.dirName},e.dir.name),n().createElement("div",{className:Ze.dirContent,style:{height:100*(u+.2)/(i+1)+"%",gridTemplateColumns:`repeat(${t},1fr)`,gridTemplateRows:`repeat(${u},1fr)`}},d.map(((e,t)=>n().createElement(he,{key:e.id,item:e,active:p===t}))))))}var Ue=i(3031),Ye={};Ye.styleTagTransform=E(),Ye.setAttributes=y(),Ye.insert=v().bind(null,"head"),Ye.domAPI=g(),Ye.insertStyleElement=b(),u()(Ue.A,Ye);const Oe=Ue.A&&Ue.A.locals?Ue.A.locals:void 0,Xe=(0,c.wrapBrick)("eo-icon");function Ge(e){const{settings:t,desktops:i}=me.getBaseInfo(),a=()=>me.getBaseInfo().microApps.filter((e=>e&&(!e.status||"enabled"===e.status||"developing"===e.status))),[r,s]=n().useState(""),[c,d]=n().useState(a()),[m,h]=n().useState(),[u,f]=n().useState(!!window.STANDALONE_MICRO_APPS&&!me.loaded);return n().useEffect((()=>{window.STANDALONE_MICRO_APPS?(async()=>{try{await me.fetchLaunchpadInfo(),f(!1),d(a())}catch(i){var t;null===(t=e.onWillClose)||void 0===t||t.call(e),(0,o.handleHttpError)(i)}})():me.init()}),[]),n().useEffect((()=>{const t=t=>{const i=t.key||t.keyCode||t.which;var a;"Escape"!==i&&27!==i||null===(a=e.onWillClose)||void 0===a||a.call(e)};return window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}}),[e.onWillClose]),n().createElement(ue.Provider,{value:t},n().createElement(Z.Provider,{value:{desktopDir:m,setDesktopDir:h}},n().createElement("div",{className:Oe.launchpad,onClick:e.onWillClose},u?n().createElement("div",{className:Oe.loadingWrapper},n().createElement(Xe,{icon:"loading",lib:"antd",theme:"outlined",spinning:!0})):n().createElement(n().Fragment,null,n().createElement(l.A,{in:!m,timeout:100,classNames:{enter:Oe.fadeEnter,enterActive:Oe.fadeEnterActive,exit:Oe.fadeExit,exitActive:Oe.fadeExitActive,exitDone:Oe.fadeExitDone}},n().createElement("div",{className:Oe.launchpadContainer},n().createElement(_,{onChange:e=>{s(e)}}),n().createElement(Re,{q:r,microApps:c,desktops:i,arrowWidthPercent:9}))),m&&n().createElement(Ve,(0,p.A)({},m,{arrowWidthPercent:9}))))))}var Qe=i(4739),$e={};$e.styleTagTransform=E(),$e.setAttributes=y(),$e.insert=v().bind(null,"head"),$e.domAPI=g(),$e.insertStyleElement=b(),u()(Qe.A,$e);const et=Qe.A&&Qe.A.locals?Qe.A.locals:void 0;function tt(e){const[t,i]=n().useState(!0);return n().createElement(l.A,{in:t,timeout:100,appear:!0,classNames:{...et},onExited:()=>{var t;null===(t=e.onClose)||void 0===t||t.call(e)}},n().createElement(Ge,{onWillClose:()=>{var t;i(!1),null===(t=e.onWillClose)||void 0===t||t.call(e)}}))}function it(e){const t=document.createElement("div");return n().useEffect((()=>(document.body.appendChild(t),()=>{document.body.removeChild(t)}))),e.visible?(0,s.createPortal)(n().createElement(tt,{onWillClose:e.onWillClose,onClose:e.onClose}),t):null}var at=i(6674);function nt(){const[e,t]=(0,a.useState)(!1),i=(0,a.useCallback)((()=>{(0,o.getRuntime)().toggleLaunchpadEffect(!1)}),[]);return(0,a.useEffect)((()=>(0,o.getHistory)().listen((()=>{i(),t(!1)}))),[i]),(0,a.useEffect)((()=>(at.A.filter=function(){return!0},(0,at.A)("alt+l",(e=>{e.preventDefault(),t((e=>{const t=!e;return t||i(),t}))})),()=>{at.A.unbind("alt+l")})),[i]),(0,a.useEffect)((()=>{(0,o.getRuntime)().toggleLaunchpadEffect(e)}),[e]),(0,a.useEffect)((()=>{me.preFetchLaunchpadInfo(),me.preFetchFavorites()}),[]),n().createElement(n().Fragment,null,n().createElement("a",{role:"button",className:"launchpadLink",onClick:()=>{t(!0)}},n().createElement(r.A,null)),n().createElement(it,{visible:e,onWillClose:i,onClose:()=>{t(!1)}}))}},8095:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".desktop--ou0P6iGf{display:grid;grid-template-columns:repeat(8,1fr)}.desktop--ou0P6iGf .cellWrapper{justify-content:flex-start}.title--waO4P2iB{color:#fff;font-size:16px;padding-bottom:6px}.visited--tdY4xwnJ{padding-bottom:24px;margin-bottom:20px;border-bottom:1px rgba(255,255,255,0.25) solid}.favorites--lfUhBPuB .ant-spin-blur{opacity:1}.favorites--lfUhBPuB .ant-spin-blur::after{opacity:0}.modeWrapper--L03hs70G{height:0}.modeWrapper--L03hs70G .header--sdla4qan{display:flex;justify-content:space-between}.modeWrapper--L03hs70G .section--zyFAea1p{padding:10px 30px 20px}.modeWrapper--L03hs70G .modeIcon--CE2TFixF{margin-left:15px;padding:3px;border-radius:50%;opacity:0.8;background:rgba(255,255,255,0.1)}.modeWrapper--L03hs70G .modeIcon--CE2TFixF:hover{opacity:1}.modeWrapper--L03hs70G .emptyTips--IvkqCJZN{font-size:16px;line-height:24px}.modeWrapper--L03hs70G .emptyTips--IvkqCJZN a{color:#52a6f9}.modeWrapper--L03hs70G .emptyTips--IvkqCJZN a:hover{color:var(--antd-link-hover-color)}.spin--wMvBU9Kg{color:#8c8c8c;width:100%;height:200px;line-height:200px;display:flex;align-items:center;justify-content:center}.settingsContainer--Z_f8juq_ a{color:#fff}.settingsContainer--Z_f8juq_ .settings--nnLSnU29{cursor:pointer;margin-right:10px;color:rgba(255,255,255,0.7);font-size:13px;transition-duration:0.8s;transition-property:transform}.settingsContainer--Z_f8juq_:hover .settings--nnLSnU29{transform:rotate(180deg)}.favoriteContainer--CjB0c4Dt{display:grid;grid-template-columns:repeat(5,1fr);gap:2.5rem 7%}@media (max-height: 860px), (max-width: 1280px){.favoriteContainer--CjB0c4Dt{gap:1.7rem 4%}}@media (max-height: 720px), (max-width: 1024px){.favoriteContainer--CjB0c4Dt{gap:1rem 3%}.visited--tdY4xwnJ{padding-bottom:18px;margin-bottom:15px}}@media (max-height: 640px), (max-width: 900px){.favoriteContainer--CjB0c4Dt{gap:0.8rem 2%}}",""]),r.locals={desktop:"desktop--ou0P6iGf",title:"title--waO4P2iB",visited:"visited--tdY4xwnJ",favorites:"favorites--lfUhBPuB",modeWrapper:"modeWrapper--L03hs70G",header:"header--sdla4qan",section:"section--zyFAea1p",modeIcon:"modeIcon--CE2TFixF",emptyTips:"emptyTips--IvkqCJZN",spin:"spin--wMvBU9Kg",settingsContainer:"settingsContainer--Z_f8juq_",settings:"settings--nnLSnU29",favoriteContainer:"favoriteContainer--CjB0c4Dt"};const s=r},8430:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".scrollContainer--dNX8Cn8d::-webkit-scrollbar{width:6px}.scrollContainer--dNX8Cn8d::-webkit-scrollbar-thumb{visibility:hidden;border-radius:3px;background-color:rgba(69,69,73,0.45)}.scrollContainer--dNX8Cn8d::-webkit-scrollbar-track{visibility:hidden;width:12px;background-color:rgb(140,140,140,0.2)}.scrollContainer--dNX8Cn8d:hover{background:rgba(18,21,26,0.4);box-shadow:0px 5px 10px 4px rgba(0,0,0,0.1);border-radius:6px}.scrollContainer--dNX8Cn8d:hover::-webkit-scrollbar-thumb,.scrollContainer--dNX8Cn8d:hover::-webkit-scrollbar-track{visibility:visible}.siteMapContainer--oPV4617W{padding-top:10px;column-count:5}.siteMapContainer--oPV4617W .groupWrapper--vg8DzjpO{margin:0 30px;page-break-inside:avoid;break-inside:avoid}.siteMapContainer--oPV4617W .groupWrapper--vg8DzjpO .group--ojLUh6U2{margin:0;padding:9px 0 58px}.siteMapContainer--oPV4617W .groupWrapper--vg8DzjpO .item--UDV8jW76{list-style-type:none;font-size:12px;padding:5px 0px}.siteMapContainer--oPV4617W .groupWrapper--vg8DzjpO .item--UDV8jW76 > eo-link{cursor:pointer;color:rgba(255,255,255,0.65)}.siteMapContainer--oPV4617W .groupWrapper--vg8DzjpO .item--UDV8jW76 > eo-link:hover{color:var(--antd-link-hover-color)}",""]),r.locals={scrollContainer:"scrollContainer--dNX8Cn8d",siteMapContainer:"siteMapContainer--oPV4617W",groupWrapper:"groupWrapper--vg8DzjpO",group:"group--ojLUh6U2",item:"item--UDV8jW76"};const s=r},8479:(e,t,i)=>{i.d(t,{A:()=>s});var a=i(6758),n=i.n(a),o=i(935),r=i.n(o)()(n());r.push([e.id,".desktop--LCHJxkdK{flex:1;display:grid;grid-template-columns:repeat(7,1fr);grid-template-rows:repeat(4,1fr)}",""]),r.locals={desktop:"desktop--LCHJxkdK"};const s=r},9929:(e,t,i)=>{i.d(t,{I:()=>o,K:()=>a,NS:()=>n});let a=function(e){return e.SEARCH_BY_NAME_KEYWORD="SEARCH_BY_NAME_KEYWORD",e}({});const n="bricks/basic/launchpad",o={en:{SEARCH_BY_NAME_KEYWORD:"Search by name/keyword"},zh:{SEARCH_BY_NAME_KEYWORD:"通过名称/关键字搜索"}}}}]);
2
+ //# sourceMappingURL=6595.e9199ff8.js.map