adminizer 4.1.0-build.3 → 4.1.0-build.30

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 (249) hide show
  1. package/Readme.md +11 -1
  2. package/assets/{VanillaJSONEditor-FUe77pIA.js → VanillaJSONEditor-DKF_Ft1S.js} +96 -96
  3. package/assets/add-BA0ZgbVP.js +1 -0
  4. package/assets/add-form-D5PNdz6X.js +1 -0
  5. package/assets/add-group-BqvmQRDY.js +1 -0
  6. package/assets/{add-group-form-dzadPSfL.js → add-group-form-D1P6v9Fm.js} +1 -1
  7. package/assets/add-user-C31g3pXW.js +1 -0
  8. package/assets/add-user-form-DyczuE4l.js +1 -0
  9. package/assets/{app-DMmad2-f.css → app-ClS67l37.css} +1 -1
  10. package/assets/app-layout-CQTlWDgg.js +1 -0
  11. package/assets/{app-shell-BWMRMkHM.js → app-shell-B4pzTbiN.js} +1 -1
  12. package/assets/app-sidebar-DX9Shcd3.js +1 -0
  13. package/assets/{app-sidebar-header-DLAFi13E.js → app-sidebar-header-BcZ0JSSJ.js} +1 -1
  14. package/assets/app.js +9 -9
  15. package/assets/{breadcrumbs-CQNon4Vl.js → breadcrumbs-DIhfOCvh.js} +1 -1
  16. package/assets/{button-CQ9t1kLz.js → button-DleSKY4-.js} +1 -1
  17. package/assets/catalog-BHbLV-zr.js +12 -0
  18. package/assets/catalog-CZUI8zho.css +1 -0
  19. package/assets/{checkbox-W0nGAXIj.js → checkbox-DgmLwxEt.js} +1 -1
  20. package/assets/{compiler-runtime-tM4jBQ-T.js → compiler-runtime-CMDe02AS.js} +1 -1
  21. package/assets/dashboard-BOltB2Hq.css +1 -0
  22. package/assets/dashboard-BiycZ-vC.js +3 -0
  23. package/assets/{date-picker-B__dVVqj.js → date-picker-Cb6A4Zx_.js} +1 -1
  24. package/assets/dialog-stack-DU4Ow4Oa.js +1 -0
  25. package/assets/{dropdown-menu-SEBnEIiL.js → dropdown-menu-D3vlxbLx.js} +1 -1
  26. package/assets/{field-renderer-CapylJU9.js → field-renderer-CW8TLtlI.js} +3 -3
  27. package/assets/form-CLP53RtV.js +1 -0
  28. package/assets/form-CwSId-Cu.js +1 -0
  29. package/assets/{geo-json-CwteYDGB.js → geo-json-BNgLxoVs.js} +1 -1
  30. package/assets/group-add-Brshb-tH.js +1 -0
  31. package/assets/{handsontable-BCnjOpBr.js → handsontable-BI4C0OBe.js} +1 -1
  32. package/assets/home-BRJ6eKVn.js +2 -0
  33. package/assets/{icon-Bz9BMaD0.js → icon-DLHMhF_-.js} +1 -1
  34. package/assets/{index-BcE9FUM6.js → index-BRQOFOzQ.js} +1 -1
  35. package/assets/{index-C0SL3SHw.js → index-BZZx7KCI.js} +1 -1
  36. package/assets/{index-DTRTjOmh.js → index-BpVWRzP4.js} +2 -2
  37. package/assets/{index-BbXEMx9n.js → index-Bz0y23v2.js} +1 -1
  38. package/assets/index-C148XJoK.js +1 -0
  39. package/assets/index-C8anOJBB.js +1 -0
  40. package/assets/{index-DEk3sC8d.js → index-CS5ssiKu.js} +1 -1
  41. package/assets/index-CsMwA9pu.js +1 -0
  42. package/assets/{index-DrWfGwtf.js → index-HZzILD42.js} +1 -1
  43. package/assets/{index-BC0yfOHo.js → index-kzaPFHKt.js} +1 -1
  44. package/assets/{init-user-D9mW-g14.js → init-user-VMPNdivw.js} +1 -1
  45. package/assets/{input-DF7Ue23C.js → input-CZTX-THl.js} +1 -1
  46. package/assets/{input-error-BBygona6.js → input-error-DpUrcJaR.js} +1 -1
  47. package/assets/item-add-1duKvWXz.js +1 -0
  48. package/assets/{label-Z506NKsW.js → label-B1wVTLjK.js} +1 -1
  49. package/assets/list-C07llS61.js +1 -0
  50. package/assets/{list-table-DB1sEQLF.js → list-table-Bh8E-zkN.js} +11 -16
  51. package/assets/{login-DrGaTWhY.js → login-Dl59_ycU.js} +1 -1
  52. package/assets/manifest.json +735 -564
  53. package/assets/{material-icon-CItZiB53.js → material-icon-C9IuCi5R.js} +1 -1
  54. package/assets/module-DwX7rlQ2.js +1 -0
  55. package/assets/{monaco-editor-DqAqwxw4.js → monaco-editor-DjLNSn-O.js} +1 -1
  56. package/assets/{multi-select-oabtVhUP.js → multi-select-CvcWwfki.js} +2 -2
  57. package/assets/{nav-footer-CM-yHiRs.js → nav-footer-C7_pEHmX.js} +1 -1
  58. package/assets/{nav-main-Q3xofGRT.js → nav-main-CwwCPIYf.js} +1 -1
  59. package/assets/{nav-user-Ds8i0Pa2.js → nav-user-K0xXPEmb.js} +1 -1
  60. package/assets/{pagination-render-B57pOpFy.js → pagination-render-BYBw11L4.js} +1 -1
  61. package/assets/pencil-CewBKDRo.js +6 -0
  62. package/assets/{popover-I249Gg2O.js → popover-vHKm7zkm.js} +1 -1
  63. package/assets/{register-C9FQIDtS.js → register-CRsK6KgL.js} +1 -1
  64. package/assets/{select-D1N8zRPY.js → select-Bs9mijkr.js} +2 -2
  65. package/assets/{sidebar-4D-sX2l4.js → sidebar-DflSp1X1.js} +2 -2
  66. package/assets/skeleton-C6UluiCK.js +1 -0
  67. package/assets/{sonner-Dzckw3U3.js → sonner-Cn7ueXZc.js} +1 -1
  68. package/assets/{toast-editor-FbrFd1ft.js → toast-editor-FNxkBiFw.js} +1 -1
  69. package/assets/{tooltip-D2ehgLlB.js → tooltip-BlR1mf2V.js} +1 -1
  70. package/assets/{use-appearance-Co6mO0dV.js → use-appearance-CL1-5ZfQ.js} +1 -1
  71. package/assets/{use-window-size-B8l6Bpkf.js → use-window-size-ciZdUHrJ.js} +1 -1
  72. package/assets/{user-info-DBYoAJYJ.js → user-info-qduQAMOl.js} +2 -2
  73. package/assets/{user-menu-content-qkvdkUVd.js → user-menu-content-Cjq658jE.js} +2 -2
  74. package/assets/welcome-CbHEVD33.js +1 -0
  75. package/controllers/add.js +9 -10
  76. package/controllers/addGroup.js +2 -4
  77. package/controllers/addUser.js +4 -6
  78. package/controllers/catalog/Catalog.d.ts +1 -1
  79. package/controllers/catalog/Catalog.js +42 -34
  80. package/controllers/catalog/FrontentCatalogAdapter.d.ts +43 -21
  81. package/controllers/catalog/FrontentCatalogAdapter.js +49 -30
  82. package/controllers/ckeditorUpload.js +2 -3
  83. package/controllers/dashboard.js +16 -2
  84. package/controllers/edit.js +4 -5
  85. package/controllers/editGroup.js +2 -4
  86. package/controllers/editUser.js +3 -5
  87. package/controllers/form.js +2 -3
  88. package/controllers/getAllWidgets.js +3 -3
  89. package/controllers/initUser.js +1 -2
  90. package/controllers/list.js +6 -6
  91. package/controllers/login.js +31 -15
  92. package/controllers/media-manager/mediaManagerAdapter.js +1 -2
  93. package/controllers/media-manager/mediaManagerApi.js +2 -2
  94. package/controllers/navigation/edit.js +2 -2
  95. package/controllers/register.js +1 -4
  96. package/controllers/remove.js +3 -3
  97. package/controllers/timezones.js +1 -1
  98. package/controllers/view.js +3 -3
  99. package/controllers/welcome.js +1 -1
  100. package/controllers/widgets/Action.js +2 -2
  101. package/controllers/widgets/Custom.js +2 -2
  102. package/controllers/widgets/Info.js +2 -2
  103. package/controllers/widgets/switch.js +2 -2
  104. package/controllers/widgetsDB.js +5 -5
  105. package/helpers/JsUtils.d.ts +1 -0
  106. package/helpers/JsUtils.js +3 -0
  107. package/helpers/accessRightsHelper.d.ts +6 -2
  108. package/helpers/accessRightsHelper.js +26 -3
  109. package/helpers/configHelper.js +2 -1
  110. package/helpers/controllerHelper.js +1 -1
  111. package/helpers/fieldsHelper.d.ts +4 -3
  112. package/helpers/fieldsHelper.js +5 -1
  113. package/helpers/inertiaActionsHelper.js +1 -1
  114. package/helpers/inertiaAddHelper.d.ts +3 -4
  115. package/helpers/inertiaAddHelper.js +27 -7
  116. package/helpers/inertiaFromHelper.js +2 -0
  117. package/helpers/inertiaGroupHelper.d.ts +4 -2
  118. package/helpers/inertiaGroupHelper.js +1 -1
  119. package/helpers/inertiaListHelper.js +5 -5
  120. package/helpers/inertiaMenuHelper.d.ts +1 -1
  121. package/helpers/inertiaMenuHelper.js +2 -2
  122. package/helpers/inertiaUserHelper.d.ts +7 -1
  123. package/helpers/inertiaUserHelper.js +5 -1
  124. package/helpers/menuHelper.d.ts +4 -3
  125. package/helpers/menuHelper.js +22 -15
  126. package/index.d.ts +5 -3
  127. package/index.js +8 -3
  128. package/interfaces/adminpanelConfig.d.ts +28 -31
  129. package/interfaces/global.d.ts +10 -28
  130. package/interfaces/types.d.ts +1 -1
  131. package/lib/Adminizer.d.ts +4 -2
  132. package/lib/Adminizer.js +32 -10
  133. package/lib/media-manager/AbstractMediaManager.d.ts +2 -2
  134. package/lib/media-manager/AbstractMediaManager.js +1 -1
  135. package/lib/media-manager/Items.js +0 -3
  136. package/lib/requestProcessor.js +10 -3
  137. package/lib/v4/DataAccessor.d.ts +5 -2
  138. package/lib/v4/DataAccessor.js +44 -19
  139. package/lib/v4/I18n.js +2 -0
  140. package/lib/v4/POWCaptcha.js +0 -1
  141. package/lib/v4/PolicyManager.js +0 -1
  142. package/lib/{catalog → v4/catalog}/AbstractCatalog.d.ts +87 -31
  143. package/lib/{catalog → v4/catalog}/AbstractCatalog.js +38 -34
  144. package/lib/v4/catalog/Navigation.d.ts +43 -0
  145. package/lib/v4/catalog/Navigation.js +462 -0
  146. package/lib/{controls → v4/controls}/AbstractControls.d.ts +1 -1
  147. package/lib/{controls → v4/controls}/codeEditor/MonacoEditor.d.ts +1 -1
  148. package/lib/{controls → v4/controls}/geojsoneditor/GeoEditor.d.ts +1 -1
  149. package/lib/{controls → v4/controls}/jsoneditor/JsonEditor.d.ts +1 -1
  150. package/lib/{controls → v4/controls}/markdown/ToastUiEditor.d.ts +1 -1
  151. package/lib/{controls → v4/controls}/table/Handsontable.d.ts +1 -1
  152. package/lib/{controls → v4/controls}/wysiwyg/CKeditor.d.ts +1 -1
  153. package/lib/{datatable → v4/datatable}/NodeTable.d.ts +3 -3
  154. package/lib/{datatable → v4/datatable}/NodeTable.js +8 -8
  155. package/lib/v4/helper/jwt.d.ts +10 -0
  156. package/lib/v4/helper/jwt.js +18 -0
  157. package/lib/{inertia → v4/inertia}/inertiaAdapter.js +0 -1
  158. package/lib/v4/model/AbstractModel.d.ts +5 -1
  159. package/lib/v4/model/AbstractModel.js +2 -3
  160. package/lib/v4/model/ModelHandler.js +1 -1
  161. package/lib/v4/model/adapter/sequelize.d.ts +11 -2
  162. package/lib/v4/model/adapter/sequelize.js +451 -118
  163. package/lib/v4/model/adapter/waterline.js +5 -3
  164. package/lib/{widgets → v4/widgets}/abstractAction.d.ts +1 -1
  165. package/lib/v4/widgets/abstractCustom.d.ts +28 -0
  166. package/lib/v4/widgets/abstractCustom.js +9 -0
  167. package/lib/{widgets → v4/widgets}/abstractInfo.d.ts +1 -1
  168. package/lib/{widgets → v4/widgets}/abstractInfo.js +1 -1
  169. package/lib/{widgets → v4/widgets}/abstractLink.d.ts +2 -1
  170. package/lib/{widgets → v4/widgets}/abstractSwitch.d.ts +1 -1
  171. package/lib/{widgets → v4/widgets}/abstractWidgetBase.d.ts +2 -2
  172. package/lib/{widgets → v4/widgets}/widgetHandler.d.ts +29 -5
  173. package/lib/{widgets → v4/widgets}/widgetHandler.js +25 -25
  174. package/models/GroupAP.d.ts +8 -0
  175. package/models/NavigationAP.d.ts +7 -3
  176. package/models/NavigationAP.js +5 -6
  177. package/models/UserAP.d.ts +24 -2
  178. package/models/UserAP.js +2 -2
  179. package/package.json +25 -13
  180. package/policies/checkAuth.js +4 -3
  181. package/policies/setLocale.js +2 -2
  182. package/system/Router.js +8 -16
  183. package/system/bindAccessRights.js +0 -4
  184. package/system/bindAuthorization.js +4 -5
  185. package/system/bindControls.js +6 -6
  186. package/system/bindDev.js +1 -0
  187. package/system/bindInertia.js +12 -11
  188. package/system/bindMediaManager.js +0 -1
  189. package/system/bindModels.js +7 -2
  190. package/system/bindNavigation.d.ts +2 -0
  191. package/system/bindNavigation.js +42 -42
  192. package/system/bindReqFunctions.js +15 -0
  193. package/translations/ru.json +17 -8
  194. package/assets/add-ZITr43GJ.js +0 -1
  195. package/assets/add-form-CYOfr0Ef.js +0 -1
  196. package/assets/add-group-B332wN8K.js +0 -1
  197. package/assets/add-user-TC-mYdsB.js +0 -1
  198. package/assets/add-user-form-y2f_1_lM.js +0 -1
  199. package/assets/app-layout-D1m9Kvxq.js +0 -1
  200. package/assets/app-sidebar-BCtaEFGb.js +0 -1
  201. package/assets/dashboard-BR602KhL.js +0 -1
  202. package/assets/form-DOUNk3o2.js +0 -1
  203. package/assets/form-lOKv4Qbw.js +0 -1
  204. package/assets/home-Ch6QfTIt.js +0 -2
  205. package/assets/index-Cdb9ACvz.js +0 -1
  206. package/assets/index-K81GbF6O.js +0 -1
  207. package/assets/list-Qyd7ecQH.js +0 -1
  208. package/assets/module-DBaykv8l.js +0 -1
  209. package/assets/welcome-D2adQ8EU.js +0 -1
  210. package/controllers/processInstallFinalize.d.ts +0 -1
  211. package/controllers/processInstallFinalize.js +0 -16
  212. package/controllers/processInstallStep.d.ts +0 -1
  213. package/controllers/processInstallStep.js +0 -132
  214. package/lib/catalog/Navigation.d.ts +0 -0
  215. package/lib/catalog/Navigation.js +0 -532
  216. package/lib/installStepper/InstallStepAbstract.d.ts +0 -52
  217. package/lib/installStepper/InstallStepAbstract.js +0 -69
  218. package/lib/installStepper/finalizeStep.d.ts +0 -21
  219. package/lib/installStepper/finalizeStep.js +0 -48
  220. package/lib/installStepper/installStepper.d.ts +0 -40
  221. package/lib/installStepper/installStepper.js +0 -195
  222. package/lib/widgets/abstractCustom.d.ts +0 -13
  223. package/lib/widgets/abstractCustom.js +0 -3
  224. package/models/MediaManagerAP.d.ts +0 -46
  225. package/models/MediaManagerAP.js +0 -45
  226. package/models/MediaManagerAssociationsAP.d.ts +0 -28
  227. package/models/MediaManagerAssociationsAP.js +0 -27
  228. package/models/MediaManagerMetaAP.d.ts +0 -22
  229. package/models/MediaManagerMetaAP.js +0 -21
  230. package/system/bindInstallStepper.d.ts +0 -2
  231. package/system/bindInstallStepper.js +0 -23
  232. /package/lib/{catalog → v4/catalog}/CatalogHandler.d.ts +0 -0
  233. /package/lib/{catalog → v4/catalog}/CatalogHandler.js +0 -0
  234. /package/lib/{controls → v4/controls}/AbstractControls.js +0 -0
  235. /package/lib/{controls → v4/controls}/ControlsHandler.d.ts +0 -0
  236. /package/lib/{controls → v4/controls}/ControlsHandler.js +0 -0
  237. /package/lib/{controls → v4/controls}/codeEditor/MonacoEditor.js +0 -0
  238. /package/lib/{controls → v4/controls}/geojsoneditor/GeoEditor.js +0 -0
  239. /package/lib/{controls → v4/controls}/jsoneditor/JsonEditor.js +0 -0
  240. /package/lib/{controls → v4/controls}/markdown/ToastUiEditor.js +0 -0
  241. /package/lib/{controls → v4/controls}/table/Handsontable.js +0 -0
  242. /package/lib/{controls → v4/controls}/wysiwyg/CKeditor.js +0 -0
  243. /package/lib/{inertia → v4/inertia}/flash.d.ts +0 -0
  244. /package/lib/{inertia → v4/inertia}/flash.js +0 -0
  245. /package/lib/{inertia → v4/inertia}/inertiaAdapter.d.ts +0 -0
  246. /package/lib/{widgets → v4/widgets}/abstractAction.js +0 -0
  247. /package/lib/{widgets → v4/widgets}/abstractLink.js +0 -0
  248. /package/lib/{widgets → v4/widgets}/abstractSwitch.js +0 -0
  249. /package/lib/{widgets → v4/widgets}/abstractWidgetBase.js +0 -0
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./VanillaJSONEditor-FUe77pIA.js","./app.js","./app-DMmad2-f.css","./compiler-runtime-tM4jBQ-T.js","./index-Vcq4gwWv.js","./use-appearance-Co6mO0dV.js","./form-state-702tb_BV.js","./add-form-CYOfr0Ef.js","./button-CQ9t1kLz.js","./index-DrWfGwtf.js","./utils-DjqsqOe8.js","./icon-Bz9BMaD0.js","./label-Z506NKsW.js","./index-K81GbF6O.js","./tooltip-D2ehgLlB.js","./index-Cdb9ACvz.js","./index-D5ir9iUV.js","./index-BC0yfOHo.js","./index-BcE9FUM6.js","./field-renderer-CapylJU9.js","./checkbox-W0nGAXIj.js","./index-DwctwfU0.js","./check-LAUWAnlX.js","./createLucideIcon-BFG25zNo.js","./select-D1N8zRPY.js","./index-BbXEMx9n.js","./index-C0SL3SHw.js","./chevron-down-B5XuAFRu.js","./dynamic-controls-CSVVCONh.js","./input-DF7Ue23C.js","./multi-select-oabtVhUP.js","./popover-I249Gg2O.js","./index-DTRTjOmh.js","./search-BspystAk.js","./field-renderer-BlBZuSiD.css","./input-error-BBygona6.js","./move-left-BhKZRPb4.js","./loader-circle-Utah5tGx.js","./add-group-form-dzadPSfL.js","./add-user-form-y2f_1_lM.js","./app-shell-BWMRMkHM.js","./sidebar-4D-sX2l4.js","./app-sidebar-header-DLAFi13E.js","./breadcrumbs-CQNon4Vl.js","./chevron-right-D5q8rF7h.js","./nav-user-Ds8i0Pa2.js","./dropdown-menu-SEBnEIiL.js","./index-DEk3sC8d.js","./user-info-DBYoAJYJ.js","./user-menu-content-qkvdkUVd.js","./chevrons-up-down-kALltqHV.js","./app-sidebar-BCtaEFGb.js","./nav-main-Q3xofGRT.js","./material-icon-CItZiB53.js","./date-picker-B__dVVqj.js","./chevron-left-CoMhTMUD.js","./form-lOKv4Qbw.js","./geo-json-CwteYDGB.js","./trash-2-BoK5Xp2F.js","./handsontable-BCnjOpBr.js","./list-table-DB1sEQLF.js","./sonner-Dzckw3U3.js","./pagination-render-B57pOpFy.js","./monaco-editor-DqAqwxw4.js","./use-window-size-B8l6Bpkf.js","./nav-footer-CM-yHiRs.js","./toast-editor-FbrFd1ft.js"])))=>i.map(i=>d[i]);
2
- import{q as x,r as u,j as o,a as v,J as P,_ as t}from"./app.js";const D=(m,r,_)=>{const e=m[r];return e?typeof e=="function"?e():Promise.resolve(e):new Promise((s,n)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+r+(r.split("/").length!==_?". Note that variables only represent file names one level deep.":""))))})};function L(){const m=x(),[r,_]=u.useState(null),[e,s]=u.useState(null),n=m.props.controls,l=async()=>{const{component:i,props:p}=n[0],d=(await D(Object.assign({"../components/VanillaJSONEditor.tsx":()=>t(()=>import("./VanillaJSONEditor-FUe77pIA.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),"../components/add-form.tsx":()=>t(()=>import("./add-form-CYOfr0Ef.js"),__vite__mapDeps([7,1,2,3,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,6,35,36,37]),import.meta.url),"../components/add-group-form.tsx":()=>t(()=>import("./add-group-form-dzadPSfL.js"),__vite__mapDeps([38,1,2,3,8,9,10,11,12,13,29,20,16,15,21,17,22,23,14,18,36,37]),import.meta.url),"../components/add-user-form.tsx":()=>t(()=>import("./add-user-form-y2f_1_lM.js"),__vite__mapDeps([39,1,2,3,11,10,8,9,12,13,29,24,15,16,25,26,21,18,27,23,22,20,17,14,35,36,37]),import.meta.url),"../components/app-shell.tsx":()=>t(()=>import("./app-shell-BWMRMkHM.js"),__vite__mapDeps([40,1,2,3,41,9,8,10,32,23,15,16,13,26,17,14,18]),import.meta.url),"../components/app-sidebar-header.tsx":()=>t(()=>import("./app-sidebar-header-DLAFi13E.js"),__vite__mapDeps([42,1,2,3,43,9,10,44,23,41,8,32,15,16,13,26,17,14,18,45,46,47,25,48,49,50,11,5]),import.meta.url),"../components/app-sidebar.tsx":()=>t(()=>import("./app-sidebar-BCtaEFGb.js"),__vite__mapDeps([51,1,2,3,52,41,9,8,10,32,23,15,16,13,26,17,14,18,53,44,25,47,50]),import.meta.url),"../components/breadcrumbs.tsx":()=>t(()=>import("./breadcrumbs-CQNon4Vl.js"),__vite__mapDeps([43,1,2,3,9,10,44,23]),import.meta.url),"../components/date-picker.tsx":()=>t(()=>import("./date-picker-B__dVVqj.js"),__vite__mapDeps([54,1,2,3,10,8,9,44,23,55,31,15,16,13,26,17]),import.meta.url),"../components/dynamic-controls.tsx":()=>t(()=>import("./dynamic-controls-CSVVCONh.js"),__vite__mapDeps([28,1,2]),import.meta.url),"../components/field-renderer.tsx":()=>t(()=>import("./field-renderer-CapylJU9.js"),__vite__mapDeps([19,1,2,3,20,9,16,15,13,21,17,10,22,23,24,25,26,18,27,28,29,30,8,31,32,33,34]),import.meta.url),"../components/form.tsx":()=>t(()=>import("./form-lOKv4Qbw.js"),__vite__mapDeps([56,1,2,6,7,3,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37]),import.meta.url),"../components/geo-json.tsx":()=>t(()=>import("./geo-json-CwteYDGB.js"),__vite__mapDeps([57,1,2,3,8,9,10,23,22,58]),import.meta.url),"../components/handsontable.tsx":()=>t(()=>import("./handsontable-BCnjOpBr.js"),__vite__mapDeps([59,1,2,5,3]),import.meta.url),"../components/icon.tsx":()=>t(()=>import("./icon-Bz9BMaD0.js"),__vite__mapDeps([11,1,2,3,10]),import.meta.url),"../components/input-error.tsx":()=>t(()=>import("./input-error-BBygona6.js"),__vite__mapDeps([35,1,2,3,10]),import.meta.url),"../components/list-table.tsx":()=>t(()=>import("./list-table-DB1sEQLF.js"),__vite__mapDeps([60,1,2,8,3,9,10,11,23,29,33,53,46,15,16,13,47,25,26,17,61,32,58,24,21,18,27,22,62,55,44]),import.meta.url),"../components/material-icon.tsx":()=>t(()=>import("./material-icon-CItZiB53.js"),__vite__mapDeps([53,1,2,3,10]),import.meta.url),"../components/monaco-editor.tsx":()=>t(()=>import("./monaco-editor-DqAqwxw4.js"),__vite__mapDeps([63,1,2,3,5,64]),import.meta.url),"../components/multi-select.tsx":()=>t(()=>import("./multi-select-oabtVhUP.js"),__vite__mapDeps([30,1,2,3,8,9,10,13,31,15,16,26,17,32,23,33,27,22]),import.meta.url),"../components/nav-footer.tsx":()=>t(()=>import("./nav-footer-CM-yHiRs.js"),__vite__mapDeps([65,1,2,3,11,10,41,9,8,32,23,15,16,13,26,17,14,18]),import.meta.url),"../components/nav-main.tsx":()=>t(()=>import("./nav-main-Q3xofGRT.js").then(E=>E.n),__vite__mapDeps([52,1,2,3,41,9,8,10,32,23,15,16,13,26,17,14,18,53,44]),import.meta.url),"../components/nav-user.tsx":()=>t(()=>import("./nav-user-Ds8i0Pa2.js"),__vite__mapDeps([45,1,2,3,46,15,16,13,9,47,25,26,17,10,41,8,32,23,14,18,48,49,50]),import.meta.url),"../components/pagination-render.tsx":()=>t(()=>import("./pagination-render-B57pOpFy.js"),__vite__mapDeps([62,1,2,3,10,8,9,55,23,44]),import.meta.url),"../components/toast-editor.tsx":()=>t(()=>import("./toast-editor-FbrFd1ft.js"),__vite__mapDeps([66,1,2,3,4,64,5]),import.meta.url),"../components/user-info.tsx":()=>t(()=>import("./user-info-DBYoAJYJ.js"),__vite__mapDeps([48,1,2,3,16,13,9,10]),import.meta.url),"../components/user-menu-content.tsx":()=>t(()=>import("./user-menu-content-qkvdkUVd.js"),__vite__mapDeps([49,1,2,3,46,15,16,13,9,47,25,26,17,10,48,23]),import.meta.url)}),`../components/${i}.tsx`,3)).default;_(o.jsx(d,{...p}))},c=async()=>{const{component:i}=n[1],a=(await import(i)).default;s(o.jsx(a,{message:"Hello from Component B"}))};return o.jsxs(o.Fragment,{children:[o.jsx(v,{title:"Home"}),o.jsx("div",{children:o.jsx(P,{href:"/page",children:"Page"})}),o.jsx("div",{children:o.jsx("h1",{children:"Is Home"})}),o.jsxs("div",{children:[o.jsx("button",{onClick:l,children:"Загрузить компонент"}),o.jsx("p",{}),r||o.jsx("p",{children:"Нажмите кнопку, чтобы загрузить компонент"})]}),o.jsx("p",{}),o.jsxs("div",{children:[o.jsx("button",{onClick:c,children:"Загрузить компонент"}),o.jsx("p",{}),e||o.jsx("p",{children:"Нажмите кнопку, чтобы загрузить компонент"})]})]})}export{L as default};
@@ -1 +0,0 @@
1
- import{r as m,e as te,j as _,R as Me,b as ke}from"./app.js";import{u as Q,a as gt,c as Fe}from"./index-D5ir9iUV.js";import{P as et,d as Ne}from"./index-K81GbF6O.js";import{u as wt}from"./index-DrWfGwtf.js";function bt(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(t==null||t(r),n===!1||!r.defaultPrevented)return e==null?void 0:e(r)}}var $e=te[" useId ".trim().toString()]||(()=>{}),We=0;function ao(t){const[e,n]=m.useState($e());return Q(()=>{n(o=>o??String(We++))},[t]),e?`radix-${e}`:""}var Be=te[" useInsertionEffect ".trim().toString()]||Q;function fo({prop:t,defaultProp:e,onChange:n=()=>{},caller:o}){const[r,i,s]=_e({defaultProp:e,onChange:n}),c=t!==void 0,f=c?t:r;{const a=m.useRef(t!==void 0);m.useEffect(()=>{const u=a.current;u!==c&&console.warn(`${o} is changing from ${u?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),a.current=c},[c,o])}const l=m.useCallback(a=>{var u;if(c){const h=ze(a)?a(t):a;h!==t&&((u=s.current)==null||u.call(s,h))}else i(a)},[c,t,i,s]);return[f,l]}function _e({defaultProp:t,onChange:e}){const[n,o]=m.useState(t),r=m.useRef(n),i=m.useRef(e);return Be(()=>{i.current=e},[e]),m.useEffect(()=>{var s;r.current!==n&&((s=i.current)==null||s.call(i,n),r.current=n)},[n,r]),[n,o,i]}function ze(t){return typeof t=="function"}function He(t,e=globalThis==null?void 0:globalThis.document){const n=gt(t);m.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return e.addEventListener("keydown",o,{capture:!0}),()=>e.removeEventListener("keydown",o,{capture:!0})},[n,e])}var Ie="DismissableLayer",Pt="dismissableLayer.update",je="dismissableLayer.pointerDownOutside",Ve="dismissableLayer.focusOutside",Vt,ee=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ye=m.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...f}=t,l=m.useContext(ee),[a,u]=m.useState(null),h=(a==null?void 0:a.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=m.useState({}),p=wt(e,x=>u(x)),g=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(y),v=a?g.indexOf(a):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,b=v>=w,A=qe(x=>{const C=x.target,M=[...l.branches].some(O=>O.contains(C));!b||M||(r==null||r(x),s==null||s(x),x.defaultPrevented||c==null||c())},h),P=Ke(x=>{const C=x.target;[...l.branches].some(O=>O.contains(C))||(i==null||i(x),s==null||s(x),x.defaultPrevented||c==null||c())},h);return He(x=>{v===l.layers.size-1&&(o==null||o(x),!x.defaultPrevented&&c&&(x.preventDefault(),c()))},h),m.useEffect(()=>{if(a)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Vt=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(a)),l.layers.add(a),Yt(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Vt)}},[a,h,n,l]),m.useEffect(()=>()=>{a&&(l.layers.delete(a),l.layersWithOutsidePointerEventsDisabled.delete(a),Yt())},[a,l]),m.useEffect(()=>{const x=()=>d({});return document.addEventListener(Pt,x),()=>document.removeEventListener(Pt,x)},[]),_.jsx(et.div,{...f,ref:p,style:{pointerEvents:E?b?"auto":"none":void 0,...t.style},onFocusCapture:bt(t.onFocusCapture,P.onFocusCapture),onBlurCapture:bt(t.onBlurCapture,P.onBlurCapture),onPointerDownCapture:bt(t.onPointerDownCapture,A.onPointerDownCapture)})});Ye.displayName=Ie;var Ue="DismissableLayerBranch",Xe=m.forwardRef((t,e)=>{const n=m.useContext(ee),o=m.useRef(null),r=wt(e,o);return m.useEffect(()=>{const i=o.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),_.jsx(et.div,{...t,ref:r})});Xe.displayName=Ue;function qe(t,e=globalThis==null?void 0:globalThis.document){const n=gt(t),o=m.useRef(!1),r=m.useRef(()=>{});return m.useEffect(()=>{const i=c=>{if(c.target&&!o.current){let f=function(){ne(je,n,l,{discrete:!0})};const l={originalEvent:c};c.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=f,e.addEventListener("click",r.current,{once:!0})):f()}else e.removeEventListener("click",r.current);o.current=!1},s=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),e.removeEventListener("pointerdown",i),e.removeEventListener("click",r.current)}},[e,n]),{onPointerDownCapture:()=>o.current=!0}}function Ke(t,e=globalThis==null?void 0:globalThis.document){const n=gt(t),o=m.useRef(!1);return m.useEffect(()=>{const r=i=>{i.target&&!o.current&&ne(Ve,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Yt(){const t=new CustomEvent(Pt);document.dispatchEvent(t)}function ne(t,e,n,{discrete:o}){const r=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&r.addEventListener(t,e,{once:!0}),o?Ne(r,i):r.dispatchEvent(i)}var Ze="Portal",Ge=m.forwardRef((t,e)=>{var c;const{container:n,...o}=t,[r,i]=m.useState(!1);Q(()=>i(!0),[]);const s=n||r&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return s?Me.createPortal(_.jsx(et.div,{...o,ref:e}),s):null});Ge.displayName=Ze;const Je=["top","right","bottom","left"],q=Math.min,$=Math.max,dt=Math.round,ft=Math.floor,j=t=>({x:t,y:t}),Qe={left:"right",right:"left",bottom:"top",top:"bottom"},tn={start:"end",end:"start"};function Rt(t,e,n){return $(t,q(e,n))}function U(t,e){return typeof t=="function"?t(e):t}function X(t){return t.split("-")[0]}function nt(t){return t.split("-")[1]}function St(t){return t==="x"?"y":"x"}function Dt(t){return t==="y"?"height":"width"}function K(t){return["top","bottom"].includes(X(t))?"y":"x"}function Lt(t){return St(K(t))}function en(t,e,n){n===void 0&&(n=!1);const o=nt(t),r=Lt(t),i=Dt(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ht(s)),[s,ht(s)]}function nn(t){const e=ht(t);return[Ct(t),e,Ct(e)]}function Ct(t){return t.replace(/start|end/g,e=>tn[e])}function on(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}function rn(t,e,n,o){const r=nt(t);let i=on(X(t),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),e&&(i=i.concat(i.map(Ct)))),i}function ht(t){return t.replace(/left|right|bottom|top/g,e=>Qe[e])}function sn(t){return{top:0,right:0,bottom:0,left:0,...t}}function oe(t){return typeof t!="number"?sn(t):{top:t,right:t,bottom:t,left:t}}function pt(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function Ut(t,e,n){let{reference:o,floating:r}=t;const i=K(e),s=Lt(e),c=Dt(s),f=X(e),l=i==="y",a=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,h=o[c]/2-r[c]/2;let d;switch(f){case"top":d={x:a,y:o.y-r.height};break;case"bottom":d={x:a,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}switch(nt(e)){case"start":d[s]-=h*(n&&l?-1:1);break;case"end":d[s]+=h*(n&&l?-1:1);break}return d}const cn=async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=i.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:a,y:u}=Ut(l,o,f),h=o,d={},p=0;for(let g=0;g<c.length;g++){const{name:y,fn:w}=c[g],{x:v,y:E,data:b,reset:A}=await w({x:a,y:u,initialPlacement:o,placement:h,strategy:r,middlewareData:d,rects:l,platform:s,elements:{reference:t,floating:e}});a=v??a,u=E??u,d={...d,[y]:{...d[y],...b}},A&&p<=50&&(p++,typeof A=="object"&&(A.placement&&(h=A.placement),A.rects&&(l=A.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:r}):A.rects),{x:a,y:u}=Ut(l,h,f)),g=-1)}return{x:a,y:u,placement:h,strategy:r,middlewareData:d}};async function it(t,e){var n;e===void 0&&(e={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:f}=t,{boundary:l="clippingAncestors",rootBoundary:a="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=U(e,t),p=oe(d),y=c[h?u==="floating"?"reference":"floating":u],w=pt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:l,rootBoundary:a,strategy:f})),v=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,E=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),b=await(i.isElement==null?void 0:i.isElement(E))?await(i.getScale==null?void 0:i.getScale(E))||{x:1,y:1}:{x:1,y:1},A=pt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:E,strategy:f}):v);return{top:(w.top-A.top+p.top)/b.y,bottom:(A.bottom-w.bottom+p.bottom)/b.y,left:(w.left-A.left+p.left)/b.x,right:(A.right-w.right+p.right)/b.x}}const ln=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:s,elements:c,middlewareData:f}=e,{element:l,padding:a=0}=U(t,e)||{};if(l==null)return{};const u=oe(a),h={x:n,y:o},d=Lt(r),p=Dt(d),g=await s.getDimensions(l),y=d==="y",w=y?"top":"left",v=y?"bottom":"right",E=y?"clientHeight":"clientWidth",b=i.reference[p]+i.reference[d]-h[d]-i.floating[p],A=h[d]-i.reference[d],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let x=P?P[E]:0;(!x||!await(s.isElement==null?void 0:s.isElement(P)))&&(x=c.floating[E]||i.floating[p]);const C=b/2-A/2,M=x/2-g[p]/2-1,O=q(u[w],M),F=q(u[v],M),N=O,D=x-g[p]-F,S=x/2-g[p]/2+C,B=Rt(N,S,D),L=!f.arrow&&nt(r)!=null&&S!==B&&i.reference[p]/2-(S<N?O:F)-g[p]/2<0,T=L?S<N?S-N:S-D:0;return{[d]:h[d]+T,data:{[d]:B,centerOffset:S-B-T,...L&&{alignmentOffset:T}},reset:L}}}),an=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:f,elements:l}=e,{mainAxis:a=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...y}=U(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=X(r),v=K(c),E=X(c)===c,b=await(f.isRTL==null?void 0:f.isRTL(l.floating)),A=h||(E||!g?[ht(c)]:nn(c)),P=p!=="none";!h&&P&&A.push(...rn(c,g,p,b));const x=[c,...A],C=await it(e,y),M=[];let O=((o=i.flip)==null?void 0:o.overflows)||[];if(a&&M.push(C[w]),u){const S=en(r,s,b);M.push(C[S[0]],C[S[1]])}if(O=[...O,{placement:r,overflows:M}],!M.every(S=>S<=0)){var F,N;const S=(((F=i.flip)==null?void 0:F.index)||0)+1,B=x[S];if(B)return{data:{index:S,overflows:O},reset:{placement:B}};let L=(N=O.filter(T=>T.overflows[0]<=0).sort((T,R)=>T.overflows[1]-R.overflows[1])[0])==null?void 0:N.placement;if(!L)switch(d){case"bestFit":{var D;const T=(D=O.filter(R=>{if(P){const k=K(R.placement);return k===v||k==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(k=>k>0).reduce((k,I)=>k+I,0)]).sort((R,k)=>R[1]-k[1])[0])==null?void 0:D[0];T&&(L=T);break}case"initialPlacement":L=c;break}if(r!==L)return{reset:{placement:L}}}return{}}}};function Xt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function qt(t){return Je.some(e=>t[e]>=0)}const fn=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...r}=U(t,e);switch(o){case"referenceHidden":{const i=await it(e,{...r,elementContext:"reference"}),s=Xt(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:qt(s)}}}case"escaped":{const i=await it(e,{...r,altBoundary:!0}),s=Xt(i,n.floating);return{data:{escapedOffsets:s,escaped:qt(s)}}}default:return{}}}}};async function un(t,e){const{placement:n,platform:o,elements:r}=t,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=X(n),c=nt(n),f=K(n)==="y",l=["left","top"].includes(s)?-1:1,a=i&&f?-1:1,u=U(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),f?{x:d*a,y:h*l}:{x:h*l,y:d*a}}const dn=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=e,f=await un(e,t);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+f.x,y:i+f.y,data:{...f,placement:s}}}}},hn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:y=>{let{x:w,y:v}=y;return{x:w,y:v}}},...f}=U(t,e),l={x:n,y:o},a=await it(e,f),u=K(X(r)),h=St(u);let d=l[h],p=l[u];if(i){const y=h==="y"?"top":"left",w=h==="y"?"bottom":"right",v=d+a[y],E=d-a[w];d=Rt(v,d,E)}if(s){const y=u==="y"?"top":"left",w=u==="y"?"bottom":"right",v=p+a[y],E=p-a[w];p=Rt(v,p,E)}const g=c.fn({...e,[h]:d,[u]:p});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[h]:i,[u]:s}}}}}},pn=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:c=0,mainAxis:f=!0,crossAxis:l=!0}=U(t,e),a={x:n,y:o},u=K(r),h=St(u);let d=a[h],p=a[u];const g=U(c,e),y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(f){const E=h==="y"?"height":"width",b=i.reference[h]-i.floating[E]+y.mainAxis,A=i.reference[h]+i.reference[E]-y.mainAxis;d<b?d=b:d>A&&(d=A)}if(l){var w,v;const E=h==="y"?"width":"height",b=["top","left"].includes(X(r)),A=i.reference[u]-i.floating[E]+(b&&((w=s.offset)==null?void 0:w[u])||0)+(b?0:y.crossAxis),P=i.reference[u]+i.reference[E]+(b?0:((v=s.offset)==null?void 0:v[u])||0)-(b?y.crossAxis:0);p<A?p=A:p>P&&(p=P)}return{[h]:d,[u]:p}}}},mn=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:s,elements:c}=e,{apply:f=()=>{},...l}=U(t,e),a=await it(e,l),u=X(r),h=nt(r),d=K(r)==="y",{width:p,height:g}=i.floating;let y,w;u==="top"||u==="bottom"?(y=u,w=h===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(w=u,y=h==="end"?"top":"bottom");const v=g-a.top-a.bottom,E=p-a.left-a.right,b=q(g-a[y],v),A=q(p-a[w],E),P=!e.middlewareData.shift;let x=b,C=A;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(C=E),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(x=v),P&&!h){const O=$(a.left,0),F=$(a.right,0),N=$(a.top,0),D=$(a.bottom,0);d?C=p-2*(O!==0||F!==0?O+F:$(a.left,a.right)):x=g-2*(N!==0||D!==0?N+D:$(a.top,a.bottom))}await f({...e,availableWidth:C,availableHeight:x});const M=await s.getDimensions(c.floating);return p!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function yt(){return typeof window<"u"}function ot(t){return re(t)?(t.nodeName||"").toLowerCase():"#document"}function W(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Y(t){var e;return(e=(re(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function re(t){return yt()?t instanceof Node||t instanceof W(t).Node:!1}function z(t){return yt()?t instanceof Element||t instanceof W(t).Element:!1}function V(t){return yt()?t instanceof HTMLElement||t instanceof W(t).HTMLElement:!1}function Kt(t){return!yt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof W(t).ShadowRoot}function ct(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=H(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function gn(t){return["table","td","th"].includes(ot(t))}function xt(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Tt(t){const e=Mt(),n=z(t)?H(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function wn(t){let e=Z(t);for(;V(e)&&!tt(e);){if(Tt(e))return e;if(xt(e))return null;e=Z(e)}return null}function Mt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function tt(t){return["html","body","#document"].includes(ot(t))}function H(t){return W(t).getComputedStyle(t)}function vt(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Z(t){if(ot(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Kt(t)&&t.host||Y(t);return Kt(e)?e.host:e}function ie(t){const e=Z(t);return tt(e)?t.ownerDocument?t.ownerDocument.body:t.body:V(e)&&ct(e)?e:ie(e)}function st(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const r=ie(t),i=r===((o=t.ownerDocument)==null?void 0:o.body),s=W(r);if(i){const c=Ot(s);return e.concat(s,s.visualViewport||[],ct(r)?r:[],c&&n?st(c):[])}return e.concat(r,st(r,[],n))}function Ot(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function se(t){const e=H(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=V(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,c=dt(n)!==i||dt(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function kt(t){return z(t)?t:t.contextElement}function J(t){const e=kt(t);if(!V(e))return j(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=se(e);let s=(i?dt(n.width):n.width)/o,c=(i?dt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const yn=j(0);function ce(t){const e=W(t);return!Mt()||!e.visualViewport?yn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==W(t)?!1:e}function G(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),i=kt(t);let s=j(1);e&&(o?z(o)&&(s=J(o)):s=J(t));const c=xn(i,n,o)?ce(i):j(0);let f=(r.left+c.x)/s.x,l=(r.top+c.y)/s.y,a=r.width/s.x,u=r.height/s.y;if(i){const h=W(i),d=o&&z(o)?W(o):o;let p=h,g=Ot(p);for(;g&&o&&d!==p;){const y=J(g),w=g.getBoundingClientRect(),v=H(g),E=w.left+(g.clientLeft+parseFloat(v.paddingLeft))*y.x,b=w.top+(g.clientTop+parseFloat(v.paddingTop))*y.y;f*=y.x,l*=y.y,a*=y.x,u*=y.y,f+=E,l+=b,p=W(g),g=Ot(p)}}return pt({width:a,height:u,x:f,y:l})}function Ft(t,e){const n=vt(t).scrollLeft;return e?e.left+n:G(Y(t)).left+n}function le(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),r=o.left+e.scrollLeft-(n?0:Ft(t,o)),i=o.top+e.scrollTop;return{x:r,y:i}}function vn(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i=r==="fixed",s=Y(o),c=e?xt(e.floating):!1;if(o===s||c&&i)return n;let f={scrollLeft:0,scrollTop:0},l=j(1);const a=j(0),u=V(o);if((u||!u&&!i)&&((ot(o)!=="body"||ct(s))&&(f=vt(o)),V(o))){const d=G(o);l=J(o),a.x=d.x+o.clientLeft,a.y=d.y+o.clientTop}const h=s&&!u&&!i?le(s,f,!0):j(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-f.scrollLeft*l.x+a.x+h.x,y:n.y*l.y-f.scrollTop*l.y+a.y+h.y}}function bn(t){return Array.from(t.getClientRects())}function An(t){const e=Y(t),n=vt(t),o=t.ownerDocument.body,r=$(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=$(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Ft(t);const c=-n.scrollTop;return H(o).direction==="rtl"&&(s+=$(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:c}}function En(t,e){const n=W(t),o=Y(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,c=0,f=0;if(r){i=r.width,s=r.height;const l=Mt();(!l||l&&e==="fixed")&&(c=r.offsetLeft,f=r.offsetTop)}return{width:i,height:s,x:c,y:f}}function Pn(t,e){const n=G(t,!0,e==="fixed"),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=V(t)?J(t):j(1),s=t.clientWidth*i.x,c=t.clientHeight*i.y,f=r*i.x,l=o*i.y;return{width:s,height:c,x:f,y:l}}function Zt(t,e,n){let o;if(e==="viewport")o=En(t,n);else if(e==="document")o=An(Y(t));else if(z(e))o=Pn(e,n);else{const r=ce(t);o={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return pt(o)}function ae(t,e){const n=Z(t);return n===e||!z(n)||tt(n)?!1:H(n).position==="fixed"||ae(n,e)}function Rn(t,e){const n=e.get(t);if(n)return n;let o=st(t,[],!1).filter(c=>z(c)&&ot(c)!=="body"),r=null;const i=H(t).position==="fixed";let s=i?Z(t):t;for(;z(s)&&!tt(s);){const c=H(s),f=Tt(s);!f&&c.position==="fixed"&&(r=null),(i?!f&&!r:!f&&c.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ct(s)&&!f&&ae(t,s))?o=o.filter(a=>a!==s):r=c,s=Z(s)}return e.set(t,o),o}function Cn(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const s=[...n==="clippingAncestors"?xt(e)?[]:Rn(e,this._c):[].concat(n),o],c=s[0],f=s.reduce((l,a)=>{const u=Zt(e,a,r);return l.top=$(u.top,l.top),l.right=q(u.right,l.right),l.bottom=q(u.bottom,l.bottom),l.left=$(u.left,l.left),l},Zt(e,c,r));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function On(t){const{width:e,height:n}=se(t);return{width:e,height:n}}function Sn(t,e,n){const o=V(e),r=Y(e),i=n==="fixed",s=G(t,!0,i,e);let c={scrollLeft:0,scrollTop:0};const f=j(0);if(o||!o&&!i)if((ot(e)!=="body"||ct(r))&&(c=vt(e)),o){const h=G(e,!0,i,e);f.x=h.x+e.clientLeft,f.y=h.y+e.clientTop}else r&&(f.x=Ft(r));const l=r&&!o&&!i?le(r,c):j(0),a=s.left+c.scrollLeft-f.x-l.x,u=s.top+c.scrollTop-f.y-l.y;return{x:a,y:u,width:s.width,height:s.height}}function At(t){return H(t).position==="static"}function Gt(t,e){if(!V(t)||H(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Y(t)===n&&(n=n.ownerDocument.body),n}function fe(t,e){const n=W(t);if(xt(t))return n;if(!V(t)){let r=Z(t);for(;r&&!tt(r);){if(z(r)&&!At(r))return r;r=Z(r)}return n}let o=Gt(t,e);for(;o&&gn(o)&&At(o);)o=Gt(o,e);return o&&tt(o)&&At(o)&&!Tt(o)?n:o||wn(t)||n}const Dn=async function(t){const e=this.getOffsetParent||fe,n=this.getDimensions,o=await n(t.floating);return{reference:Sn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ln(t){return H(t).direction==="rtl"}const Tn={convertOffsetParentRelativeRectToViewportRelativeRect:vn,getDocumentElement:Y,getClippingRect:Cn,getOffsetParent:fe,getElementRects:Dn,getClientRects:bn,getDimensions:On,getScale:J,isElement:z,isRTL:Ln};function ue(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Mn(t,e){let n=null,o;const r=Y(t);function i(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),i();const l=t.getBoundingClientRect(),{left:a,top:u,width:h,height:d}=l;if(c||e(),!h||!d)return;const p=ft(u),g=ft(r.clientWidth-(a+h)),y=ft(r.clientHeight-(u+d)),w=ft(a),E={rootMargin:-p+"px "+-g+"px "+-y+"px "+-w+"px",threshold:$(0,q(1,f))||1};let b=!0;function A(P){const x=P[0].intersectionRatio;if(x!==f){if(!b)return s();x?s(!1,x):o=setTimeout(()=>{s(!1,1e-7)},1e3)}x===1&&!ue(l,t.getBoundingClientRect())&&s(),b=!1}try{n=new IntersectionObserver(A,{...E,root:r.ownerDocument})}catch{n=new IntersectionObserver(A,E)}n.observe(t)}return s(!0),i}function kn(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=o,l=kt(t),a=r||i?[...l?st(l):[],...st(e)]:[];a.forEach(w=>{r&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const u=l&&c?Mn(l,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(w=>{let[v]=w;v&&v.target===l&&d&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var E;(E=d)==null||E.observe(e)})),n()}),l&&!f&&d.observe(l),d.observe(e));let p,g=f?G(t):null;f&&y();function y(){const w=G(t);g&&!ue(g,w)&&n(),g=w,p=requestAnimationFrame(y)}return n(),()=>{var w;a.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),u==null||u(),(w=d)==null||w.disconnect(),d=null,f&&cancelAnimationFrame(p)}}const Fn=dn,Nn=hn,$n=an,Wn=mn,Bn=fn,Jt=ln,_n=pn,zn=(t,e,n)=>{const o=new Map,r={platform:Tn,...n},i={...r.platform,_c:o};return cn(t,e,{...r,platform:i})};var ut=typeof document<"u"?m.useLayoutEffect:m.useEffect;function mt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,o,r;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(o=n;o--!==0;)if(!mt(t[o],e[o]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(e,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&t.$$typeof)&&!mt(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function de(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Qt(t,e){const n=de(t);return Math.round(e*n)/n}function Et(t){const e=m.useRef(t);return ut(()=>{e.current=t}),e}function Hn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:f,open:l}=t,[a,u]=m.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,d]=m.useState(o);mt(h,o)||d(o);const[p,g]=m.useState(null),[y,w]=m.useState(null),v=m.useCallback(R=>{R!==P.current&&(P.current=R,g(R))},[]),E=m.useCallback(R=>{R!==x.current&&(x.current=R,w(R))},[]),b=i||p,A=s||y,P=m.useRef(null),x=m.useRef(null),C=m.useRef(a),M=f!=null,O=Et(f),F=Et(r),N=Et(l),D=m.useCallback(()=>{if(!P.current||!x.current)return;const R={placement:e,strategy:n,middleware:h};F.current&&(R.platform=F.current),zn(P.current,x.current,R).then(k=>{const I={...k,isPositioned:N.current!==!1};S.current&&!mt(C.current,I)&&(C.current=I,ke.flushSync(()=>{u(I)}))})},[h,e,n,F,N]);ut(()=>{l===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,u(R=>({...R,isPositioned:!1})))},[l]);const S=m.useRef(!1);ut(()=>(S.current=!0,()=>{S.current=!1}),[]),ut(()=>{if(b&&(P.current=b),A&&(x.current=A),b&&A){if(O.current)return O.current(b,A,D);D()}},[b,A,D,O,M]);const B=m.useMemo(()=>({reference:P,floating:x,setReference:v,setFloating:E}),[v,E]),L=m.useMemo(()=>({reference:b,floating:A}),[b,A]),T=m.useMemo(()=>{const R={position:n,left:0,top:0};if(!L.floating)return R;const k=Qt(L.floating,a.x),I=Qt(L.floating,a.y);return c?{...R,transform:"translate("+k+"px, "+I+"px)",...de(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:I}},[n,c,L.floating,a.x,a.y]);return m.useMemo(()=>({...a,update:D,refs:B,elements:L,floatingStyles:T}),[a,D,B,L,T])}const In=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:o,padding:r}=typeof t=="function"?t(n):t;return o&&e(o)?o.current!=null?Jt({element:o.current,padding:r}).fn(n):{}:o?Jt({element:o,padding:r}).fn(n):{}}}},jn=(t,e)=>({...Fn(t),options:[t,e]}),Vn=(t,e)=>({...Nn(t),options:[t,e]}),Yn=(t,e)=>({..._n(t),options:[t,e]}),Un=(t,e)=>({...$n(t),options:[t,e]}),Xn=(t,e)=>({...Wn(t),options:[t,e]}),qn=(t,e)=>({...Bn(t),options:[t,e]}),Kn=(t,e)=>({...In(t),options:[t,e]});var Zn="Arrow",he=m.forwardRef((t,e)=>{const{children:n,width:o=10,height:r=5,...i}=t;return _.jsx(et.svg,{...i,ref:e,width:o,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:_.jsx("polygon",{points:"0,0 30,0 15,10"})})});he.displayName=Zn;var Gn=he;function Jn(t){const[e,n]=m.useState(void 0);return Q(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let s,c;if("borderBoxSize"in i){const f=i.borderBoxSize,l=Array.isArray(f)?f[0]:f;s=l.inlineSize,c=l.blockSize}else s=t.offsetWidth,c=t.offsetHeight;n({width:s,height:c})});return o.observe(t,{box:"border-box"}),()=>o.unobserve(t)}else n(void 0)},[t]),e}var Nt="Popper",[pe,uo]=Fe(Nt),[Qn,me]=pe(Nt),ge=t=>{const{__scopePopper:e,children:n}=t,[o,r]=m.useState(null);return _.jsx(Qn,{scope:e,anchor:o,onAnchorChange:r,children:n})};ge.displayName=Nt;var we="PopperAnchor",ye=m.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:o,...r}=t,i=me(we,n),s=m.useRef(null),c=wt(e,s);return m.useEffect(()=>{i.onAnchorChange((o==null?void 0:o.current)||s.current)}),o?null:_.jsx(et.div,{...r,ref:c})});ye.displayName=we;var $t="PopperContent",[to,eo]=pe($t),xe=m.forwardRef((t,e)=>{var Wt,Bt,_t,zt,Ht,It;const{__scopePopper:n,side:o="bottom",sideOffset:r=0,align:i="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:l=[],collisionPadding:a=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:p,...g}=t,y=me($t,n),[w,v]=m.useState(null),E=wt(e,rt=>v(rt)),[b,A]=m.useState(null),P=Jn(b),x=(P==null?void 0:P.width)??0,C=(P==null?void 0:P.height)??0,M=o+(i!=="center"?"-"+i:""),O=typeof a=="number"?a:{top:0,right:0,bottom:0,left:0,...a},F=Array.isArray(l)?l:[l],N=F.length>0,D={padding:O,boundary:F.filter(oo),altBoundary:N},{refs:S,floatingStyles:B,placement:L,isPositioned:T,middlewareData:R}=Hn({strategy:"fixed",placement:M,whileElementsMounted:(...rt)=>kn(...rt,{animationFrame:d==="always"}),elements:{reference:y.anchor},middleware:[jn({mainAxis:r+C,alignmentAxis:s}),f&&Vn({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Yn():void 0,...D}),f&&Un({...D}),Xn({...D,apply:({elements:rt,rects:jt,availableWidth:Se,availableHeight:De})=>{const{width:Le,height:Te}=jt.reference,at=rt.floating.style;at.setProperty("--radix-popper-available-width",`${Se}px`),at.setProperty("--radix-popper-available-height",`${De}px`),at.setProperty("--radix-popper-anchor-width",`${Le}px`),at.setProperty("--radix-popper-anchor-height",`${Te}px`)}}),b&&Kn({element:b,padding:c}),ro({arrowWidth:x,arrowHeight:C}),h&&qn({strategy:"referenceHidden",...D})]}),[k,I]=Ae(L),lt=gt(p);Q(()=>{T&&(lt==null||lt())},[T,lt]);const Ee=(Wt=R.arrow)==null?void 0:Wt.x,Pe=(Bt=R.arrow)==null?void 0:Bt.y,Re=((_t=R.arrow)==null?void 0:_t.centerOffset)!==0,[Ce,Oe]=m.useState();return Q(()=>{w&&Oe(window.getComputedStyle(w).zIndex)},[w]),_.jsx("div",{ref:S.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:T?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ce,"--radix-popper-transform-origin":[(zt=R.transformOrigin)==null?void 0:zt.x,(Ht=R.transformOrigin)==null?void 0:Ht.y].join(" "),...((It=R.hide)==null?void 0:It.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:_.jsx(to,{scope:n,placedSide:k,onArrowChange:A,arrowX:Ee,arrowY:Pe,shouldHideArrow:Re,children:_.jsx(et.div,{"data-side":k,"data-align":I,...g,ref:E,style:{...g.style,animation:T?void 0:"none"}})})})});xe.displayName=$t;var ve="PopperArrow",no={top:"bottom",right:"left",bottom:"top",left:"right"},be=m.forwardRef(function(e,n){const{__scopePopper:o,...r}=e,i=eo(ve,o),s=no[i.placedSide];return _.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:_.jsx(Gn,{...r,ref:n,style:{...r.style,display:"block"}})})});be.displayName=ve;function oo(t){return t!==null}var ro=t=>({name:"transformOrigin",options:t,fn(e){var y,w,v;const{placement:n,rects:o,middlewareData:r}=e,s=((y=r.arrow)==null?void 0:y.centerOffset)!==0,c=s?0:t.arrowWidth,f=s?0:t.arrowHeight,[l,a]=Ae(n),u={start:"0%",center:"50%",end:"100%"}[a],h=(((w=r.arrow)==null?void 0:w.x)??0)+c/2,d=(((v=r.arrow)==null?void 0:v.y)??0)+f/2;let p="",g="";return l==="bottom"?(p=s?u:`${h}px`,g=`${-f}px`):l==="top"?(p=s?u:`${h}px`,g=`${o.floating.height+f}px`):l==="right"?(p=`${-f}px`,g=s?u:`${d}px`):l==="left"&&(p=`${o.floating.width+f}px`,g=s?u:`${d}px`),{data:{x:p,y:g}}}});function Ae(t){const[e,n="center"]=t.split("-");return[e,n]}var ho=ge,po=ye,mo=xe,go=be;export{po as A,mo as C,Ye as D,Ge as P,ho as R,ao as a,Jn as b,bt as c,uo as d,go as e,fo as u};
@@ -1 +0,0 @@
1
- import{r as p,j as c,b as f}from"./app.js";import{c as u}from"./index-DrWfGwtf.js";var l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],x=l.reduce((i,t)=>{const o=u(`Primitive.${t}`),r=p.forwardRef((s,e)=>{const{asChild:a,...n}=s,m=a?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...n,ref:e})});return r.displayName=`Primitive.${t}`,{...i,[t]:r}},{});function h(i,t){i&&f.flushSync(()=>i.dispatchEvent(t))}export{x as P,h as d};
@@ -1 +0,0 @@
1
- import{j as o}from"./app.js";import{A as r}from"./app-layout-D1m9Kvxq.js";import t from"./list-table-DB1sEQLF.js";import"./compiler-runtime-tM4jBQ-T.js";import"./sidebar-4D-sX2l4.js";import"./index-DrWfGwtf.js";import"./button-CQ9t1kLz.js";import"./utils-DjqsqOe8.js";import"./index-DTRTjOmh.js";import"./createLucideIcon-BFG25zNo.js";import"./index-Cdb9ACvz.js";import"./index-D5ir9iUV.js";import"./index-K81GbF6O.js";import"./index-C0SL3SHw.js";import"./index-BC0yfOHo.js";import"./tooltip-D2ehgLlB.js";import"./index-BcE9FUM6.js";import"./app-shell-BWMRMkHM.js";import"./app-sidebar-BCtaEFGb.js";import"./nav-main-Q3xofGRT.js";import"./material-icon-CItZiB53.js";import"./chevron-right-D5q8rF7h.js";import"./index-BbXEMx9n.js";import"./index-DEk3sC8d.js";import"./chevrons-up-down-kALltqHV.js";import"./app-sidebar-header-DLAFi13E.js";import"./breadcrumbs-CQNon4Vl.js";import"./nav-user-Ds8i0Pa2.js";import"./dropdown-menu-SEBnEIiL.js";import"./user-info-DBYoAJYJ.js";import"./user-menu-content-qkvdkUVd.js";import"./icon-Bz9BMaD0.js";import"./use-appearance-Co6mO0dV.js";import"./input-DF7Ue23C.js";import"./search-BspystAk.js";import"./sonner-Dzckw3U3.js";import"./trash-2-BoK5Xp2F.js";import"./select-D1N8zRPY.js";import"./index-DwctwfU0.js";import"./chevron-down-B5XuAFRu.js";import"./check-LAUWAnlX.js";import"./pagination-render-B57pOpFy.js";import"./chevron-left-CoMhTMUD.js";const m=[],V=()=>o.jsx(r,{breadcrumbs:m,className:"overflow-auto h-[calc(100svh-16px)]",children:o.jsx(t,{})});export{V as default};
@@ -1 +0,0 @@
1
- import{q as e,r,j as t}from"./app.js";import{A as s}from"./app-layout-D1m9Kvxq.js";import{L as n}from"./loader-circle-Utah5tGx.js";import"./compiler-runtime-tM4jBQ-T.js";import"./sidebar-4D-sX2l4.js";import"./index-DrWfGwtf.js";import"./button-CQ9t1kLz.js";import"./utils-DjqsqOe8.js";import"./index-DTRTjOmh.js";import"./createLucideIcon-BFG25zNo.js";import"./index-Cdb9ACvz.js";import"./index-D5ir9iUV.js";import"./index-K81GbF6O.js";import"./index-C0SL3SHw.js";import"./index-BC0yfOHo.js";import"./tooltip-D2ehgLlB.js";import"./index-BcE9FUM6.js";import"./app-shell-BWMRMkHM.js";import"./app-sidebar-BCtaEFGb.js";import"./nav-main-Q3xofGRT.js";import"./material-icon-CItZiB53.js";import"./chevron-right-D5q8rF7h.js";import"./index-BbXEMx9n.js";import"./index-DEk3sC8d.js";import"./chevrons-up-down-kALltqHV.js";import"./app-sidebar-header-DLAFi13E.js";import"./breadcrumbs-CQNon4Vl.js";import"./nav-user-Ds8i0Pa2.js";import"./dropdown-menu-SEBnEIiL.js";import"./user-info-DBYoAJYJ.js";import"./user-menu-content-qkvdkUVd.js";import"./icon-Bz9BMaD0.js";import"./use-appearance-Co6mO0dV.js";const a=[];function Q(){const o=e(),[m,i]=r.useState(null);return r.useEffect(()=>{(async()=>{const p=(await import(o.props.moduleComponent)).default;i(t.jsx(p,{message:o.props.message}))})()},[]),t.jsx(s,{breadcrumbs:a,children:t.jsxs("div",{className:"m-5",children:[t.jsx("div",{className:"mb-5",children:t.jsx("h1",{children:o.props.title})}),m||t.jsx(n,{className:"size-10 animate-spin text-neutral-500 mx-auto mt-[15%]"})]})})}export{Q as default};
@@ -1 +0,0 @@
1
- import{q as s,j as i}from"./app.js";import{c as l}from"./compiler-runtime-tM4jBQ-T.js";import{A as x}from"./app-layout-D1m9Kvxq.js";import"./sidebar-4D-sX2l4.js";import"./index-DrWfGwtf.js";import"./button-CQ9t1kLz.js";import"./utils-DjqsqOe8.js";import"./index-DTRTjOmh.js";import"./createLucideIcon-BFG25zNo.js";import"./index-Cdb9ACvz.js";import"./index-D5ir9iUV.js";import"./index-K81GbF6O.js";import"./index-C0SL3SHw.js";import"./index-BC0yfOHo.js";import"./tooltip-D2ehgLlB.js";import"./index-BcE9FUM6.js";import"./app-shell-BWMRMkHM.js";import"./app-sidebar-BCtaEFGb.js";import"./nav-main-Q3xofGRT.js";import"./material-icon-CItZiB53.js";import"./chevron-right-D5q8rF7h.js";import"./index-BbXEMx9n.js";import"./index-DEk3sC8d.js";import"./chevrons-up-down-kALltqHV.js";import"./app-sidebar-header-DLAFi13E.js";import"./breadcrumbs-CQNon4Vl.js";import"./nav-user-Ds8i0Pa2.js";import"./dropdown-menu-SEBnEIiL.js";import"./user-info-DBYoAJYJ.js";import"./user-menu-content-qkvdkUVd.js";import"./icon-Bz9BMaD0.js";import"./use-appearance-Co6mO0dV.js";const a=[];function J(){const t=l.c(8),r=s();let o;t[0]!==r.props.title?(o=r.props.title&&i.jsx("div",{className:"text-3xl mb-8",children:r.props.title}),t[0]=r.props.title,t[1]=o):o=t[1];let e;t[2]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx("div",{className:"text-3xl mb-8",children:"Adminizer"}),t[2]=e):e=t[2];let p;t[3]!==r.props.text?(p=r.props.text&&i.jsx("div",{dangerouslySetInnerHTML:{__html:r.props.text}}),t[3]=r.props.text,t[4]=p):p=t[4];let m;return t[5]!==o||t[6]!==p?(m=i.jsx(x,{breadcrumbs:a,children:i.jsxs("div",{className:"flex h-full flex-1 flex-col gap-4 rounded-xl p-4",children:[o,e,p]})}),t[5]=o,t[6]=p,t[7]=m):m=t[7],m}export{J as default};
@@ -1 +0,0 @@
1
- export default function processInstallFinalize(req: ReqType, res: ResType): Promise<void | ResType>;
@@ -1,16 +0,0 @@
1
- import { InstallStepper } from "../lib/installStepper/installStepper";
2
- import { Adminizer } from "../lib/Adminizer";
3
- let installStepper = InstallStepper.getInstance();
4
- export default async function processInstallFinalize(req, res) {
5
- if (req.adminizer.config.auth.enable) {
6
- if (!req.session.UserAP) {
7
- return res.redirect(`${req.adminizer.config.routePrefix}/model/userap/login`);
8
- }
9
- else if (!req.adminizer.accessRightsHelper.hasPermission(`process-install-step`, req.session.UserAP)) {
10
- return res.sendStatus(403);
11
- }
12
- }
13
- Adminizer.log.debug("IN PROCESS FINALIZE", installStepper.getFinalizeStatus());
14
- return res.json(installStepper.getFinalizeStatus());
15
- }
16
- ;
@@ -1 +0,0 @@
1
- export default function processInstallStep(req: ReqType, res: ResType): Promise<void>;
@@ -1,132 +0,0 @@
1
- import { InstallStepper } from "../lib/installStepper/installStepper";
2
- import * as path from "path";
3
- import { Adminizer } from "../lib/Adminizer";
4
- export default async function processInstallStep(req, res) {
5
- if (req.adminizer.config.auth.enable) {
6
- if (!req.session.UserAP) {
7
- res.redirect(`${req.adminizer.config.routePrefix}/model/userap/login`);
8
- return;
9
- }
10
- else if (!req.adminizer.accessRightsHelper.hasPermission(`process-install-step`, req.session.UserAP)) {
11
- res.sendStatus(403);
12
- return;
13
- }
14
- }
15
- if (req.method.toUpperCase() === 'GET') {
16
- Adminizer.log.debug("GET REQUEST TO PROCESS INSTALL STEP");
17
- let installStepper = InstallStepper.getStepper(req.params.id);
18
- if (!installStepper) {
19
- res.redirect(`${req.adminizer.config.routePrefix}/`);
20
- return;
21
- }
22
- if (installStepper.hasUnprocessedSteps() || installStepper.hasUnfinalizedSteps()) {
23
- let renderData = installStepper.render(req);
24
- let renderer = renderData.currentStep.renderer;
25
- // run onInit method before showing step to user
26
- try {
27
- await renderData.currentStep.onInit();
28
- }
29
- catch (e) {
30
- console.log("ERROR IN PROCESS INSTALL STEP", e);
31
- res.viewAdmin(`installer/error`, { error: e, stepperId: installStepper.id });
32
- return;
33
- }
34
- res.viewAdmin(`installer/${renderer}`, { ...renderData, stepperId: installStepper.id });
35
- return;
36
- }
37
- else {
38
- res.redirect(`${req.adminizer.config.routePrefix}/`);
39
- return;
40
- }
41
- }
42
- if (req.method.toUpperCase() === 'POST') {
43
- try {
44
- Adminizer.log.debug("POST REQUEST TO PROCESS INSTALL STEP", JSON.stringify(req.body, null, 2));
45
- let installStepper = InstallStepper.getStepper(req.params.id);
46
- const currentStepId = req.body.currentStepId;
47
- const filesCounter = req.body.filesCounter;
48
- // upload files before processing other fields (filesCounter > 0 means that req contains files)
49
- const uploadedFiles = await handleFileUploads(req, currentStepId, filesCounter);
50
- if (req.body.action === 'next') {
51
- const inputData = JSON.parse(req.body.inputData);
52
- if (uploadedFiles.length) {
53
- inputData.uploadedFiles = uploadedFiles;
54
- }
55
- // trying to process step
56
- await installStepper.processStep(currentStepId, inputData);
57
- }
58
- else if (req.body.action === 'skip') {
59
- // trying to skip step
60
- await installStepper.skipStep(currentStepId);
61
- }
62
- else {
63
- res.status(400).send("Invalid action parameter");
64
- return;
65
- }
66
- // go back to stepper if there are more unprocessed steps, otherwise go back to /admin
67
- if (installStepper.hasUnprocessedSteps()) {
68
- res.redirect(`${req.adminizer.config.routePrefix}/install/${installStepper.id}`);
69
- return;
70
- }
71
- else {
72
- res.redirect(`${req.adminizer.config.routePrefix}/`);
73
- return;
74
- }
75
- }
76
- catch (error) {
77
- Adminizer.log.error("Error processing step:", error);
78
- res.status(500).send("Error processing step");
79
- return;
80
- }
81
- }
82
- if (req.method.toUpperCase() === 'DELETE') {
83
- Adminizer.log.debug("DELETE REQUEST TO PROCESS INSTALL STEP", req.body);
84
- try {
85
- InstallStepper.deleteStepper(req.params.id);
86
- res.status(200).send("OK");
87
- return;
88
- }
89
- catch (e) {
90
- res.status(403).send(e);
91
- return;
92
- }
93
- }
94
- res.status(500).send("Invalid request method");
95
- return;
96
- }
97
- ;
98
- async function handleFileUploads(req, currentStepId, filesCounter) {
99
- const uploadedFiles = [];
100
- for (let i = 0; i < filesCounter; i++) {
101
- const fieldName = `files_${i}`;
102
- const uploadMiddleware = req.upload({
103
- destination: "installStepper/uploadedImages",
104
- filename: (file) => {
105
- const extension = path.extname(file.originalname);
106
- const baseName = path.basename(file.originalname, extension);
107
- return `${currentStepId}_${baseName}_${Date.now()}${extension}`;
108
- },
109
- }).single(fieldName);
110
- try {
111
- await new Promise((resolve, reject) => {
112
- uploadMiddleware(req, null, (err) => {
113
- if (err) {
114
- Adminizer.logger.error(`Error uploading file: ${fieldName}`, err);
115
- reject(err);
116
- }
117
- else {
118
- const uploadedFile = req.file?.path;
119
- if (uploadedFile) {
120
- uploadedFiles.push(uploadedFile);
121
- }
122
- resolve();
123
- }
124
- });
125
- });
126
- }
127
- catch (err) {
128
- Adminizer.logger.error(`Failed to upload file: ${fieldName}`, err);
129
- }
130
- }
131
- return uploadedFiles;
132
- }
File without changes