@admin-layout/tailwind-design-pro 10.1.1-alpha.9 → 11.2.1-alpha.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 (443) hide show
  1. package/README.md +376 -250
  2. package/lib/cdm-locales/en/menu.json +2 -1
  3. package/lib/cdm-locales/en/settings.json +6 -1
  4. package/lib/cdm-locales/es/menu.json +2 -1
  5. package/lib/cdm-locales/es/settings.json +6 -1
  6. package/lib/cdm-locales/index.d.ts +2 -0
  7. package/lib/cdm-locales/index.d.ts.map +1 -0
  8. package/lib/cdm-locales/index.ts +1 -0
  9. package/lib/components/LanguageMenu/LanguageMenu.d.ts +2 -1
  10. package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
  11. package/lib/components/LanguageMenu/LanguageMenu.js +40 -61
  12. package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
  13. package/lib/components/Layout/BasicLayout/index.d.ts +6 -5
  14. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
  15. package/lib/components/Layout/BasicLayout/index.js +255 -175
  16. package/lib/components/Layout/BasicLayout/index.js.map +1 -1
  17. package/lib/components/Layout/BasicLayout/utils.d.ts +4 -2
  18. package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
  19. package/lib/components/Layout/BasicLayout/utils.js +80 -109
  20. package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
  21. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
  22. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +28 -38
  23. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
  24. package/lib/components/Layout/GlobalFooter/Copyright.d.ts +2 -1
  25. package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
  26. package/lib/components/Layout/GlobalFooter/Footer.d.ts +2 -1
  27. package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
  28. package/lib/components/Layout/GlobalHeader/Header.d.ts +0 -1
  29. package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
  30. package/lib/components/Layout/GlobalHeader/Header.js +82 -66
  31. package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
  32. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +0 -2
  33. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -1
  34. package/lib/components/Layout/GlobalHeader/MainHeader.js +119 -162
  35. package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
  36. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
  37. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +26 -30
  38. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
  39. package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -0
  40. package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
  41. package/lib/components/Layout/GlobalHeader/RightContent.js +82 -19
  42. package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
  43. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -1
  44. package/lib/components/Layout/GlobalHeader/RightMenu.js +116 -158
  45. package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
  46. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -1
  47. package/lib/components/Layout/GlobalHeader/SearchBar.js +36 -45
  48. package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -1
  49. package/lib/components/Layout/GlobalHeader/index.d.ts +0 -1
  50. package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -1
  51. package/lib/components/Layout/ProTailwindLayout.d.ts +2 -2
  52. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
  53. package/lib/components/Layout/ProTailwindLayout.js +70 -9
  54. package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
  55. package/lib/components/Layout/Sidebar/BottomMenu.d.ts +4 -0
  56. package/lib/components/Layout/Sidebar/BottomMenu.d.ts.map +1 -0
  57. package/lib/components/Layout/Sidebar/BottomMenu.js +294 -0
  58. package/lib/components/Layout/Sidebar/BottomMenu.js.map +1 -0
  59. package/lib/components/Layout/Sidebar/Divider.d.ts +2 -1
  60. package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
  61. package/lib/components/Layout/Sidebar/Divider.js +26 -28
  62. package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
  63. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +1 -1
  64. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -1
  65. package/lib/components/Layout/Sidebar/DynamicIcon.js +10 -11
  66. package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -1
  67. package/lib/components/Layout/Sidebar/MainSidebar.d.ts +5 -0
  68. package/lib/components/Layout/Sidebar/MainSidebar.d.ts.map +1 -0
  69. package/lib/components/Layout/Sidebar/MainSidebar.js +224 -0
  70. package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -0
  71. package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +6 -0
  72. package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -0
  73. package/lib/components/Layout/Sidebar/MainSidebarMenu.js +451 -0
  74. package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -0
  75. package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts +4 -0
  76. package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts.map +1 -0
  77. package/lib/components/Layout/Sidebar/PerplexSidebar.js +254 -0
  78. package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -0
  79. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts +4 -0
  80. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts.map +1 -0
  81. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +318 -0
  82. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
  83. package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
  84. package/lib/components/Layout/TailwindLayout.js +37 -20
  85. package/lib/components/Layout/TailwindLayout.js.map +1 -1
  86. package/lib/components/Layout/getPageTitle.js.map +1 -1
  87. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +3 -2
  88. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -1
  89. package/lib/components/Layout/slot-fill/AdditionalSettings.js +2 -2
  90. package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -1
  91. package/lib/components/Layout/slot-fill/Footer.d.ts +3 -2
  92. package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
  93. package/lib/components/Layout/slot-fill/Footer.js +2 -2
  94. package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
  95. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts +3 -2
  96. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
  97. package/lib/components/Layout/slot-fill/HeaderNotice.js +7 -0
  98. package/lib/components/Layout/slot-fill/HeaderNotice.js.map +1 -0
  99. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +2 -1
  100. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -1
  101. package/lib/components/Layout/slot-fill/HeaderSearchBar.js +2 -2
  102. package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -1
  103. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +2 -1
  104. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -1
  105. package/lib/components/Layout/slot-fill/HeaderSearchButton.js +2 -2
  106. package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -1
  107. package/lib/components/Layout/slot-fill/Logo.d.ts +5 -0
  108. package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -0
  109. package/lib/components/Layout/slot-fill/Logo.js +7 -0
  110. package/lib/components/Layout/slot-fill/Logo.js.map +1 -0
  111. package/lib/components/Layout/slot-fill/RightContent.d.ts +2 -1
  112. package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -1
  113. package/lib/components/Layout/slot-fill/RightContent.js +2 -2
  114. package/lib/components/Layout/slot-fill/RightContent.js.map +1 -1
  115. package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +5 -0
  116. package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts.map +1 -0
  117. package/lib/components/Layout/slot-fill/SideMenuLogo.js +7 -0
  118. package/lib/components/Layout/slot-fill/SideMenuLogo.js.map +1 -0
  119. package/lib/components/Layout/slot-fill/index.d.ts +2 -0
  120. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
  121. package/lib/components/Layout/util.js +1 -1
  122. package/lib/components/Layout/util.js.map +1 -1
  123. package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -2
  124. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
  125. package/lib/components/SettingDrawer/SettingDrawer.js +190 -499
  126. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
  127. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts +8 -0
  128. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts.map +1 -0
  129. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js +21 -0
  130. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js.map +1 -0
  131. package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts +4 -0
  132. package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts.map +1 -0
  133. package/lib/components/SettingDrawer/components/CheckBoxTheme.js +119 -0
  134. package/lib/components/SettingDrawer/components/CheckBoxTheme.js.map +1 -0
  135. package/lib/components/SettingDrawer/components/DeviceTabs.d.ts +8 -0
  136. package/lib/components/SettingDrawer/components/DeviceTabs.d.ts.map +1 -0
  137. package/lib/components/SettingDrawer/components/DeviceTabs.js +74 -0
  138. package/lib/components/SettingDrawer/components/DeviceTabs.js.map +1 -0
  139. package/lib/components/SettingDrawer/components/InvitationSettings.d.ts +4 -0
  140. package/lib/components/SettingDrawer/components/InvitationSettings.d.ts.map +1 -0
  141. package/lib/components/SettingDrawer/components/InvitationSettings.js +72 -0
  142. package/lib/components/SettingDrawer/components/InvitationSettings.js.map +1 -0
  143. package/lib/components/SettingDrawer/components/LayoutChange.d.ts +4 -0
  144. package/lib/components/SettingDrawer/components/LayoutChange.d.ts.map +1 -0
  145. package/lib/components/SettingDrawer/components/LayoutChange.js +111 -0
  146. package/lib/components/SettingDrawer/components/LayoutChange.js.map +1 -0
  147. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts +21 -0
  148. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts.map +1 -0
  149. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js +106 -0
  150. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js.map +1 -0
  151. package/lib/components/SettingDrawer/components/NavigationsModes.d.ts +4 -0
  152. package/lib/components/SettingDrawer/components/NavigationsModes.d.ts.map +1 -0
  153. package/lib/components/SettingDrawer/components/NavigationsModes.js +322 -0
  154. package/lib/components/SettingDrawer/components/NavigationsModes.js.map +1 -0
  155. package/lib/components/SettingDrawer/components/RegionalSettings.d.ts +4 -0
  156. package/lib/components/SettingDrawer/components/RegionalSettings.d.ts.map +1 -0
  157. package/lib/components/SettingDrawer/components/RegionalSettings.js +519 -0
  158. package/lib/components/SettingDrawer/components/RegionalSettings.js.map +1 -0
  159. package/lib/components/SettingDrawer/components/SettingsActions.d.ts +13 -0
  160. package/lib/components/SettingDrawer/components/SettingsActions.d.ts.map +1 -0
  161. package/lib/components/SettingDrawer/components/SettingsActions.js +42 -0
  162. package/lib/components/SettingDrawer/components/SettingsActions.js.map +1 -0
  163. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts +5 -0
  164. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts.map +1 -0
  165. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js +22 -0
  166. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js.map +1 -0
  167. package/lib/components/SettingDrawer/components/Switch.d.ts +4 -0
  168. package/lib/components/SettingDrawer/components/Switch.d.ts.map +1 -0
  169. package/lib/components/SettingDrawer/components/Switch.js +20 -0
  170. package/lib/components/SettingDrawer/components/Switch.js.map +1 -0
  171. package/lib/components/SettingDrawer/components/ThemeColor.d.ts +4 -0
  172. package/lib/components/SettingDrawer/components/ThemeColor.d.ts.map +1 -0
  173. package/lib/components/SettingDrawer/components/ThemeColor.js +45 -0
  174. package/lib/components/SettingDrawer/components/ThemeColor.js.map +1 -0
  175. package/lib/components/SettingDrawer/components/ThemeSelector.d.ts +4 -0
  176. package/lib/components/SettingDrawer/components/ThemeSelector.d.ts.map +1 -0
  177. package/lib/components/SettingDrawer/components/ThemeSelector.js +16 -0
  178. package/lib/components/SettingDrawer/components/ThemeSelector.js.map +1 -0
  179. package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts +4 -0
  180. package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts.map +1 -0
  181. package/lib/components/SettingDrawer/components/WebFontsSelector.js +22 -0
  182. package/lib/components/SettingDrawer/components/WebFontsSelector.js.map +1 -0
  183. package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts +18 -0
  184. package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts.map +1 -0
  185. package/lib/components/SettingDrawer/hooks/useSettingsOperations.js +115 -0
  186. package/lib/components/SettingDrawer/hooks/useSettingsOperations.js.map +1 -0
  187. package/lib/components/SettingDrawer/utils/constants.d.ts +11 -0
  188. package/lib/components/SettingDrawer/utils/constants.d.ts.map +1 -0
  189. package/lib/components/SettingDrawer/utils/constants.js +77 -0
  190. package/lib/components/SettingDrawer/utils/constants.js.map +1 -0
  191. package/lib/components/SettingDrawer/utils/helper.d.ts +37 -0
  192. package/lib/components/SettingDrawer/utils/helper.d.ts.map +1 -0
  193. package/lib/components/SettingDrawer/utils/helper.js +154 -0
  194. package/lib/components/SettingDrawer/utils/helper.js.map +1 -0
  195. package/lib/components/SettingDrawer/utils/transformers.d.ts +15 -0
  196. package/lib/components/SettingDrawer/utils/transformers.d.ts.map +1 -0
  197. package/lib/components/SettingDrawer/utils/transformers.js +73 -0
  198. package/lib/components/SettingDrawer/utils/transformers.js.map +1 -0
  199. package/lib/components/SettingDrawer/{types.d.ts → utils/types.d.ts} +14 -0
  200. package/lib/components/SettingDrawer/utils/types.d.ts.map +1 -0
  201. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +13 -4
  202. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
  203. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +97 -4
  204. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
  205. package/lib/components/index.d.ts +0 -2
  206. package/lib/components/index.d.ts.map +1 -1
  207. package/lib/components/index.js +1 -1
  208. package/lib/components/typings.d.ts +20 -6
  209. package/lib/components/typings.d.ts.map +1 -1
  210. package/lib/compute.d.ts.map +1 -1
  211. package/lib/compute.js +10 -2
  212. package/lib/compute.js.map +1 -1
  213. package/lib/config/analytics-config.d.ts +59 -0
  214. package/lib/config/analytics-config.d.ts.map +1 -0
  215. package/lib/config/constants.js.map +1 -1
  216. package/lib/config/env-config.d.ts +6 -0
  217. package/lib/config/env-config.d.ts.map +1 -1
  218. package/lib/config/env-config.js +21 -1
  219. package/lib/config/env-config.js.map +1 -1
  220. package/lib/config/index.d.ts +3 -0
  221. package/lib/config/index.d.ts.map +1 -0
  222. package/lib/helpers/DynamicIcon.d.ts +1 -1
  223. package/lib/helpers/DynamicIcon.d.ts.map +1 -1
  224. package/lib/helpers/DynamicIcon.js +16 -17
  225. package/lib/helpers/DynamicIcon.js.map +1 -1
  226. package/lib/hooks/index.d.ts +0 -3
  227. package/lib/hooks/index.d.ts.map +1 -1
  228. package/lib/hooks/useMediaQuery.js.map +1 -1
  229. package/lib/hooks/useScrollThreshold.js.map +1 -1
  230. package/lib/hooks/useTailwindTheme.js.map +1 -1
  231. package/lib/icons.d.ts +2 -0
  232. package/lib/icons.d.ts.map +1 -1
  233. package/lib/icons.js +4 -2
  234. package/lib/icons.js.map +1 -1
  235. package/lib/index.d.ts +1 -1
  236. package/lib/index.d.ts.map +1 -1
  237. package/lib/index.js +1 -1
  238. package/lib/index.js.map +1 -1
  239. package/lib/machines/selectors.d.ts +118 -0
  240. package/lib/machines/selectors.d.ts.map +1 -0
  241. package/lib/machines/settingsMachine.d.ts +25 -2
  242. package/lib/machines/settingsMachine.d.ts.map +1 -1
  243. package/lib/machines/settingsMachine.js +133 -168
  244. package/lib/machines/settingsMachine.js.map +1 -1
  245. package/lib/machines/types.d.ts +107 -9
  246. package/lib/machines/types.d.ts.map +1 -1
  247. package/lib/machines/types.js.map +1 -1
  248. package/lib/module.js.map +1 -1
  249. package/lib/redux/searchReducer.d.ts +1 -1
  250. package/lib/redux/searchReducer.d.ts.map +1 -1
  251. package/lib/redux/searchReducer.js.map +1 -1
  252. package/lib/routes.json +9 -1
  253. package/lib/styles/index.css +602 -372
  254. package/lib/tailwindConfig.d.ts +85 -27
  255. package/lib/tailwindConfig.d.ts.map +1 -1
  256. package/lib/tailwindConfig.js +96 -18
  257. package/lib/tailwindConfig.js.map +1 -1
  258. package/lib/utils/__tests__/analytics-utils.test.d.ts +2 -0
  259. package/lib/utils/__tests__/analytics-utils.test.d.ts.map +1 -0
  260. package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
  261. package/lib/utils/__tests__/configOverrides.test.d.ts.map +1 -0
  262. package/lib/utils/__tests__/menu.test.d.ts +2 -0
  263. package/lib/utils/__tests__/menu.test.d.ts.map +1 -0
  264. package/lib/utils/__tests__/selectors.test.d.ts +2 -0
  265. package/lib/utils/__tests__/selectors.test.d.ts.map +1 -0
  266. package/lib/utils/__tests__/settingsMachine.test.d.ts +2 -0
  267. package/lib/utils/__tests__/settingsMachine.test.d.ts.map +1 -0
  268. package/lib/utils/__tests__/settingsUtils.test.d.ts +2 -0
  269. package/lib/utils/__tests__/settingsUtils.test.d.ts.map +1 -0
  270. package/lib/utils/analytics-utils.d.ts +43 -0
  271. package/lib/utils/analytics-utils.d.ts.map +1 -0
  272. package/lib/utils/analytics.d.ts +48 -0
  273. package/lib/utils/analytics.d.ts.map +1 -0
  274. package/lib/utils/configOverrides.d.ts +213 -0
  275. package/lib/utils/configOverrides.d.ts.map +1 -0
  276. package/lib/utils/configOverrides.js +91 -0
  277. package/lib/utils/configOverrides.js.map +1 -0
  278. package/lib/utils/isBrowser/index.js.map +1 -1
  279. package/lib/utils/settingsUtils.d.ts +20 -0
  280. package/lib/utils/settingsUtils.d.ts.map +1 -0
  281. package/lib/utils/settingsUtils.js +74 -0
  282. package/lib/utils/settingsUtils.js.map +1 -0
  283. package/lib/utils/utils/index.js.map +1 -1
  284. package/package.json +7 -15
  285. package/lib/components/Layout/GlobalHeader/Logo.d.ts +0 -4
  286. package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +0 -1
  287. package/lib/components/Layout/GlobalHeader/Logo.js +0 -141
  288. package/lib/components/Layout/GlobalHeader/Logo.js.map +0 -1
  289. package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -5
  290. package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
  291. package/lib/components/Layout/Sidebar/Sidebar.js +0 -186
  292. package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
  293. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -4
  294. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
  295. package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -183
  296. package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
  297. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +0 -3
  298. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +0 -1
  299. package/lib/components/SettingDrawer/CheckBoxTheme.js +0 -123
  300. package/lib/components/SettingDrawer/CheckBoxTheme.js.map +0 -1
  301. package/lib/components/SettingDrawer/LayoutChange.d.ts +0 -3
  302. package/lib/components/SettingDrawer/LayoutChange.d.ts.map +0 -1
  303. package/lib/components/SettingDrawer/LayoutChange.js +0 -123
  304. package/lib/components/SettingDrawer/LayoutChange.js.map +0 -1
  305. package/lib/components/SettingDrawer/NavigationsModes.d.ts +0 -3
  306. package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +0 -1
  307. package/lib/components/SettingDrawer/NavigationsModes.js +0 -289
  308. package/lib/components/SettingDrawer/NavigationsModes.js.map +0 -1
  309. package/lib/components/SettingDrawer/RegionalSettings.d.ts +0 -3
  310. package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +0 -1
  311. package/lib/components/SettingDrawer/RegionalSettings.js +0 -740
  312. package/lib/components/SettingDrawer/RegionalSettings.js.map +0 -1
  313. package/lib/components/SettingDrawer/Switch/index.d.ts +0 -3
  314. package/lib/components/SettingDrawer/Switch/index.d.ts.map +0 -1
  315. package/lib/components/SettingDrawer/Switch/index.js +0 -22
  316. package/lib/components/SettingDrawer/Switch/index.js.map +0 -1
  317. package/lib/components/SettingDrawer/ThemeColor.d.ts +0 -3
  318. package/lib/components/SettingDrawer/ThemeColor.d.ts.map +0 -1
  319. package/lib/components/SettingDrawer/ThemeColor.js +0 -35
  320. package/lib/components/SettingDrawer/ThemeColor.js.map +0 -1
  321. package/lib/components/SettingDrawer/ThemeSelector.d.ts +0 -3
  322. package/lib/components/SettingDrawer/ThemeSelector.d.ts.map +0 -1
  323. package/lib/components/SettingDrawer/ThemeSelector.js +0 -18
  324. package/lib/components/SettingDrawer/ThemeSelector.js.map +0 -1
  325. package/lib/components/SettingDrawer/WebFontsSelector.d.ts +0 -3
  326. package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +0 -1
  327. package/lib/components/SettingDrawer/WebFontsSelector.js +0 -24
  328. package/lib/components/SettingDrawer/WebFontsSelector.js.map +0 -1
  329. package/lib/components/SettingDrawer/types.d.ts.map +0 -1
  330. package/lib/components/ThemeProvider/ThemeProvider.d.ts +0 -8
  331. package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +0 -1
  332. package/lib/components/ThemeProvider/ThemeProvider.js +0 -60
  333. package/lib/components/ThemeProvider/ThemeProvider.js.map +0 -1
  334. package/lib/components/ThemeProvider/ThemeToggle.d.ts +0 -7
  335. package/lib/components/ThemeProvider/ThemeToggle.d.ts.map +0 -1
  336. package/lib/components/ThemeProvider/ThemeToggle.js +0 -50
  337. package/lib/components/ThemeProvider/ThemeToggle.js.map +0 -1
  338. package/lib/components/ThemeProvider/index.d.ts +0 -4
  339. package/lib/components/ThemeProvider/index.d.ts.map +0 -1
  340. package/lib/components/ThemeProvider/themes/airbnb.d.ts +0 -3
  341. package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +0 -1
  342. package/lib/components/ThemeProvider/themes/airbnb.js +0 -186
  343. package/lib/components/ThemeProvider/themes/airbnb.js.map +0 -1
  344. package/lib/components/ThemeProvider/themes/default.d.ts +0 -3
  345. package/lib/components/ThemeProvider/themes/default.d.ts.map +0 -1
  346. package/lib/components/ThemeProvider/themes/default.js +0 -183
  347. package/lib/components/ThemeProvider/themes/default.js.map +0 -1
  348. package/lib/components/ThemeProvider/themes/github.d.ts +0 -3
  349. package/lib/components/ThemeProvider/themes/github.d.ts.map +0 -1
  350. package/lib/components/ThemeProvider/themes/github.js +0 -190
  351. package/lib/components/ThemeProvider/themes/github.js.map +0 -1
  352. package/lib/components/ThemeProvider/themes/index.d.ts +0 -15
  353. package/lib/components/ThemeProvider/themes/index.d.ts.map +0 -1
  354. package/lib/components/ThemeProvider/themes/index.js +0 -7
  355. package/lib/components/ThemeProvider/themes/index.js.map +0 -1
  356. package/lib/components/ThemeProvider/themes/slack.d.ts +0 -3
  357. package/lib/components/ThemeProvider/themes/slack.d.ts.map +0 -1
  358. package/lib/components/ThemeProvider/themes/slack.js +0 -188
  359. package/lib/components/ThemeProvider/themes/slack.js.map +0 -1
  360. package/lib/components/ThemeProvider/themes/spotify.d.ts +0 -3
  361. package/lib/components/ThemeProvider/themes/spotify.d.ts.map +0 -1
  362. package/lib/components/ThemeProvider/themes/spotify.js +0 -189
  363. package/lib/components/ThemeProvider/themes/spotify.js.map +0 -1
  364. package/lib/components/ThemeProvider/types.d.ts +0 -112
  365. package/lib/components/ThemeProvider/types.d.ts.map +0 -1
  366. package/lib/components/UI/CardList.d.ts +0 -61
  367. package/lib/components/UI/CardList.d.ts.map +0 -1
  368. package/lib/components/UI/CardList.js +0 -43
  369. package/lib/components/UI/CardList.js.map +0 -1
  370. package/lib/components/UI/CategoriesTypeList.d.ts +0 -29
  371. package/lib/components/UI/CategoriesTypeList.d.ts.map +0 -1
  372. package/lib/components/UI/CategoriesTypeList.js +0 -140
  373. package/lib/components/UI/CategoriesTypeList.js.map +0 -1
  374. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +0 -83
  375. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +0 -1
  376. package/lib/components/UI/LazyLoadingGoogleMarker.js +0 -107
  377. package/lib/components/UI/LazyLoadingGoogleMarker.js.map +0 -1
  378. package/lib/components/UI/Pagination.d.ts +0 -6
  379. package/lib/components/UI/Pagination.d.ts.map +0 -1
  380. package/lib/components/UI/Pagination.js +0 -59
  381. package/lib/components/UI/Pagination.js.map +0 -1
  382. package/lib/components/UI/ParamSearchResultContainer.d.ts +0 -99
  383. package/lib/components/UI/ParamSearchResultContainer.d.ts.map +0 -1
  384. package/lib/components/UI/ParamSearchResultContainer.js +0 -120
  385. package/lib/components/UI/ParamSearchResultContainer.js.map +0 -1
  386. package/lib/components/UI/PropertyCard.d.ts +0 -24
  387. package/lib/components/UI/PropertyCard.d.ts.map +0 -1
  388. package/lib/components/UI/PropertyCard.js +0 -375
  389. package/lib/components/UI/PropertyCard.js.map +0 -1
  390. package/lib/components/UI/PropertyCardOnMap.d.ts +0 -10
  391. package/lib/components/UI/PropertyCardOnMap.d.ts.map +0 -1
  392. package/lib/components/UI/PropertyCardOnMap.js +0 -108
  393. package/lib/components/UI/PropertyCardOnMap.js.map +0 -1
  394. package/lib/components/UI/VehicleCard/PricePopover.d.ts +0 -8
  395. package/lib/components/UI/VehicleCard/PricePopover.d.ts.map +0 -1
  396. package/lib/components/UI/VehicleCard/PricePopover.js +0 -98
  397. package/lib/components/UI/VehicleCard/PricePopover.js.map +0 -1
  398. package/lib/components/UI/VehicleCard/VehicleBadge.d.ts +0 -7
  399. package/lib/components/UI/VehicleCard/VehicleBadge.d.ts.map +0 -1
  400. package/lib/components/UI/VehicleCard/VehicleFeature.d.ts +0 -9
  401. package/lib/components/UI/VehicleCard/VehicleFeature.d.ts.map +0 -1
  402. package/lib/components/UI/VehicleCard/VehicleFeature.js +0 -23
  403. package/lib/components/UI/VehicleCard/VehicleFeature.js.map +0 -1
  404. package/lib/components/UI/VehicleCard/types.d.ts +0 -59
  405. package/lib/components/UI/VehicleCard/types.d.ts.map +0 -1
  406. package/lib/components/UI/VehicleCard.d.ts +0 -15
  407. package/lib/components/UI/VehicleCard.d.ts.map +0 -1
  408. package/lib/components/UI/VehicleCard.js +0 -166
  409. package/lib/components/UI/VehicleCard.js.map +0 -1
  410. package/lib/components/UI/VehicleCardList.d.ts +0 -14
  411. package/lib/components/UI/VehicleCardList.d.ts.map +0 -1
  412. package/lib/components/UI/VehicleCardList.js +0 -38
  413. package/lib/components/UI/VehicleCardList.js.map +0 -1
  414. package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +0 -90
  415. package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +0 -1
  416. package/lib/components/UI/icons/LocationIcon.d.ts +0 -7
  417. package/lib/components/UI/icons/LocationIcon.d.ts.map +0 -1
  418. package/lib/components/UI/icons/LocationIcon.js +0 -18
  419. package/lib/components/UI/icons/LocationIcon.js.map +0 -1
  420. package/lib/components/UI/icons/index.d.ts +0 -2
  421. package/lib/components/UI/icons/index.d.ts.map +0 -1
  422. package/lib/components/UI/index.d.ts +0 -10
  423. package/lib/components/UI/index.d.ts.map +0 -1
  424. package/lib/components/typings.js +0 -6
  425. package/lib/components/typings.js.map +0 -1
  426. package/lib/hooks/use-get-current-lat-long.d.ts +0 -18
  427. package/lib/hooks/use-get-current-lat-long.d.ts.map +0 -1
  428. package/lib/hooks/use-get-current-lat-long.js +0 -29
  429. package/lib/hooks/use-get-current-lat-long.js.map +0 -1
  430. package/lib/hooks/useWindowSize.d.ts +0 -6
  431. package/lib/hooks/useWindowSize.d.ts.map +0 -1
  432. package/lib/hooks/useWindowSize.js +0 -20
  433. package/lib/hooks/useWindowSize.js.map +0 -1
  434. package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +0 -6
  435. package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +0 -1
  436. package/lib/middlewares/bookingCarRentalMiddleware.d.ts +0 -6
  437. package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +0 -1
  438. package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +0 -7
  439. package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +0 -1
  440. package/lib/middlewares/datasourcesMiddleware.d.ts +0 -6
  441. package/lib/middlewares/datasourcesMiddleware.d.ts.map +0 -1
  442. package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +0 -7
  443. package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +0 -1
