@dashadmin/dash-admin 1.3.72 → 1.3.74-srcfree.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (289) hide show
  1. package/dist/components/tenant/TenancyPlan.js +307 -0
  2. package/dist/systemResources.js +18 -2
  3. package/package.json +25 -22
  4. package/src/AppAsyncWrapper.tsx +0 -42
  5. package/src/AppWrapper.tsx +0 -45
  6. package/src/DASHAdmin.tsx +0 -502
  7. package/src/DASHAdmin.tsx.old +0 -456
  8. package/src/RoutingWrapper.tsx +0 -143
  9. package/src/classes/DASHStorageClass.tsx +0 -8
  10. package/src/components/Input/RichTextField.tsx +0 -27
  11. package/src/components/Redirect.tsx +0 -46
  12. package/src/components/avatar/Avatar.tsx +0 -71
  13. package/src/components/avatar/SingleImageUploader.tsx +0 -107
  14. package/src/components/currency/Format.tsx +0 -79
  15. package/src/components/custom/Redirect.tsx +0 -23
  16. package/src/components/error/Error.tsx +0 -168
  17. package/src/components/geocoding/GeocodingField.tsx +0 -167
  18. package/src/components/i18n/BridgedLocalesMenuButton.tsx +0 -160
  19. package/src/components/i18n/LangSwitcher.tsx +0 -204
  20. package/src/components/loader/GlobalLoader.tsx +0 -49
  21. package/src/components/logs/LogFile.tsx +0 -88
  22. package/src/components/logs/LogFileById.tsx +0 -68
  23. package/src/components/logs/LogViewer.tsx +0 -43
  24. package/src/components/menu/AppMenu.tsx +0 -22
  25. package/src/components/menu/CustomMenuItemLink.tsx +0 -61
  26. package/src/components/menu/DarkToggleMode.tsx +0 -65
  27. package/src/components/menu/LanguageToggleMode.tsx +0 -120
  28. package/src/components/misc/CustomImageInput.tsx +0 -62
  29. package/src/components/misc/DASHGlobalErrorHandler.tsx +0 -194
  30. package/src/components/misc/DarkModeSwitcher.tsx +0 -112
  31. package/src/components/misc/HorizontalScroller.tsx +0 -225
  32. package/src/components/misc/LanguageSwitcher.tsx +0 -199
  33. package/src/components/misc/MUIHtmlToolTip.tsx +0 -15
  34. package/src/components/misc/MuiSimpleJsonTable.tsx +0 -279
  35. package/src/components/misc/MultiLevelTable.tsx +0 -229
  36. package/src/components/misc/NoResults.tsx +0 -28
  37. package/src/components/misc/PDFViewer.tsx +0 -85
  38. package/src/components/navigation/Breadcrumbs.tsx +0 -220
  39. package/src/components/navigation/BreadcrumbsManager.tsx +0 -310
  40. package/src/components/navigation/index.tsx +0 -5
  41. package/src/components/panel/Error.tsx +0 -168
  42. package/src/components/permission/AvailablePermissionsContext.tsx +0 -173
  43. package/src/components/permission/PermissionsSelector.tsx +0 -834
  44. package/src/components/permission/PermissionsSelectorList.tsx +0 -473
  45. package/src/components/permission/tsx +0 -0
  46. package/src/components/racustombuttons/CustomRAButton.tsx +0 -87
  47. package/src/components/racustombuttons/QuickButton.tsx +0 -117
  48. package/src/components/racustombuttons/QuickEditButton.tsx +0 -115
  49. package/src/components/racustombuttons/QuickIconButton.tsx +0 -122
  50. package/src/components/scrollbar/Scrollbar.tsx +0 -31
  51. package/src/components/selects/MultiSelect.tsx +0 -53
  52. package/src/components/selects/RASearchableSelect.tsx +0 -282
  53. package/src/components/selects/RASearchableSelectChips.tsx +0 -308
  54. package/src/components/selects/SearchableSelect.tsx +0 -139
  55. package/src/components/serviceAccount/ApiKeyRevealDialog.tsx +0 -129
  56. package/src/components/serviceAccount/ServiceAccountStatusSwitch.tsx +0 -99
  57. package/src/components/subscription/BillingCycleSelectInput.tsx +0 -68
  58. package/src/components/subscription/PlanAddonsSettings.tsx +0 -563
  59. package/src/components/subscription/PlanAuditLog.tsx +0 -453
  60. package/src/components/subscription/PlanFeaturesSettings.tsx +0 -243
  61. package/src/components/subscription/PlanLimitsSettings.tsx +0 -230
  62. package/src/components/subscription/PlanMetadataSettings.tsx +0 -306
  63. package/src/components/subscription/PlanPricesSettings.tsx +0 -307
  64. package/src/components/subscription/index.ts +0 -7
  65. package/src/components/svgelements/SvgLoading.tsx +0 -229
  66. package/src/components/svgelements/SvgLogo.tsx +0 -53
  67. package/src/components/svgelements/SvgLogoMin.tsx +0 -64
  68. package/src/components/svgelements/SvgShipping.tsx +0 -673
  69. package/src/components/tenancy/GlobalTenantWrapper.tsx +0 -84
  70. package/src/components/tenancy/TenantSwitcher.tsx +0 -514
  71. package/src/components/tenant/AvailablePermissionsContext.tsx +0 -0
  72. package/src/components/tenant/SettingsSections.tsx +0 -151
  73. package/src/components/tenant/TenancySettings.tsx +0 -122
  74. package/src/components/tenant/TenantAttributes.tsx +0 -153
  75. package/src/components/tenant/TenantAttributesContext.tsx +0 -163
  76. package/src/components/tenant/TenantSelector.tsx +0 -142
  77. package/src/components/tenant/TenantSettings.tsx +0 -184
  78. package/src/components/tenant/TenantSettingsContext.tsx +0 -165
  79. package/src/components/tenant/TenantTheme.tsx +0 -172
  80. package/src/components/user/AvatarComponent.tsx +0 -317
  81. package/src/components/user/TenantAvatarComponent.tsx +0 -99
  82. package/src/components/user/UserPreferences.tsx +0 -677
  83. package/src/config/ACTIONS.tsx +0 -26
  84. package/src/config/ConstantsService.tsx +0 -44
  85. package/src/config/DASHAdminSystemConstants.tsx +0 -183
  86. package/src/config/PARSERS.tsx +0 -9
  87. package/src/contexts/DashQueryClientContext.tsx +0 -113
  88. package/src/contexts/DashResourceContext.tsx +0 -34
  89. package/src/contexts/I18nBridgeContext.tsx +0 -156
  90. package/src/contexts/I18nBridgeSetter.tsx +0 -39
  91. package/src/contexts/I18nReduxSync.tsx +0 -27
  92. package/src/contexts/SubscriptionPlanFormatsProvider.tsx +0 -217
  93. package/src/contexts/SystemRequestsCache.tsx +0 -215
  94. package/src/contexts/auth/AuthContext.tsx +0 -567
  95. package/src/contexts/auth/AuthContextLocalStorage.tsx +0 -140
  96. package/src/contexts/auth/DASHAuthenticationService.tsx +0 -915
  97. package/src/contexts/auth/WindowContext.tsx +0 -15
  98. package/src/contexts/auth/index.tsx +0 -3
  99. package/src/contexts/com/FCMContext.tsx +0 -415
  100. package/src/contexts/com/LaravelEchoContext.tsx +0 -41
  101. package/src/contexts/com/LaravelEchoMgr.tsx +0 -155
  102. package/src/contexts/com/components/DefaultNotificationComponent.tsx +0 -20
  103. package/src/contexts/com/components/EchoNotificationsCenter.tsx +0 -65
  104. package/src/contexts/com/components/NotificationAttributesTable.tsx +0 -54
  105. package/src/contexts/com/components/NotificationRenderer.tsx +0 -42
  106. package/src/contexts/com/components/NotificationsWidget.tsx +0 -182
  107. package/src/contexts/com/components/notificationFormats.tsx +0 -50
  108. package/src/contexts/com/useLaravelEcho.tsx +0 -432
  109. package/src/contexts/dictionary/DictionaryContext.tsx +0 -94
  110. package/src/declarations.d.ts +0 -17
  111. package/src/default-theme/DASHAppProviders.tsx +0 -117
  112. package/src/default-theme/DashThemeContext.tsx +0 -209
  113. package/src/default-theme/DashThemeContext.tsx.fast +0 -143
  114. package/src/default-theme/DashThemeContext.tsx.old +0 -306
  115. package/src/default-theme/DashThemeHelperProvider.tsx +0 -98
  116. package/src/default-theme/DomainAppLayout.tsx +0 -166
  117. package/src/default-theme/DomainHeader.tsx +0 -162
  118. package/src/default-theme/DomainTheme.tsx +0 -59
  119. package/src/default-theme/FullLayoutMarkup.tsx +0 -231
  120. package/src/default-theme/StaticLayout.tsx +0 -47
  121. package/src/default-theme/index.tsx +0 -11
  122. package/src/default-theme/menu/AppDashboardGrid.tsx +0 -279
  123. package/src/default-theme/menu/AppMaterialMenu.tsx +0 -546
  124. package/src/default-theme/menu/AppMenuComponents/SubmenuPortal.tsx +0 -61
  125. package/src/default-theme/menu/AppMenuComponents/collapsed/CollapsedSidebarItem.tsx +0 -264
  126. package/src/default-theme/menu/AppMenuComponents/collapsed/CollapsedSidebarItems.tsx +0 -31
  127. package/src/default-theme/menu/AppMenuComponents/expanded/CollapsableSidebarMenu.tsx +0 -293
  128. package/src/default-theme/menu/AppMenuComponents/expanded/SidebarItem.tsx +0 -92
  129. package/src/default-theme/menu/AppMenuComponents/getItem.tsx +0 -17
  130. package/src/default-theme/menu/AppMenuComponents/interfaces.tsx +0 -41
  131. package/src/default-theme/menu/AppMenuComponents/submenuConstants.ts +0 -90
  132. package/src/default-theme/menu/AppSidebarMaterial.tsx +0 -339
  133. package/src/default-theme/menu/SidebarActions.tsx +0 -84
  134. package/src/default-theme/updateDomCssVariables.tsx +0 -176
  135. package/src/helpers/checkRole.tsx +0 -66
  136. package/src/helpers/parseAxiosError.tsx +0 -41
  137. package/src/hooks/audio/useAudio.tsx +0 -39
  138. package/src/hooks/axios.tsx +0 -165
  139. package/src/hooks/data/useDashboardStats.tsx +0 -65
  140. package/src/hooks/data/usePackageByClientsStats.tsx +0 -44
  141. package/src/hooks/data/usePackageByCommunesStats.tsx +0 -44
  142. package/src/hooks/data/usePackageStats.tsx +0 -69
  143. package/src/hooks/data/usePackageWithdrawDetails.tsx +0 -61
  144. package/src/hooks/data/useStats.tsx +0 -86
  145. package/src/hooks/isCurrentPath.tsx +0 -22
  146. package/src/hooks/notifications/WSMessagesManager.tsx +0 -152
  147. package/src/hooks/notifications/WSPusherManager.tsx +0 -92
  148. package/src/hooks/useBreadcrumbs.tsx +0 -329
  149. package/src/hooks/useClickOutside.tsx +0 -57
  150. package/src/hooks/useFormPersistance.tsx +0 -150
  151. package/src/hooks/useGlobalErrorMediator.tsx +0 -43
  152. package/src/hooks/useGlobalLoaderMgr.tsx +0 -21
  153. package/src/hooks/useHash.tsx +0 -27
  154. package/src/hooks/useLocalStorage.tsx +0 -196
  155. package/src/hooks/usePolyglotTranslation.tsx +0 -62
  156. package/src/hooks/usePrevious.tsx +0 -9
  157. package/src/hooks/usePrintSelected.tsx +0 -37
  158. package/src/hooks/useVirtualHash.tsx +0 -33
  159. package/src/hooks/window/useWindowSize.tsx +0 -36
  160. package/src/index.tsx +0 -134
  161. package/src/interfaces/IAppResourceConfig.tsx +0 -20
  162. package/src/interfaces/Log.tsx +0 -16
  163. package/src/interfaces/Tenant.tsx +0 -25
  164. package/src/interfaces/communication/IActions.tsx +0 -5
  165. package/src/interfaces/communication/INotification.tsx +0 -21
  166. package/src/interfaces/communication/IPayload.tsx +0 -3
  167. package/src/interfaces/communication/IRequestAction.tsx +0 -10
  168. package/src/interfaces/communication/IRequestPayload.tsx +0 -7
  169. package/src/interfaces/communication/IResponseAction.tsx +0 -7
  170. package/src/interfaces/misc/IAny.tsx +0 -3
  171. package/src/interfaces/misc/IFlashMessage.tsx +0 -10
  172. package/src/interfaces/navigation/IAppMenu.ts +0 -14
  173. package/src/interfaces/navigation/ICollapsableSidebarMenu.ts +0 -12
  174. package/src/interfaces/navigation/IMenuItem.ts +0 -16
  175. package/src/interfaces/notifications/IModel.tsx +0 -6
  176. package/src/interfaces/notifications/IModelField.tsx +0 -8
  177. package/src/interfaces/notifications/IUserNotification.tsx +0 -12
  178. package/src/interfaces/notifications/IUserNotificationData.tsx +0 -13
  179. package/src/interfaces/notifications/IUserNotificationPayload.tsx +0 -8
  180. package/src/interfaces/user/IGetAuth.tsx +0 -92
  181. package/src/interfaces/user/ITenantSettings.tsx +0 -3
  182. package/src/interfaces/user/IUser.tsx +0 -60
  183. package/src/interfaces/user/IUserSettings.tsx +0 -43
  184. package/src/interfaces.tsx +0 -6
  185. package/src/layout/AppLayout.tsx +0 -112
  186. package/src/layout/ApplicationLayout.tsx +0 -197
  187. package/src/layout/MotionWrapper.original.tsx +0 -236
  188. package/src/layout/MotionWrapper.tsx +0 -236
  189. package/src/layout/ResourceMenu.tsx +0 -164
  190. package/src/layout/ResoureLayout.tsx +0 -105
  191. package/src/layout/TransitionWrapper.tsx +0 -125
  192. package/src/pages/ChangePassword.tsx +0 -179
  193. package/src/pages/DASHLanding.tsx +0 -22
  194. package/src/pages/DASHLightWeightLogin.tsx +0 -611
  195. package/src/pages/DASHSimpleLogin.tsx +0 -260
  196. package/src/pages/Login.tsx +0 -111
  197. package/src/pages/Profile.tsx +0 -357
  198. package/src/pages/RecoverPassword.tsx +0 -175
  199. package/src/pages/SingleImageUploader.tsx +0 -55
  200. package/src/pages/VerifyAccount.tsx +0 -128
  201. package/src/providers/authProvider.tsx +0 -217
  202. package/src/providers/dataProvider.tsx +0 -672
  203. package/src/providers/i18n/en.ts +0 -646
  204. package/src/providers/i18n/es.ts +0 -652
  205. package/src/providers/i18n/languages.tsx +0 -8
  206. package/src/providers/i18n/mergeTranslations.ts +0 -53
  207. package/src/providers/i18nProvider.tsx +0 -23
  208. package/src/react-admin-dash/RADashComponent.tsx +0 -240
  209. package/src/react-admin-dash/Resource.tsx +0 -77
  210. package/src/resources/Brand/BrandResource.tsx +0 -130
  211. package/src/resources/DASHResourceLoader.ts +0 -180
  212. package/src/resources/Log/LogResource.tsx +0 -73
  213. package/src/resources/Tenant/ImpersonateTenantResource.tsx +0 -113
  214. package/src/resources/Trash/TrashTemplate.tsx +0 -180
  215. package/src/resources/User/components/AvatarUploadField.tsx +0 -57
  216. package/src/resources/User/components/PasswordFields.tsx +0 -73
  217. package/src/resources/User/getProfileMenu.ts +0 -57
  218. package/src/resources/User/profileResource.tsx +0 -51
  219. package/src/resources/User/userLayout.tsx +0 -62
  220. package/src/resources/User/userResource.tsx +0 -111
  221. package/src/resources/User/userSchema.tsx +0 -213
  222. package/src/resources/User/usersFilters.tsx +0 -21
  223. package/src/resources.tsx +0 -280
  224. package/src/schemas/log.tsx +0 -45
  225. package/src/schemas/notification.tsx +0 -42
  226. package/src/schemas/permissions.tsx +0 -44
  227. package/src/schemas/roles.tsx +0 -48
  228. package/src/schemas/rolesDataGrid.tsx +0 -48
  229. package/src/schemas/subscription/components/SubscriptionActions.tsx +0 -153
  230. package/src/schemas/subscription/components/SubscriptionPaymentHistory.tsx +0 -127
  231. package/src/schemas/subscription/components/SubscriptionPlanFeatures.tsx +0 -162
  232. package/src/schemas/subscription/components/SubscriptionPlanPreview.tsx +0 -141
  233. package/src/schemas/subscription/components/SubscriptionPlanStats.tsx +0 -318
  234. package/src/schemas/subscription/components/SubscriptionStatusIndicator.tsx +0 -72
  235. package/src/schemas/subscription/subscriptionPlanSchema.tsx +0 -185
  236. package/src/schemas/subscription/subscriptionSchema.tsx +0 -152
  237. package/src/schemas/subscriptionPlan.ts +0 -422
  238. package/src/schemas/tenant.tsx +0 -129
  239. package/src/schemas/tenantUser.tsx +0 -96
  240. package/src/schemas/tenant_superadmin.tsx +0 -119
  241. package/src/schemas/user.tsx +0 -26
  242. package/src/systemResources.old.tsx +0 -928
  243. package/src/systemResources.tsx +0 -1369
  244. package/src/templates/ResourceTemplate.tsx +0 -240
  245. package/src/templates/ResourceTemplate.tsx.memoized_experiment +0 -350
  246. package/src/templates/ResourceTemplate.tsx.original +0 -396
  247. package/src/templates/ResourceTemplateCreate.tsx +0 -182
  248. package/src/templates/ResourceTemplateEdit.tsx +0 -176
  249. package/src/templates/ResourceTemplateFull.tsx +0 -581
  250. package/src/templates/ResourceTemplateList.tsx +0 -340
  251. package/src/templates/ResourceTemplateOld.tsx.bkup +0 -567
  252. package/src/templates/ResourceTemplateShow.tsx +0 -88
  253. package/src/templates/TrashTemplate.tsx +0 -179
  254. package/src/tenantResources.tsx +0 -223
  255. package/src/test_portal_bubbles.tsx +0 -40
  256. package/src/theme/AppHeader.tsx +0 -52
  257. package/src/theme/AppLayoutSetting.tsx +0 -33
  258. package/src/theme/AppLogo.tsx +0 -13
  259. package/src/theme/AppSidebar.tsx +0 -12
  260. package/src/theme/AppSidebarContent.tsx +0 -105
  261. package/src/theme/AppSidebarLogo.tsx +0 -48
  262. package/src/theme/components/PageTitle.tsx +0 -37
  263. package/src/utils/cache/CacheInvalidatorContext.tsx +0 -125
  264. package/src/utils/cache/CacheInvalidatorListenerComponent.tsx +0 -10
  265. package/src/utils/cache/useCacheInvalidatorListener.tsx +0 -27
  266. package/src/utils/convertFileToBase64.tsx +0 -9
  267. package/src/utils/convertToFile.tsx +0 -14
  268. package/src/utils/cookies.tsx +0 -33
  269. package/src/utils/dashDefaultQueryClient.tsx +0 -34
  270. package/src/utils/dataUrlToBlob.tsx +0 -30
  271. package/src/utils/deepReplace.tsx +0 -19
  272. package/src/utils/getProfileMenu.tsx +0 -41
  273. package/src/utils/getTenantSettings.tsx +0 -9
  274. package/src/utils/getType.tsx +0 -8
  275. package/src/utils/getUserSettings.tsx +0 -8
  276. package/src/utils/hasCode.tsx +0 -14
  277. package/src/utils/index.ts +0 -19
  278. package/src/utils/injectTenantStyles.ts +0 -28
  279. package/src/utils/isComponent.tsx +0 -45
  280. package/src/utils/navEvents.tsx +0 -91
  281. package/src/utils/prototypes.tsx +0 -5
  282. package/src/utils/regexp.tsx +0 -4
  283. package/src/utils/resolveObjectPath.tsx +0 -4
  284. package/src/utils/setNativeValue.tsx +0 -24
  285. package/src/utils/slugify.tsx +0 -11
  286. package/src/utils/validators/emailValidator.tsx +0 -6
  287. package/src/utils/validators/requiredValidator.tsx +0 -5
  288. package/src/utils/validators/rutValidator.tsx +0 -31
  289. package/src/utils/validators.tsx +0 -96
