udp-react-enterprise-component-library 25.16.2-beta.3 → 25.16.2-beta.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.
@@ -1 +1,5 @@
1
1
  export declare const getMenuItemsRecursively: (menuItems: any, activeOnly: any, user: any, getAccessToken: any, checkDeviceSize?: boolean) => any;
2
+ export declare const getRouteRolesMapAndMenuActiveMap: (menu: any) => {
3
+ rolesMap: Map<any, any>;
4
+ menuActiveMap: Map<any, any>;
5
+ };
@@ -106,7 +106,7 @@ import { t as formatBytes } from "../formatBytes-BXxFuDvk.js";
106
106
  import { n as SubHeaderActionsTarget, t as SubHeaderAction } from "../SubHeaderAction-F_GKrUBX.js";
107
107
  import { i as InquiryHeaderTitleTarget, n as InquiryHeaderControlTarget, r as InquiryHeaderTitle, t as InquiryHeaderControl } from "../InquiryHeaderControl-DClEzP6_.js";
108
108
  import { t as redirectToProductOnClick } from "../redirectToProduct-8RiwlOkw.js";
109
- import { t as getMenuItemsRecursively } from "../menuUtilities-CiOyxtX1.js";
109
+ import { n as getRouteRolesMapAndMenuActiveMap, t as getMenuItemsRecursively } from "../menuUtilities-Cb70He2X.js";
110
110
  import { n as useCurrentPageReturnTo, r as useIsAuthed, t as useAuthedUser } from "../useAuthedUser-CXowatE7.js";
111
111
  import { t as useDefaultFormValues } from "../useDefaultFormValues-DFnzUcHv.js";
112
112
  import "../ActionLoadingContext-DVpCwfbg.js";
@@ -156,4 +156,4 @@ import "../crud-CKoJlzZC.js";
156
156
  import "../iconLibrary-CJx5yVFL.js";
157
157
  import "../menus-F0wpxN7s.js";
158
158
 
