@next-bricks/nav 1.14.3 → 1.14.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/dist/bricks.json +22 -22
  2. package/dist/chunks/1122.46c08d5f.js +2 -0
  3. package/dist/chunks/1122.46c08d5f.js.map +1 -0
  4. package/dist/chunks/114.05400951.js +2 -0
  5. package/dist/chunks/{114.d4f81308.js.map → 114.05400951.js.map} +1 -1
  6. package/dist/chunks/1940.ea2c72ec.js +2 -0
  7. package/dist/chunks/1940.ea2c72ec.js.map +1 -0
  8. package/dist/chunks/2133.2d777db4.js +2 -0
  9. package/dist/chunks/{2133.8cb65fa4.js.map → 2133.2d777db4.js.map} +1 -1
  10. package/dist/chunks/2252.ec681a64.js +3 -0
  11. package/dist/chunks/2252.ec681a64.js.map +1 -0
  12. package/dist/chunks/{2277.3b42091e.js → 2277.d2d6504b.js} +2 -2
  13. package/dist/chunks/{4658.cab37a88.js.map → 2277.d2d6504b.js.map} +1 -1
  14. package/dist/chunks/{3171.db37c1b5.js → 3171.1283b7bf.js} +2 -2
  15. package/dist/chunks/{3171.db37c1b5.js.map → 3171.1283b7bf.js.map} +1 -1
  16. package/dist/chunks/3933.752cad4a.js +2 -0
  17. package/dist/chunks/{6314.f170b365.js.map → 3933.752cad4a.js.map} +1 -1
  18. package/dist/chunks/4306.543cf3ba.js +2 -0
  19. package/dist/chunks/4306.543cf3ba.js.map +1 -0
  20. package/dist/chunks/{4658.cab37a88.js → 4658.caf2d3b4.js} +2 -2
  21. package/dist/chunks/{2277.3b42091e.js.map → 4658.caf2d3b4.js.map} +1 -1
  22. package/dist/chunks/{4837.65835551.js → 4837.007bf09e.js} +2 -2
  23. package/dist/chunks/{7218.2a3fc0e5.js.map → 4837.007bf09e.js.map} +1 -1
  24. package/dist/chunks/5009.3f7b2e0f.js +3 -0
  25. package/dist/chunks/5009.3f7b2e0f.js.map +1 -0
  26. package/dist/chunks/5399.77e45ce2.js +2 -0
  27. package/dist/chunks/5399.77e45ce2.js.map +1 -0
  28. package/dist/chunks/{5552.dd6677fc.js → 5552.1b400f3b.js} +2 -2
  29. package/dist/chunks/{5552.dd6677fc.js.map → 5552.1b400f3b.js.map} +1 -1
  30. package/dist/chunks/6314.4871375a.js +2 -0
  31. package/dist/chunks/{3933.2b39e42b.js.map → 6314.4871375a.js.map} +1 -1
  32. package/dist/chunks/6519.c702aa91.js +2 -0
  33. package/dist/chunks/{6519.88149886.js.map → 6519.c702aa91.js.map} +1 -1
  34. package/dist/chunks/6595.1f38ee5f.js +2 -0
  35. package/dist/chunks/{6595.173abb85.js.map → 6595.1f38ee5f.js.map} +1 -1
  36. package/dist/chunks/{7218.2a3fc0e5.js → 7218.b3b3b62e.js} +2 -2
  37. package/dist/chunks/{4837.65835551.js.map → 7218.b3b3b62e.js.map} +1 -1
  38. package/dist/chunks/7733.c358be3a.js +2 -0
  39. package/dist/chunks/{7733.15717756.js.map → 7733.c358be3a.js.map} +1 -1
  40. package/dist/chunks/{8097.8da4fa49.js → 8097.70b0eaef.js} +2 -2
  41. package/dist/chunks/{8097.8da4fa49.js.map → 8097.70b0eaef.js.map} +1 -1
  42. package/dist/chunks/8518.9ca88229.js +2 -0
  43. package/dist/chunks/{8518.d084a662.js.map → 8518.9ca88229.js.map} +1 -1
  44. package/dist/chunks/884.f3d4915c.js +2 -0
  45. package/dist/chunks/{884.520f9619.js.map → 884.f3d4915c.js.map} +1 -1
  46. package/dist/chunks/{9149.cb2b8e7c.js → 9149.5a636b86.js} +2 -2
  47. package/dist/chunks/{9149.cb2b8e7c.js.map → 9149.5a636b86.js.map} +1 -1
  48. package/dist/chunks/9559.1f660b3f.js +2 -0
  49. package/dist/chunks/9559.1f660b3f.js.map +1 -0
  50. package/dist/chunks/easyops-navbar-alerts.f27ddf27.js +2 -0
  51. package/dist/chunks/{easyops-navbar-alerts.caeb1984.js.map → easyops-navbar-alerts.f27ddf27.js.map} +1 -1
  52. package/dist/chunks/eo-app-bar-wrapper.b367af8d.js +3 -0
  53. package/dist/chunks/{eo-app-bar-wrapper.4a354b1a.js.map → eo-app-bar-wrapper.b367af8d.js.map} +1 -1
  54. package/dist/chunks/eo-directory-tree-internal-node.a400a546.js +2 -0
  55. package/dist/chunks/{eo-directory-tree-internal-node.e31ef980.js.map → eo-directory-tree-internal-node.a400a546.js.map} +1 -1
  56. package/dist/chunks/eo-directory-tree-leaf.c2052cb2.js +2 -0
  57. package/dist/chunks/{eo-directory-tree-leaf.5c5d6629.js.map → eo-directory-tree-leaf.c2052cb2.js.map} +1 -1
  58. package/dist/chunks/{eo-directory-tree.307e4fff.js → eo-directory-tree.ae9c3b1e.js} +2 -2
  59. package/dist/chunks/{eo-directory-tree.307e4fff.js.map → eo-directory-tree.ae9c3b1e.js.map} +1 -1
  60. package/dist/chunks/{eo-directory.a22fe00a.js → eo-directory.c7c898cd.js} +3 -3
  61. package/dist/chunks/{eo-directory.a22fe00a.js.map → eo-directory.c7c898cd.js.map} +1 -1
  62. package/dist/chunks/{eo-frame-breadcrumb.38ffb1bf.js → eo-frame-breadcrumb.66184cc0.js} +2 -2
  63. package/dist/chunks/{eo-frame-breadcrumb.38ffb1bf.js.map → eo-frame-breadcrumb.66184cc0.js.map} +1 -1
  64. package/dist/chunks/eo-launchpad-button-v2.604700a7.js +3 -0
  65. package/dist/chunks/{eo-launchpad-button-v2.b332610f.js.map → eo-launchpad-button-v2.604700a7.js.map} +1 -1
  66. package/dist/chunks/{eo-launchpad-button.6f41e93e.js → eo-launchpad-button.fe4f303e.js} +3 -3
  67. package/dist/chunks/{eo-launchpad-button.6f41e93e.js.map → eo-launchpad-button.fe4f303e.js.map} +1 -1
  68. package/dist/chunks/eo-launchpad-quick-access.a82ceb9b.js +3 -0
  69. package/dist/chunks/{eo-launchpad-quick-access.7482850f.js.map → eo-launchpad-quick-access.a82ceb9b.js.map} +1 -1
  70. package/dist/chunks/eo-launchpad-recent-visits.bea0828f.js +3 -0
  71. package/dist/chunks/{eo-launchpad-recent-visits.c59fc2e6.js.map → eo-launchpad-recent-visits.bea0828f.js.map} +1 -1
  72. package/dist/chunks/eo-nav-menu.9c9e7f4c.js +2 -0
  73. package/dist/chunks/{eo-nav-menu.bae2f0f0.js.map → eo-nav-menu.9c9e7f4c.js.map} +1 -1
  74. package/dist/chunks/eo-search-launchpad.b4f1e002.js +2 -0
  75. package/dist/chunks/{eo-search-launchpad.954fe9da.js.map → eo-search-launchpad.b4f1e002.js.map} +1 -1
  76. package/dist/chunks/eo-sidebar-menu-group.4f09b0ce.js +3 -0
  77. package/dist/chunks/{eo-sidebar-menu-group.eef22322.js.map → eo-sidebar-menu-group.4f09b0ce.js.map} +1 -1
  78. package/dist/chunks/eo-sidebar-menu-item.281131dc.js +2 -0
  79. package/dist/chunks/{eo-sidebar-menu-item.9bc45c96.js.map → eo-sidebar-menu-item.281131dc.js.map} +1 -1
  80. package/dist/chunks/eo-sidebar-menu-submenu.c2eb4446.js +3 -0
  81. package/dist/chunks/{eo-sidebar-menu-submenu.55b62a9a.js.map → eo-sidebar-menu-submenu.c2eb4446.js.map} +1 -1
  82. package/dist/chunks/eo-sidebar-menu.55b4eef0.js +2 -0
  83. package/dist/chunks/{eo-sidebar-menu.bdb637a0.js.map → eo-sidebar-menu.55b4eef0.js.map} +1 -1
  84. package/dist/chunks/eo-sidebar-sub-menu.bb0aebae.js +3 -0
  85. package/dist/chunks/{eo-sidebar-sub-menu.44d21e80.js.map → eo-sidebar-sub-menu.bb0aebae.js.map} +1 -1
  86. package/dist/chunks/eo-sidebar.0ddcb67a.js +3 -0
  87. package/dist/chunks/{eo-sidebar.3c38c6f2.js.map → eo-sidebar.0ddcb67a.js.map} +1 -1
  88. package/dist/chunks/launchpad-config.714651c6.js +3 -0
  89. package/dist/chunks/{launchpad-config.0081ead9.js.map → launchpad-config.714651c6.js.map} +1 -1
  90. package/dist/chunks/main.d82776de.js +2 -0
  91. package/dist/chunks/main.d82776de.js.map +1 -0
  92. package/dist/chunks/nav-logo.51386c18.js +2 -0
  93. package/dist/chunks/{nav-logo.b41c2488.js.map → nav-logo.51386c18.js.map} +1 -1
  94. package/dist/chunks/{poll-announce.5a32f14a.js → poll-announce.41e3c4fe.js} +3 -3
  95. package/dist/chunks/{poll-announce.5a32f14a.js.map → poll-announce.41e3c4fe.js.map} +1 -1
  96. package/dist/examples.json +6 -6
  97. package/dist/index.bff90c93.js +2 -0
  98. package/dist/index.bff90c93.js.map +1 -0
  99. package/dist/manifest.json +81 -81
  100. package/dist/types.json +38 -38
  101. package/package.json +4 -4
  102. package/dist/chunks/1122.01c596ea.js +0 -2
  103. package/dist/chunks/1122.01c596ea.js.map +0 -1
  104. package/dist/chunks/114.d4f81308.js +0 -2
  105. package/dist/chunks/1940.c63c423d.js +0 -2
  106. package/dist/chunks/1940.c63c423d.js.map +0 -1
  107. package/dist/chunks/2133.8cb65fa4.js +0 -2
  108. package/dist/chunks/2252.1b68ec1b.js +0 -3
  109. package/dist/chunks/2252.1b68ec1b.js.map +0 -1
  110. package/dist/chunks/3933.2b39e42b.js +0 -2
  111. package/dist/chunks/4741.3a33a9de.js +0 -2
  112. package/dist/chunks/4741.3a33a9de.js.map +0 -1
  113. package/dist/chunks/5009.cc53aeee.js +0 -3
  114. package/dist/chunks/5009.cc53aeee.js.map +0 -1
  115. package/dist/chunks/5399.59a46cfe.js +0 -2
  116. package/dist/chunks/5399.59a46cfe.js.map +0 -1
  117. package/dist/chunks/6314.f170b365.js +0 -2
  118. package/dist/chunks/6519.88149886.js +0 -2
  119. package/dist/chunks/6595.173abb85.js +0 -2
  120. package/dist/chunks/7733.15717756.js +0 -2
  121. package/dist/chunks/8518.d084a662.js +0 -2
  122. package/dist/chunks/884.520f9619.js +0 -2
  123. package/dist/chunks/9559.04a1bec3.js +0 -2
  124. package/dist/chunks/9559.04a1bec3.js.map +0 -1
  125. package/dist/chunks/easyops-navbar-alerts.caeb1984.js +0 -2
  126. package/dist/chunks/eo-app-bar-wrapper.4a354b1a.js +0 -3
  127. package/dist/chunks/eo-directory-tree-internal-node.e31ef980.js +0 -2
  128. package/dist/chunks/eo-directory-tree-leaf.5c5d6629.js +0 -2
  129. package/dist/chunks/eo-launchpad-button-v2.b332610f.js +0 -3
  130. package/dist/chunks/eo-launchpad-quick-access.7482850f.js +0 -3
  131. package/dist/chunks/eo-launchpad-recent-visits.c59fc2e6.js +0 -3
  132. package/dist/chunks/eo-nav-menu.bae2f0f0.js +0 -2
  133. package/dist/chunks/eo-search-launchpad.954fe9da.js +0 -2
  134. package/dist/chunks/eo-sidebar-menu-group.eef22322.js +0 -3
  135. package/dist/chunks/eo-sidebar-menu-item.9bc45c96.js +0 -2
  136. package/dist/chunks/eo-sidebar-menu-submenu.55b62a9a.js +0 -3
  137. package/dist/chunks/eo-sidebar-menu.bdb637a0.js +0 -2
  138. package/dist/chunks/eo-sidebar-sub-menu.44d21e80.js +0 -3
  139. package/dist/chunks/eo-sidebar.3c38c6f2.js +0 -3
  140. package/dist/chunks/launchpad-config.0081ead9.js +0 -3
  141. package/dist/chunks/main.baad998d.js +0 -2
  142. package/dist/chunks/main.baad998d.js.map +0 -1
  143. package/dist/chunks/nav-logo.b41c2488.js +0 -2
  144. package/dist/index.0767e68d.js +0 -2
  145. package/dist/index.0767e68d.js.map +0 -1
  146. /package/dist/chunks/{2252.1b68ec1b.js.LICENSE.txt → 2252.ec681a64.js.LICENSE.txt} +0 -0
  147. /package/dist/chunks/{5009.cc53aeee.js.LICENSE.txt → 5009.3f7b2e0f.js.LICENSE.txt} +0 -0
  148. /package/dist/chunks/{eo-app-bar-wrapper.4a354b1a.js.LICENSE.txt → eo-app-bar-wrapper.b367af8d.js.LICENSE.txt} +0 -0
  149. /package/dist/chunks/{eo-directory.a22fe00a.js.LICENSE.txt → eo-directory.c7c898cd.js.LICENSE.txt} +0 -0
  150. /package/dist/chunks/{eo-launchpad-button-v2.b332610f.js.LICENSE.txt → eo-launchpad-button-v2.604700a7.js.LICENSE.txt} +0 -0
  151. /package/dist/chunks/{eo-launchpad-button.6f41e93e.js.LICENSE.txt → eo-launchpad-button.fe4f303e.js.LICENSE.txt} +0 -0
  152. /package/dist/chunks/{eo-launchpad-quick-access.7482850f.js.LICENSE.txt → eo-launchpad-quick-access.a82ceb9b.js.LICENSE.txt} +0 -0
  153. /package/dist/chunks/{eo-launchpad-recent-visits.c59fc2e6.js.LICENSE.txt → eo-launchpad-recent-visits.bea0828f.js.LICENSE.txt} +0 -0
  154. /package/dist/chunks/{eo-sidebar-menu-group.eef22322.js.LICENSE.txt → eo-sidebar-menu-group.4f09b0ce.js.LICENSE.txt} +0 -0
  155. /package/dist/chunks/{eo-sidebar-menu-submenu.55b62a9a.js.LICENSE.txt → eo-sidebar-menu-submenu.c2eb4446.js.LICENSE.txt} +0 -0
  156. /package/dist/chunks/{eo-sidebar-sub-menu.44d21e80.js.LICENSE.txt → eo-sidebar-sub-menu.bb0aebae.js.LICENSE.txt} +0 -0
  157. /package/dist/chunks/{eo-sidebar.3c38c6f2.js.LICENSE.txt → eo-sidebar.0ddcb67a.js.LICENSE.txt} +0 -0
  158. /package/dist/chunks/{launchpad-config.0081ead9.js.LICENSE.txt → launchpad-config.714651c6.js.LICENSE.txt} +0 -0
  159. /package/dist/chunks/{poll-announce.5a32f14a.js.LICENSE.txt → poll-announce.41e3c4fe.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ "use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[5399],{5399:(e,t,r)=>{r.r(t),r.d(t,{BrickLoadError:()=>k,enqueueStableLoadBricks:()=>p,enqueueStableLoadProcessors:()=>w,flushStableLoadBricks:()=>f,loadBricksImperatively:()=>m,loadEditorsImperatively:()=>v,loadProcessorsImperatively:()=>h,loadScript:()=>o,loadSharedModule:()=>i,loadStyle:()=>a});const s=new Map;function n(e,t,r,o){if(Array.isArray(t))return Promise.all(t.map((t=>n(e,t,r))));const a=r&&!/^https?:/.test(t)?`${r}${t}`:t,i=s.get(a);if(i)return i;const c=new Promise(((t,r)=>{const s=()=>{window.dispatchEvent(new Event("request.end"))},n=document.createElement("style"===e?"link":"script");"script"===e?Object.assign(n,{type:"text/javascript",async:!0,...o,src:a}):Object.assign(n,{rel:"stylesheet",...o,href:a}),n.onload=()=>{t(a),s()},n.onerror=e=>{r(e),s()};const i=document.currentScript||document.getElementsByTagName("script")[0];i.parentNode.insertBefore(n,i),window.dispatchEvent(new Event("request.start"))}));return s.set(a,c),c}function o(e,t,r){return n("script",e,t,r)}function a(e,t,r){return n("style",e,t,r)}async function i(e,t){await r.I("default");const s=window[e];return await s.init(r.S.default),(await s.get(t))()}let c,l,u=!1;const d=new Promise(((e,t)=>{c=e,l=t}));function f(){u||c()}function p(e,t){return S($("bricks",e,t))}function w(e,t){return S($("processors",e,t))}async function m(e,t){const r=$("bricks",e,t);return f(),S(r)}function h(e,t){const r=$("processors",e,t);return f(),S(r)}function v(e,t){const r=$("editors",e,t);return f(),S(r)}class k extends Error{constructor(e){super(e),this.name="BrickLoadError",Error.captureStackTrace&&Error.captureStackTrace(this,k)}}let y;const b="v2-adapter.load-bricks";function P(e,t,r){const s=new Map,n=new Set,o=t=>{var a;if(n.has(t))return;let i,c,l;if(n.add(t),"editors"===e){l=t;for(const e of r.values()){var u;null!==(u=e.propertyEditors??e.editors)&&void 0!==u&&u.some((e=>e===l))&&(i=e)}}else if("processors"===e||t.includes(".")){[c,l]=t.split(".");const s=`bricks/${"processors"===e?(p=c,p.replace(/[A-Z]/g,(e=>`-${e[0].toLocaleLowerCase()}`)).replace(/_[0-9]/g,(e=>`-${e[1]}`))):c}`;i=r.get(s)}else{let e;l=t;for(const s of r.values()){var d;if(null!==(d=s.elements)&&void 0!==d&&d.some((e=>e===l))){var f;if(null===(f=s.deprecatedElements)||void 0===f||!f.includes(t)){i=s;break}e=s}}!i&&e&&(i=e)}var p;if(!i)return void console.error(`Package for ${t} not found.`);let w=s.get(i);w||(w=[],s.set(i,w)),w.push({fullName:t,lastName:l});const m=null===(a=i.dependencies)||void 0===a?void 0:a[t];if(m)for(const e of m)o(e)};for(const e of t)o(e);return s}async function E(e,t,r){const s=`${"processors"===e||"editors"===e?`./${e}/`:"./"}${"editors"===e?r.fullName:r.lastName}`;try{await i(t,s)}catch(t){throw console.error(t),new k(`Load ${e} of "${r.fullName}" failed: ${null==t?void 0:t.message}`)}}function g(e,t,r){return t.map((async t=>(await o(t.filePath,window.PUBLIC_ROOT??""),await d,Promise.all(r.get(t).map((r=>E(e,t.id,r)))))))}async function $(e,t,r){const s=new Map;for(const e of r){const t=e.id||L(e.filePath);s.set(t,e)}const n=P(e,t,s);let a;const i=[],d=[];let f;for(const e of n.keys())if(e.id)"bricks/basic"===e.id?a=e:d.push(e);else if(i.push(e),f=s.get("bricks/v2-adapter"),!f)throw new Error("Using v2 bricks, but v2-adapter not found");const p=f;let w;const m=a;if(m){const t=o(m.filePath,window.PUBLIC_ROOT??"");u||(u=!0,t.then((()=>Promise.resolve())).then(c,l)),w=t.then((()=>Promise.all(n.get(m).map((t=>E(e,m.id,t))))))}const h=[w].concat(g(e,d,n));if(p&&i.length>0){if(!y){const e=P("bricks",[b],s),t=[...e.keys()];y=(async()=>(await Promise.all(g("bricks",t,e)),document.createElement(b)))()}h.push(y.then((t=>Promise.all(i.map((s=>{const o=L(s.filePath).split("/")[1];return t.resolve(p.filePath,"editors"===e?s.propertyEditorsJsFilePath??s.filePath:s.filePath,"bricks"===e?n.get(s).map((e=>`${o}.${e.lastName}`)):[],s.dll,r)}))))))}await Promise.all(h)}async function S(e){window.dispatchEvent(new Event("request.start"));try{await e}finally{window.dispatchEvent(new Event("request.end"))}}function L(e){return e.split("/").slice(0,2).join("/")}}}]);
2
+ //# sourceMappingURL=5399.77e45ce2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chunks/5399.77e45ce2.js","mappings":"qZAAA,MAAMA,EAAQ,IAAIC,IACH,SAASC,EAAkBC,EAAMC,EAAKC,EAAQC,GAC3D,G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EAAe/G,EAAMwH,EAA0B7C,IAC5F,GAAIgD,GAAaJ,EAAWW,OAAS,EAAG,CACtC,IAAK5D,EAAkB,CAErB,MAAM6D,EAAsB3D,EAAc,SAAU,CAACD,GAAyBG,GACxE0D,EAAoB,IAAID,EAAoBT,QAKlDpD,EAJsB5C,iBACdpB,QAAQC,IAAIwG,EAAe,SAAUqB,EAAmBD,IACvD7G,SAASC,cAAcgD,IAEb8D,EACrB,CACAL,EAAYxB,KAAKlC,EAAiByD,MAAKO,GAAWhI,QAAQC,IAAIgH,EAAW/G,KAAIyE,IAC3E,MACMsD,EADQlB,EAAmBpC,EAAIiC,UACVxB,MAAM,KAAK,GACtC,OAAO4C,EAAQvH,QAAQ4G,EAAUT,SAAmB,YAATlH,EAAqBiF,EAAIuD,2BAA6BvD,EAAIiC,SAAWjC,EAAIiC,SAAmB,WAATlH,EAE9H2E,EAAW9D,IAAIoE,GAAKzE,KAAIC,GAAQ,GAAG8H,KAAgB9H,EAAK0E,aAAc,GAAIF,EAAIwD,IAE9EpF,EAAc,OAElB,OACM/C,QAAQC,IAAIyH,EACpB,CACAtG,eAAe4B,EAAsBxC,GACnCI,OAAOC,cAAc,IAAIC,MAAM,kBAC/B,UACQN,CACR,CAAE,QACAI,OAAOC,cAAc,IAAIC,MAAM,eACjC,CACF,CAIA,SAASiG,EAAmBH,GAC1B,OAAOA,EAASxB,MAAM,KAAKgD,MAAM,EAAG,GAAGC,KAAK,IAC9C,C","sources":["webpack:///../../node_modules/@next-core/loader/dist/esm/loadScriptOrStyle.js","webpack:///../../node_modules/@next-core/loader/dist/esm/loadScript.js","webpack:///../../node_modules/@next-core/loader/dist/esm/loadStyle.js","webpack:///../../node_modules/@next-core/loader/dist/esm/loadSharedModule.js","webpack:///../../node_modules/@next-core/loader/dist/esm/stableLoadBricks.js"],"sourcesContent":["const cache = new Map();\nexport default function loadScriptOrStyle(type, src, prefix, attrs) {\n if (Array.isArray(src)) {\n return Promise.all(src.map(item => loadScriptOrStyle(type, item, prefix)));\n }\n const fixedSrc = prefix && !/^https?:/.test(src) ? `${prefix}${src}` : src;\n const cachedPromise = cache.get(fixedSrc);\n if (cachedPromise) {\n return cachedPromise;\n }\n const promise = new Promise((resolve, reject) => {\n const end = () => {\n window.dispatchEvent(new Event(\"request.end\"));\n };\n const element = document.createElement(type === \"style\" ? \"link\" : \"script\");\n if (type === \"script\") {\n Object.assign(element, {\n type: \"text/javascript\",\n async: true,\n ...attrs,\n src: fixedSrc\n });\n } else {\n Object.assign(element, {\n rel: \"stylesheet\",\n ...attrs,\n href: fixedSrc\n });\n }\n element.onload = () => {\n resolve(fixedSrc);\n end();\n };\n element.onerror = e => {\n reject(e);\n end();\n };\n const firstScript = document.currentScript || document.getElementsByTagName(\"script\")[0];\n firstScript.parentNode.insertBefore(element, firstScript);\n window.dispatchEvent(new Event(\"request.start\"));\n });\n cache.set(fixedSrc, promise);\n return promise;\n}\n//# sourceMappingURL=loadScriptOrStyle.js.map","import loadScriptOrStyle from \"./loadScriptOrStyle.js\";\nexport default function loadScript(src, prefix, attrs) {\n return loadScriptOrStyle(\"script\", src, prefix, attrs);\n}\n//# sourceMappingURL=loadScript.js.map","import loadScriptOrStyle from \"./loadScriptOrStyle.js\";\nexport default function loadStyle(src, prefix, attrs) {\n return loadScriptOrStyle(\"style\", src, prefix, attrs);\n}\n//# sourceMappingURL=loadStyle.js.map","// https://github.com/module-federation/module-federation-examples/blob/eda9493f3991a423479fd834cfb1d7b241d9d1f0/advanced-api/dynamic-remotes/app1/src/App.js\nexport default async function loadSharedModule(scope, module) {\n // Initializes the share scope. This fills it with known provided modules from this build and all remotes\n await __webpack_init_sharing__(\"default\");\n const container = window[scope]; // or get the container somewhere else\n // Initialize the container, it may provide shared modules\n await container.init(__webpack_share_scopes__.default);\n const factory = await container.get(module);\n return factory();\n}\n//# sourceMappingURL=loadSharedModule.js.map","import loadScript from \"./loadScript.js\";\nimport loadSharedModule from \"./loadSharedModule.js\";\nlet resolveBasicPkg;\nlet rejectBasicPkg;\nlet basicPkgWillBeResolved = false;\nconst waitBasicPkg = new Promise((resolve, reject) => {\n resolveBasicPkg = resolve;\n rejectBasicPkg = reject;\n});\nexport function flushStableLoadBricks() {\n if (!basicPkgWillBeResolved) {\n resolveBasicPkg();\n }\n}\n\n/**\n * When loading bundles with webpack module federation concurrently, if\n * these bundles share some modules, webpack will load a singleton module\n * if versions are matched. Webpack will use the first bundle who started\n * to init the shared scope. Generally which bundle to use for a specific\n * module, does not matter. However, it may cause flaky result since the\n * shared module may from different bundles which maybe not exactly the\n * same, especially developers declare dependencies incorrectly sometimes.\n * So in order to make it less flaky, we try to make a BASIC package takes\n * precedence over others. We will always load the shared modules from the\n * basic package bundle if it contains the shared modules.\n */\nexport function enqueueStableLoadBricks(bricks, brickPackages) {\n const promise = enqueueStableLoad(\"bricks\", bricks, brickPackages);\n return dispatchRequestStatus(promise);\n}\nexport function enqueueStableLoadProcessors(processors, brickPackages) {\n const promise = enqueueStableLoad(\"processors\", processors, brickPackages);\n return dispatchRequestStatus(promise);\n}\nexport async function loadBricksImperatively(bricks, brickPackages) {\n const promise = enqueueStableLoad(\"bricks\", bricks, brickPackages);\n flushStableLoadBricks();\n return dispatchRequestStatus(promise);\n}\nexport function loadProcessorsImperatively(processors, brickPackages) {\n const promise = enqueueStableLoad(\"processors\", processors, brickPackages);\n flushStableLoadBricks();\n return dispatchRequestStatus(promise);\n}\nexport function loadEditorsImperatively(editors, brickPackages) {\n const promise = enqueueStableLoad(\"editors\", editors, brickPackages);\n flushStableLoadBricks();\n return dispatchRequestStatus(promise);\n}\nexport class BrickLoadError extends Error {\n constructor(message) {\n // Pass remaining arguments (including vendor specific ones) to parent constructor\n super(message);\n this.name = \"BrickLoadError\";\n\n // Maintains proper stack trace for where our error was thrown (only available on V8)\n // istanbul ignore else\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, BrickLoadError);\n }\n }\n}\nlet v2AdapterPromise;\nconst V2_ADAPTER_LOAD_BRICKS = \"v2-adapter.load-bricks\";\n// Get brick/processor items including their dependencies\nfunction getItemsByPkg(type, list, brickPackagesMap) {\n const itemsByPkg = new Map();\n const listToLoad = new Set();\n const add = item => {\n var _pkg$dependencies;\n if (listToLoad.has(item)) {\n return;\n }\n listToLoad.add(item);\n let pkg;\n let namespace;\n let lastName;\n if (type === \"editors\") {\n lastName = item;\n for (const p of brickPackagesMap.values()) {\n var _ref;\n if ((_ref = p.propertyEditors ?? p.editors) !== null && _ref !== void 0 && _ref.some(e => e === lastName)) {\n pkg = p;\n }\n }\n } else if (type === \"processors\" || item.includes(\".\")) {\n [namespace, lastName] = item.split(\".\");\n const pkgId = `bricks/${type === \"processors\" ? getProcessorPackageName(namespace) : namespace}`;\n pkg = brickPackagesMap.get(pkgId);\n } else {\n lastName = item;\n let deprecatedBrickInThisPkg;\n for (const p of brickPackagesMap.values()) {\n var _p$elements;\n if ((_p$elements = p.elements) !== null && _p$elements !== void 0 && _p$elements.some(e => e === lastName)) {\n var _p$deprecatedElements;\n if ((_p$deprecatedElements = p.deprecatedElements) !== null && _p$deprecatedElements !== void 0 && _p$deprecatedElements.includes(item)) {\n deprecatedBrickInThisPkg = p;\n } else {\n pkg = p;\n break;\n }\n }\n }\n if (!pkg && deprecatedBrickInThisPkg) {\n pkg = deprecatedBrickInThisPkg;\n }\n }\n if (!pkg) {\n // eslint-disable-next-line no-console\n console.error(`Package for ${item} not found.`);\n return;\n }\n let groupItems = itemsByPkg.get(pkg);\n if (!groupItems) {\n groupItems = [];\n itemsByPkg.set(pkg, groupItems);\n }\n groupItems.push({\n fullName: item,\n lastName\n });\n\n // Load their dependencies too\n const deps = (_pkg$dependencies = pkg.dependencies) === null || _pkg$dependencies === void 0 ? void 0 : _pkg$dependencies[item];\n if (deps) {\n for (const dep of deps) {\n add(dep);\n }\n }\n };\n for (const item of list) {\n add(item);\n }\n return itemsByPkg;\n}\nasync function loadBrickModule(type, pkgId, item) {\n const moduleName = `${type === \"processors\" || type === \"editors\" ? `./${type}/` : \"./\"}${type === \"editors\" ? item.fullName : item.lastName}`;\n try {\n await loadSharedModule(pkgId, moduleName);\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(error);\n throw new BrickLoadError(`Load ${type} of \"${item.fullName}\" failed: ${error === null || error === void 0 ? void 0 : error.message}`);\n }\n}\nfunction loadRestBricks(type, pkgs, itemsMap) {\n return pkgs.map(async pkg => {\n await loadScript(pkg.filePath, window.PUBLIC_ROOT ?? \"\");\n await waitBasicPkg;\n return Promise.all(\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n itemsMap.get(pkg).map(item => loadBrickModule(type, pkg.id, item)));\n });\n}\nasync function enqueueStableLoad(type, list, brickPackages) {\n const brickPackagesMap = new Map();\n for (const pkg of brickPackages) {\n const pkgId = pkg.id || getPkgIdByFilePath(pkg.filePath);\n brickPackagesMap.set(pkgId, pkg);\n }\n const itemsByPkg = getItemsByPkg(type, list, brickPackagesMap);\n let foundBasicPkg;\n const v2Packages = [];\n const v3PackagesOtherThanBasic = [];\n let maybeV2Adapter;\n for (const pkg of itemsByPkg.keys()) {\n if (pkg.id) {\n if (pkg.id === \"bricks/basic\") {\n foundBasicPkg = pkg;\n } else {\n v3PackagesOtherThanBasic.push(pkg);\n }\n } else {\n // Brick packages of v2 has no `id`\n v2Packages.push(pkg);\n maybeV2Adapter = brickPackagesMap.get(\"bricks/v2-adapter\");\n if (!maybeV2Adapter) {\n throw new Error(\"Using v2 bricks, but v2-adapter not found\");\n }\n }\n }\n const v2Adapter = maybeV2Adapter;\n let basicPkgPromise;\n const basicPkg = foundBasicPkg;\n if (basicPkg) {\n const tempPromise = loadScript(basicPkg.filePath, window.PUBLIC_ROOT ?? \"\");\n // Packages other than BASIC will wait for an extra micro-task tick.\n if (!basicPkgWillBeResolved) {\n basicPkgWillBeResolved = true;\n tempPromise.then(() => Promise.resolve()).then(resolveBasicPkg, rejectBasicPkg);\n }\n basicPkgPromise = tempPromise.then(() => Promise.all(\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n itemsByPkg.get(basicPkg).map(item => loadBrickModule(type, basicPkg.id, item))));\n }\n const pkgPromises = [basicPkgPromise].concat(loadRestBricks(type, v3PackagesOtherThanBasic, itemsByPkg));\n if (v2Adapter && v2Packages.length > 0) {\n if (!v2AdapterPromise) {\n // Load `v2-adapter.load-bricks` and its dependencies\n const v2AdapterItemsByPkg = getItemsByPkg(\"bricks\", [V2_ADAPTER_LOAD_BRICKS], brickPackagesMap);\n const v2AdapterPackages = [...v2AdapterItemsByPkg.keys()];\n const loadV2Adapter = async () => {\n await Promise.all(loadRestBricks(\"bricks\", v2AdapterPackages, v2AdapterItemsByPkg));\n return document.createElement(V2_ADAPTER_LOAD_BRICKS);\n };\n v2AdapterPromise = loadV2Adapter();\n }\n pkgPromises.push(v2AdapterPromise.then(adapter => Promise.all(v2Packages.map(pkg => {\n const pkgId = getPkgIdByFilePath(pkg.filePath);\n const pkgNamespace = pkgId.split(\"/\")[1];\n return adapter.resolve(v2Adapter.filePath, type === \"editors\" ? pkg.propertyEditorsJsFilePath ?? pkg.filePath : pkg.filePath, type === \"bricks\" ?\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n itemsByPkg.get(pkg).map(item => `${pkgNamespace}.${item.lastName}`) : [], pkg.dll,\n // Todo: remove `brickPackages` as an argument\n brickPackages);\n }))));\n }\n await Promise.all(pkgPromises);\n}\nasync function dispatchRequestStatus(promise) {\n window.dispatchEvent(new Event(\"request.start\"));\n try {\n await promise;\n } finally {\n window.dispatchEvent(new Event(\"request.end\"));\n }\n}\nfunction getProcessorPackageName(camelPackageName) {\n return camelPackageName.replace(/[A-Z]/g, match => `-${match[0].toLocaleLowerCase()}`).replace(/_[0-9]/g, match => `-${match[1]}`);\n}\nfunction getPkgIdByFilePath(filePath) {\n return filePath.split(\"/\").slice(0, 2).join(\"/\");\n}\n//# sourceMappingURL=stableLoadBricks.js.map"],"names":["cache","Map","loadScriptOrStyle","type","src","prefix","attrs","Array","isArray","Promise","all","map","item","fixedSrc","test","cachedPromise","get","promise","resolve","reject","end","window","dispatchEvent","Event","element","document","createElement","Object","assign","async","rel","href","onload","onerror","e","firstScript","currentScript","getElementsByTagName","parentNode","insertBefore","set","loadScript","loadStyle","loadSharedModule","scope","module","container","init","default","resolveBasicPkg","rejectBasicPkg","basicPkgWillBeResolved","waitBasicPkg","flushStableLoadBricks","enqueueStableLoadBricks","bricks","brickPackages","dispatchRequestStatus","enqueueStableLoad","enqueueStableLoadProcessors","processors","loadBricksImperatively","loadProcessorsImperatively","loadEditorsImperatively","editors","BrickLoadError","Error","constructor","message","super","this","name","captureStackTrace","v2AdapterPromise","V2_ADAPTER_LOAD_BRICKS","getItemsByPkg","list","brickPackagesMap","itemsByPkg","listToLoad","Set","add","_pkg$dependencies","has","pkg","namespace","lastName","p","values","_ref","propertyEditors","some","includes","split","pkgId","camelPackageName","replace","match","toLocaleLowerCase","deprecatedBrickInThisPkg","_p$elements","elements","_p$deprecatedElements","deprecatedElements","console","error","groupItems","push","fullName","deps","dependencies","dep","loadBrickModule","moduleName","loadRestBricks","pkgs","itemsMap","filePath","PUBLIC_ROOT","id","getPkgIdByFilePath","foundBasicPkg","v2Packages","v3PackagesOtherThanBasic","maybeV2Adapter","keys","v2Adapter","basicPkgPromise","basicPkg","tempPromise","then","pkgPromises","concat","length","v2AdapterItemsByPkg","v2AdapterPackages","loadV2Adapter","adapter","pkgNamespace","propertyEditorsJsFilePath","dll","slice","join"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[5552,3171],{5552:(n,e,t)=>{t.r(e),t.d(e,{i18n:()=>p,i18nText:()=>l,initializeI18n:()=>c});var i=t(2350),s=t(3241),r=t(7072);let a=!1;const o=new Set;function c(n,e){if(a||(a=!0,s.i18n.use(r.default).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{}})),n&&e&&!o.has(n)){o.add(n);for(const[t,i]of Object.entries(e))s.i18n.addResourceBundle(t,n,i)}}var u=t(4218);function l(n){if(!n)return;const e=s.i18n.language??"zh-CN";if((0,u.hasOwnProperty)(n,e))return n[e];const t=e.split("-")[0];if(t!==e)return(0,u.hasOwnProperty)(n,t)?n[t]:void 0;const i=`${t}-`;for(const e of Object.keys(n))if(e.startsWith(i))return n[e]}const p=i.default}}]);
2
- //# sourceMappingURL=5552.dd6677fc.js.map
1
+ "use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[5552,3171],{5552:(n,e,t)=>{t.r(e),t.d(e,{i18n:()=>p,i18nText:()=>l,initializeI18n:()=>c});var i=t(2350),s=t(9428),r=t(7072);let a=!1;const o=new Set;function c(n,e){if(a||(a=!0,s.i18n.use(r.default).init({fallbackLng:"zh",debug:!1,supportedLngs:["zh","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},react:{useSuspense:!1},compatibilityJSON:"v3",resources:{}})),n&&e&&!o.has(n)){o.add(n);for(const[t,i]of Object.entries(e))s.i18n.addResourceBundle(t,n,i)}}var u=t(7057);function l(n){if(!n)return;const e=s.i18n.language??"zh-CN";if((0,u.hasOwnProperty)(n,e))return n[e];const t=e.split("-")[0];if(t!==e)return(0,u.hasOwnProperty)(n,t)?n[t]:void 0;const i=`${t}-`;for(const e of Object.keys(n))if(e.startsWith(i))return n[e]}const p=i.default}}]);
2
+ //# sourceMappingURL=5552.1b400f3b.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/5552.dd6677fc.js","mappings":"sOAEA,IAAIA,GAAc,EAClB,MAAMC,EAAwB,IAAIC,IAC3B,SAASC,EAAeC,EAAIC,GAwBjC,GAvBKL,IACHA,GAAc,EACd,EAAAM,KAICC,IAAmF,WAEnFC,KAAK,CACJC,YAAa,KACbC,OAAO,EACPC,cAAe,CAAC,KAAM,MACtBC,0BAA0B,EAC1BC,cAAe,CACbC,aAAa,GAEfC,MAAO,CACLC,aAAa,GAEfC,kBAAmB,KACnBC,UAAW,CAAC,KAGXd,GAAOC,IAAWJ,EAAsBkB,IAAIf,GAAjD,CAGAH,EAAsBmB,IAAIhB,GAC1B,IAAK,MAAOiB,EAAMH,KAAcI,OAAOC,QAAQlB,GAC7C,EAAAC,KAAKkB,kBAAkBH,EAAMjB,EAAIc,EAHnC,CAKF,C,cCjCO,SAASO,EAASC,GACvB,IAAKA,EACH,OAEF,MAAMC,EAAW,EAAArB,KAAKqB,UAAY,QAElC,IAAI,IAAAC,gBAAeF,EAAMC,GACvB,OAAOD,EAAKC,GAGd,MAAME,EAAkBF,EAASG,MAAM,KAAK,GAC5C,GAAID,IAAoBF,EAGtB,OAAO,IAAAC,gBAAeF,EAAMG,GAAmBH,EAAKG,QAAmBE,EAKzE,MAAMC,EAAS,GAAGH,KAClB,IAAK,MAAMI,KAAOX,OAAOY,KAAKR,GAC5B,GAAIO,EAAIE,WAAWH,GACjB,OAAON,EAAKO,EAGlB,CC1BO,MAAM3B,EAA6E,S","sources":["webpack:///../../node_modules/@next-core/i18n/dist/esm/init.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/text.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/index.js"],"sourcesContent":["import { i18n } from \"@next-core/i18n\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nlet initialized = false;\nconst initializedNamespaces = new Set();\nexport function initializeI18n(NS, locales) {\n if (!initialized) {\n initialized = true;\n i18n\n // learn more: https://github.com/i18next/i18next-xhr-backend\n // .use(Backend)\n // learn more: https://github.com/i18next/i18next-browser-languageDetector\n .use(process.env.NODE_ENV === \"test\" ? LanguageDetector : /* istanbul ignore next */LanguageDetector.default)\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n fallbackLng: \"zh\",\n debug: process.env.NODE_ENV === \"development\",\n supportedLngs: [\"zh\", \"en\"],\n nonExplicitSupportedLngs: true,\n interpolation: {\n escapeValue: false // not needed for react as it escapes by default\n },\n react: {\n useSuspense: false\n },\n compatibilityJSON: \"v3\",\n resources: {}\n });\n }\n if (!NS || !locales || initializedNamespaces.has(NS)) {\n return;\n }\n initializedNamespaces.add(NS);\n for (const [lang, resources] of Object.entries(locales)) {\n i18n.addResourceBundle(lang, NS, resources);\n }\n}\n//# sourceMappingURL=init.js.map","import { i18n } from \"@next-core/i18n\";\nimport { hasOwnProperty } from \"@next-core/utils/general\";\nexport function i18nText(data) {\n if (!data) {\n return;\n }\n const language = i18n.language ?? \"zh-CN\";\n // First, make a perfect match.\n if (hasOwnProperty(data, language)) {\n return data[language];\n }\n // https://en.wikipedia.org/wiki/IETF_language_tag\n const primaryLanguage = language.split(\"-\")[0];\n if (primaryLanguage !== language) {\n // Then, match the primary language (which omits other subtags).\n // E.g., match `zh` if the current language is `zh-CN`.\n return hasOwnProperty(data, primaryLanguage) ? data[primaryLanguage] : undefined;\n }\n // At last, match the first key which starts with the primary language,\n // if the current language contains primary subtag only.\n // E.g., match `zh-CN` if the current language is `zh`.\n const prefix = `${primaryLanguage}-`;\n for (const key of Object.keys(data)) {\n if (key.startsWith(prefix)) {\n return data[key];\n }\n }\n}\n//# sourceMappingURL=text.js.map","import i18next from \"i18next\";\nexport const i18n = process.env.NODE_ENV === \"test\" ? i18next : /* istanbul ignore next */i18next.default;\nexport * from \"./init.js\";\nexport * from \"./text.js\";\n//# sourceMappingURL=index.js.map"],"names":["initialized","initializedNamespaces","Set","initializeI18n","NS","locales","i18n","use","init","fallbackLng","debug","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","has","add","lang","Object","entries","addResourceBundle","i18nText","data","language","hasOwnProperty","primaryLanguage","split","undefined","prefix","key","keys","startsWith"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/5552.1b400f3b.js","mappings":"sOAEA,IAAIA,GAAc,EAClB,MAAMC,EAAwB,IAAIC,IAC3B,SAASC,EAAeC,EAAIC,GAwBjC,GAvBKL,IACHA,GAAc,EACd,EAAAM,KAICC,IAAmF,WAEnFC,KAAK,CACJC,YAAa,KACbC,OAAO,EACPC,cAAe,CAAC,KAAM,MACtBC,0BAA0B,EAC1BC,cAAe,CACbC,aAAa,GAEfC,MAAO,CACLC,aAAa,GAEfC,kBAAmB,KACnBC,UAAW,CAAC,KAGXd,GAAOC,IAAWJ,EAAsBkB,IAAIf,GAAjD,CAGAH,EAAsBmB,IAAIhB,GAC1B,IAAK,MAAOiB,EAAMH,KAAcI,OAAOC,QAAQlB,GAC7C,EAAAC,KAAKkB,kBAAkBH,EAAMjB,EAAIc,EAHnC,CAKF,C,cCjCO,SAASO,EAASC,GACvB,IAAKA,EACH,OAEF,MAAMC,EAAW,EAAArB,KAAKqB,UAAY,QAElC,IAAI,IAAAC,gBAAeF,EAAMC,GACvB,OAAOD,EAAKC,GAGd,MAAME,EAAkBF,EAASG,MAAM,KAAK,GAC5C,GAAID,IAAoBF,EAGtB,OAAO,IAAAC,gBAAeF,EAAMG,GAAmBH,EAAKG,QAAmBE,EAKzE,MAAMC,EAAS,GAAGH,KAClB,IAAK,MAAMI,KAAOX,OAAOY,KAAKR,GAC5B,GAAIO,EAAIE,WAAWH,GACjB,OAAON,EAAKO,EAGlB,CC1BO,MAAM3B,EAA6E,S","sources":["webpack:///../../node_modules/@next-core/i18n/dist/esm/init.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/text.js","webpack:///../../node_modules/@next-core/i18n/dist/esm/index.js"],"sourcesContent":["import { i18n } from \"@next-core/i18n\";\nimport LanguageDetector from \"i18next-browser-languagedetector\";\nlet initialized = false;\nconst initializedNamespaces = new Set();\nexport function initializeI18n(NS, locales) {\n if (!initialized) {\n initialized = true;\n i18n\n // learn more: https://github.com/i18next/i18next-xhr-backend\n // .use(Backend)\n // learn more: https://github.com/i18next/i18next-browser-languageDetector\n .use(process.env.NODE_ENV === \"test\" ? LanguageDetector : /* istanbul ignore next */LanguageDetector.default)\n // for all options read: https://www.i18next.com/overview/configuration-options\n .init({\n fallbackLng: \"zh\",\n debug: process.env.NODE_ENV === \"development\",\n supportedLngs: [\"zh\", \"en\"],\n nonExplicitSupportedLngs: true,\n interpolation: {\n escapeValue: false // not needed for react as it escapes by default\n },\n react: {\n useSuspense: false\n },\n compatibilityJSON: \"v3\",\n resources: {}\n });\n }\n if (!NS || !locales || initializedNamespaces.has(NS)) {\n return;\n }\n initializedNamespaces.add(NS);\n for (const [lang, resources] of Object.entries(locales)) {\n i18n.addResourceBundle(lang, NS, resources);\n }\n}\n//# sourceMappingURL=init.js.map","import { i18n } from \"@next-core/i18n\";\nimport { hasOwnProperty } from \"@next-core/utils/general\";\nexport function i18nText(data) {\n if (!data) {\n return;\n }\n const language = i18n.language ?? \"zh-CN\";\n // First, make a perfect match.\n if (hasOwnProperty(data, language)) {\n return data[language];\n }\n // https://en.wikipedia.org/wiki/IETF_language_tag\n const primaryLanguage = language.split(\"-\")[0];\n if (primaryLanguage !== language) {\n // Then, match the primary language (which omits other subtags).\n // E.g., match `zh` if the current language is `zh-CN`.\n return hasOwnProperty(data, primaryLanguage) ? data[primaryLanguage] : undefined;\n }\n // At last, match the first key which starts with the primary language,\n // if the current language contains primary subtag only.\n // E.g., match `zh-CN` if the current language is `zh`.\n const prefix = `${primaryLanguage}-`;\n for (const key of Object.keys(data)) {\n if (key.startsWith(prefix)) {\n return data[key];\n }\n }\n}\n//# sourceMappingURL=text.js.map","import i18next from \"i18next\";\nexport const i18n = process.env.NODE_ENV === \"test\" ? i18next : /* istanbul ignore next */i18next.default;\nexport * from \"./init.js\";\nexport * from \"./text.js\";\n//# sourceMappingURL=index.js.map"],"names":["initialized","initializedNamespaces","Set","initializeI18n","NS","locales","i18n","use","init","fallbackLng","debug","supportedLngs","nonExplicitSupportedLngs","interpolation","escapeValue","react","useSuspense","compatibilityJSON","resources","has","add","lang","Object","entries","addResourceBundle","i18nText","data","language","hasOwnProperty","primaryLanguage","split","undefined","prefix","key","keys","startsWith"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ "use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[6314,3933],{3933:(e,t,o)=>{function n(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(r,s){if("string"==typeof t?r.name===t:t.includes(r.name)){const t=[];for(let i=1;i<=o;i++){const o=s[s.length-i];if("MemberExpression"===(null==o?void 0:o.node.type)&&"object"===o.key){const s=o.node;s.computed||"Identifier"!==s.property.type?s.computed&&"Literal"===s.property.type&&"string"==typeof s.property.value?t.push(n?`${r.name}.${s.property.value}`:s.property.value):e.hasNonStaticUsage=!0:t.push(n?`${r.name}.${s.property.name}`:s.property.name)}else e.hasNonStaticUsage=!0}t.length===o&&e.usedProperties.add(t.join("."))}}}function r(e,t){return function(o,n,r){if(n.name===e){const e=r[r.length-1],n=r[r.length-2];if("CallExpression"===(null==n?void 0:n.node.type)&&"callee"===(null==n?void 0:n.key)&&"MemberExpression"===(null==e?void 0:e.node.type)&&"object"===e.key&&(e.node.computed?"Literal"===e.node.property.type&&e.node.property.value===t:"Identifier"===e.node.property.type&&e.node.property.name===t)){const e=n.node.arguments;if(e.length>0){const t=e[0];"Literal"===t.type&&"string"==typeof t.value?o.usedArgs.add(t.value):o.hasNonStaticUsage=!0}}}}}o.r(t),o.d(t,{beforeVisitGlobalMember:()=>n,collectAppGetMenuUsage:()=>s,collectInstalledAppsHasUsage:()=>i,collectMemberUsage:()=>p,collectMemberUsageInFunction:()=>S,createProviderClass:()=>c.createProviderClass,scanPermissionActionsInAny:()=>P,scanPermissionActionsInStoryboard:()=>v,strictCollectMemberUsage:()=>l,track:()=>f,trackAll:()=>y,traverseStoryboardExpressions:()=>u,traverseStoryboardFunction:()=>g,traverseStoryboardFunctions:()=>h,unwrapProvider:()=>c.unwrapProvider});const s=r("APP","getMenu"),i=r("INSTALLED_APPS","has");var a=o(522),c=o(7057);function u(e,t,o){const n=new WeakSet,{matchExpressionString:r,visitNotMatchedExpressionString:s,visitNonExpressionString:i,visitObject:u}="string"==typeof o?{matchExpressionString:e=>e.includes(o)}:o;!function e(o){if("string"==typeof o)if((0,a.isEvaluable)(o))if(r(o))try{(0,a.preevaluate)(o,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal(e,n){t(e,n,o)}}})}catch(e){console.error("Parse storyboard expression failed:",e)}else null==s||s(o);else null==i||i(o);else if((0,c.isObject)(o)){if(n.has(o))return;n.add(o),null==u||u(o);for(const t of Array.isArray(o)?o:Object.values(o))e(t)}}(e)}function l(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const{hasNonStaticUsage:n,nonStaticUsage:r,usedProperties:s}=p(e,t,o);if(n)throw new Error(`Non-static usage of ${t} is prohibited, check your expression: "${r}"`);return s}function p(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const r={usedProperties:new Set,hasNonStaticUsage:!1},s=n(r,t,o);return u(e,((e,t,o)=>{s(e,t),r.hasNonStaticUsage&&(r.nonStaticUsage=o)}),t),r}const d=["CTX","STATE","FORM_STATE"];function f(e,t,o){if(e.includes(t)){const r={usedProperties:new Set,hasNonStaticUsage:!1},{expression:s}=(0,a.preevaluate)(e,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal:n(r,o)}});let i;if("SequenceExpression"===s.type&&(i=s.expressions[0])&&"Literal"===i.type&&i.value===t){if(r.usedProperties.size>0)return r.usedProperties;console.warn(`You are using "${t}" but no \`${o}\` usage found in your expression: ${JSON.stringify(e)}`)}}return!1}function y(e){if(d.some((t=>e.includes(t)))){const t={usedProperties:new Set,hasNonStaticUsage:!1};if((0,a.preevaluate)(e,{cache:!0,withParent:!0,hooks:{beforeVisitGlobal:n(t,d,1,!0)}}),t.usedProperties.size>0){const e=[...t.usedProperties],o={context:!1,state:!1,formState:!1},n={CTX:"context",STATE:"state",FORM_STATE:"formState"};return e.forEach((e=>{const[t,r]=e.split(".");o[n[t]]||(o[n[t]]=[]),o[n[t]].push(r)})),o}console.warn(`You are using track all but no "CTX" or "STATE" or "FORM_STATE" usage found in your expression: ${JSON.stringify(e)}`)}return!1}function h(e,t,o){if(Array.isArray(e))for(const n of e)null!=o&&o.matchSource&&!o.matchSource(n.source)||g(n,t)}function g(e,t,o){try{(0,a.precookFunction)(e.source,{typescript:e.typescript,withParent:!0,hooks:{beforeVisitGlobal:t},cacheKey:e})}catch(t){o||console.error(`Parse storyboard function "${e.name}" failed:`,t)}}function S(e,t,o){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const s={usedProperties:new Set,hasNonStaticUsage:!1};if(e.source.includes(t)&&g(e,n(s,t,r),o),s.hasNonStaticUsage&&!o)throw new Error(`Non-static usage of ${t} is prohibited, check your function: "${e.name}"`);return s.usedProperties.delete(e.name),s.usedProperties}const m="PERMISSIONS",b="check";function v(e){const t=new Set,o=k(t),{customTemplates:n,functions:r}=e.meta??{};return u([e.routes,n],o,m),h(r,o,{matchSource:e=>e.includes(m)}),Array.from(t)}function P(e){const t=new Set;return u(e,k(t),m),Array.from(t)}function k(e){return function(t,o){if(t.name===m){const t=o[o.length-1],n=o[o.length-2];if("CallExpression"===(null==n?void 0:n.node.type)&&"callee"===(null==n?void 0:n.key)&&"MemberExpression"===(null==t?void 0:t.node.type)&&"object"===t.key&&(t.node.computed?"Literal"===t.node.property.type&&t.node.property.value===b:"Identifier"===t.node.property.type&&t.node.property.name===b))for(const t of n.node.arguments)"Literal"===t.type&&"string"==typeof t.value&&e.add(t.value)}}}}}]);
2
+ //# sourceMappingURL=6314.4871375a.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/3933.2b39e42b.js","mappings":"qIAAO,SAASA,EAAwBC,EAAOC,GAC7C,IAAIC,EAAQC,UAAUC,OAAS,QAAsBC,IAAjBF,UAAU,GAAmBA,UAAU,GAAK,EAC5EG,EAAqBH,UAAUC,OAAS,QAAsBC,IAAjBF,UAAU,IA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AAI9F,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 const collection = new Set();\n const beforeVisitPermissions = beforeVisitPermissionsFactory(collection);\n const {\n customTemplates,\n functions\n } = 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","collection","beforeVisitPermissions","beforeVisitPermissionsFactory","customTemplates","meta","routes","from","scanPermissionActionsInAny","arg"],"sourceRoot":""}
1
+ {"version":3,"file":"chunks/6314.4871375a.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,G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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 const collection = new Set();\n const beforeVisitPermissions = beforeVisitPermissionsFactory(collection);\n const {\n customTemplates,\n functions\n } = 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","collection","beforeVisitPermissions","beforeVisitPermissionsFactory","customTemplates","meta","routes","from","scanPermissionActionsInAny","arg"],"sourceRoot":""}
@@ -0,0 +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(3669);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.c702aa91.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chunks/6519.88149886.js","mappings":"oNAEA,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":""}
1
+ {"version":3,"file":"chunks/6519.c702aa91.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(7619),r=i(2240),s=i(9435),l=i(2865),p=i(9575),c=i(4295),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(4861);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(4612),oe=i(9684),re=i(1644),se=i(3887),le=i(3346),pe=i(6051),ce=i(9428),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){this.filteredFavoriteList=(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})))??[],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;let{item:o}=e;const r=(0,a.useMemo)((()=>{var e,t;return"microApp"===(null===(e=o.launchpadCollection)||void 0===e?void 0:e.type)?!o.microAppId:"customItem"===(null===(t=o.launchpadCollection)||void 0===t?void 0:t.type)&&!(null!=o&&o.customItemId)}),[o]),s=(0,a.useMemo)((()=>{var e,t,i;const a=null===(e=o.launchpadCollection)||void 0===e?void 0:e.link;if("microApp"===(null===(t=o.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=o.launchpadCollection)||void 0===i?void 0:i.link}),[o]);return n().createElement("div",null,n().createElement("div",{className:m()(Ne.cellWrapper,{[Ne.disabled]:r})},n().createElement(N,{className:Ne.link,url:s,onClick:e=>{var t,i,a,n;r?e.preventDefault():("link"!==(null===(n=o.launchpadCollection)||void 0===n?void 0:n.type)&&me.setFavoriteAsVisitor(o),!(null!==(t=o.launchpadCollection)&&void 0!==t&&null!==(t=t.link)&&void 0!==t&&t.startsWith("https://")||null!==(i=o.launchpadCollection)&&void 0!==i&&null!==(i=i.link)&&void 0!==i&&i.startsWith("http://"))||null!==(a=o.launchpadCollection)&&void 0!==a&&null!==(a=a.link)&&void 0!==a&&a.startsWith(document.baseURI)||(e.preventDefault(),window.open(o.launchpadCollection.link,"_blank")))}},n().createElement(n().Fragment,null,n().createElement("span",{className:m()(Ne.appLink,Ne.square)},n().createElement(S,(0,p.A)({},(0,B.omit)(null==o||null===(t=o.launchpadCollection)||void 0===t?void 0:t.icon,["prefix","type"])??{},{style:{fontSize:18}}))),n().createElement("span",{className:Ne.name},null==o||null===(i=o.launchpadCollection)||void 0===i?void 0:i.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:is(.arrowLeft--xkZ60z9A,.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)}:is(.modeWrapper--L03hs70G .modeIcon--CE2TFixF):hover{opacity:1}.modeWrapper--L03hs70G .emptyTips--IvkqCJZN{font-size:16px;line-height:24px}:is(.modeWrapper--L03hs70G .emptyTips--IvkqCJZN) a{color:#52a6f9}:is(:is(.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}:is(.searchBar--k7ys_9bU .inputAffixWrapper--r90ghnJb):hover{border-color:#0071eb;border-right-width:2px!important}:is(.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}:is(.siteMapContainer--oPV4617W .groupWrapper--vg8DzjpO) .group--ojLUh6U2{margin:0;padding:9px 0 58px}:is(.siteMapContainer--oPV4617W .groupWrapper--vg8DzjpO) .item--UDV8jW76{list-style-type:none;font-size:12px;padding:5px 0px}:is(:is(.siteMapContainer--oPV4617W .groupWrapper--vg8DzjpO) .item--UDV8jW76) > eo-link{cursor:pointer;color:rgba(255,255,255,0.65)}:is(:is(:is(.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.1f38ee5f.js.map