@@ -0,0 +1,20 @@
1
+ import*as React from'react';function Switch({
2
+ value = false,
3
+ onChange,
4
+ className = ''
5
+ }) {
6
+ const handleClick = () => {
7
+ onChange?.(!value);
8
+ };
9
+ return React.createElement("button", {
10
+ type: "button",
11
+ role: "switch",
12
+ "aria-checked": value,
13
+ className: `relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 ${value ? 'bg-indigo-600' : 'bg-gray-200'} ${className}`,
14
+ onClick: handleClick
15
+ }, React.createElement("span", {
16
+ className: "sr-only"
17
+ }, "Toggle switch"), React.createElement("span", {
18
+ className: `inline-block h-4 w-4 transform rounded-full bg-white transition-transform ${value ? 'translate-x-6' : 'translate-x-1'}`
19
+ }));
20
+ }export{Switch};//# sourceMappingURL=Switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.js","sources":["../../../../src/components/SettingDrawer/components/Switch.tsx"],"sourcesContent":[null],"names":[],"mappings":"4BAGM,SAAU,MAAM,CAAC;OACnB,GAAM,KAAA;AACF,EAAA,QAAA;AACJ,EAAA,SAAE,GAAA;AAEF,CAAA,EAAA;QAUQ,WAAA,GAAA,MAAA;AACA,IAAA,QAAA,GAAA,CAAA,KAAA,CAAA;AAOZ,EAAC,CAAA;;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { IThemeColorProps } from '../utils/types';
3
+ export declare function ThemeColor(props: IThemeColorProps): React.JSX.Element;
4
+ //# sourceMappingURL=ThemeColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeColor.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/ThemeColor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAIlD,wBAAgB,UAAU,CAAC,KAAK,EAAE,gBAAgB,qBAgDjD"}
@@ -0,0 +1,45 @@
1
+ import*as React 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';function ThemeColor(props) {
2
+ const {
3
+ color,
4
+ changeSetting,
5
+ settings,
6
+ location,
7
+ routePattern,
8
+ applyToAllRoutes = false
9
+ } = props;
10
+ const {
11
+ isMobile
12
+ } = useMediaQuery();
13
+ const currentRoute = routePattern || location?.pathname || '/';
14
+ const deviceType = isMobile ? 'mobile' : 'desktop';
15
+ // Use getSettingValue to get the correct primaryColor based on applyToAllRoutes
16
+ const getPrimaryColorValue = () => {
17
+ return getSettingValue(settings, 'primaryColor', applyToAllRoutes, currentRoute, deviceType, '#1890ff');
18
+ };
19
+ if (!color || color.length < 1) {
20
+ return null;
21
+ }
22
+ return React.createElement("div", {
23
+ className: "flex flex-row space-x-2"
24
+ }, color.map((item, index) => {
25
+ return React.createElement("div", {
26
+ key: index,
27
+ className: "w-5 h-5 rounded cursor-pointer shadow-sm pl-1 flex items-center justify-center",
28
+ style: {
29
+ backgroundColor: item.color
30
+ },
31
+ onClick: () => {
32
+ changeSetting('primaryColor', item.color);
33
+ }
34
+ }, getPrimaryColorValue() === item.color ? React.createElement("svg", {
35
+ xmlns: "http://www.w3.org/2000/svg",
36
+ className: "h-4 w-4 text-white mb-1",
37
+ viewBox: "0 0 20 20",
38
+ fill: "currentColor"
39
+ }, React.createElement("path", {
40
+ fillRule: "evenodd",
41
+ d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
42
+ clipRule: "evenodd"
43
+ })) : '');
44
+ }));
45
+ }export{ThemeColor};//# sourceMappingURL=ThemeColor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeColor.js","sources":["../../../../src/components/SettingDrawer/components/ThemeColor.tsx"],"sourcesContent":[null],"names":[],"mappings":"6OAKM,SAAU,UAAU,CAAC,KAAuB,EAAA;AAC9C,EAAA,MAAA;AACA,IAAA,KAAA;IACA,aAAM;IACN,QAAM;IAEN,QAAA;IACA,YAAM;AACF,IAAA,gBAAO,GAAA;AACX,GAAA,GAAE,KAAA;QAEE;AACA,IAAA;MACH,aAAA,EAAA;AAED,EAAA,MAAA,YACI,GAAA,YAAA,IAAA,QAAK,EAAA;QAEG;AAMY;4BAGH,GAAA,MAAoB;0BAOb,CAAA,QAAA,EAAA,gBACa,gBACP,EAAA,YAAA,EAAA,UAAA,EAAA,SAAA,CAAA;;AAYtC,EAAC,IAAA,CAAA,KAAA,IAAA,KAAA,CAAA,MAAA,GAAA,CAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { ThemeSelectorProps } from '../utils/types';
3
+ export declare function ThemeSelector({ value, onChange, options }: ThemeSelectorProps): React.JSX.Element;
4
+ //# sourceMappingURL=ThemeSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/ThemeSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,kBAAkB,qBAgB7E"}
@@ -0,0 +1,16 @@
1
+ import*as React from'react';function ThemeSelector({
2
+ value,
3
+ onChange,
4
+ options
5
+ }) {
6
+ return React.createElement("div", {
7
+ className: "relative"
8
+ }, React.createElement("select", {
9
+ value: value,
10
+ onChange: e => onChange(e.target.value),
11
+ className: "w-full rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-200"
12
+ }, options.map(option => React.createElement("option", {
13
+ key: option.key,
14
+ value: option.key
15
+ }, option.title))));
16
+ }export{ThemeSelector};//# sourceMappingURL=ThemeSelector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeSelector.js","sources":["../../../../src/components/SettingDrawer/components/ThemeSelector.tsx"],"sourcesContent":[null],"names":[],"mappings":"4BAGM,SAAU,aAAa,CAAC;AAC1B,EAAA,KAAA;UAEQ;AAaZ,EAAC;;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { WebFontsSelectorProps } from '../utils/types';
3
+ export declare const WebFontsSelector: React.FC<WebFontsSelectorProps>;
4
+ //# sourceMappingURL=WebFontsSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebFontsSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/WebFontsSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAiB5D,CAAC"}
@@ -0,0 +1,22 @@
1
+ import*as React from'react';const WebFontsSelector = ({
2
+ value,
3
+ onChange,
4
+ options
5
+ }) => {
6
+ return React.createElement("div", {
7
+ className: "relative"
8
+ }, React.createElement("select", {
9
+ value: value,
10
+ onChange: e => onChange(e.target.value),
11
+ className: "w-full rounded-md border border-gray-300 bg-white py-2 pl-3 pr-10 text-left shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-200",
12
+ style: {
13
+ fontFamily: value
14
+ }
15
+ }, options.map(option => React.createElement("option", {
16
+ key: option.key,
17
+ value: option.key,
18
+ style: {
19
+ fontFamily: option.key
20
+ }
21
+ }, option.title))));
22
+ };export{WebFontsSelector};//# sourceMappingURL=WebFontsSelector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebFontsSelector.js","sources":["../../../../src/components/SettingDrawer/components/WebFontsSelector.tsx"],"sourcesContent":[null],"names":[],"mappings":"4BAGO,MAAM,gBAAgB,GAAoC,CAAC;AAC9D,EAAA,KAAA;AAEQ,EAAA,QAAA;AAcZ,EAAE;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,18 @@
1
+ interface UseSettingsOperationsProps {
2
+ actor: any;
3
+ settingState: any;
4
+ changedSettings: any;
5
+ }
6
+ /**
7
+ * Custom hook to handle all settings operations (save, reset, copy)
8
+ */
9
+ export declare function useSettingsOperations({ actor, settingState, changedSettings }: UseSettingsOperationsProps): {
10
+ copied: boolean;
11
+ copiedModified: boolean;
12
+ handleCopySettings: () => Promise<void>;
13
+ handleCopyModifiedSettings: () => Promise<void>;
14
+ handleSaveSettings: () => Promise<void>;
15
+ handleResetSettings: () => Promise<void>;
16
+ };
17
+ export {};
18
+ //# sourceMappingURL=useSettingsOperations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSettingsOperations.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/hooks/useSettingsOperations.ts"],"names":[],"mappings":"AASA,UAAU,0BAA0B;IAChC,KAAK,EAAE,GAAG,CAAC;IACX,YAAY,EAAE,GAAG,CAAC;IAClB,eAAe,EAAE,GAAG,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,EAAE,0BAA0B;;;;;;;EA8HzG"}
@@ -0,0 +1,115 @@
1
+ import {useState}from'react';import {useWriteSettingsMutation,useResetApplicationUiSettingsMutation}from'common/lib/generated/generated.js';import {ConfigCollectionName,ConfigFragmentName}from'common/lib/generated/generated-models.js';import {generateCdecodeUri,DEFAULT_CONTRIBUTION_TENANT_ID}from'@adminide-stack/core';import {config}from'../../../config/env-config.js';import isBrowser from'../../../utils/isBrowser/index.js';import {clearSettingsCookies,transformSettingsForBackend,getCookieSettings}from'../utils/transformers.js';import {RESET_CONFIRMATION_MESSAGE,COPY_TIMEOUT_MS}from'../utils/constants.js';/**
2
+ * Custom hook to handle all settings operations (save, reset, copy)
3
+ */
4
+ function useSettingsOperations({
5
+ actor,
6
+ settingState,
7
+ changedSettings
8
+ }) {
9
+ const [copied, setCopied] = useState(false);
10
+ const [copiedModified, setCopiedModified] = useState(false);
11
+ // Mutations
12
+ const [writeSettingsMutation] = useWriteSettingsMutation();
13
+ const [resetApplicationSettings] = useResetApplicationUiSettingsMutation();
14
+ // Generate resource URI for API calls
15
+ const resource = generateCdecodeUri(DEFAULT_CONTRIBUTION_TENANT_ID, {
16
+ resourceType: ConfigCollectionName.Applications,
17
+ resourceId: config.APPLICATION_ID,
18
+ idField: 'appId'
19
+ }, {}, ConfigFragmentName.UiSettings);
20
+ /**
21
+ * Copy all current settings to clipboard
22
+ */
23
+ const handleCopySettings = async () => {
24
+ if (!isBrowser()) return;
25
+ try {
26
+ const settings = JSON.stringify(settingState, null, 2);
27
+ await navigator.clipboard.writeText(settings);
28
+ setCopied(true);
29
+ setTimeout(() => setCopied(false), COPY_TIMEOUT_MS);
30
+ } catch (err) {
31
+ console.error('Failed to copy settings:', err);
32
+ }
33
+ };
34
+ /**
35
+ * Copy modified settings from cookies to clipboard
36
+ */
37
+ const handleCopyModifiedSettings = async () => {
38
+ if (!isBrowser()) return;
39
+ try {
40
+ const parsedSettings = getCookieSettings();
41
+ if (parsedSettings) {
42
+ await navigator.clipboard.writeText(JSON.stringify(parsedSettings, null, 2));
43
+ setCopiedModified(true);
44
+ setTimeout(() => setCopiedModified(false), COPY_TIMEOUT_MS);
45
+ }
46
+ } catch (err) {
47
+ console.error('Failed to copy modified settings:', err);
48
+ }
49
+ };
50
+ /**
51
+ * Save changed settings to backend
52
+ */
53
+ const handleSaveSettings = async () => {
54
+ if (!isBrowser()) return;
55
+ try {
56
+ // Transform changedSettings to wrap in uilayout structure for backend
57
+ const wrappedSettings = transformSettingsForBackend(changedSettings);
58
+ const variables = {
59
+ editingUri: resource,
60
+ settings: wrappedSettings
61
+ };
62
+ const response = await writeSettingsMutation({
63
+ variables
64
+ });
65
+ if (response.data) {
66
+ if (actor) actor.send({
67
+ type: 'UISETTING_RESET_CHANGED_SETTINGS'
68
+ });
69
+ }
70
+ } catch (err) {
71
+ console.error('❌ Failed to save settings:', err);
72
+ }
73
+ };
74
+ /**
75
+ * Reset all settings (database + cookies) and reload
76
+ */
77
+ const handleResetSettings = async () => {
78
+ if (!isBrowser()) return;
79
+ const confirmed = window.confirm(RESET_CONFIRMATION_MESSAGE);
80
+ if (!confirmed) return;
81
+ try {
82
+ // Step 1: Delete uiSettings from database
83
+ try {
84
+ await resetApplicationSettings({
85
+ variables: {
86
+ appId: config.APPLICATION_ID
87
+ }
88
+ });
89
+ } catch (dbErr) {
90
+ console.error('⚠️ Failed to delete database uiSettings:', dbErr);
91
+ }
92
+ // Step 2: Clear cookies
93
+ await clearSettingsCookies();
94
+ // Step 3: Reset XState machine
95
+ if (actor) {
96
+ actor.send({
97
+ type: 'UISETTING_RESET_CHANGED_SETTINGS'
98
+ });
99
+ }
100
+ } catch (err) {
101
+ console.error('❌ Error resetting settings:', err);
102
+ alert('Failed to reset settings. Please try again.');
103
+ }
104
+ };
105
+ return {
106
+ // State
107
+ copied,
108
+ copiedModified,
109
+ // Handlers
110
+ handleCopySettings,
111
+ handleCopyModifiedSettings,
112
+ handleSaveSettings,
113
+ handleResetSettings
114
+ };
115
+ }export{useSettingsOperations};//# sourceMappingURL=useSettingsOperations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSettingsOperations.js","sources":["../../../../src/components/SettingDrawer/hooks/useSettingsOperations.ts"],"sourcesContent":[null],"names":[],"mappings":"qmBAeA;;AAEG;AACG,SAAU,qBAAqB,CAAC;OAClC;cACO;;AAGP,CAAA,EAAA;AACA,EAAA,MAAA,CAAA,MAAO,EAAA,SAAA,CAAA,GAAA,QAAyB,CAAG,KAAA,CAAA;QAEnC,CAAA,cAAA,EAAA,iBAAsC,CAAA,GAAA,QAAA,CAAA,KAAA,CAAA;AACtC;QAGQ,CAAA,qBAAc,CAAA,GAAA,wBAAiC,EAAA;QAC/C,CAAA,wBAAmB,CAAA,GAAA,qCAAc,EAAA;AACjC;AACH,EAAA,cAED,GAAA,kBAAmB,CAAA,8BACrB,EAAA;AAEF,IAAA,YAAA,EAAA,oBAAA,CAAA,YAAA;;AAEG,IAAA,OAAA,EAAA;AACH,GAAA,EAAA,EAAA,EAAA,kBAAM,CAAkB,UAAQ,CAAA;;;AAG5B;AACI,EAAA,MAAA,kBAAc,GAAG,YAAK;kBAChB,EAAA,EAAA;;YAEN,QAAA,GAAW,IAAG,CAAE,SAAC,CAAS,YAAS,EAAA,IAAA,EAAA,CAAA,CAAA;YACtC,SAAA,CAAA,SAAA,CAAA,SAAA,CAAA,QAAA,CAAA;eAAQ,CAAA,IAAK,CAAC;AACX,MAAA,UAAA,CAAA,MAAQ,iCAAkC,CAAG;aAChD,GAAA,EAAA;AACL,MAAE,OAAA,CAAA,KAAA,CAAA,0BAAA,EAAA,GAAA,CAAA;AAEF,IAAA;;AAEG;AACH;;kCAC6B,GAAA,YAAA;AAEzB,IAAA,IAAA,CAAA,SAAK,EAAA,EAAA;AACD,IAAA,IAAA;YACA,cAAI,GAAA,iBAAiB,EAAA;AACjB,MAAA,IAAA;uBACA,CAAA,SAAiB,CAAC,SAAM,CAAA,IAAA,CAAA,SAAA,CAAA,cAAA,EAAA,IAAA,EAAA,CAAA,CAAA,CAAA;yBACxB,CAAU,IAAI,CAAA;kBACjB,CAAA,MAAA,iBAAA,CAAA,KAAA,CAAA,EAAA,eAAA,CAAA;;aACH,GAAO,EAAG;AACR,MAAA,OAAA,CAAA,KAAO,CAAC,yCAAyC;;AAEzD,EAAA,CAAA;AAEA;;AAEG;AACH,EAAA,MAAA,kBAAM,GAAkB,YAAY;QAChC,CAAA,aAAc;;AAEd;YACI,eAAA,GAAA,2BAAA,CAAA,eAAA,CAAA;AACA,MAAA,MAAA;AACA,QAAA,UAAM,UAAS;AACX,QAAA,QAAA,EAAA;AACA,OAAA;oBACF,GAAA,MAAA,qBAAA,CAAA;;AAIF,OAAA,CAAA;AACI,MAAA,IAAA,QAAA,CAAA,IAAI,EAAK;wBAAE,CAAK,KAAK;cACxB,EAAA;SACJ,CAAA;;AACG,IAAA,CAAA,CAAA,OAAA,GAAA,EAAA;aACH,CAAA,KAAA,CAAA,4BAAA,EAAA,GAAA,CAAA;AACL,IAAA;AAEA,EAAA,CAAA;;AAEG;AACH;QACI,mBAAgB,GAAA,YAAA;kBAAE,EAAO,EAAA;UAEzB,SAAM,GAAA,MAAY,CAAA,kCAAe,CAAA;AAEjC,IAAA,IAAA,CAAA,SAAK,EAAA;;AAEL;;AAEI,QAAA,MAAA,wBAAK,CAAA;AACD,UAAA,SAAA,EAAA;AACI,YAAA,KAAA,EAAA,MAAA,CAAA;;AAEC,SAAA,CAAA;AACJ,MAAA,CAAA,CAAA,OAAA,KAAE,EAAA;eACN,CAAA,KAAA,CAAA,0CAAA,EAAA,KAAA,CAAA;;AACG;YACJ,oBAAC,EAAA;;eAGD,EAAA;aAEA,CAAA,IAAA,CAAA;cACA,EAAI;;AAEI,MAAA;AACH,IAAA,CAAA,CAAA,OAAA,GAAA,EAAC;aACL,CAAA,KAAA,CAAA,6BAAA,EAAA,GAAA,CAAA;WACJ,CAAA,6CAAA,CAAA;;AACG,EAAA,CAAA;;;AAGR,IAAA,MAAE;IAEF,cAAO;;sBAEG;8BACQ;sBAEH;;;"}
@@ -0,0 +1,11 @@
1
+ export declare const THEME_OPTIONS: {
2
+ key: string;
3
+ title: string;
4
+ }[];
5
+ export declare const FONT_OPTIONS: {
6
+ key: string;
7
+ title: string;
8
+ }[];
9
+ export declare const COPY_TIMEOUT_MS = 2000;
10
+ export declare const RESET_CONFIRMATION_MESSAGE = "Are you sure you want to reset all settings? This will delete all customizations from database and cookies, then reload the page.";
11
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/utils/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa;;;GAMzB,CAAC;AAGF,eAAO,MAAM,YAAY;;;GAmBxB,CAAC;AAGF,eAAO,MAAM,eAAe,OAAO,CAAC;AAGpC,eAAO,MAAM,0BAA0B,sIACgG,CAAC"}
@@ -0,0 +1,77 @@
1
+ // Theme options for the settings drawer
2
+ const THEME_OPTIONS = [{
3
+ key: 'default',
4
+ title: 'Default'
5
+ }, {
6
+ key: 'github',
7
+ title: 'Github Theme'
8
+ }, {
9
+ key: 'slack',
10
+ title: 'Slack Theme'
11
+ }, {
12
+ key: 'airbnb',
13
+ title: 'Airbnb Theme'
14
+ }, {
15
+ key: 'spotify',
16
+ title: 'Spotify Theme'
17
+ }];
18
+ // Font options for the settings drawer
19
+ const FONT_OPTIONS = [{
20
+ key: 'Poppins, sans-serif',
21
+ title: 'Poppins'
22
+ }, {
23
+ key: 'Roboto, sans-serif',
24
+ title: 'Roboto'
25
+ }, {
26
+ key: 'Open Sans, sans-serif',
27
+ title: 'Open Sans'
28
+ }, {
29
+ key: 'Montserrat, sans-serif',
30
+ title: 'Montserrat'
31
+ }, {
32
+ key: 'Lato, sans-serif',
33
+ title: 'Lato'
34
+ }, {
35
+ key: 'Nunito, sans-serif',
36
+ title: 'Nunito'
37
+ }, {
38
+ key: 'Ubuntu, sans-serif',
39
+ title: 'Ubuntu'
40
+ }, {
41
+ key: 'Inter, sans-serif',
42
+ title: 'Inter'
43
+ }, {
44
+ key: 'Arial, sans-serif',
45
+ title: 'Arial'
46
+ }, {
47
+ key: 'Helvetica, sans-serif',
48
+ title: 'Helvetica'
49
+ }, {
50
+ key: 'Tahoma, sans-serif',
51
+ title: 'Tahoma'
52
+ }, {
53
+ key: 'Trebuchet MS, sans-serif',
54
+ title: 'Trebuchet MS'
55
+ }, {
56
+ key: 'Georgia, serif',
57
+ title: 'Georgia'
58
+ }, {
59
+ key: 'Bookman, serif',
60
+ title: 'Bookman'
61
+ }, {
62
+ key: 'Geneva, sans-serif',
63
+ title: 'Geneva'
64
+ }, {
65
+ key: 'Lucida Console, monospace',
66
+ title: 'Lucida Console'
67
+ }, {
68
+ key: 'Courier New, monospace',
69
+ title: 'Courier New'
70
+ }, {
71
+ key: 'Lucida Sans, sans-serif',
72
+ title: 'Lucida Sans'
73
+ }];
74
+ // Timeouts
75
+ const COPY_TIMEOUT_MS = 2000;
76
+ // Confirmation messages
77
+ const RESET_CONFIRMATION_MESSAGE = 'Are you sure you want to reset all settings? This will delete all customizations from database and cookies, then reload the page.';export{COPY_TIMEOUT_MS,FONT_OPTIONS,RESET_CONFIRMATION_MESSAGE,THEME_OPTIONS};//# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../../../src/components/SettingDrawer/utils/constants.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACO,MAAM,aAAa,GAAG,CAAA;AACzB,EAAA,GAAA,WAAO;AACP,EAAA,OAAK;AACL,CAAA,EAAA;AACA,EAAA,GAAA,UAAO;AACP,EAAA,OAAK;CACR,EAAC;AAEF,EAAA,GAAA,EAAA,OAAA;AACA,EAAA,KAAO,EAAA;AACH,CAAA,EAAA;AACA,EAAA,GAAA,UAAO;AACP,EAAA,OAAK;AACL,CAAA,EAAA;AACA,EAAA,GAAA,WAAO;AACP,EAAA,OAAK;AACL,CAAA;AACA;AACO,MAAA,YAAA,GAAA,CAAA;AACP,EAAA,GAAA,uBAAO;AACP,EAAA,OAAK;AACL,CAAA,EAAA;AACA,EAAA,GAAA,sBAAuB;AACvB,EAAA,OAAK;AACL,CAAA,EAAA;AACA,EAAA,GAAA,yBAAO;AACP,EAAA,OAAK;AACL,CAAA,EAAA;EACF,GAAA,EAAA,wBAAA;AAEF,EAAA,KAAA,EAAA;AACA,CAAA,EAAA;AAEA,EAAA,GAAA,EAAA,kBAAwB;AACxB,EAAA,KAAO,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,37 @@
1
+ import { ProSettings } from '@admin-layout/client';
2
+ import { MergerSettingsType, SettingDrawerProps } from './types';
3
+ /**
4
+ * Initialize settings from URL parameters and apply theme
5
+ */
6
+ export declare function initState(settings: Partial<MergerSettingsType<ProSettings>>, onSettingChange: SettingDrawerProps['onSettingChange'], publicPath?: string, oldSetting?: Partial<MergerSettingsType<ProSettings>>): void;
7
+ /**
8
+ * Update theme by dynamically loading CSS file
9
+ */
10
+ export declare function updateTheme(dark?: boolean | any, color?: string, publicPath?: string): void;
11
+ /**
12
+ * Get theme list with colors based on current settings and device
13
+ */
14
+ export declare function useThemeList(settings: Partial<ProSettings>, location: any, routePattern?: string): {
15
+ colorList: {
16
+ dark: {
17
+ key: string;
18
+ color: string;
19
+ theme?: "dark" | "light";
20
+ }[];
21
+ light: {
22
+ key: string;
23
+ color: string;
24
+ theme?: "dark" | "light";
25
+ }[];
26
+ };
27
+ themeList: {
28
+ key: string;
29
+ title: string;
30
+ }[];
31
+ };
32
+ /**
33
+ * Parse a dot-separated path into a nested object structure
34
+ * Example: parseSettingPath('a.b.c', 'value') => { a: { b: { c: 'value' } } }
35
+ */
36
+ export declare function parseSettingPath(path: string, value: any): any;
37
+ //# sourceMappingURL=helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/utils/helper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEjE;;GAEG;AACH,wBAAgB,SAAS,CACrB,QAAQ,EAAE,OAAO,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC,EAClD,eAAe,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,EACtD,UAAU,CAAC,EAAE,MAAM,EACnB,UAAU,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,WAAW,CAAC,CAAC,QAkExD;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,GAAG,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,UAAU,SAAW,QA+CtF;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,YAAY,CAAC,EAAE,MAAM;;;iBAsGpF,MAAM;mBACJ,MAAM;oBACL,MAAM,GAAG,OAAO;;;iBAUnB,MAAM;mBACJ,MAAM;oBACL,MAAM,GAAG,OAAO;;;;;;;EA8C/B;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,GAAG,CAoB9D"}
@@ -0,0 +1,154 @@
1
+ import'qs';import {useTranslation}from'react-i18next';import'../../../utils/isBrowser/index.js';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../../hooks/useMediaQuery.js';/**
2
+ * Get theme list with colors based on current settings and device
3
+ */
4
+ function useThemeList(settings, location, routePattern) {
5
+ const {
6
+ t
7
+ } = useTranslation('settings');
8
+ const {
9
+ isMobile
10
+ } = useMediaQuery();
11
+ const currentRoute = routePattern || location?.pathname || '/';
12
+ const deviceType = isMobile ? 'mobile' : 'desktop';
13
+ // Helper function to get value from settings with route/device override support
14
+ const getUILayoutValue = path => {
15
+ const routeDeviceKey = `[${currentRoute}][${deviceType}]`;
16
+ const uiOverride = settings?.uiSettings?.[routeDeviceKey];
17
+ if (uiOverride) {
18
+ const value = path.split('.').reduce((obj, key) => obj?.[key], uiOverride);
19
+ if (value !== undefined) return value;
20
+ }
21
+ return path.split('.').reduce((obj, key) => obj?.[key], settings);
22
+ };
23
+ const deviceLayout = {
24
+ navigationMode: getUILayoutValue('navigationMode'),
25
+ sideMenuType: getUILayoutValue('sideMenuType'),
26
+ contentWidth: getUILayoutValue('contentWidth'),
27
+ fixedHeader: getUILayoutValue('fixedHeader'),
28
+ fixedSidebar: getUILayoutValue('fixedSidebar'),
29
+ splitMenus: getUILayoutValue('splitMenus')
30
+ };
31
+ let list = [];
32
+ const defaultList = [
33
+ //@sri following are needed otherwise we need make above plugin to work
34
+ {
35
+ key: 'dust',
36
+ fileName: 'dust.css',
37
+ modifyVars: {
38
+ '@primary-color': '#F5222D'
39
+ }
40
+ }, {
41
+ key: 'volcano',
42
+ fileName: 'volcano.css',
43
+ modifyVars: {
44
+ '@primary-color': '#FA541C'
45
+ }
46
+ }, {
47
+ key: 'sunset',
48
+ fileName: 'sunset.css',
49
+ modifyVars: {
50
+ '@primary-color': '#FAAD14'
51
+ }
52
+ }, {
53
+ key: 'cyan',
54
+ fileName: 'cyan.css',
55
+ modifyVars: {
56
+ '@primary-color': '#13C2C2'
57
+ }
58
+ }, {
59
+ key: 'green',
60
+ fileName: 'green.css',
61
+ modifyVars: {
62
+ '@primary-color': '#52C41A'
63
+ }
64
+ }, {
65
+ key: 'geekblue',
66
+ fileName: 'geekblue.css',
67
+ modifyVars: {
68
+ '@primary-color': '#2F54EB'
69
+ }
70
+ }, {
71
+ key: 'purple',
72
+ fileName: 'purple.css',
73
+ modifyVars: {
74
+ '@primary-color': '#722ED1'
75
+ }
76
+ }];
77
+ // ssr
78
+ if (typeof window === 'undefined') {
79
+ list = defaultList;
80
+ } else {
81
+ list = window.umi_plugin_ant_themeVar || defaultList;
82
+ }
83
+ const themeList = [{
84
+ key: 'light',
85
+ title: t('light')
86
+ }];
87
+ const darkColorList = [{
88
+ key: 'daybreak',
89
+ color: '#1890ff',
90
+ theme: 'dark'
91
+ }];
92
+ const lightColorList = [{
93
+ key: 'daybreak',
94
+ color: '#1890ff',
95
+ theme: 'dark'
96
+ }];
97
+ if (deviceLayout.navigationMode !== 'mixed') {
98
+ themeList.push({
99
+ key: 'dark',
100
+ title: t('dark')
101
+ });
102
+ }
103
+ if (list.find(item => item.theme === 'dark')) {
104
+ themeList.push({
105
+ key: 'realDark',
106
+ title: t('dark')
107
+ });
108
+ }
109
+ // insert theme color List
110
+ list.forEach(item => {
111
+ const color = (item.modifyVars || {})['@primary-color'];
112
+ if (item.theme === 'dark' && color) {
113
+ darkColorList.push({
114
+ color,
115
+ ...item
116
+ });
117
+ }
118
+ if (!item.theme || item.theme === 'light') {
119
+ lightColorList.push({
120
+ color,
121
+ ...item
122
+ });
123
+ }
124
+ });
125
+ return {
126
+ colorList: {
127
+ dark: darkColorList,
128
+ light: lightColorList
129
+ },
130
+ themeList
131
+ };
132
+ }
133
+ /**
134
+ * Parse a dot-separated path into a nested object structure
135
+ * Example: parseSettingPath('a.b.c', 'value') => { a: { b: { c: 'value' } } }
136
+ */
137
+ function parseSettingPath(path, value) {
138
+ const keys = path.split('.');
139
+ // Base case: no nesting
140
+ if (keys.length === 1) {
141
+ return {
142
+ [path]: value
143
+ };
144
+ }
145
+ // Build nested object
146
+ let result = {};
147
+ let current = result;
148
+ for (let i = 0; i < keys.length - 1; i++) {
149
+ current[keys[i]] = {};
150
+ current = current[keys[i]];
151
+ }
152
+ current[keys[keys.length - 1]] = value;
153
+ return result;
154
+ }export{parseSettingPath,useThemeList};//# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sources":["../../../../src/components/SettingDrawer/utils/helper.ts"],"sourcesContent":[null],"names":[],"mappings":"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"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Transform changed settings to wrap in uilayout structure for backend API
3
+ * Converts keys like "[desktop].theme" to "[desktop].uilayout.theme"
4
+ */
5
+ export declare function transformSettingsForBackend(changedSettings: Record<string, any>): Record<string, any>;
6
+ /**
7
+ * Extract and parse settings from browser cookies
8
+ * Returns null if cookie not found or parsing fails
9
+ */
10
+ export declare function getCookieSettings(): Record<string, any> | null;
11
+ /**
12
+ * Clear settings cookies by sending DELETE request to server
13
+ */
14
+ export declare function clearSettingsCookies(): Promise<boolean>;
15
+ //# sourceMappingURL=transformers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformers.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/utils/transformers.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAiCrG;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAqB9D;AAED;;GAEG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,OAAO,CAAC,CAiB7D"}