159
- export { ActionProvider, AgTable, AgTableButtons, ApprovalIcon, AuthProvider, AuthProviderWrapper, ChatBotContext, ChatBotProvider, ContentContainer, Field, FileType, FileUpload, FluentIcon, Form, FormButtons, FormError, FormSpy, InquiryHeaderControl, InquiryHeaderControlTarget, InquiryHeaderSecondary, InquiryHeaderSecondaryAlert, InquiryHeaderSecondaryAlertTarget, InquiryHeaderSecondaryTarget, InquiryHeaderTitle, InquiryHeaderTitleTarget, PageSubHeaderAction, PageSubHeaderActionsTarget, RejectIcon, SplitButton, SubHeaderAction, SubHeaderActionsTarget, SubmitButton, SvgIcon, TenantContext, TenantProvider, ThemeProvider, TrimForAvatar, UnityFluentIcon, UnityIcon, UserContext, UserDispatchContext, UtilityBarInport, UtilityBarInportTarget, acquireAccessToken, apiMutate, apiResponseArrayToOptions, arrayMutators, buildCatalogObjectList, camelToPascalCaseWithSpace, checkNodeIsHidden, clearGridState, clearStoredExternalPath, clearStoredPath, clearStoredTenant, collapseAllNodes, colors, constructBusinessObjectArrFromTree, constructDynamicNodeGroups, constructDynamicNodeGroups2, constructPreloadedTree, constructStaticNodeGroups, corporateColors, corporateColorsHint, createUser, csvStrToArray, csvStrToArrayOfObjects, deleteGridState, deleteNode, deleteNodeAndChildren, evaluateRule, expandAllNodes, findAllParentIds, findLastNode, findNodeById, findNodeByIdAndLabel, findNodesByIdAndLabel, findTermByType, formatBytes, formatDateToLocaleString, formatTreeLabel, formatTreeMenuItem, getAccessToken, getAllChildrenNodesToDelete, getApiAccessScope, getApiMethodIdByPath, getCategoryColor, getCommonEntityName, getCustomHintColor, getDisplayDetails, getDisplayName, getEllipseColor, getEntityAttributes, getFullyQualifiedName, getGridState, getHeaderTitle, getIconFromName, getLazyLoadChildrenArr, getLoginRequest, getMenuItemsRecursively, getMergedConfig, getNodeIdForRightBorder, getOrderedDynamicGroups, getPathObject, getPathParametersObj, getPrimaryKeyValues, getPropertyMappingList, getPropertyMappingObj, getSanitizedName, getSearchIdentifiers, getSearchObject, getSearchValueString, getSignInAuthProvider, getStoredExternalPath, getStoredPath, getStoredTenant, getTokenRequest, getUnityIconFromName, getWorkflowTaskIconByActionType, getWorkflowTaskStateIconByStateType, getWorkflowTaskStateIconColorByStateType, greyScale, handleResponseErrors, initSignInAuthProvider, loginRedirect, makeDynamicGroupStructures, makeDynamicTreeStructure, makeTreeStaticGroupStructure, makeTreeStructure, mapNodeGroupChildren, mapNodeObjValuesToSearchParameters, mapRule, mapRuleData, onFirstDataRendered, pluralize, processCatalogObjectKeysInOrder, processItemForDynamicNodeGroups, processItemForStaticNodeGroup, processObjIndex, processObjectToTree, processOrderedTreeData, processReferences, productCategoryColors, redirectToLinkOnClick, redirectToProductOnClick, removeWhiteSpace, saveGridState, searchForMatchingNode, searchTree, storeCurrentPath, storeExternalPath, storeInitialPath, storeInitialTenant, storePath, storeTenant, stringToProps, toLowerFirstChar, toTitleCase, toUpperFirstChar, toUtcDate, transformMenuPageTree, transformWorkflowPlayTree, trimStringAfter, unityIcons, updateTreeIds, updateWorkflowPlayNodeState, useAccessToken, useAgGridApi, useAuthedUser, useAxiosGet, useAxiosGetQuery, useAxiosMutate, useChatBot, useConvertFilterModelToSearchFilters, useCurrentPageReturnTo, useDefaultFormValues, useExport, useField, useFieldChangeListener, useForm, useFormState, useGridClear, useGridFormat, useHandleAxiosSnackbar, useIsAuthed, useIsUnityAuthenticated, useLocalUserActions, useLoginAction, useLogoutAction, useNoticeUpdate, usePrevious, useQuickFilter, useScreenControl, useServerSideDatasource, useSingleLogout, useSystemColor, useTenant, useTypeScale, useUser, useUserActions, verticalPrimary, verticalSecondary, whitelistedPaths };
159
+ export { ActionProvider, AgTable, AgTableButtons, ApprovalIcon, AuthProvider, AuthProviderWrapper, ChatBotContext, ChatBotProvider, ContentContainer, Field, FileType, FileUpload, FluentIcon, Form, FormButtons, FormError, FormSpy, InquiryHeaderControl, InquiryHeaderControlTarget, InquiryHeaderSecondary, InquiryHeaderSecondaryAlert, InquiryHeaderSecondaryAlertTarget, InquiryHeaderSecondaryTarget, InquiryHeaderTitle, InquiryHeaderTitleTarget, PageSubHeaderAction, PageSubHeaderActionsTarget, RejectIcon, SplitButton, SubHeaderAction, SubHeaderActionsTarget, SubmitButton, SvgIcon, TenantContext, TenantProvider, ThemeProvider, TrimForAvatar, UnityFluentIcon, UnityIcon, UserContext, UserDispatchContext, UtilityBarInport, UtilityBarInportTarget, acquireAccessToken, apiMutate, apiResponseArrayToOptions, arrayMutators, buildCatalogObjectList, camelToPascalCaseWithSpace, checkNodeIsHidden, clearGridState, clearStoredExternalPath, clearStoredPath, clearStoredTenant, collapseAllNodes, colors, constructBusinessObjectArrFromTree, constructDynamicNodeGroups, constructDynamicNodeGroups2, constructPreloadedTree, constructStaticNodeGroups, corporateColors, corporateColorsHint, createUser, csvStrToArray, csvStrToArrayOfObjects, deleteGridState, deleteNode, deleteNodeAndChildren, evaluateRule, expandAllNodes, findAllParentIds, findLastNode, findNodeById, findNodeByIdAndLabel, findNodesByIdAndLabel, findTermByType, formatBytes, formatDateToLocaleString, formatTreeLabel, formatTreeMenuItem, getAccessToken, getAllChildrenNodesToDelete, getApiAccessScope, getApiMethodIdByPath, getCategoryColor, getCommonEntityName, getCustomHintColor, getDisplayDetails, getDisplayName, getEllipseColor, getEntityAttributes, getFullyQualifiedName, getGridState, getHeaderTitle, getIconFromName, getLazyLoadChildrenArr, getLoginRequest, getMenuItemsRecursively, getMergedConfig, getNodeIdForRightBorder, getOrderedDynamicGroups, getPathObject, getPathParametersObj, getPrimaryKeyValues, getPropertyMappingList, getPropertyMappingObj, getRouteRolesMapAndMenuActiveMap, getSanitizedName, getSearchIdentifiers, getSearchObject, getSearchValueString, getSignInAuthProvider, getStoredExternalPath, getStoredPath, getStoredTenant, getTokenRequest, getUnityIconFromName, getWorkflowTaskIconByActionType, getWorkflowTaskStateIconByStateType, getWorkflowTaskStateIconColorByStateType, greyScale, handleResponseErrors, initSignInAuthProvider, loginRedirect, makeDynamicGroupStructures, makeDynamicTreeStructure, makeTreeStaticGroupStructure, makeTreeStructure, mapNodeGroupChildren, mapNodeObjValuesToSearchParameters, mapRule, mapRuleData, onFirstDataRendered, pluralize, processCatalogObjectKeysInOrder, processItemForDynamicNodeGroups, processItemForStaticNodeGroup, processObjIndex, processObjectToTree, processOrderedTreeData, processReferences, productCategoryColors, redirectToLinkOnClick, redirectToProductOnClick, removeWhiteSpace, saveGridState, searchForMatchingNode, searchTree, storeCurrentPath, storeExternalPath, storeInitialPath, storeInitialTenant, storePath, storeTenant, stringToProps, toLowerFirstChar, toTitleCase, toUpperFirstChar, toUtcDate, transformMenuPageTree, transformWorkflowPlayTree, trimStringAfter, unityIcons, updateTreeIds, updateWorkflowPlayNodeState, useAccessToken, useAgGridApi, useAuthedUser, useAxiosGet, useAxiosGetQuery, useAxiosMutate, useChatBot, useConvertFilterModelToSearchFilters, useCurrentPageReturnTo, useDefaultFormValues, useExport, useField, useFieldChangeListener, useForm, useFormState, useGridClear, useGridFormat, useHandleAxiosSnackbar, useIsAuthed, useIsUnityAuthenticated, useLocalUserActions, useLoginAction, useLogoutAction, useNoticeUpdate, usePrevious, useQuickFilter, useScreenControl, useServerSideDatasource, useSingleLogout, useSystemColor, useTenant, useTypeScale, useUser, useUserActions, verticalPrimary, verticalSecondary, whitelistedPaths };
@@ -1,7 +1,7 @@
1
1
  import "../../pageEnums-DtccKpw_.js";
