@owp/core 2.2.5 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/dist/_virtual/index11.js +2 -2
  2. package/dist/_virtual/index12.js +2 -2
  3. package/dist/_virtual/index13.js +2 -2
  4. package/dist/_virtual/index14.js +2 -2
  5. package/dist/_virtual/index16.js +5 -2
  6. package/dist/_virtual/index16.js.map +1 -1
  7. package/dist/_virtual/index17.js +2 -2
  8. package/dist/_virtual/index5.js +2 -5
  9. package/dist/_virtual/index5.js.map +1 -1
  10. package/dist/_virtual/index6.js +2 -2
  11. package/dist/_virtual/index7.js +2 -2
  12. package/dist/components/OwpDialog/OwpDialog.js +48 -46
  13. package/dist/components/OwpDialog/OwpDialog.js.map +1 -1
  14. package/dist/components/OwpErrorStatusPage/OwpErrorStatusPage.js +24 -24
  15. package/dist/components/OwpErrorStatusPage/OwpErrorStatusPage.js.map +1 -1
  16. package/dist/components/OwpLayout/OwpLayout.js +29 -30
  17. package/dist/components/OwpLayout/OwpLayout.js.map +1 -1
  18. package/dist/components/OwpMrtTable/OwpMrtTable.js +2 -2
  19. package/dist/components/OwpMrtTable/OwpMrtTable.js.map +1 -1
  20. package/dist/components/OwpMrtTable/{OwpMrtTableNoDataOverlay.js → internal/OwpMrtTableNoDataOverlay.js} +1 -1
  21. package/dist/components/OwpMrtTable/internal/OwpMrtTableNoDataOverlay.js.map +1 -0
  22. package/dist/components/OwpMrtTable/{OwpMrtTableTopToolbar.js → internal/OwpMrtTableTopToolbar.js} +3 -3
  23. package/dist/components/OwpMrtTable/internal/OwpMrtTableTopToolbar.js.map +1 -0
  24. package/dist/components/OwpPageCarded/OwpPageCarded.js +81 -77
  25. package/dist/components/OwpPageCarded/OwpPageCarded.js.map +1 -1
  26. package/dist/components/OwpPageCarded/{OwpPageCardedHeader.js → internal/OwpPageCardedHeader.js} +2 -2
  27. package/dist/components/OwpPageCarded/internal/OwpPageCardedHeader.js.map +1 -0
  28. package/dist/components/OwpPageCarded/{OwpPageCardedSidebar.js → internal/OwpPageCardedSidebar.js} +3 -3
  29. package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebar.js.map +1 -0
  30. package/dist/components/OwpPageCarded/{OwpPageCardedSidebarContent.js → internal/OwpPageCardedSidebarContent.js} +2 -2
  31. package/dist/components/OwpPageCarded/internal/OwpPageCardedSidebarContent.js.map +1 -0
  32. package/dist/components/OwpPicker/OwpDatePicker.js +90 -83
  33. package/dist/components/OwpPicker/OwpDatePicker.js.map +1 -1
  34. package/dist/components/OwpPicker/OwpDateRangePicker.js +57 -50
  35. package/dist/components/OwpPicker/OwpDateRangePicker.js.map +1 -1
  36. package/dist/components/OwpPicker/OwpTimePicker.js +65 -61
  37. package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
  38. package/dist/components/OwpPicker/OwpWeekDatePicker.js +58 -52
  39. package/dist/components/OwpPicker/OwpWeekDatePicker.js.map +1 -1
  40. package/dist/components/OwpPicker/OwpYearRangePicker.js +68 -62
  41. package/dist/components/OwpPicker/OwpYearRangePicker.js.map +1 -1
  42. package/dist/components/OwpPicker/{constants.js → constants/index.js} +1 -1
  43. package/dist/components/OwpPicker/constants/index.js.map +1 -0
  44. package/dist/components/OwpPicker/{AnimatedCalendarContainer.js → internal/AnimatedCalendarContainer.js} +2 -2
  45. package/dist/components/OwpPicker/internal/AnimatedCalendarContainer.js.map +1 -0
  46. package/dist/components/OwpPicker/{CalendarContainer.js → internal/CalendarContainer.js} +2 -2
  47. package/dist/components/OwpPicker/internal/CalendarContainer.js.map +1 -0
  48. package/dist/components/OwpPicker/{DatePickerInput.js → internal/DatePickerInput.js} +4 -4
  49. package/dist/components/OwpPicker/internal/DatePickerInput.js.map +1 -0
  50. package/dist/components/OwpQuerySelector/OwpQuerySelector.js +205 -171
  51. package/dist/components/OwpQuerySelector/OwpQuerySelector.js.map +1 -1
  52. package/dist/components/OwpScrollbars/OwpScrollbars.js +16 -17
  53. package/dist/components/OwpScrollbars/OwpScrollbars.js.map +1 -1
  54. package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js +112 -103
  55. package/dist/components/OwpSelectorBase/OwpSelectorAutocomplete.js.map +1 -1
  56. package/dist/components/OwpStyleProvider/OwpStyleProvider.js +86 -39
  57. package/dist/components/OwpStyleProvider/OwpStyleProvider.js.map +1 -1
  58. package/dist/components/OwpSuspense/OwpSuspense.js.map +1 -1
  59. package/dist/components/OwpTable/OwpTable.js +50 -51
  60. package/dist/components/OwpTable/OwpTable.js.map +1 -1
  61. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +163 -308
  62. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  63. package/dist/components/OwpTreeGrid/hooks/useOwpTreeGridOverlayFrame.js +1 -1
  64. package/dist/components/OwpTreeGrid/hooks/useOwpTreeGridOverlayFrame.js.map +1 -1
  65. package/dist/components/OwpTreeGrid/{OwpTreeGridLoadingOverlay.js → internal/OwpTreeGridLoadingOverlay.js} +2 -2
  66. package/dist/components/OwpTreeGrid/internal/OwpTreeGridLoadingOverlay.js.map +1 -0
  67. package/dist/components/OwpTreeGrid/{OwpTreeGridNoDataOverlay.js → internal/OwpTreeGridNoDataOverlay.js} +2 -2
  68. package/dist/components/OwpTreeGrid/internal/OwpTreeGridNoDataOverlay.js.map +1 -0
  69. package/dist/components/OwpTreeGrid/{utils/index.js → internal/treeGridLayout.js} +1 -1
  70. package/dist/components/OwpTreeGrid/internal/treeGridLayout.js.map +1 -0
  71. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +182 -0
  72. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -0
  73. package/dist/components/OwpTreeGrid/utils/perf.js.map +1 -0
  74. package/dist/components/OwpZoomImageSlider/OwpZoomImageSlider.js +1 -1
  75. package/dist/components/OwpZoomImageSlider/OwpZoomImageSlider.js.map +1 -1
  76. package/dist/components/OwpZoomImageSlider/{ZoomImage.js → internal/ZoomImage.js} +1 -1
  77. package/dist/components/OwpZoomImageSlider/internal/ZoomImage.js.map +1 -0
  78. package/dist/contexts/OwpCoreProvider.js +22 -36
  79. package/dist/contexts/OwpCoreProvider.js.map +1 -1
  80. package/dist/contexts/OwpStoreProvider.js +9 -9
  81. package/dist/contexts/OwpStoreProvider.js.map +1 -1
  82. package/dist/hooks/useNavbar.js +24 -0
  83. package/dist/hooks/useNavbar.js.map +1 -0
  84. package/dist/hooks/useOwpSettings.js +21 -0
  85. package/dist/hooks/useOwpSettings.js.map +1 -0
  86. package/dist/hooks.js +75 -62
  87. package/dist/hooks.js.map +1 -1
  88. package/dist/index.js +98 -104
  89. package/dist/index.js.map +1 -1
  90. package/dist/layout/Layout.js +28 -29
  91. package/dist/layout/Layout.js.map +1 -1
  92. package/dist/layout/components/layouts/FooterLayout.js +15 -16
  93. package/dist/layout/components/layouts/FooterLayout.js.map +1 -1
  94. package/dist/layout/components/layouts/NavbarToggleFabLayout.js +21 -18
  95. package/dist/layout/components/layouts/NavbarToggleFabLayout.js.map +1 -1
  96. package/dist/layout/components/layouts/NavbarWrapperLayout.js +20 -21
  97. package/dist/layout/components/layouts/NavbarWrapperLayout.js.map +1 -1
  98. package/dist/layout/components/navbar/NavbarPinToggleButton.js +10 -11
  99. package/dist/layout/components/navbar/NavbarPinToggleButton.js.map +1 -1
  100. package/dist/layout/components/navbar/NavbarToggleButton.js +31 -32
  101. package/dist/layout/components/navbar/NavbarToggleButton.js.map +1 -1
  102. package/dist/layout/components/navbar/style/NavbarStyle.js +36 -37
  103. package/dist/layout/components/navbar/style/NavbarStyle.js.map +1 -1
  104. package/dist/layout/components/navbar/style/NavbarStyleContent.js +29 -30
  105. package/dist/layout/components/navbar/style/NavbarStyleContent.js.map +1 -1
  106. package/dist/layout/components/navigation/Navigation.js +18 -22
  107. package/dist/layout/components/navigation/Navigation.js.map +1 -1
  108. package/dist/layout/components/toggles/NavigationSearchToggle.js +55 -60
  109. package/dist/layout/components/toggles/NavigationSearchToggle.js.map +1 -1
  110. package/dist/layout/components/toggles/NavigationShortcutsToggle.js +44 -49
  111. package/dist/layout/components/toggles/NavigationShortcutsToggle.js.map +1 -1
  112. package/dist/layout/components/toolbar/ToolbarLayout.js +26 -27
  113. package/dist/layout/components/toolbar/ToolbarLayout.js.map +1 -1
  114. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  115. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
  116. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
  117. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
  118. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
  119. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  120. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
  121. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
  122. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  123. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
  124. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
  125. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
  126. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
  127. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
  128. package/dist/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
  129. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/core/utils.js +1 -1
  130. package/dist/node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/renderer/utils.js +1 -1
  131. package/dist/node_modules/.pnpm/react-imask@7.6.1_react@19.2.4/node_modules/react-imask/esm/mixin.js +1 -1
  132. package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
  133. package/dist/node_modules/.pnpm/react-overlays@5.2.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-overlays/esm/Portal.js +1 -1
  134. package/dist/owp-app.css +1 -1
  135. package/dist/store/atoms/navbarAtoms.js +84 -0
  136. package/dist/store/atoms/navbarAtoms.js.map +1 -0
  137. package/dist/store/atoms/owpSettingsAtoms.js +140 -0
  138. package/dist/store/atoms/owpSettingsAtoms.js.map +1 -0
  139. package/dist/store/atoms/owpStore.js +29 -0
  140. package/dist/store/atoms/owpStore.js.map +1 -0
  141. package/dist/store.js +44 -39
  142. package/dist/store.js.map +1 -1
  143. package/dist/types/components/OwpPageCarded/OwpPageCarded.d.ts +12 -41
  144. package/dist/types/components/OwpPageSkeleton/index.d.ts +1 -0
  145. package/dist/types/components/OwpPicker/OwpWeekDatePicker.d.ts +0 -1
  146. package/dist/types/components/OwpPicker/OwpYearRangePicker.d.ts +0 -1
  147. package/dist/types/components/OwpPicker/{DatePickerInput.d.ts → internal/DatePickerInput.d.ts} +1 -1
  148. package/dist/types/components/OwpQuerySelector/OwpQuerySelector.d.ts +1 -1
  149. package/dist/types/components/OwpQuerySelector/types/types.d.ts +2 -0
  150. package/dist/types/components/OwpTable/OwpTable.d.ts +1 -1
  151. package/dist/types/components/OwpTabs/OwpTab.d.ts +1 -1
  152. package/dist/types/components/OwpTabs/OwpTabs.d.ts +1 -1
  153. package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +3 -1
  154. package/dist/types/components/OwpTreeGrid/{OwpTreeGridLoadingOverlay.d.ts → internal/OwpTreeGridLoadingOverlay.d.ts} +1 -1
  155. package/dist/types/components/OwpTreeGrid/{OwpTreeGridNoDataOverlay.d.ts → internal/OwpTreeGridNoDataOverlay.d.ts} +1 -1
  156. package/dist/types/components/OwpTreeGrid/{utils/index.d.ts → internal/treeGridLayout.d.ts} +0 -2
  157. package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +75 -0
  158. package/dist/types/contexts/OwpCoreProvider.d.ts +2 -2
  159. package/dist/types/contexts/OwpStoreProvider.d.ts +4 -4
  160. package/dist/types/hooks/index.d.ts +2 -1
  161. package/dist/types/hooks/useNavbar.d.ts +19 -0
  162. package/dist/types/hooks/useOwpSettings.d.ts +79 -0
  163. package/dist/types/index.d.ts +1 -4
  164. package/dist/types/layout/components/navigation/Navigation.d.ts +6 -2
  165. package/dist/types/layout/components/toggles/NavigationSearchToggle.d.ts +5 -2
  166. package/dist/types/layout/components/toggles/NavigationShortcutsToggle.d.ts +5 -2
  167. package/dist/types/store/atoms/index.d.ts +3 -0
  168. package/dist/types/store/atoms/internal/types.d.ts +29 -0
  169. package/dist/types/store/atoms/navbarAtoms.d.ts +48 -0
  170. package/dist/types/store/atoms/owpSettingsAtoms.d.ts +89 -0
  171. package/dist/types/store/atoms/owpStore.d.ts +13 -0
  172. package/dist/types/store/index.d.ts +1 -3
  173. package/dist/types/types/OwpNavigationTypes.d.ts +14 -0
  174. package/dist/types/types/index.d.ts +1 -1
  175. package/dist/types/utils/index.d.ts +1 -0
  176. package/dist/types/utils/navigationUtils.d.ts +6 -2
  177. package/dist/types/utils/normalizeTimeToHourMinute.d.ts +11 -0
  178. package/dist/utils/navigationUtils.js.map +1 -1
  179. package/dist/utils/normalizeTimeToHourMinute.js +34 -0
  180. package/dist/utils/normalizeTimeToHourMinute.js.map +1 -0
  181. package/dist/utils/treeGridUtil.js +1 -1
  182. package/dist/utils/treeGridUtil.js.map +1 -1
  183. package/dist/utils.js +78 -75
  184. package/dist/utils.js.map +1 -1
  185. package/package.json +2 -6
  186. package/dist/components/OwpMrtTable/OwpMrtTableNoDataOverlay.js.map +0 -1
  187. package/dist/components/OwpMrtTable/OwpMrtTableTopToolbar.js.map +0 -1
  188. package/dist/components/OwpPageCarded/OwpPageCardedHeader.js.map +0 -1
  189. package/dist/components/OwpPageCarded/OwpPageCardedSidebar.js.map +0 -1
  190. package/dist/components/OwpPageCarded/OwpPageCardedSidebarContent.js.map +0 -1
  191. package/dist/components/OwpPicker/AnimatedCalendarContainer.js.map +0 -1
  192. package/dist/components/OwpPicker/CalendarContainer.js.map +0 -1
  193. package/dist/components/OwpPicker/DatePickerInput.js.map +0 -1
  194. package/dist/components/OwpPicker/constants.js.map +0 -1
  195. package/dist/components/OwpTreeGrid/OwpTreeGridLoadingOverlay.js.map +0 -1
  196. package/dist/components/OwpTreeGrid/OwpTreeGridNoDataOverlay.js.map +0 -1
  197. package/dist/components/OwpTreeGrid/perf.js.map +0 -1
  198. package/dist/components/OwpTreeGrid/utils/index.js.map +0 -1
  199. package/dist/components/OwpZoomImageSlider/ZoomImage.js.map +0 -1
  200. package/dist/hooks/useAppStore.js +0 -8
  201. package/dist/hooks/useAppStore.js.map +0 -1
  202. package/dist/node_modules/.pnpm/react-datepicker@8.7.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-datepicker/dist/react-datepicker.css +0 -1
  203. package/dist/store/generateReducersFromSlices.js +0 -18
  204. package/dist/store/generateReducersFromSlices.js.map +0 -1
  205. package/dist/store/lazyLoadedSlices.js +0 -16
  206. package/dist/store/lazyLoadedSlices.js.map +0 -1
  207. package/dist/store/middleware.js +0 -9
  208. package/dist/store/middleware.js.map +0 -1
  209. package/dist/store/navbarSlice.js +0 -71
  210. package/dist/store/navbarSlice.js.map +0 -1
  211. package/dist/store/navigationSlice.js +0 -46
  212. package/dist/store/navigationSlice.js.map +0 -1
  213. package/dist/store/owpSettingsSlice.js +0 -195
  214. package/dist/store/owpSettingsSlice.js.map +0 -1
  215. package/dist/store/store.js +0 -17
  216. package/dist/store/store.js.map +0 -1
  217. package/dist/store/withSlices.js +0 -27
  218. package/dist/store/withSlices.js.map +0 -1
  219. package/dist/types/hooks/useAppStore.d.ts +0 -7
  220. package/dist/types/store/generateReducersFromSlices.d.ts +0 -6
  221. package/dist/types/store/lazyLoadedSlices.d.ts +0 -9
  222. package/dist/types/store/middleware.d.ts +0 -17
  223. package/dist/types/store/navbarSlice.d.ts +0 -22
  224. package/dist/types/store/navigationSlice.d.ts +0 -92
  225. package/dist/types/store/owpSettingsSlice.d.ts +0 -112
  226. package/dist/types/store/store.d.ts +0 -13
  227. package/dist/types/store/withSlices.d.ts +0 -11
  228. /package/dist/components/OwpTreeGrid/{perf.js → utils/perf.js} +0 -0
  229. /package/dist/types/components/OwpMrtTable/{OwpMrtTableNoDataOverlay.d.ts → internal/OwpMrtTableNoDataOverlay.d.ts} +0 -0
  230. /package/dist/types/components/OwpMrtTable/{OwpMrtTableTopToolbar.d.ts → internal/OwpMrtTableTopToolbar.d.ts} +0 -0
  231. /package/dist/types/components/OwpPageCarded/{OwpPageCardedHeader.d.ts → internal/OwpPageCardedHeader.d.ts} +0 -0
  232. /package/dist/types/components/OwpPageCarded/{OwpPageCardedSidebar.d.ts → internal/OwpPageCardedSidebar.d.ts} +0 -0
  233. /package/dist/types/components/OwpPageCarded/{OwpPageCardedSidebarContent.d.ts → internal/OwpPageCardedSidebarContent.d.ts} +0 -0
  234. /package/dist/types/components/OwpPicker/{constants.d.ts → constants/index.d.ts} +0 -0
  235. /package/dist/types/components/OwpPicker/{AnimatedCalendarContainer.d.ts → internal/AnimatedCalendarContainer.d.ts} +0 -0
  236. /package/dist/types/components/OwpPicker/{CalendarContainer.d.ts → internal/CalendarContainer.d.ts} +0 -0
  237. /package/dist/types/components/OwpTreeGrid/{perf.d.ts → utils/perf.d.ts} +0 -0
  238. /package/dist/types/components/OwpZoomImageSlider/{ZoomImage.d.ts → internal/ZoomImage.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var a = {};
2
2
  export {
3
- r as __exports
3
+ a as __exports
4
4
  };
5
5
  //# sourceMappingURL=index11.js.map
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var a = {};
2
2
  export {
3
- r as __exports
3
+ a as __exports
4
4
  };
5
5
  //# sourceMappingURL=index12.js.map
@@ -1,5 +1,5 @@
1
- var a = {};
1
+ var r = {};
2
2
  export {
3
- a as __exports
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index13.js.map
@@ -1,5 +1,5 @@
1
- var a = {};
1
+ var e = {};
2
2
  export {
3
- a as __exports
3
+ e as __exports
4
4
  };
5
5
  //# sourceMappingURL=index14.js.map
@@ -1,5 +1,8 @@
1
- var e = {};
1
+ import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
+ import { __require as o } from "../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js";
3
+ var p = /* @__PURE__ */ o();
4
+ const s = /* @__PURE__ */ r(p);
2
5
  export {
3
- e as __exports
6
+ s as default
4
7
  };
5
8
  //# sourceMappingURL=index16.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index16.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"index16.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var p = { exports: {} };
2
2
  export {
3
- r as __exports
3
+ p as __module
4
4
  };
5
5
  //# sourceMappingURL=index17.js.map
@@ -1,8 +1,5 @@
1
- import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
2
- import { __require as o } from "../node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js";
3
- var p = /* @__PURE__ */ o();
4
- const s = /* @__PURE__ */ r(p);
1
+ var e = { exports: {} };
5
2
  export {
6
- s as default
3
+ e as __module
7
4
  };
8
5
  //# sourceMappingURL=index5.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,5 +1,5 @@
1
- var p = { exports: {} };
1
+ var r = {};
2
2
  export {
3
- p as __module
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index6.js.map
@@ -1,5 +1,5 @@
1
- var e = { exports: {} };
1
+ var r = {};
2
2
  export {
3
- e as __module
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index7.js.map
@@ -1,69 +1,71 @@
1
- var O = Object.defineProperty;
2
- var i = (e, n) => O(e, "name", { value: n, configurable: !0 });
3
- import { jsxs as h, jsx as c } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
4
- import { useOwpTranslation as j } from "../../hooks/useOwpTranslation.js";
5
- import { DialogContent as K, DialogActions as N, Dialog as b, DialogTitle as o, Box as A, Button as p } from "@mui/material";
1
+ var v = Object.defineProperty;
2
+ var c = (i, e) => v(i, "name", { value: e, configurable: !0 });
3
+ import { jsxs as l, jsx as r } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
4
+ import { useOwpTranslation as O } from "../../hooks/useOwpTranslation.js";
5
+ import { DialogContent as j, DialogActions as K, Dialog as N, DialogTitle as b, Box as A, Button as m } from "@mui/material";
6
6
  import { forwardRef as R } from "react";
7
- const y = R(
7
+ const x = R(
8
8
  ({
9
- title: e,
10
- children: n,
11
- canCancel: d = !0,
12
- canConfirm: u = !0,
13
- onConfirm: m,
14
- onCancel: a,
9
+ title: i,
10
+ children: e,
11
+ canCancel: D = !0,
12
+ canConfirm: a = !0,
13
+ confirmText: w,
14
+ cancelText: g,
15
+ onConfirm: o,
16
+ onCancel: f,
15
17
  onClose: t,
16
- useSubmit: f,
17
- actions: x,
18
- contentProps: T,
19
- ...r
20
- }, B) => {
21
- const { t: D } = j(), k = (r == null ? void 0 : r.confirmText) ?? D("Button.저장"), l = (r == null ? void 0 : r.cancelText) ?? D(u ? "Button.취소" : "Button.닫기");
22
- return /* @__PURE__ */ h(
23
- b,
18
+ useSubmit: n,
19
+ actions: p,
20
+ contentProps: h,
21
+ ...y
22
+ }, T) => {
23
+ const { t: u } = O(), B = w ?? u("Button.저장"), k = g ?? u(a ? "Button.취소" : "Button.닫기");
24
+ return /* @__PURE__ */ l(
25
+ N,
24
26
  {
25
- ref: B,
27
+ ref: T,
26
28
  fullWidth: !0,
27
- component: f ? "form" : void 0,
28
- onClose: /* @__PURE__ */ i((v, w) => {
29
- w !== "backdropClick" && (t == null || t(v, w));
29
+ component: n ? "form" : void 0,
30
+ onClose: /* @__PURE__ */ c((s, d) => {
31
+ d !== "backdropClick" && (t == null || t(s, d));
30
32
  }, "onClose"),
31
- ...r,
33
+ ...y,
32
34
  children: [
33
- e && /* @__PURE__ */ c(o, { children: e }),
34
- /* @__PURE__ */ c(K, { dividers: !0, ...T, children: n }),
35
- /* @__PURE__ */ h(N, { children: [
36
- x && /* @__PURE__ */ c(A, { className: "flex w-full items-start", children: x }),
37
- d && /* @__PURE__ */ c(
38
- p,
35
+ i && /* @__PURE__ */ r(b, { children: i }),
36
+ /* @__PURE__ */ r(j, { dividers: !0, ...h, children: e }),
37
+ /* @__PURE__ */ l(K, { children: [
38
+ p && /* @__PURE__ */ r(A, { className: "flex w-full items-start", children: p }),
39
+ D && /* @__PURE__ */ r(
40
+ m,
39
41
  {
40
42
  variant: "outlined",
41
- onClick: /* @__PURE__ */ i(() => {
42
- if (typeof a == "function") {
43
- a();
43
+ onClick: /* @__PURE__ */ c(() => {
44
+ if (typeof f == "function") {
45
+ f();
44
46
  return;
45
47
  }
46
48
  t == null || t({}, "escapeKeyDown");
47
49
  }, "onClick"),
48
- children: l
50
+ children: k
49
51
  }
50
52
  ),
51
- u && /* @__PURE__ */ c(
52
- p,
53
+ a && /* @__PURE__ */ r(
54
+ m,
53
55
  {
54
56
  variant: "contained",
55
57
  color: "secondary",
56
- type: f ? "submit" : "button",
57
- onClick: /* @__PURE__ */ i(() => {
58
- if (!f) {
59
- if (typeof m == "function") {
60
- m();
58
+ type: n ? "submit" : "button",
59
+ onClick: /* @__PURE__ */ c(() => {
60
+ if (!n) {
61
+ if (typeof o == "function") {
62
+ o();
61
63
  return;
62
64
  }
63
65
  t == null || t({}, "escapeKeyDown");
64
66
  }
65
67
  }, "onClick"),
66
- children: k
68
+ children: B
67
69
  }
68
70
  )
69
71
  ] })
@@ -72,10 +74,10 @@ const y = R(
72
74
  );
73
75
  }
74
76
  );
75
- y.displayName = "OwpDialog";
76
- const G = y;
77
+ x.displayName = "OwpDialog";
78
+ const G = x;
77
79
  export {
78
80
  G as OwpCommonDialog,
79
- y as OwpDialog
81
+ x as OwpDialog
80
82
  };
81
83
  //# sourceMappingURL=OwpDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OwpDialog.js","sources":["../../../src/components/OwpDialog/OwpDialog.tsx"],"sourcesContent":["import { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport {\n Box,\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentProps,\n DialogProps,\n DialogTitle,\n} from '@mui/material';\nimport { forwardRef, ReactNode } from 'react';\n\nexport interface OwpDialogProps extends Omit<DialogProps, 'title'> {\n title?: ReactNode;\n children?: ReactNode;\n canConfirm?: boolean;\n canCancel?: boolean;\n confirmText?: string;\n cancelText?: string;\n useSubmit?: boolean;\n actions?: ReactNode;\n contentProps?: DialogContentProps;\n onConfirm?: () => void;\n onCancel?: () => void;\n}\n\n/**\n * OwpDialog 컴포넌트\n * @param title 제목\n * @param children 하위 콘텐츠\n * @param canCancel canCancel 값\n * @param canConfirm canConfirm 값\n * @param onConfirm onConfirm 핸들러\n * @param onCancel onCancel 핸들러\n */\nconst OwpDialog = forwardRef<HTMLDivElement, OwpDialogProps>(\n (\n {\n title,\n children,\n canCancel = true,\n canConfirm = true,\n onConfirm,\n onCancel,\n onClose,\n useSubmit,\n actions,\n contentProps,\n ...dialogProps\n },\n ref,\n ) => {\n const { t } = useOwpTranslation();\n const confirmText = dialogProps?.confirmText ?? t('Button.저장');\n const cancelText = dialogProps?.cancelText ?? t(canConfirm ? 'Button.취소' : 'Button.닫기');\n\n return (\n <Dialog\n ref={ref}\n fullWidth\n component={useSubmit ? 'form' : undefined}\n onClose={(event, reason) => {\n if (reason === 'backdropClick') {\n return;\n }\n\n onClose?.(event, reason);\n }}\n {...dialogProps}\n >\n {title && <DialogTitle>{title}</DialogTitle>}\n <DialogContent dividers {...contentProps}>\n {children}\n </DialogContent>\n <DialogActions>\n {actions && <Box className=\"flex w-full items-start\">{actions}</Box>}\n {canCancel && (\n <Button\n variant=\"outlined\"\n onClick={() => {\n if (typeof onCancel === 'function') {\n onCancel();\n return;\n }\n\n onClose?.({}, 'escapeKeyDown');\n }}\n >\n {cancelText}\n </Button>\n )}\n {canConfirm && (\n <Button\n variant=\"contained\"\n color=\"secondary\"\n type={useSubmit ? 'submit' : 'button'}\n onClick={() => {\n if (useSubmit) {\n return;\n }\n\n if (typeof onConfirm === 'function') {\n onConfirm();\n return;\n }\n\n onClose?.({}, 'escapeKeyDown');\n }}\n >\n {confirmText}\n </Button>\n )}\n </DialogActions>\n </Dialog>\n );\n },\n);\n\nOwpDialog.displayName = 'OwpDialog';\n\n/**\n * @deprecated Use OwpDialogProps instead.\n */\nexport type OwpCommonDialogProps = OwpDialogProps;\n\n/**\n * @deprecated Use OwpDialog instead.\n */\nconst OwpCommonDialog = OwpDialog;\n\nexport { OwpCommonDialog, OwpDialog };\n"],"names":["OwpDialog","forwardRef","title","children","canCancel","canConfirm","onConfirm","onCancel","onClose","useSubmit","actions","contentProps","dialogProps","ref","t","useOwpTranslation","confirmText","cancelText","jsxs","Dialog","__name","event","reason","jsx","DialogTitle","DialogContent","DialogActions","Box","Button","OwpCommonDialog"],"mappings":";;;;;;AAoCA,MAAMA,IAAYC;AAAA,EAChB,CACE;AAAA,IACE,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,YAAAC,IAAa;AAAA,IACb,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,SAAAC;AAAA,IACA,WAAAC;AAAA,IACA,SAAAC;AAAA,IACA,cAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,GAELC,MACG;AACH,UAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACRC,KAAcJ,KAAA,gBAAAA,EAAa,gBAAeE,EAAE,WAAW,GACvDG,KAAaL,KAAA,gBAAAA,EAAa,eAAcE,EAAET,IAAa,cAAc,WAAW;AAEtF,WACE,gBAAAa;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,KAAAN;AAAA,QACA,WAAS;AAAA,QACT,WAAWJ,IAAY,SAAS;AAAA,QAChC,SAAS,gBAAAW,EAAA,CAACC,GAAOC,MAAW;AAC1B,UAAIA,MAAW,oBAIfd,KAAA,QAAAA,EAAUa,GAAOC;AAAA,QACnB,GANS;AAAA,QAOR,GAAGV;AAAA,QAEH,UAAA;AAAA,UAAAV,KAAS,gBAAAqB,EAACC,KAAa,UAAAtB,EAAA,CAAM;AAAA,4BAC7BuB,GAAA,EAAc,UAAQ,IAAE,GAAGd,GACzB,UAAAR,GACH;AAAA,4BACCuB,GAAA,EACE,UAAA;AAAA,YAAAhB,KAAW,gBAAAa,EAACI,GAAA,EAAI,WAAU,2BAA2B,UAAAjB,GAAQ;AAAA,YAC7DN,KACC,gBAAAmB;AAAA,cAACK;AAAA,cAAA;AAAA,gBACC,SAAQ;AAAA,gBACR,SAAS,gBAAAR,EAAA,MAAM;AACb,sBAAI,OAAOb,KAAa,YAAY;AAClC,oBAAAA,EAAA;AACA;AAAA,kBACF;AAEA,kBAAAC,KAAA,QAAAA,EAAU,CAAA,GAAI;AAAA,gBAChB,GAPS;AAAA,gBASR,UAAAS;AAAA,cAAA;AAAA,YAAA;AAAA,YAGJZ,KACC,gBAAAkB;AAAA,cAACK;AAAA,cAAA;AAAA,gBACC,SAAQ;AAAA,gBACR,OAAM;AAAA,gBACN,MAAMnB,IAAY,WAAW;AAAA,gBAC7B,SAAS,gBAAAW,EAAA,MAAM;AACb,sBAAI,CAAAX,GAIJ;AAAA,wBAAI,OAAOH,KAAc,YAAY;AACnC,sBAAAA,EAAA;AACA;AAAA,oBACF;AAEA,oBAAAE,KAAA,QAAAA,EAAU,CAAA,GAAI;AAAA;AAAA,gBAChB,GAXS;AAAA,gBAaR,UAAAQ;AAAA,cAAA;AAAA,YAAA;AAAA,UACH,EAAA,CAEJ;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AAEAhB,EAAU,cAAc;AAUxB,MAAM6B,IAAkB7B;"}
1
+ {"version":3,"file":"OwpDialog.js","sources":["../../../src/components/OwpDialog/OwpDialog.tsx"],"sourcesContent":["import { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport {\n Box,\n Button,\n Dialog,\n DialogActions,\n DialogContent,\n DialogContentProps,\n DialogProps,\n DialogTitle,\n} from '@mui/material';\nimport { forwardRef, ReactNode } from 'react';\n\nexport interface OwpDialogProps extends Omit<DialogProps, 'title'> {\n title?: ReactNode;\n children?: ReactNode;\n canConfirm?: boolean;\n canCancel?: boolean;\n confirmText?: string;\n cancelText?: string;\n useSubmit?: boolean;\n actions?: ReactNode;\n contentProps?: DialogContentProps;\n onConfirm?: () => void;\n onCancel?: () => void;\n}\n\n/**\n * OwpDialog 컴포넌트\n * @param title 제목\n * @param children 하위 콘텐츠\n * @param canCancel canCancel 값\n * @param canConfirm canConfirm 값\n * @param onConfirm onConfirm 핸들러\n * @param onCancel onCancel 핸들러\n */\nconst OwpDialog = forwardRef<HTMLDivElement, OwpDialogProps>(\n (\n {\n title,\n children,\n canCancel = true,\n canConfirm = true,\n confirmText: confirmTextProp,\n cancelText: cancelTextProp,\n onConfirm,\n onCancel,\n onClose,\n useSubmit,\n actions,\n contentProps,\n ...dialogProps\n },\n ref,\n ) => {\n const { t } = useOwpTranslation();\n const confirmText = confirmTextProp ?? t('Button.저장');\n const cancelText = cancelTextProp ?? t(canConfirm ? 'Button.취소' : 'Button.닫기');\n\n return (\n <Dialog\n ref={ref}\n fullWidth\n component={useSubmit ? 'form' : undefined}\n onClose={(event, reason) => {\n if (reason === 'backdropClick') {\n return;\n }\n\n onClose?.(event, reason);\n }}\n {...dialogProps}\n >\n {title && <DialogTitle>{title}</DialogTitle>}\n <DialogContent dividers {...contentProps}>\n {children}\n </DialogContent>\n <DialogActions>\n {actions && <Box className=\"flex w-full items-start\">{actions}</Box>}\n {canCancel && (\n <Button\n variant=\"outlined\"\n onClick={() => {\n if (typeof onCancel === 'function') {\n onCancel();\n return;\n }\n\n onClose?.({}, 'escapeKeyDown');\n }}\n >\n {cancelText}\n </Button>\n )}\n {canConfirm && (\n <Button\n variant=\"contained\"\n color=\"secondary\"\n type={useSubmit ? 'submit' : 'button'}\n onClick={() => {\n if (useSubmit) {\n return;\n }\n\n if (typeof onConfirm === 'function') {\n onConfirm();\n return;\n }\n\n onClose?.({}, 'escapeKeyDown');\n }}\n >\n {confirmText}\n </Button>\n )}\n </DialogActions>\n </Dialog>\n );\n },\n);\n\nOwpDialog.displayName = 'OwpDialog';\n\n/**\n * @deprecated Use OwpDialogProps instead.\n */\nexport type OwpCommonDialogProps = OwpDialogProps;\n\n/**\n * @deprecated Use OwpDialog instead.\n */\nconst OwpCommonDialog = OwpDialog;\n\nexport { OwpCommonDialog, OwpDialog };\n"],"names":["OwpDialog","forwardRef","title","children","canCancel","canConfirm","confirmTextProp","cancelTextProp","onConfirm","onCancel","onClose","useSubmit","actions","contentProps","dialogProps","ref","t","useOwpTranslation","confirmText","cancelText","jsxs","Dialog","__name","event","reason","jsx","DialogTitle","DialogContent","DialogActions","Box","Button","OwpCommonDialog"],"mappings":";;;;;;AAoCA,MAAMA,IAAYC;AAAA,EAChB,CACE;AAAA,IACE,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,YAAAC,IAAa;AAAA,IACb,aAAaC;AAAA,IACb,YAAYC;AAAA,IACZ,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,SAAAC;AAAA,IACA,WAAAC;AAAA,IACA,SAAAC;AAAA,IACA,cAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,GAELC,MACG;AACH,UAAM,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACRC,IAAcZ,KAAmBU,EAAE,WAAW,GAC9CG,IAAaZ,KAAkBS,EAAEX,IAAa,cAAc,WAAW;AAE7E,WACE,gBAAAe;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,KAAAN;AAAA,QACA,WAAS;AAAA,QACT,WAAWJ,IAAY,SAAS;AAAA,QAChC,SAAS,gBAAAW,EAAA,CAACC,GAAOC,MAAW;AAC1B,UAAIA,MAAW,oBAIfd,KAAA,QAAAA,EAAUa,GAAOC;AAAA,QACnB,GANS;AAAA,QAOR,GAAGV;AAAA,QAEH,UAAA;AAAA,UAAAZ,KAAS,gBAAAuB,EAACC,KAAa,UAAAxB,EAAA,CAAM;AAAA,4BAC7ByB,GAAA,EAAc,UAAQ,IAAE,GAAGd,GACzB,UAAAV,GACH;AAAA,4BACCyB,GAAA,EACE,UAAA;AAAA,YAAAhB,KAAW,gBAAAa,EAACI,GAAA,EAAI,WAAU,2BAA2B,UAAAjB,GAAQ;AAAA,YAC7DR,KACC,gBAAAqB;AAAA,cAACK;AAAA,cAAA;AAAA,gBACC,SAAQ;AAAA,gBACR,SAAS,gBAAAR,EAAA,MAAM;AACb,sBAAI,OAAOb,KAAa,YAAY;AAClC,oBAAAA,EAAA;AACA;AAAA,kBACF;AAEA,kBAAAC,KAAA,QAAAA,EAAU,CAAA,GAAI;AAAA,gBAChB,GAPS;AAAA,gBASR,UAAAS;AAAA,cAAA;AAAA,YAAA;AAAA,YAGJd,KACC,gBAAAoB;AAAA,cAACK;AAAA,cAAA;AAAA,gBACC,SAAQ;AAAA,gBACR,OAAM;AAAA,gBACN,MAAMnB,IAAY,WAAW;AAAA,gBAC7B,SAAS,gBAAAW,EAAA,MAAM;AACb,sBAAI,CAAAX,GAIJ;AAAA,wBAAI,OAAOH,KAAc,YAAY;AACnC,sBAAAA,EAAA;AACA;AAAA,oBACF;AAEA,oBAAAE,KAAA,QAAAA,EAAU,CAAA,GAAI;AAAA;AAAA,gBAChB,GAXS;AAAA,gBAaR,UAAAQ;AAAA,cAAA;AAAA,YAAA;AAAA,UACH,EAAA,CAEJ;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AAEAlB,EAAU,cAAc;AAUxB,MAAM+B,IAAkB/B;"}
@@ -1,52 +1,52 @@
1
- var a = Object.defineProperty;
2
- var t = (l, e) => a(l, "name", { value: e, configurable: !0 });
3
- import { jsx as c, jsxs as r } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
4
- import { getStartPagePath as s } from "../../utils/getStartPagePath.js";
5
- import o from "@mui/material/Box";
6
- import B from "@mui/material/Link";
7
- import v from "@mui/material/Typography";
8
- import { useGetCurrentUser as p } from "../../hooks/useCurrentUser.js";
9
- import { useOwpTranslation as D } from "../../hooks/useOwpTranslation.js";
10
- import { Link as f } from "react-router-dom";
11
- const m = new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-200%20-200%201075%20585'%20fill='none'%20preserveAspectRatio='xMidYMax%20slice'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill='%2344B8E9'%20d='M99.459,187.301c-34.578,4.41-67.366-8.122-89.163-30.835c17.449,39.288,60.931,64.262,107.672,58.305%20c56.073-7.146,95.567-56.08,88.214-109.297c-2.824-20.401-12.139-38.459-25.691-52.587c3.484,7.85,5.954,16.258,7.178,25.117%20C195.025,131.224,155.534,180.16,99.459,187.301z'%20/%3e%3cpath%20fill='%239BDBF8'%20d='M96.674,175.19c-34.54,4.663-67.166-5.795-88.744-25.565c17.116,34.628,60.316,55.95,107.005,49.642%20c56.02-7.564,95.804-52,88.874-99.248c-2.657-18.116-11.816-34-25.236-46.296c3.418,6.917,5.819,14.354,6.977,22.221%20C192.481,123.193,152.692,167.631,96.674,175.19z'%20/%3e%3cpath%20opacity='0.5'%20fill='%23E0F3FC'%20d='M137.403,157.894c-22.754,23.223-52.122,35.528-78.36,35.328%20c30.855,12.442,73.7,0.994,104.453-30.397c36.898-37.664,42.398-89.744,12.289-116.319%20c-11.547-10.19-26.654-15.132-42.971-15.254c6.161,2.485,11.86,5.899,16.874,10.324%20C179.796,68.154,174.297,120.226,137.403,157.894z'%20/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%2344B8E9'%20d='M118.416,35.852c34.796-2.078,66.669,12.621,86.895,36.744C190.537,32.223,148.824,4.391,101.79,7.198%20C45.363,10.569,2.677,56.747,6.449,110.334c1.446,20.553,9.532,39.193,22.107,54.198c-2.952-8.065-4.85-16.618-5.48-25.544%20C19.303,85.395,61.99,39.219,118.416,35.852z'%20/%3e%3cpath%20fill='%239BDBF8'%20d='M120.383,48.12c34.774-2.335,66.623,10.282,86.831,31.452c-14.759-35.697-56.428-59.858-103.437-56.698%20c-56.396,3.791-99.076,45.46-95.327,93.071c1.438,18.251,9.508,34.711,22.074,47.877c-2.949-7.129-4.845-14.707-5.469-22.631%20C21.308,93.579,63.985,51.913,120.383,48.12z'%20/%3e%3cpath%20opacity='0.5'%20fill='%23E0F3FC'%20d='M78.588,62.647c24.259-21.648,54.385-31.952,80.55-29.998%20c-29.951-14.48-73.466-5.933-106.256,23.328C13.542,91.085,4.564,142.68,32.828,171.207%20c10.833,10.951,25.577,16.886,41.851,18.106c-5.984-2.889-11.439-6.678-16.146-11.432C30.274,149.339,39.25,97.752,78.588,62.647%20z'%20/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cpath%20fill='%232196F3'%20d='M320.677,17.979h5.815l30.401,70.319l30.665-70.319h5.816l-33.573,76.664l44.94,102.834l78.778-181.084%20h5.815l-81.687,187.693h-5.815l-44.677-102.834l-44.676,102.834h-5.816L224.979,16.393h5.816l78.778,181.084L354.25,94.643%20L320.677,17.979z'%20/%3e%3cpath%20fill='%232196F3'%20d='M521.321,204.086V16.393h76.398c7.576,0,14.627,1.632,21.148,4.891c6.519,3.263,12.115,7.58,16.787,12.954%20c4.668,5.378,8.327,11.458,10.971,18.241c2.644,6.787,3.966,13.705,3.966,20.752c0,7.402-1.235,14.54-3.701,21.413%20c-2.471,6.873-5.948,12.953-10.442,18.24s-9.872,9.517-16.126,12.689c-6.258,3.172-13.176,4.758-20.752,4.758h-72.962v73.755%20H521.321z%20M526.608,125.044h72.962c7.047,0,13.438-1.496,19.166-4.494c5.726-2.995,10.529-6.96,14.407-11.896%20c3.875-4.932,6.874-10.483,8.988-16.654c2.115-6.167,3.173-12.425,3.173-18.77c0-6.696-1.235-13.127-3.701-19.298%20c-2.471-6.167-5.861-11.632-10.178-16.39c-4.32-4.759-9.385-8.592-15.201-11.5c-5.815-2.908-11.986-4.362-18.505-4.362h-71.111%20V125.044z'%20/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23DBDBDB'%20d='M111.348,303.859c-3.033,0-5.789-0.635-8.268-1.906c-2.48-1.27-4.621-2.929-6.424-4.979%20c-1.804-2.049-3.196-4.405-4.18-7.069c-0.984-2.663-1.476-5.388-1.476-8.176c0-2.909,0.522-5.695,1.567-8.359%20c1.045-2.663,2.479-5.02,4.303-7.069c1.823-2.049,3.974-3.678,6.454-4.887c2.479-1.208,5.153-1.813,8.022-1.813%20c2.991,0,5.737,0.646,8.237,1.937c2.499,1.291,4.641,2.981,6.424,5.071s3.166,4.456,4.149,7.1%20c0.984,2.644,1.476,5.317,1.476,8.021c0,2.951-0.522,5.759-1.568,8.422c-1.045,2.664-2.479,5.01-4.303,7.038%20c-1.824,2.028-3.965,3.648-6.423,4.856C116.88,303.254,114.215,303.859,111.348,303.859z%20M92.23,281.729%20c0,2.705,0.481,5.317,1.444,7.838c0.962,2.521,2.284,4.754,3.965,6.7c1.68,1.947,3.688,3.494,6.024,4.641%20c2.335,1.148,4.896,1.722,7.684,1.722c2.828,0,5.419-0.604,7.776-1.813c2.356-1.208,4.364-2.797,6.024-4.764%20c1.66-1.968,2.951-4.2,3.873-6.7c0.922-2.499,1.383-5.041,1.383-7.623c0-2.704-0.482-5.316-1.445-7.837%20c-0.963-2.521-2.305-4.753-4.026-6.7c-1.721-1.946-3.74-3.493-6.055-4.641c-2.315-1.147-4.825-1.722-7.53-1.722%20c-2.828,0-5.42,0.605-7.776,1.813c-2.357,1.209-4.375,2.797-6.055,4.764c-1.681,1.967-2.981,4.201-3.903,6.7%20C92.691,276.607,92.23,279.148,92.23,281.729z'%20/%3e%3cpath%20fill='%23DBDBDB'%20d='M164.765,303.551h-1.229v-17.765c0-4.672-0.646-8.073-1.937-10.204c-1.291-2.13-3.371-3.196-6.239-3.196%20c-1.558,0-3.084,0.276-4.579,0.83c-1.497,0.553-2.88,1.321-4.149,2.305c-1.271,0.983-2.377,2.151-3.319,3.504%20c-0.943,1.353-1.64,2.808-2.09,4.364v20.162h-1.229v-31.903h1.229v8.237c0.655-1.27,1.495-2.448,2.52-3.534%20c1.024-1.086,2.151-2.008,3.381-2.767c1.229-0.758,2.541-1.353,3.934-1.782c1.393-0.431,2.807-0.646,4.242-0.646%20c3.278,0,5.675,1.179,7.192,3.534c1.516,2.357,2.274,6.055,2.274,11.096V303.551z'%20/%3e%3cpath%20fill='%23DBDBDB'%20d='M187.753,304.166c-2.09,0-4.067-0.44-5.932-1.321c-1.865-0.881-3.494-2.09-4.887-3.627%20c-1.394-1.536-2.5-3.319-3.319-5.348c-0.82-2.028-1.229-4.189-1.229-6.485c0-2.253,0.389-4.364,1.168-6.331%20c0.778-1.967,1.854-3.688,3.227-5.163c1.373-1.476,2.971-2.633,4.794-3.474c1.823-0.839,3.781-1.26,5.871-1.26%20c2.13,0,4.128,0.431,5.993,1.291c1.864,0.86,3.483,2.028,4.856,3.504c1.373,1.475,2.468,3.217,3.289,5.225%20c0.819,2.008,1.229,4.16,1.229,6.454v0.677h-29.198c0.163,2.049,0.646,3.965,1.444,5.747c0.799,1.782,1.833,3.33,3.104,4.641%20c1.27,1.313,2.735,2.347,4.395,3.104c1.66,0.759,3.412,1.138,5.255,1.138c1.229,0,2.428-0.164,3.596-0.492%20c1.168-0.327,2.264-0.788,3.289-1.383c1.024-0.594,1.926-1.301,2.705-2.121c0.778-0.819,1.393-1.721,1.844-2.704l1.168,0.307%20c-0.452,1.106-1.097,2.121-1.937,3.043c-0.84,0.922-1.824,1.722-2.95,2.397c-1.128,0.676-2.357,1.209-3.688,1.598%20C190.509,303.971,189.146,304.166,187.753,304.166z%20M201.523,287.078c-0.123-2.131-0.574-4.098-1.353-5.901%20c-0.779-1.803-1.793-3.351-3.042-4.641c-1.25-1.291-2.695-2.306-4.334-3.043c-1.639-0.738-3.402-1.106-5.286-1.106%20c-1.885,0-3.648,0.368-5.287,1.106c-1.639,0.737-3.084,1.763-4.333,3.073c-1.25,1.313-2.244,2.869-2.981,4.672%20c-0.737,1.804-1.168,3.75-1.291,5.84H201.523z'%20/%3e%3cpath%20fill='%23DBDBDB'%20d='M245.043,260.277h1.353l7.069,16.351l7.13-16.351h1.353l-7.807,17.826l10.45,23.911l18.318-42.106h1.352%20l-18.994,43.644h-1.353l-10.388-23.912l-10.388,23.912h-1.353l-18.994-43.644h1.352l18.318,42.106l10.388-23.911L245.043,260.277z%20'%20/%3e%3cpath%20fill='%23DBDBDB'%20d='M298.152,304.166c-1.435,0-2.787-0.256-4.057-0.768c-1.271-0.513-2.367-1.209-3.289-2.09%20c-0.922-0.881-1.65-1.916-2.183-3.104c-0.533-1.188-0.799-2.459-0.799-3.812s0.317-2.582,0.953-3.688%20c0.635-1.106,1.537-2.059,2.705-2.857c1.168-0.8,2.561-1.424,4.18-1.875c1.618-0.451,3.39-0.677,5.317-0.677%20c1.844,0,3.708,0.154,5.594,0.461c1.885,0.308,3.585,0.749,5.102,1.322v-3.627c0-1.639-0.246-3.145-0.737-4.519%20c-0.492-1.372-1.199-2.54-2.121-3.503c-0.922-0.963-2.028-1.711-3.319-2.244c-1.291-0.532-2.715-0.799-4.272-0.799%20c-1.558,0-3.218,0.338-4.979,1.014c-1.763,0.677-3.545,1.65-5.348,2.92l-0.737-0.983c4.097-2.786,7.785-4.18,11.064-4.18%20c1.761,0,3.37,0.287,4.825,0.86c1.454,0.574,2.684,1.394,3.688,2.459c1.003,1.066,1.783,2.356,2.336,3.872%20c0.553,1.517,0.83,3.218,0.83,5.103v17.642c0,0.82,0.328,1.229,0.983,1.229v1.229c-0.451,0-0.737-0.04-0.86-0.123%20c-0.41-0.163-0.738-0.461-0.983-0.892c-0.246-0.43-0.369-0.911-0.369-1.444v-2.95c-1.475,1.927-3.402,3.411-5.778,4.456%20C303.521,303.643,300.939,304.166,298.152,304.166z%20M298.152,302.937c2.745,0,5.256-0.513,7.53-1.537s3.965-2.397,5.071-4.118%20c0.615-0.861,0.922-1.7,0.922-2.521v-6.332c-3.279-1.27-6.844-1.905-10.696-1.905c-1.804,0-3.433,0.185-4.887,0.554%20c-1.455,0.368-2.705,0.901-3.75,1.598c-1.045,0.697-1.855,1.527-2.428,2.49c-0.574,0.963-0.86,2.039-0.86,3.227%20c0,1.189,0.235,2.306,0.707,3.351c0.471,1.045,1.116,1.957,1.937,2.735c0.819,0.778,1.783,1.383,2.889,1.813%20C295.694,302.721,296.882,302.937,298.152,302.937z'%20/%3e%3cpath%20fill='%23DBDBDB'%20d='M325.69,316.03c0.696,0,1.311-0.052,1.844-0.153c0.532-0.104,0.88-0.257,1.045-0.462%20c0.04-0.082,0.153-0.287,0.338-0.614c0.185-0.328,0.471-0.922,0.861-1.782c0.389-0.861,0.911-2.05,1.567-3.565%20c0.655-1.517,1.516-3.483,2.582-5.901l-14.814-31.903h1.352l14.077,30.366l13.339-30.366h1.353l-18.994,43.337%20c-0.492,1.146-1.168,1.803-2.029,1.967c-0.82,0.205-1.66,0.308-2.52,0.308V316.03z'%20/%3e%3cpath%20fill='%23DBDBDB'%20d='M373.759,303.551v-43.644h17.766c1.76,0,3.4,0.379,4.916,1.137c1.516,0.759,2.818,1.763,3.904,3.013%20s1.936,2.664,2.551,4.241c0.615,1.578,0.922,3.187,0.922,4.825c0,1.722-0.287,3.381-0.861,4.979%20c-0.574,1.598-1.383,3.012-2.428,4.241s-2.295,2.213-3.75,2.95c-1.455,0.738-3.063,1.106-4.824,1.106h-16.966v17.15H373.759z%20M374.988,285.171h16.966c1.639,0,3.125-0.348,4.457-1.045c1.33-0.696,2.447-1.618,3.35-2.766c0.9-1.147,1.598-2.438,2.09-3.873%20c0.492-1.434,0.738-2.889,0.738-4.364c0-1.557-0.287-3.052-0.861-4.487c-0.574-1.434-1.363-2.704-2.367-3.811%20s-2.182-1.998-3.533-2.675c-1.354-0.676-2.787-1.014-4.303-1.014h-16.536V285.171z'%20/%3e%3cpath%20fill='%23DBDBDB'%20d='M411.193,258.678h1.229v40.14c0,1.189,0.369,2.132,1.106,2.828c0.737,0.697,1.722,1.045,2.95,1.045%20c0.451,0,0.993-0.051,1.63-0.154c0.635-0.102,1.219-0.235,1.751-0.399l0.431,0.983c-0.574,0.206-1.281,0.38-2.121,0.522%20c-0.84,0.144-1.547,0.216-2.12,0.216c-1.436,0-2.603-0.461-3.504-1.384c-0.902-0.922-1.353-2.141-1.353-3.657V258.678z'%20/%3e%3cpath%20fill='%23DBDBDB'%20d='M432.277,304.166c-1.436,0-2.787-0.256-4.058-0.768c-1.271-0.513-2.366-1.209-3.288-2.09%20s-1.65-1.916-2.183-3.104c-0.533-1.188-0.799-2.459-0.799-3.812s0.316-2.582,0.953-3.688c0.635-1.106,1.536-2.059,2.704-2.857%20c1.168-0.8,2.561-1.424,4.18-1.875s3.391-0.677,5.317-0.677c1.845,0,3.709,0.154,5.594,0.461c1.885,0.308,3.586,0.749,5.103,1.322%20v-3.627c0-1.639-0.246-3.145-0.738-4.519c-0.491-1.372-1.198-2.54-2.12-3.503s-2.029-1.711-3.319-2.244%20c-1.291-0.532-2.716-0.799-4.272-0.799c-1.558,0-3.218,0.338-4.979,1.014c-1.762,0.677-3.545,1.65-5.348,2.92l-0.737-0.983%20c4.098-2.786,7.785-4.18,11.064-4.18c1.762,0,3.37,0.287,4.825,0.86c1.454,0.574,2.684,1.394,3.688,2.459%20c1.004,1.066,1.782,2.356,2.336,3.872c0.553,1.517,0.83,3.218,0.83,5.103v17.642c0,0.82,0.327,1.229,0.983,1.229v1.229%20c-0.452,0-0.738-0.04-0.861-0.123c-0.41-0.163-0.737-0.461-0.983-0.892c-0.245-0.43-0.368-0.911-0.368-1.444v-2.95%20c-1.476,1.927-3.402,3.411-5.778,4.456C437.646,303.643,435.063,304.166,432.277,304.166z%20M432.277,302.937%20c2.745,0,5.256-0.513,7.529-1.537c2.274-1.024,3.965-2.397,5.071-4.118c0.615-0.861,0.923-1.7,0.923-2.521v-6.332%20c-3.279-1.27-6.845-1.905-10.696-1.905c-1.804,0-3.433,0.185-4.887,0.554c-1.455,0.368-2.705,0.901-3.75,1.598%20c-1.045,0.697-1.854,1.527-2.428,2.49c-0.574,0.963-0.86,2.039-0.86,3.227c0,1.189,0.235,2.306,0.707,3.351%20c0.471,1.045,1.116,1.957,1.936,2.735s1.783,1.383,2.89,1.813C429.818,302.721,431.007,302.937,432.277,302.937z'%20/%3e%3cpath%20fill='%23DBDBDB'%20d='M469.589,302.076c-0.614,0.41-1.179,0.718-1.69,0.922c-0.513,0.206-1.117,0.4-1.813,0.584%20c-0.697,0.185-1.475,0.277-2.336,0.277c-1.475,0-2.766-0.451-3.872-1.353s-1.66-2.09-1.66-3.565v-26.063h-4.61v-1.229h4.61%20v-11.126h1.229v11.126h7.684v1.229h-7.684v26.063c0,1.189,0.451,2.101,1.353,2.735c0.901,0.636,1.885,0.953,2.95,0.953%20c0.696,0,1.353-0.071,1.968-0.215c0.614-0.144,1.157-0.308,1.629-0.492c0.471-0.185,0.839-0.358,1.106-0.522%20c0.266-0.163,0.42-0.267,0.461-0.308L469.589,302.076z'%20/%3e%3cpath%20fill='%23DBDBDB'%20d='M476.597,303.551v-26.924h-4.61v-1.229h4.61v-5.04c0-3.894,0.737-6.916,2.213-9.067%20s3.544-3.227,6.209-3.227c1.188,0,2.314,0.194,3.381,0.584c1.064,0.39,1.884,0.891,2.458,1.506l-0.983,0.737%20c-0.491-0.492-1.178-0.892-2.059-1.198c-0.882-0.308-1.794-0.461-2.735-0.461c-2.336,0-4.13,0.952-5.379,2.857%20c-1.251,1.906-1.875,4.662-1.875,8.269v5.04h9.528v1.229h-9.528v26.924H476.597z'%20/%3e%3cpath%20fill='%23DBDBDB'%20d='M507.762,304.166c-2.09,0-4.058-0.44-5.901-1.321s-3.453-2.068-4.825-3.565%20c-1.373-1.495-2.459-3.247-3.258-5.256c-0.799-2.007-1.199-4.118-1.199-6.331c0-2.253,0.4-4.374,1.199-6.362%20c0.799-1.987,1.895-3.739,3.288-5.255s3.013-2.715,4.856-3.597c1.844-0.881,3.79-1.321,5.84-1.321c2.049,0,3.995,0.44,5.84,1.321%20c1.844,0.882,3.451,2.081,4.825,3.597c1.372,1.516,2.469,3.268,3.288,5.255c0.819,1.988,1.229,4.109,1.229,6.362%20c0,2.213-0.399,4.324-1.198,6.331c-0.799,2.009-1.886,3.761-3.258,5.256c-1.374,1.497-2.981,2.685-4.825,3.565%20C511.818,303.725,509.852,304.166,507.762,304.166z%20M493.808,287.815c0,2.05,0.369,3.995,1.106,5.84%20c0.738,1.844,1.731,3.453,2.981,4.825c1.25,1.373,2.715,2.459,4.396,3.258c1.68,0.799,3.482,1.199,5.409,1.199%20c1.885,0,3.678-0.409,5.379-1.229c1.699-0.819,3.196-1.926,4.487-3.319c1.29-1.393,2.305-3.013,3.042-4.856%20c0.738-1.844,1.106-3.812,1.106-5.901c0-2.049-0.368-3.995-1.106-5.84c-0.737-1.844-1.742-3.462-3.012-4.855%20c-1.271-1.393-2.757-2.499-4.456-3.319c-1.701-0.819-3.494-1.229-5.379-1.229c-1.886,0-3.679,0.41-5.379,1.229%20c-1.701,0.82-3.187,1.936-4.456,3.35c-1.271,1.414-2.274,3.054-3.013,4.918C494.177,283.749,493.808,285.725,493.808,287.815z'%20/%3e%3cpath%20fill='%23DBDBDB'%20d='M544.581,272.877c-3.033,0.123-5.646,1.106-7.837,2.951c-2.193,1.844-3.719,4.364-4.58,7.561v20.162%20h-1.229v-31.903h1.229v8.237c1.106-2.253,2.592-4.107,4.457-5.563c1.864-1.454,3.842-2.306,5.932-2.552%20c0.409-0.04,0.789-0.07,1.138-0.092c0.348-0.021,0.645-0.031,0.891-0.031V272.877z'%20/%3e%3cpath%20fill='%23DBDBDB'%20d='M596.77,303.551h-1.229v-17.765c0-4.589-0.688-7.97-2.06-10.143c-1.373-2.172-3.534-3.258-6.485-3.258%20c-1.517,0-2.94,0.276-4.271,0.83c-1.333,0.553-2.542,1.321-3.627,2.305c-1.087,0.983-2.028,2.151-2.828,3.504%20c-0.799,1.353-1.404,2.827-1.813,4.426v20.101h-1.229v-17.765c0-4.631-0.677-8.021-2.029-10.174%20c-1.352-2.151-3.504-3.227-6.454-3.227c-1.476,0-2.879,0.267-4.211,0.799c-1.332,0.533-2.541,1.281-3.626,2.244%20c-1.087,0.963-2.039,2.12-2.858,3.473c-0.82,1.353-1.455,2.849-1.906,4.487v20.162h-1.229v-31.903h1.229v8.237%20c1.393-2.786,3.166-4.938,5.317-6.454c2.151-1.516,4.497-2.274,7.038-2.274c2.705,0,4.918,0.84,6.639,2.521%20c1.722,1.681,2.745,3.934,3.074,6.762c3.196-6.188,7.458-9.282,12.785-9.282c3.319,0,5.778,1.198,7.377,3.596%20c1.598,2.397,2.397,6.076,2.397,11.034V303.551z'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", import.meta.url).href;
12
- function y({ message: l }) {
13
- const e = p(), { t: h } = D(), i = s(e);
14
- return /* @__PURE__ */ c("div", { className: "flex flex-1 flex-col items-center justify-center p-16", children: /* @__PURE__ */ r("div", { className: "w-full max-w-3xl text-center", children: [
1
+ var i = Object.defineProperty;
2
+ var l = (t, e) => i(t, "name", { value: e, configurable: !0 });
3
+ import { jsx as c, jsxs as a } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
4
+ import { getStartPagePath as m } from "../../utils/getStartPagePath.js";
5
+ import n from "@mui/material/Box";
6
+ import s from "@mui/material/Link";
7
+ import p from "@mui/material/Typography";
8
+ import { useGetCurrentUser as h } from "../../hooks/useCurrentUser.js";
9
+ import { useOwpTranslation as f } from "../../hooks/useOwpTranslation.js";
10
+ import { Link as x } from "react-router-dom";
11
+ const d = new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-200%20-200%201075%20585'%20fill='none'%20preserveAspectRatio='xMidYMax%20slice'%3e%3cg%3e%3cg%3e%3cg%3e%3cpath%20fill='%2344B8E9'%20d='M99.459,187.301c-34.578,4.41-67.366-8.122-89.163-30.835c17.449,39.288,60.931,64.262,107.672,58.305%20c56.073-7.146,95.567-56.08,88.214-109.297c-2.824-20.401-12.139-38.459-25.691-52.587c3.484,7.85,5.954,16.258,7.178,25.117%20C195.025,131.224,155.534,180.16,99.459,187.301z'%20/%3e%3cpath%20fill='%239BDBF8'%20d='M96.674,175.19c-34.54,4.663-67.166-5.795-88.744-25.565c17.116,34.628,60.316,55.95,107.005,49.642%20c56.02-7.564,95.804-52,88.874-99.248c-2.657-18.116-11.816-34-25.236-46.296c3.418,6.917,5.819,14.354,6.977,22.221%20C192.481,123.193,152.692,167.631,96.674,175.19z'%20/%3e%3cpath%20opacity='0.5'%20fill='%23E0F3FC'%20d='M137.403,157.894c-22.754,23.223-52.122,35.528-78.36,35.328%20c30.855,12.442,73.7,0.994,104.453-30.397c36.898-37.664,42.398-89.744,12.289-116.319%20c-11.547-10.19-26.654-15.132-42.971-15.254c6.161,2.485,11.86,5.899,16.874,10.324%20C179.796,68.154,174.297,120.226,137.403,157.894z'%20/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%2344B8E9'%20d='M118.416,35.852c34.796-2.078,66.669,12.621,86.895,36.744C190.537,32.223,148.824,4.391,101.79,7.198%20C45.363,10.569,2.677,56.747,6.449,110.334c1.446,20.553,9.532,39.193,22.107,54.198c-2.952-8.065-4.85-16.618-5.48-25.544%20C19.303,85.395,61.99,39.219,118.416,35.852z'%20/%3e%3cpath%20fill='%239BDBF8'%20d='M120.383,48.12c34.774-2.335,66.623,10.282,86.831,31.452c-14.759-35.697-56.428-59.858-103.437-56.698%20c-56.396,3.791-99.076,45.46-95.327,93.071c1.438,18.251,9.508,34.711,22.074,47.877c-2.949-7.129-4.845-14.707-5.469-22.631%20C21.308,93.579,63.985,51.913,120.383,48.12z'%20/%3e%3cpath%20opacity='0.5'%20fill='%23E0F3FC'%20d='M78.588,62.647c24.259-21.648,54.385-31.952,80.55-29.998%20c-29.951-14.48-73.466-5.933-106.256,23.328C13.542,91.085,4.564,142.68,32.828,171.207%20c10.833,10.951,25.577,16.886,41.851,18.106c-5.984-2.889-11.439-6.678-16.146-11.432C30.274,149.339,39.25,97.752,78.588,62.647%20z'%20/%3e%3c/g%3e%3c/g%3e%3cg%3e%3cpath%20fill='%232196F3'%20d='M320.677,17.979h5.815l30.401,70.319l30.665-70.319h5.816l-33.573,76.664l44.94,102.834l78.778-181.084%20h5.815l-81.687,187.693h-5.815l-44.677-102.834l-44.676,102.834h-5.816L224.979,16.393h5.816l78.778,181.084L354.25,94.643%20L320.677,17.979z'%20/%3e%3cpath%20fill='%232196F3'%20d='M521.321,204.086V16.393h76.398c7.576,0,14.627,1.632,21.148,4.891c6.519,3.263,12.115,7.58,16.787,12.954%20c4.668,5.378,8.327,11.458,10.971,18.241c2.644,6.787,3.966,13.705,3.966,20.752c0,7.402-1.235,14.54-3.701,21.413%20c-2.471,6.873-5.948,12.953-10.442,18.24s-9.872,9.517-16.126,12.689c-6.258,3.172-13.176,4.758-20.752,4.758h-72.962v73.755%20H521.321z%20M526.608,125.044h72.962c7.047,0,13.438-1.496,19.166-4.494c5.726-2.995,10.529-6.96,14.407-11.896%20c3.875-4.932,6.874-10.483,8.988-16.654c2.115-6.167,3.173-12.425,3.173-18.77c0-6.696-1.235-13.127-3.701-19.298%20c-2.471-6.167-5.861-11.632-10.178-16.39c-4.32-4.759-9.385-8.592-15.201-11.5c-5.815-2.908-11.986-4.362-18.505-4.362h-71.111%20V125.044z'%20/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", import.meta.url).href;
12
+ function F({ message: t }) {
13
+ const e = h(), { t: r } = f(), o = m(e);
14
+ return /* @__PURE__ */ c("div", { className: "flex flex-1 flex-col items-center justify-center p-16", children: /* @__PURE__ */ a("div", { className: "w-full max-w-3xl text-center", children: [
15
15
  /* @__PURE__ */ c(
16
- o,
16
+ n,
17
17
  {
18
18
  className: "block w-full",
19
19
  component: "img",
20
- src: m,
20
+ src: d,
21
21
  alt: "",
22
22
  "aria-hidden": !0
23
23
  }
24
24
  ),
25
25
  /* @__PURE__ */ c(
26
- v,
26
+ p,
27
27
  {
28
28
  variant: "h5",
29
29
  color: "text.secondary",
30
30
  className: "mt-8 text-center text-3xl font-medium tracking-tight md:text-4xl",
31
- children: l
31
+ children: t
32
32
  }
33
33
  ),
34
34
  /* @__PURE__ */ c(
35
- B,
35
+ s,
36
36
  {
37
37
  className: "mt-48 text-xl font-medium md:text-2xl",
38
38
  sx: { display: "block", width: "fit-content", mx: "auto" },
39
- component: f,
40
- to: i,
39
+ component: x,
40
+ to: o,
41
41
  underline: "always",
42
42
  color: "primary",
43
- children: h("Button.홈으로")
43
+ children: r("Button.홈으로")
44
44
  }
45
45
  )
46
46
  ] }) });
47
47
  }
48
- t(y, "OwpErrorStatusPage");
48
+ l(F, "OwpErrorStatusPage");
49
49
  export {
50
- y as OwpErrorStatusPage
50
+ F as OwpErrorStatusPage
51
51
  };
52
52
  //# sourceMappingURL=OwpErrorStatusPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OwpErrorStatusPage.js","sources":["../../../src/components/OwpErrorStatusPage/OwpErrorStatusPage.tsx"],"sourcesContent":["import { getStartPagePath } from '@/utils/getStartPagePath';\nimport Box from '@mui/material/Box';\nimport Link from '@mui/material/Link';\nimport Typography from '@mui/material/Typography';\nimport { useGetCurrentUser } from '@/hooks/useCurrentUser';\nimport { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport { Link as RouterLink } from 'react-router-dom';\n\nconst errorPageIllustrationSrc = new URL('./owp_error_page.svg', import.meta.url).href;\n\nexport type OwpErrorStatusPageProps = {\n message: string;\n};\n\nfunction OwpErrorStatusPage({ message }: OwpErrorStatusPageProps) {\n const currentUser = useGetCurrentUser();\n const { t } = useOwpTranslation();\n const homePath = getStartPagePath(currentUser);\n\n return (\n <div className=\"flex flex-1 flex-col items-center justify-center p-16\">\n <div className=\"w-full max-w-3xl text-center\">\n <Box\n className=\"block w-full\"\n component=\"img\"\n src={errorPageIllustrationSrc}\n alt=\"\"\n aria-hidden\n />\n <Typography\n variant=\"h5\"\n color=\"text.secondary\"\n className=\"mt-8 text-center text-3xl font-medium tracking-tight md:text-4xl\"\n >\n {message}\n </Typography>\n <Link\n className=\"mt-48 text-xl font-medium md:text-2xl\"\n sx={{ display: 'block', width: 'fit-content', mx: 'auto' }}\n component={RouterLink}\n to={homePath}\n underline=\"always\"\n color=\"primary\"\n >\n {t('Button.홈으로')}\n </Link>\n </div>\n </div>\n );\n}\n\nexport { OwpErrorStatusPage };\n"],"names":["errorPageIllustrationSrc","OwpErrorStatusPage","message","currentUser","useGetCurrentUser","t","useOwpTranslation","homePath","getStartPagePath","jsxs","jsx","Box","Typography","Link","RouterLink","__name"],"mappings":";;;;;;;;;;AAQA,MAAMA,IAA2B,IAAA,IAAA,86bAAA,YAAA,GAAA,EAAiD;AAMlF,SAASC,EAAmB,EAAE,SAAAC,KAAoC;AAChE,QAAMC,IAAcC,EAAA,GACd,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACRC,IAAWC,EAAiBL,CAAW;AAE7C,2BACG,OAAA,EAAI,WAAU,yDACb,UAAA,gBAAAM,EAAC,OAAA,EAAI,WAAU,gCACb,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,WAAU;AAAA,QACV,KAAKX;AAAA,QACL,KAAI;AAAA,QACJ,eAAW;AAAA,MAAA;AAAA,IAAA;AAAA,IAEb,gBAAAU;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,OAAM;AAAA,QACN,WAAU;AAAA,QAET,UAAAV;AAAA,MAAA;AAAA,IAAA;AAAA,IAEH,gBAAAQ;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,IAAI,EAAE,SAAS,SAAS,OAAO,eAAe,IAAI,OAAA;AAAA,QAClD,WAAWC;AAAAA,QACX,IAAIP;AAAA,QACJ,WAAU;AAAA,QACV,OAAM;AAAA,QAEL,YAAE,YAAY;AAAA,MAAA;AAAA,IAAA;AAAA,EACjB,EAAA,CACF,EAAA,CACF;AAEJ;AAnCSQ,EAAAd,GAAA;"}
1
+ {"version":3,"file":"OwpErrorStatusPage.js","sources":["../../../src/components/OwpErrorStatusPage/OwpErrorStatusPage.tsx"],"sourcesContent":["import { getStartPagePath } from '@/utils/getStartPagePath';\nimport Box from '@mui/material/Box';\nimport Link from '@mui/material/Link';\nimport Typography from '@mui/material/Typography';\nimport { useGetCurrentUser } from '@/hooks/useCurrentUser';\nimport { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport { Link as RouterLink } from 'react-router-dom';\n\nconst owpIllustrationSrc = new URL('./assets/owp.svg', import.meta.url).href;\n\nexport type OwpErrorStatusPageProps = {\n message: string;\n};\n\nfunction OwpErrorStatusPage({ message }: OwpErrorStatusPageProps) {\n const currentUser = useGetCurrentUser();\n const { t } = useOwpTranslation();\n const homePath = getStartPagePath(currentUser);\n\n return (\n <div className=\"flex flex-1 flex-col items-center justify-center p-16\">\n <div className=\"w-full max-w-3xl text-center\">\n <Box\n className=\"block w-full\"\n component=\"img\"\n src={owpIllustrationSrc}\n alt=\"\"\n aria-hidden\n />\n <Typography\n variant=\"h5\"\n color=\"text.secondary\"\n className=\"mt-8 text-center text-3xl font-medium tracking-tight md:text-4xl\"\n >\n {message}\n </Typography>\n <Link\n className=\"mt-48 text-xl font-medium md:text-2xl\"\n sx={{ display: 'block', width: 'fit-content', mx: 'auto' }}\n component={RouterLink}\n to={homePath}\n underline=\"always\"\n color=\"primary\"\n >\n {t('Button.홈으로')}\n </Link>\n </div>\n </div>\n );\n}\n\nexport { OwpErrorStatusPage };\n"],"names":["owpIllustrationSrc","OwpErrorStatusPage","message","currentUser","useGetCurrentUser","t","useOwpTranslation","homePath","getStartPagePath","jsxs","jsx","Box","Typography","Link","RouterLink","__name"],"mappings":";;;;;;;;;;AAQA,MAAMA,IAAqB,IAAA,IAAA,8kGAAA,YAAA,GAAA,EAA6C;AAMxE,SAASC,EAAmB,EAAE,SAAAC,KAAoC;AAChE,QAAMC,IAAcC,EAAA,GACd,EAAE,GAAAC,EAAA,IAAMC,EAAA,GACRC,IAAWC,EAAiBL,CAAW;AAE7C,2BACG,OAAA,EAAI,WAAU,yDACb,UAAA,gBAAAM,EAAC,OAAA,EAAI,WAAU,gCACb,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,WAAU;AAAA,QACV,KAAKX;AAAA,QACL,KAAI;AAAA,QACJ,eAAW;AAAA,MAAA;AAAA,IAAA;AAAA,IAEb,gBAAAU;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,SAAQ;AAAA,QACR,OAAM;AAAA,QACN,WAAU;AAAA,QAET,UAAAV;AAAA,MAAA;AAAA,IAAA;AAAA,IAEH,gBAAAQ;AAAA,MAACG;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,IAAI,EAAE,SAAS,SAAS,OAAO,eAAe,IAAI,OAAA;AAAA,QAClD,WAAWC;AAAAA,QACX,IAAIP;AAAA,QACJ,WAAU;AAAA,QACV,OAAM;AAAA,QAEL,YAAE,YAAY;AAAA,MAAA;AAAA,IAAA;AAAA,EACjB,EAAA,CACF,EAAA,CACF;AAEJ;AAnCSQ,EAAAd,GAAA;"}
@@ -1,48 +1,47 @@
1
- var v = Object.defineProperty;
2
- var g = (s, o) => v(s, "name", { value: o, configurable: !0 });
3
- import { jsx as I } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
1
+ var w = Object.defineProperty;
2
+ var g = (s, o) => w(s, "name", { value: o, configurable: !0 });
3
+ import { jsx as L } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
4
4
  import { themeLayouts as R } from "../../layout/themeLayouts.js";
5
5
  import { useOwpAppContext as z } from "../../contexts/OwpAppProvider.js";
6
- import { generateSettings as C } from "../../configs/defaultConfig.js";
7
- import { useOwpTranslation as P } from "../../hooks/useOwpTranslation.js";
8
- import { useAppDispatch as x, useAppSelector as L } from "../../hooks/useAppStore.js";
9
- import { selectOwpCurrentSettings as A, selectOwpDefaultSettings as j, setSettings as B } from "../../store/owpSettingsSlice.js";
10
- import { useRef as D, useMemo as f, useEffect as h } from "react";
6
+ import { generateSettings as O } from "../../configs/defaultConfig.js";
7
+ import { useOwpTranslation as C } from "../../hooks/useOwpTranslation.js";
8
+ import { useSetSettings as P, useGetCurrentSettings as x, useGetDefaultSettings as j } from "../../hooks/useOwpSettings.js";
9
+ import { useRef as B, useMemo as f, useEffect as S } from "react";
11
10
  import { useLocation as E, matchRoutes as F } from "react-router-dom";
12
- import { isEqual as M } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
13
- import { merge as T } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/merge.js";
14
- import { OwpLoading as b } from "../OwpLoading/OwpLoading.js";
15
- function $(s) {
11
+ import { isEqual as G } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isEqual.js";
12
+ import { merge as M } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/merge.js";
13
+ import { OwpLoading as T } from "../OwpLoading/OwpLoading.js";
14
+ function Y(s) {
16
15
  var y;
17
- const { routesConfig: o } = z(), { i18n: r } = P(), { layouts: l = R, children: u } = s, a = x(), t = L(A), i = L(j), m = (y = t == null ? void 0 : t.layout) == null ? void 0 : y.style, e = E(), { pathname: p } = e, S = D(!1), d = f(
18
- () => k(o, p, "settings", !0),
19
- [p, o]
20
- ), c = f(() => d === void 0 ? i : C(i, d), [i, d]), n = f(
21
- () => t === c || M(c, t),
16
+ const { routesConfig: o } = z(), { i18n: r } = C(), { layouts: m = R, children: u } = s, a = P(), t = x(), n = j(), l = (y = t == null ? void 0 : t.layout) == null ? void 0 : y.style, e = E(), { pathname: d } = e, h = B(!1), p = f(
17
+ () => b(o, d, "settings", !0),
18
+ [d, o]
19
+ ), c = f(() => p === void 0 ? n : O(n, p), [n, p]), i = f(
20
+ () => t === c || G(c, t),
22
21
  [c, t]
23
22
  );
24
- return h(() => {
25
- n || a(B(c));
26
- }, [c, a, n]), h(() => {
23
+ return S(() => {
24
+ i || a(c);
25
+ }, [c, i, a]), S(() => {
27
26
  window.scrollTo(0, 0);
28
- }, [p]), h(() => {
29
- n && r.isInitialized && (S.current = !0);
30
- }, [r.isInitialized, n]), f(() => !r.isInitialized || !n && !S.current ? /* @__PURE__ */ I(b, {}) : Object.entries(l).map(([w, O]) => w === m ? /* @__PURE__ */ I(O, { children: u }, w) : null), [u, r.isInitialized, n, m, l]);
27
+ }, [d]), S(() => {
28
+ i && r.isInitialized && (h.current = !0);
29
+ }, [r.isInitialized, i]), f(() => !r.isInitialized || !i && !h.current ? /* @__PURE__ */ L(T, {}) : Object.entries(m).map(([I, v]) => I === l ? /* @__PURE__ */ L(v, { children: u }, I) : null), [u, r.isInitialized, i, l, m]);
31
30
  }
32
- g($, "OwpLayout");
33
- function k(s, o, r, l = !0) {
31
+ g(Y, "OwpLayout");
32
+ function b(s, o, r, m = !0) {
34
33
  const u = F(s, o);
35
34
  if (!u)
36
35
  return;
37
36
  let a = !1;
38
- const t = u.reduce((i, m) => {
39
- const e = m.route[r];
40
- return e === void 0 ? i : (a = !0, !l || e === null ? e : T(i ?? {}, e));
37
+ const t = u.reduce((n, l) => {
38
+ const e = l.route[r];
39
+ return e === void 0 ? n : (a = !0, !m || e === null ? e : M(n ?? {}, e));
41
40
  }, void 0);
42
41
  return a ? t : void 0;
43
42
  }
44
- g(k, "getRouteParamUtil");
43
+ g(b, "getRouteParamUtil");
45
44
  export {
46
- $ as OwpLayout
45
+ Y as OwpLayout
47
46
  };
48
47
  //# sourceMappingURL=OwpLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OwpLayout.js","sources":["../../../src/components/OwpLayout/OwpLayout.tsx"],"sourcesContent":["import { themeLayouts, themeLayoutsType } from '@/layout/themeLayouts';\nimport { useOwpAppContext } from '@/contexts/OwpAppProvider';\nimport { generateSettings } from '@/configs/defaultConfig';\nimport { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport { useAppDispatch, useAppSelector } from '@/hooks/useAppStore';\nimport {\n selectOwpCurrentSettings,\n selectOwpDefaultSettings,\n setSettings,\n} from '@/store/owpSettingsSlice';\nimport type { OwpSettingsConfigType } from '@/types/OwpSettingsTypes';\nimport { OwpRoutesType } from '@/utils/common/OwpUtils';\nimport { isEqual, merge } from 'es-toolkit/compat';\nimport { type ReactNode, useEffect, useMemo, useRef } from 'react';\nimport { matchRoutes, RouteMatch, RouteObject, useLocation } from 'react-router-dom';\nimport { OwpLoading } from '../OwpLoading';\n\nexport type OwpRouteObjectType = RouteObject & {\n settings?: OwpSettingsConfigType;\n auth?: string[] | [] | null | undefined;\n};\n\nexport type OwpRouteMatchType = RouteMatch & {\n route: OwpRouteObjectType;\n};\n\ntype OwpLayoutProps = {\n layouts?: themeLayoutsType;\n children?: ReactNode;\n};\n\n/**\n * OwpLayout\n * React frontend component in a React project that is used for layouting the user interface. The component\n * handles generating user interface settings related to current routes, merged with default settings, and uses\n * the new settings to generate layouts.\n */\nfunction OwpLayout(props: OwpLayoutProps) {\n const { routesConfig } = useOwpAppContext();\n const { i18n } = useOwpTranslation();\n\n const { layouts = themeLayouts, children } = props;\n const dispatch = useAppDispatch();\n const settings = useAppSelector(selectOwpCurrentSettings);\n const defaultSettings = useAppSelector(selectOwpDefaultSettings);\n\n const layoutStyle = settings?.layout?.style;\n const location = useLocation();\n const { pathname } = location;\n const hasCompletedInitialLayoutSyncRef = useRef(false);\n\n const matchedSettings = useMemo(\n () => getRouteParamUtil(routesConfig, pathname, 'settings', true),\n [pathname, routesConfig],\n );\n const currentSettings = useMemo(() => {\n if (matchedSettings === undefined) {\n return defaultSettings;\n }\n\n return generateSettings(defaultSettings, matchedSettings);\n }, [defaultSettings, matchedSettings]);\n const isSettingsSynchronized = useMemo(\n () => settings === currentSettings || isEqual(currentSettings, settings),\n [currentSettings, settings],\n );\n\n useEffect(() => {\n if (isSettingsSynchronized) {\n return;\n }\n\n dispatch(setSettings(currentSettings));\n }, [currentSettings, dispatch, isSettingsSynchronized]);\n\n useEffect(() => {\n window.scrollTo(0, 0);\n }, [pathname]);\n\n useEffect(() => {\n if (isSettingsSynchronized && i18n.isInitialized) {\n hasCompletedInitialLayoutSyncRef.current = true;\n }\n }, [i18n.isInitialized, isSettingsSynchronized]);\n\n return useMemo(() => {\n const shouldBlockForInitialLoading =\n !i18n.isInitialized ||\n (!isSettingsSynchronized && !hasCompletedInitialLayoutSyncRef.current);\n\n if (shouldBlockForInitialLoading) {\n return <OwpLoading />;\n }\n\n return Object.entries(layouts).map(([key, Layout]) => {\n if (key === layoutStyle) {\n return <Layout key={key}>{children}</Layout>;\n }\n\n return null;\n });\n }, [children, i18n.isInitialized, isSettingsSynchronized, layoutStyle, layouts]);\n}\n\nexport { OwpLayout };\n\n/**\n * Utility function to retrieve and merge or replace a specific route parameter from matched routes.\n *\n * @param pathname The current pathname\n * @param key The key of the parameter to merge or replace (e.g., 'settings', 'auth')\n * @param useMerge Whether to merge the parameter (using es-toolkit merge) or replace it\n * @returns The merged or replaced parameter data of type T\n */\nfunction getRouteParamUtil<T>(\n routes: OwpRoutesType,\n pathname: string,\n key: keyof OwpRouteObjectType,\n useMerge: boolean = true,\n): T | undefined {\n const matchedRoutes = matchRoutes(routes, pathname) as OwpRouteMatchType[] | null;\n\n if (!matchedRoutes) {\n return undefined;\n }\n\n let hasMatchedParam = false;\n\n const resolvedRouteParam = matchedRoutes.reduce<T | undefined>((acc, match) => {\n const routeParam = match.route[key] as T | undefined;\n\n if (routeParam === undefined) {\n return acc;\n }\n\n hasMatchedParam = true;\n\n if (!useMerge) {\n return routeParam;\n }\n\n if (routeParam === null) {\n return routeParam;\n }\n\n return merge(acc ?? {}, routeParam);\n }, undefined);\n\n return hasMatchedParam ? resolvedRouteParam : undefined;\n}\n"],"names":["OwpLayout","props","routesConfig","useOwpAppContext","i18n","useOwpTranslation","layouts","themeLayouts","children","dispatch","useAppDispatch","settings","useAppSelector","selectOwpCurrentSettings","defaultSettings","selectOwpDefaultSettings","layoutStyle","_a","location","useLocation","pathname","hasCompletedInitialLayoutSyncRef","useRef","matchedSettings","useMemo","getRouteParamUtil","currentSettings","generateSettings","isSettingsSynchronized","isEqual","useEffect","setSettings","OwpLoading","key","Layout","jsx","__name","routes","useMerge","matchedRoutes","matchRoutes","hasMatchedParam","resolvedRouteParam","acc","match","routeParam","merge"],"mappings":";;;;;;;;;;;;;;AAqCA,SAASA,EAAUC,GAAuB;;AACxC,QAAM,EAAE,cAAAC,EAAA,IAAiBC,EAAA,GACnB,EAAE,MAAAC,EAAA,IAASC,EAAA,GAEX,EAAE,SAAAC,IAAUC,GAAc,UAAAC,EAAA,IAAaP,GACvCQ,IAAWC,EAAA,GACXC,IAAWC,EAAeC,CAAwB,GAClDC,IAAkBF,EAAeG,CAAwB,GAEzDC,KAAcC,IAAAN,KAAA,gBAAAA,EAAU,WAAV,gBAAAM,EAAkB,OAChCC,IAAWC,EAAA,GACX,EAAE,UAAAC,MAAaF,GACfG,IAAmCC,EAAO,EAAK,GAE/CC,IAAkBC;AAAA,IACtB,MAAMC,EAAkBvB,GAAckB,GAAU,YAAY,EAAI;AAAA,IAChE,CAACA,GAAUlB,CAAY;AAAA,EAAA,GAEnBwB,IAAkBF,EAAQ,MAC1BD,MAAoB,SACfT,IAGFa,EAAiBb,GAAiBS,CAAe,GACvD,CAACT,GAAiBS,CAAe,CAAC,GAC/BK,IAAyBJ;AAAA,IAC7B,MAAMb,MAAae,KAAmBG,EAAQH,GAAiBf,CAAQ;AAAA,IACvE,CAACe,GAAiBf,CAAQ;AAAA,EAAA;AAG5B,SAAAmB,EAAU,MAAM;AACd,IAAIF,KAIJnB,EAASsB,EAAYL,CAAe,CAAC;AAAA,EACvC,GAAG,CAACA,GAAiBjB,GAAUmB,CAAsB,CAAC,GAEtDE,EAAU,MAAM;AACd,WAAO,SAAS,GAAG,CAAC;AAAA,EACtB,GAAG,CAACV,CAAQ,CAAC,GAEbU,EAAU,MAAM;AACd,IAAIF,KAA0BxB,EAAK,kBACjCiB,EAAiC,UAAU;AAAA,EAE/C,GAAG,CAACjB,EAAK,eAAewB,CAAsB,CAAC,GAExCJ,EAAQ,MAEX,CAACpB,EAAK,iBACL,CAACwB,KAA0B,CAACP,EAAiC,4BAGtDW,GAAA,EAAW,IAGd,OAAO,QAAQ1B,CAAO,EAAE,IAAI,CAAC,CAAC2B,GAAKC,CAAM,MAC1CD,MAAQjB,IACH,gBAAAmB,EAACD,GAAA,EAAkB,UAAA1B,EAAA,GAANyB,CAAe,IAG9B,IACR,GACA,CAACzB,GAAUJ,EAAK,eAAewB,GAAwBZ,GAAaV,CAAO,CAAC;AACjF;AAjES8B,EAAApC,GAAA;AA6ET,SAASyB,EACPY,GACAjB,GACAa,GACAK,IAAoB,IACL;AACf,QAAMC,IAAgBC,EAAYH,GAAQjB,CAAQ;AAElD,MAAI,CAACmB;AACH;AAGF,MAAIE,IAAkB;AAEtB,QAAMC,IAAqBH,EAAc,OAAsB,CAACI,GAAKC,MAAU;AAC7E,UAAMC,IAAaD,EAAM,MAAMX,CAAG;AAElC,WAAIY,MAAe,SACVF,KAGTF,IAAkB,IAEd,CAACH,KAIDO,MAAe,OACVA,IAGFC,EAAMH,KAAO,CAAA,GAAIE,CAAU;AAAA,EACpC,GAAG,MAAS;AAEZ,SAAOJ,IAAkBC,IAAqB;AAChD;AAnCSN,EAAAX,GAAA;"}
1
+ {"version":3,"file":"OwpLayout.js","sources":["../../../src/components/OwpLayout/OwpLayout.tsx"],"sourcesContent":["import { themeLayouts, themeLayoutsType } from '@/layout/themeLayouts';\nimport { useOwpAppContext } from '@/contexts/OwpAppProvider';\nimport { generateSettings } from '@/configs/defaultConfig';\nimport { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport {\n useGetCurrentSettings,\n useGetDefaultSettings,\n useSetSettings,\n} from '@/hooks/useOwpSettings';\nimport type { OwpSettingsConfigType } from '@/types/OwpSettingsTypes';\nimport { OwpRoutesType } from '@/utils/common/OwpUtils';\nimport { isEqual, merge } from 'es-toolkit/compat';\nimport { type ReactNode, useEffect, useMemo, useRef } from 'react';\nimport { matchRoutes, RouteMatch, RouteObject, useLocation } from 'react-router-dom';\nimport { OwpLoading } from '../OwpLoading';\n\nexport type OwpRouteObjectType = RouteObject & {\n settings?: OwpSettingsConfigType;\n auth?: string[] | [] | null | undefined;\n};\n\nexport type OwpRouteMatchType = RouteMatch & {\n route: OwpRouteObjectType;\n};\n\ntype OwpLayoutProps = {\n layouts?: themeLayoutsType;\n children?: ReactNode;\n};\n\n/**\n * OwpLayout\n * React frontend component in a React project that is used for layouting the user interface. The component\n * handles generating user interface settings related to current routes, merged with default settings, and uses\n * the new settings to generate layouts.\n */\nfunction OwpLayout(props: OwpLayoutProps) {\n const { routesConfig } = useOwpAppContext();\n const { i18n } = useOwpTranslation();\n\n const { layouts = themeLayouts, children } = props;\n const setSettings = useSetSettings();\n const settings = useGetCurrentSettings();\n const defaultSettings = useGetDefaultSettings();\n\n const layoutStyle = settings?.layout?.style;\n const location = useLocation();\n const { pathname } = location;\n const hasCompletedInitialLayoutSyncRef = useRef(false);\n\n const matchedSettings = useMemo(\n () => getRouteParamUtil(routesConfig, pathname, 'settings', true),\n [pathname, routesConfig],\n );\n const currentSettings = useMemo(() => {\n if (matchedSettings === undefined) {\n return defaultSettings;\n }\n\n return generateSettings(defaultSettings, matchedSettings);\n }, [defaultSettings, matchedSettings]);\n const isSettingsSynchronized = useMemo(\n () => settings === currentSettings || isEqual(currentSettings, settings),\n [currentSettings, settings],\n );\n\n useEffect(() => {\n if (isSettingsSynchronized) {\n return;\n }\n\n setSettings(currentSettings);\n }, [currentSettings, isSettingsSynchronized, setSettings]);\n\n useEffect(() => {\n window.scrollTo(0, 0);\n }, [pathname]);\n\n useEffect(() => {\n if (isSettingsSynchronized && i18n.isInitialized) {\n hasCompletedInitialLayoutSyncRef.current = true;\n }\n }, [i18n.isInitialized, isSettingsSynchronized]);\n\n return useMemo(() => {\n const shouldBlockForInitialLoading =\n !i18n.isInitialized ||\n (!isSettingsSynchronized && !hasCompletedInitialLayoutSyncRef.current);\n\n if (shouldBlockForInitialLoading) {\n return <OwpLoading />;\n }\n\n return Object.entries(layouts).map(([key, Layout]) => {\n if (key === layoutStyle) {\n return <Layout key={key}>{children}</Layout>;\n }\n\n return null;\n });\n }, [children, i18n.isInitialized, isSettingsSynchronized, layoutStyle, layouts]);\n}\n\nexport { OwpLayout };\n\n/**\n * Utility function to retrieve and merge or replace a specific route parameter from matched routes.\n *\n * @param pathname The current pathname\n * @param key The key of the parameter to merge or replace (e.g., 'settings', 'auth')\n * @param useMerge Whether to merge the parameter (using es-toolkit merge) or replace it\n * @returns The merged or replaced parameter data of type T\n */\nfunction getRouteParamUtil<T>(\n routes: OwpRoutesType,\n pathname: string,\n key: keyof OwpRouteObjectType,\n useMerge: boolean = true,\n): T | undefined {\n const matchedRoutes = matchRoutes(routes, pathname) as OwpRouteMatchType[] | null;\n\n if (!matchedRoutes) {\n return undefined;\n }\n\n let hasMatchedParam = false;\n\n const resolvedRouteParam = matchedRoutes.reduce<T | undefined>((acc, match) => {\n const routeParam = match.route[key] as T | undefined;\n\n if (routeParam === undefined) {\n return acc;\n }\n\n hasMatchedParam = true;\n\n if (!useMerge) {\n return routeParam;\n }\n\n if (routeParam === null) {\n return routeParam;\n }\n\n return merge(acc ?? {}, routeParam);\n }, undefined);\n\n return hasMatchedParam ? resolvedRouteParam : undefined;\n}\n"],"names":["OwpLayout","props","routesConfig","useOwpAppContext","i18n","useOwpTranslation","layouts","themeLayouts","children","setSettings","useSetSettings","settings","useGetCurrentSettings","defaultSettings","useGetDefaultSettings","layoutStyle","_a","location","useLocation","pathname","hasCompletedInitialLayoutSyncRef","useRef","matchedSettings","useMemo","getRouteParamUtil","currentSettings","generateSettings","isSettingsSynchronized","isEqual","useEffect","OwpLoading","key","Layout","jsx","__name","routes","useMerge","matchedRoutes","matchRoutes","hasMatchedParam","resolvedRouteParam","acc","match","routeParam","merge"],"mappings":";;;;;;;;;;;;;AAoCA,SAASA,EAAUC,GAAuB;;AACxC,QAAM,EAAE,cAAAC,EAAA,IAAiBC,EAAA,GACnB,EAAE,MAAAC,EAAA,IAASC,EAAA,GAEX,EAAE,SAAAC,IAAUC,GAAc,UAAAC,EAAA,IAAaP,GACvCQ,IAAcC,EAAA,GACdC,IAAWC,EAAA,GACXC,IAAkBC,EAAA,GAElBC,KAAcC,IAAAL,KAAA,gBAAAA,EAAU,WAAV,gBAAAK,EAAkB,OAChCC,IAAWC,EAAA,GACX,EAAE,UAAAC,MAAaF,GACfG,IAAmCC,EAAO,EAAK,GAE/CC,IAAkBC;AAAA,IACtB,MAAMC,EAAkBtB,GAAciB,GAAU,YAAY,EAAI;AAAA,IAChE,CAACA,GAAUjB,CAAY;AAAA,EAAA,GAEnBuB,IAAkBF,EAAQ,MAC1BD,MAAoB,SACfT,IAGFa,EAAiBb,GAAiBS,CAAe,GACvD,CAACT,GAAiBS,CAAe,CAAC,GAC/BK,IAAyBJ;AAAA,IAC7B,MAAMZ,MAAac,KAAmBG,EAAQH,GAAiBd,CAAQ;AAAA,IACvE,CAACc,GAAiBd,CAAQ;AAAA,EAAA;AAG5B,SAAAkB,EAAU,MAAM;AACd,IAAIF,KAIJlB,EAAYgB,CAAe;AAAA,EAC7B,GAAG,CAACA,GAAiBE,GAAwBlB,CAAW,CAAC,GAEzDoB,EAAU,MAAM;AACd,WAAO,SAAS,GAAG,CAAC;AAAA,EACtB,GAAG,CAACV,CAAQ,CAAC,GAEbU,EAAU,MAAM;AACd,IAAIF,KAA0BvB,EAAK,kBACjCgB,EAAiC,UAAU;AAAA,EAE/C,GAAG,CAAChB,EAAK,eAAeuB,CAAsB,CAAC,GAExCJ,EAAQ,MAEX,CAACnB,EAAK,iBACL,CAACuB,KAA0B,CAACP,EAAiC,4BAGtDU,GAAA,EAAW,IAGd,OAAO,QAAQxB,CAAO,EAAE,IAAI,CAAC,CAACyB,GAAKC,CAAM,MAC1CD,MAAQhB,IACH,gBAAAkB,EAACD,GAAA,EAAkB,UAAAxB,EAAA,GAANuB,CAAe,IAG9B,IACR,GACA,CAACvB,GAAUJ,EAAK,eAAeuB,GAAwBZ,GAAaT,CAAO,CAAC;AACjF;AAjES4B,EAAAlC,GAAA;AA6ET,SAASwB,EACPW,GACAhB,GACAY,GACAK,IAAoB,IACL;AACf,QAAMC,IAAgBC,EAAYH,GAAQhB,CAAQ;AAElD,MAAI,CAACkB;AACH;AAGF,MAAIE,IAAkB;AAEtB,QAAMC,IAAqBH,EAAc,OAAsB,CAACI,GAAKC,MAAU;AAC7E,UAAMC,IAAaD,EAAM,MAAMX,CAAG;AAElC,WAAIY,MAAe,SACVF,KAGTF,IAAkB,IAEd,CAACH,KAIDO,MAAe,OACVA,IAGFC,EAAMH,KAAO,CAAA,GAAIE,CAAU;AAAA,EACpC,GAAG,MAAS;AAEZ,SAAOJ,IAAkBC,IAAqB;AAChD;AAnCSN,EAAAV,GAAA;"}
@@ -10,8 +10,8 @@ import { clsx as io } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/cls
10
10
  import { MaterialReactTable as G, useMaterialReactTable as no, MRT_BottomToolbar as ao } from "../../node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/dist/index.esm.js";
11
11
  import { MRT_Localization_KO as so } from "../../node_modules/.pnpm/material-react-table@3.2.1_69126b2b17f4a182bc981f3ab8d41a62/node_modules/material-react-table/locales/ko/index.esm.js";
12
12
  import { OwpTableTotalCount as co } from "../OwpTable/OwpTable.js";
13
- import { OwpMrtTableNoDataOverlay as uo } from "./OwpMrtTableNoDataOverlay.js";
14
- import po from "./OwpMrtTableTopToolbar.js";
13
+ import { OwpMrtTableNoDataOverlay as uo } from "./internal/OwpMrtTableNoDataOverlay.js";
14
+ import po from "./internal/OwpMrtTableTopToolbar.js";
15
15
  import { isArray as g } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArray.js";
16
16
  import { defaults as z } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/defaults.js";
17
17
  import { isNumber as bo } from "../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isNumber.js";