@next-bricks/nav 1.13.3 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bricks.json +21 -21
- package/dist/chunks/2133.8cb65fa4.js +2 -0
- package/dist/chunks/{2133.d3293721.js.map → 2133.8cb65fa4.js.map} +1 -1
- package/dist/chunks/{2252.2bb7307d.js → 2252.1b68ec1b.js} +3 -3
- package/dist/chunks/{2252.2bb7307d.js.map → 2252.1b68ec1b.js.map} +1 -1
- package/dist/chunks/{3171.5e2483ea.js → 3171.db37c1b5.js} +2 -2
- package/dist/chunks/{3171.5e2483ea.js.map → 3171.db37c1b5.js.map} +1 -1
- package/dist/chunks/{3933.3c2c72aa.js → 3933.2b39e42b.js} +2 -2
- package/dist/chunks/{3933.3c2c72aa.js.map → 3933.2b39e42b.js.map} +1 -1
- package/dist/chunks/{4837.ee484245.js → 4837.65835551.js} +2 -2
- package/dist/chunks/{7218.b9d2bea9.js.map → 4837.65835551.js.map} +1 -1
- package/dist/chunks/{5009.83514c76.js → 5009.cc53aeee.js} +3 -3
- package/dist/chunks/5009.cc53aeee.js.map +1 -0
- package/dist/chunks/{5552.06d8c1a2.js → 5552.dd6677fc.js} +2 -2
- package/dist/chunks/{5552.06d8c1a2.js.map → 5552.dd6677fc.js.map} +1 -1
- package/dist/chunks/{6314.42fd1cb5.js → 6314.f170b365.js} +2 -2
- package/dist/chunks/{6314.42fd1cb5.js.map → 6314.f170b365.js.map} +1 -1
- package/dist/chunks/6595.173abb85.js +2 -0
- package/dist/chunks/{6595.c101361b.js.map → 6595.173abb85.js.map} +1 -1
- package/dist/chunks/{7218.b9d2bea9.js → 7218.2a3fc0e5.js} +2 -2
- package/dist/chunks/{4837.ee484245.js.map → 7218.2a3fc0e5.js.map} +1 -1
- package/dist/chunks/{8097.655f5341.js → 8097.8da4fa49.js} +2 -2
- package/dist/chunks/{8097.655f5341.js.map → 8097.8da4fa49.js.map} +1 -1
- package/dist/chunks/{8518.f37a86da.js → 8518.d084a662.js} +2 -2
- package/dist/chunks/{8518.f37a86da.js.map → 8518.d084a662.js.map} +1 -1
- package/dist/chunks/884.ce28663c.js +2 -0
- package/dist/chunks/884.ce28663c.js.map +1 -0
- package/dist/chunks/9149.94ac2bef.js +2 -0
- package/dist/chunks/9149.94ac2bef.js.map +1 -0
- package/dist/chunks/easyops-navbar-alerts.caeb1984.js +2 -0
- package/dist/chunks/{easyops-navbar-alerts.b09b5883.js.map → easyops-navbar-alerts.caeb1984.js.map} +1 -1
- package/dist/chunks/eo-directory-tree.307e4fff.js +2 -0
- package/dist/chunks/{eo-directory-tree.090f8e46.js.map → eo-directory-tree.307e4fff.js.map} +1 -1
- package/dist/chunks/eo-directory.a22fe00a.js +3 -0
- package/dist/chunks/{eo-directory.0f4b5c5a.js.map → eo-directory.a22fe00a.js.map} +1 -1
- package/dist/chunks/eo-frame-breadcrumb.38ffb1bf.js +2 -0
- package/dist/chunks/{eo-frame-breadcrumb.1379a021.js.map → eo-frame-breadcrumb.38ffb1bf.js.map} +1 -1
- package/dist/chunks/{eo-launchpad-button-v2.64a97140.js → eo-launchpad-button-v2.b332610f.js} +3 -3
- package/dist/chunks/{eo-launchpad-button-v2.64a97140.js.map → eo-launchpad-button-v2.b332610f.js.map} +1 -1
- package/dist/chunks/{eo-launchpad-button.ff43c1dc.js → eo-launchpad-button.6f41e93e.js} +3 -3
- package/dist/chunks/{eo-launchpad-button.ff43c1dc.js.map → eo-launchpad-button.6f41e93e.js.map} +1 -1
- package/dist/chunks/eo-launchpad-quick-access.72e5a18a.js +3 -0
- package/dist/chunks/eo-launchpad-quick-access.72e5a18a.js.map +1 -0
- package/dist/chunks/eo-launchpad-recent-visits.cd95a532.js +3 -0
- package/dist/chunks/eo-launchpad-recent-visits.cd95a532.js.map +1 -0
- package/dist/chunks/{eo-nav-menu.338ba743.js → eo-nav-menu.bae2f0f0.js} +2 -2
- package/dist/chunks/{eo-nav-menu.338ba743.js.map → eo-nav-menu.bae2f0f0.js.map} +1 -1
- package/dist/chunks/eo-search-launchpad.954fe9da.js +2 -0
- package/dist/chunks/eo-search-launchpad.954fe9da.js.map +1 -0
- package/dist/chunks/{eo-sidebar-menu-group.c47cbe0d.js → eo-sidebar-menu-group.eef22322.js} +3 -3
- package/dist/chunks/{eo-sidebar-menu-group.c47cbe0d.js.map → eo-sidebar-menu-group.eef22322.js.map} +1 -1
- package/dist/chunks/{eo-sidebar-menu-submenu.45d71359.js → eo-sidebar-menu-submenu.55b62a9a.js} +3 -3
- package/dist/chunks/{eo-sidebar-menu-submenu.45d71359.js.map → eo-sidebar-menu-submenu.55b62a9a.js.map} +1 -1
- package/dist/chunks/{eo-sidebar-menu.26096adc.js → eo-sidebar-menu.bdb637a0.js} +2 -2
- package/dist/chunks/{eo-sidebar-menu.26096adc.js.map → eo-sidebar-menu.bdb637a0.js.map} +1 -1
- package/dist/chunks/{eo-sidebar-sub-menu.2765ae3c.js → eo-sidebar-sub-menu.44d21e80.js} +3 -3
- package/dist/chunks/{eo-sidebar-sub-menu.2765ae3c.js.map → eo-sidebar-sub-menu.44d21e80.js.map} +1 -1
- package/dist/chunks/eo-sidebar.3c38c6f2.js +3 -0
- package/dist/chunks/{eo-sidebar.abab9b50.js.map → eo-sidebar.3c38c6f2.js.map} +1 -1
- package/dist/chunks/{launchpad-config.54c4d20d.js → launchpad-config.0081ead9.js} +3 -3
- package/dist/chunks/{launchpad-config.54c4d20d.js.map → launchpad-config.0081ead9.js.map} +1 -1
- package/dist/chunks/main.7e342a5c.js +2 -0
- package/dist/chunks/{main.8df42f79.js.map → main.7e342a5c.js.map} +1 -1
- package/dist/chunks/{nav-logo.92b4a09d.js → nav-logo.b41c2488.js} +2 -2
- package/dist/chunks/{nav-logo.92b4a09d.js.map → nav-logo.b41c2488.js.map} +1 -1
- package/dist/chunks/{poll-announce.f33f7642.js → poll-announce.5a32f14a.js} +3 -3
- package/dist/chunks/{poll-announce.f33f7642.js.map → poll-announce.5a32f14a.js.map} +1 -1
- package/dist/examples.json +3 -3
- package/dist/index.4ba5b428.js +2 -0
- package/dist/index.4ba5b428.js.map +1 -0
- package/dist/manifest.json +65 -54
- package/dist/types.json +123 -102
- package/dist-types/launchpad-button-v2/MenuGroup.d.ts +3 -1
- package/dist-types/launchpad-quick-access/index.d.ts +4 -1
- package/dist-types/launchpad-recent-visits/index.d.ts +7 -1
- package/package.json +3 -3
- package/dist/chunks/2133.d3293721.js +0 -2
- package/dist/chunks/5009.83514c76.js.map +0 -1
- package/dist/chunks/6595.c101361b.js +0 -2
- package/dist/chunks/884.7a4b9c3c.js +0 -2
- package/dist/chunks/884.7a4b9c3c.js.map +0 -1
- package/dist/chunks/9149.8380abc4.js +0 -2
- package/dist/chunks/9149.8380abc4.js.map +0 -1
- package/dist/chunks/easyops-navbar-alerts.b09b5883.js +0 -2
- package/dist/chunks/eo-directory-tree.090f8e46.js +0 -2
- package/dist/chunks/eo-directory.0f4b5c5a.js +0 -3
- package/dist/chunks/eo-frame-breadcrumb.1379a021.js +0 -2
- package/dist/chunks/eo-launchpad-quick-access.09df6210.js +0 -3
- package/dist/chunks/eo-launchpad-quick-access.09df6210.js.map +0 -1
- package/dist/chunks/eo-launchpad-recent-visits.87f9697d.js +0 -3
- package/dist/chunks/eo-launchpad-recent-visits.87f9697d.js.map +0 -1
- package/dist/chunks/eo-search-launchpad.a076389f.js +0 -2
- package/dist/chunks/eo-search-launchpad.a076389f.js.map +0 -1
- package/dist/chunks/eo-sidebar.abab9b50.js +0 -3
- package/dist/chunks/main.8df42f79.js +0 -2
- package/dist/index.42ab8932.js +0 -2
- package/dist/index.42ab8932.js.map +0 -1
- /package/dist/chunks/{2252.2bb7307d.js.LICENSE.txt → 2252.1b68ec1b.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{5009.83514c76.js.LICENSE.txt → 5009.cc53aeee.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-directory.0f4b5c5a.js.LICENSE.txt → eo-directory.a22fe00a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-button-v2.64a97140.js.LICENSE.txt → eo-launchpad-button-v2.b332610f.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-button.ff43c1dc.js.LICENSE.txt → eo-launchpad-button.6f41e93e.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-quick-access.09df6210.js.LICENSE.txt → eo-launchpad-quick-access.72e5a18a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-launchpad-recent-visits.87f9697d.js.LICENSE.txt → eo-launchpad-recent-visits.cd95a532.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar-menu-group.c47cbe0d.js.LICENSE.txt → eo-sidebar-menu-group.eef22322.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar-menu-submenu.45d71359.js.LICENSE.txt → eo-sidebar-menu-submenu.55b62a9a.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar-sub-menu.2765ae3c.js.LICENSE.txt → eo-sidebar-sub-menu.44d21e80.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{eo-sidebar.abab9b50.js.LICENSE.txt → eo-sidebar.3c38c6f2.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{launchpad-config.54c4d20d.js.LICENSE.txt → launchpad-config.0081ead9.js.LICENSE.txt} +0 -0
- /package/dist/chunks/{poll-announce.f33f7642.js.LICENSE.txt → poll-announce.5a32f14a.js.LICENSE.txt} +0 -0
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
|
+
import { Target } from "@next-bricks/basic/link";
|
|
4
5
|
/**
|
|
5
6
|
* 快捷访问
|
|
6
7
|
* @insider
|
|
7
8
|
*/
|
|
8
9
|
export declare class EoLaunchpadQuickAccess extends ReactNextElement {
|
|
9
10
|
accessor readonly: boolean | undefined;
|
|
11
|
+
accessor target: Target | undefined;
|
|
10
12
|
render(): React.JSX.Element;
|
|
11
13
|
}
|
|
12
14
|
interface EoLaunchpadQuickAccessComponentProps {
|
|
13
15
|
readonly?: boolean;
|
|
16
|
+
target?: Target;
|
|
14
17
|
}
|
|
15
|
-
export declare function EoLaunchpadQuickAccessComponent({ readonly, }: EoLaunchpadQuickAccessComponentProps): React.JSX.Element;
|
|
18
|
+
export declare function EoLaunchpadQuickAccessComponent({ readonly, target, }: EoLaunchpadQuickAccessComponentProps): React.JSX.Element;
|
|
16
19
|
export {};
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ReactNextElement } from "@next-core/react-element";
|
|
3
3
|
import "@next-core/theme";
|
|
4
|
+
import type { Target } from "@next-bricks/basic/link";
|
|
4
5
|
/**
|
|
5
6
|
* launchpad 最近访问
|
|
6
7
|
* @insider
|
|
7
8
|
*/
|
|
8
9
|
export declare class EoLaunchpadRecentVisits extends ReactNextElement {
|
|
10
|
+
accessor target: Target | undefined;
|
|
9
11
|
render(): React.JSX.Element;
|
|
10
12
|
}
|
|
11
|
-
|
|
13
|
+
interface EoLaunchpadRecentVisitsComponentProps {
|
|
14
|
+
target?: Target;
|
|
15
|
+
}
|
|
16
|
+
export declare function EoLaunchpadRecentVisitsComponent({ target, }: EoLaunchpadRecentVisitsComponentProps): React.JSX.Element;
|
|
17
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next-bricks/nav",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/nav",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"postpublish": "mv package.json.bak package.json"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@next-core/build-next-bricks": "^1.23.
|
|
38
|
+
"@next-core/build-next-bricks": "^1.23.2",
|
|
39
39
|
"@next-core/test-next": "^1.1.6"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"@next-bricks/form": "*",
|
|
44
44
|
"@next-bricks/icons": "*"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "7507bb8128c981b14f7504fdae0689db52437bea"
|
|
47
47
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_next_bricks_nav=globalThis.webpackChunk_next_bricks_nav||[]).push([[2133],{2133:(e,t,n)=>{n.d(t,{fm:()=>M,ir:()=>_,pU:()=>O,sZ:()=>T});var s=n(8769),r=n(8566),i=n(5334),o=n(4612),a=n(4864),c=n(9393),p=n(3346),l=n(7296),u=n(2824),d=n(2887),m=n(8406);const f=10,h=10;var I,g=n(6659),y=n(1030);async function w(){return(await(0,l.K)({page:1,pageSize:f},{interceptorParams:{ignoreLoadingBar:!0},noAbortOnRouteChange:!0})).list}function v(e,t){return e.id.toLowerCase().includes(t)||e.name.toLowerCase().includes(t)||e.description&&e.description.toLowerCase().includes(t)?e:null}function k(e,t){return e.id.toLowerCase().includes(t)||e.name.toLowerCase().includes(t)||e.description&&e.description.toLowerCase().includes(t)?e:null}const b=`launchpad-recent-visits:${null===(I=i.auth.getAuth())||void 0===I?void 0:I.org}`,A=new o.G(localStorage);let F=[],C=new Map,S=new Map,B=!1,P=[],x=!1,E=[],L=!1;const _=new a.x((async()=>{({menuGroups:F,microAppsById:C,customLinksById:S}=await async function(){const e=await(0,p.i)({},{interceptorParams:{ignoreLoadingBar:!0},noAbortOnRouteChange:!0}),t=new Map;for(const n of e.storyboards){const e=n.app;e.localeName=(0,g.F)(e.locales,e.name),t.set(e.id,e)}const n=[],s=new Map;for(const r of e.desktops){const e=[];for(const n of r.items)switch(n.type){case"app":{const s=t.get(n.id);s&&e.push({...n,name:s.localeName,url:s.homepage,menuIcon:s.menuIcon});break}case"custom":e.push(n),s.set(n.id,n);break;case"dir":{const r=[];for(const e of n.items)if("app"===e.type){const n=t.get(e.id);n&&r.push({...e,name:n.localeName,url:n.homepage,menuIcon:n.menuIcon})}else"custom"===e.type&&(r.push(e),s.set(e.id,e));r.length>0&&e.push({...n,items:r});break}}e.length>0&&n.push({...r,items:e})}return{menuGroups:n,microAppsById:t,customLinksById:s}}()),B=!0})),M=new a.x((async()=>{P=await async function(){const e=await w(),t=[];for(const n of e)if("microApp"===n.type){const e=n.relatedApp;e.localeName=(0,g.F)(e.locales,e.name),t.push({favoriteId:n.instanceId,type:"app",name:e.localeName,id:e.appId,url:e.homepage,instanceId:e.instanceId,menuIcon:e.menuIcon})}else if("customItem"===n.type){const e=n.relatedCustomItem;t.push({favoriteId:n.instanceId,type:"custom",name:e.name,id:e.id,url:e.url,menuIcon:e.menuIcon})}else"link"===n.type&&t.push({favoriteId:n.instanceId,type:"link",name:n.name,url:n.link,menuIcon:n.icon});return t}(),x=!0})),O=new a.x((async()=>{E=await async function(){const e=(await(0,m.y)("MICRO_APP_CATEGORY@EASYOPS",{fields:["id","type","name","icon","order","platformApps.appId","platformApps.name","platformApps.homepage","platformApps.description","platformApps.menuIcon","platformApps.locales","platformApps._object_id","platformApps.@.order","platformItems.id","platformItems.name","platformItems.url","platformItems.description","platformItems.menuIcon","platformItems._object_id","platformItems.@.order"],page:1,page_size:300,query:{type:"platform"}})).list,t=null==e?void 0:e.map((e=>{const t=e.platformApps.map((e=>{var t;return{type:"app",name:(0,g.F)(e.locales,e.name),id:e.appId,url:e.homepage,menuIcon:e.menuIcon,description:e.description,instanceId:e.instanceId,order:null===(t=e["@"])||void 0===t?void 0:t.order}})),n=e.platformItems.map((e=>{var t;return{type:"custom",name:e.name,id:e.id,url:e.url,menuIcon:e.menuIcon,description:e.description,instanceId:e.instanceId,order:null===(t=e["@"])||void 0===t?void 0:t.order}})),s=(0,y.sortBy)([...t,...n],"order");return{instanceId:e.instanceId,id:e.id,name:e.name,icon:e.icon,order:e.order,items:s}}));return[{id:"#all",name:"全部",icon:{lib:"easyops",category:"second-menu",icon:"sprint-planning-second-menu"},items:[]},...(0,y.sortBy)(t,"order")]}(),L=!0})),N=e=>(0,c.Ds)({type:"error",message:(0,r.httpErrorToString)(e)});function T(e){const[t,n]=(0,s.useState)(F),[i,o]=(0,s.useState)(C),[a,p]=(0,s.useState)(S),[l,m]=(0,s.useState)(""),[I,g]=(0,s.useState)(!B),[y,T]=(0,s.useState)(!x),[R,j]=(0,s.useState)(!L),[q,z]=(0,s.useState)([]),[D,J]=(0,s.useState)([]),[V,Y]=(0,s.useState)(P),[$,H]=(0,s.useState)(E);(0,s.useEffect)((()=>{e&&!I&&(n(F),o(C),p(S))}),[e,I]),(0,s.useEffect)((()=>{e&&!y&&Y(P)}),[e,y]),(0,s.useEffect)((()=>{e&&!R&&H(E)}),[e,R]),(0,s.useEffect)((()=>{e&&z(A.getItem(b)??[])}),[e]),(0,s.useEffect)((()=>{e&&(async()=>{try{await _.fetch(),g(!1)}catch(e){(0,r.handleHttpError)(e)}})()}),[e]),(0,s.useEffect)((()=>{e&&(async()=>{try{await M.fetch(),T(!1)}catch(e){T(!1),N(e)}})()}),[e]),(0,s.useEffect)((()=>{var t;e&&null!==(t=(0,r.getRuntime)())&&void 0!==t&&t.getFeatureFlags()["launchpad-show-platform-category"]&&(async()=>{try{await O.fetch(),j(!1)}catch(e){j(!1),N(e)}})()}),[e]),(0,s.useEffect)((()=>{if(I)return;const e=q.map((e=>{if("app"===e.type){const t=i.get(e.id);return t?{type:"app",name:t.localeName,id:t.id,url:t.homepage,instanceId:t.instanceId,menuIcon:t.menuIcon}:null}return a.get(e.id)})).filter(Boolean);J(e)}),[a,I,i,q]);const K=(0,s.useCallback)((e=>{let{type:t,id:n}=e;const s=A.getItem(b)??[],r=s.findIndex((e=>e.type===t&&e.id===n));r>-1&&s.splice(r,1),s.unshift({type:t,id:n}),s.length>h&&s.pop(),A.setItem(b,s)}),[]),Q=(0,s.useCallback)((e=>V.some((t=>G(e,t)))),[V]),U=(0,s.useCallback)((e=>{const t=V.findIndex((t=>"link"===e.type?t.favoriteId===e.favoriteId:G(e,t)));let n;if(t>-1){const e=V[t];n=V.slice(0,t).concat(V.slice(t+1)),async function(e){return e.favoriteId?(0,d.r)(e.favoriteId):w().then((t=>{var n;const s=null===(n=t.find((t=>{var n,s;return"app"===e.type?"microApp"===t.type&&(null===(n=t.relatedApp)||void 0===n?void 0:n.appId)===e.id:"custom"===e.type&&(null===(s=t.relatedCustomItem)||void 0===s?void 0:s.id)===e.id})))||void 0===n?void 0:n.instanceId;if(s)return(0,d.r)(s);console.error("Menu item to unstar not found:",e)}))}(e).catch(N)}else{if(V.length>=f)return void(0,c.ui)({type:"warn",title:"收藏数量已达上限",content:`当前收藏链接数量已达上限(${f}个),请删除部分收藏后再添加。`});const t={...e};n=V.concat(t),async function(e){return(0,u.k)({type:"app"===e.type?"microApp":"customItem",relatedInstanceId:e.instanceId},{interceptorParams:{ignoreLoadingBar:!0}})}(e).then((e=>{e&&(t.favoriteId=e.instanceId)}),N)}Y(n),P=n}),[V]),Z=(0,s.useMemo)((()=>function(e,t){if(!t)return e;const n=t.toLowerCase();return e.map((e=>({...e,items:e.items.map((e=>{switch(e.type){case"app":return v(e,n);case"custom":return k(e,n);case"dir":{const t=e.items.map((e=>"app"===e.type?v(e,n):"custom"===e.type?k(e,n):null)).filter(Boolean);return t.length>0?{...e,items:t}:null}}})).filter(Boolean)}))).filter((e=>e.items.length>0))}(t,l)),[t,l]),W=(0,s.useMemo)((()=>function(e,t){if(!t)return e;const n=t.toLowerCase();return e.map((e=>({...e,items:e.items.map((e=>{switch(e.type){case"app":return v(e,n);case"custom":return k(e,n)}})).filter(Boolean)})))}($,l)),[$,l]);return{loading:I,q:l,setQ:m,menuGroups:Z,loadingFavorites:y,loadingPlatformCategories:R,favorites:V,recentVisits:D,pushRecentVisit:K,isStarred:Q,toggleStar:U,platformCategories:W}}function G(e,t){return e.instanceId&&t.instanceId?t.instanceId===e.instanceId:t.type===e.type&&t.id===e.id}},9393:(e,t,n)=>{n.d(t,{Bj:()=>i,Ds:()=>c,EM:()=>o,ui:()=>a});var s=n(8610),r=n(5701);const i=(0,s.wrapBrick)("eo-icon"),o=(0,s.wrapBrick)("eo-link"),a=(0,r.unwrapProvider)("basic.show-dialog"),c=(0,r.unwrapProvider)("basic.show-notification")},4864:(e,t,n)=>{n.d(t,{x:()=>r});var s=n(4586);class r{constructor(e){(0,s.A)(this,"preFetchId",null),(0,s.A)(this,"preFetchScheduled",!1),(0,s.A)(this,"firstFetchPromise",null),(0,s.A)(this,"isFetching",!1),(0,s.A)(this,"task",void 0),this.task=e}schedulePrefetch(){if(!this.preFetchScheduled){this.preFetchScheduled=!0;const e=async()=>{this.preFetchId=null,this.fetch()};"function"==typeof window.requestIdleCallback?this.preFetchId=window.requestIdleCallback(e):this.preFetchId=setTimeout(e)}}fetch(e){let t;return this.preFetchId&&("function"==typeof window.cancelIdleCallback?cancelIdleCallback(this.preFetchId):clearTimeout(this.preFetchId),this.preFetchId=null),this.isFetching&&!e||(this.isFetching=!0,t=this.task(),t.catch((e=>{console.error(e),this.firstFetchPromise=null})).finally((()=>{this.isFetching=!1})),this.firstFetchPromise||(this.firstFetchPromise=t),!e)?this.firstFetchPromise:t}}},6659:(e,t,n)=>{n.d(t,{F:()=>r});var s=n(1080);function r(e,t){if(!e)return t;const n=Object.fromEntries(Object.entries(e).filter((e=>{let[t,n]=e;return n.name})).map((e=>{let[t,n]=e;return[t,n.name]})));return(0,s.i18nText)(n)??t}},4612:(e,t,n)=>{n.d(t,{G:()=>s});class s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"brick-next-";this.storage=e,this.prefix=t}setItem(e,t){this.storage.setItem(this.prefix+e,JSON.stringify(t))}getItem(e){return JSON.parse(this.storage.getItem(this.prefix+e))}removeItem(e){return this.storage.removeItem(this.prefix+e)}clear(){return this.storage.clear()}}}}]);
|
|
2
|
-
//# sourceMappingURL=2133.d3293721.js.map
|