2
2
  import "../../unitySystemEnums-C3qeqk7V.js";
3
3
  import { t as redirectToLinkOnClick } from "../../redirectToLink-DUidqyQh.js";
4
- import { t as getMenuItemsRecursively } from "../../menuUtilities-CiOyxtX1.js";
4
+ import { n as getRouteRolesMapAndMenuActiveMap, t as getMenuItemsRecursively } from "../../menuUtilities-Cb70He2X.js";
5
5
  import "../../menus-F0wpxN7s.js";
6
6
 
7
- export { getMenuItemsRecursively, redirectToLinkOnClick };
7
+ export { getMenuItemsRecursively, getRouteRolesMapAndMenuActiveMap, redirectToLinkOnClick };
package/export-map.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
- "generated": "2025-10-21T21:28:22.993Z",
2
+ "generated": "2025-10-27T16:55:51.082Z",
3
3
  "library": "udp-react-enterprise-component-library",
4
- "totalExports": 771,
4
+ "totalExports": 772,
5
5
  "description": "Map of exported items to their module paths for tree-shaking",
6
6
  "usage": {
7
7
  "vite": "Use with vite-plugin-udp-optimizer"
@@ -627,6 +627,7 @@
627
627
  "getPropertyMappingList": "utilities/rules",
628
628
  "getPropertyMappingObj": "utilities/rules",
629
629
  "getRatio": "layout",
630
+ "getRouteRolesMapAndMenuActiveMap": "utilities/menus",
630
631
  "getSanitizedName": "utilities/entities",
631
632
  "getSearchIdentifiers": "utilities/search",
632
633
  "getSearchObject": "utilities/search",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "udp-react-enterprise-component-library",
3
- "version": "25.16.2-beta.3",
3
+ "version": "25.16.2-beta.4",
4
4
  "description": "React-based UI component library implementing Fluent UI design for Univerus internal projects",
5
5
  "author": "Univerus",
6
6
  "license": "MIT",
@@ -1 +0,0 @@
1
- {"version":3,"file":"UdpRoutes-DVmSmw-w.js","names":["Switch","props"],"sources":["../src/routes/components/PageForbiddenRoute.jsx","../src/routes/PrivateRoute.jsx","../src/routes/UdpRoutes.jsx"],"sourcesContent":["import React from 'react';\nimport { makeStyles } from '@material-ui/core';\nimport { PageStatus } from './PageStatus';\nimport { useTranslation } from 'react-i18next';\n\nconst useStyles = makeStyles((theme) => ({\n root: {\n marginTop: theme.spacing(4)\n }\n}));\n\nexport const PageForbiddenRoute = (props) => {\n const { title, statusCode, subheader, message, showButton } = props;\n const classes = useStyles();\n const { t } = useTranslation();\n\n return (\n <div className={classes.root}>\n <PageStatus\n title={title ?? t('Page Forbidden')}\n statusCode={statusCode ?? '403'}\n subheader={\n subheader ?? t('Sorry, you do not have permission to view this page.')\n }\n message={message ?? t('Please contact an administrator to get access.')}\n to='/'\n buttonLabel={t('Back to Home Page')}\n showButton={showButton}\n />\n </div>\n );\n};\n","import React, { useMemo } from 'react';\nimport { Route, Redirect } from 'react-router-dom';\nimport { useTranslation } from 'react-i18next';\nimport { useIsUnityAuthenticated } from '../utilities/auth/useIsUnityAuthenticated';\nimport { useUser } from '../utilities/auth/useUser';\nimport { PageForbiddenRoute } from './components/PageForbiddenRoute';\n\nexport const PrivateRoute = ({ ...otherProps }) => {\n const isAuthenticated = useIsUnityAuthenticated();\n const user = useUser();\n const { t } = useTranslation();\n \n const userHasAccessToTenant = useMemo(() => {\n if (user?.tenantIds?.includes(user.currentTenantId)) {\n return true;\n }\n return false;\n }, [user]);\n\n if (!userHasAccessToTenant && isAuthenticated && user?.statusCode === 200) {\n return (\n <Route\n path='*'\n render={(props) => (\n <PageForbiddenRoute\n message={t('You do not have access to this tenant. Please select a different Tenant.')}\n showButton={false}\n />\n )}\n />\n );\n }\n\n if (isAuthenticated && user?.statusCode === 200) {\n return <Route {...otherProps} />;\n }\n\n return null;\n};\n","import React, { Suspense, lazy } from 'react';\nimport { Route, Switch } from 'react-router-dom';\nimport { PrivateRoute } from './PrivateRoute';\nimport { UdpPageEnums } from '../enums/pageEnums';\nimport { ConfigService } from 'udp-react-stencil-component-library';\nimport { PageLoading } from '../UI/feedback/PageLoading';\n\n// Lazy load route components\nconst VirtualBrowser = lazy(() =>\n import('../maintenanceEngine/virtualBrowser/VirtualBrowser')\n);\nconst MenuPage = lazy(() => import('../menuPage/MenuPage'));\nconst UdpPublicForm = lazy(() => import('../udp/pages/UdpPublicForm'));\nconst WorkflowContainer = lazy(() => import('../workflow/WorkflowContainer'));\nconst PasswordResetRedirect = lazy(() =>\n import('./components/PasswordResetRedirect')\n);\nconst MyExportsPage = lazy(() => import('../udp/export/MyExportsPage'));\nconst PageNotFoundRoute = lazy(() => import('./components/PageNotFoundRoute'));\nconst UdpMaintenanceConfigPage = lazy(() =>\n import('../udp/pages/UdpMaintenanceConfigPage')\n);\nconst UdpMaintenanceEnginePage = lazy(() =>\n import('../udp/pages/UdpMaintenanceEnginePage')\n);\n\nexport const UdpRoutes = (props) => {\n const { ...other } = props;\n return (\n <Suspense fallback={<PageLoading />}>\n <Switch>\n <PrivateRoute\n path='/virtual/:id'\n render={(props) => <VirtualBrowser {...props} {...other} />}\n />\n <PrivateRoute\n path='/menupage/:id'\n render={(props) => <MenuPage {...props} {...other} />}\n />\n\n <Route\n path={`/page/${UdpPageEnums.Udp_Public_Forms_Page}`}\n render={(props) => <UdpPublicForm {...props} {...other} />}\n />\n <Route\n path={`/passwordresetsuccess`}\n render={(props) => <PasswordResetRedirect props={props} />}\n />\n <PrivateRoute\n path='/workflowtask/:id'\n render={(props) => <WorkflowContainer {...props} {...other} />}\n />\n <PrivateRoute\n path='/myexports'\n render={(props) => (\n <MyExportsPage\n productId={ConfigService.config.UNITY_PRODUCT_ID}\n {...props}\n {...other}\n />\n )}\n />\n <PrivateRoute\n path='/crudbrowser'\n render={(props) => <UdpMaintenanceEnginePage {...props} />}\n />\n <PrivateRoute\n path='/tablebrowser'\n render={(props) => <UdpMaintenanceConfigPage {...props} />}\n />\n <PrivateRoute path='*' component={PageNotFoundRoute} />\n </Switch>\n </Suspense>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAKA,MAAM,YAAY,YAAY,WAAW,EACvC,MAAM,EACJ,WAAW,MAAM,QAAQ,EAAE,EAC5B,EACF,EAAE;AAEH,MAAa,sBAAsB,UAAU;CAC3C,MAAM,EAAE,OAAO,YAAY,WAAW,SAAS,eAAe;CAC9D,MAAM,UAAU,WAAW;CAC3B,MAAM,EAAE,MAAM,gBAAgB;AAE9B,QACE,oCAAC,SAAI,WAAW,QAAQ,QACtB,oCAAC;EACC,OAAO,SAAS,EAAE,iBAAiB;EACnC,YAAY,cAAc;EAC1B,WACE,aAAa,EAAE,uDAAuD;EAExE,SAAS,WAAW,EAAE,iDAAiD;EACvE,IAAG;EACH,aAAa,EAAE,oBAAoB;EACvB;GACZ,CACE;;;;;ACtBV,MAAa,gBAAgB,EAAE,GAAG,iBAAiB;CACjD,MAAM,kBAAkB,yBAAyB;CACjD,MAAM,OAAO,SAAS;CACtB,MAAM,EAAE,MAAM,gBAAgB;AAS9B,KAAI,CAP0B,cAAc;AAC1C,MAAI,MAAM,WAAW,SAAS,KAAK,gBAAgB,CACjD,QAAO;AAET,SAAO;IACN,CAAC,KAAK,CAAC,IAEoB,mBAAmB,MAAM,eAAe,IACpE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,oCAAC,0BAA6BA,QAAS;GAC1D,EACF,oCAAC;EACC,MAAK;EACL,SAAS,YAAU,oCAAC,0BAA6BA,QAAS;GAC1D,EACF,oCAAC;EAAa,MAAK;EAAI,WAAW;GAAqB,CAChD,CACA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"menuUtilities-CiOyxtX1.js","names":[],"sources":["../src/utilities/menus/menuUtilities.js"],"sourcesContent":["import * as Icons from '@fluentui/react-icons';\nimport { UdpPageEnums } from '../../enums/pageEnums';\nimport { isMobileOnly, isTablet, isDesktop } from 'react-device-detect';\nimport { DeviceTypeEnums } from '../../enums/unitySystemEnums';\n\nexport const getMenuItemsRecursively = (\n menuItems,\n activeOnly,\n user,\n getAccessToken,\n checkDeviceSize = true\n) => {\n return menuItems.reduce((formattedItems, item) => {\n try {\n if (activeOnly && !item.menuItemInstance.isActive) {\n return formattedItems;\n }\n const parameters = JSON.parse(item.menuItemInstance.parameters);\n const {\n FluentIcon,\n WorkFlowIcon,\n AppIcon,\n Label,\n Slug,\n RedirectURL,\n AppendTokenToURL,\n DevicesHiddenOn,\n appendCurrentTenant,\n ...otherParams\n } = parameters;\n let redirectInfo = '';\n if (RedirectURL) {\n redirectInfo = RedirectURL;\n if (appendCurrentTenant) {\n redirectInfo = `${RedirectURL}?tenantId=${\n user?.currentTenantId || ''\n }`;\n }\n }\n const formattedParameters = {\n id: item.menuItemInstance.menuItemInstanceId,\n label: Label ?? '',\n link: getFormattedSlug(Slug, { ...otherParams }) ?? '',\n redirectInfo: redirectInfo,\n getAccessToken:\n getAccessToken && AppendTokenToURL ? getAccessToken : null,\n menuItemId: item.menuItemInstance.menuItemId,\n menuStructureId: item.menuStructureId,\n parentId: item.parentId,\n productId: item.menuItemInstance.productId,\n isActive: item.menuItemInstance.isActive,\n roleIds: item.menuItemInstance.roleIds,\n tenantSsoId: item?.menuItemInstance?.tenantSsoId,\n devicesHiddenOn: DevicesHiddenOn || [],\n params: { ...otherParams }\n };\n\n let iconName = '';\n if (FluentIcon) {\n iconName = FluentIcon;\n } else if (WorkFlowIcon) {\n iconName = WorkFlowIcon;\n }\n formattedParameters.icon = iconName ? Icons[iconName] : null;\n formattedParameters.iconName = iconName ? iconName : null;\n\n formattedParameters['items'] = item.menuItemInstanceStructures.length\n ? getMenuItemsRecursively(\n item.menuItemInstanceStructures,\n activeOnly,\n user,\n getAccessToken,\n checkDeviceSize\n )\n : [];\n if (checkDeviceSize) {\n if (\n !(\n isDesktop &&\n formattedParameters?.devicesHiddenOn?.includes(\n DeviceTypeEnums.Desktop\n )\n ) &&\n !(\n isTablet &&\n formattedParameters?.devicesHiddenOn?.includes(\n DeviceTypeEnums.Tablet\n )\n ) &&\n !(\n isMobileOnly &&\n formattedParameters?.devicesHiddenOn?.includes(\n DeviceTypeEnums.Mobile\n )\n )\n ) {\n formattedItems.push(formattedParameters);\n }\n } else {\n formattedItems.push(formattedParameters);\n }\n } catch {\n // catching parse error\n }\n return formattedItems;\n }, []);\n};\n\nconst getFormattedSlug = (slug, params) => {\n let formattedSlug = slug;\n if (params?.PageId === UdpPageEnums.Udp_Maintenance_Engine_Page) {\n formattedSlug = `${slug}${\n params?.entityName ? `?entityName=${params?.entityName}` : ''\n }`;\n } else if (params?.PageId === UdpPageEnums.Udp_Data_Browser_Page) {\n formattedSlug = `${slug}?queryId=${params?.queryId}`;\n }\n\n return formattedSlug;\n};\n"],"mappings":";;;;;;AAKA,MAAa,2BACX,WACA,YACA,MACA,gBACA,kBAAkB,SACf;AACH,QAAO,UAAU,QAAQ,gBAAgB,SAAS;AAChD,MAAI;AACF,OAAI,cAAc,CAAC,KAAK,iBAAiB,SACvC,QAAO;GAGT,MAAM,EACJ,YACA,cACA,SACA,OACA,MACA,aACA,kBACA,iBACA,oBACA,GAAG,gBAXc,KAAK,MAAM,KAAK,iBAAiB,WAAW;GAa/D,IAAI,eAAe;AACnB,OAAI,aAAa;AACf,mBAAe;AACf,QAAI,oBACF,gBAAe,GAAG,YAAY,YAC5B,MAAM,mBA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