@admin-layout/tailwind-design-pro 12.0.16-alpha.6 → 12.0.16-alpha.61
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/README.md +30 -0
- package/lib/cdm-locales/en/menu.json +2 -1
- package/lib/cdm-locales/es/menu.json +2 -1
- package/lib/cdm-locales/index.d.ts +2 -0
- package/lib/cdm-locales/index.d.ts.map +1 -0
- package/lib/cdm-locales/index.ts +1 -0
- package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
- package/lib/components/LanguageMenu/LanguageMenu.js +20 -8
- package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
- package/lib/components/Layout/BasicLayout/index.d.ts +2 -1
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +121 -31
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.d.ts +2 -0
- package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.js +16 -13
- package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/Account.d.ts +4 -0
- package/lib/components/Layout/GlobalFooter/Account.d.ts.map +1 -0
- package/lib/components/Layout/GlobalFooter/Account.js +147 -0
- package/lib/components/Layout/GlobalFooter/Account.js.map +1 -0
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +7 -12
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +32 -9
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +0 -2
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.js +32 -83
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -0
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js +73 -6
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.js +2 -4
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts +0 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.d.ts +2 -2
- package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +69 -7
- package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -1
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts +5 -0
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/{Sidebar.js → MainSidebar.js} +37 -9
- package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js +294 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts +5 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js +192 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +330 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
- package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/TailwindLayout.js +71 -10
- package/lib/components/Layout/TailwindLayout.js.map +1 -1
- package/lib/components/Layout/getPageTitle.js.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -1
- package/lib/components/Layout/slot-fill/Logo.d.ts +4 -0
- package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/Logo.js +7 -0
- package/lib/components/Layout/slot-fill/Logo.js.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.js.map +1 -1
- package/lib/components/Layout/util.js +1 -1
- package/lib/components/Layout/util.js.map +1 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +1 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.js +13 -3
- package/lib/components/SettingDrawer/CheckBoxTheme.js.map +1 -1
- package/lib/components/SettingDrawer/InvitationSettings.d.ts.map +1 -1
- package/lib/components/SettingDrawer/InvitationSettings.js +10 -6
- package/lib/components/SettingDrawer/InvitationSettings.js.map +1 -1
- package/lib/components/SettingDrawer/LayoutChange.d.ts.map +1 -1
- package/lib/components/SettingDrawer/LayoutChange.js +23 -16
- package/lib/components/SettingDrawer/LayoutChange.js.map +1 -1
- package/lib/components/SettingDrawer/MenuVisibilitySettings.d.ts +20 -0
- package/lib/components/SettingDrawer/MenuVisibilitySettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/MenuVisibilitySettings.js +120 -0
- package/lib/components/SettingDrawer/MenuVisibilitySettings.js.map +1 -0
- package/lib/components/SettingDrawer/NavigationsModes.d.ts +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.js +103 -15
- package/lib/components/SettingDrawer/NavigationsModes.js.map +1 -1
- package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +54 -177
- package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +423 -62
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/Switch/index.js.map +1 -1
- package/lib/components/SettingDrawer/ThemeColor.d.ts.map +1 -1
- package/lib/components/SettingDrawer/ThemeColor.js +15 -3
- package/lib/components/SettingDrawer/ThemeColor.js.map +1 -1
- package/lib/components/SettingDrawer/types.d.ts +12 -0
- package/lib/components/SettingDrawer/types.d.ts.map +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +8 -5
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +278 -4
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/typings.d.ts +14 -6
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/compute.d.ts.map +1 -1
- package/lib/compute.js +10 -2
- package/lib/compute.js.map +1 -1
- package/lib/config/analytics-config.js +9 -0
- package/lib/config/analytics-config.js.map +1 -0
- package/lib/config/constants.js.map +1 -1
- package/lib/config/env-config.d.ts +3 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +10 -0
- package/lib/config/env-config.js.map +1 -1
- package/lib/helpers/DynamicIcon.js.map +1 -1
- package/lib/hooks/index.d.ts +0 -3
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/useMediaQuery.js.map +1 -1
- package/lib/hooks/useScrollThreshold.js.map +1 -1
- package/lib/hooks/useTailwindTheme.js.map +1 -1
- package/lib/icons.d.ts +2 -0
- package/lib/icons.d.ts.map +1 -1
- package/lib/icons.js +4 -2
- package/lib/icons.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/machines/selectors.d.ts +118 -0
- package/lib/machines/selectors.d.ts.map +1 -0
- package/lib/machines/settingsMachine.d.ts +25 -2
- package/lib/machines/settingsMachine.d.ts.map +1 -1
- package/lib/machines/settingsMachine.js +217 -161
- package/lib/machines/settingsMachine.js.map +1 -1
- package/lib/machines/settingsMachine.test.d.ts +2 -0
- package/lib/machines/settingsMachine.test.d.ts.map +1 -0
- package/lib/machines/types.d.ts +106 -9
- package/lib/machines/types.d.ts.map +1 -1
- package/lib/machines/types.js.map +1 -1
- package/lib/module.js.map +1 -1
- package/lib/redux/searchReducer.js.map +1 -1
- package/lib/routes.json +9 -1
- package/lib/tailwindConfig.js.map +1 -1
- package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
- package/lib/utils/__tests__/configOverrides.test.d.ts.map +1 -0
- package/lib/utils/configOverrides.d.ts +213 -0
- package/lib/utils/configOverrides.d.ts.map +1 -0
- package/lib/utils/configOverrides.js +91 -0
- package/lib/utils/configOverrides.js.map +1 -0
- package/lib/utils/isBrowser/index.js.map +1 -1
- package/lib/utils/settingsUtils.d.ts +20 -0
- package/lib/utils/settingsUtils.d.ts.map +1 -0
- package/lib/utils/settingsUtils.js +74 -0
- package/lib/utils/settingsUtils.js.map +1 -0
- package/lib/utils/utils/index.js.map +1 -1
- package/package.json +6 -16
- package/lib/components/Layout/GlobalHeader/Logo.d.ts +0 -4
- package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +0 -1
- package/lib/components/Layout/GlobalHeader/Logo.js +0 -141
- package/lib/components/Layout/GlobalHeader/Logo.js.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -5
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -4
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -176
- package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
- package/lib/components/UI/CardList.d.ts +0 -61
- package/lib/components/UI/CardList.d.ts.map +0 -1
- package/lib/components/UI/CardList.js +0 -43
- package/lib/components/UI/CardList.js.map +0 -1
- package/lib/components/UI/CategoriesTypeList.d.ts +0 -29
- package/lib/components/UI/CategoriesTypeList.d.ts.map +0 -1
- package/lib/components/UI/CategoriesTypeList.js +0 -139
- package/lib/components/UI/CategoriesTypeList.js.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +0 -83
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.js +0 -107
- package/lib/components/UI/LazyLoadingGoogleMarker.js.map +0 -1
- package/lib/components/UI/Pagination.d.ts +0 -6
- package/lib/components/UI/Pagination.d.ts.map +0 -1
- package/lib/components/UI/Pagination.js +0 -56
- package/lib/components/UI/Pagination.js.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.d.ts +0 -99
- package/lib/components/UI/ParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.js +0 -120
- package/lib/components/UI/ParamSearchResultContainer.js.map +0 -1
- package/lib/components/UI/PropertyCard.d.ts +0 -24
- package/lib/components/UI/PropertyCard.d.ts.map +0 -1
- package/lib/components/UI/PropertyCard.js +0 -420
- package/lib/components/UI/PropertyCard.js.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.d.ts +0 -10
- package/lib/components/UI/PropertyCardOnMap.d.ts.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.js +0 -108
- package/lib/components/UI/PropertyCardOnMap.js.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.d.ts +0 -8
- package/lib/components/UI/VehicleCard/PricePopover.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.js +0 -98
- package/lib/components/UI/VehicleCard/PricePopover.js.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts +0 -7
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts +0 -9
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.js +0 -22
- package/lib/components/UI/VehicleCard/VehicleFeature.js.map +0 -1
- package/lib/components/UI/VehicleCard/types.d.ts +0 -59
- package/lib/components/UI/VehicleCard/types.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.d.ts +0 -15
- package/lib/components/UI/VehicleCard.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.js +0 -166
- package/lib/components/UI/VehicleCard.js.map +0 -1
- package/lib/components/UI/VehicleCardList.d.ts +0 -14
- package/lib/components/UI/VehicleCardList.d.ts.map +0 -1
- package/lib/components/UI/VehicleCardList.js +0 -38
- package/lib/components/UI/VehicleCardList.js.map +0 -1
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +0 -90
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.d.ts +0 -7
- package/lib/components/UI/icons/LocationIcon.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.js +0 -18
- package/lib/components/UI/icons/LocationIcon.js.map +0 -1
- package/lib/components/UI/icons/index.d.ts +0 -2
- package/lib/components/UI/icons/index.d.ts.map +0 -1
- package/lib/components/UI/index.d.ts +0 -10
- package/lib/components/UI/index.d.ts.map +0 -1
- package/lib/components/typings.js +0 -6
- package/lib/components/typings.js.map +0 -1
- package/lib/hooks/use-get-current-lat-long.d.ts +0 -18
- package/lib/hooks/use-get-current-lat-long.d.ts.map +0 -1
- package/lib/hooks/use-get-current-lat-long.js +0 -29
- package/lib/hooks/use-get-current-lat-long.js.map +0 -1
- package/lib/hooks/useWindowSize.d.ts +0 -6
- package/lib/hooks/useWindowSize.d.ts.map +0 -1
- package/lib/hooks/useWindowSize.js +0 -20
- package/lib/hooks/useWindowSize.js.map +0 -1
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts +0 -6
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/datasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/datasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import'../../hooks/
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {useMemo}from'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../hooks/useMediaQuery.js';import {getSettingValue}from'../../utils/settingsUtils.js';const navigationModes = [{
|
|
2
2
|
key: 'sidebar',
|
|
3
3
|
title: 'Sidebar',
|
|
4
4
|
svg: jsxs("svg", {
|
|
@@ -219,19 +219,107 @@ const menuTypes = [{
|
|
|
219
219
|
opacity: "0.65"
|
|
220
220
|
})]
|
|
221
221
|
})
|
|
222
|
+
}, {
|
|
223
|
+
key: 'perplexLayout',
|
|
224
|
+
title: 'Perplex Layout',
|
|
225
|
+
svg: jsxs("svg", {
|
|
226
|
+
width: "58",
|
|
227
|
+
height: "50",
|
|
228
|
+
viewBox: "0 0 80 60",
|
|
229
|
+
fill: "none",
|
|
230
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
231
|
+
children: [jsx("rect", {
|
|
232
|
+
x: "1",
|
|
233
|
+
y: "1",
|
|
234
|
+
width: "78",
|
|
235
|
+
height: "58",
|
|
236
|
+
rx: "4",
|
|
237
|
+
fill: "white",
|
|
238
|
+
stroke: "#E5E7EB",
|
|
239
|
+
strokeWidth: "2"
|
|
240
|
+
}), jsx("rect", {
|
|
241
|
+
x: "1",
|
|
242
|
+
y: "1",
|
|
243
|
+
width: "20",
|
|
244
|
+
height: "58",
|
|
245
|
+
rx: "3",
|
|
246
|
+
fill: "#0F172A"
|
|
247
|
+
}), jsx("rect", {
|
|
248
|
+
x: "5",
|
|
249
|
+
y: "10",
|
|
250
|
+
width: "10",
|
|
251
|
+
height: "3",
|
|
252
|
+
rx: "1.5",
|
|
253
|
+
fill: "white",
|
|
254
|
+
opacity: "0.9"
|
|
255
|
+
}), jsx("rect", {
|
|
256
|
+
x: "5",
|
|
257
|
+
y: "20",
|
|
258
|
+
width: "10",
|
|
259
|
+
height: "3",
|
|
260
|
+
rx: "1.5",
|
|
261
|
+
fill: "white",
|
|
262
|
+
opacity: "0.6"
|
|
263
|
+
}), jsx("rect", {
|
|
264
|
+
x: "5",
|
|
265
|
+
y: "30",
|
|
266
|
+
width: "10",
|
|
267
|
+
height: "3",
|
|
268
|
+
rx: "1.5",
|
|
269
|
+
fill: "white",
|
|
270
|
+
opacity: "0.4"
|
|
271
|
+
}), jsx("rect", {
|
|
272
|
+
x: "25",
|
|
273
|
+
y: "10",
|
|
274
|
+
width: "40",
|
|
275
|
+
height: "3",
|
|
276
|
+
rx: "1.5",
|
|
277
|
+
fill: "#0F172A",
|
|
278
|
+
opacity: "0.7"
|
|
279
|
+
}), jsx("rect", {
|
|
280
|
+
x: "25",
|
|
281
|
+
y: "20",
|
|
282
|
+
width: "30",
|
|
283
|
+
height: "3",
|
|
284
|
+
rx: "1.5",
|
|
285
|
+
fill: "#0F172A",
|
|
286
|
+
opacity: "0.5"
|
|
287
|
+
}), jsx("rect", {
|
|
288
|
+
x: "25",
|
|
289
|
+
y: "35",
|
|
290
|
+
width: "45",
|
|
291
|
+
height: "3",
|
|
292
|
+
rx: "1.5",
|
|
293
|
+
fill: "#0F172A",
|
|
294
|
+
opacity: "0.4"
|
|
295
|
+
}), jsx("rect", {
|
|
296
|
+
x: "25",
|
|
297
|
+
y: "45",
|
|
298
|
+
width: "35",
|
|
299
|
+
height: "3",
|
|
300
|
+
rx: "1.5",
|
|
301
|
+
fill: "#0F172A",
|
|
302
|
+
opacity: "0.3"
|
|
303
|
+
})]
|
|
304
|
+
})
|
|
222
305
|
}];
|
|
223
306
|
function NavigationModes({
|
|
224
307
|
changeSetting,
|
|
225
308
|
settings,
|
|
226
|
-
location
|
|
309
|
+
location,
|
|
310
|
+
routePattern,
|
|
311
|
+
applyToAllRoutes = false
|
|
227
312
|
}) {
|
|
228
313
|
const {
|
|
229
314
|
isMobile
|
|
230
315
|
} = useMediaQuery();
|
|
231
|
-
const currentRoute = location?.pathname || '/';
|
|
232
|
-
const routeSettings = settings?.routeSettings?.[currentRoute] || settings?.routeSettings?.['/'] || settings;
|
|
316
|
+
const currentRoute = routePattern || location?.pathname || '/';
|
|
233
317
|
const deviceType = isMobile ? 'mobile' : 'desktop';
|
|
234
|
-
|
|
318
|
+
// Get navigation values using the utility function
|
|
319
|
+
const navigationValues = useMemo(() => ({
|
|
320
|
+
navigationMode: getSettingValue(settings, 'navigationMode', applyToAllRoutes, currentRoute, deviceType, 'mixed'),
|
|
321
|
+
sideMenuType: getSettingValue(settings, 'sideMenuType', applyToAllRoutes, currentRoute, deviceType, 'expanded')
|
|
322
|
+
}), [settings, applyToAllRoutes, currentRoute, deviceType]);
|
|
235
323
|
return jsxs("div", {
|
|
236
324
|
className: "space-y-8",
|
|
237
325
|
children: [jsxs("section", {
|
|
@@ -242,13 +330,13 @@ function NavigationModes({
|
|
|
242
330
|
className: "flex flex-row gap-4",
|
|
243
331
|
children: navigationModes.map((mode, index) => jsx("div", {
|
|
244
332
|
className: "relative cursor-pointer hover:opacity-80 transition-opacity shadow-sm dark:shadow-md rounded overflow-hidden",
|
|
245
|
-
onClick: () =>
|
|
246
|
-
|
|
247
|
-
navigationMode
|
|
248
|
-
}
|
|
333
|
+
onClick: () => {
|
|
334
|
+
// Pass simple key - handleSettingChange in SettingDrawer will decide if it's global or route-specific
|
|
335
|
+
changeSetting('navigationMode', mode.key);
|
|
336
|
+
},
|
|
249
337
|
children: jsxs("div", {
|
|
250
338
|
className: "relative",
|
|
251
|
-
children: [mode.svg,
|
|
339
|
+
children: [mode.svg, navigationValues.navigationMode === mode.key && jsx("svg", {
|
|
252
340
|
className: "absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-6 h-6 text-blue-500 pointer-events-none",
|
|
253
341
|
viewBox: "0 0 24 24",
|
|
254
342
|
fill: "currentColor",
|
|
@@ -267,13 +355,13 @@ function NavigationModes({
|
|
|
267
355
|
className: "flex flex-row gap-4",
|
|
268
356
|
children: menuTypes.map((type, index) => jsx("div", {
|
|
269
357
|
className: "relative cursor-pointer hover:opacity-80 transition-opacity shadow-sm dark:shadow-md rounded overflow-hidden",
|
|
270
|
-
onClick: () =>
|
|
271
|
-
|
|
272
|
-
sideMenuType
|
|
273
|
-
}
|
|
358
|
+
onClick: () => {
|
|
359
|
+
// Pass simple key - handleSettingChange in SettingDrawer will decide if it's global or route-specific
|
|
360
|
+
changeSetting('sideMenuType', type.key);
|
|
361
|
+
},
|
|
274
362
|
children: jsxs("div", {
|
|
275
363
|
className: "relative",
|
|
276
|
-
children: [type.svg,
|
|
364
|
+
children: [type.svg, navigationValues.sideMenuType === type.key && jsx("svg", {
|
|
277
365
|
className: "absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-6 h-6 text-blue-500 pointer-events-none",
|
|
278
366
|
viewBox: "0 0 24 24",
|
|
279
367
|
fill: "currentColor",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationsModes.js","sources":["../../../src/components/SettingDrawer/NavigationsModes.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavigationsModes.js","sources":["../../../src/components/SettingDrawer/NavigationsModes.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"gRAIA,MAAM,eAAe,GAAG,CAAA;AACpB,EAAA,GAAA,EAAA,SAAA;AACI,EAAA,KAAA,EAAA,SAAK;AACL,EAAA,GAAA,EAAAA,IAAA,CAAK,KAAE,EAAA;AACP,IAAA,KAAA,EAAG,IACC;AAQP,IAAA,MAAA,EAAA,IAAA;AACD,IAAA,OAAA,EAAA,WAAA;AACI,IAAA,KAAA,EAAG,4BAAU;AACb,IAAA,QAAA,GAAOC,GAAA,CAAA,MAAS,EAAA;AAChB,MAAA,KAAG,EAAE,IACD;AAQP,MAAA,MAAA,EAAA,IAAA;AACD,MAAA,EAAA,EAAA,GAAA;AACI,MAAA,IAAA;AACA,KAAA,CAAA,EAAAA,GAAA,CAAK,MAAE,EAAA;SACP,GAAG;AAaN,MAAA,CAAA,EAAA,GAAA;MACH,KAAA,EAAA,IAAA;AAEF,MAAM,YAAY;AACd,MAAA,IAAA,EAAA;AACI,KAAA,CAAA,EAAAA,IAAK,MAAA,EAAA;AACL,MAAA,CAA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":["../../../src/components/SettingDrawer/RegionalSettings.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"RegionalSettings.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/RegionalSettings.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAMjD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,KAAK,EAAE,sBAAsB,2CA4hBrE"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';import {SearchBarBehavior}from'../../machines/types.js';import {config}from'../../config/env-config.js';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import'../../hooks/
|
|
1
|
+
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';import {SearchBarBehavior}from'../../machines/types.js';import {config}from'../../config/env-config.js';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../hooks/useMediaQuery.js';import {getSettingValue}from'../../utils/settingsUtils.js';function RegionalSettings(props) {
|
|
2
2
|
const {
|
|
3
3
|
t
|
|
4
4
|
} = useTranslation('settings');
|
|
5
5
|
const {
|
|
6
6
|
settings,
|
|
7
7
|
changeSetting,
|
|
8
|
-
location
|
|
8
|
+
location,
|
|
9
|
+
routePattern,
|
|
10
|
+
applyToAllRoutes = false
|
|
9
11
|
} = props;
|
|
10
12
|
const {
|
|
11
13
|
navTheme
|
|
12
14
|
} = settings || {};
|
|
13
|
-
const currentRoute = location?.pathname || '/';
|
|
14
|
-
const {
|
|
15
|
-
regions = {}
|
|
16
|
-
} = settings?.routeSettings?.[currentRoute] || {};
|
|
15
|
+
const currentRoute = routePattern || location?.pathname || '/';
|
|
17
16
|
const [isHeaderExpanded, setIsHeaderExpanded] = React.useState(false);
|
|
18
17
|
const [isBackgroundExpanded, setIsBackgroundExpanded] = React.useState(true);
|
|
19
18
|
const [activeBackgroundTab, setActiveBackgroundTab] = React.useState('desktop');
|
|
@@ -23,36 +22,55 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
|
|
|
23
22
|
} = useMediaQuery();
|
|
24
23
|
const scrollThresholdConfig = JSON.parse(config.SCROLL_THRESHOLD);
|
|
25
24
|
const deviceType = isMobile ? 'mobile' : 'desktop';
|
|
26
|
-
|
|
25
|
+
// Helper to get config value using the utility function
|
|
26
|
+
const getConfigValue = (configKey, defaultValue, useActiveTab = true) => {
|
|
27
|
+
const device = useActiveTab ? activeBackgroundTab || activeHeaderTab : deviceType;
|
|
28
|
+
return getSettingValue(settings, configKey, applyToAllRoutes, currentRoute, device, defaultValue);
|
|
29
|
+
};
|
|
30
|
+
// Helper to set config value with override
|
|
31
|
+
const setConfigValue = (configKey, value, useActiveTab = true) => {
|
|
27
32
|
if (!changeSetting) return;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
// Pass simple key - handleSettingChange in SettingDrawer will decide if it's global or route-specific
|
|
34
|
+
// based on the applyToAllRoutes flag
|
|
35
|
+
changeSetting(configKey, value);
|
|
36
|
+
};
|
|
37
|
+
const handleRegionChange = (key, value) => {
|
|
38
|
+
setConfigValue(`header.${key}`, value, false);
|
|
32
39
|
};
|
|
33
40
|
const handleRegionFooterChange = (key, value) => {
|
|
34
|
-
|
|
35
|
-
changeSetting(`routeSettings.${currentRoute}.regions.${deviceType}.footer`, {
|
|
36
|
-
...regions[deviceType]?.footer,
|
|
37
|
-
[key]: value
|
|
38
|
-
});
|
|
41
|
+
setConfigValue(`footer.${key}`, value, false);
|
|
39
42
|
};
|
|
40
43
|
const handleBackgroundChange = (property, value) => {
|
|
41
|
-
|
|
42
|
-
changeSetting(`routeSettings.${currentRoute}.regions.${deviceType}.background`, {
|
|
43
|
-
...regions[deviceType].background,
|
|
44
|
-
[property]: value
|
|
45
|
-
});
|
|
44
|
+
setConfigValue(`background.${property}`, value, true);
|
|
46
45
|
};
|
|
47
46
|
const handleHeaderChange = (element, value) => {
|
|
48
|
-
|
|
49
|
-
changeSetting(`routeSettings.${currentRoute}.regions.${deviceType}.header`, {
|
|
50
|
-
...regions[deviceType]?.header,
|
|
51
|
-
[element]: value
|
|
52
|
-
});
|
|
47
|
+
setConfigValue(`header.${element}`, value, true);
|
|
53
48
|
};
|
|
54
|
-
|
|
55
|
-
const
|
|
49
|
+
// Get current values using the override-aware getter with active header tab
|
|
50
|
+
const header = React.useMemo(() => ({
|
|
51
|
+
showLogo: getConfigValue('header.showLogo', true, true),
|
|
52
|
+
showSearchSlot: getConfigValue('header.showSearchSlot', true, true),
|
|
53
|
+
showRightContent: getConfigValue('header.showRightContent', true, true),
|
|
54
|
+
showMenuToggle: getConfigValue('header.showMenuToggle', true, true),
|
|
55
|
+
showBackButton: getConfigValue('header.showBackButton', true, true),
|
|
56
|
+
showPageTitle: getConfigValue('header.showPageTitle', true, true),
|
|
57
|
+
showActionButtons: getConfigValue('header.showActionButtons', true, true),
|
|
58
|
+
fixedHeader: getConfigValue('header.fixedHeader', true, true),
|
|
59
|
+
showHeader: getConfigValue('header.showHeader', true, true),
|
|
60
|
+
showMenu: getConfigValue('header.showMenu', true, true),
|
|
61
|
+
menuHeaderRender: getConfigValue('header.menuHeaderRender', true, true),
|
|
62
|
+
searchBarRender: getConfigValue('header.searchBarRender', true, true),
|
|
63
|
+
searchBarBehavior: getConfigValue('header.searchBarBehavior', SearchBarBehavior.PERMANENT, true),
|
|
64
|
+
searchBarOverlay: getConfigValue('header.searchBarOverlay', true, true),
|
|
65
|
+
scrollThreshold: getConfigValue('header.scrollThreshold', scrollThresholdConfig.DEFAULT, true)
|
|
66
|
+
}), [activeHeaderTab, currentRoute, settings, applyToAllRoutes]);
|
|
67
|
+
const background = React.useMemo(() => ({
|
|
68
|
+
type: getConfigValue('background.type', 'color', true),
|
|
69
|
+
color: getConfigValue('background.color', 'inherit', true),
|
|
70
|
+
image: getConfigValue('background.image', '', true),
|
|
71
|
+
video: getConfigValue('background.video', '', true),
|
|
72
|
+
videoThumbnail: getConfigValue('background.videoThumbnail', '', true)
|
|
73
|
+
}), [activeBackgroundTab, currentRoute, settings, applyToAllRoutes]);
|
|
56
74
|
// Helper function to render background settings based on current active tab
|
|
57
75
|
const renderBackgroundSettings = () => {
|
|
58
76
|
return jsxs(Fragment, {
|
|
@@ -263,7 +281,6 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
|
|
|
263
281
|
};
|
|
264
282
|
// Helper function to render header settings based on current active tab
|
|
265
283
|
const renderHeaderSettings = () => {
|
|
266
|
-
const isDesktop = activeHeaderTab === 'desktop';
|
|
267
284
|
return jsxs("div", {
|
|
268
285
|
className: "space-y-2",
|
|
269
286
|
children: [jsxs("div", {
|
|
@@ -276,7 +293,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
|
|
|
276
293
|
}), jsx("div", {
|
|
277
294
|
className: "flex-grow"
|
|
278
295
|
}), jsx(Switch, {
|
|
279
|
-
value:
|
|
296
|
+
value: header?.showHeader ?? true,
|
|
280
297
|
onChange: checked => handleHeaderChange('showHeader', checked)
|
|
281
298
|
})]
|
|
282
299
|
}), jsxs("div", {
|
|
@@ -498,82 +515,12 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
|
|
|
498
515
|
className: `grid transition-all duration-300 ease-in-out ${isBackgroundExpanded ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]'}`,
|
|
499
516
|
children: jsx("div", {
|
|
500
517
|
className: "overflow-hidden",
|
|
501
|
-
children:
|
|
518
|
+
children: jsx("div", {
|
|
502
519
|
className: "ml-4 mb-4 border-l-2 border-gray-200 pl-4",
|
|
503
|
-
children:
|
|
504
|
-
className: "flex mb-4 mt-1",
|
|
505
|
-
children: [jsx("button", {
|
|
506
|
-
className: `flex-1 py-2 px-4 text-sm font-medium transition-colors duration-200 rounded-l-lg border border-r-0 border-gray-300 ${activeBackgroundTab === 'desktop' ? 'bg-blue-500 text-white border-blue-500' : 'bg-white text-gray-700 hover:bg-gray-50'}`,
|
|
507
|
-
onClick: () => setActiveBackgroundTab('desktop'),
|
|
508
|
-
children: jsxs("span", {
|
|
509
|
-
className: "flex items-center justify-center",
|
|
510
|
-
children: [jsxs("svg", {
|
|
511
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
512
|
-
width: "16",
|
|
513
|
-
height: "16",
|
|
514
|
-
viewBox: "0 0 24 24",
|
|
515
|
-
fill: "none",
|
|
516
|
-
stroke: "currentColor",
|
|
517
|
-
strokeWidth: "2",
|
|
518
|
-
strokeLinecap: "round",
|
|
519
|
-
strokeLinejoin: "round",
|
|
520
|
-
className: "mr-1",
|
|
521
|
-
children: [jsx("rect", {
|
|
522
|
-
x: "2",
|
|
523
|
-
y: "3",
|
|
524
|
-
width: "20",
|
|
525
|
-
height: "14",
|
|
526
|
-
rx: "2",
|
|
527
|
-
ry: "2"
|
|
528
|
-
}), jsx("line", {
|
|
529
|
-
x1: "8",
|
|
530
|
-
y1: "21",
|
|
531
|
-
x2: "16",
|
|
532
|
-
y2: "21"
|
|
533
|
-
}), jsx("line", {
|
|
534
|
-
x1: "12",
|
|
535
|
-
y1: "17",
|
|
536
|
-
x2: "12",
|
|
537
|
-
y2: "21"
|
|
538
|
-
})]
|
|
539
|
-
}), t('desktop_tab')]
|
|
540
|
-
})
|
|
541
|
-
}), jsx("button", {
|
|
542
|
-
className: `flex-1 py-2 px-4 text-sm font-medium transition-colors duration-200 rounded-r-lg border border-gray-300 ${activeBackgroundTab === 'mobile' ? 'bg-blue-500 text-white border-blue-500' : 'bg-white text-gray-700 hover:bg-gray-50'}`,
|
|
543
|
-
onClick: () => setActiveBackgroundTab('mobile'),
|
|
544
|
-
children: jsxs("span", {
|
|
545
|
-
className: "flex items-center justify-center",
|
|
546
|
-
children: [jsxs("svg", {
|
|
547
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
548
|
-
width: "16",
|
|
549
|
-
height: "16",
|
|
550
|
-
viewBox: "0 0 24 24",
|
|
551
|
-
fill: "none",
|
|
552
|
-
stroke: "currentColor",
|
|
553
|
-
strokeWidth: "2",
|
|
554
|
-
strokeLinecap: "round",
|
|
555
|
-
strokeLinejoin: "round",
|
|
556
|
-
className: "mr-1",
|
|
557
|
-
children: [jsx("rect", {
|
|
558
|
-
x: "5",
|
|
559
|
-
y: "2",
|
|
560
|
-
width: "14",
|
|
561
|
-
height: "20",
|
|
562
|
-
rx: "2",
|
|
563
|
-
ry: "2"
|
|
564
|
-
}), jsx("line", {
|
|
565
|
-
x1: "12",
|
|
566
|
-
y1: "18",
|
|
567
|
-
x2: "12",
|
|
568
|
-
y2: "18"
|
|
569
|
-
})]
|
|
570
|
-
}), t('mobile_tab')]
|
|
571
|
-
})
|
|
572
|
-
})]
|
|
573
|
-
}), jsx("div", {
|
|
520
|
+
children: jsx("div", {
|
|
574
521
|
className: "mb-4",
|
|
575
522
|
children: renderBackgroundSettings()
|
|
576
|
-
})
|
|
523
|
+
})
|
|
577
524
|
})
|
|
578
525
|
})
|
|
579
526
|
})]
|
|
@@ -607,77 +554,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
|
|
|
607
554
|
className: "overflow-hidden",
|
|
608
555
|
children: jsxs("div", {
|
|
609
556
|
className: "ml-4 mb-4 border-l-2 border-gray-200 pl-4",
|
|
610
|
-
children: [
|
|
611
|
-
className: "flex mb-4 mt-1",
|
|
612
|
-
children: [jsx("button", {
|
|
613
|
-
className: `flex-1 py-2 px-4 text-sm font-medium transition-colors duration-200 rounded-l-lg border border-r-0 border-gray-300 ${activeHeaderTab === 'desktop' ? 'bg-blue-500 text-white border-blue-500' : 'bg-white text-gray-700 hover:bg-gray-50'}`,
|
|
614
|
-
onClick: () => setActiveHeaderTab('desktop'),
|
|
615
|
-
children: jsxs("span", {
|
|
616
|
-
className: "flex items-center justify-center",
|
|
617
|
-
children: [jsxs("svg", {
|
|
618
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
619
|
-
width: "16",
|
|
620
|
-
height: "16",
|
|
621
|
-
viewBox: "0 0 24 24",
|
|
622
|
-
fill: "none",
|
|
623
|
-
stroke: "currentColor",
|
|
624
|
-
strokeWidth: "2",
|
|
625
|
-
strokeLinecap: "round",
|
|
626
|
-
strokeLinejoin: "round",
|
|
627
|
-
className: "mr-1",
|
|
628
|
-
children: [jsx("rect", {
|
|
629
|
-
x: "2",
|
|
630
|
-
y: "3",
|
|
631
|
-
width: "20",
|
|
632
|
-
height: "14",
|
|
633
|
-
rx: "2",
|
|
634
|
-
ry: "2"
|
|
635
|
-
}), jsx("line", {
|
|
636
|
-
x1: "8",
|
|
637
|
-
y1: "21",
|
|
638
|
-
x2: "16",
|
|
639
|
-
y2: "21"
|
|
640
|
-
}), jsx("line", {
|
|
641
|
-
x1: "12",
|
|
642
|
-
y1: "17",
|
|
643
|
-
x2: "12",
|
|
644
|
-
y2: "21"
|
|
645
|
-
})]
|
|
646
|
-
}), t('desktop_tab')]
|
|
647
|
-
})
|
|
648
|
-
}), jsx("button", {
|
|
649
|
-
className: `flex-1 py-2 px-4 text-sm font-medium transition-colors duration-200 rounded-r-lg border border-gray-300 ${activeHeaderTab === 'mobile' ? 'bg-blue-500 text-white border-blue-500' : 'bg-white text-gray-700 hover:bg-gray-50'}`,
|
|
650
|
-
onClick: () => setActiveHeaderTab('mobile'),
|
|
651
|
-
children: jsxs("span", {
|
|
652
|
-
className: "flex items-center justify-center",
|
|
653
|
-
children: [jsxs("svg", {
|
|
654
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
655
|
-
width: "16",
|
|
656
|
-
height: "16",
|
|
657
|
-
viewBox: "0 0 24 24",
|
|
658
|
-
fill: "none",
|
|
659
|
-
stroke: "currentColor",
|
|
660
|
-
strokeWidth: "2",
|
|
661
|
-
strokeLinecap: "round",
|
|
662
|
-
strokeLinejoin: "round",
|
|
663
|
-
className: "mr-1",
|
|
664
|
-
children: [jsx("rect", {
|
|
665
|
-
x: "5",
|
|
666
|
-
y: "2",
|
|
667
|
-
width: "14",
|
|
668
|
-
height: "20",
|
|
669
|
-
rx: "2",
|
|
670
|
-
ry: "2"
|
|
671
|
-
}), jsx("line", {
|
|
672
|
-
x1: "12",
|
|
673
|
-
y1: "18",
|
|
674
|
-
x2: "12",
|
|
675
|
-
y2: "18"
|
|
676
|
-
})]
|
|
677
|
-
}), t('mobile_tab')]
|
|
678
|
-
})
|
|
679
|
-
})]
|
|
680
|
-
}), jsx("div", {
|
|
557
|
+
children: [jsx("div", {
|
|
681
558
|
className: "mb-4",
|
|
682
559
|
children: renderHeaderSettings()
|
|
683
560
|
}), jsxs("div", {
|
|
@@ -706,7 +583,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
|
|
|
706
583
|
}), jsx("div", {
|
|
707
584
|
className: "flex-grow"
|
|
708
585
|
}), jsx(Switch, {
|
|
709
|
-
value:
|
|
586
|
+
value: getConfigValue('footer.showFooter', true),
|
|
710
587
|
onChange: checked => handleRegionFooterChange('showFooter', checked)
|
|
711
588
|
})]
|
|
712
589
|
}), jsxs("div", {
|
|
@@ -719,7 +596,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
|
|
|
719
596
|
}), jsx("div", {
|
|
720
597
|
className: "flex-grow"
|
|
721
598
|
}), jsx(Switch, {
|
|
722
|
-
value:
|
|
599
|
+
value: getConfigValue('header.showMenu', true),
|
|
723
600
|
onChange: checked => handleRegionChange('showMenu', checked)
|
|
724
601
|
})]
|
|
725
602
|
}), jsxs("div", {
|
|
@@ -732,7 +609,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
|
|
|
732
609
|
}), jsx("div", {
|
|
733
610
|
className: "flex-grow"
|
|
734
611
|
}), jsx(Switch, {
|
|
735
|
-
value:
|
|
612
|
+
value: getConfigValue('header.menuHeaderRender', true),
|
|
736
613
|
onChange: checked => handleRegionChange('menuHeaderRender', checked)
|
|
737
614
|
})]
|
|
738
615
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegionalSettings.js","sources":["../../../src/components/SettingDrawer/RegionalSettings.tsx"],"sourcesContent":[null],"names":["_jsxs","
|
|
1
|
+
{"version":3,"file":"RegionalSettings.js","sources":["../../../src/components/SettingDrawer/RegionalSettings.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"mdASc,SAAU,gBAAgB,CAAC,KAA6B,EAAA;QAClE;AACA,IAAA;AACA,GAAA,GAAA,cAAgB,CAAA,UAAK,CAAA;QACrB;AACA,IAAA,QAAO;AACP,IAAA,aAAO;AACP,IAAA,QAAO;AACP,IAAA,YAAO;AACP,IAAA,gBAAgB,GAAE;MAClB,KAAM;QACN;IAEA;MACA,QAAM,IAAA,EAAA;AACF,EAAA,MAAA,YAAY,GAAG,YAAY,IAAG,QAAA,EAAA,QAAmB,IAAI,GAAA;AACrD,EAAA,MAAA,CAAA,gBAAO,EAAA,uBAAmC,KAAE,CAAA,QAAA,CAAA,KAAkB,CAAA;AAClE,EAAA,MAAE,CAAA,oBAAA,EAAA,uBAAA,CAAA,GAAA,KAAA,CAAA,QAAA,CAAA,IAAA,CAAA;QAEF,CAAA,mBAAA,EAAA,sBAA2C,CAAA,GAAA,KAAA,CAAA,QAAA,CAAA,SAAA,CAAA;QAC3C,CAAA,eAAoB,EAAA,kBAAiC,CAAA,GAAE,KAAA,CAAA,QAAwB,CAAA,SAAQ,CAAA;AACnF,EAAA,MAAA;;mBAEA,EAAA;QACA,qBAAA,GAAA,IAAA,CAAA,KAAA,CAAA,MAAqC,CAAA,gBAAA,CAAA;AACrC,EAAA,MAAA,UAAA,GAAa,QAAC,GAAS,QAAS,GAAA,SAAA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
|
|
|
1
|
-
{"version":3,"file":"SettingDrawer.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/SettingDrawer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SettingDrawer.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/SettingDrawer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,EAAsB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAsVjE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,GAAG,CA6qB5D,CAAC"}
|