@@ -1,307 +0,0 @@
1
- import { IDashAutoAdminCustomFieldComponent } from "dash-auto-admin";
2
- import React, { useMemo } from "react";
3
- import { useRecordContext, useGetList, Loading } from "react-admin";
4
- import { useFormContext } from "react-hook-form";
5
- import {
6
- Box,
7
- TextField,
8
- Typography,
9
- InputAdornment,
10
- Paper,
11
- Table,
12
- TableBody,
13
- TableCell,
14
- TableContainer,
15
- TableHead,
16
- TableRow,
17
- Chip
18
- } from "@mui/material";
19
- import numeral from "numeral";
20
-
21
- /**
22
- * PlanPricesSettings Component
23
- *
24
- * A dynamic form component for managing subscription plan prices across multiple currencies.
25
- * Fetches available currencies from the system and renders input fields for each.
26
- *
27
- * The prices are stored as a JSON object: { "CLP": 29900, "USD": 33 }
28
- *
29
- * Usage:
30
- * - In edit/create mode: Renders price input fields for each available currency
31
- * - In view mode: Displays the prices as a formatted table
32
- */
33
-
34
- interface Currency {
35
- id: number;
36
- code: string;
37
- symbol: string;
38
- format: string;
39
- is_default?: boolean;
40
- }
41
-
42
- interface SubscriptionPlan {
43
- id?: number;
44
- name?: string;
45
- price?: number;
46
- prices?: Record<string, number>;
47
- [key: string]: any;
48
- }
49
-
50
- // ============ VIEW MODE ============
51
- const PlanPricesView: React.FC<IDashAutoAdminCustomFieldComponent> = () => {
52
- const plan: SubscriptionPlan = useRecordContext();
53
- const prices = plan?.prices;
54
-
55
- const { data: currencies, isLoading } = useGetList<Currency>(
56
- 'system/currency', // core "shared master data" — works for every domain, unlike ecommerce/currency (kitchntabs-backend-domain only)
57
- {
58
- pagination: { page: 1, perPage: 100 },
59
- sort: { field: 'code', order: 'ASC' },
60
- filter: { show_disabled: true } // Fetch all currencies including disabled ones
61
- },
62
- {
63
- staleTime: 5 * 60 * 1000, // 5 minutes cache
64
- refetchOnWindowFocus: false
65
- }
66
- );
67
-
68
- if (isLoading) return <Loading />;
69
-
70
- if (!prices || Object.keys(prices).length === 0) {
71
- return (
72
- <Typography variant="body2" sx={{
73
- color: "text.secondary"
74
- }}>No prices configured
75
- </Typography>
76
- );
77
- }
78
-
79
- return (
80
- <TableContainer component={Paper} variant="outlined" sx={{ maxWidth: 400 }}>
81
- <Table size="small">
82
- <TableHead>
83
- <TableRow>
84
- <TableCell>Currency</TableCell>
85
- <TableCell align="right">Price</TableCell>
86
- </TableRow>
87
- </TableHead>
88
- <TableBody>
89
- {Object.entries(prices).map(([code, value]) => {
90
- const currency = currencies?.find(c => c.code === code);
91
- const formattedValue = currency?.format
92
- ? numeral(value).format(currency.format)
93
- : value;
94
-
95
- return (
96
- <TableRow key={code}>
97
- <TableCell>
98
- <Box sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
99
- <Chip
100
- label={code}
101
- size="small"
102
- color={currency?.is_default ? 'primary' : 'default'}
103
- />
104
- {currency?.is_default && (
105
- <Typography variant="caption" sx={{
106
- color: "text.secondary"
107
- }}>
108
- (Default)
109
- </Typography>
110
- )}
111
- </Box>
112
- </TableCell>
113
- <TableCell align="right">
114
- <Typography variant="body2">
115
- {currency?.symbol}{formattedValue}
116
- </Typography>
117
- </TableCell>
118
- </TableRow>
119
- );
120
- })}
121
- </TableBody>
122
- </Table>
123
- </TableContainer>
124
- );
125
- };
126
-
127
- // ============ LIST MODE ============
128
- const PlanPricesList: React.FC<IDashAutoAdminCustomFieldComponent> = () => {
129
- const plan: SubscriptionPlan = useRecordContext();
130
- const prices = plan?.prices;
131
-
132
- if (!prices || Object.keys(prices).length === 0) {
133
- return (
134
- <Typography variant="body2" sx={{
135
- color: "text.secondary"
136
- }}>—</Typography>
137
- );
138
- }
139
-
140
- return (
141
- <Box sx={{ display: 'flex', gap: 0.5, flexWrap: 'wrap' }}>
142
- {Object.entries(prices).slice(0, 3).map(([code, value]) => (
143
- <Chip
144
- key={code}
145
- label={`${code}: ${value}`}
146
- size="small"
147
- variant="outlined"
148
- sx={{ fontSize: '11px' }}
149
- />
150
- ))}
151
- {Object.keys(prices).length > 3 && (
152
- <Chip
153
- label={`+${Object.keys(prices).length - 3}`}
154
- size="small"
155
- variant="outlined"
156
- sx={{ fontSize: '11px' }}
157
- />
158
- )}
159
- </Box>
160
- );
161
- };
162
-
163
- // ============ EDIT/CREATE MODE ============
164
- const PlanPricesEdit: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method }) => {
165
- const plan: SubscriptionPlan = useRecordContext();
166
- const formContext = useFormContext();
167
- const { register, setValue, watch } = formContext;
168
-
169
- // Fetch available currencies
170
- const { data: currencies, isLoading, error } = useGetList<Currency>(
171
- 'system/currency', // core "shared master data" — works for every domain, unlike ecommerce/currency (kitchntabs-backend-domain only)
172
- {
173
- pagination: { page: 1, perPage: 100 },
174
- sort: { field: 'code', order: 'ASC' },
175
- filter: { show_disabled: true } // Fetch all currencies including disabled ones
176
- },
177
- {
178
- staleTime: 5 * 60 * 1000,
179
- refetchOnWindowFocus: false
180
- }
181
- );
182
-
183
- // Watch the prices field for reactivity
184
- const watchedPrices = watch('prices');
185
-
186
- // Get current prices from record or form
187
- const currentPrices = useMemo(() => {
188
- if (watchedPrices && typeof watchedPrices === 'object') {
189
- return watchedPrices;
190
- }
191
- return plan?.prices || {};
192
- }, [watchedPrices, plan?.prices]);
193
-
194
- // Handle price change for a specific currency
195
- const handlePriceChange = (currencyCode: string, value: string) => {
196
- const numValue = value === '' ? null : parseInt(value, 10);
197
-
198
- const updatedPrices = {
199
- ...currentPrices,
200
- [currencyCode]: numValue
201
- };
202
-
203
- // Remove null/undefined values
204
- Object.keys(updatedPrices).forEach(key => {
205
- if (updatedPrices[key] === null || updatedPrices[key] === undefined) {
206
- delete updatedPrices[key];
207
- }
208
- });
209
-
210
- setValue('prices', updatedPrices, { shouldDirty: true });
211
- };
212
-
213
- if (isLoading) return <Loading />;
214
-
215
- if (error) {
216
- return (
217
- <Typography color="error">
218
- Error loading currencies: {error.message}
219
- </Typography>
220
- );
221
- }
222
-
223
- if (!currencies || currencies.length === 0) {
224
- return (
225
- <Typography variant="body2" sx={{
226
- color: "text.secondary"
227
- }}>No currencies available. Please configure currencies first.
228
- </Typography>
229
- );
230
- }
231
-
232
- return (
233
- <Box sx={{ display: 'flex', flexDirection: 'column', gap: 2 }}>
234
- <Typography variant="subtitle2" sx={{
235
- color: "text.secondary"
236
- }}>
237
- Set the price for each available currency (in cents/smallest unit)
238
- </Typography>
239
-
240
- {currencies.map((currency) => {
241
- const currentValue = currentPrices[currency.code] ?? '';
242
-
243
- return (
244
- <TextField
245
- key={currency.code}
246
- label={`${currency.code} Price${currency.is_default ? ' (Default)' : ''}`}
247
- type="number"
248
- value={currentValue}
249
- onChange={(e) => handlePriceChange(currency.code, e.target.value)}
250
- helperText={
251
- currency.format
252
- ? `Format: ${currency.format} • Example: ${currency.symbol}${numeral(29900).format(currency.format)}`
253
- : `Enter price in smallest unit (cents)`
254
- }
255
- fullWidth
256
- size="small"
257
- sx={{
258
- '& .MuiOutlinedInput-root': currency.is_default ? {
259
- borderColor: 'primary.main',
260
- '& fieldset': {
261
- borderWidth: 2,
262
- }
263
- } : {}
264
- }}
265
- slotProps={{
266
- input: {
267
- startAdornment: (
268
- <InputAdornment position="start">
269
- {currency.symbol}
270
- </InputAdornment>
271
- ),
272
- }
273
- }}
274
- />
275
- );
276
- })}
277
-
278
- {/* Hidden input to ensure prices gets submitted */}
279
- <input
280
- type="hidden"
281
- {...register('prices')}
282
- value={JSON.stringify(currentPrices)}
283
- />
284
- </Box>
285
- );
286
- };
287
-
288
- // ============ MAIN COMPONENT ============
289
- const PlanPricesSettings: React.FC<IDashAutoAdminCustomFieldComponent> = ({
290
- method,
291
- attribute,
292
- resourceConfig
293
- }) => {
294
- switch (method) {
295
- case "edit":
296
- case "create":
297
- return <PlanPricesEdit method={method} attribute={attribute} resourceConfig={resourceConfig} />;
298
- case "view":
299
- return <PlanPricesView method={method} attribute={attribute} resourceConfig={resourceConfig} />;
300
- case "list":
301
- return <PlanPricesList method={method} attribute={attribute} resourceConfig={resourceConfig} />;
302
- default:
303
- return null;
304
- }
305
- };
306
-
307
- export default PlanPricesSettings;
@@ -1,7 +0,0 @@
1
- export { default as PlanLimitsSettings } from './PlanLimitsSettings';
2
- export { default as PlanPricesSettings } from './PlanPricesSettings';
3
- export { default as PlanFeaturesSettings } from './PlanFeaturesSettings';
4
- export { default as PlanMetadataSettings } from './PlanMetadataSettings';
5
- export { default as PlanAddonsSettings } from './PlanAddonsSettings';
6
- // Note: PlanAuditLog is deprecated. Use the generic AuditLog from 'dash-components' instead.
7
- // export { default as PlanAuditLog } from './PlanAuditLog';
@@ -1,229 +0,0 @@
1
- import React from 'react';
2
-
3
- function Icon() {
4
- return (
5
- <svg
6
- xmlns='http://www.w3.org/2000/svg'
7
- width='150.244'
8
- height='142.391'
9
- viewBox='0 0 150.244 142.391'
10
- >
11
- <g data-name='Grupo 784' transform='translate(-663 -369)'>
12
- <g data-name='Grupo 694' transform='translate(-9263.156 83.407)'>
13
- <path
14
- fill='#ffb74d'
15
- d='M438.364 428.47c-2.071-11.082 1.189-23.69 10.25-30.4a51.943 51.943 0 0010.829 33.979c2.908 3.728 6.532 7.571 6.419 12.3a11.611 11.611 0 01-3.757 7.745 34.49 34.49 0 01-7.23 5.018l-.4.618c-7.475-8.437-14.04-18.178-16.111-29.26z'
16
- data-name='Trazado 547'
17
- transform='translate(9503.073 -112.264)'
18
- ></path>
19
- <path
20
- fill='#fff'
21
- d='M457.983 397.944a44.4 44.4 0 00-2.931 27.159 19.12 19.12 0 002.025 5.638 10.966 10.966 0 004.143 4.018 22.7 22.7 0 014.636 2.947 6.714 6.714 0 011.977 5.123 17.444 17.444 0 01-1.933 6.671c-1.068 2.348-2.214 4.771-2.145 7.411.008.32-.488.314-.5-.005-.12-4.594 3.2-8.283 3.941-12.69a6.8 6.8 0 00-1.373-5.824 17.609 17.609 0 00-4.65-3.082 11.7 11.7 0 01-4.2-3.778 17.678 17.678 0 01-2.234-5.539 43.074 43.074 0 01-.976-13.427 45.186 45.186 0 013.789-14.873c.13-.291.556-.034.426.255z'
22
- data-name='Trazado 548'
23
- transform='translate(9493.87 -111.968)'
24
- ></path>
25
- <path
26
- fill='#fff'
27
- d='M445.537 448.809a6.661 6.661 0 01-6.949-5.109c-.073-.311.408-.439.48-.127a6.168 6.168 0 006.474 4.739c.319-.023.312.473-.005.497z'
28
- data-name='Trazado 549'
29
- transform='translate(9502.601 -138.58)'
30
- ></path>
31
- <path
32
- fill='#fff'
33
- d='M469.6 472.917a12.839 12.839 0 003.218-8.786c-.007-.32.49-.314.5.005a13.354 13.354 0 01-3.367 9.136c-.217.24-.563-.117-.351-.355z'
34
- data-name='Trazado 550'
35
- transform='translate(9484.627 -150.483)'
36
- ></path>
37
- <path
38
- fill='#fff'
39
- d='M455.987 419.964a3.77 3.77 0 003.349-1.258c.21-.242.556.115.348.355a4.225 4.225 0 01-3.7 1.4.257.257 0 01-.246-.251.25.25 0 01.251-.246z'
40
- data-name='Trazado 551'
41
- transform='translate(9492.639 -124.199)'
42
- ></path>
43
- <path
44
- fill='#ffb74d'
45
- d='M508.279 419.929c-.127.155-.253.31-.379.468a49.658 49.658 0 00-4.545 6.65c-.106.179-.21.362-.311.544a52.348 52.348 0 00-6.108 18.279 50.841 50.841 0 00-.466 7.71c.056 3.56.4 7.416-.691 10.691a8.722 8.722 0 01-.393 1.005l-17.513 5.58-.138-.018-.689.255c-.011-.133-.02-.271-.032-.4-.007-.077-.01-.155-.017-.232 0-.052-.007-.1-.013-.15v-.048c-.006-.047-.007-.09-.011-.133-.052-.771-.1-1.544-.14-2.319v-.009a74.749 74.749 0 01.98-17.645c.033-.173.064-.351.105-.526a48.509 48.509 0 012.145-7.62 42.9 42.9 0 011.729-3.98 35.66 35.66 0 016.474-9.078c5.225-5.318 12.092-8.905 19.45-9.018.184-.005.373-.007.563-.006z'
46
- data-name='Trazado 552'
47
- transform='translate(9480.463 -124.956)'
48
- ></path>
49
- <path
50
- fill='#fff'
51
- d='M508.687 419.809A44.4 44.4 0 00490 439.729a19.12 19.12 0 00-1.778 5.721 10.965 10.965 0 00.888 5.7 22.7 22.7 0 011.927 5.145 6.714 6.714 0 01-1.506 5.281 17.446 17.446 0 01-5.557 4.16c-2.266 1.232-4.64 2.476-6.175 4.626-.186.26-.579-.043-.394-.3 2.669-3.74 7.542-4.686 10.787-7.76a6.8 6.8 0 002.41-5.477 17.609 17.609 0 00-1.857-5.26 11.7 11.7 0 01-1.076-5.543 17.675 17.675 0 011.551-5.768 43.074 43.074 0 017.3-11.309 45.186 45.186 0 0111.979-9.594c.279-.154.464.307.187.461z'
52
- data-name='Trazado 553'
53
- transform='translate(9480.088 -124.6)'
54
- ></path>
55
- <path
56
- fill='#fff'
57
- d='M505.974 449.686a6.661 6.661 0 01-2.473-8.263c.129-.292.59-.1.46.188a6.168 6.168 0 002.316 7.682c.269.173-.036.565-.3.394z'
58
- data-name='Trazado 554'
59
- transform='translate(9465.23 -137.35)'
60
- ></path>
61
- <path
62
- fill='#fff'
63
- d='M503.966 486.142a12.839 12.839 0 007.859-5.077c.187-.26.58.044.394.3a13.355 13.355 0 01-8.189 5.267c-.315.068-.377-.432-.064-.49z'
64
- data-name='Trazado 555'
65
- transform='translate(9464.754 -160.395)'
66
- ></path>
67
- <path
68
- fill='#fff'
69
- d='M531.323 434.422a3.771 3.771 0 003.432 1.013c.313-.067.375.426.064.493a4.225 4.225 0 01-3.8-1.112.257.257 0 01-.045-.348.25.25 0 01.348-.045z'
70
- data-name='Trazado 556'
71
- transform='translate(9448.979 -133.341)'
72
- ></path>
73
- <path
74
- fill='#fff'
75
- d='M502.806 522.474a3.969 3.969 0 00-3.332-3.892l-56.956-9.353a3.969 3.969 0 00-1.641.073l-13.348 3.451-7.659 1.983-14.134 3.654a3.982 3.982 0 00-2.981 3.852v59.682a4 4 0 003.15 3.889l58.013-.657a3.865 3.865 0 00.829.086 3.972 3.972 0 001.2-.182l34.467.858a3.962 3.962 0 002.782-3.826z'
76
- data-name='Trazado 568'
77
- transform='translate(9523.4 -176.776)'
78
- ></path>
79
- <path
80
- fill='#ccc'
81
- d='M502.806 522.474a3.969 3.969 0 00-3.332-3.892l-56.956-9.353a3.969 3.969 0 00-1.641.073l-13.348 3.451-7.659 1.983-14.134 3.654a3.982 3.982 0 00-2.981 3.852v59.682a4 4 0 003.15 3.889l58.013-.657a3.865 3.865 0 00.829.086 3.972 3.972 0 001.2-.182l34.467.858a3.962 3.962 0 002.782-3.826zm-2.692 62.495l-34.467.82a3.025 3.025 0 01-1.518.073l-58.016-1.021a3 3 0 01-2.361-2.918v-59.681a2.987 2.987 0 011.956-2.8 2.468 2.468 0 01.278-.086l14.953-3.866 8.842-2.288 11.345-2.934a2.844 2.844 0 01.746-.1 2.95 2.95 0 01.484.04l56.956 9.353a2.969 2.969 0 012.5 2.917l.388 59.622a2.973 2.973 0 01-2.087 2.869z'
82
- data-name='Trazado 569'
83
- transform='translate(9523.4 -176.776)'
84
- ></path>
85
- <path
86
- fill='#ccc'
87
- d='M503.084 535.03a.431.431 0 01-.126.056l-16.758 4.529-5.215 1.409-14.833 4.008a.574.574 0 01-.129.017.827.827 0 01-.089-.007l-59.81-10.9-.2-.036a.5.5 0 11.179-.981l1.2.219 58.7 10.7 12.784-3.455 7.151-1.933 16.494-4.459.262-.07a.5.5 0 01.58.272.39.39 0 01.03.08.5.5 0 01-.22.551z'
88
- data-name='Trazado 570'
89
- transform='translate(9521.796 -190.674)'
90
- ></path>
91
- <path
92
- fill='#ccc'
93
- d='M549.614 614.407c-.273 0-.495-.22-.5 1.185l-.5-54.207c0-1.952.218-2.177.493-2.179.273 0 .495.219.5 2.17l.5 54.207c0-1.4-.218-1.178-.493-1.176z'
94
- data-name='Trazado 571'
95
- transform='translate(9438.707 -205.824)'
96
- ></path>
97
- <path
98
- fill='#ccc'
99
- d='M508.437 590.941l-5.356.057-2.2-59.356-56.081-11.159a1.284 1.284 0 01-.162-.04 1.977 1.977 0 01-1.068-.753l7.659-1.983 2.251.448 53.219 10.586a1.978 1.978 0 011.339.968c.162.291.396 60.891.399 61.232z'
100
- data-name='Trazado 572'
101
- transform='translate(9499.705 -181.73)'
102
- ></path>
103
- <g data-name='Grupo 693' transform='translate(10000.705 365.536)'>
104
- <path
105
- fill='#ffb6b6'
106
- d='M624.941 270.06a5.027 5.027 0 00-.114.784l-20.534 11.846-4.991-2.873-5.321 6.966 8.341 5.945a3.824 3.824 0 004.588-.112l21.174-16.7a5.018 5.018 0 10-3.143-5.851z'
107
- data-name='Trazado 557'
108
- transform='translate(-589.857 -262.724)'
109
- ></path>
110
- <path
111
- fill='#fff'
112
- d='M521.048 267.951a2.991 2.991 0 012.511-2.933l42.925-7.049a2.991 2.991 0 011.237.055l10.06 2.6 5.772 1.494 10.652 2.754a3 3 0 012.246 2.9v35.181a3.014 3.014 0 01-2.374 2.931l-43.722 9.3a2.912 2.912 0 01-.625.065 2.994 2.994 0 01-.9-.137l-25.976-8.2a2.986 2.986 0 01-2.1-2.883z'
113
- data-name='Trazado 573'
114
- transform='translate(-520.755 -257.928)'
115
- ></path>
116
- <path
117
- fill='#ff9800'
118
- d='M570.6 264.184a.362.362 0 01.093.012l26.484 6.849a.374.374 0 01.281.362v35.181a.376.376 0 01-.3.366l-43.722 9.3a.377.377 0 01-.191-.009l-25.977-8.2a.372.372 0 01-.261-.36l.293-36.085a.374.374 0 01.314-.366l42.925-7.048a.4.4 0 01.061-.002z'
119
- data-name='Trazado 574'
120
- transform='translate(-524.387 -261.561)'
121
- ></path>
122
- <path
123
- fill='#3f3d56'
124
- d='M521.048 267.951a2.991 2.991 0 012.511-2.933l42.925-7.049a2.991 2.991 0 011.237.055l10.06 2.6 5.772 1.494 10.652 2.754a3 3 0 012.246 2.9v35.181a3.014 3.014 0 01-2.374 2.931l-43.722 9.3a2.912 2.912 0 01-.625.065 2.994 2.994 0 01-.9-.137l-25.976-8.2a2.986 2.986 0 01-2.1-2.883zm2.029 38.25l25.976 8.2a2.28 2.28 0 001.144.055l43.724-9.3a2.261 2.261 0 001.779-2.2v-35.18a2.252 2.252 0 00-1.474-2.111 1.872 1.872 0 00-.21-.065l-11.269-2.913-6.664-1.724-8.551-2.211a2.143 2.143 0 00-.562-.072 2.223 2.223 0 00-.365.03l-42.925 7.049a2.237 2.237 0 00-1.884 2.2l-.292 36.081a2.241 2.241 0 001.572 2.164z'
125
- data-name='Trazado 575'
126
- transform='translate(-520.755 -257.928)'
127
- ></path>
128
- <path
129
- fill='#3f3d56'
130
- d='M523.021 277.413a.326.326 0 00.095.042l12.626 3.413 3.93 1.062 11.179 3.021a.434.434 0 00.1.012.607.607 0 00.068 0l45.076-8.218.15-.027a.376.376 0 00-.135-.74l-.907.165-44.239 8.057-9.635-2.6-5.39-1.457-12.431-3.361-.2-.052a.377.377 0 00-.437.2.3.3 0 00-.022.06.376.376 0 00.172.423z'
131
- data-name='Trazado 576'
132
- transform='translate(-521.729 -268.402)'
133
- ></path>
134
- <path
135
- fill='#3f3d56'
136
- d='M631.06 337.236a.375.375 0 00.375-.371l.375-40.853a.375.375 0 00-.371-.378.375.375 0 00-.375.371l-.375 40.853a.375.375 0 00.371.378z'
137
- data-name='Trazado 577'
138
- transform='translate(-602.215 -279.821)'
139
- ></path>
140
- <path
141
- fill='#3f3d56'
142
- d='M551.513 314.106l3.93 1.062 1.657-40.309 42.27-8.411a.968.968 0 00.122-.03 1.491 1.491 0 00.8-.567l-5.772-1.494-1.7.337-40.109 7.978a1.491 1.491 0 00-1.009.73c-.117.218-.187 40.444-.189 40.704z'
143
- data-name='Trazado 578'
144
- transform='translate(-537.5 -261.661)'
145
- ></path>
146
- <path
147
- fill='#fff'
148
- d='M531.384 335.031a.632.632 0 00.139-.016l13-2.936a.629.629 0 00-.277-1.227l-13 2.936a.629.629 0 00.138 1.243z'
149
- data-name='Trazado 583'
150
- transform='translate(-473.512 -300.262)'
151
- ></path>
152
- </g>
153
- <g data-name='Grupo 684' transform='translate(9952.387 370.569)'>
154
- <path
155
- fill='#ffb6b6'
156
- d='M603.884 270.06a5.041 5.041 0 01.114.784l20.534 11.846 4.991-2.873 5.321 6.966-8.341 5.945a3.824 3.824 0 01-4.588-.112l-21.174-16.7a5.018 5.018 0 113.143-5.851z'
157
- data-name='Trazado 557'
158
- transform='translate(-563.273 -262.724)'
159
- ></path>
160
- <path
161
- fill='#fff'
162
- d='M596.158 267.951a2.991 2.991 0 00-2.511-2.933l-42.925-7.049a2.992 2.992 0 00-1.237.055l-10.06 2.6-5.772 1.494L523 264.872a3 3 0 00-2.246 2.9v35.181a3.014 3.014 0 002.374 2.931l43.722 9.3a2.91 2.91 0 00.625.065 2.993 2.993 0 00.9-.137l25.976-8.2a2.986 2.986 0 002.1-2.883z'
163
- data-name='Trazado 573'
164
- transform='translate(-520.755 -257.928)'
165
- ></path>
166
- <path
167
- fill='#ff9800'
168
- d='M553.869 264.184a.362.362 0 00-.093.012l-26.484 6.849a.374.374 0 00-.28.362v35.181a.376.376 0 00.3.366l43.722 9.3a.378.378 0 00.191-.009l25.977-8.2a.372.372 0 00.261-.36l-.291-36.081a.374.374 0 00-.314-.366l-42.924-7.048a.394.394 0 00-.065-.006z'
169
- data-name='Trazado 574'
170
- transform='translate(-524.388 -261.561)'
171
- ></path>
172
- <path
173
- fill='#3f3d56'
174
- d='M596.158 267.951a2.991 2.991 0 00-2.511-2.933l-42.925-7.049a2.992 2.992 0 00-1.237.055l-10.06 2.6-5.772 1.494L523 264.872a3 3 0 00-2.246 2.9v35.181a3.014 3.014 0 002.374 2.931l43.722 9.3a2.91 2.91 0 00.625.065 2.993 2.993 0 00.9-.137l25.976-8.2a2.986 2.986 0 002.1-2.883zM594.13 306.2l-25.976 8.2a2.28 2.28 0 01-1.144.055l-43.724-9.3a2.261 2.261 0 01-1.779-2.2v-35.179a2.251 2.251 0 011.474-2.111 1.866 1.866 0 01.21-.065l11.269-2.913 6.664-1.724 8.551-2.211a2.142 2.142 0 01.562-.072 2.223 2.223 0 01.365.03l42.925 7.049a2.237 2.237 0 011.884 2.2l.292 36.081a2.241 2.241 0 01-1.572 2.164z'
175
- data-name='Trazado 575'
176
- transform='translate(-520.755 -257.928)'
177
- ></path>
178
- <path
179
- fill='#3f3d56'
180
- d='M596.368 277.413a.326.326 0 01-.095.042l-12.626 3.413-3.93 1.062-11.179 3.021a.436.436 0 01-.1.012.607.607 0 01-.067 0L523.3 276.74l-.15-.027a.376.376 0 11.135-.74l.907.165 44.236 8.066 9.635-2.6 5.39-1.457 12.431-3.361.2-.052a.377.377 0 01.437.2.293.293 0 01.022.06.376.376 0 01-.175.419z'
181
- data-name='Trazado 576'
182
- transform='translate(-521.965 -268.402)'
183
- ></path>
184
- <path
185
- fill='#3f3d56'
186
- d='M631.435 337.236a.375.375 0 01-.375-.371l-.375-40.853a.375.375 0 01.371-.378.375.375 0 01.375.371l.375 40.853a.375.375 0 01-.371.378z'
187
- data-name='Trazado 577'
188
- transform='translate(-584.585 -279.821)'
189
- ></path>
190
- <path
191
- fill='#3f3d56'
192
- d='M600.3 314.106l-3.93 1.062-1.657-40.309-42.27-8.411a.97.97 0 01-.122-.03 1.49 1.49 0 01-.8-.567l5.772-1.494 1.7.337 40.109 7.978a1.491 1.491 0 011.01.73c.112.218.182 40.444.188 40.704z'
193
- data-name='Trazado 578'
194
- transform='translate(-538.614 -261.661)'
195
- ></path>
196
- <path
197
- fill='#fff'
198
- d='M544.385 335.031a.632.632 0 01-.139-.016l-13-2.936a.629.629 0 01.277-1.227l13 2.936a.629.629 0 01-.138 1.243z'
199
- data-name='Trazado 583'
200
- transform='translate(-526.562 -300.262)'
201
- ></path>
202
- </g>
203
- <path
204
- fill='#e6e6e6'
205
- d='M424.452 620.539a.63.63 0 01-.139.013l-13.326-.224a.629.629 0 01.021-1.258l13.326.224a.629.629 0 01.118 1.245z'
206
- data-name='Trazado 584'
207
- transform='translate(9518.98 -240.584)'
208
- ></path>
209
- <path
210
- fill='#e6e6e6'
211
- d='M435.451 637.539a.629.629 0 01-.139.013l-13.326-.224a.629.629 0 11.021-1.258l13.326.224a.629.629 0 01.118 1.245z'
212
- data-name='Trazado 585'
213
- transform='translate(9512.594 -250.455)'
214
- ></path>
215
- </g>
216
- <g data-name='MDI / progress-upload' transform='translate(762.124 390)'>
217
- <path
218
- fill='#ff9800'
219
- d='M22.925 2.03a19.064 19.064 0 010 37.937v-3.813a15.251 15.251 0 000-30.273V2.03m-3.813.057V5.9a15.242 15.242 0 00-7.435 3.2L8.951 6.281a18.735 18.735 0 0110.161-4.194M6.263 8.969L8.989 11.7a15.283 15.283 0 00-3.126 7.43H2.05A18.844 18.844 0 016.263 8.969M2.069 22.943h3.813a15.255 15.255 0 003.107 7.435L6.282 33.1a19.139 19.139 0 01-4.213-10.157m9.608 10.237a15.255 15.255 0 007.435 3.107V40.1a19.052 19.052 0 01-10.161-4.308l2.726-2.612m9.341-20.722l-8.578 8.579h6.672v7.625h3.813v-7.625H29.6z'
220
- data-name='Path / progress-upload'
221
- transform='translate(1.763 1.784)'
222
- ></path>
223
- </g>
224
- </g>
225
- </svg>
226
- );
227
- }
228
-
229
- export default Icon;
@@ -1,53 +0,0 @@
1
- import React from 'react';
2
-
3
- function SvgLogo() {
4
- return (
5
- <svg
6
- xmlns='http://www.w3.org/2000/svg'
7
- width='536'
8
- height='92'
9
- viewBox='0 0 536 92'
10
- >
11
- <g
12
- id='Grupo_749'
13
- data-name='Grupo 749'
14
- transform='translate(-1358 -1489)'
15
- >
16
- <rect
17
- id='Rectángulo_429'
18
- data-name='Rectángulo 429'
19
- width='536'
20
- height='92'
21
- transform='translate(1358 1489)'
22
- fill='#222641'
23
- ></rect>
24
- <g id='Grupo_748' data-name='Grupo 748'>
25
- <rect
26
- id='Rectángulo_430'
27
- data-name='Rectángulo 430'
28
- width='263'
29
- height='92'
30
- transform='translate(1358 1489)'
31
- fill='#fff'
32
- ></rect>
33
- <path
34
- id='Trazado_647'
35
- data-name='Trazado 647'
36
- d='M4.565,0H14.52C25.19,0,31.79-6.16,31.79-18.15c0-11.935-6.6-17.82-17.6-17.82H4.565ZM11.11-5.28V-30.635h2.64c7.15,0,11.275,3.685,11.275,12.485C25.025-9.3,20.9-5.28,13.75-5.28ZM69.308.66A14.428,14.428,0,0,0,80.693-4.565L77.173-8.47a9.817,9.817,0,0,1-7.59,3.465c-6,0-9.79-4.95-9.79-13.035,0-8.03,4.18-12.87,9.9-12.87a9.336,9.336,0,0,1,6.82,2.86l3.465-4.015A14.075,14.075,0,0,0,69.583-36.63c-9.13,0-16.5,6.985-16.5,18.755C53.083-5.94,60.288.66,69.308.66ZM102.646,0h6.545V-35.97h-6.545ZM148.58.66a14.428,14.428,0,0,0,11.385-5.225l-3.52-3.905a9.817,9.817,0,0,1-7.59,3.465c-5.995,0-9.79-4.95-9.79-13.035,0-8.03,4.18-12.87,9.9-12.87a9.336,9.336,0,0,1,6.82,2.86l3.465-4.015a14.075,14.075,0,0,0-10.4-4.565c-9.13,0-16.5,6.985-16.5,18.755C132.355-5.94,139.56.66,148.58.66Z'
37
- transform='translate(1378 1556)'
38
- fill='#242943'
39
- ></path>
40
- <path
41
- id='Trazado_646'
42
- data-name='Trazado 646'
43
- d='M20.185.66A17.477,17.477,0,0,0,32.12-3.685V-20.4H18.81v6.985h5.72v5.775a5.943,5.943,0,0,1-3.41.935c-6.655,0-9.9-4.125-9.9-11.275,0-6.93,3.85-11.11,9.13-11.11A9.008,9.008,0,0,1,27-26.62l4.51-5.17a15.349,15.349,0,0,0-11.44-4.675c-9.57,0-17.6,6.875-17.6,18.81C2.475-5.555,10.285.66,20.185.66ZM54.34,0h8.58V-12.6H67.1L73.7,0h9.57L75.295-14.19c3.685-1.76,6.16-5.115,6.16-10.34,0-8.635-6.38-11.275-13.97-11.275H54.34Zm8.58-19.36v-9.68h3.9c4.07,0,6.27,1.1,6.27,4.51s-2.2,5.17-6.27,5.17ZM118.085.66c9.735,0,16.39-6.985,16.39-18.7s-6.655-18.425-16.39-18.425-16.39,6.655-16.39,18.425C101.695-6.325,108.35.66,118.085.66Zm0-7.37c-4.675,0-7.645-4.4-7.645-11.33,0-6.985,2.97-11.055,7.645-11.055,4.73,0,7.645,4.07,7.645,11.055C125.73-11.11,122.815-6.71,118.085-6.71ZM170.445.66c9.515,0,14.3-5.39,14.3-17.49V-35.805h-8.2V-15.9c0,6.82-2.145,9.185-6.1,9.185-3.9,0-5.94-2.365-5.94-9.185v-19.91H155.98V-16.83C155.98-4.73,160.93.66,170.445.66Zm37.4-.66h8.58V-11.88h4.235c7.535,0,14.08-3.74,14.08-12.32,0-8.8-6.435-11.6-14.3-11.6h-12.6Zm8.58-18.645v-10.4h3.52c4.18,0,6.435,1.265,6.435,4.84s-1.98,5.555-6.215,5.555Z'
44
- transform='translate(1634 1556)'
45
- fill='#fffeff'
46
- ></path>
47
- </g>
48
- </g>
49
- </svg>
50
- );
51
- }
52
-
53
- export default SvgLogo;
@@ -1,64 +0,0 @@
1
- import React from 'react';
2
-
3
- function SvgLogo() {
4
- return (
5
- <svg xmlns='http://www.w3.org/2000/svg' width='80' viewBox='0 0 199 92'>
6
- <defs>
7
- <clipPath id='clipPath'>
8
- <rect
9
- id='Rectángulo_1'
10
- data-name='Rectángulo 1'
11
- width='199'
12
- height='92'
13
- transform='translate(179 398)'
14
- fill='#fff'
15
- stroke='#707070'
16
- strokeWidth='1'
17
- opacity='0.432'
18
- />
19
- </clipPath>
20
- </defs>
21
- <g
22
- id='Enmascarar_grupo_1'
23
- data-name='Enmascarar grupo 1'
24
- transform='translate(-179 -398)'
25
- clipPath='url(#clipPath)'
26
- >
27
- <g id='Grupo_749' data-name='Grupo 749' transform='translate(179 398)'>
28
- <rect
29
- id='Rectángulo_429'
30
- data-name='Rectángulo 429'
31
- width='531'
32
- height='92'
33
- fill='#222641'
34
- />
35
- <g id='Grupo_748' data-name='Grupo 748'>
36
- <rect
37
- id='Rectángulo_430'
38
- data-name='Rectángulo 430'
39
- width='260'
40
- height='92'
41
- fill='#fff'
42
- />
43
- <path
44
- id='Trazado_647'
45
- data-name='Trazado 647'
46
- d='M4.565,0h9.853C24.979,0,31.511-6.16,31.511-18.15c0-11.935-6.532-17.82-17.42-17.82H4.565Zm6.478-5.28V-30.635h2.613c7.077,0,11.159,3.685,11.159,12.485,0,8.85-4.083,12.87-11.159,12.87ZM68.644.66A14.22,14.22,0,0,0,79.913-4.565l-3.484-3.9a9.675,9.675,0,0,1-7.512,3.465c-5.938,0-9.69-4.95-9.69-13.035,0-8.03,4.137-12.87,9.8-12.87a9.194,9.194,0,0,1,6.75,2.86l3.429-4.015A13.866,13.866,0,0,0,68.917-36.63c-9.036,0-16.331,6.985-16.331,18.755C52.586-5.94,59.717.66,68.644.66Zm33-.66h6.478V-35.97h-6.478ZM147.1.66a14.22,14.22,0,0,0,11.268-5.225l-3.484-3.9a9.675,9.675,0,0,1-7.512,3.465c-5.934,0-9.69-4.95-9.69-13.035,0-8.03,4.137-12.87,9.8-12.87a9.194,9.194,0,0,1,6.75,2.86l3.429-4.015a13.866,13.866,0,0,0-10.293-4.565c-9.036,0-16.331,6.985-16.331,18.755C131.045-5.94,138.176.66,147.1.66Z'
47
- transform='translate(19.748 67)'
48
- fill='#242943'
49
- />
50
- <path
51
- id='Trazado_646'
52
- data-name='Trazado 646'
53
- d='M20,.66A17.192,17.192,0,0,0,31.816-3.685V-20.4H18.643v6.985H24.3V-7.64a5.837,5.837,0,0,1-3.375.935c-6.587,0-9.8-4.125-9.8-11.275,0-6.93,3.811-11.11,9.036-11.11a8.863,8.863,0,0,1,6.582,2.47l4.464-5.17A15.113,15.113,0,0,0,19.89-36.465c-9.472,0-17.42,6.875-17.42,18.81C2.475-5.555,10.2.66,20,.66ZM53.808,0H62.3V-12.6h4.137L72.97,0h9.472L74.549-14.19c3.647-1.76,6.1-5.115,6.1-10.34,0-8.635-6.315-11.275-13.827-11.275H53.808ZM62.3-19.36v-9.68h3.86c4.028,0,6.206,1.1,6.206,4.51s-2.177,5.17-6.206,5.17ZM116.9.66c9.635,0,16.222-6.985,16.222-18.7S126.535-36.465,116.9-36.465,100.678-29.81,100.678-18.04C100.678-6.325,107.265.66,116.9.66Zm0-7.37c-4.627,0-7.567-4.4-7.567-11.33,0-6.985,2.94-11.055,7.567-11.055,4.682,0,7.567,4.07,7.567,11.055C124.467-11.11,121.581-6.71,116.9-6.71ZM168.723.66c9.417,0,14.153-5.39,14.153-17.49V-35.805h-8.116V-15.9c0,6.82-2.123,9.185-6.037,9.185-3.86,0-5.879-2.365-5.879-9.185V-35.81h-8.438v18.98C154.407-4.73,159.306.66,168.723.66ZM205.74,0h8.492V-11.88h4.192c7.458,0,13.936-3.74,13.936-12.32,0-8.8-6.369-11.6-14.153-11.6H205.735Zm8.492-18.645v-10.4h3.484c4.137,0,6.369,1.265,6.369,4.84s-1.96,5.555-6.151,5.555Z'
54
- transform='translate(273.146 67)'
55
- fill='#fffeff'
56
- />
57
- </g>
58
- </g>
59
- </g>
60
- </svg>
61
- );
62
- }
63
-
64
- export default SvgLogo;