@next-bricks/nav 1.19.0 → 1.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +20 -20
- package/dist/chunks/{1122.2174d8eb.js → 1122.0de99639.js} +2 -2
- package/dist/chunks/{1122.2174d8eb.js.map → 1122.0de99639.js.map} +1 -1
- package/dist/chunks/{114.8d5f0b37.js → 114.1fff8883.js} +2 -2
- package/dist/chunks/{114.8d5f0b37.js.map → 114.1fff8883.js.map} +1 -1
- package/dist/chunks/1370.0e594072.js +2 -0
- package/dist/chunks/1370.0e594072.js.map +1 -0
- package/dist/chunks/2133.756e2e04.js +2 -0
- package/dist/chunks/2133.756e2e04.js.map +1 -0
- package/dist/chunks/2252.e1ea00e7.js +3 -0
- package/dist/chunks/2252.e1ea00e7.js.map +1 -0
- package/dist/chunks/{2277.c14d0d67.js → 2277.ba342aae.js} +2 -2
- package/dist/chunks/{2277.c14d0d67.js.map → 2277.ba342aae.js.map} +1 -1
- package/dist/chunks/{3171.10e6abd7.js → 3171.4dbfe341.js} +2 -2
- package/dist/chunks/{3171.10e6abd7.js.map → 3171.4dbfe341.js.map} +1 -1
- package/dist/chunks/{3278.083af081.js → 3278.0f918c33.js} +2 -2
- package/dist/chunks/{3278.083af081.js.map → 3278.0f918c33.js.map} +1 -1
- package/dist/chunks/{5764.962abddb.js → 3796.50b037c1.js} +3 -3
- package/dist/chunks/3796.50b037c1.js.map +1 -0
- package/dist/chunks/{3933.cc514840.js → 3933.51f9dbab.js} +2 -2
- package/dist/chunks/{3933.cc514840.js.map → 3933.51f9dbab.js.map} +1 -1
- package/dist/chunks/4185.0a1811dd.js +3 -0
- package/dist/chunks/{4185.6bb963ac.js.map → 4185.0a1811dd.js.map} +1 -1
- package/dist/chunks/{4306.543cf3ba.js → 4306.0db9f63f.js} +2 -2
- package/dist/chunks/{4306.543cf3ba.js.map → 4306.0db9f63f.js.map} +1 -1
- package/dist/chunks/{4658.a0d181eb.js → 4658.94297dd4.js} +2 -2
- package/dist/chunks/{4658.a0d181eb.js.map → 4658.94297dd4.js.map} +1 -1
- package/dist/chunks/{3703.029f16d4.js → 4691.8c7517e4.js} +3 -3
- package/dist/chunks/4691.8c7517e4.js.map +1 -0
- package/dist/chunks/4727.a0c26777.js +2 -0
- package/dist/chunks/4727.a0c26777.js.map +1 -0
- package/dist/chunks/{4837.900bfc51.js → 4837.c5865dab.js} +2 -2
- package/dist/chunks/{4837.900bfc51.js.map → 4837.c5865dab.js.map} +1 -1
- package/dist/chunks/{6256.5623ff67.js → 4934.d9e44c27.js} +3 -3
- package/dist/chunks/4934.d9e44c27.js.map +1 -0
- package/dist/chunks/{5294.92b3255a.js → 5294.311bf701.js} +2 -2
- package/dist/chunks/{5294.92b3255a.js.map → 5294.311bf701.js.map} +1 -1
- package/dist/chunks/{5552.28246bbe.js → 5552.637cf356.js} +2 -2
- package/dist/chunks/{5552.28246bbe.js.map → 5552.637cf356.js.map} +1 -1
- package/dist/chunks/{6314.7c789fd1.js → 6314.a355d670.js} +2 -2
- package/dist/chunks/{6314.7c789fd1.js.map → 6314.a355d670.js.map} +1 -1
- package/dist/chunks/{6519.c702aa91.js → 6519.731d398d.js} +2 -2
- package/dist/chunks/{6519.c702aa91.js.map → 6519.731d398d.js.map} +1 -1
- package/dist/chunks/6595.bd9e01e1.js +2 -0
- package/dist/chunks/{6595.df7d6299.js.map → 6595.bd9e01e1.js.map} +1 -1
- package/dist/chunks/{7218.cb7a3902.js → 7218.80bc6c0e.js} +2 -2
- package/dist/chunks/{7218.cb7a3902.js.map → 7218.80bc6c0e.js.map} +1 -1
- package/dist/chunks/{726.1d2dd9fa.js → 726.1c09f96b.js} +2 -2
- package/dist/chunks/726.1c09f96b.js.map +1 -0
- package/dist/chunks/7505.11d54588.js +2 -0
- package/dist/chunks/7505.11d54588.js.map +1 -0
- package/dist/chunks/{7733.d84a812b.js → 7733.56080c36.js} +2 -2
- package/dist/chunks/{7733.d84a812b.js.map → 7733.56080c36.js.map} +1 -1
- package/dist/chunks/{8097.cf09fa17.js → 8097.1ce8c748.js} +2 -2
- package/dist/chunks/{8097.cf09fa17.js.map → 8097.1ce8c748.js.map} +1 -1
- package/dist/chunks/8274.fa37deb0.js +3 -0
- package/dist/chunks/8274.fa37deb0.js.map +1 -0
- package/dist/chunks/8989.7fb3ddb5.js +2 -0
- package/dist/chunks/{8989.69bc5a2a.js.map → 8989.7fb3ddb5.js.map} +1 -1
- package/dist/chunks/{9149.39fc3e88.js → 9149.c981b445.js} +2 -2
- package/dist/chunks/{9149.39fc3e88.js.map → 9149.c981b445.js.map} +1 -1
- package/dist/chunks/9559.693f2629.js +2 -0
- package/dist/chunks/{1940.639bb674.js.map → 9559.693f2629.js.map} +1 -1
- package/dist/chunks/easyops-navbar-alerts.a4ab065d.js +2 -0
- package/dist/chunks/easyops-navbar-alerts.a4ab065d.js.map +1 -0
- package/dist/chunks/{eo-app-bar-wrapper.174668bf.js → eo-app-bar-wrapper.7b154b71.js} +3 -3
- package/dist/chunks/{eo-app-bar-wrapper.174668bf.js.map → eo-app-bar-wrapper.7b154b71.js.map} +1 -1
- package/dist/chunks/{eo-directory-tree-internal-node.9a5ba4a5.js → eo-directory-tree-internal-node.8879e296.js} +2 -2
- package/dist/chunks/{eo-directory-tree-internal-node.9a5ba4a5.js.map → eo-directory-tree-internal-node.8879e296.js.map} +1 -1
- package/dist/chunks/{eo-directory-tree-leaf.b95878a8.js → eo-directory-tree-leaf.78d21704.js} +2 -2
- package/dist/chunks/{eo-directory-tree-leaf.b95878a8.js.map → eo-directory-tree-leaf.78d21704.js.map} +1 -1
- package/dist/chunks/{eo-directory-tree.016bb346.js → eo-directory-tree.161030d2.js} +3 -3
- package/dist/chunks/{eo-directory-tree.016bb346.js.map → eo-directory-tree.161030d2.js.map} +1 -1
- package/dist/chunks/{eo-directory.ee4ba2e2.js → eo-directory.8a63fdf3.js} +3 -3
- package/dist/chunks/{eo-directory.ee4ba2e2.js.map → eo-directory.8a63fdf3.js.map} +1 -1
- package/dist/chunks/{eo-frame-breadcrumb.762554a4.js → eo-frame-breadcrumb.ee00de97.js} +2 -2
- package/dist/chunks/{eo-frame-breadcrumb.762554a4.js.map → eo-frame-breadcrumb.ee00de97.js.map} +1 -1
- package/dist/chunks/{eo-launchpad-button-v2.46ee2628.js → eo-launchpad-button-v2.b06eb0f7.js} +3 -3
- package/dist/chunks/{eo-launchpad-button-v2.46ee2628.js.map → eo-launchpad-button-v2.b06eb0f7.js.map} +1 -1
- package/dist/chunks/eo-launchpad-button.8968bce1.js +3 -0
- package/dist/chunks/eo-launchpad-button.8968bce1.js.map +1 -0
- package/dist/chunks/eo-launchpad-quick-access.fea6db1b.js +3 -0
- package/dist/chunks/eo-launchpad-quick-access.fea6db1b.js.map +1 -0
- package/dist/chunks/eo-launchpad-recent-visits.73d97344.js +3 -0
- package/dist/chunks/{eo-launchpad-recent-visits.a60bec3b.js.map → eo-launchpad-recent-visits.73d97344.js.map} +1 -1
- package/dist/chunks/eo-nav-menu.c6c6f3b2.js +2 -0
- package/dist/chunks/eo-nav-menu.c6c6f3b2.js.map +1 -0
- package/dist/chunks/{eo-search-launchpad.3e45105c.js → eo-search-launchpad.a9cb71a5.js} +2 -2
- package/dist/chunks/{eo-search-launchpad.3e45105c.js.map → eo-search-launchpad.a9cb71a5.js.map} +1 -1
- package/dist/chunks/{eo-sidebar-menu-group.ef46414f.js → eo-sidebar-menu-group.c6a274c0.js} +3 -3
- package/dist/chunks/{eo-sidebar-menu-group.ef46414f.js.map → eo-sidebar-menu-group.c6a274c0.js.map} +1 -1
- package/dist/chunks/{eo-sidebar-menu-item.128c342c.js → eo-sidebar-menu-item.39352d3f.js} +2 -2
- package/dist/chunks/{eo-sidebar-menu-item.128c342c.js.map → eo-sidebar-menu-item.39352d3f.js.map} +1 -1
- package/dist/chunks/{eo-sidebar-menu-submenu.cc04ae01.js → eo-sidebar-menu-submenu.b6c0b43a.js} +3 -3
- package/dist/chunks/{eo-sidebar-menu-submenu.cc04ae01.js.map → eo-sidebar-menu-submenu.b6c0b43a.js.map} +1 -1
- package/dist/chunks/{eo-sidebar-menu.3459644e.js → eo-sidebar-menu.5f675037.js} +2 -2
- package/dist/chunks/{eo-sidebar-menu.3459644e.js.map → eo-sidebar-menu.5f675037.js.map} +1 -1
- package/dist/chunks/eo-sidebar-sub-menu.96ff89b5.js +3 -0
- package/dist/chunks/eo-sidebar-sub-menu.96ff89b5.js.map +1 -0
- package/dist/chunks/{eo-sidebar.8ca0d20d.js → eo-sidebar.5fa916fb.js} +3 -3
- package/dist/chunks/eo-sidebar.5fa916fb.js.map +1 -0
- package/dist/chunks/get-menu-config-options.5db0206b.js +2 -0
- package/dist/chunks/{get-menu-config-options.330a0e31.js.map → get-menu-config-options.5db0206b.js.map} +1 -1
- package/dist/chunks/get-menu-config-tree.6dbe14c1.js +2 -0
- package/dist/chunks/{get-menu-config-tree.c947edd2.js.map → get-menu-config-tree.6dbe14c1.js.map} +1 -1
- package/dist/chunks/launchpad-config.2707249a.js +3 -0
- package/dist/chunks/{launchpad-config.246362e6.js.map → launchpad-config.2707249a.js.map} +1 -1
- package/dist/chunks/main.577dcf1f.js +2 -0
- package/dist/chunks/main.577dcf1f.js.map +1 -0
- package/dist/chunks/{nav-logo.e2780c91.js → nav-logo.d45f446c.js} +2 -2
- package/dist/chunks/{nav-logo.e2780c91.js.map → nav-logo.d45f446c.js.map} +1 -1
- package/dist/chunks/poll-announce.f7d2378c.js +3 -0
- package/dist/chunks/{poll-announce.dedd36fe.js.map → poll-announce.f7d2378c.js.map} +1 -1
- package/dist/examples.json +3 -3
- package/dist/index.75d2cbcd.js +2 -0
- package/dist/index.75d2cbcd.js.map +1 -0
- package/dist/manifest.json +57 -57
- package/dist/types.json +105 -105
- package/package.json +6 -6
- package/dist/chunks/1370.62ed48ee.js +0 -2
- package/dist/chunks/1370.62ed48ee.js.map +0 -1
- package/dist/chunks/1940.639bb674.js +0 -2
- package/dist/chunks/2133.035a3a97.js +0 -2
- package/dist/chunks/2133.035a3a97.js.map +0 -1
- package/dist/chunks/2140.2e870601.js +0 -3
- package/dist/chunks/2140.2e870601.js.map +0 -1
- package/dist/chunks/2248.1c89b192.js +0 -2
- package/dist/chunks/2248.1c89b192.js.map +0 -1
- package/dist/chunks/2252.8fa914f0.js +0 -3
- package/dist/chunks/2252.8fa914f0.js.map +0 -1
- package/dist/chunks/3703.029f16d4.js.map +0 -1
- package/dist/chunks/3751.625e4868.js +0 -2
- package/dist/chunks/3751.625e4868.js.map +0 -1
- package/dist/chunks/4185.6bb963ac.js +0 -3
- package/dist/chunks/5764.962abddb.js.map +0 -1
- package/dist/chunks/6132.2bc55492.js +0 -2
- package/dist/chunks/6132.2bc55492.js.map +0 -1
- package/dist/chunks/6256.5623ff67.js.map +0 -1
- package/dist/chunks/6595.df7d6299.js +0 -2
- package/dist/chunks/726.1d2dd9fa.js.map +0 -1
- package/dist/chunks/8518.0c52c2b5.js +0 -2
- package/dist/chunks/8518.0c52c2b5.js.map +0 -1
- package/dist/chunks/8989.69bc5a2a.js +0 -2
- package/dist/chunks/9559.7f108302.js +0 -2
- package/dist/chunks/9559.7f108302.js.map +0 -1
- package/dist/chunks/easyops-navbar-alerts.4c3fa5b4.js +0 -2
- package/dist/chunks/easyops-navbar-alerts.4c3fa5b4.js.map +0 -1
- package/dist/chunks/eo-launchpad-button.642275eb.js +0 -3
- package/dist/chunks/eo-launchpad-button.642275eb.js.map +0 -1
- package/dist/chunks/eo-launchpad-quick-access.a5583d91.js +0 -3
- package/dist/chunks/eo-launchpad-quick-access.a5583d91.js.map +0 -1
- package/dist/chunks/eo-launchpad-recent-visits.a60bec3b.js +0 -3
- package/dist/chunks/eo-nav-menu.37be67af.js +0 -2
- package/dist/chunks/eo-nav-menu.37be67af.js.map +0 -1
- package/dist/chunks/eo-sidebar-sub-menu.0d7abb3f.js +0 -3
- package/dist/chunks/eo-sidebar-sub-menu.0d7abb3f.js.map +0 -1
- package/dist/chunks/eo-sidebar.8ca0d20d.js.map +0 -1
- package/dist/chunks/get-menu-config-options.330a0e31.js +0 -2
- package/dist/chunks/get-menu-config-tree.c947edd2.js +0 -2
- package/dist/chunks/launchpad-config.246362e6.js +0 -3
- package/dist/chunks/main.d9ff1d7b.js +0 -2
- package/dist/chunks/main.d9ff1d7b.js.map +0 -1
- package/dist/chunks/poll-announce.dedd36fe.js +0 -3
- package/dist/index.57559e93.js +0 -2
- package/dist/index.57559e93.js.map +0 -1
- /package/dist/chunks/{2252.8fa914f0.js.LICENSE.txt → 2252.e1ea00e7.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5764.962abddb.js.LICENSE.txt → 3796.50b037c1.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{4185.6bb963ac.js.LICENSE.txt → 4185.0a1811dd.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{3703.029f16d4.js.LICENSE.txt → 4691.8c7517e4.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{6256.5623ff67.js.LICENSE.txt → 4934.d9e44c27.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{2140.2e870601.js.LICENSE.txt → 8274.fa37deb0.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-app-bar-wrapper.174668bf.js.LICENSE.txt → eo-app-bar-wrapper.7b154b71.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-directory-tree.016bb346.js.LICENSE.txt → eo-directory-tree.161030d2.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-directory.ee4ba2e2.js.LICENSE.txt → eo-directory.8a63fdf3.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-button-v2.46ee2628.js.LICENSE.txt → eo-launchpad-button-v2.b06eb0f7.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-button.642275eb.js.LICENSE.txt → eo-launchpad-button.8968bce1.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-quick-access.a5583d91.js.LICENSE.txt → eo-launchpad-quick-access.fea6db1b.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-recent-visits.a60bec3b.js.LICENSE.txt → eo-launchpad-recent-visits.73d97344.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar-menu-group.ef46414f.js.LICENSE.txt → eo-sidebar-menu-group.c6a274c0.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar-menu-submenu.cc04ae01.js.LICENSE.txt → eo-sidebar-menu-submenu.b6c0b43a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar-sub-menu.0d7abb3f.js.LICENSE.txt → eo-sidebar-sub-menu.96ff89b5.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar.8ca0d20d.js.LICENSE.txt → eo-sidebar.5fa916fb.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{launchpad-config.246362e6.js.LICENSE.txt → launchpad-config.2707249a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{poll-announce.dedd36fe.js.LICENSE.txt → poll-announce.f7d2378c.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/6314.7c789fd1.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,EAA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EAAWM,YAAuC,IAArBL,EAA8BA,EAAmB,CAAC,EAOvG,OANAxE,EAA8B,CAACuE,EAAWO,OAAQF,GAAkBF,EAAwBN,GAC5FZ,EAA4BC,EAAWiB,EAAwB,CAC7Df,YAAYC,GACHA,EAAOnF,SAAS2F,KAGpB9C,MAAMyD,KAAKN,EACpB,CACO,SAASO,EAA2B/E,GACzC,MAAMwE,EAAa,IAAI3C,IAEvB,OADA9B,EAA8BC,EAAM0E,EAA8BF,GAAaL,GACxE9C,MAAMyD,KAAKN,EACpB,CACA,SAASE,EAA8BF,GACrC,OAAO,SAAgCnG,EAAMC,GAC3C,GAAID,EAAKE,OAAS4F,EAAa,CAC7B,MAAMxF,EAAeL,EAAOA,EAAOJ,OAAS,GACtCuB,EAAanB,EAAOA,EAAOJ,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
|
+
{"version":3,"file":"chunks/6314.a355d670.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,sBAAx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,IAAI3C,IACjB4C,EAAyBC,EAA8BF,IACvD,gBACJG,EAAe,UACfnB,GAC2C,QAAxCe,EAAmBD,EAAWM,YAAuC,IAArBL,EAA8BA,EAAmB,CAAC,EAOvG,OANAxE,EAA8B,CAACuE,EAAWO,OAAQF,GAAkBF,EAAwBN,GAC5FZ,EAA4BC,EAAWiB,EAAwB,CAC7Df,YAAYC,GACHA,EAAOnF,SAAS2F,KAGpB9C,MAAMyD,KAAKN,EACpB,CACO,SAASO,EAA2B/E,GACzC,MAAMwE,EAAa,IAAI3C,IAEvB,OADA9B,EAA8BC,EAAM0E,EAA8BF,GAAaL,GACxE9C,MAAMyD,KAAKN,EACpB,CACA,SAASE,EAA8BF,GACrC,OAAO,SAAgCnG,EAAMC,GAC3C,GAAID,EAAKE,OAAS4F,EAAa,CAC7B,MAAMxF,EAAeL,EAAOA,EAAOJ,OAAS,GACtCuB,EAAanB,EAAOA,EAAOJ,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([[6519],{6519:(e,n,i)=>{i.r(n),i.d(n,{pipes:()=>r.pipes,processPipes:()=>t,utils:()=>r.utils});var r=i(
|
|
2
|
-
//# sourceMappingURL=6519.
|
|
1
|
+
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[6519],{6519:(e,n,i)=>{i.r(n),i.d(n,{pipes:()=>r.pipes,processPipes:()=>t,utils:()=>r.utils});var r=i(8377);const s=new Map(Array.from(Object.entries(r.pipes)));function t(e,n){if(0===n.length)return e;let i=e;for(const e of n){const n=s.get(e.identifier);if(!n)return void console.warn(`Unknown pipe: ${e.identifier}`);i=n(i,...e.parameters)}return i}}}]);
|
|
2
|
+
//# sourceMappingURL=6519.731d398d.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunks/6519.
|
|
1
|
+
{"version":3,"file":"chunks/6519.731d398d.js","mappings":"qNAEA,MAAMA,EAAe,IAAIC,IAAIC,MAAMC,KAAKC,OAAOC,QAAQ,EAAAC,SAGhD,SAASC,EAAaC,EAAOF,GAClC,GAAqB,IAAjBA,EAAMG,OACR,OAAOD,EAET,IAAIE,EAASF,EACb,IAAK,MAAMG,KAAQL,EAAO,CACxB,MAAMM,EAAiBZ,EAAaa,IAAIF,EAAKG,YAC7C,IAAKF,EAGH,YADAG,QAAQC,KAAK,iBAAiBL,EAAKG,cAGrCJ,EAASE,EAAeF,KAAWC,EAAKM,WAC1C,CACA,OAAOP,CACT,C","sources":["webpack:///../../node_modules/@next-core/pipes/dist/esm/index.js"],"sourcesContent":["import { pipes } from \"@easyops-cn/brick-next-pipes\";\nexport { pipes, utils } from \"@easyops-cn/brick-next-pipes\";\nconst PipeRegistry = new Map(Array.from(Object.entries(pipes)));\n\n/** For next-core internal usage only. */\nexport function processPipes(value, pipes) {\n if (pipes.length === 0) {\n return value;\n }\n let result = value;\n for (const pipe of pipes) {\n const registeredPipe = PipeRegistry.get(pipe.identifier);\n if (!registeredPipe) {\n // eslint-disable-next-line no-console\n console.warn(`Unknown pipe: ${pipe.identifier}`);\n return;\n }\n result = registeredPipe(result, ...pipe.parameters);\n }\n return result;\n}\n//# sourceMappingURL=index.js.map"],"names":["PipeRegistry","Map","Array","from","Object","entries","pipes","processPipes","value","length","result","pipe","registeredPipe","get","identifier","console","warn","parameters"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[6595],{6293:(e,t,i)=>{i.d(t,{D:()=>nt});var a=i(8769),n=i.n(a),o=i(6201),r=i(2240),s=i(9435),l=i(2865),p=i(9575),c=i(9006),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(4277);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(962),ce=i(3324),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)}}))}},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:"通过名称/关键字搜索"}}},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"})))},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()},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},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},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},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},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},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},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},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},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},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},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},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}}]);
|
|
2
|
+
//# sourceMappingURL=6595.bd9e01e1.js.map
|