@donotdev/ui 0.1.45 → 0.1.46

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 (342) hide show
  1. package/dist/CookieConsent-W7UE647Y.js +1 -0
  2. package/dist/components/auth/AuthHeader.d.ts +1 -1
  3. package/dist/components/auth/AuthHeader.d.ts.map +1 -1
  4. package/dist/components/auth/AuthMenu.d.ts +2 -2
  5. package/dist/components/auth/AuthMenu.d.ts.map +1 -1
  6. package/dist/components/common/FeatureCard.d.ts +13 -2
  7. package/dist/components/common/FeatureCard.d.ts.map +1 -1
  8. package/dist/components/common/FeatureCard.js +0 -12
  9. package/dist/components/common/FeatureDisabled.d.ts +1 -1
  10. package/dist/components/common/FeatureDisabled.d.ts.map +1 -1
  11. package/dist/components/common/ProgressBar.d.ts.map +1 -1
  12. package/dist/components/common/RedirectOverlay.d.ts +1 -1
  13. package/dist/components/common/RedirectOverlay.d.ts.map +1 -1
  14. package/dist/components/common/Skeleton.d.ts +11 -0
  15. package/dist/components/common/Skeleton.d.ts.map +1 -1
  16. package/dist/components/common/Skeleton.js +0 -12
  17. package/dist/components/common/TechBento.d.ts +1 -1
  18. package/dist/components/common/TechBento.d.ts.map +1 -1
  19. package/dist/components/common/icon.d.ts.map +1 -1
  20. package/dist/components/cookie-consent/ConsentBanner.d.ts +1 -1
  21. package/dist/components/cookie-consent/ConsentBanner.d.ts.map +1 -1
  22. package/dist/components/cookie-consent/CookieConsent.d.ts +1 -1
  23. package/dist/components/cookie-consent/CookieConsent.d.ts.map +1 -1
  24. package/dist/components/cookie-consent/CookieConsent.js +13 -0
  25. package/dist/components/layout/GameContainer.d.ts +9 -1
  26. package/dist/components/layout/GameContainer.d.ts.map +1 -1
  27. package/dist/components/layout/GameContainer.js +0 -9
  28. package/dist/components/layout/GameFlow.d.ts +1 -1
  29. package/dist/components/layout/GameFlow.d.ts.map +1 -1
  30. package/dist/components/layout/PageContainer.d.ts +1 -1
  31. package/dist/components/layout/PageContainer.d.ts.map +1 -1
  32. package/dist/components/layout/components/Breadcrumbs.d.ts.map +1 -1
  33. package/dist/components/layout/components/DropdownNavigation.d.ts +16 -1
  34. package/dist/components/layout/components/DropdownNavigation.d.ts.map +1 -1
  35. package/dist/components/layout/components/DropdownNavigation.js +0 -16
  36. package/dist/components/layout/components/FloatingLanguageSwitcher.d.ts +8 -0
  37. package/dist/components/layout/components/FloatingLanguageSwitcher.d.ts.map +1 -1
  38. package/dist/components/layout/components/FloatingLanguageSwitcher.js +0 -9
  39. package/dist/components/layout/components/Notifications.d.ts +1 -1
  40. package/dist/components/layout/components/Notifications.d.ts.map +1 -1
  41. package/dist/components/layout/components/header/AppBranding.d.ts +1 -1
  42. package/dist/components/layout/components/header/AppBranding.d.ts.map +1 -1
  43. package/dist/components/layout/components/header/AppIcon.d.ts +1 -1
  44. package/dist/components/layout/components/header/AppIcon.d.ts.map +1 -1
  45. package/dist/components/layout/components/header/AppTitle.d.ts +1 -1
  46. package/dist/components/layout/components/header/AppTitle.d.ts.map +1 -1
  47. package/dist/components/layout/components/header/CacheSettings.d.ts +1 -1
  48. package/dist/components/layout/components/header/CacheSettings.d.ts.map +1 -1
  49. package/dist/components/layout/components/header/GameTitle.d.ts +1 -1
  50. package/dist/components/layout/components/header/GameTitle.d.ts.map +1 -1
  51. package/dist/components/layout/components/header/HeaderMenu.d.ts +1 -1
  52. package/dist/components/layout/components/header/HeaderMenu.d.ts.map +1 -1
  53. package/dist/components/layout/components/header/HeaderNavigation.d.ts +1 -1
  54. package/dist/components/layout/components/header/HeaderNavigation.d.ts.map +1 -1
  55. package/dist/components/layout/components/header/SettingsMenu.d.ts +1 -1
  56. package/dist/components/layout/components/header/SettingsMenu.d.ts.map +1 -1
  57. package/dist/components/layout/components/header/ThemeToggle.d.ts +1 -1
  58. package/dist/components/layout/components/header/ThemeToggle.d.ts.map +1 -1
  59. package/dist/crud/components/CrudCardLink.d.ts +1 -1
  60. package/dist/crud/components/CrudCardLink.d.ts.map +1 -1
  61. package/dist/crud/components/CrudCardLink.js +1 -2
  62. package/dist/crud/components/EntityCardList.d.ts +1 -1
  63. package/dist/crud/components/EntityCardList.d.ts.map +1 -1
  64. package/dist/crud/components/EntityCardList.js +0 -1
  65. package/dist/crud/components/EntityDisplayRenderer.d.ts +1 -1
  66. package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
  67. package/dist/crud/components/EntityDisplayRenderer.js +1 -2
  68. package/dist/crud/components/EntityFormRenderer.d.ts +1 -1
  69. package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
  70. package/dist/crud/components/EntityFormRenderer.js +20 -5
  71. package/dist/crud/components/EntityList.d.ts +1 -1
  72. package/dist/crud/components/EntityList.d.ts.map +1 -1
  73. package/dist/crud/components/EntityList.js +1 -2
  74. package/dist/crud/components/EntityRecommendations.d.ts +1 -1
  75. package/dist/crud/components/EntityRecommendations.d.ts.map +1 -1
  76. package/dist/crud/components/EntityRecommendations.js +0 -1
  77. package/dist/crud/components/EntityWorkflow.d.ts +22 -2
  78. package/dist/crud/components/EntityWorkflow.d.ts.map +1 -1
  79. package/dist/crud/components/EntityWorkflow.js +0 -22
  80. package/dist/crud/components/Form.d.ts +8 -8
  81. package/dist/crud/components/Form.d.ts.map +1 -1
  82. package/dist/dndev-next.css +1714 -0
  83. package/dist/dndev.css +14 -932
  84. package/dist/files/inter-cyrillic-300-normal.woff +0 -0
  85. package/dist/files/inter-cyrillic-300-normal.woff2 +0 -0
  86. package/dist/files/inter-cyrillic-400-normal.woff +0 -0
  87. package/dist/files/inter-cyrillic-400-normal.woff2 +0 -0
  88. package/dist/files/inter-cyrillic-600-normal.woff +0 -0
  89. package/dist/files/inter-cyrillic-600-normal.woff2 +0 -0
  90. package/dist/files/inter-cyrillic-700-normal.woff +0 -0
  91. package/dist/files/inter-cyrillic-700-normal.woff2 +0 -0
  92. package/dist/files/inter-cyrillic-ext-300-normal.woff +0 -0
  93. package/dist/files/inter-cyrillic-ext-300-normal.woff2 +0 -0
  94. package/dist/files/inter-cyrillic-ext-400-normal.woff +0 -0
  95. package/dist/files/inter-cyrillic-ext-400-normal.woff2 +0 -0
  96. package/dist/files/inter-cyrillic-ext-600-normal.woff +0 -0
  97. package/dist/files/inter-cyrillic-ext-600-normal.woff2 +0 -0
  98. package/dist/files/inter-cyrillic-ext-700-normal.woff +0 -0
  99. package/dist/files/inter-cyrillic-ext-700-normal.woff2 +0 -0
  100. package/dist/files/inter-greek-300-normal.woff +0 -0
  101. package/dist/files/inter-greek-300-normal.woff2 +0 -0
  102. package/dist/files/inter-greek-400-normal.woff +0 -0
  103. package/dist/files/inter-greek-400-normal.woff2 +0 -0
  104. package/dist/files/inter-greek-600-normal.woff +0 -0
  105. package/dist/files/inter-greek-600-normal.woff2 +0 -0
  106. package/dist/files/inter-greek-700-normal.woff +0 -0
  107. package/dist/files/inter-greek-700-normal.woff2 +0 -0
  108. package/dist/files/inter-greek-ext-300-normal.woff +0 -0
  109. package/dist/files/inter-greek-ext-300-normal.woff2 +0 -0
  110. package/dist/files/inter-greek-ext-400-normal.woff +0 -0
  111. package/dist/files/inter-greek-ext-400-normal.woff2 +0 -0
  112. package/dist/files/inter-greek-ext-600-normal.woff +0 -0
  113. package/dist/files/inter-greek-ext-600-normal.woff2 +0 -0
  114. package/dist/files/inter-greek-ext-700-normal.woff +0 -0
  115. package/dist/files/inter-greek-ext-700-normal.woff2 +0 -0
  116. package/dist/files/inter-latin-300-normal.woff +0 -0
  117. package/dist/files/inter-latin-300-normal.woff2 +0 -0
  118. package/dist/files/inter-latin-400-normal.woff +0 -0
  119. package/dist/files/inter-latin-400-normal.woff2 +0 -0
  120. package/dist/files/inter-latin-600-normal.woff +0 -0
  121. package/dist/files/inter-latin-600-normal.woff2 +0 -0
  122. package/dist/files/inter-latin-700-normal.woff +0 -0
  123. package/dist/files/inter-latin-700-normal.woff2 +0 -0
  124. package/dist/files/inter-latin-ext-300-normal.woff +0 -0
  125. package/dist/files/inter-latin-ext-300-normal.woff2 +0 -0
  126. package/dist/files/inter-latin-ext-400-normal.woff +0 -0
  127. package/dist/files/inter-latin-ext-400-normal.woff2 +0 -0
  128. package/dist/files/inter-latin-ext-600-normal.woff +0 -0
  129. package/dist/files/inter-latin-ext-600-normal.woff2 +0 -0
  130. package/dist/files/inter-latin-ext-700-normal.woff +0 -0
  131. package/dist/files/inter-latin-ext-700-normal.woff2 +0 -0
  132. package/dist/files/inter-vietnamese-300-normal.woff +0 -0
  133. package/dist/files/inter-vietnamese-300-normal.woff2 +0 -0
  134. package/dist/files/inter-vietnamese-400-normal.woff +0 -0
  135. package/dist/files/inter-vietnamese-400-normal.woff2 +0 -0
  136. package/dist/files/inter-vietnamese-600-normal.woff +0 -0
  137. package/dist/files/inter-vietnamese-600-normal.woff2 +0 -0
  138. package/dist/files/inter-vietnamese-700-normal.woff +0 -0
  139. package/dist/files/inter-vietnamese-700-normal.woff2 +0 -0
  140. package/dist/files/playfair-display-cyrillic-400-normal.woff +0 -0
  141. package/dist/files/playfair-display-cyrillic-400-normal.woff2 +0 -0
  142. package/dist/files/playfair-display-cyrillic-500-normal.woff +0 -0
  143. package/dist/files/playfair-display-cyrillic-500-normal.woff2 +0 -0
  144. package/dist/files/playfair-display-cyrillic-600-normal.woff +0 -0
  145. package/dist/files/playfair-display-cyrillic-600-normal.woff2 +0 -0
  146. package/dist/files/playfair-display-cyrillic-700-normal.woff +0 -0
  147. package/dist/files/playfair-display-cyrillic-700-normal.woff2 +0 -0
  148. package/dist/files/playfair-display-latin-400-normal.woff +0 -0
  149. package/dist/files/playfair-display-latin-400-normal.woff2 +0 -0
  150. package/dist/files/playfair-display-latin-500-normal.woff +0 -0
  151. package/dist/files/playfair-display-latin-500-normal.woff2 +0 -0
  152. package/dist/files/playfair-display-latin-600-normal.woff +0 -0
  153. package/dist/files/playfair-display-latin-600-normal.woff2 +0 -0
  154. package/dist/files/playfair-display-latin-700-normal.woff +0 -0
  155. package/dist/files/playfair-display-latin-700-normal.woff2 +0 -0
  156. package/dist/files/playfair-display-latin-ext-400-normal.woff +0 -0
  157. package/dist/files/playfair-display-latin-ext-400-normal.woff2 +0 -0
  158. package/dist/files/playfair-display-latin-ext-500-normal.woff +0 -0
  159. package/dist/files/playfair-display-latin-ext-500-normal.woff2 +0 -0
  160. package/dist/files/playfair-display-latin-ext-600-normal.woff +0 -0
  161. package/dist/files/playfair-display-latin-ext-600-normal.woff2 +0 -0
  162. package/dist/files/playfair-display-latin-ext-700-normal.woff +0 -0
  163. package/dist/files/playfair-display-latin-ext-700-normal.woff2 +0 -0
  164. package/dist/files/playfair-display-vietnamese-400-normal.woff +0 -0
  165. package/dist/files/playfair-display-vietnamese-400-normal.woff2 +0 -0
  166. package/dist/files/playfair-display-vietnamese-500-normal.woff +0 -0
  167. package/dist/files/playfair-display-vietnamese-500-normal.woff2 +0 -0
  168. package/dist/files/playfair-display-vietnamese-600-normal.woff +0 -0
  169. package/dist/files/playfair-display-vietnamese-600-normal.woff2 +0 -0
  170. package/dist/files/playfair-display-vietnamese-700-normal.woff +0 -0
  171. package/dist/files/playfair-display-vietnamese-700-normal.woff2 +0 -0
  172. package/dist/files/press-start-2p-cyrillic-400-normal.woff +0 -0
  173. package/dist/files/press-start-2p-cyrillic-400-normal.woff2 +0 -0
  174. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff +0 -0
  175. package/dist/files/press-start-2p-cyrillic-ext-400-normal.woff2 +0 -0
  176. package/dist/files/press-start-2p-greek-400-normal.woff +0 -0
  177. package/dist/files/press-start-2p-greek-400-normal.woff2 +0 -0
  178. package/dist/files/press-start-2p-latin-400-normal.woff +0 -0
  179. package/dist/files/press-start-2p-latin-400-normal.woff2 +0 -0
  180. package/dist/files/press-start-2p-latin-ext-400-normal.woff +0 -0
  181. package/dist/files/press-start-2p-latin-ext-400-normal.woff2 +0 -0
  182. package/dist/files/roboto-cyrillic-400-normal.woff +0 -0
  183. package/dist/files/roboto-cyrillic-400-normal.woff2 +0 -0
  184. package/dist/files/roboto-cyrillic-700-normal.woff +0 -0
  185. package/dist/files/roboto-cyrillic-700-normal.woff2 +0 -0
  186. package/dist/files/roboto-cyrillic-ext-400-normal.woff +0 -0
  187. package/dist/files/roboto-cyrillic-ext-400-normal.woff2 +0 -0
  188. package/dist/files/roboto-cyrillic-ext-700-normal.woff +0 -0
  189. package/dist/files/roboto-cyrillic-ext-700-normal.woff2 +0 -0
  190. package/dist/files/roboto-greek-400-normal.woff +0 -0
  191. package/dist/files/roboto-greek-400-normal.woff2 +0 -0
  192. package/dist/files/roboto-greek-700-normal.woff +0 -0
  193. package/dist/files/roboto-greek-700-normal.woff2 +0 -0
  194. package/dist/files/roboto-greek-ext-400-normal.woff +0 -0
  195. package/dist/files/roboto-greek-ext-400-normal.woff2 +0 -0
  196. package/dist/files/roboto-greek-ext-700-normal.woff +0 -0
  197. package/dist/files/roboto-greek-ext-700-normal.woff2 +0 -0
  198. package/dist/files/roboto-latin-400-normal.woff +0 -0
  199. package/dist/files/roboto-latin-400-normal.woff2 +0 -0
  200. package/dist/files/roboto-latin-700-normal.woff +0 -0
  201. package/dist/files/roboto-latin-700-normal.woff2 +0 -0
  202. package/dist/files/roboto-latin-ext-400-normal.woff +0 -0
  203. package/dist/files/roboto-latin-ext-400-normal.woff2 +0 -0
  204. package/dist/files/roboto-latin-ext-700-normal.woff +0 -0
  205. package/dist/files/roboto-latin-ext-700-normal.woff2 +0 -0
  206. package/dist/files/roboto-math-400-normal.woff +0 -0
  207. package/dist/files/roboto-math-400-normal.woff2 +0 -0
  208. package/dist/files/roboto-math-700-normal.woff +0 -0
  209. package/dist/files/roboto-math-700-normal.woff2 +0 -0
  210. package/dist/files/roboto-symbols-400-normal.woff +0 -0
  211. package/dist/files/roboto-symbols-400-normal.woff2 +0 -0
  212. package/dist/files/roboto-symbols-700-normal.woff +0 -0
  213. package/dist/files/roboto-symbols-700-normal.woff2 +0 -0
  214. package/dist/files/roboto-vietnamese-400-normal.woff +0 -0
  215. package/dist/files/roboto-vietnamese-400-normal.woff2 +0 -0
  216. package/dist/files/roboto-vietnamese-700-normal.woff +0 -0
  217. package/dist/files/roboto-vietnamese-700-normal.woff2 +0 -0
  218. package/dist/files/space-grotesk-latin-300-normal.woff +0 -0
  219. package/dist/files/space-grotesk-latin-300-normal.woff2 +0 -0
  220. package/dist/files/space-grotesk-latin-400-normal.woff +0 -0
  221. package/dist/files/space-grotesk-latin-400-normal.woff2 +0 -0
  222. package/dist/files/space-grotesk-latin-500-normal.woff +0 -0
  223. package/dist/files/space-grotesk-latin-500-normal.woff2 +0 -0
  224. package/dist/files/space-grotesk-latin-600-normal.woff +0 -0
  225. package/dist/files/space-grotesk-latin-600-normal.woff2 +0 -0
  226. package/dist/files/space-grotesk-latin-700-normal.woff +0 -0
  227. package/dist/files/space-grotesk-latin-700-normal.woff2 +0 -0
  228. package/dist/files/space-grotesk-latin-ext-300-normal.woff +0 -0
  229. package/dist/files/space-grotesk-latin-ext-300-normal.woff2 +0 -0
  230. package/dist/files/space-grotesk-latin-ext-400-normal.woff +0 -0
  231. package/dist/files/space-grotesk-latin-ext-400-normal.woff2 +0 -0
  232. package/dist/files/space-grotesk-latin-ext-500-normal.woff +0 -0
  233. package/dist/files/space-grotesk-latin-ext-500-normal.woff2 +0 -0
  234. package/dist/files/space-grotesk-latin-ext-600-normal.woff +0 -0
  235. package/dist/files/space-grotesk-latin-ext-600-normal.woff2 +0 -0
  236. package/dist/files/space-grotesk-latin-ext-700-normal.woff +0 -0
  237. package/dist/files/space-grotesk-latin-ext-700-normal.woff2 +0 -0
  238. package/dist/files/space-grotesk-vietnamese-300-normal.woff +0 -0
  239. package/dist/files/space-grotesk-vietnamese-300-normal.woff2 +0 -0
  240. package/dist/files/space-grotesk-vietnamese-400-normal.woff +0 -0
  241. package/dist/files/space-grotesk-vietnamese-400-normal.woff2 +0 -0
  242. package/dist/files/space-grotesk-vietnamese-500-normal.woff +0 -0
  243. package/dist/files/space-grotesk-vietnamese-500-normal.woff2 +0 -0
  244. package/dist/files/space-grotesk-vietnamese-600-normal.woff +0 -0
  245. package/dist/files/space-grotesk-vietnamese-600-normal.woff2 +0 -0
  246. package/dist/files/space-grotesk-vietnamese-700-normal.woff +0 -0
  247. package/dist/files/space-grotesk-vietnamese-700-normal.woff2 +0 -0
  248. package/dist/index.js +3 -3
  249. package/dist/internal/common/ErrorFallback.d.ts.map +1 -1
  250. package/dist/internal/common/GlobalErrorFallback.d.ts.map +1 -1
  251. package/dist/internal/common/RouteErrorFallback.d.ts.map +1 -1
  252. package/dist/internal/devtools/DebugTools.d.ts +1 -1
  253. package/dist/internal/devtools/DebugTools.d.ts.map +1 -1
  254. package/dist/internal/devtools/components/AuthDebugButton.d.ts.map +1 -1
  255. package/dist/internal/devtools/components/ConfigTab.d.ts +1 -1
  256. package/dist/internal/devtools/components/ConfigTab.d.ts.map +1 -1
  257. package/dist/internal/devtools/components/CookieTab.d.ts +1 -1
  258. package/dist/internal/devtools/components/CookieTab.d.ts.map +1 -1
  259. package/dist/internal/devtools/components/DebugDialog.d.ts +1 -1
  260. package/dist/internal/devtools/components/DebugDialog.d.ts.map +1 -1
  261. package/dist/internal/devtools/components/DesignTab.d.ts +1 -1
  262. package/dist/internal/devtools/components/DesignTab.d.ts.map +1 -1
  263. package/dist/internal/devtools/components/LayoutReset.d.ts.map +1 -1
  264. package/dist/internal/devtools/components/MaskedValue.d.ts +1 -1
  265. package/dist/internal/devtools/components/MaskedValue.d.ts.map +1 -1
  266. package/dist/internal/devtools/components/StoresTab.d.ts +1 -1
  267. package/dist/internal/devtools/components/StoresTab.d.ts.map +1 -1
  268. package/dist/internal/initializers/BaseStoresInitializer.d.ts +2 -2
  269. package/dist/internal/initializers/BaseStoresInitializer.d.ts.map +1 -1
  270. package/dist/internal/initializers/BaseStoresInitializer.js +1 -1
  271. package/dist/internal/initializers/NextJsStoresInitializer.d.ts +2 -2
  272. package/dist/internal/initializers/NextJsStoresInitializer.d.ts.map +1 -1
  273. package/dist/internal/initializers/ViteStoresInitializer.d.ts +10 -2
  274. package/dist/internal/initializers/ViteStoresInitializer.d.ts.map +1 -1
  275. package/dist/internal/initializers/ViteStoresInitializer.js +0 -9
  276. package/dist/internal/layout/DnDevLayout.d.ts +1 -1
  277. package/dist/internal/layout/DnDevLayout.d.ts.map +1 -1
  278. package/dist/internal/layout/DnDevLayout.js +19 -5
  279. package/dist/internal/layout/components/AutoMetaTags.d.ts.map +1 -1
  280. package/dist/internal/layout/components/AutoMetaTags.js +1 -1
  281. package/dist/internal/layout/components/FaviconHead.d.ts.map +1 -1
  282. package/dist/internal/layout/components/HeadTags.d.ts +17 -1
  283. package/dist/internal/layout/components/HeadTags.d.ts.map +1 -1
  284. package/dist/internal/layout/components/HeadTags.js +0 -17
  285. package/dist/internal/layout/components/NextJsAutoMetaTags.d.ts.map +1 -1
  286. package/dist/internal/layout/components/PerformanceHints.d.ts +12 -0
  287. package/dist/internal/layout/components/PerformanceHints.d.ts.map +1 -1
  288. package/dist/internal/layout/components/PerformanceHints.js +0 -13
  289. package/dist/internal/layout/config/defaults.d.ts +10 -0
  290. package/dist/internal/layout/config/defaults.d.ts.map +1 -1
  291. package/dist/internal/layout/config/defaults.js +0 -11
  292. package/dist/internal/layout/zones/DnDevFooter.d.ts +1 -1
  293. package/dist/internal/layout/zones/DnDevFooter.d.ts.map +1 -1
  294. package/dist/internal/layout/zones/DnDevHeader.d.ts.map +1 -1
  295. package/dist/internal/layout/zones/DnDevMergedBar.d.ts.map +1 -1
  296. package/dist/internal/layout/zones/DnDevSidebar.d.ts.map +1 -1
  297. package/dist/internal/providers/NavigationProvider.d.ts +30 -1
  298. package/dist/internal/providers/NavigationProvider.d.ts.map +1 -1
  299. package/dist/internal/providers/UIProviders.d.ts +8 -0
  300. package/dist/internal/providers/UIProviders.d.ts.map +1 -1
  301. package/dist/internal/providers/UIProviders.js +0 -9
  302. package/dist/providers/NextJsAppProviders.d.ts +1 -1
  303. package/dist/providers/NextJsAppProviders.d.ts.map +1 -1
  304. package/dist/providers/NextJsAppProviders.js +1 -4
  305. package/dist/providers/ViteAppProviders.d.ts +1 -1
  306. package/dist/providers/ViteAppProviders.d.ts.map +1 -1
  307. package/dist/routing/404.d.ts +1 -1
  308. package/dist/routing/404.d.ts.map +1 -1
  309. package/dist/routing/AuthGuard.d.ts +2 -2
  310. package/dist/routing/AuthGuard.d.ts.map +1 -1
  311. package/dist/routing/AuthGuardFallback.d.ts +1 -1
  312. package/dist/routing/AuthGuardFallback.d.ts.map +1 -1
  313. package/dist/routing/AuthReturnTo.js +1 -1
  314. package/dist/routing/DnDevNavigationMenu.d.ts.map +1 -1
  315. package/dist/routing/GoTo.d.ts +1 -1
  316. package/dist/routing/GoTo.d.ts.map +1 -1
  317. package/dist/routing/GoToDialog.d.ts.map +1 -1
  318. package/dist/routing/GoToInput.d.ts +1 -1
  319. package/dist/routing/GoToInput.d.ts.map +1 -1
  320. package/dist/routing/GoToWrapper.d.ts +1 -1
  321. package/dist/routing/GoToWrapper.d.ts.map +1 -1
  322. package/dist/routing/Link.d.ts +1 -1
  323. package/dist/routing/Link.d.ts.map +1 -1
  324. package/dist/routing/Link.js +0 -1
  325. package/dist/routing/NavigationItem.d.ts +1 -1
  326. package/dist/routing/NavigationItem.d.ts.map +1 -1
  327. package/dist/routing/useRouteDiscovery.d.ts +1 -1
  328. package/dist/routing/useRouteDiscovery.d.ts.map +1 -1
  329. package/dist/styles/index.css +14 -831
  330. package/dist/symbol-index.json +1 -1
  331. package/dist/utils/tList.d.ts +8 -0
  332. package/dist/utils/tList.d.ts.map +1 -1
  333. package/dist/utils/tList.js +0 -9
  334. package/dist/utils/useSeo.d.ts.map +1 -1
  335. package/dist/utils/useSeo.js +1 -1
  336. package/dist/vite-routing/AppRoutes.d.ts +1 -1
  337. package/dist/vite-routing/AppRoutes.d.ts.map +1 -1
  338. package/dist/vite-routing/AppRoutes.js +1 -1
  339. package/dist/vite-routing/RootLayout.d.ts +1 -1
  340. package/dist/vite-routing/RootLayout.d.ts.map +1 -1
  341. package/dist/vite-routing/RootLayout.js +1 -1
  342. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- "use client";import{a as W,b as Cn,c as N,d as yu,e as bu,f as re,g as Co,h as Su}from"./chunk-MIPTBUWY.js";import{a as Ze}from"./chunk-O2XFH626.js";import{User as Qi}from"lucide-react";import{Suspense as $t,lazy as Zo,useState as Xi}from"react";import{Button as ji,BUTTON_VARIANT as Jo,DropdownMenu as es,Dialog as ts,DISPLAY as os}from"@donotdev/components";import{useTranslation as rs}from"@donotdev/core";import{useAuthConfig as ns}from"@donotdev/core";import{getEnabledAuthPartners as as}from"@donotdev/core";import{User as Pi,LogOut as Ii,Settings as ze,UserCheck as Ni,Trash2 as Li}from"lucide-react";import*as Fi from"lucide-react";import it,{useMemo as Di,lazy as Wo,Suspense as Go}from"react";import{Avatar as Bi,Button as Mi,BUTTON_VARIANT as Oi,DropdownMenu as zi,Text as Vi,DISPLAY as Ui}from"@donotdev/components";import{useTranslation as _i}from"@donotdev/core";import{getEnabledAuthPartners as Hi,useAuthConfig as $i,isClient as Gi}from"@donotdev/core";import{useBreakpoint as Wi}from"@donotdev/core";import{useNavigate as Ki}from"@donotdev/ui/routing/hooks";import{Link as Je}from"lucide-react";import"react";import"@donotdev/components";import{useConsent as xn}from"@donotdev/core";import{useNavigate as wn}from"@donotdev/ui/routing/hooks";import{Fragment as Tn,jsx as ue,jsxs as xo}from"react/jsx-runtime";var k=({path:e,replace:t,prefetch:o=!0,children:r,icon:n,iconEnd:a=!1,label:i,onClick:l,className:c,"aria-label":u,"aria-describedby":s,target:d,rel:m,...f})=>{let p=wn(),g=xn("showCookieBanner");if(e==="#cookie-settings")return xo("a",{href:"#cookie-settings",onClick:S=>{if(S.metaKey||S.ctrlKey||S.shiftKey||S.altKey||S.button!==0){l&&l(S);return}S.preventDefault(),S.stopPropagation();try{g()}catch{}l&&l(S)},className:c,style:{display:n&&(i||r)?"flex":void 0,alignItems:n&&(i||r)?"center":void 0,gap:n&&(i||r)?"var(--gap-sm)":void 0,...f.style},"aria-label":u||i||"Cookie Settings","aria-describedby":s,...f,children:[n&&!a&&ue(W,{icon:n,fallback:Je}),i&&ue("span",{children:i}),r,n&&a&&ue(W,{icon:n,fallback:Je})]});let h=e.startsWith("http://")||e.startsWith("https://")||e.startsWith("mailto:")||e.startsWith("tel:"),v=b=>{if(h){l&&l(b);return}if(b.metaKey||b.ctrlKey||b.shiftKey||b.altKey||b.button!==0){l&&l(b);return}b.preventDefault(),l&&l(b);let S=e.startsWith("/")||e.startsWith(".")?e:`/${e}`;p(S,{replace:t})},x={"aria-label":u||i,"aria-describedby":s},w=xo(Tn,{children:[n&&!a&&ue(W,{icon:n,fallback:Je}),i&&ue("span",{children:i}),r,n&&a&&ue(W,{icon:n,fallback:Je})]});return h?ue("a",{href:e,onClick:v,target:d||"_blank",rel:m||"noopener noreferrer",className:c,style:{display:n&&(i||r)?"flex":void 0,alignItems:n&&(i||r)?"center":void 0,gap:n&&(i||r)?"var(--gap-sm)":void 0},...x,...f,children:w}):ue("a",{href:e,onClick:v,className:c,style:{display:n&&(i||r)?"flex":void 0,alignItems:n&&(i||r)?"center":void 0,gap:n&&(i||r)?"var(--gap-sm)":void 0},...x,...f,children:w})};import{useEffect as kn}from"react";import{Spinner as wo}from"@donotdev/components";import{FEATURE_STATUS as An,USER_ROLES as Qe,SUBSCRIPTION_TIERS as Pt,isClient as En,safeSessionStorage as To}from"@donotdev/core";import{useRedirectGuard as Rn,useNavigate as Pn}from"@donotdev/ui/routing/hooks";import{Fragment as ko,jsx as ve}from"react/jsx-runtime";function In({auth:e,children:t,fallback:o=()=>ve(wo,{overlay:!0})}){let r=Pn(),n=N("user"),a=N("status"),{shouldRedirect:i,redirectTo:l,isChecking:c}=Rn({auth:e});return kn(()=>{i&&l&&(!n&&En()&&(To.setItem("dndev.auth.returnTo",window.location.pathname+window.location.search),To.setItem("dndev.auth.guardToast","1")),r(l,{replace:!0}))},[i,l,r,n]),e===!1?ve(ko,{children:t}):i||c?ve(wo,{overlay:!0}):a===An.INITIALIZING?ve(o,{}):ve(ko,{children:t})}function Nn(e){return N("can")?.navigate(e)??!1}var Bu=Nn;function Mu(){return N("user")?.role||Qe.GUEST}function Ou(e){return N("user")?.role===e}function zu(){let e=N("user"),t=N("userSubscription"),o=N("loading");return{authenticated:!!e,role:e?.role,tier:t?.tier||"free",loading:o,userId:e?.id}}function Vu(e,t){return r=>ve(In,{auth:t,children:ve(e,{...r})})}var Uu={public:()=>!1,required:()=>({required:!0}),user:()=>({required:!0,role:Qe.USER}),admin:()=>({required:!0,role:Qe.ADMIN}),tier:e=>({required:!0,tier:e}),pro:()=>({required:!0,tier:Pt.PRO}),premium:()=>({required:!0,tier:Pt.PREMIUM}),adminPro:()=>({required:!0,role:Qe.ADMIN,tier:Pt.PRO}),custom:e=>({required:!0,validate:e})};import{ArrowLeft as Xn,Lock as jn}from"lucide-react";import{Suspense as ea,lazy as ta}from"react";import{Card as oa,Button as ra,Separator as na,Stack as Pe,cn as aa}from"@donotdev/components";import{useTranslation as ia}from"@donotdev/core";import"@donotdev/core";import{useLocation as sa,useBack as la}from"@donotdev/ui/routing/hooks";import{Suspense as Zn}from"react";import{cn as Jn}from"@donotdev/components";import{Component as Ln}from"react";import{handleError as Fn}from"@donotdev/core";var It=class extends Ln{constructor(o){super(o);Ze(this,"resetError",()=>{this.setState({hasError:!1,error:null})});this.state={hasError:!1,error:null}}static getDerivedStateFromError(o){return{hasError:!0,error:o}}componentDidCatch(o,r){Fn(o,{userMessage:`A ${this.props.level||"component"} error occurred`,context:{errorInfo:r,component:"DnDevErrorBoundary",level:this.props.level||"component"},showNotification:!1})}render(){return this.state.hasError?this.props.fallback({error:this.state.error,resetError:this.resetError,componentStack:null,eventId:null}):this.props.children}},Ao=It;import{AlertTriangle as Dn,Home as Bn,ArrowLeft as Mn,RotateCw as On,Copy as zn,Check as Vn}from"lucide-react";import{useEffect as Un,useState as _n}from"react";import{Button as Xe,BUTTON_VARIANT as je,Card as Eo,CARD_VARIANT as Ro,Alert as Hn,ALERT_VARIANT as $n,Stack as Re}from"@donotdev/components";import{handleError as Gn,useTranslation as Wn}from"@donotdev/core";import{useLocation as Kn,useBack as Yn}from"@donotdev/ui/routing/hooks";import{jsx as H,jsxs as he}from"react/jsx-runtime";var qn=({error:e,resetError:t,componentStack:o,eventId:r})=>{let{t:n}=Wn("dndev"),[a,i]=_n(!1),l=Yn(),u=Kn()?.pathname||(typeof window<"u"?window.location.pathname:"/"),s=e instanceof Error?e.message:"Unknown error",d=e instanceof Error?e.stack:void 0,m=!1;Un(()=>{try{Gn(e,{userMessage:"Page encountered an error",context:{component:"RouteErrorFallback",location:u}})}catch{}},[e,u]);let f=async()=>{if(!d)return;let h=[`Error: ${s}`,`Timestamp: ${new Date().toISOString()}`,`User Agent: ${navigator.userAgent}`,r?`Event ID: ${r}`:null,`Path: ${u}`,"","Stack Trace:",d,o?`
1
+ "use client";import{a as W,b as Cn,c as N,d as Su,e as Cu,f as re,g as Co,h as xu}from"./chunk-MIPTBUWY.js";import{a as Ze}from"./chunk-O2XFH626.js";import{User as Qi}from"lucide-react";import{Suspense as $t,lazy as Zo,useState as Xi}from"react";import{Button as ji,BUTTON_VARIANT as Jo,DropdownMenu as es,Dialog as ts,DISPLAY as os}from"@donotdev/components";import{useTranslation as rs}from"@donotdev/core";import{useAuthConfig as ns}from"@donotdev/core";import{getEnabledAuthPartners as as}from"@donotdev/core";import{User as Pi,LogOut as Ii,Settings as ze,UserCheck as Ni,Trash2 as Li}from"lucide-react";import*as Fi from"lucide-react";import it,{useMemo as Di,lazy as Wo,Suspense as Go}from"react";import{Avatar as Bi,Button as Mi,BUTTON_VARIANT as Oi,DropdownMenu as zi,Text as Vi,DISPLAY as Ui}from"@donotdev/components";import{useTranslation as _i}from"@donotdev/core";import{getEnabledAuthPartners as Hi,useAuthConfig as $i,isClient as Gi}from"@donotdev/core";import{useBreakpoint as Wi}from"@donotdev/core";import{useNavigate as Ki}from"@donotdev/ui/routing/hooks";import{Link as Je}from"lucide-react";import"@donotdev/components";import{useConsent as xn}from"@donotdev/core";import{useNavigate as wn}from"@donotdev/ui/routing/hooks";import{Fragment as Tn,jsx as ue,jsxs as xo}from"react/jsx-runtime";var k=({path:e,replace:t,prefetch:o=!0,children:r,icon:n,iconEnd:a=!1,label:i,onClick:l,className:c,"aria-label":u,"aria-describedby":s,target:d,rel:m,...f})=>{let p=wn(),g=xn("showCookieBanner");if(e==="#cookie-settings")return xo("a",{href:"#cookie-settings",onClick:S=>{if(S.metaKey||S.ctrlKey||S.shiftKey||S.altKey||S.button!==0){l&&l(S);return}S.preventDefault(),S.stopPropagation();try{g()}catch{}l&&l(S)},className:c,style:{display:n&&(i||r)?"flex":void 0,alignItems:n&&(i||r)?"center":void 0,gap:n&&(i||r)?"var(--gap-sm)":void 0,...f.style},"aria-label":u||i||"Cookie Settings","aria-describedby":s,...f,children:[n&&!a&&ue(W,{icon:n,fallback:Je}),i&&ue("span",{children:i}),r,n&&a&&ue(W,{icon:n,fallback:Je})]});let h=e.startsWith("http://")||e.startsWith("https://")||e.startsWith("mailto:")||e.startsWith("tel:"),v=b=>{if(h){l&&l(b);return}if(b.metaKey||b.ctrlKey||b.shiftKey||b.altKey||b.button!==0){l&&l(b);return}b.preventDefault(),l&&l(b);let S=e.startsWith("/")||e.startsWith(".")?e:`/${e}`;p(S,{replace:t})},x={"aria-label":u||i,"aria-describedby":s},w=xo(Tn,{children:[n&&!a&&ue(W,{icon:n,fallback:Je}),i&&ue("span",{children:i}),r,n&&a&&ue(W,{icon:n,fallback:Je})]});return h?ue("a",{href:e,onClick:v,target:d||"_blank",rel:m||"noopener noreferrer",className:c,style:{display:n&&(i||r)?"flex":void 0,alignItems:n&&(i||r)?"center":void 0,gap:n&&(i||r)?"var(--gap-sm)":void 0},...x,...f,children:w}):ue("a",{href:e,onClick:v,className:c,style:{display:n&&(i||r)?"flex":void 0,alignItems:n&&(i||r)?"center":void 0,gap:n&&(i||r)?"var(--gap-sm)":void 0},...x,...f,children:w})};import{useEffect as kn}from"react";import{Spinner as wo}from"@donotdev/components";import{FEATURE_STATUS as An,USER_ROLES as Qe,SUBSCRIPTION_TIERS as Pt,isClient as En,safeSessionStorage as To}from"@donotdev/core";import{useRedirectGuard as Rn,useNavigate as Pn}from"@donotdev/ui/routing/hooks";import{Fragment as ko,jsx as ve}from"react/jsx-runtime";function In({auth:e,children:t,fallback:o=()=>ve(wo,{overlay:!0})}){let r=Pn(),n=N("user"),a=N("status"),{shouldRedirect:i,redirectTo:l,isChecking:c}=Rn({auth:e});return kn(()=>{i&&l&&(!n&&En()&&(To.setItem("dndev.auth.returnTo",window.location.pathname+window.location.search),To.setItem("dndev.auth.guardToast","1")),r(l,{replace:!0}))},[i,l,r,n]),e===!1?ve(ko,{children:t}):i||c?ve(wo,{overlay:!0}):a===An.INITIALIZING?ve(o,{}):ve(ko,{children:t})}function Nn(e){return N("can")?.navigate(e)??!1}var Mu=Nn;function Ou(){return N("user")?.role||Qe.GUEST}function zu(e){return N("user")?.role===e}function Vu(){let e=N("user"),t=N("userSubscription"),o=N("loading");return{authenticated:!!e,role:e?.role,tier:t?.tier||"free",loading:o,userId:e?.id}}function Uu(e,t){return r=>ve(In,{auth:t,children:ve(e,{...r})})}var _u={public:()=>!1,required:()=>({required:!0}),user:()=>({required:!0,role:Qe.USER}),admin:()=>({required:!0,role:Qe.ADMIN}),tier:e=>({required:!0,tier:e}),pro:()=>({required:!0,tier:Pt.PRO}),premium:()=>({required:!0,tier:Pt.PREMIUM}),adminPro:()=>({required:!0,role:Qe.ADMIN,tier:Pt.PRO}),custom:e=>({required:!0,validate:e})};import{ArrowLeft as Xn,Lock as jn}from"lucide-react";import{Suspense as ea,lazy as ta}from"react";import{Card as oa,Button as ra,Separator as na,Stack as Pe,cn as aa}from"@donotdev/components";import{useTranslation as ia}from"@donotdev/core";import"@donotdev/core";import{useLocation as sa,useBack as la}from"@donotdev/ui/routing/hooks";import{Suspense as Zn}from"react";import{cn as Jn}from"@donotdev/components";import{Component as Ln}from"react";import{handleError as Fn}from"@donotdev/core";var It=class extends Ln{constructor(o){super(o);Ze(this,"resetError",()=>{this.setState({hasError:!1,error:null})});this.state={hasError:!1,error:null}}static getDerivedStateFromError(o){return{hasError:!0,error:o}}componentDidCatch(o,r){Fn(o,{userMessage:`A ${this.props.level||"component"} error occurred`,context:{errorInfo:r,component:"DnDevErrorBoundary",level:this.props.level||"component"},showNotification:!1})}render(){return this.state.hasError?this.props.fallback({error:this.state.error,resetError:this.resetError,componentStack:null,eventId:null}):this.props.children}},Ao=It;import{AlertTriangle as Dn,Home as Bn,ArrowLeft as Mn,RotateCw as On,Copy as zn,Check as Vn}from"lucide-react";import{useEffect as Un,useState as _n}from"react";import{Button as Xe,BUTTON_VARIANT as je,Card as Eo,CARD_VARIANT as Ro,Alert as Hn,ALERT_VARIANT as $n,Stack as Re}from"@donotdev/components";import{handleError as Gn,useTranslation as Wn}from"@donotdev/core";import{useLocation as Kn,useBack as Yn}from"@donotdev/ui/routing/hooks";import{jsx as H,jsxs as he}from"react/jsx-runtime";var qn=({error:e,resetError:t,componentStack:o,eventId:r})=>{let{t:n}=Wn("dndev"),[a,i]=_n(!1),l=Yn(),u=Kn()?.pathname||(typeof window<"u"?window.location.pathname:"/"),s=e instanceof Error?e.message:"Unknown error",d=e instanceof Error?e.stack:void 0,m=!1;Un(()=>{try{Gn(e,{userMessage:"Page encountered an error",context:{component:"RouteErrorFallback",location:u}})}catch{}},[e,u]);let f=async()=>{if(!d)return;let h=[`Error: ${s}`,`Timestamp: ${new Date().toISOString()}`,`User Agent: ${navigator.userAgent}`,r?`Event ID: ${r}`:null,`Path: ${u}`,"","Stack Trace:",d,o?`
2
2
  Component Stack:`:null,o||null].filter(Boolean).join(`
3
- `);try{await navigator.clipboard.writeText(h),i(!0),setTimeout(()=>i(!1),2e3)}catch{}},p=()=>{try{t()}catch{typeof window<"u"&&window.location.reload()}},g=()=>{try{l()}catch{typeof window<"u"&&window.history.back()}};return H("div",{className:"dndev-container","data-variant":"standard","data-centered":"true",children:H(Eo,{variant:Ro.DEFAULT,elevated:!0,className:"dndev-w-full",style:{maxWidth:"65ch",margin:"0 auto"},children:he(Re,{gap:"large",align:"center",className:"dndev-text-center",children:[H(Re,{align:"center",justify:"center",style:{width:"5rem",height:"5rem",backgroundColor:"rgba(220, 38, 38, 0.1)",borderRadius:"50%",border:"1px solid var(--destructive)"},children:H(Dn,{style:{width:"2.5rem",height:"2.5rem",color:"var(--destructive)"},"aria-hidden":"true"})}),he(Re,{children:[H("h1",{className:"dndev-text-base","data-level":"h1",style:{fontSize:"var(--font-size-2xl)",fontWeight:"var(--font-weight-bold)",margin:0},children:n("routeError.title","Something went wrong")}),H("p",{className:"dndev-text-base",style:{fontSize:"var(--font-size-lg)",color:"var(--muted-foreground)",margin:0},children:n("routeError.description","We encountered an error while loading this page.")}),H(Hn,{variant:$n.INFO,hideIcon:!0,children:H("div",{style:{fontSize:"var(--font-size-sm)",textAlign:"center"},children:n("routeError.dataSafe","Don't worry, your data is safe.")})})]}),r&&he("code",{style:{padding:"var(--gap-sm) var(--gap-md)",background:"var(--muted)",borderRadius:"var(--radius-full)",fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",color:"var(--foreground)"},children:[n("routeError.errorId","Error ID"),": ",r]}),m&&s&&he(Eo,{variant:Ro.MUTED,className:"dndev-w-full",children:[he(Re,{direction:"row",align:"center",justify:"between",children:[H("span",{className:"dndev-text-base",style:{fontSize:"var(--font-size-sm)",fontWeight:"var(--font-weight-semibold)",color:"var(--destructive)"},children:"Error Message:"}),H(Xe,{variant:je.GHOST,icon:a?Vn:zn,onClick:f,disabled:a,children:a?n("routeError.copied","Copied"):n("routeError.copyDetails","Copy Details")})]}),H("pre",{style:{fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",wordBreak:"break-word",whiteSpace:"pre-wrap",color:"var(--foreground)",margin:0,marginTop:"var(--gap-sm)"},children:s})]}),he(Re,{className:"dndev-w-full",children:[H(Xe,{variant:je.DESTRUCTIVE,icon:On,onClick:p,fullWidth:!0,children:n("routeError.tryAgain","Try Again")}),he(Re,{direction:"row",justify:"center",children:[H(k,{path:"/",children:H(Xe,{variant:je.DEFAULT,icon:Bn,fullWidth:!0,children:n("routeError.goHome","Go Home")})}),H(Xe,{variant:je.OUTLINE,icon:Mn,onClick:g,fullWidth:!0,children:n("routeError.goBack","Go Back")})]})]}),H("p",{className:"dndev-text-base",style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)",margin:0},children:n("routeError.contactSupport","If the problem persists, please contact support.")})]})})})},Po=qn;import{jsx as Be}from"react/jsx-runtime";function Qn(e){return Be(Zn,{fallback:Be("div",{children:"Loading error fallback..."}),children:Be(Po,{...e})})}var et=({variant:e="standard",density:t,className:o,children:r,centered:n=!0,gapFirst:a=!1})=>Be(Ao,{level:"route",fallback:Qn,children:Be("div",{className:Jn("dndev-container",o),"data-variant":e,"data-density":t,"data-centered":n?"true":"false","data-gap-first":a?"true":void 0,children:r})});import{Fragment as da,jsx as M,jsxs as Me}from"react/jsx-runtime";var ca=ta(()=>import("@donotdev/auth").then(e=>({default:e.MultipleAuthProviders})));function yp({title:e,description:t,showBackButton:o=!0,onBack:r,className:n=""}){let{t:a}=ia(["auth","common"]),i=sa(),l=la(),c=()=>{r?r():l()};return M(et,{variant:"docs",children:M(Pe,{align:"center",justify:"center",className:aa("dndev-min-h-60",n),style:{paddingTop:"var(--gap-lg)",paddingBottom:"var(--gap-lg)"},children:M(oa,{className:"dndev-w-full",style:{maxWidth:"28rem",border:"none",boxShadow:"var(--shadow-xl)"},title:Me(Pe,{children:[M(Pe,{justify:"center",children:M("div",{style:{borderRadius:"9999px",backgroundColor:"color-mix(in oklab, var(--primary) 10%, transparent)",padding:"var(--gap-md)"},children:M(jn,{className:"dndev-size-touch",style:{color:"var(--primary)"}})})}),M("div",{style:{fontSize:"var(--font-size-2xl)",fontWeight:700},children:a("auth.fallback.title","Authentication Required")}),M("p",{style:{color:"var(--muted-foreground)"},children:a("auth.fallback.description","Please sign in to access this page")})]}),children:Me(Pe,{children:[Me(Pe,{gap:"large",children:[M("div",{children:M("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:a("auth.fallback.chooseProvider")})}),M(ea,{fallback:M("div",{children:"Loading providers..."}),children:M(ca,{layout:"vertical",spacing:"tight",fullWidth:!0,ariaLabel:a("auth.fallback.authOptions")})})]}),o&&Me(da,{children:[M(na,{}),M("div",{children:M(ra,{onClick:c,className:"dndev-gap-sm",icon:Xn,children:a("common.back")})})]}),Me(Pe,{gap:"tight",style:{fontSize:"var(--font-size-xs)",color:"var(--muted-foreground)"},children:[M("p",{children:a("auth.fallback.secure")}),M("p",{children:a("auth.fallback.terms")})]})]})})})})}import{useEffect as Io}from"react";import{useToast as ua}from"@donotdev/components";import{isClient as No,safeSessionStorage as tt,useTranslation as pa}from"@donotdev/core";import{useNavigate as ma}from"@donotdev/ui/routing/hooks";function fa(){let e=N("user"),t=ma(),{t:o}=pa("dndev"),{toast:r}=ua();return Io(()=>{!No()||!tt.getItem("dndev.auth.guardToast")||(tt.removeItem("dndev.auth.guardToast"),r("warning",o("guard.signInRequired","Please sign in to access this page")))},[]),Io(()=>{if(!e||!No())return;let n=tt.getItem("dndev.auth.returnTo");n&&(tt.removeItem("dndev.auth.returnTo"),n!==window.location.pathname&&t(n,{replace:!0}))},[e,t]),null}import{Search as ga}from"lucide-react";import{Button as va,BUTTON_VARIANT as ha,DISPLAY as ya}from"@donotdev/components";import{useOverlayStore as ba,useTranslation as Sa}from"@donotdev/core";import{jsx as Ca,jsxs as xa}from"react/jsx-runtime";var Ip=({display:e=ya.AUTO,className:t,onOpen:o})=>{let{t:r}=Sa("dndev"),n=ba(c=>c.openCommandDialog),i=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.userAgentData?.platform??navigator.platform)?"\u2318K":"Ctrl+K",l=()=>{n(),o?.()};return xa(va,{variant:ha.OUTLINE,display:e,icon:ga,onClick:l,className:t,"aria-label":r("goTo.ariaLabel","Go to page"),children:[r("goTo.label","Go to"),Ca("kbd",{style:{marginInlineStart:"var(--gap-sm)",padding:"0.125rem 0.375rem",fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",opacity:.5},children:i})]})};import{Suspense as wa,lazy as Ta}from"react";import{useEventListener as ka,useOverlayStore as Aa}from"@donotdev/core";import{jsx as Lo}from"react/jsx-runtime";var Ea=Ta(()=>import("./GoToDialog-CICRYHHG.js")),Ra=()=>{let e=Aa(t=>t.openCommandDialog);return ka("keydown",t=>{if((t.metaKey||t.ctrlKey)&&t.key==="k"){let o=t.target;if(o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable)return;t.preventDefault(),e()}},{target:typeof document<"u"?document:void 0,options:{passive:!1,capture:!1}}),Lo(wa,{fallback:null,children:Lo(Ea,{})})},Pa=Ra;import{Search as Ia}from"lucide-react";import{useEffect as Na,useState as La,useRef as Fa}from"react";import{Stack as Da}from"@donotdev/components";import{useOverlayStore as Nt}from"@donotdev/core";import{useTranslation as Ba}from"@donotdev/core";import{jsx as ot,jsxs as Va}from"react/jsx-runtime";var Ma=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.userAgent),Oa=()=>{let{t:e}=Ba("dndev"),[t,o]=La(""),r=Fa(null),n=Nt(l=>l.isCommandDialogOpen);return Na(()=>{n||o("")},[n]),Va(Da,{direction:"row",align:"center",className:"dndev-relative dndev-w-full dndev-max-w-sm",role:"search",children:[ot(Ia,{className:"dndev-absolute dndev-size-md",style:{insetInlineStart:"0.75rem",opacity:.5},"aria-hidden":"true"}),ot("input",{ref:r,type:"text",value:t,onChange:l=>o(l.target.value),onFocus:()=>{Nt.getState().openCommandDialog(t)},onKeyDown:l=>{l.key==="Enter"&&(l.preventDefault(),Nt.getState().openCommandDialog(t))},placeholder:e("globalGoTo.searchPlaceholder","Search pages..."),className:"dndev-input dndev-w-full",style:{paddingInlineStart:"2.5rem",paddingInlineEnd:"5rem"},"aria-label":e("globalGoTo.ariaLabel","Search navigation")}),ot("div",{className:"dndev-absolute dndev-flex dndev-items-center dndev-text-sm",style:{insetInlineEnd:"0.75rem",gap:"0.25rem",opacity:.5},"aria-hidden":"true",children:ot("kbd",{style:{padding:"0.25rem 0.5rem",fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",borderRadius:"var(--radius-sm)"},children:Ma?"\u2318K":"Ctrl+K"})})]})},za=Oa;import{MoreHorizontal as Ua,Link as Fo}from"lucide-react";import{useState as _a,useEffect as Do,useRef as Ha,useMemo as $a}from"react";import{NavigationMenu as Bo,NavigationMenuListPrimitive as Ga,NavigationMenuItemPrimitive as Mo,Button as Wa,DropdownMenu as Ka,cn as rt,DISPLAY as Ya}from"@donotdev/components";import{useTranslation as qa}from"@donotdev/core";import{jsx as j,jsxs as Lt}from"react/jsx-runtime";var Oo=({routes:e,vertical:t=!1,display:o=Ya.AUTO,overflowDetection:r=!1,showIcons:n=!0,className:a,style:i})=>{let{t:l}=qa("dndev"),c=re(),u=e??c,s=Ha(null),[d,m]=_a(u.length),f=$a(()=>u.map(p=>({label:p.label,path:p.path,icon:j(W,{icon:p.icon,fallback:Fo}),children:p.children?p.children.map(g=>({label:g.label,path:g.path,icon:j(W,{icon:g.icon,fallback:Fo})})):void 0})),[u]);if(Do(()=>{if(!r||u.length===0||t)return;let p=()=>{let h=s.current;if(!h)return;let v=h.getBoundingClientRect(),x=h.querySelectorAll("[data-nav-item]"),w=h.querySelector("[data-more-button]"),b=0,S=w?.offsetWidth||0;for(let I=0;I<x.length;I++){let F=x[I];if(!F)break;if(F.getBoundingClientRect().right-v.left+(I===x.length-1&&w?S:0)<=v.width)b=I+1;else break}m(Math.max(0,b))},g=new ResizeObserver(p);return s.current&&g.observe(s.current),setTimeout(p,0),()=>g.disconnect()},[r,u.length,t]),Do(()=>{r&&!t&&m(u.length)},[u.length,r,t]),u.length===0)return null;if(r&&!t){let p=Math.min(d,f.length),g=f.slice(0,p),h=f.slice(p);return j(Bo,{className:rt(a),style:i||{flex:1},children:Lt(Ga,{ref:s,"data-vertical":"false",style:{display:"flex",alignItems:"center",gap:"var(--gap-sm)",flexWrap:"nowrap",overflow:"hidden"},children:[g.filter(v=>v.path).map((v,x)=>j(Mo,{"data-nav-item":!0,children:Lt(k,{path:v.path,className:rt("dndev-interactive"),"data-role":"nav-trigger",children:[n&&v.icon,j("span",{className:"dndev-interactive-label",children:v.label})]})},v.path||x)),h.length>0&&j(Mo,{"data-more-button":!0,children:j(Ka,{trigger:j(Wa,{className:"dndev-size-touch",style:{flexShrink:0},"aria-label":l("navigation.more","More"),children:j(Ua,{className:"dndev-size-md"})}),items:h.filter(v=>v.path).map(v=>({label:v.label,children:Lt(k,{path:v.path,className:rt("dndev-interactive"),"data-role":"menu-item",children:[n&&v.icon,j("span",{className:"dndev-interactive-label",children:v.label})]}),asChild:!0})),contentWidth:"14rem",contentAlign:"end"})})]})})}return j(Bo,{items:f,vertical:t,display:o,className:rt(a,t&&"dndev-sidebar-nav-menu"),LinkComponent:k})};import{Home as Za,ArrowLeft as Ja,Link as Qa}from"lucide-react";import{useMemo as Xa}from"react";import{Button as Ft,BUTTON_VARIANT as Dt,Stack as Oe,Text as Bt}from"@donotdev/components";import{useTranslation as ja}from"@donotdev/core";import{useLocation as ei,useNavigate as ti}from"@donotdev/ui/routing/hooks";import{jsx as Z,jsxs as nt}from"react/jsx-runtime";function zo(){let{t:e}=ja("dndev"),t=ei(),o=ti(),r=re(),n=Xa(()=>r.filter(i=>!i.path.includes(":")&&i.path!=="/").slice(0,4),[r]),a=()=>{o("back")};return Z(et,{variant:"docs",centered:!0,children:nt(Oe,{gap:"large",align:"center",justify:"center",children:[nt(Oe,{align:"center",children:[Z(Bt,{level:"h1",style:{fontSize:"clamp(4rem, 12vw, 8rem)",fontWeight:"var(--font-weight-bold)",lineHeight:1,letterSpacing:"-0.02em",background:"linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",margin:0},children:"404"}),Z(Bt,{level:"h2",style:{fontSize:"var(--font-size-2xl)",fontWeight:"var(--font-weight-semibold)",margin:0},children:e("errors.notFound.title","Page Not Found")}),Z(Bt,{style:{fontSize:"var(--font-size-lg)",color:"var(--muted-foreground)",textAlign:"center",margin:0},children:e("errors.notFound.description","The page you're looking for doesn't exist or has been moved.")}),t.pathname&&Z("code",{style:{padding:"var(--gap-sm) var(--gap-md)",background:"var(--muted)",borderRadius:"var(--radius-md)",fontSize:"var(--font-size-sm)",fontFamily:"var(--font-mono)",color:"var(--foreground)",wordBreak:"break-all",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",border:"1px solid var(--border-hairline)"},children:t.pathname})]}),n.length>0&&nt(Oe,{align:"center",children:[Z("p",{className:"dndev-text-base",style:{fontSize:"var(--font-size-md)",fontWeight:"var(--font-weight-semibold)",margin:0,color:"var(--muted-foreground)"},children:e("errors.notFound.suggestions","You might be looking for:")}),Z(Oe,{direction:"row",wrap:"wrap",justify:"center",gap:"tight",children:n.map(i=>Z(k,{path:i.path,replace:!0,children:Z(Ft,{variant:Dt.OUTLINE,icon:Z(W,{icon:i.icon,fallback:Qa}),"aria-label":e("errors.notFound.navigateTo",`Navigate to ${i.label}`,{label:i.label}),children:i.label})},i.path))})]}),nt(Oe,{direction:"row",wrap:"wrap",justify:"center",children:[Z(k,{path:"/",replace:!0,children:Z(Ft,{variant:Dt.DEFAULT,icon:Za,"aria-label":e("errors.notFound.goHome","Go to home page"),children:e("errors.notFound.goHome","Go Home")})}),Z(Ft,{variant:Dt.OUTLINE,icon:Ja,onClick:a,"aria-label":e("errors.notFound.goBack","Go back to previous page"),children:e("errors.notFound.goBack","Go Back")})]})]})})}import{useNavigate as Ie,useBack as Cm,useRefresh as xm,usePrefetch as wm,useLocation as Tm,useParams as km,useRouteParam as Am,useSearchParams as Em,useMatch as Rm,useQueryParams as Pm,useRedirectGuard as Im}from"@donotdev/ui/routing/hooks";import{getDndevConfig as Mt,isClient as ye,isDev as Vo}from"@donotdev/core";var K=class{static getBrowserSupport(){if(!ye())return{svg:!0,webp:!1,avif:!1};let t=this.cache.get("browser-support");if(t)return t;let o={svg:!0,webp:!1,avif:!1};try{let r=document.createElement("canvas");r.width=1,r.height=1,o.webp=r.toDataURL("image/webp").indexOf("data:image/webp")===0}catch{o.webp=!1}try{let r=document.createElement("canvas");r.width=1,r.height=1,o.avif=r.toDataURL("image/avif").indexOf("data:image/avif")===0}catch{o.avif=!1}return this.cache.set("browser-support",o),o}static extractStringValues(t){let o=[];if(t==null)return o;if(typeof t=="string")o.push(t);else if(Array.isArray(t))for(let r of t)o.push(...this.extractStringValues(r));else if(typeof t=="object")for(let r of Object.values(t))o.push(...this.extractStringValues(r));return o}static assetExists(t){if(!ye())return!1;let o=this.getAssetManifest();return o?this.extractStringValues(o).includes(t):!1}static getAssetManifest(){return ye()&&Mt()?.assets?.mapping||null}static getLogoSvgContent(){return Mt()?.assets?.logoSvgContent||null}static resolveLogo(t){if(t)return t;let o="logo";if(this.cache.has(o))return this.cache.get(o);let n=this.getAssetManifest()?.logo?.optimal||"/logo.svg";return this.cache.set(o,n),n}static directAssetCheck(t){if(!ye())return!1;try{let o=new Image;return o.src=t,!0}catch{return!1}}static resolveFaviconSet(){let t="favicon-set";if(this.cache.has(t))return this.cache.get(t);let o=this.getAssetManifest();if(o?.favicon?.set){let a=o.favicon.set,i=this.assetExists("/icon-512x512.png")?"/icon-512x512.png":this.assetExists("/icon-192x192.png")?"/icon-192x192.png":"/logo.svg",l={svg:a.svg||"/favicon.svg",ico:a.ico||"/favicon.ico",png16:a.png16||i,png32:a.png32||i,apple180:a.apple180||i,android192:a.android192||i,android512:a.android512||i};return this.cache.set(t,l),l}let r=this.assetExists("/icon-512x512.png")?"/icon-512x512.png":this.assetExists("/icon-192x192.png")?"/icon-192x192.png":"/logo.svg",n={svg:this.assetExists("/favicon.svg")?"/favicon.svg":"/logo.svg",ico:this.assetExists("/favicon.ico")?"/favicon.ico":"/favicon.svg",png16:this.assetExists("/favicon-16x16.png")?"/favicon-16x16.png":r,png32:this.assetExists("/favicon-32x32.png")?"/favicon-32x32.png":r,apple180:this.assetExists("/apple-touch-icon.png")?"/apple-touch-icon.png":r,android192:this.assetExists("/icon-192x192.png")?"/icon-192x192.png":r,android512:this.assetExists("/icon-512x512.png")?"/icon-512x512.png":r};return this.cache.set(t,n),n}static resolveFavicon(){let t=this.getAssetManifest();if(t?.favicon?.optimal)return t.favicon.optimal;let o=["/favicon.svg","/favicon.ico","/favicon.png","/logo.svg"];for(let r of o)if(this.assetExists(r))return r;return"/favicon.svg"}static clearCache(){this.cache.clear(),Vo()&&ye()}static getDebugInfo(){return{browserSupport:this.getBrowserSupport(),detectedAssets:ye()?Mt()?.assets?.mapping:null,assetManifest:this.getAssetManifest(),cache:Object.fromEntries(this.cache)}}};Ze(K,"cache",new Map);function Dm(e){return K.resolveLogo(e)}function Bm(){return K.resolveFaviconSet()}Vo()&&(K.clearCache(),ye()&&window.addEventListener("DOMContentLoaded",()=>{K.clearCache()}));import*as oi from"@donotdev/crud";var Uo={forms:{},startSubmit:()=>{},setUploading:()=>{},setValidating:()=>{},setSubmitting:()=>{},setSuccess:()=>{},setError:()=>{},reset:()=>{},cleanup:()=>{},setIsDirty:(e,t)=>{},hasDirtyForms:()=>!1,getDirtyFormIds:()=>[],getStatus:()=>"idle",isLoading:()=>!1,getUploadProgress:()=>0,getError:()=>null,getIsDirty:()=>!1},Ne=oi?.useFormStore,zm=typeof Ne=="function";function ri(e){return Ne?Ne(e):e(Uo)}ri.getState=()=>Ne&&typeof Ne.getState=="function"?Ne.getState():Uo;import{useMemo as ni}from"react";function at(){let e=N("status"),t=N("isAvailable"),o=N("user");return ni(()=>({shouldHide:e!=="ready"||!t,isLoading:e==="initializing",isReady:e==="ready"&&t,isAuthenticated:!!o}),[e,t,o])}import*as ai from"@donotdev/billing";import{DEGRADED_BILLING_API as ii}from"@donotdev/core";var Ot=ai?.useStripeBilling;function si(e){return ii[e]}function zt(e,t){return Ot?Ot(e,t):si(e)}var Gm=typeof Ot=="function";function qm(){let e=N("user"),t=N("status"),o={user:e,status:t},r=zt("status",o),n=zt("isAvailable",o);return{shouldHide:!n,isLoading:r==="initializing",isReady:n&&r==="ready"}}import{DEGRADED_CRUD_API as li}from"@donotdev/core";import*as ci from"@donotdev/crud";var Vt=ci?.useCrud;function di(){return li}function Qm(e,t={}){return Vt?Vt(e,t):di()}var Xm=typeof Vt=="function";import{DEGRADED_OAUTH_API as ui}from"@donotdev/core";import*as pi from"@donotdev/oauth";var Ut=pi?.useOAuth;function mi(e){return ui[e]}function tf(e){return Ut?Ut(e):mi(e)}var of=typeof Ut=="function";import{CheckCircle as fi}from"lucide-react";import{List as gi}from"@donotdev/components";import{translateArray as vi}from"@donotdev/core";import{jsx as _o}from"react/jsx-runtime";var hi=fi,yi=16;function lf(e,t,o,r=hi,n=yi){let a=r;return _o(gi,{icon:a?_o(a,{size:n}):void 0,items:vi(e,t,o),style:{listStyle:"none",paddingInlineStart:0}})}var bi=/<script[\s\S]*?<\/script>/gi,Si=/<foreignObject[\s\S]*?<\/foreignObject>/gi,Ci=/\s+on\w+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,xi=/\s+(?:xlink:)?href\s*=\s*["']\s*javascript:[^"']*["']/gi,wi=/\s+(?:xlink:)?href\s*=\s*["']\s*data:(?!image\/(?:png|jpe?g|gif|webp|svg\+xml))[^"']*["']/gi;function Le(e){return e.replace(bi,"").replace(Si,"").replace(Ci,"").replace(xi,"").replace(wi,"")}import{Helmet as Ti}from"react-helmet-async";import{isNextJs as ki}from"@donotdev/core";import{Fragment as Ho,jsx as _t}from"react/jsx-runtime";function $o({children:e}){return typeof document>"u"?_t(Ho,{children:e}):ki()?_t(Ho,{children:e}):_t(Ti,{children:e})}import{useAppConfig as Ai}from"@donotdev/core";import{jsx as $,jsxs as Ri}from"react/jsx-runtime";function Ei({title:e,fullTitle:t,description:o,image:r,type:n="website",keywords:a,noindex:i,canonicalUrl:l,publishDate:c,modifiedDate:u}){let s=Ai("name")||"",d=t||(e?`${e} | ${s}`:s),m=[];if(o&&m.push($("meta",{name:"description",content:o},"description"),$("meta",{property:"og:description",content:o},"og:description"),$("meta",{name:"twitter:description",content:o},"twitter:description")),r&&m.push($("meta",{property:"og:image",content:r},"og:image"),$("meta",{name:"twitter:image",content:r},"twitter:image"),$("meta",{name:"twitter:card",content:"summary_large_image"},"twitter:card")),n&&m.push($("meta",{property:"og:type",content:n},"og:type")),a&&a.length>0){let f=Array.isArray(a)?a.join(", "):a;m.push($("meta",{name:"keywords",content:f},"keywords"))}return i&&m.push($("meta",{name:"robots",content:"noindex, nofollow"},"robots")),n==="article"&&(c&&m.push($("meta",{property:"article:published_time",content:c},"article:published_time")),u&&m.push($("meta",{property:"article:modified_time",content:u},"article:modified_time"))),m.push($("meta",{property:"og:title",content:d},"og:title"),$("meta",{name:"twitter:title",content:d},"twitter:title")),Ri($o,{children:[$("title",{children:d}),l&&$("link",{rel:"canonical",href:l}),m]})}function yf(e){return e===null?()=>null:()=>$(Ei,{...e})}import{Fragment as Zi,jsx as pe,jsxs as Ji}from"react/jsx-runtime";var Ko=()=>null,Yi=Wo(async()=>{try{return{default:(await import("@donotdev/auth")).ReauthDialog}}catch{return{default:Ko}}}),qi=Wo(async()=>{try{return{default:(await import("@donotdev/auth")).ConfirmDeleteDialog}}catch{return{default:Ko}}}),Yo=()=>{let[e]=it.useState(!1),[t]=it.useState(!1),[o]=it.useState(!1),[r]=it.useState(null);return{showConfirmDialog:e,showPasswordDialog:t,isDeleting:o,error:r,startDeleteFlow:()=>{},confirmDelete:async()=>{},cancel:()=>{}}};Gi()&&import("@donotdev/auth").then(e=>{Yo=e.useDeleteAccount}).catch(e=>{});var st=e=>{if(!e)return ze;if(typeof e=="function")return e;let t=e.replace(/['"]/g,""),o=Fi[t];return o||ze},Ht=({loginPath:e,display:t=Ui.AUTO,"no-tooltip":o=!1,customItems:r=[],className:n,style:a})=>{let{t:i}=_i("dndev"),{shouldHide:l,isReady:c,isAuthenticated:u}=at(),s=$i(),d=N("user"),m=N("signOut"),f=Wi("isLaptop"),p=re(),g=Ki(),h=s.profilePath,v=s.authMenuItems||[],x=d?.role,w=Yo(),b=()=>d&&(d.displayName||d.email?.split("@")[0])||"User",S=()=>b().split(" ").map(y=>y.charAt(0)).slice(0,2).join("").toUpperCase(),I=()=>{if(!d)return i("auth.userMenu",{defaultValue:"User menu"});let T=[b()];return d.email&&T.push(d.email),x&&x!=="guest"&&T.push(`Role: ${x}`),T.join(`
3
+ `);try{await navigator.clipboard.writeText(h),i(!0),setTimeout(()=>i(!1),2e3)}catch{}},p=()=>{try{t()}catch{typeof window<"u"&&window.location.reload()}},g=()=>{try{l()}catch{typeof window<"u"&&window.history.back()}};return H("div",{className:"dndev-container","data-variant":"standard","data-centered":"true",children:H(Eo,{variant:Ro.DEFAULT,elevated:!0,className:"dndev-w-full",style:{maxWidth:"65ch",margin:"0 auto"},children:he(Re,{gap:"large",align:"center",className:"dndev-text-center",children:[H(Re,{align:"center",justify:"center",style:{width:"5rem",height:"5rem",backgroundColor:"rgba(220, 38, 38, 0.1)",borderRadius:"50%",border:"1px solid var(--destructive)"},children:H(Dn,{style:{width:"2.5rem",height:"2.5rem",color:"var(--destructive)"},"aria-hidden":"true"})}),he(Re,{children:[H("h1",{className:"dndev-text-base","data-level":"h1",style:{fontSize:"var(--font-size-2xl)",fontWeight:"var(--font-weight-bold)",margin:0},children:n("routeError.title","Something went wrong")}),H("p",{className:"dndev-text-base",style:{fontSize:"var(--font-size-lg)",color:"var(--muted-foreground)",margin:0},children:n("routeError.description","We encountered an error while loading this page.")}),H(Hn,{variant:$n.INFO,hideIcon:!0,children:H("div",{style:{fontSize:"var(--font-size-sm)",textAlign:"center"},children:n("routeError.dataSafe","Don't worry, your data is safe.")})})]}),r&&he("code",{style:{padding:"var(--gap-sm) var(--gap-md)",background:"var(--muted)",borderRadius:"var(--radius-full)",fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",color:"var(--foreground)"},children:[n("routeError.errorId","Error ID"),": ",r]}),m&&s&&he(Eo,{variant:Ro.MUTED,className:"dndev-w-full",children:[he(Re,{direction:"row",align:"center",justify:"between",children:[H("span",{className:"dndev-text-base",style:{fontSize:"var(--font-size-sm)",fontWeight:"var(--font-weight-semibold)",color:"var(--destructive)"},children:"Error Message:"}),H(Xe,{variant:je.GHOST,icon:a?Vn:zn,onClick:f,disabled:a,children:a?n("routeError.copied","Copied"):n("routeError.copyDetails","Copy Details")})]}),H("pre",{style:{fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",wordBreak:"break-word",whiteSpace:"pre-wrap",color:"var(--foreground)",margin:0,marginTop:"var(--gap-sm)"},children:s})]}),he(Re,{className:"dndev-w-full",children:[H(Xe,{variant:je.DESTRUCTIVE,icon:On,onClick:p,fullWidth:!0,children:n("routeError.tryAgain","Try Again")}),he(Re,{direction:"row",justify:"center",children:[H(k,{path:"/",children:H(Xe,{variant:je.DEFAULT,icon:Bn,fullWidth:!0,children:n("routeError.goHome","Go Home")})}),H(Xe,{variant:je.OUTLINE,icon:Mn,onClick:g,fullWidth:!0,children:n("routeError.goBack","Go Back")})]})]}),H("p",{className:"dndev-text-base",style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)",margin:0},children:n("routeError.contactSupport","If the problem persists, please contact support.")})]})})})},Po=qn;import{jsx as Be}from"react/jsx-runtime";function Qn(e){return Be(Zn,{fallback:Be("div",{children:"Loading error fallback..."}),children:Be(Po,{...e})})}var et=({variant:e="standard",density:t,className:o,children:r,centered:n=!0,gapFirst:a=!1})=>Be(Ao,{level:"route",fallback:Qn,children:Be("div",{className:Jn("dndev-container",o),"data-variant":e,"data-density":t,"data-centered":n?"true":"false","data-gap-first":a?"true":void 0,children:r})});import{Fragment as da,jsx as M,jsxs as Me}from"react/jsx-runtime";var ca=ta(()=>import("@donotdev/auth").then(e=>({default:e.MultipleAuthProviders})));function bp({title:e,description:t,showBackButton:o=!0,onBack:r,className:n=""}){let{t:a}=ia(["auth","common"]),i=sa(),l=la(),c=()=>{r?r():l()};return M(et,{variant:"docs",children:M(Pe,{align:"center",justify:"center",className:aa("dndev-min-h-60",n),style:{paddingTop:"var(--gap-lg)",paddingBottom:"var(--gap-lg)"},children:M(oa,{className:"dndev-w-full",style:{maxWidth:"28rem",border:"none",boxShadow:"var(--shadow-xl)"},title:Me(Pe,{children:[M(Pe,{justify:"center",children:M("div",{style:{borderRadius:"9999px",backgroundColor:"color-mix(in oklab, var(--primary) 10%, transparent)",padding:"var(--gap-md)"},children:M(jn,{className:"dndev-size-touch",style:{color:"var(--primary)"}})})}),M("div",{style:{fontSize:"var(--font-size-2xl)",fontWeight:700},children:a("auth.fallback.title","Authentication Required")}),M("p",{style:{color:"var(--muted-foreground)"},children:a("auth.fallback.description","Please sign in to access this page")})]}),children:Me(Pe,{children:[Me(Pe,{gap:"large",children:[M("div",{children:M("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:a("auth.fallback.chooseProvider")})}),M(ea,{fallback:M("div",{children:"Loading providers..."}),children:M(ca,{layout:"vertical",spacing:"tight",fullWidth:!0,ariaLabel:a("auth.fallback.authOptions")})})]}),o&&Me(da,{children:[M(na,{}),M("div",{children:M(ra,{onClick:c,className:"dndev-gap-sm",icon:Xn,children:a("common.back")})})]}),Me(Pe,{gap:"tight",style:{fontSize:"var(--font-size-xs)",color:"var(--muted-foreground)"},children:[M("p",{children:a("auth.fallback.secure")}),M("p",{children:a("auth.fallback.terms")})]})]})})})})}import{useEffect as Io}from"react";import{useToast as ua}from"@donotdev/components";import{isClient as No,safeSessionStorage as tt,useTranslation as pa}from"@donotdev/core";import{useNavigate as ma}from"@donotdev/ui/routing/hooks";function fa(){let e=N("user"),t=ma(),{t:o}=pa("dndev"),{toast:r}=ua();return Io(()=>{!No()||!tt.getItem("dndev.auth.guardToast")||(tt.removeItem("dndev.auth.guardToast"),r("warning",o("guard.signInRequired","Please sign in to access this page")))},[]),Io(()=>{if(!e||!No())return;let n=tt.getItem("dndev.auth.returnTo");n&&(tt.removeItem("dndev.auth.returnTo"),n!==window.location.pathname&&t(n,{replace:!0}))},[e,t]),null}import{Search as ga}from"lucide-react";import{Button as va,BUTTON_VARIANT as ha,DISPLAY as ya}from"@donotdev/components";import{useOverlayStore as ba,useTranslation as Sa}from"@donotdev/core";import{jsx as Ca,jsxs as xa}from"react/jsx-runtime";var Np=({display:e=ya.AUTO,className:t,onOpen:o})=>{let{t:r}=Sa("dndev"),n=ba(c=>c.openCommandDialog),i=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.userAgentData?.platform??navigator.platform)?"\u2318K":"Ctrl+K",l=()=>{n(),o?.()};return xa(va,{variant:ha.OUTLINE,display:e,icon:ga,onClick:l,className:t,"aria-label":r("goTo.ariaLabel","Go to page"),children:[r("goTo.label","Go to"),Ca("kbd",{style:{marginInlineStart:"var(--gap-sm)",padding:"0.125rem 0.375rem",fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",opacity:.5},children:i})]})};import{Suspense as wa,lazy as Ta}from"react";import{useEventListener as ka,useOverlayStore as Aa}from"@donotdev/core";import{jsx as Lo}from"react/jsx-runtime";var Ea=Ta(()=>import("./GoToDialog-CICRYHHG.js")),Ra=()=>{let e=Aa(t=>t.openCommandDialog);return ka("keydown",t=>{if((t.metaKey||t.ctrlKey)&&t.key==="k"){let o=t.target;if(o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable)return;t.preventDefault(),e()}},{target:typeof document<"u"?document:void 0,options:{passive:!1,capture:!1}}),Lo(wa,{fallback:null,children:Lo(Ea,{})})},Pa=Ra;import{Search as Ia}from"lucide-react";import{useEffect as Na,useState as La,useRef as Fa}from"react";import{Stack as Da}from"@donotdev/components";import{useOverlayStore as Nt}from"@donotdev/core";import{useTranslation as Ba}from"@donotdev/core";import{jsx as ot,jsxs as Va}from"react/jsx-runtime";var Ma=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.userAgent),Oa=()=>{let{t:e}=Ba("dndev"),[t,o]=La(""),r=Fa(null),n=Nt(l=>l.isCommandDialogOpen);return Na(()=>{n||o("")},[n]),Va(Da,{direction:"row",align:"center",className:"dndev-relative dndev-w-full dndev-max-w-sm",role:"search",children:[ot(Ia,{className:"dndev-absolute dndev-size-md",style:{insetInlineStart:"0.75rem",opacity:.5},"aria-hidden":"true"}),ot("input",{ref:r,type:"text",value:t,onChange:l=>o(l.target.value),onFocus:()=>{Nt.getState().openCommandDialog(t)},onKeyDown:l=>{l.key==="Enter"&&(l.preventDefault(),Nt.getState().openCommandDialog(t))},placeholder:e("globalGoTo.searchPlaceholder","Search pages..."),className:"dndev-input dndev-w-full",style:{paddingInlineStart:"2.5rem",paddingInlineEnd:"5rem"},"aria-label":e("globalGoTo.ariaLabel","Search navigation")}),ot("div",{className:"dndev-absolute dndev-flex dndev-items-center dndev-text-sm",style:{insetInlineEnd:"0.75rem",gap:"0.25rem",opacity:.5},"aria-hidden":"true",children:ot("kbd",{style:{padding:"0.25rem 0.5rem",fontSize:"var(--font-size-xs)",fontFamily:"var(--font-mono)",borderRadius:"var(--radius-sm)"},children:Ma?"\u2318K":"Ctrl+K"})})]})},za=Oa;import{MoreHorizontal as Ua,Link as Fo}from"lucide-react";import{useState as _a,useEffect as Do,useRef as Ha,useMemo as $a}from"react";import{NavigationMenu as Bo,NavigationMenuListPrimitive as Ga,NavigationMenuItemPrimitive as Mo,Button as Wa,DropdownMenu as Ka,cn as rt,DISPLAY as Ya}from"@donotdev/components";import{useTranslation as qa}from"@donotdev/core";import{jsx as ee,jsxs as Lt}from"react/jsx-runtime";var Oo=({routes:e,vertical:t=!1,display:o=Ya.AUTO,overflowDetection:r=!1,showIcons:n=!0,className:a,style:i})=>{let{t:l}=qa("dndev"),c=re(),u=e??c,s=Ha(null),[d,m]=_a(u.length),f=$a(()=>u.map(p=>({label:p.label,path:p.path,icon:ee(W,{icon:p.icon,fallback:Fo}),children:p.children?p.children.map(g=>({label:g.label,path:g.path,icon:ee(W,{icon:g.icon,fallback:Fo})})):void 0})),[u]);if(Do(()=>{if(!r||u.length===0||t)return;let p=()=>{let h=s.current;if(!h)return;let v=h.getBoundingClientRect(),x=h.querySelectorAll("[data-nav-item]"),w=h.querySelector("[data-more-button]"),b=0,S=w?.offsetWidth||0;for(let I=0;I<x.length;I++){let F=x[I];if(!F)break;if(F.getBoundingClientRect().right-v.left+(I===x.length-1&&w?S:0)<=v.width)b=I+1;else break}m(Math.max(0,b))},g=new ResizeObserver(p);return s.current&&g.observe(s.current),setTimeout(p,0),()=>g.disconnect()},[r,u.length,t]),Do(()=>{r&&!t&&m(u.length)},[u.length,r,t]),u.length===0)return null;if(r&&!t){let p=Math.min(d,f.length),g=f.slice(0,p),h=f.slice(p);return ee(Bo,{className:rt(a),style:i||{flex:1},children:Lt(Ga,{ref:s,"data-vertical":"false",style:{display:"flex",alignItems:"center",gap:"var(--gap-sm)",flexWrap:"nowrap",overflow:"hidden"},children:[g.filter(v=>v.path).map((v,x)=>ee(Mo,{"data-nav-item":!0,children:Lt(k,{path:v.path,className:rt("dndev-interactive"),"data-role":"nav-trigger",children:[n&&v.icon,ee("span",{className:"dndev-interactive-label",children:v.label})]})},v.path||x)),h.length>0&&ee(Mo,{"data-more-button":!0,children:ee(Ka,{trigger:ee(Wa,{className:"dndev-size-touch",style:{flexShrink:0},"aria-label":l("navigation.more","More"),children:ee(Ua,{className:"dndev-size-md"})}),items:h.filter(v=>v.path).map(v=>({label:v.label,children:Lt(k,{path:v.path,className:rt("dndev-interactive"),"data-role":"menu-item",children:[n&&v.icon,ee("span",{className:"dndev-interactive-label",children:v.label})]}),asChild:!0})),contentWidth:"14rem",contentAlign:"end"})})]})})}return ee(Bo,{items:f,vertical:t,display:o,className:rt(a,t&&"dndev-sidebar-nav-menu"),LinkComponent:k})};import{Home as Za,ArrowLeft as Ja,Link as Qa}from"lucide-react";import{useMemo as Xa}from"react";import{Button as Ft,BUTTON_VARIANT as Dt,Stack as Oe,Text as Bt}from"@donotdev/components";import{useTranslation as ja}from"@donotdev/core";import{useLocation as ei,useNavigate as ti}from"@donotdev/ui/routing/hooks";import{jsx as J,jsxs as nt}from"react/jsx-runtime";function zo(){let{t:e}=ja("dndev"),t=ei(),o=ti(),r=re(),n=Xa(()=>r.filter(i=>!i.path.includes(":")&&i.path!=="/").slice(0,4),[r]),a=()=>{o("back")};return J(et,{variant:"docs",centered:!0,children:nt(Oe,{gap:"large",align:"center",justify:"center",children:[nt(Oe,{align:"center",children:[J(Bt,{level:"h1",style:{fontSize:"clamp(4rem, 12vw, 8rem)",fontWeight:"var(--font-weight-bold)",lineHeight:1,letterSpacing:"-0.02em",background:"linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",margin:0},children:"404"}),J(Bt,{level:"h2",style:{fontSize:"var(--font-size-2xl)",fontWeight:"var(--font-weight-semibold)",margin:0},children:e("errors.notFound.title","Page Not Found")}),J(Bt,{style:{fontSize:"var(--font-size-lg)",color:"var(--muted-foreground)",textAlign:"center",margin:0},children:e("errors.notFound.description","The page you're looking for doesn't exist or has been moved.")}),t.pathname&&J("code",{style:{padding:"var(--gap-sm) var(--gap-md)",background:"var(--muted)",borderRadius:"var(--radius-md)",fontSize:"var(--font-size-sm)",fontFamily:"var(--font-mono)",color:"var(--foreground)",wordBreak:"break-all",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",border:"1px solid var(--border-hairline)"},children:t.pathname})]}),n.length>0&&nt(Oe,{align:"center",children:[J("p",{className:"dndev-text-base",style:{fontSize:"var(--font-size-md)",fontWeight:"var(--font-weight-semibold)",margin:0,color:"var(--muted-foreground)"},children:e("errors.notFound.suggestions","You might be looking for:")}),J(Oe,{direction:"row",wrap:"wrap",justify:"center",gap:"tight",children:n.map(i=>J(k,{path:i.path,replace:!0,children:J(Ft,{variant:Dt.OUTLINE,icon:J(W,{icon:i.icon,fallback:Qa}),"aria-label":e("errors.notFound.navigateTo",`Navigate to ${i.label}`,{label:i.label}),children:i.label})},i.path))})]}),nt(Oe,{direction:"row",wrap:"wrap",justify:"center",children:[J(k,{path:"/",replace:!0,children:J(Ft,{variant:Dt.DEFAULT,icon:Za,"aria-label":e("errors.notFound.goHome","Go to home page"),children:e("errors.notFound.goHome","Go Home")})}),J(Ft,{variant:Dt.OUTLINE,icon:Ja,onClick:a,"aria-label":e("errors.notFound.goBack","Go back to previous page"),children:e("errors.notFound.goBack","Go Back")})]})]})})}import{useNavigate as Ie,useBack as xm,useRefresh as wm,usePrefetch as Tm,useLocation as km,useParams as Am,useRouteParam as Em,useSearchParams as Rm,useMatch as Pm,useQueryParams as Im,useRedirectGuard as Nm}from"@donotdev/ui/routing/hooks";import{getDndevConfig as Mt,isClient as ye,isDev as Vo}from"@donotdev/core";var K=class{static getBrowserSupport(){if(!ye())return{svg:!0,webp:!1,avif:!1};let t=this.cache.get("browser-support");if(t)return t;let o={svg:!0,webp:!1,avif:!1};try{let r=document.createElement("canvas");r.width=1,r.height=1,o.webp=r.toDataURL("image/webp").indexOf("data:image/webp")===0}catch{o.webp=!1}try{let r=document.createElement("canvas");r.width=1,r.height=1,o.avif=r.toDataURL("image/avif").indexOf("data:image/avif")===0}catch{o.avif=!1}return this.cache.set("browser-support",o),o}static extractStringValues(t){let o=[];if(t==null)return o;if(typeof t=="string")o.push(t);else if(Array.isArray(t))for(let r of t)o.push(...this.extractStringValues(r));else if(typeof t=="object")for(let r of Object.values(t))o.push(...this.extractStringValues(r));return o}static assetExists(t){if(!ye())return!1;let o=this.getAssetManifest();return o?this.extractStringValues(o).includes(t):!1}static getAssetManifest(){return ye()&&Mt()?.assets?.mapping||null}static getLogoSvgContent(){return Mt()?.assets?.logoSvgContent||null}static resolveLogo(t){if(t)return t;let o="logo";if(this.cache.has(o))return this.cache.get(o);let n=this.getAssetManifest()?.logo?.optimal||"/logo.svg";return this.cache.set(o,n),n}static directAssetCheck(t){if(!ye())return!1;try{let o=new Image;return o.src=t,!0}catch{return!1}}static resolveFaviconSet(){let t="favicon-set";if(this.cache.has(t))return this.cache.get(t);let o=this.getAssetManifest();if(o?.favicon?.set){let a=o.favicon.set,i=this.assetExists("/icon-512x512.png")?"/icon-512x512.png":this.assetExists("/icon-192x192.png")?"/icon-192x192.png":"/logo.svg",l={svg:a.svg||"/favicon.svg",ico:a.ico||"/favicon.ico",png16:a.png16||i,png32:a.png32||i,apple180:a.apple180||i,android192:a.android192||i,android512:a.android512||i};return this.cache.set(t,l),l}let r=this.assetExists("/icon-512x512.png")?"/icon-512x512.png":this.assetExists("/icon-192x192.png")?"/icon-192x192.png":"/logo.svg",n={svg:this.assetExists("/favicon.svg")?"/favicon.svg":"/logo.svg",ico:this.assetExists("/favicon.ico")?"/favicon.ico":"/favicon.svg",png16:this.assetExists("/favicon-16x16.png")?"/favicon-16x16.png":r,png32:this.assetExists("/favicon-32x32.png")?"/favicon-32x32.png":r,apple180:this.assetExists("/apple-touch-icon.png")?"/apple-touch-icon.png":r,android192:this.assetExists("/icon-192x192.png")?"/icon-192x192.png":r,android512:this.assetExists("/icon-512x512.png")?"/icon-512x512.png":r};return this.cache.set(t,n),n}static resolveFavicon(){let t=this.getAssetManifest();if(t?.favicon?.optimal)return t.favicon.optimal;let o=["/favicon.svg","/favicon.ico","/favicon.png","/logo.svg"];for(let r of o)if(this.assetExists(r))return r;return"/favicon.svg"}static clearCache(){this.cache.clear(),Vo()&&ye()}static getDebugInfo(){return{browserSupport:this.getBrowserSupport(),detectedAssets:ye()?Mt()?.assets?.mapping:null,assetManifest:this.getAssetManifest(),cache:Object.fromEntries(this.cache)}}};Ze(K,"cache",new Map);function Bm(e){return K.resolveLogo(e)}function Mm(){return K.resolveFaviconSet()}Vo()&&(K.clearCache(),ye()&&window.addEventListener("DOMContentLoaded",()=>{K.clearCache()}));import*as oi from"@donotdev/crud";var Uo={forms:{},startSubmit:()=>{},setUploading:()=>{},setValidating:()=>{},setSubmitting:()=>{},setSuccess:()=>{},setError:()=>{},reset:()=>{},cleanup:()=>{},setIsDirty:(e,t)=>{},hasDirtyForms:()=>!1,getDirtyFormIds:()=>[],getStatus:()=>"idle",isLoading:()=>!1,getUploadProgress:()=>0,getError:()=>null,getIsDirty:()=>!1},Ne=oi?.useFormStore,Vm=typeof Ne=="function";function ri(e){return Ne?Ne(e):e(Uo)}ri.getState=()=>Ne&&typeof Ne.getState=="function"?Ne.getState():Uo;import{useMemo as ni}from"react";function at(){let e=N("status"),t=N("isAvailable"),o=N("user");return ni(()=>({shouldHide:e!=="ready"||!t,isLoading:e==="initializing",isReady:e==="ready"&&t,isAuthenticated:!!o}),[e,t,o])}import*as ai from"@donotdev/billing";import{DEGRADED_BILLING_API as ii}from"@donotdev/core";var Ot=ai?.useStripeBilling;function si(e){return ii[e]}function zt(e,t){return Ot?Ot(e,t):si(e)}var Wm=typeof Ot=="function";function Zm(){let e=N("user"),t=N("status"),o={user:e,status:t},r=zt("status",o),n=zt("isAvailable",o);return{shouldHide:!n,isLoading:r==="initializing",isReady:n&&r==="ready"}}import{DEGRADED_CRUD_API as li}from"@donotdev/core";import*as ci from"@donotdev/crud";var Vt=ci?.useCrud;function di(){return li}function Xm(e,t={}){return Vt?Vt(e,t):di()}var jm=typeof Vt=="function";import{DEGRADED_OAUTH_API as ui}from"@donotdev/core";import*as pi from"@donotdev/oauth";var Ut=pi?.useOAuth;function mi(e){return ui[e]}function of(e){return Ut?Ut(e):mi(e)}var rf=typeof Ut=="function";import{CheckCircle as fi}from"lucide-react";import{List as gi}from"@donotdev/components";import{translateArray as vi}from"@donotdev/core";import{jsx as _o}from"react/jsx-runtime";var hi=fi,yi=16;function cf(e,t,o,r=hi,n=yi){let a=r;return _o(gi,{icon:a?_o(a,{size:n}):void 0,items:vi(e,t,o),style:{listStyle:"none",paddingInlineStart:0}})}var bi=/<script[\s\S]*?<\/script>/gi,Si=/<foreignObject[\s\S]*?<\/foreignObject>/gi,Ci=/\s+on\w+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,xi=/\s+(?:xlink:)?href\s*=\s*["']\s*javascript:[^"']*["']/gi,wi=/\s+(?:xlink:)?href\s*=\s*["']\s*data:(?!image\/(?:png|jpe?g|gif|webp|svg\+xml))[^"']*["']/gi;function Le(e){return e.replace(bi,"").replace(Si,"").replace(Ci,"").replace(xi,"").replace(wi,"")}import{useAppConfig as Ai}from"@donotdev/core";import{Helmet as Ti}from"react-helmet-async";import{isNextJs as ki}from"@donotdev/core";import{Fragment as Ho,jsx as _t}from"react/jsx-runtime";function $o({children:e}){return typeof document>"u"?_t(Ho,{children:e}):ki()?_t(Ho,{children:e}):_t(Ti,{children:e})}import{jsx as $,jsxs as Ri}from"react/jsx-runtime";function Ei({title:e,fullTitle:t,description:o,image:r,type:n="website",keywords:a,noindex:i,canonicalUrl:l,publishDate:c,modifiedDate:u}){let s=Ai("name")||"",d=t||(e?`${e} | ${s}`:s),m=[];if(o&&m.push($("meta",{name:"description",content:o},"description"),$("meta",{property:"og:description",content:o},"og:description"),$("meta",{name:"twitter:description",content:o},"twitter:description")),r&&m.push($("meta",{property:"og:image",content:r},"og:image"),$("meta",{name:"twitter:image",content:r},"twitter:image"),$("meta",{name:"twitter:card",content:"summary_large_image"},"twitter:card")),n&&m.push($("meta",{property:"og:type",content:n},"og:type")),a&&a.length>0){let f=Array.isArray(a)?a.join(", "):a;m.push($("meta",{name:"keywords",content:f},"keywords"))}return i&&m.push($("meta",{name:"robots",content:"noindex, nofollow"},"robots")),n==="article"&&(c&&m.push($("meta",{property:"article:published_time",content:c},"article:published_time")),u&&m.push($("meta",{property:"article:modified_time",content:u},"article:modified_time"))),m.push($("meta",{property:"og:title",content:d},"og:title"),$("meta",{name:"twitter:title",content:d},"twitter:title")),Ri($o,{children:[$("title",{children:d}),l&&$("link",{rel:"canonical",href:l}),m]})}function bf(e){return e===null?()=>null:()=>$(Ei,{...e})}import{Fragment as Zi,jsx as pe,jsxs as Ji}from"react/jsx-runtime";var Ko=()=>null,Yi=Wo(async()=>{try{return{default:(await import("@donotdev/auth")).ReauthDialog}}catch{return{default:Ko}}}),qi=Wo(async()=>{try{return{default:(await import("@donotdev/auth")).ConfirmDeleteDialog}}catch{return{default:Ko}}}),Yo=()=>{let[e]=it.useState(!1),[t]=it.useState(!1),[o]=it.useState(!1),[r]=it.useState(null);return{showConfirmDialog:e,showPasswordDialog:t,isDeleting:o,error:r,startDeleteFlow:()=>{},confirmDelete:async()=>{},cancel:()=>{}}};Gi()&&import("@donotdev/auth").then(e=>{Yo=e.useDeleteAccount}).catch(e=>{});var st=e=>{if(!e)return ze;if(typeof e=="function")return e;let t=e.replace(/['"]/g,""),o=Fi[t];return o||ze},Ht=({loginPath:e,display:t=Ui.AUTO,"no-tooltip":o=!1,customItems:r=[],className:n,style:a})=>{let{t:i}=_i("dndev"),{shouldHide:l,isReady:c,isAuthenticated:u}=at(),s=$i(),d=N("user"),m=N("signOut"),f=Wi("isLaptop"),p=re(),g=Ki(),h=s.profilePath,v=s.authMenuItems||[],x=d?.role,w=Yo(),b=()=>d&&(d.displayName||d.email?.split("@")[0])||"User",S=()=>b().split(" ").map(y=>y.charAt(0)).slice(0,2).join("").toUpperCase(),I=()=>{if(!d)return i("auth.userMenu",{defaultValue:"User menu"});let T=[b()];return d.email&&T.push(d.email),x&&x!=="guest"&&T.push(`Role: ${x}`),T.join(`
4
4
  `)},F=Di(()=>{let T=[];return!f&&d&&T.push({children:pe(Vi,{variant:"muted",as:"span",children:`${b()}${d.email?`
5
- ${d.email}`:""}`}),disabled:!0}),h&&T.push({label:i("auth.profile",{defaultValue:"Profile"}),icon:Pi,onClick:()=>g(h)}),v.forEach(y=>{let L=p.find(C=>C.path===y.path),ee=y.label||L?.label||y.path.split("/").pop()||"Menu",A=y.icon?st(y.icon):L?.icon&&(typeof L.icon=="string"||typeof L.icon=="function")?st(L.icon):ze;T.push({label:ee,icon:A,onClick:()=>g(y.path)})}),r.forEach(y=>{if(y.path){let L=p.find(C=>C.path===y.path),ee=y.label||L?.label||y.path.split("/").pop()||"Menu",A=y.icon?st(y.icon):ze;T.push({label:ee,icon:A,onClick:()=>g(y.path),disabled:y.disabled,style:y.style})}else if(y.onClick){let L=y.icon?st(y.icon):ze;T.push({label:y.label,icon:L,onClick:y.onClick,disabled:y.disabled,style:y.style})}}),T.push({label:i("auth.deleteAccount.label",{defaultValue:"Delete Account"}),icon:Li,onClick:w.startDeleteFlow,variant:"destructive"}),T.push({label:i("auth.signOut",{defaultValue:"Sign Out"}),icon:Ii,onClick:()=>m(),variant:"destructive"}),T},[h,v,r,m,w,i,p,f,d,x,b,g]);return Hi().length===0||l||!c||!u?null:Ji(Zi,{children:[pe(Go,{fallback:null,children:pe(Yi,{open:w.showPasswordDialog,isLoading:w.isDeleting,error:w.error,onReauth:T=>w.confirmDelete(T),onCancel:w.cancel})}),pe(Go,{fallback:null,children:pe(qi,{open:w.showConfirmDialog,isLoading:w.isDeleting,error:w.error,onConfirm:()=>w.confirmDelete(),onCancel:w.cancel})}),pe(zi,{trigger:pe(Mi,{variant:Oi.OUTLINE,icon:d?pe(Bi,{src:d.photoURL??void 0,fallback:S(),alt:b(),style:{margin:"-4px 0"}}):Ni,display:t,"aria-label":i("auth.userMenu",{defaultValue:"User menu"}),tooltip:!o&&f&&d?I():o?void 0:i("auth.userMenu",{defaultValue:"User menu"}),className:n,style:a,children:b()}),items:F,contentAlign:"end"})]})};import{jsx as V}from"react/jsx-runtime";var Qo=()=>null;function lt({display:e,variant:t=Jo.OUTLINE,signInLabel:o,className:r,style:n,children:a,...i}){return V(ji,{variant:t,icon:Qi,display:e,tooltip:o,className:r,style:n,...i,children:a??o})}var is=Zo(async()=>{try{return{default:(await import("@donotdev/auth")).AuthPartnerButton}}catch{return{default:Qo}}}),qo=Zo(async()=>{try{return{default:(await import("@donotdev/auth")).MultipleAuthProviders}}catch{return{default:Qo}}}),Gt=({display:e=os.AUTO,variant:t=Jo.OUTLINE,className:o,style:r})=>{let{t:n}=rs("dndev"),{shouldHide:a,isLoading:i,isReady:l,isAuthenticated:c}=at(),u=ns(),s=as(),[d,m]=Xi(!1),f=u.loginPath,p=n("auth.signIn",{defaultValue:"Sign In"}),g=n("auth.loading",{defaultValue:"Loading..."}),h=s.includes("password")||s.includes("emailLink");if(a||!l)return null;if(!c){if(f!==void 0)return V(k,{path:f,prefetch:!0,children:V(lt,{display:e,variant:t,signInLabel:p,className:o,style:r})});let v=s[0];return h?V(ts,{trigger:V(lt,{display:e,signInLabel:p,className:o,style:r}),title:p,open:d,onOpenChange:m,"data-content-size":"form",children:V($t,{fallback:V("div",{style:{padding:"var(--gap-md)",fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:g}),children:V(qo,{spacing:"medium",onSuccess:()=>m(!1)})})}):s.length>1?V(es,{trigger:V(lt,{display:e,signInLabel:p,className:o,style:r}),children:V($t,{fallback:V("div",{style:{padding:"var(--gap-md)",fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:g}),children:V(qo,{spacing:"tight"})})}):V($t,{fallback:V(lt,{display:e,signInLabel:p,className:o,style:r,disabled:i,tooltip:i?g:p,children:i?g:p}),children:V(is,{partnerId:v,display:e,className:o,style:r})})}return V(Ht,{display:e,loginPath:f,className:o,style:r})};import{AlertCircle as ss,RefreshCw as ls,Mail as cs,Cookie as ds}from"lucide-react";import{Card as us,Button as Wt,BUTTON_VARIANT as Kt,Stack as Xo}from"@donotdev/components";import{useTranslation as ps}from"@donotdev/core";import{jsx as Ve,jsxs as ct}from"react/jsx-runtime";function ms({featureName:e,title:t,description:o,showReviewCookies:r=!1,showContactSupport:n=!0,showRetry:a=!1,supportEmail:i="support@example.com",onRetry:l,onReviewCookies:c,customActions:u,className:s=""}){let{t:d}=ps("ui"),m=o||d("featureDisabled.description","{featureName} is not available. This may be due to missing configuration or disabled features.",{featureName:e}),f=()=>{if(c)c();else{let g=new CustomEvent("openCookieConsent");window.dispatchEvent(g)}},p=()=>{window.location.href=`mailto:${i}?subject=${encodeURIComponent(`Feature Unavailable: ${e}`)}&body=${encodeURIComponent(`I'm experiencing an issue with ${e} not being available.`)}`};return ct(us,{className:s,title:ct(Xo,{direction:"row",align:"center",gap:"tight",children:[Ve(ss,{className:"dndev-size-md",style:{color:"var(--destructive)"}}),t||e]}),subtitle:m,children:[" ",ct("div",{style:{display:"grid",gap:"var(--gap-md)"},children:[(r||n||a||u)&&ct(Xo,{direction:"row",wrap:"wrap",gap:"tight",children:[r&&Ve(Wt,{variant:Kt.OUTLINE,onClick:f,icon:ds,children:d("featureDisabled.reviewCookies","Review Cookies")}),n&&Ve(Wt,{variant:Kt.OUTLINE,onClick:p,icon:cs,children:d("featureDisabled.contactSupport","Contact Support")}),a&&Ve(Wt,{variant:Kt.OUTLINE,onClick:l,icon:ls,children:d("featureDisabled.retry","Retry")}),u]}),Ve("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:d("featureDisabled.helpText","If you believe this is an error, please contact support or try refreshing the page.")})]})]})}var fs=ms;import{Lock as dt,Shield as jo}from"lucide-react";import{useEffect as Yt,useRef as er,useCallback as gs}from"react";import{Portal as vs,Spinner as hs,Stack as ys,Text as Ue,Button as bs}from"@donotdev/components";import{useTranslation as Ss,useOverlay as le}from"@donotdev/core";import{jsx as ne,jsxs as or}from"react/jsx-runtime";var tr={connecting:0,preparing:2e3,redirecting:5e3},Cs=1e4;function xs(e,t){return t==="none"?null:t==="shield"?jo:t==="lock"?dt:e?e.startsWith("stripe-")||e.includes("payment")||e.includes("checkout")?dt:e.startsWith("oauth-")||e.startsWith("auth-")?jo:dt:dt}function ws(e){return e||"default"}function Ts(){let{t:e}=Ss("dndev"),t=le("isRedirectOverlayOpen"),o=le("redirectOperation"),r=le("redirectPhase"),n=le("showCancelButton"),a=le("redirectConfig"),i=le("redirectStartTime"),l=le("setRedirectPhase"),c=le("setShowCancelButton"),u=le("hideRedirectOverlay"),s=er([]),d=er(null),m=gs(()=>{u()},[u]);if(Yt(()=>{if(!t||!i)return;let b=a?.cancelTimeout??Cs,S=Date.now()-i;s.current.forEach(clearTimeout),s.current=[],d.current&&(clearTimeout(d.current),d.current=null);let I=(U,T)=>{let y=Math.max(0,T-S);if(y>0){let L=setTimeout(()=>{l(U)},y);s.current.push(L)}else l(U)};I("preparing",tr.preparing),I("redirecting",tr.redirecting);let F=Math.max(0,b-S);return d.current=setTimeout(()=>{c(!0),l("timeout")},F),()=>{s.current.forEach(clearTimeout),s.current=[],d.current&&(clearTimeout(d.current),d.current=null)}},[t,i,a?.cancelTimeout,l,c]),Yt(()=>{if(!t)return;let b=()=>{u()};return window.addEventListener("popstate",b),()=>window.removeEventListener("popstate",b)},[t,u]),Yt(()=>{if(!t)return;let b=()=>{};return document.addEventListener("visibilitychange",b),()=>document.removeEventListener("visibilitychange",b)},[t]),!t)return null;let f=ws(o),p=a?.title??e(`redirectOverlay.${f}.title`,{defaultValue:e("redirectOverlay.default.title")}),g=a?.message??e(`redirectOverlay.${f}.message`,{defaultValue:e("redirectOverlay.default.message")}),h=a?.subtitle??e(`redirectOverlay.${f}.subtitle`,{defaultValue:e("redirectOverlay.default.subtitle")}),v=e(`redirectOverlay.${f}.ariaLabel`,{defaultValue:e("redirectOverlay.default.ariaLabel")}),x=e(`redirectOverlay.phases.${r}`),w=xs(o,a?.icon);return ne(vs,{children:ne("div",{className:"dndev-spinner-overlay",role:"status","aria-busy":"true","aria-label":v,style:{zIndex:"var(--z-overlay, 9999)"},children:or("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"var(--gap-md)",textAlign:"center",maxWidth:"400px",padding:"var(--gap-lg)"},children:[or(ys,{direction:"row",align:"center",children:[w&&ne(w,{style:{width:"1.5rem",height:"1.5rem",color:"var(--primary)"},"aria-hidden":"true"}),ne(hs,{variant:"primary"})]}),ne(Ue,{as:"h3",style:{color:"var(--foreground)",margin:0},children:p}),ne(Ue,{variant:"muted",style:{color:"var(--foreground)",minHeight:"1.5em"},children:x}),ne(Ue,{variant:"muted",level:"small",style:{opacity:.8},children:g}),ne(Ue,{variant:"muted",level:"small",style:{opacity:.6},children:h}),ne(Ue,{variant:"muted",level:"small",style:{opacity:.5,marginTop:"var(--gap-sm)"},children:e("redirectOverlay.doNotRefresh")}),n&&ne(bs,{variant:"ghost",onClick:m,style:{marginTop:"var(--gap-md)"},children:e("redirectOverlay.cancel")})]})})})}import{useEffect as qt,useState as rr}from"react";import{cn as ks}from"@donotdev/components";import{jsx as nr}from"react/jsx-runtime";var As=({isActive:e=!1,progress:t,useFakeProgress:o=!0,duration:r=2e3,className:n,show:a=!0})=>{let[i,l]=rr(0),[c,u]=rr(!1);qt(()=>{if(!e||!o||t!==void 0)return;u(!0),l(0);let d=Date.now(),m=setInterval(()=>{let f=Date.now()-d,p=Math.min(f/r*90,90);l(p)},16);return()=>{clearInterval(m)}},[e,o,t,r]),qt(()=>{t!==void 0&&u(t>0&&t<100)},[t]),qt(()=>{if(!e){let d=setTimeout(()=>{u(!1),l(0)},300);return()=>clearTimeout(d)}},[e]);let s=t??i;return!a||!c?null:nr("div",{className:ks(n),style:{position:"fixed",insetInlineStart:0,insetInlineEnd:0,zIndex:9999,height:"4px",backgroundColor:"transparent",top:"var(--header-height, 0px)"},role:"progressbar","aria-valuenow":Math.round(s),"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Page loading progress",children:nr("div",{style:{height:"100%",width:`${s}%`,background:"linear-gradient(to right, var(--primary), color-mix(in srgb, var(--primary) 80%, transparent), color-mix(in srgb, var(--primary) 60%, transparent))",transition:e?"width 0.3s ease-out":"width 0.2s ease-in",boxShadow:"var(--shadow-sm)"}})})},Es=As;import{cn as ut,Stack as Rs}from"@donotdev/components";import{jsx as _e,jsxs as ug}from"react/jsx-runtime";var Ps=({variant:e="text",width:t,height:o,lines:r=1,show:n=!0,className:a,animation:i="pulse",style:l})=>{if(!n)return null;let c={backgroundColor:"var(--muted)",opacity:"var(--opacity-muted)",borderRadius:"var(--radius)",animation:i==="pulse"||i==="wave"?"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite":"none",...i==="wave"&&{background:"linear-gradient(to right, color-mix(in srgb, var(--muted) 50%, transparent), color-mix(in srgb, var(--muted) 30%, transparent), color-mix(in srgb, var(--muted) 50%, transparent))"}},u=()=>{let s={};return t&&(s.width=typeof t=="number"?`${t}px`:t),o&&(s.height=typeof o=="number"?`${o}px`:o),s};return e==="text"?_e(Rs,{gap:"tight",children:Array.from({length:r}).map((s,d)=>_e("div",{className:ut("dndev-skeleton",a),style:{...c,height:"var(--gap-md)",width:d===r-1?"75%":"100%",...u(),...l}},d))}):e==="circular"?_e("div",{className:ut("dndev-skeleton",a),style:{...c,borderRadius:"var(--radius-full)",width:t||o||"40px",height:o||t||"40px",...u(),...l}}):e==="rectangular"?_e("div",{className:ut("dndev-skeleton",a),style:{...c,width:t||"100%",height:o||"200px",...u(),...l}}):_e("div",{className:ut("dndev-skeleton",a),style:{...c,borderRadius:"var(--radius-lg)",width:t||"100%",height:o||"20px",...u(),...l}})};var Is=Ps;import{Card as Ns,IconBox as Ls,Stack as Fs,Text as Zt,renderCardContent as Ds}from"@donotdev/components";import{jsx as ae,jsxs as ar}from"react/jsx-runtime";var Bs=({icon:e,title:t,subtitle:o,content:r,href:n,variant:a,elevated:i,onClick:l,className:c,footer:u,style:s,clickable:d,maxLines:m=2,...f})=>{let p=Ds(r),g=m,h=g<=0?"auto":`calc(var(--font-size-lg) * var(--line-height) * ${g} + var(--gap-md))`,v=g<=0?"auto":`calc(var(--font-size-base) * var(--line-height) * ${g} + var(--gap-md))`,x=`${h} ${v} 1fr${u?" auto":""}`,w=U=>U<=0?{display:"block",overflow:"visible",wordBreak:"break-word",lineHeight:"var(--line-height)",WebkitLineClamp:"unset",WebkitBoxOrient:"unset"}:{display:"-webkit-box",WebkitLineClamp:U,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-word",lineHeight:"var(--line-height)"},b={...w(g),fontSize:"var(--font-size-lg)",fontWeight:600,color:"inherit",margin:0,textAlign:"start",flex:1,minWidth:0},S={...w(g),fontSize:"var(--font-size-base)",fontWeight:g<=0?500:600,color:"var(--muted-foreground)",margin:0},I=e?ar(Fs,{direction:"row",align:g<=0?"start":"center",style:{width:"100%"},children:[ae(Ls,{icon:e}),ae(Zt,{as:"div",level:"h3",style:b,children:t})]}):ae(Zt,{as:"div",level:"h3",style:b,children:t}),F=ae(Ns,{variant:a,elevated:i,onClick:l,className:c,"data-clickable":n||l||d?"true":void 0,style:{paddingInlineStart:"var(--gap-md)",paddingInlineEnd:"var(--gap-md)",gap:"var(--gap-md)",height:"100%",textAlign:"start",...s},...f,children:ar("div",{style:{display:"grid",gridTemplateRows:x,gap:"var(--gap-md)",width:"100%"},children:[ae("div",{style:{display:"flex",alignItems:g<=0?"flex-start":"center",justifyContent:"flex-start"},children:I}),ae("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start"},children:ae(Zt,{as:"div",level:"body",style:S,children:o})}),ae("div",{children:p}),u&&ae("div",{children:u})]})});return n&&!l?ae(k,{path:n,style:{display:"block",textDecoration:"none",height:"100%"},"aria-label":t?`Learn more about ${t}`:void 0,children:F}):F},Ms=Bs;import{useState as qs}from"react";import{Bento as Zs,Card as Js,Section as Qs,Stack as Xs,Text as js,TONE as el,cn as tl}from"@donotdev/components";var Os='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#3178C6" d="M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z"/></svg>',zs='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#61DAFB" d="M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"/></svg>',Vs='<svg role="img" viewBox="0 0 410 404" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="vite-a" x1="6" y1="33" x2="235" y2="344" gradientUnits="userSpaceOnUse"><stop stop-color="#41D1FF"/><stop offset="1" stop-color="#BD34FE"/></linearGradient><linearGradient id="vite-b" x1="195" y1="9" x2="236" y2="293" gradientUnits="userSpaceOnUse"><stop stop-color="#FFEA83"/><stop offset=".08" stop-color="#FFDD35"/><stop offset="1" stop-color="#FFA800"/></linearGradient></defs><path fill="url(#vite-a)" d="M399.641 59.525 215.643 388.545c-3.799 6.793-13.559 6.833-17.415.073L10.582 59.556c-4.201-7.366 2.098-16.29 10.446-14.797l184.195 32.923c1.175.21 2.378.208 3.553-.006l180.343-32.87c8.32-1.517 14.649 7.337 10.522 14.72z"/><path fill="url(#vite-b)" d="M292.965 1.574 156.801 28.255c-2.238.439-3.895 2.335-4.03 4.611l-8.376 141.465c-.197 3.332 2.863 5.918 6.115 5.168l37.91-8.749c3.547-.818 6.752 2.306 6.023 5.873l-11.263 55.153c-.758 3.712 2.727 6.886 6.352 5.785l23.415-7.114c3.63-1.102 7.118 2.081 6.35 5.796l-17.899 86.633c-1.12 5.42 6.088 8.374 9.094 3.728l2.008-3.103 110.954-221.428c1.858-3.707-1.346-7.935-5.418-7.15l-39.022 7.532c-3.667.707-6.787-2.708-5.752-6.296l25.469-88.291c1.036-3.594-2.095-6.612-5.764-5.891z"/></svg>',Us='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M18.665 21.978C16.758 23.255 14.465 24 12 24 5.377 24 0 18.623 0 12S5.377 0 12 0s12 5.377 12 12c0 3.583-1.574 6.801-4.067 9.001L9.219 7.2H7.2v9.596h1.615V9.251l9.85 12.727Zm-3.332-8.533 1.6 2.061V7.2h-1.6v6.245Z"/></svg>',_s='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#339933" d="M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z"/></svg>',Hs='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#DD2C00" d="M19.455 8.369c-.538-.748-1.778-2.285-3.681-4.569-.826-.991-1.535-1.832-1.884-2.245a146 146 0 0 0-.488-.576l-.207-.245-.113-.133-.022-.032-.01-.005L12.57 0l-.609.488c-1.555 1.246-2.828 2.851-3.681 4.64-.523 1.064-.864 2.105-1.043 3.176-.047.241-.088.489-.121.738-.209-.017-.421-.028-.632-.033-.018-.001-.035-.002-.059-.003a7.46 7.46 0 0 0-2.28.274l-.317.089-.163.286c-.765 1.342-1.198 2.869-1.252 4.416-.07 2.01.477 3.954 1.583 5.625 1.082 1.633 2.61 2.882 4.42 3.611l.236.095.071.025.003-.001a9.59 9.59 0 0 0 2.941.568q.171.006.342.006c1.273 0 2.513-.249 3.69-.742l.008.004.313-.145a9.63 9.63 0 0 0 3.927-3.335c1.01-1.49 1.577-3.234 1.641-5.042.075-2.161-.643-4.304-2.133-6.371m-7.083 6.695c.328 1.244.264 2.44-.191 3.558-1.135-1.12-1.967-2.352-2.475-3.665-.543-1.404-.87-2.74-.974-3.975.48.157.922.366 1.315.622 1.132.737 1.914 1.902 2.325 3.461zm.207 6.022c.482.368.99.712 1.513 1.028-.771.21-1.565.302-2.369.273a8 8 0 0 1-.373-.022c.458-.394.869-.823 1.228-1.279zm1.347-6.431c-.516-1.957-1.527-3.437-3.002-4.398-.647-.421-1.385-.741-2.194-.95.011-.134.026-.268.043-.4.014-.113.03-.216.046-.313.133-.689.332-1.37.589-2.025.099-.25.206-.499.321-.74l.004-.008c.177-.358.376-.719.61-1.105l.092-.152-.003-.001c.544-.851 1.197-1.627 1.942-2.311l.288.341c.672.796 1.304 1.548 1.878 2.237 1.291 1.549 2.966 3.583 3.612 4.48 1.277 1.771 1.893 3.579 1.83 5.375-.049 1.395-.461 2.755-1.195 3.933-.694 1.116-1.661 2.05-2.8 2.708-.636-.318-1.559-.839-2.539-1.599.79-1.575.952-3.28.479-5.072zm-2.575 5.397c-.725.939-1.587 1.55-2.09 1.856-.081-.029-.163-.06-.243-.093l-.065-.026c-1.49-.616-2.747-1.656-3.635-3.01-.907-1.384-1.356-2.993-1.298-4.653.041-1.19.338-2.327.882-3.379.316-.07.638-.114.96-.131l.084-.002c.162-.003.324-.003.478 0 .227.011.454.035.677.07.073 1.513.445 3.145 1.105 4.852.637 1.644 1.694 3.162 3.144 4.515z"/></svg>',$s='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="m12 1.608 12 20.784H0Z"/></svg>',Gs='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#635BFF" d="M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z"/></svg>',Ws='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><defs><linearGradient id="vb-a" x1="0.414" y1="0.255" x2="0" y2="0.932" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#eab308"/><stop offset="1" stop-color="#ca8a04"/></linearGradient><linearGradient id="vb-b" x1="0.338" y1="0.02" x2="0.664" y2="0.966" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#fde68a"/><stop offset="1" stop-color="#fbbf24"/></linearGradient><linearGradient id="vb-c" y1="0.5" x2="1" y2="0.5" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#7dd3fc"/><stop offset="1" stop-color="#0ea5e9"/></linearGradient></defs><g transform="translate(-2056 -1899)"><path d="M742.271,987.024c-66.706,0-119.121,54.673-121.874,126.408l-2.551,95.471c-3.967,78.653,71.961,105.52,126.936,105.52Z" transform="translate(1463.458 1004.277)" fill="url(#vb-a)"/><path d="M92.616.01H319.894c54.53-.8,95.624,40.1,98.381,93.335l6.144,135.76c.732,67.368-48.116,94.95-104.525,95.335L92.616,327.374C34.061,327.8-1.063,283.663.022,229.105l3.8-135.76C7.41,33.54,33.3,1.093,92.616.01Z" transform="translate(2118.42 1991.302)" fill="url(#vb-b)"/><path d="M86.844.009H299.958c51.132-.746,89.665,37.307,92.25,86.824l5.761,126.29c.686,62.669-45.117,88.326-98.011,88.685L86.844,304.537C31.938,304.933-1,263.875.02,213.123L3.58,86.834C6.948,31.2,31.222,1.016,86.844.009Z" transform="translate(2136.977 2001.737)" fill="#111827"/><circle cx="27.626" cy="27.626" r="27.626" transform="translate(2421.148 2104.357)" fill="url(#vb-c)"/><circle cx="27.626" cy="27.626" r="27.626" transform="translate(2208.034 2104.357)" fill="url(#vb-c)"/></g></svg>',Ks='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#3FCF8E" d="M11.9 1.036c-.015-.986-1.26-1.41-1.874-.637L.764 12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z"/></svg>',Ys='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#FBF0DF" d="M12 22.596c6.628 0 12-4.338 12-9.688 0-3.318-2.057-6.248-5.219-7.986-1.286-.715-2.297-1.357-3.139-1.89C14.058 2.025 13.08 1.404 12 1.404c-1.097 0-2.334.785-3.966 1.821a49.92 49.92 0 0 1-2.816 1.697C2.057 6.66 0 9.59 0 12.908c0 5.35 5.372 9.687 12 9.687v.001ZM10.599 4.715c.334-.759.503-1.58.498-2.409 0-.145.202-.187.23-.029.658 2.783-.902 4.162-2.057 4.624-.124.048-.199-.121-.103-.209a5.763 5.763 0 0 0 1.432-1.977Zm2.058-.102a5.82 5.82 0 0 0-.782-2.306v-.016c-.069-.123.086-.263.185-.172 1.962 2.111 1.307 4.067.556 5.051-.082.103-.23-.003-.189-.126a5.85 5.85 0 0 0 .23-2.431Zm1.776-.561a5.727 5.727 0 0 0-1.612-1.806v-.014c-.112-.085-.024-.274.114-.218 2.595 1.087 2.774 3.18 2.459 4.407a.116.116 0 0 1-.049.071.11.11 0 0 1-.153-.026.122.122 0 0 1-.022-.083a5.891 5.891 0 0 0-.737-2.331Zm-5.087.561c-.617.546-1.282.76-2.063 1-.117 0-.195-.078-.156-.181 1.752-.909 2.376-1.649 2.999-2.778 0 0 .155-.118.188.085 0 .304-.349 1.329-.968 1.874Zm4.945 11.237a2.957 2.957 0 0 1-.937 1.553c-.346.346-.8.565-1.286.62a2.178 2.178 0 0 1-1.327-.62 2.955 2.955 0 0 1-.925-1.553.244.244 0 0 1 .064-.198.234.234 0 0 1 .193-.069h3.965a.226.226 0 0 1 .19.07c.05.053.073.125.063.197Zm-5.458-2.176a1.862 1.862 0 0 1-2.384-.245 1.98 1.98 0 0 1-.233-2.447c.207-.319.503-.566.848-.713a1.84 1.84 0 0 1 1.092-.11c.366.075.703.261.967.531a1.98 1.98 0 0 1 .408 2.114 1.931 1.931 0 0 1-.698.869v.001Zm8.495.005a1.86 1.86 0 0 1-2.381-.253 1.964 1.964 0 0 1-.547-1.366c0-.384.11-.76.32-1.079.207-.319.503-.567.849-.713a1.844 1.844 0 0 1 1.093-.108c.367.076.704.262.968.534a1.98 1.98 0 0 1 .4 2.117 1.932 1.932 0 0 1-.702.868Z"/></svg>',Jt={bun:{svg:`data:image/svg+xml,${encodeURIComponent(Ys)}`,color:"#FBF0DF",name:"Bun"},typescript:{svg:`data:image/svg+xml,${encodeURIComponent(Os)}`,color:"#3178C6",name:"TypeScript"},react:{svg:`data:image/svg+xml,${encodeURIComponent(zs)}`,color:"#61DAFB",name:"React"},vite:{svg:`data:image/svg+xml,${encodeURIComponent(Vs)}`,color:"#BD34FE",name:"Vite"},nextjs:{svg:`data:image/svg+xml,${encodeURIComponent(Us)}`,color:"var(--foreground, #000000)",name:"Next.js"},nodejs:{svg:`data:image/svg+xml,${encodeURIComponent(_s)}`,color:"#339933",name:"Node.js"},firebase:{svg:`data:image/svg+xml,${encodeURIComponent(Hs)}`,color:"#DD2C00",name:"Firebase"},supabase:{svg:`data:image/svg+xml,${encodeURIComponent(Ks)}`,color:"#3FCF8E",name:"Supabase"},vercel:{svg:`data:image/svg+xml,${encodeURIComponent($s)}`,color:"var(--foreground, #000000)",name:"Vercel"},stripe:{svg:`data:image/svg+xml,${encodeURIComponent(Gs)}`,color:"#635BFF",name:"Stripe"},valibot:{svg:`data:image/svg+xml,${encodeURIComponent(Ws)}`,color:"#FBBF24",name:"Valibot"}};import{jsx as be,jsxs as al}from"react/jsx-runtime";function ol({techKey:e,variant:t}){let o=Jt[e],[r,n]=qs(!1);if(!o)return null;let a=decodeURIComponent(o.svg.replace("data:image/svg+xml,","")),i=Le(a);return be(Js,{variant:t,className:"dndev-tech-card",style:{"--tech-color":o.color},"data-hover":r,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:al(Xs,{direction:"column",align:"center",gap:"tight",children:[be("div",{className:"dndev-tech-card-logo","data-tech":e,dangerouslySetInnerHTML:{__html:i}}),be(js,{as:"span",level:"small",children:o.name})]})})}function rl({title:e,techs:t,cols:o=3,columns:r,gap:n="medium",separator:a=!1,tone:i=el.GHOST,align:l,collapsible:c,open:u,onOpenChange:s,defaultOpen:d,className:m}){let f=r||(typeof o=="number"?{mobile:o,tablet:o,desktop:o,wide:o}:{mobile:o[0],tablet:o[1],desktop:o[2],wide:o[3]}),p=v=>{if(v==="long")return{cols:2,rows:1};if(v==="high")return{cols:1,rows:2};if(v==="huge")return{cols:2,rows:2}},g=t.filter(v=>Jt[v.name]).map(v=>({id:v.name,content:be(ol,{techKey:v.name,variant:v.variant}),span:p(v.size)})),h=be(Zs,{items:g,columns:f,gap:n,ariaLabel:"Technology stack"});return be(Qs,{title:e,separator:a,tone:i,align:l,collapsible:c,open:u,onOpenChange:s,defaultOpen:d,className:tl("dndev-tech-bento",m),children:be("div",{className:"dndev-tech-bento-grid",children:h})})}var nl=rl;import{Suspense as il,lazy as sl}from"react";import{useConsent as ir}from"@donotdev/core";import{jsx as sr}from"react/jsx-runtime";var ll=sl(()=>import("./CookieConsent-5NH5DNTP.js"));function Dg(){let e=ir("hasConsented"),t=ir("showBanner");return e&&!t?null:sr(il,{fallback:null,children:sr(ll,{})})}import{useLayoutEffect as cl}from"react";import{useLayout as lr}from"@donotdev/core";function Vg({hideBreadcrumbs:e,preset:t}){let o=lr("setRouteHideBreadcrumbs"),r=lr("setRoutePresetOverride");return cl(()=>(e!=null&&o(e),t!=null&&r(t),()=>{o(!1),r(null)}),[e,t,o,r]),null}import{Button as cr,ScrollArea as dl}from"@donotdev/components";import{cn as dr}from"@donotdev/components";import{jsx as ce,jsxs as ul}from"react/jsx-runtime";function $g({content:e,cta:t,align:o="center",justify:r="center",disableScrollArea:n=!1,contentVariant:a="narrow",contentClassName:i,ctaClassName:l}){let u=a==="narrow"?a==="narrow"&&ce("div",{className:"dndev-game-container__content-narrow",children:e}):e,s=n?ce("div",{style:{overflow:"auto",overscrollBehavior:"contain",height:"100%"},children:u}):ce(dl,{className:"dndev-game-container__scroll",children:u});return ul("div",{className:"dndev-game-container",children:[ce("div",{className:dr("dndev-game-container__content",i),"data-align":o,"data-justify":r,"data-content-variant":a,children:ce("div",{className:"dndev-game-container__scroll-wrapper",children:s})}),t&&ce("div",{className:dr("dndev-game-container__cta",l),children:Array.isArray(t)?ce("div",{className:"dndev-game-container__cta-buttons",children:t.map((d,m)=>ce(cr,{onClick:d.onClick,disabled:d.disabled??!1,variant:d.variant??"default",className:"dndev-game-container__cta-button",fullWidth:!0,children:d.label},m))}):ce(cr,{onClick:t.onClick,disabled:t.disabled??!1,variant:t.variant??"default",className:"dndev-game-container__cta-button",children:t.label})})]})}import{useEffect as pl,Suspense as ml,lazy as fl}from"react";import{jsx as Qt}from"react/jsx-runtime";var ur=new Set,pr=new Map;function gl(e,t){let o=pr.get(e);if(o)return o;let r=t[e];if(!r)return null;let n=fl(r);return pr.set(e,n),n}function Yg({screenRegistry:e,currentScreen:t,nextScreen:o,fallback:r=null}){pl(()=>{if(o&&!ur.has(o)){ur.add(o);let a=e[o];a&&a().catch(()=>{})}},[o,e]);let n=t?gl(t,e):null;return!t||!n?null:Qt("div",{style:{height:"100%"},children:Qt(ml,{fallback:r,children:Qt(n,{})})})}import{cn as vl,DISPLAY as Xt}from"@donotdev/components";import{useAppConfig as mr}from"@donotdev/core";import{jsx as pt,jsxs as bl}from"react/jsx-runtime";var hl=({display:e=Xt.AUTO,linkToHome:t=!0,className:o})=>{let r=mr("name"),a=mr("shortName")||r||"App",i=K.getLogoSvgContent(),l=K.resolveLogo(),c=e===Xt.FULL||e===Xt.AUTO,u=i?pt("div",{className:"app-branding-logo",role:"img","aria-label":a,dangerouslySetInnerHTML:{__html:Le(i)}}):K.assetExists(l)?pt("img",{src:l,alt:a,className:"app-branding-logo"}):null,s=c&&pt("span",{className:"app-branding-title","data-display":e,children:a}),d=bl("div",{className:vl("app-branding",o),"data-display":e,children:[u,s]});return t?pt(k,{path:"/",className:"app-branding-link",children:d}):d},yl=hl;import{cn as fr}from"@donotdev/components";import{useAppConfig as gr}from"@donotdev/core";import{jsx as hr}from"react/jsx-runtime";var vr={sm:{width:"var(--icon-md)",height:"var(--icon-md)"},md:{width:"var(--icon-touch)",height:"var(--icon-touch)"},lg:{width:"var(--icon-touch)",height:"var(--icon-touch)"},xl:{width:"var(--touch-target)",height:"var(--touch-target)"},header:{height:"var(--icon-touch)",width:"auto"}},Sl=({alt:e,size:t="header",className:o})=>{let r=gr("name"),n=gr("shortName"),a=e||r||n||"App",i=K.getLogoSvgContent(),l=K.resolveLogo(),c=typeof t=="string"&&t in vr?vr[t]:typeof t=="string"?{}:{width:t,height:t};return i?hr("div",{className:fr("app-icon-header",o),style:{display:"inline-flex",...c},role:"img","aria-label":a,dangerouslySetInnerHTML:{__html:Le(i)}}):hr("img",{src:l,alt:a,className:fr(o),style:{objectFit:"contain",...c}})},Cl=Sl;import{cn as yr}from"@donotdev/components";import{useAppConfig as br,useBreakpoint as xl}from"@donotdev/core";import{jsx as Sr}from"react/jsx-runtime";var wl=({title:e,className:t,linkToHome:o=!0})=>{let r=xl("isMobileOrTablet"),n=br("name"),a=br("shortName"),i=e||r&&a||n||"App",l=Sr("div",{className:yr("dndev-text-base",t),style:{fontSize:"var(--font-size-xl)",fontWeight:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:i});return o?Sr(k,{path:"/",className:yr("dndev-inline-block",t),children:l}):l},Tl=wl;import{ChevronRight as Il}from"lucide-react";import{useMemo as Nl}from"react";import{cn as Ll}from"@donotdev/components";import{useTranslation as Fl}from"@donotdev/core";import{useLocation as Dl}from"@donotdev/ui/routing/hooks";import{useMemo as Cr}from"react";import{useNavigationStore as v1,getRoutes as kl,getRouteManifest as h1}from"@donotdev/core";function Al(){return Cr(()=>{try{let e=kl();return!e||e.length===0?[]:El(e)}catch{return[]}},[])}function xr(){let e=Al();return Cr(()=>e.flatMap(t=>t.routes),[e])}function El(e){let t=new Map;return e.forEach(o=>{let r=typeof o.path=="string"?o.path:String(o.path);if(!r||r==="undefined"||r==="null")return;let n=o.meta?.entity||Rl(r)||"other",a={path:r,label:o.meta?.title||Pl(r),icon:o.meta?.icon,component:o.component,importPath:o.importPath,exportName:o.exportName,auth:o.auth,meta:o.meta};t.has(n)||t.set(n,{label:n.charAt(0).toUpperCase()+n.slice(1),routes:[]}),t.get(n)?.routes.push(a)}),Array.from(t.values())}function Rl(e){return e.split("/").filter(Boolean)[0]||null}function Pl(e){let t=e.split("/").filter(Boolean),o=t[t.length-1];return o?o.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "):"Home"}import{jsx as He,jsxs as Ol}from"react/jsx-runtime";var Bl=({items:e,separator:t=Il,showHome:o=!0,homeHref:r="/",variant:n="default",className:a})=>{let{t:i}=Fl("dndev"),l=Dl(),c=xr(),u=Nl(()=>new Set(c.map(m=>m.path)),[c]),s=e||(()=>{let m=l.pathname.split("/").filter(Boolean),f=[],p="";return m.forEach(g=>{p+=`/${g}`;let h=g.split("-").map(x=>x.charAt(0).toUpperCase()+x.slice(1)).join(" "),v=u.has(p)?p:void 0;f.push({label:h,href:v})}),f})(),d=o?[{label:i("navigation.home","Home"),href:r},...s]:s;return n==="smart"&&l.pathname.split("/").filter(Boolean).length<2?null:He("nav",{role:"navigation","aria-label":"Breadcrumb navigation",className:Ll("breadcrumbs",a),children:d.map((m,f)=>{let g=f===d.length-1||!m.href;return Ol("span",{className:"breadcrumb-item",children:[f>0&&He(t,{className:"dndev-size-md separator"}),m.icon&&He(m.icon,{className:"dndev-size-md icon"}),m.href&&!g?He(k,{path:m.href,className:"breadcrumb-link",children:m.label}):He("span",{className:"breadcrumb-label",children:m.label})]},f)})})},Ml=Bl;import{useTranslation as zl,maybeTranslate as wr,useLayout as jt,useAppConfig as Vl}from"@donotdev/core";import{jsx as Fe,jsxs as _l}from"react/jsx-runtime";var Ul=({asLink:e=!1,className:t})=>{let o=Vl("app"),r=jt("gameTitle"),n=jt("gameSubtitle"),a=jt("gameNamespace"),{t:i}=zl(a||"dndev"),l=wr(i,r??void 0),c=wr(i,n??void 0),u=o?.name||"Game";if(l)return Fe("div",{className:t,children:_l("div",{style:{textAlign:"center"},children:[Fe("h2",{style:{fontSize:"var(--font-size-lg)",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l}),c&&Fe("p",{style:{color:"var(--muted-foreground)",fontSize:"var(--font-size-sm)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c})]})});let s=Fe("h2",{style:{fontSize:"var(--font-size-lg)",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u});return e?Fe(k,{path:"/",className:t,style:{fontSize:"var(--font-size-2xl)",fontWeight:700,transition:"color var(--dur-fast) ease-out"},onMouseEnter:d=>d.currentTarget.style.color="var(--primary)",onMouseLeave:d=>d.currentTarget.style.color="var(--foreground)",children:u}):Fe("div",{className:t,children:s})};import{Trash2 as Hl}from"lucide-react";import{useState as Tr}from"react";import{Button as $l,BUTTON_VARIANT as Gl,Checkbox as Wl,Stack as eo,useToast as Kl}from"@donotdev/components";import{useTranslation as Yl}from"@donotdev/core";import{useRefresh as ql}from"@donotdev/ui/routing/hooks";import{jsx as mt,jsxs as kr}from"react/jsx-runtime";function Zl(){let{t:e}=Yl("dndev"),{toast:t}=Kl(),[o,r]=Tr(!1),n=ql(),[a,i]=Tr({localStorage:!0,sessionStorage:!0,applicationCache:!0,serviceWorker:!0,cookies:!0,indexedDB:!0,webSQL:!0,memoryCache:!0}),l=async()=>{try{r(!0);let c=[];if(a.localStorage&&typeof window<"u")try{localStorage.clear(),c.push("localStorage")}catch{}if(a.sessionStorage&&typeof window<"u")try{sessionStorage.clear(),c.push("sessionStorage")}catch{}if(a.indexedDB&&typeof window<"u"&&"indexedDB"in window)try{if("databases"in indexedDB){let s=await indexedDB.databases();await Promise.all(s.map(async d=>{if(d.name){let m=indexedDB.deleteDatabase(d.name);await new Promise((f,p)=>{m.onsuccess=()=>f(void 0),m.onerror=()=>p(m.error)})}}))}c.push("IndexedDB")}catch{}if(a.webSQL&&typeof window<"u"&&"openDatabase"in window)try{let s=globalThis.openDatabase("","","","");s&&s.transaction&&s.transaction(d=>{d.executeSql('SELECT name FROM sqlite_master WHERE type="table"',[],(m,f)=>{for(let p=0;p<f.rows.length;p++){let g=f.rows.item(p).name;/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(g)&&m.executeSql(`DROP TABLE IF EXISTS ${g}`)}})}),c.push("WebSQL")}catch{}if(a.applicationCache&&typeof window<"u"&&"caches"in window)try{let s=await caches.keys();await Promise.all(s.map(async d=>{try{await caches.delete(d)}catch{}})),c.push("Application Cache")}catch{}if(a.serviceWorker&&"serviceWorker"in navigator)try{let s=await navigator.serviceWorker.getRegistrations();await Promise.all(s.map(async d=>{try{await d.unregister()}catch{}})),c.push("Service Workers")}catch{}if(a.cookies)try{document.cookie.split(";").forEach(s=>{let d=s.indexOf("="),m=d>-1?s.slice(0,d):s;document.cookie=`${m.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`,document.cookie=`${m.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=${window.location.hostname}`,document.cookie=`${m.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=.${window.location.hostname}`}),c.push("Cookies")}catch{}if(a.memoryCache)try{"gc"in window&&typeof globalThis.gc=="function"&&globalThis.gc(),c.push("Memory Cache")}catch{}let u=c.length>0?e("settings.clearCache.success","Cache cleared successfully: {{items}}",{items:c.join(", ")}):e("settings.clearCache.noItemsCleared","No cache items were cleared");t("success",u),c.length>0&&setTimeout(()=>{typeof globalThis<"u"&&globalThis._DNDEV_STORES_&&(globalThis._DNDEV_STORES_={}),typeof window<"u"?window.location.href=window.location.href:n()},1e3)}catch{t("error",e("settings.clearCache.error","Error clearing cache"))}finally{r(!1)}};return kr(eo,{children:[mt(eo,{children:Object.entries(a).map(([c,u])=>kr(eo,{direction:"row",align:"center",gap:"tight",children:[mt(Wl,{id:c,checked:u,onCheckedChange:s=>i(d=>({...d,[c]:!!s}))}),mt("label",{htmlFor:c,style:{fontSize:"var(--font-size-sm)",fontWeight:500,lineHeight:1,cursor:"pointer"},children:e(`settings.clearCache.${c}`,c.charAt(0).toUpperCase()+c.slice(1))})]},c))}),mt($l,{variant:Gl.DESTRUCTIVE,style:{margin:"0 auto"},disabled:o||!Object.values(a).some(Boolean),onClick:l,icon:Hl,children:o?e("settings.clearCache.clearing","Clearing..."):e("settings.clearCache.button","Clear Cache")})]})}var to=Zl;import{DropdownMenu as jl,Button as oo,Stack as ec}from"@donotdev/components";import{Link as Jl}from"lucide-react";import{navigationMenuTriggerStylePrimitive as Ql}from"@donotdev/components";import{jsx as Ar,jsxs as Xl}from"react/jsx-runtime";var ft=({path:e,route:t,showIcons:o=!0})=>{let r=re(),n=t??r.find(l=>l.path===e);if(!n)return null;let a=o&&!!n.icon,i=!!n.label;return Xl(k,{path:n.path,className:Ql(),...a&&!i&&{"data-display":"compact"},children:[o&&Ar(W,{icon:n.icon,fallback:Jl}),Ar("span",{children:n.label})]})};import{jsx as Se}from"react/jsx-runtime";var tc=({navigation:e,className:t})=>Se(ec,{role:"navigation",direction:"row",align:"center",className:t,style:{gap:"var(--gap-sm)"},children:e.map((o,r)=>o.routes&&o.routes.length>0?Se(jl,{trigger:Se(oo,{icon:o.icon,children:o.label}),items:o.routes.map(n=>({label:n.label,children:Se(ft,{route:n}),asChild:!!n.path})),contentAlign:"start"},o.label+r):o.path?Se(oo,{icon:o.icon,"aria-label":o.label,render:({children:n,...a})=>Se(k,{path:o.path,...a,children:n}),children:o.label},o.label+r):Se(oo,{icon:o.icon,disabled:!0,"aria-label":o.label,children:o.label},o.label+r))}),oc=tc;import{Card as rc,cn as nc}from"@donotdev/components";import{jsx as ro}from"react/jsx-runtime";var ac=({languages:e,currentLanguage:t,onLanguageChange:o,className:r})=>ro(rc,{className:nc("dndev-z-modal",r),style:{position:"fixed",bottom:"var(--gap-md)",insetInlineEnd:"var(--gap-md)",display:"flex",alignItems:"center",gap:"var(--gap-sm)",transition:"var(--dur-fast) ease-out"},role:"region","aria-label":"Language selector","data-role":"floating",children:ro("select",{style:{backgroundColor:"transparent",outline:"none",fontSize:"var(--font-size-base)",cursor:"pointer"},value:t,onChange:n=>o?.(n.target.value),"aria-label":"Select language",children:e.map(n=>ro("option",{value:n,children:n},n))})}),ic=ac;import{MoreHorizontal as sc}from"lucide-react";import{Button as lc,BUTTON_VARIANT as cc,DropdownMenu as dc}from"@donotdev/components";import{jsx as Er}from"react/jsx-runtime";var uc=({children:e,className:t})=>Er(dc,{trigger:Er(lc,{variant:cc.GHOST,icon:sc,"aria-label":"Menu",className:t}),contentAlign:"end",children:e}),pc=uc;import{MoreHorizontal as mc}from"lucide-react";import{Link as fc}from"lucide-react";import{DISPLAY as $e,DropdownMenu as gc,Button as Rr}from"@donotdev/components";import{cn as vc}from"@donotdev/components";import{useBreakpoint as Pr,useTranslation as hc}from"@donotdev/core";import{jsx as Ce}from"react/jsx-runtime";var yc=({className:e="",showIcons:t=!0,display:o=$e.AUTO,path:r})=>{let{t:n}=hc("dndev"),a=Pr("isMobile"),i=Pr("isTablet"),l=re(),c=Co(r??"");return r?c?Ce(Rr,{variant:"ghost",display:o,icon:t?Ce(W,{icon:c.icon,fallback:fc}):void 0,className:e,render:({children:s,...d})=>Ce(k,{path:c.path,...d,children:s}),children:c.label}):null:(o===$e.AUTO?a||i?$e.COMPACT:$e.FULL:o)===$e.COMPACT?Ce(gc,{trigger:Ce(Rr,{variant:"ghost",icon:mc,"aria-label":n("navigation.menu","Navigation"),className:e}),contentAlign:"end",items:l.map(s=>({label:s.label,children:Ce(ft,{route:s,showIcons:t}),asChild:!0}))}):Ce(Oo,{overflowDetection:!0,showIcons:t,className:vc(e),style:{flex:1}})},bc=yc;import{Bell as Sc}from"lucide-react";import{useMemo as Cc,useEffect as xc,useRef as wc}from"react";import{Button as Tc,cn as kc,toast as Ac,Stack as Ec}from"@donotdev/components";import{jsx as no}from"react/jsx-runtime";var Rc={sm:{button:{width:"var(--icon-md)",height:"var(--icon-md)"},icon:{width:"var(--icon-md)",height:"var(--icon-md)"},badge:{width:"var(--icon-md)",height:"var(--icon-md)",fontSize:"var(--font-size-xs)"}},md:{button:{width:"var(--touch-target)",height:"var(--touch-target)"},icon:{width:"var(--icon-md)",height:"var(--icon-md)"},badge:{width:"var(--icon-md)",height:"var(--icon-md)",fontSize:"var(--font-size-xs)"}},lg:{button:{width:"var(--touch-target)",height:"var(--touch-target)"},icon:{width:"var(--icon-touch)",height:"var(--icon-touch)"},badge:{width:"var(--icon-touch)",height:"var(--icon-touch)",fontSize:"var(--font-size-sm)"}}},Pc=({notifications:e=[],count:t=0,loading:o=!1,onNotificationClick:r,onDropdownOpen:n,className:a,maxVisible:i=10,alwaysShow:l=!1,size:c="md",disabled:u=!1})=>{let s=Rc[c],d=wc(new Set),m=Cc(()=>t===0?null:t>99?"99+":t.toString(),[t]),f=t>0||l;return xc(()=>{e.forEach(p=>{if(!d.current.has(p.id)){d.current.add(p.id);let g=p.type==="error"?"error":p.type==="warning"?"warning":p.type==="success"?"success":"info";Ac({title:p.title,description:p.message,toastType:g,duration:0,onDismiss:()=>{d.current.delete(p.id),r&&r(p)}})}})},[e,r]),f?no("div",{className:kc(a),style:{position:"relative"},children:no(Tc,{disabled:u,style:{...s.button,position:"relative"},onClick:()=>{n?.()},onFocus:p=>{p.currentTarget.style.outline="2px solid var(--ring)",p.currentTarget.style.outlineOffset="2px"},onBlur:p=>{p.currentTarget.style.outline="none"},"aria-label":`${t} notification${t!==1?"s":""}`,icon:Sc,children:m&&no(Ec,{align:"center",justify:"center",style:{position:"absolute",top:"-0.25rem",insetInlineEnd:"-0.25rem",backgroundColor:"var(--destructive)",color:"var(--destructive-foreground)",borderRadius:"var(--radius-full)",fontWeight:600,lineHeight:1,minWidth:0,...s.badge},"aria-hidden":"true",children:m})})}):null},Ic=Pc;import{Settings as Nc,Check as Lc}from"lucide-react";import*as gt from"lucide-react";import{Button as Fc,BUTTON_VARIANT as Dc,DropdownMenu as Bc,Stack as Mc,DISPLAY as Oc}from"@donotdev/components";import{useTranslation as zc}from"@donotdev/core";import{useLanguageSelector as Vc,useTheme as ao,Flag as Uc}from"@donotdev/core";import{jsx as me,jsxs as $c}from"react/jsx-runtime";function _c({variant:e=Dc.OUTLINE}={}){let{t}=zc("dndev"),{languages:o,currentLanguage:r,changeLanguage:n,isLoading:a}=Vc(),i=ao("availableThemes"),l=ao("currentTheme"),c=ao("setTheme"),u=f=>{if(!f)return gt.Palette;let p=f.replace(/['"]/g,"");return gt[p]||gt.Palette},s=i.map(f=>{let p=u(f.meta?.icon),g=f.name===l;return{label:f.displayName||f.name,icon:p,onClick:()=>c(f.name),checked:g}}),d=o.map(f=>{let p=f.id===r;return{label:f.name,onClick:()=>n(f.id),disabled:a,checked:p,className:p?"bg-accent":void 0,iconEnd:p&&!a?Lc:void 0,children:$c(Mc,{direction:"row",align:"center",gap:"tight",children:[me(Uc,{code:f.flagCode||f.id,title:`${f.name} flag`}),me("span",{children:f.name}),a&&p&&me("div",{style:{marginInlineStart:"auto"},children:me("div",{style:{width:"0.5rem",height:"0.5rem",borderRadius:"50%",backgroundColor:"var(--primary)"}})})]})}}),m=[{label:t("auth.title","Authentication"),subContent:me(Gt,{display:Oc.COMPACT})},{label:t("settings.theme","Theme"),subItems:s},{label:t("settings.language","Language"),subItems:d},{label:t("settings.clearCache.title","Clear Cache"),subContent:me(to,{})}];return me(Bc,{trigger:me(Fc,{variant:e,"aria-label":t("settings.title","Settings"),icon:Nc}),items:m,contentWidth:"14rem",contentAlign:"end"})}var Hc=_c;import*as vt from"lucide-react";import{Button as Ir,BUTTON_VARIANT as Gc,DropdownMenu as Wc,DISPLAY as Kc}from"@donotdev/components";import{useTranslation as Yc}from"@donotdev/core";import{useTheme as io}from"@donotdev/core";import{jsx as lo}from"react/jsx-runtime";var so=e=>{if(!e)return vt.Palette;let t=e.replace(/['"]/g,"");return vt[t]||vt.Palette},qc=({display:e=Kc.AUTO,"no-tooltip":t=!1})=>{let{t:o}=Yc("dndev"),r=io("availableThemes"),n=io("currentTheme"),a=io("setTheme");if(r.length<=1)return null;let i=r.find(v=>v.name===n)||r[0],l=r.length===2?r.find(v=>v.name!==i?.name)||r[0]:null,c=i?so(i.meta?.icon):null,u=l?so(l.meta?.icon):null,s=i?.displayName||i?.name||"Theme",d=l?.displayName||l?.name||"Theme",m=r.length===2&&l&&u,f=m?u:c,p=m?t?void 0:o("common.themeSelector.tooltipWithNext","Change Theme: Switch to {{next}}",{next:l?.displayName||l?.name}):t?void 0:o("common.themeSelector.changeTheme","Change Theme"),g={variant:Gc.OUTLINE,"aria-label":o("common.themeSelector.changeTheme","Change Theme"),tooltip:p,icon:f,display:e};if(m&&l)return lo(Ir,{...g,onClick:()=>a(l.name),children:d});if(!i||!c)return null;let h=r.map(v=>{let x=so(v.meta?.icon),w=v.name===n;return{label:v.displayName||v.name,icon:x,onClick:()=>a(v.name),checked:w}});return lo(Wc,{trigger:lo(Ir,{...g,children:s}),items:h,contentWidth:"10rem"})},Zc=qc;import{ExternalLink as Jc}from"lucide-react";import{getPlatformEnvVar as Qc}from"@donotdev/core";import{jsx as Xc,jsxs as jc}from"react/jsx-runtime";var co=({className:e})=>{let o=Qc("APP_URL")==="https://donotdev.com";return jc("a",{href:o?"https://www.ambroise-park.com":"https://donotdev.com",target:"_blank",rel:"noopener noreferrer",className:e,style:{display:"inline-flex",alignItems:"center",gap:"var(--gap-sm)",fontSize:"var(--font-size-xs)"},children:[o?"AMBROISE-PARK":"DoNotDev",Xc(Jc,{style:{width:"12px",height:"12px"},"aria-hidden":"true"})]})};import{cn as ed}from"@donotdev/components";import{useTranslation as td,useAppConfig as od}from"@donotdev/core";import{jsxs as nd}from"react/jsx-runtime";var rd=({appName:e,year:t=new Date().getFullYear(),className:o})=>{let{t:r}=td("dndev"),n=od("app"),a=e||n?.name||"App";return nd("span",{className:ed(o),style:{flexShrink:0,color:"var(--muted-foreground)",fontSize:"var(--font-size-xs)"},children:["\xA9 ",t," ",a,". ",r("footer.legal.allRightsReserved")]})};import{Stack as sd}from"@donotdev/components";import{useTranslation as ld,maybeTranslate as cd,useAppConfig as dd}from"@donotdev/core";var ad=[{path:"#cookie-settings",label:"footer.legal.cookieSettings"},{label:"footer.legal.privacyPolicy",path:"/privacy"},{label:"footer.legal.termsOfService",path:"/terms"}],id=e=>e?.legalLinks===null?[]:e?.legalLinks??ad,Nr=id;import{jsx as Lr,jsxs as pd}from"react/jsx-runtime";var ud=({app:e,direction:t="column",gap:o="tight",align:r="stretch"})=>{let{t:n}=ld("dndev"),a=dd("app"),l=Nr((e||a||{}).footer),c={transition:"color var(--dur-fast) ease-out",textDecoration:"underline",textUnderlineOffset:"2px",color:"var(--muted-foreground)",fontSize:"var(--font-size-xs)"};return l.length===0?null:pd(sd,{direction:t,gap:o,align:r,children:[l.map(u=>Lr(k,{path:u.path,style:c,onMouseEnter:s=>s.currentTarget.style.color="var(--primary)",onMouseLeave:s=>s.currentTarget.style.color="var(--muted-foreground)",children:cd(n,u.label)},u.path)),Lr(co,{})]})};import{useEffect as md,useState as uo,useMemo as fd}from"react";import{Stack as po,Spinner as gd}from"@donotdev/components";import{useTranslation as Yr,isFieldVisible as vd}from"@donotdev/core";import*as B from"@donotdev/crud";var Y=typeof B?.useCrud=="function",Fr=B?.useEntityForm,Dr=B?.useFormStore,Br=B?.useFieldConditions,ht=B?.useCrud,Mr=B?.useCrudList,yt=B?.useCrudCardList,Or=B?.useEntityFavorites,zr=B?.useCrudFilters,Vr=B?.useCrudPageSize,Ur=B?.useEntityWorkflow,_r=B?.useReferenceResolver,bt=B?.DisplayFieldRenderer,Hr=B?.FormFieldRenderer,$r=B?.UploadProvider,St=B?.EntityFilters,Gr=B?.CrudCard,Wr=B?.translateFieldLabel,Kr=B?.formatValue;import{jsx as xe,jsxs as yd}from"react/jsx-runtime";function hd({entity:e,id:t,t:o,className:r="",loadingMessage:n,notFoundMessage:a,viewerRole:i,excludeFields:l,preview:c}){if(!Y)return null;let u=!!c,s=N("userRole"),d=i??(u?"super":s),{get:m,loading:f,data:p,error:g,isAvailable:h}=ht(e),[v,x]=uo(!1),[w,b]=uo(null),[S,I]=uo(null),{t:F}=Yr([e.namespace,"crud"]),{t:U}=Yr("crud"),T=o||F;md(()=>{if(u)return;if(!t){I(null),b(null),x(!1);return}if(!h||!m)return;let C=!1;return x(!0),b(null),m(t).then(O=>{C||(x(!1),O?(I(O),b(null)):(I(null),b(new Error("Entity not found"))))}).catch(O=>{C||(x(!1),b(O instanceof Error?O:new Error(String(O))),I(null))}),()=>{C=!0}},[t,m,h,u]);let y=u?c:p||S,L=u?null:g||w,ee=u?!1:f||v||!t,A=fd(()=>y?Object.entries(e.fields).filter(([C,O])=>{if(l?.includes(C)||!vd(O.visibility,d)||O.visibility==="hidden")return!1;let R=y[C];return!(R==null||typeof R=="string"&&R.trim()===""||Array.isArray(R)&&R.length===0||typeof R=="object"&&!Array.isArray(R)&&R!==null&&Object.keys(R).length===0)}):[],[e.fields,d,y,l]);return ee?xe("div",{style:{position:"relative",width:"100%",gridColumn:"1 / -1",display:"contents"},className:r,children:xe(gd,{overlay:!0,"aria-label":n||U("form.loading",{defaultValue:"Loading..."})})}):L||!y?xe(po,{align:"center",justify:"center",style:{padding:"var(--gap-3xl)",textAlign:"center"},className:r,children:yd(po,{direction:"column",gap:"tight",children:[xe("h3",{style:{color:"var(--muted-foreground)"},children:a||U("errors.notFound",{defaultValue:`${e.name} not found`})}),L&&xe("p",{style:{color:"var(--destructive)",fontSize:"var(--font-size-sm)"},children:L instanceof Error?L.message:String(L)})]})}):xe(po,{direction:"column",className:r,children:A.map(([C,O])=>xe(bt,{name:C,config:O,value:y[C],t:T},C))})}import{RefreshCw as bd,Plus as qr,Trash2 as Sd,Edit as Zr,Search as Cd}from"lucide-react";import{useCallback as xd,useState as Jr}from"react";import{DataTable as wd,Button as Ge,Stack as mo,ActionButton as Td,Section as Qr,Input as kd}from"@donotdev/components";import{useTranslation as Xr}from"@donotdev/core";import{Fragment as Ed,jsx as J,jsxs as Ct}from"react/jsx-runtime";function Ad({entity:e,basePath:t,onClick:o,hideFilters:r=!1,pagination:n="auto",pageSize:a,queryOptions:i,exportable:l=!0,preview:c,tone:u}){if(!Y)return null;let s=!!c,d=Ie(),m=t??`/${e.collection}`,f=_r(e,!s),[p,g]=Jr(1),{pageSize:h,setPageSize:v}=Vr({collection:e.collection,...a!=null&&{defaultPageSize:a}}),[x,w]=Jr(""),{data:b,items:S,processed:I,loading:F,mutate:U,effectiveMode:T}=Mr(e,{enabled:!s,pagination:n,searchQuery:x,...i&&{queryOptions:i},...(n==="server"||n==="auto")&&{page:p,pageSize:h}}),y=s?c:I,L=s?!1:F,{delete:ee}=ht(e),{t:A}=Xr("crud"),{t:C}=Xr([e.namespace,"crud"]),O=async()=>{await U()},R=xd(D=>{s||(o?o(D):d(`${m}/${D}`))},[m,d,o,s]),ge=async D=>{s||await ee(D)},Ae=(e.listFields||Object.keys(e.fields)).map(D=>{let _=e.fields[D];if(!_)return null;let ie=Wr(D,_,C),Ee=_.type||"text";return{key:D,title:ie,dataIndex:D,sortable:!s,filterable:!s,align:Ee==="number"||Ee==="range"?"end":"start",render:(Ye,qe)=>Kr(Ye,_,C,{compact:!0,referenceData:f,item:qe})}}).filter(Boolean),te=[{key:"_actions",title:A("actions.label",{defaultValue:"Actions"}),dataIndex:void 0,sortable:!1,width:120,align:"center",render:(D,_)=>Ct(mo,{direction:"row",gap:"tight",align:"center",justify:"center",children:[s?J(Ge,{variant:"outline",icon:Zr,disabled:!0,"aria-label":A("edit",{defaultValue:"Edit"})}):J(Ge,{variant:"outline",icon:Zr,render:({children:ie,...Ee})=>J(k,{path:`${m}/${_.id}`,onClick:Ke=>Ke.stopPropagation(),...Ee,children:ie}),"aria-label":A("edit",{defaultValue:"Edit"})}),J(Td,{action:async()=>{await ge(_.id)},confirmText:A("delete.confirm",{defaultValue:"Are you sure you want to delete this item?"}),confirmTitle:A("delete.title",{defaultValue:"Delete Item"}),loadingText:A("delete.loading",{defaultValue:"Deleting..."}),variant:"destructive",icon:Sd,disabled:s,"aria-label":A("delete",{defaultValue:"Delete"}),children:A("delete",{defaultValue:"Delete"})})]})},...Ae],de=C("name",{defaultValue:e.name}),oe=y.length;return Ct(Ed,{children:[J(Qr,{title:A("filters.title",{entity:de,defaultValue:`Browse ${de} - Filters`}),collapsible:!0,defaultOpen:!0,tone:u,children:Ct(mo,{children:[Ct(mo,{direction:"row",gap:"tight",align:"center",className:"dndev-w-full",style:{display:"grid",gridTemplateColumns:"1fr auto auto"},children:[J(kd,{placeholder:A("search.placeholder",{defaultValue:"Search..."}),value:x,onChange:D=>w(D.target.value),icon:Cd,className:"dndev-w-full",disabled:s}),J(Ge,{icon:bd,variant:"outline",onClick:O,disabled:s||L,display:"compact","aria-label":A("refresh",{defaultValue:"Refresh"})}),s?J(Ge,{icon:qr,display:"compact",disabled:!0,children:A("addNew",{defaultValue:"Add New"})}):J(Ge,{icon:qr,display:"compact",render:({children:D,..._})=>J(k,{path:`${m}/new`,..._,children:D}),children:A("addNew",{defaultValue:"Add New"})})]}),!r&&J(St,{entity:e,data:S,fieldsToFilter:e.listFields})]})}),J(Qr,{title:L?A("results.title.fetching",{defaultValue:"Fetching..."}):A("results.title.count",{count:oe,defaultValue:oe===1?"Found 1 occurrence":`Found ${oe} occurrences`}),collapsible:!0,defaultOpen:!0,tone:u,children:J(wd,{data:y,columns:te,sortable:!s,searchable:!1,pagination:!0,loading:L,onRowClick:s?void 0:D=>R(D.id),showingLabel:A("pagination.showing",{defaultValue:"Showing {{from}} to {{to}} of {{total}} entries"}),paginationPreviousLabel:A("pagination.previous",{defaultValue:"Previous"}),paginationNextLabel:A("pagination.next",{defaultValue:"Next"}),paginationItemsPerPagePlaceholder:A("pagination.itemsPerPagePlaceholder",{defaultValue:"Items per page"}),pageSize:h,onPageSizeChange:v,...!s&&T==="server"&&{currentPage:p,total:b?.total,onPageChange:g},exportable:s?!1:l,exportFilename:`${e.collection}-export`,exportLabel:A("export",{defaultValue:"Export"})})})]})}import{Heart as en}from"lucide-react";import{useMemo as Rd,useCallback as Pd}from"react";import{Card as rn,Grid as nn,Stack as wt,Text as we,Skeleton as De,Section as tn,Button as Id}from"@donotdev/components";import{useTranslation as on,getListCardFieldNames as an,useBreakpoint as Nd}from"@donotdev/core";import{jsx as jr}from"react/jsx-runtime";function xt({detailHref:e,onClick:t,...o}){if(!Y)return null;let r=jr(Gr,{...o,onClick:e?void 0:t});return e?jr(k,{path:e,"aria-label":o.item?.id?`View ${o.item.id}`:void 0,children:r}):r}import{Fragment as Md,jsx as P,jsxs as We}from"react/jsx-runtime";function Ld(e){let t=e.listCardFields;if(t&&!Array.isArray(t)){let i=t;return{titleFields:i.title??[],subtitleFields:i.subtitle??[],contentFields:i.content??[],footerFields:i.footer??[]}}let o=an(e),r=i=>{let l=e.fields[i]?.type;return l==="image"||l==="images"},n=o.filter(i=>!r(i)),a=o.filter(r);return{titleFields:n.length>0?[n[0]]:[],subtitleFields:[],contentFields:[...n.slice(1,4),...a],footerFields:[]}}var Fd={mobile:0,tablet:1,laptop:2,desktop:3};function Dd({cols:e,entity:t}){let o=Ld(t),r=Nd("current"),a=((Array.isArray(e)?e[Fd[r]??3]:e)??1)*3,i=u=>{let s=t.fields[u]?.type;return s==="image"||s==="images"},l=o.contentFields.length>0?P(wt,{direction:"column",gap:"tight",children:o.contentFields.map(u=>i(u)?P(De,{height:120},u):We("div",{children:[P(we,{level:"small",variant:"muted",children:P(De,{})}),P(we,{children:P(De,{})})]},u))}):void 0,c=o.footerFields.length>0?P(we,{level:"small",children:P(De,{})}):void 0;return P(nn,{cols:e,children:Array.from({length:a},(u,s)=>P(rn,{title:P(De,{}),subtitle:o.subtitleFields.length>0?P(De,{}):void 0,content:l,footer:c,elevated:!0},s))})}function Bd({entity:e,basePath:t,onClick:o,cols:r=[1,2,3,4],staleTime:n=1e3*60*30,queryOptions:a,filter:i,hideFilters:l=!1,resultLabel:c,tone:u,renderCardOverlay:s,clientSort:d,collapsible:m=!1,defaultOpen:f,preview:p}){if(!Y)return null;let g=!!p,h=Ie(),v=t??`/${e.collection}`,{items:x,processed:w,loading:b,error:S}=yt(e,{enabled:!g,staleTime:n,queryOptions:a,clientSort:d}),I=g?!1:b,{isFavorite:F,toggleFavorite:U,favoritesFilter:T}=Or({collection:e.collection}),{showFavoritesOnly:y,setShowFavoritesOnly:L,filters:ee,setFilters:A}=zr({collection:e.collection}),C=g?p:w;g||(y&&(C=C.filter(T)),i&&(C=C.filter(i)),C=C.toSorted((z,te)=>{let de=F(String(z.id))?0:1,oe=F(String(te.id))?0:1;return de-oe}));let{t:O}=on([e.namespace,"crud"]),{t:R}=on("crud"),ge=Pd(z=>{g||(o?o(z):h(`${v}/${z}`))},[v,h,o,g]),ke=Rd(()=>an(e),[e]),Ae=O("name",{defaultValue:e.name});return We(Md,{children:[!l&&P(tn,{title:R("filters.title",{entity:Ae,defaultValue:`Browse ${Ae} - Filters`}),collapsible:m,defaultOpen:f,tone:u,children:P(rn,{children:We(wt,{direction:"column",children:[P(Id,{variant:!g&&y?"primary":"outline",icon:P(en,{size:18}),onClick:()=>L(!y),disabled:g,children:y?R("favorites.showAll",{defaultValue:"Show All"}):R("favorites.showFavorites",{defaultValue:"Show Favorites"})}),!g&&P(St,{entity:e,data:x,fieldsToFilter:ke})]})})}),P(tn,{title:I?R("results.title.fetching",{defaultValue:"Fetching..."}):c?c(C.length):R("results.title.count",{count:C.length,defaultValue:C.length===1?"Found 1 occurrence":`Found ${C.length} occurrences`}),collapsible:m,defaultOpen:m?!0:void 0,tone:u,children:I?P(Dd,{cols:r,entity:e}):S?We(wt,{align:"center",justify:"center",style:{padding:"var(--gap-3xl)",textAlign:"center"},children:[P(we,{level:"h3",style:{color:"var(--destructive)"},children:R("errors.fetchFailed",{defaultValue:`Failed to load ${e.name.toLowerCase()}`})}),P(we,{level:"small",style:{color:"var(--destructive)"},children:S instanceof Error?S.message:String(S)})]}):C.length===0?We(wt,{align:"center",justify:"center",style:{padding:"var(--gap-3xl)",textAlign:"center"},children:[P(we,{level:"h3",style:{color:"var(--muted-foreground)"},children:R("emptyState.title",{defaultValue:`No ${e.name.toLowerCase()} found`})}),P(we,{style:{color:"var(--muted-foreground)"},children:R("emptyState.description",{defaultValue:`No ${e.name.toLowerCase()} available at this time.`})})]}):P(nn,{cols:r,children:C.map(z=>{let te=F(z.id),de=g||o?void 0:`${v}/${z.id}`;return P(xt,{item:z,entity:e,detailHref:de,onClick:g?void 0:o?()=>ge(z.id):void 0,renderOverlay:s?.(z),renderActions:P(en,{fill:te?"#ef4444":"#ffffff",stroke:te?"#ef4444":"var(--muted-foreground)",onClick:oe=>{oe.preventDefault(),oe.stopPropagation(),g||U(z.id)},style:{cursor:g?"default":"pointer",width:"var(--icon-md)",height:"var(--icon-md)",transition:"fill 0.2s, stroke 0.2s",opacity:g?.5:1},"aria-label":te?R("favorites.remove",{defaultValue:"Remove from favorites"}):R("favorites.add",{defaultValue:"Add to favorites"})})},z.id)})})})]})}import{useEffect as Od,useId as zd,useMemo as fo,useState as Vd}from"react";import{FormProvider as Ud}from"react-hook-form";import{Badge as _d,Button as Tt,DropdownMenu as Hd,Grid as $d,Stack as Gd,Spinner as Wd}from"@donotdev/components";import{hasRoleAccess as Kd,useTranslation as sn}from"@donotdev/core";import{jsx as Q,jsxs as kt}from"react/jsx-runtime";function go(e){let{instanceKey:t,...o}=e;return Q(Yd,{...o},t)}function Yd({entity:e,onSubmit:t,t:o,className:r="",submitText:n,loading:a=!1,defaultValues:i,submitVariant:l="primary",secondaryButtonText:c,secondaryButtonVariant:u="outline",onSecondarySubmit:s,viewerRole:d,operation:m=i?"edit":"create",formId:f,cancelText:p,cancelPath:g,successPath:h,onCancel:v,hideVisibilityInfo:x=!1}){if(!Y)return null;let w=Ie(),b=N("userRole"),S=d??b,I=zd(),F=f??`entity-form-${e.name}-${I}`,{t:U}=sn([e.namespace,"crud"]),{t:T}=sn("crud"),y=o||U,ee=!x&&(S==="admin"||S==="super"),A=S==="user"||S==="admin"||S==="super",[C,O]=Vd(S==="admin"||S==="super"||S==="user"?S:"guest"),R={guest:"muted",user:"secondary",admin:"warning",super:"destructive",technical:"accent",owner:"secondary"},ge=["guest","user","admin","super"],ke={guest:"Guest",user:"User",admin:"Admin",super:"Super",technical:"System"},Ae=fo(()=>ge.filter(E=>Kd(S,E)).map(E=>({label:ke[E],checked:C===E,onClick:()=>O(E)})),[C,S]),z=Fr(e,{formId:F,operation:m,defaultValues:i,viewerRole:S,t:y,loading:a}),{control:te,handleSubmit:de,formState:{errors:oe},fields:D,formStatus:_,uploadProgress:ie,isDirty:Ee,hasUserInteracted:Ke,resetForm:vo}=z,Ye=Ee&&Ke,qe=fo(()=>{if(!A)return D;let E=ge.indexOf(C);return D.filter(({config:G})=>{let se=G.visibility;return se==="hidden"?!1:se==="technical"?!0:ge.indexOf(se)<=E})},[D,A,C]),pn=Br(qe,te);Od(()=>{F&&Dr.getState().setIsDirty(F,Ye)},[F,Ye]);let mn=()=>{vo(),v?v():w(g||"back")},fn=async E=>{await t(E),h&&w(h)},gn=p!==null,ho=p??T("form.cancel",{defaultValue:"Cancel"}),yo={gridColumn:"1 / -1",position:"sticky",bottom:0,backgroundColor:"var(--background)",borderTop:"1px solid var(--border)",paddingTop:"var(--gap-md)",paddingBottom:"var(--gap-md)",zIndex:10,marginTop:"var(--gap-lg)"},vn=a||m==="edit"&&!i,q=fo(()=>_==="uploading"?{loading:!0,loadingText:ie<100?T("form.uploading",{progress:Math.round(ie),defaultValue:`Uploading ${Math.round(ie)}%...`}):T("form.processing",{defaultValue:"Processing..."}),progress:ie}:_==="validating"?{loading:!0,loadingText:T("form.validating",{defaultValue:"Validating..."})}:_==="submitting"?{loading:!0,loadingText:T("form.saving",{defaultValue:"Saving..."})}:_==="success"?{loading:!1,successText:T("form.saved",{defaultValue:"Saved"})}:_==="error"?{loading:!1,errorText:T("form.error",{defaultValue:"Error \u2014 try again"})}:{loading:!1},[_,ie,T]);return Q(Ud,{...z,children:Q($r,{formId:F,children:kt("div",{style:{position:"relative",width:"100%",gridColumn:"1 / -1",display:"contents"},children:[vn&&Q(Wd,{overlay:!0}),kt("form",{onSubmit:E=>de(fn)(E),noValidate:!0,className:r,style:{width:"100%",gridColumn:"1 / -1",display:"contents"},children:[qe.map(({name:E,config:G,editable:se})=>{let X=pn[E];if(X&&!X.visible)return null;let bo=X?{...G,...X.required&&G.validation?{validation:{...G.validation,required:!0}}:X.required?{validation:{required:!0}}:{}}:G,hn=se&&!X?.disabled&&!X?.readonly,yn=ee&&G.visibility!=="guest",bn=G.visibility!=="hidden"?R[G.visibility]:void 0,Sn=ke[G.visibility]??G.visibility,So=hn?Q(Hr,{name:E,config:bo,control:te,errors:oe,t:y},E):Q(bt,{name:E,config:bo,value:i?.[E],t:y},E);return yn?kt("div",{style:{position:"relative"},children:[Q(_d,{as:"span",variant:bn,style:{position:"absolute",top:0,insetInlineEnd:0,fontSize:"var(--font-size-xs)",zIndex:1},children:Sn}),So]},E):So}),(()=>{let E=[];if(gn&&ho&&E.push(Q(Tt,{type:"button",onClick:mn,disabled:q.loading,variant:"outline",className:"dndev-w-full",children:ho},"cancel")),A){let X=R[C]||"muted";E.push(Q(Hd,{trigger:kt(Tt,{type:"button",variant:X,disabled:q.loading,className:"dndev-w-full",children:[T("visibility.preview",{defaultValue:"Preview"}),": ",ke[C]]}),items:Ae},"preview"))}c&&E.push(Q(Tt,{type:"button",onClick:()=>{if(s){let X=z.getValues();s(X)}},loading:q.loading,loadingText:q.loadingText,progress:q.progress,variant:u,className:"dndev-w-full",children:c},"secondary")),E.push(Q(Tt,{type:"submit",loading:q.loading,loadingText:q.loadingText,progress:q.progress,variant:q.successText?"success":q.errorText?"destructive":l,disabled:!!q.successText,className:"dndev-w-full",children:q.successText||q.errorText||n||T("form.submit",{defaultValue:"Submit"})},"submit"));let G=E.length;if(G===1)return Q(Gd,{direction:"column",gap:"tight",style:yo,children:E[0]});let se=G===2?"1fr 2fr":G===3?"1fr 1fr 2fr":"1fr 1fr 1fr 2fr";return Q($d,{cols:["1fr",se,se,se],gap:"tight",style:yo,children:E})})()]})]})})})}import{Card as qd,Section as Zd,Skeleton as At,Stack as Jd}from"@donotdev/components";import{useTranslation as Qd,useBreakpoint as Xd}from"@donotdev/core";import{jsx as Te,jsxs as eu}from"react/jsx-runtime";function jd({entity:e,queryOptions:t,title:o,basePath:r,cols:n=[1,1,3,3],tone:a,className:i}){if(!Y)return null;let{t:l}=Qd([e.namespace,"crud"]),{items:c,loading:u}=yt(e,{queryOptions:t}),s=Xd("current");if(!u&&c.length===0)return null;let d=r??`/${e.collection}`,m=o??l("recommendations.title",{defaultValue:"You may also like"}),f={mobile:0,tablet:1,laptop:2,desktop:3},p=(Array.isArray(n)?n[f[s]??3]:typeof n=="number"?n:3)??1,g=(typeof p=="number"?p:3)*3;return Te(Zd,{title:m,gridCols:n,tone:a,className:i,children:u?Array.from({length:g},(h,v)=>Te(qd,{title:Te(At,{width:"60%"}),subtitle:Te(At,{width:"40%"}),content:eu(Jd,{direction:"column",gap:"tight",children:[Te(At,{width:"80%"}),Te(At,{width:"50%"})]}),elevated:!0},v)):c.map(h=>Te(xt,{item:h,entity:e,detailHref:`${d}/${h.id}`},h.id))})}import{Button as tu,Stack as ou,Stepper as ru}from"@donotdev/components";import{useTranslation as nu}from"@donotdev/core";import{Fragment as iu,jsx as Et,jsxs as su}from"react/jsx-runtime";function au({workflow:e,onComplete:t,onStepChange:o,defaultValues:r,viewerRole:n,children:a,className:i}){if(!Y)return null;let{t:l}=nu("crud"),c=Ur(e,{onComplete:t,onStepChange:o,defaultValues:r});if(a)return Et(iu,{children:a(c)});let{currentStep:u,currentStepIndex:s,visibleSteps:d,isFirst:m,isLast:f,isSubmitting:p,stepData:g}=c,h=d.map((v,x)=>({number:x+1,title:v.title,content:null}));return su(ou,{className:i,gap:"large",children:[Et(ru,{steps:h,activeStep:s,showStepNumbers:!0,onStepChange:v=>{v<=s&&c.goToStep(v)}}),u.custom?u.custom(c.allData):u.entity?Et(go,{entity:u.entity,operation:"create",viewerRole:n,defaultValues:{...g[u.id],...!f&&{status:"draft"}},onSubmit:async v=>{await c.goNext(v)},submitText:f?l("workflow.submit",{defaultValue:"Submit"}):l("workflow.next",{defaultValue:"Next"}),cancelText:m?null:l("workflow.previous",{defaultValue:"Previous"}),onCancel:m?void 0:c.goPrevious,loading:p,hideVisibilityInfo:!0}):null,u.allowSkip&&!f&&Et(tu,{variant:"ghost",onClick:c.skipStep,className:"dndev-w-full",children:l("workflow.skip",{defaultValue:"Skip this step"})})]})}import{createContext as cn,useId as lu,use as ln}from"react";import{Controller as cu,FormProvider as du,useFormContext as uu}from"react-hook-form";import{Label as pu,Slot as mu,cn as fu,Stack as gu}from"@donotdev/components";import{jsx as fe}from"react/jsx-runtime";var fh=du,dn=cn({}),gh=({...e})=>fe(dn.Provider,{value:{name:e.name},children:fe(cu,{...e})}),un=cn({}),vh=({className:e,...t})=>{let o=lu();return fe(un.Provider,{value:{id:o},children:fe(gu,{className:e,...t})})},Rt=()=>{let e=ln(dn);if(!e||!e.name)return null;let t=ln(un);if(!t)return null;let{getFieldState:o,formState:r}=uu(),n=o(e.name,r),{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...n}},hh=({className:e,...t})=>{let o=Rt();if(!o)return null;let{error:r,formItemId:n}=o;return fe(pu,{className:fu(r&&"text-destructive",e),htmlFor:n,...t})},yh=({...e})=>{let t=Rt();if(!t)return null;let{error:o,formItemId:r,formDescriptionId:n,formMessageId:a}=t;return fe(mu,{id:r,"aria-describedby":o?`${n} ${a}`:`${n}`,"aria-invalid":!!o,...e})},bh=({className:e,...t})=>{let o=Rt();if(!o)return null;let{formDescriptionId:r}=o;return fe("p",{id:r,className:e,style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},...t})},Sh=({className:e,children:t,...o})=>{let r=Rt();if(!r)return null;let{error:n,formMessageId:a}=r,i=n?String(n?.message):t;return i?fe("p",{id:a,className:e,style:{fontSize:"var(--font-size-sm)",fontWeight:500,color:"var(--destructive)"},...o,children:i}):null};var vu={layoutContainer:"dndev-layout",sidebar:"sidebar",sidebarTop:"sidebar-top",sidebarContent:"sidebar-content",sidebarBottom:"sidebar-bottom",sidebarResizeHandle:"dndev-sidebar-resize-handle",header:"header",main:"main",footer:"footer",container:"dndev-container",pageContainer:"dndev-container",breadcrumbsContainer:"breadcrumbs-container"},hu={zHeader:"dndev-z-header",zSidebar:"dndev-z-sidebar",zOverlay:"dndev-z-overlay",zModal:"dndev-z-modal",zTooltip:"dndev-z-tooltip",zToast:"dndev-z-toast"},Nh={...vu,...hu},Lh={headerHeight:"--header-height",headerPadding:"--header-padding",headerIconSize:"--header-icon-size",headerLogoMaxHeight:"--header-logo-max-height",sidebarWidth:"--sidebar-width",sidebarPadding:"--sidebar-padding",mainPadding:"--main-padding",mainMaxWidth:"--main-max-width",contentWidth:"--content-width",contentPadding:"--content-padding",footerHeight:"--footer-height",footerPadding:"--footer-padding",zHeader:"--z-header",zSidebar:"--z-sidebar",zFooter:"--z-footer",zOverlay:"--z-overlay",zModal:"--z-modal",zTooltip:"--z-tooltip",zToast:"--z-toast"},Fh={headerHeight:"--header-height",headerPadding:"--header-padding",logoSize:"--logo-size",sidebarWidth:"--sidebar-width",sidebarPadding:"--sidebar-padding",footerHeight:"--footer-height",footerPadding:"--footer-padding",layoutGap:"--layout-gap",sectionGap:"--gap-lg",contentGap:"--content-gap",zHeader:"--z-header",zSidebar:"--z-sidebar",zFooter:"--z-footer",zModal:"--z-modal",zTooltip:"--z-tooltip"};export{yl as AppBranding,Cl as AppIcon,Tl as AppTitle,K as AssetResolver,In as AuthGuard,yp as AuthGuardFallback,Gt as AuthHeader,Ht as AuthMenu,fa as AuthReturnTo,Ml as Breadcrumbs,to as CacheSettings,Dg as ConsentBanner,Oo as DnDevNavigationMenu,oc as DropdownNavigation,Bd as EntityCardList,hd as EntityDisplayRenderer,go as EntityFormRenderer,Ad as EntityList,jd as EntityRecommendations,au as EntityWorkflow,Ms as FeatureCard,fs as FeatureDisabled,ic as FloatingLanguageSwitcher,co as FooterBranding,rd as FooterCopyright,ud as FooterLegalLinks,fh as Form,yh as FormControl,bh as FormDescription,gh as FormField,vh as FormItem,hh as FormLabel,Sh as FormMessage,$g as GameContainer,Yg as GameFlow,Ul as GameTitle,Ip as GoTo,za as GoToInput,Pa as GoToWrapper,pc as HeaderMenu,bc as HeaderNavigation,Cn as Icon,k as Link,zo as NotFoundPage,Ic as Notifications,Vg as PageConfig,et as PageContainer,bu as PasswordResetCallback,Es as ProgressBar,Ts as RedirectOverlay,Ei as Seo,Hc as SettingsMenu,Is as Skeleton,nl as TechBento,Zc as ThemeToggle,Nh as allLayoutClasses,Uu as createAuthConfig,Fh as cssVariables,yu as isAuthAvailable,Gm as isBillingAvailable,Xm as isCrudAvailable,zm as isFormStoreAvailable,of as isOAuthAvailable,vu as layoutClasses,hu as layoutUtilities,Lh as layoutVariables,Bm as resolveFaviconSet,Dm as resolveLogo,Le as sanitizeSvg,lf as tList,Jt as techLogos,N as useAuthSafe,zu as useAuthState,at as useAuthVisibility,Cm as useBack,qm as useBillingVisibility,Bu as useCanAccess,Nn as useCanNavigate,Qm as useCrudSafe,Rt as useFormField,ri as useFormStoreSafe,Su as useGoTo,Ou as useHasRole,Tm as useLocation,Rm as useMatch,Ie as useNavigate,re as useNavigationItems,Co as useNavigationRoute,tf as useOAuthSafe,km as useParams,wm as usePrefetch,Pm as useQueryParams,Im as useRedirectGuard,xm as useRefresh,Am as useRouteParam,Em as useSearchParams,yf as useSeo,zt as useStripeBillingSafe,Mu as useUserRole,Vu as withAuth};
5
+ ${d.email}`:""}`}),disabled:!0}),h&&T.push({label:i("auth.profile",{defaultValue:"Profile"}),icon:Pi,onClick:()=>g(h)}),v.forEach(y=>{let L=p.find(C=>C.path===y.path),te=y.label||L?.label||y.path.split("/").pop()||"Menu",A=y.icon?st(y.icon):L?.icon&&(typeof L.icon=="string"||typeof L.icon=="function")?st(L.icon):ze;T.push({label:te,icon:A,onClick:()=>g(y.path)})}),r.forEach(y=>{if(y.path){let L=p.find(C=>C.path===y.path),te=y.label||L?.label||y.path.split("/").pop()||"Menu",A=y.icon?st(y.icon):ze;T.push({label:te,icon:A,onClick:()=>g(y.path),disabled:y.disabled,style:y.style})}else if(y.onClick){let L=y.icon?st(y.icon):ze;T.push({label:y.label,icon:L,onClick:y.onClick,disabled:y.disabled,style:y.style})}}),T.push({label:i("auth.deleteAccount.label",{defaultValue:"Delete Account"}),icon:Li,onClick:w.startDeleteFlow,variant:"destructive"}),T.push({label:i("auth.signOut",{defaultValue:"Sign Out"}),icon:Ii,onClick:()=>m(),variant:"destructive"}),T},[h,v,r,m,w,i,p,f,d,x,b,g]);return Hi().length===0||l||!c||!u?null:Ji(Zi,{children:[pe(Go,{fallback:null,children:pe(Yi,{open:w.showPasswordDialog,isLoading:w.isDeleting,error:w.error,onReauth:T=>w.confirmDelete(T),onCancel:w.cancel})}),pe(Go,{fallback:null,children:pe(qi,{open:w.showConfirmDialog,isLoading:w.isDeleting,error:w.error,onConfirm:()=>w.confirmDelete(),onCancel:w.cancel})}),pe(zi,{trigger:pe(Mi,{variant:Oi.OUTLINE,icon:d?pe(Bi,{src:d.photoURL??void 0,fallback:S(),alt:b(),style:{margin:"-4px 0"}}):Ni,display:t,"aria-label":i("auth.userMenu",{defaultValue:"User menu"}),tooltip:!o&&f&&d?I():o?void 0:i("auth.userMenu",{defaultValue:"User menu"}),className:n,style:a,children:b()}),items:F,contentAlign:"end"})]})};import{jsx as V}from"react/jsx-runtime";var Qo=()=>null;function lt({display:e,variant:t=Jo.OUTLINE,signInLabel:o,className:r,style:n,children:a,...i}){return V(ji,{variant:t,icon:Qi,display:e,tooltip:o,className:r,style:n,...i,children:a??o})}var is=Zo(async()=>{try{return{default:(await import("@donotdev/auth")).AuthPartnerButton}}catch{return{default:Qo}}}),qo=Zo(async()=>{try{return{default:(await import("@donotdev/auth")).MultipleAuthProviders}}catch{return{default:Qo}}}),Gt=({display:e=os.AUTO,variant:t=Jo.OUTLINE,className:o,style:r})=>{let{t:n}=rs("dndev"),{shouldHide:a,isLoading:i,isReady:l,isAuthenticated:c}=at(),u=ns(),s=as(),[d,m]=Xi(!1),f=u.loginPath,p=n("auth.signIn",{defaultValue:"Sign In"}),g=n("auth.loading",{defaultValue:"Loading..."}),h=s.includes("password")||s.includes("emailLink");if(a||!l)return null;if(!c){if(f!==void 0)return V(k,{path:f,prefetch:!0,children:V(lt,{display:e,variant:t,signInLabel:p,className:o,style:r})});let v=s[0];return h?V(ts,{trigger:V(lt,{display:e,signInLabel:p,className:o,style:r}),title:p,open:d,onOpenChange:m,"data-content-size":"form",children:V($t,{fallback:V("div",{style:{padding:"var(--gap-md)",fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:g}),children:V(qo,{spacing:"medium",onSuccess:()=>m(!1)})})}):s.length>1?V(es,{trigger:V(lt,{display:e,signInLabel:p,className:o,style:r}),children:V($t,{fallback:V("div",{style:{padding:"var(--gap-md)",fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:g}),children:V(qo,{spacing:"tight"})})}):V($t,{fallback:V(lt,{display:e,signInLabel:p,className:o,style:r,disabled:i,tooltip:i?g:p,children:i?g:p}),children:V(is,{partnerId:v,display:e,className:o,style:r})})}return V(Ht,{display:e,loginPath:f,className:o,style:r})};import{AlertCircle as ss,RefreshCw as ls,Mail as cs,Cookie as ds}from"lucide-react";import{Card as us,Button as Wt,BUTTON_VARIANT as Kt,Stack as Xo}from"@donotdev/components";import{useTranslation as ps}from"@donotdev/core";import{jsx as Ve,jsxs as ct}from"react/jsx-runtime";function ms({featureName:e,title:t,description:o,showReviewCookies:r=!1,showContactSupport:n=!0,showRetry:a=!1,supportEmail:i="support@example.com",onRetry:l,onReviewCookies:c,customActions:u,className:s=""}){let{t:d}=ps("ui"),m=o||d("featureDisabled.description","{featureName} is not available. This may be due to missing configuration or disabled features.",{featureName:e}),f=()=>{if(c)c();else{let g=new CustomEvent("openCookieConsent");window.dispatchEvent(g)}},p=()=>{window.location.href=`mailto:${i}?subject=${encodeURIComponent(`Feature Unavailable: ${e}`)}&body=${encodeURIComponent(`I'm experiencing an issue with ${e} not being available.`)}`};return ct(us,{className:s,title:ct(Xo,{direction:"row",align:"center",gap:"tight",children:[Ve(ss,{className:"dndev-size-md",style:{color:"var(--destructive)"}}),t||e]}),subtitle:m,children:[" ",ct("div",{style:{display:"grid",gap:"var(--gap-md)"},children:[(r||n||a||u)&&ct(Xo,{direction:"row",wrap:"wrap",gap:"tight",children:[r&&Ve(Wt,{variant:Kt.OUTLINE,onClick:f,icon:ds,children:d("featureDisabled.reviewCookies","Review Cookies")}),n&&Ve(Wt,{variant:Kt.OUTLINE,onClick:p,icon:cs,children:d("featureDisabled.contactSupport","Contact Support")}),a&&Ve(Wt,{variant:Kt.OUTLINE,onClick:l,icon:ls,children:d("featureDisabled.retry","Retry")}),u]}),Ve("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:d("featureDisabled.helpText","If you believe this is an error, please contact support or try refreshing the page.")})]})]})}var fs=ms;import{Lock as dt,Shield as jo}from"lucide-react";import{useEffect as Yt,useRef as er,useCallback as gs}from"react";import{Portal as vs,Spinner as hs,Stack as ys,Text as Ue,Button as bs}from"@donotdev/components";import{useTranslation as Ss,useOverlay as le}from"@donotdev/core";import{jsx as ne,jsxs as or}from"react/jsx-runtime";var tr={connecting:0,preparing:2e3,redirecting:5e3},Cs=1e4;function xs(e,t){return t==="none"?null:t==="shield"?jo:t==="lock"?dt:e?e.startsWith("stripe-")||e.includes("payment")||e.includes("checkout")?dt:e.startsWith("oauth-")||e.startsWith("auth-")?jo:dt:dt}function ws(e){return e||"default"}function Ts(){let{t:e}=Ss("dndev"),t=le("isRedirectOverlayOpen"),o=le("redirectOperation"),r=le("redirectPhase"),n=le("showCancelButton"),a=le("redirectConfig"),i=le("redirectStartTime"),l=le("setRedirectPhase"),c=le("setShowCancelButton"),u=le("hideRedirectOverlay"),s=er([]),d=er(null),m=gs(()=>{u()},[u]);if(Yt(()=>{if(!t||!i)return;let b=a?.cancelTimeout??Cs,S=Date.now()-i;s.current.forEach(clearTimeout),s.current=[],d.current&&(clearTimeout(d.current),d.current=null);let I=(U,T)=>{let y=Math.max(0,T-S);if(y>0){let L=setTimeout(()=>{l(U)},y);s.current.push(L)}else l(U)};I("preparing",tr.preparing),I("redirecting",tr.redirecting);let F=Math.max(0,b-S);return d.current=setTimeout(()=>{c(!0),l("timeout")},F),()=>{s.current.forEach(clearTimeout),s.current=[],d.current&&(clearTimeout(d.current),d.current=null)}},[t,i,a?.cancelTimeout,l,c]),Yt(()=>{if(!t)return;let b=()=>{u()};return window.addEventListener("popstate",b),()=>window.removeEventListener("popstate",b)},[t,u]),Yt(()=>{if(!t)return;let b=()=>{};return document.addEventListener("visibilitychange",b),()=>document.removeEventListener("visibilitychange",b)},[t]),!t)return null;let f=ws(o),p=a?.title??e(`redirectOverlay.${f}.title`,{defaultValue:e("redirectOverlay.default.title")}),g=a?.message??e(`redirectOverlay.${f}.message`,{defaultValue:e("redirectOverlay.default.message")}),h=a?.subtitle??e(`redirectOverlay.${f}.subtitle`,{defaultValue:e("redirectOverlay.default.subtitle")}),v=e(`redirectOverlay.${f}.ariaLabel`,{defaultValue:e("redirectOverlay.default.ariaLabel")}),x=e(`redirectOverlay.phases.${r}`),w=xs(o,a?.icon);return ne(vs,{children:ne("div",{className:"dndev-spinner-overlay",role:"status","aria-busy":"true","aria-label":v,style:{zIndex:"var(--z-overlay, 9999)"},children:or("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"var(--gap-md)",textAlign:"center",maxWidth:"400px",padding:"var(--gap-lg)"},children:[or(ys,{direction:"row",align:"center",children:[w&&ne(w,{style:{width:"1.5rem",height:"1.5rem",color:"var(--primary)"},"aria-hidden":"true"}),ne(hs,{variant:"primary"})]}),ne(Ue,{as:"h3",style:{color:"var(--foreground)",margin:0},children:p}),ne(Ue,{variant:"muted",style:{color:"var(--foreground)",minHeight:"1.5em"},children:x}),ne(Ue,{variant:"muted",level:"small",style:{opacity:.8},children:g}),ne(Ue,{variant:"muted",level:"small",style:{opacity:.6},children:h}),ne(Ue,{variant:"muted",level:"small",style:{opacity:.5,marginTop:"var(--gap-sm)"},children:e("redirectOverlay.doNotRefresh")}),n&&ne(bs,{variant:"ghost",onClick:m,style:{marginTop:"var(--gap-md)"},children:e("redirectOverlay.cancel")})]})})})}import{useEffect as qt,useState as rr}from"react";import{cn as ks}from"@donotdev/components";import{jsx as nr}from"react/jsx-runtime";var As=({isActive:e=!1,progress:t,useFakeProgress:o=!0,duration:r=2e3,className:n,show:a=!0})=>{let[i,l]=rr(0),[c,u]=rr(!1);qt(()=>{if(!e||!o||t!==void 0)return;u(!0),l(0);let d=Date.now(),m=setInterval(()=>{let f=Date.now()-d,p=Math.min(f/r*90,90);l(p)},16);return()=>{clearInterval(m)}},[e,o,t,r]),qt(()=>{t!==void 0&&u(t>0&&t<100)},[t]),qt(()=>{if(!e){let d=setTimeout(()=>{u(!1),l(0)},300);return()=>clearTimeout(d)}},[e]);let s=t??i;return!a||!c?null:nr("div",{className:ks(n),style:{position:"fixed",insetInlineStart:0,insetInlineEnd:0,zIndex:9999,height:"4px",backgroundColor:"transparent",top:"var(--header-height, 0px)"},role:"progressbar","aria-valuenow":Math.round(s),"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Page loading progress",children:nr("div",{style:{height:"100%",width:`${s}%`,background:"linear-gradient(to right, var(--primary), color-mix(in srgb, var(--primary) 80%, transparent), color-mix(in srgb, var(--primary) 60%, transparent))",transition:e?"width 0.3s ease-out":"width 0.2s ease-in",boxShadow:"var(--shadow-sm)"}})})},Es=As;import{cn as ut,Stack as Rs}from"@donotdev/components";import{jsx as _e,jsxs as pg}from"react/jsx-runtime";var Ps=({variant:e="text",width:t,height:o,lines:r=1,show:n=!0,className:a,animation:i="pulse",style:l})=>{if(!n)return null;let c={backgroundColor:"var(--muted)",opacity:"var(--opacity-muted)",borderRadius:"var(--radius)",animation:i==="pulse"||i==="wave"?"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite":"none",...i==="wave"&&{background:"linear-gradient(to right, color-mix(in srgb, var(--muted) 50%, transparent), color-mix(in srgb, var(--muted) 30%, transparent), color-mix(in srgb, var(--muted) 50%, transparent))"}},u=()=>{let s={};return t&&(s.width=typeof t=="number"?`${t}px`:t),o&&(s.height=typeof o=="number"?`${o}px`:o),s};return e==="text"?_e(Rs,{gap:"tight",children:Array.from({length:r}).map((s,d)=>_e("div",{className:ut("dndev-skeleton",a),style:{...c,height:"var(--gap-md)",width:d===r-1?"75%":"100%",...u(),...l}},d))}):e==="circular"?_e("div",{className:ut("dndev-skeleton",a),style:{...c,borderRadius:"var(--radius-full)",width:t||o||"40px",height:o||t||"40px",...u(),...l}}):e==="rectangular"?_e("div",{className:ut("dndev-skeleton",a),style:{...c,width:t||"100%",height:o||"200px",...u(),...l}}):_e("div",{className:ut("dndev-skeleton",a),style:{...c,borderRadius:"var(--radius-lg)",width:t||"100%",height:o||"20px",...u(),...l}})};var Is=Ps;import{Card as Ns,IconBox as Ls,Stack as Fs,Text as Zt,renderCardContent as Ds}from"@donotdev/components";import{jsx as ae,jsxs as ar}from"react/jsx-runtime";var Bs=({icon:e,title:t,subtitle:o,content:r,href:n,variant:a,elevated:i,onClick:l,className:c,footer:u,style:s,clickable:d,maxLines:m=2,...f})=>{let p=Ds(r),g=m,h=g<=0?"auto":`calc(var(--font-size-lg) * var(--line-height) * ${g} + var(--gap-md))`,v=g<=0?"auto":`calc(var(--font-size-base) * var(--line-height) * ${g} + var(--gap-md))`,x=`${h} ${v} 1fr${u?" auto":""}`,w=U=>U<=0?{display:"block",overflow:"visible",wordBreak:"break-word",lineHeight:"var(--line-height)",WebkitLineClamp:"unset",WebkitBoxOrient:"unset"}:{display:"-webkit-box",WebkitLineClamp:U,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",wordBreak:"break-word",lineHeight:"var(--line-height)"},b={...w(g),fontSize:"var(--font-size-lg)",fontWeight:600,color:"inherit",margin:0,textAlign:"start",flex:1,minWidth:0},S={...w(g),fontSize:"var(--font-size-base)",fontWeight:g<=0?500:600,color:"var(--muted-foreground)",margin:0},I=e?ar(Fs,{direction:"row",align:g<=0?"start":"center",style:{width:"100%"},children:[ae(Ls,{icon:e}),ae(Zt,{as:"div",level:"h3",style:b,children:t})]}):ae(Zt,{as:"div",level:"h3",style:b,children:t}),F=ae(Ns,{variant:a,elevated:i,onClick:l,className:c,"data-clickable":n||l||d?"true":void 0,style:{paddingInlineStart:"var(--gap-md)",paddingInlineEnd:"var(--gap-md)",gap:"var(--gap-md)",height:"100%",textAlign:"start",...s},...f,children:ar("div",{style:{display:"grid",gridTemplateRows:x,gap:"var(--gap-md)",width:"100%"},children:[ae("div",{style:{display:"flex",alignItems:g<=0?"flex-start":"center",justifyContent:"flex-start"},children:I}),ae("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start"},children:ae(Zt,{as:"div",level:"body",style:S,children:o})}),ae("div",{children:p}),u&&ae("div",{children:u})]})});return n&&!l?ae(k,{path:n,style:{display:"block",textDecoration:"none",height:"100%"},"aria-label":t?`Learn more about ${t}`:void 0,children:F}):F},Ms=Bs;import{useState as qs}from"react";import{Bento as Zs,Card as Js,Section as Qs,Stack as Xs,Text as js,TONE as el,cn as tl}from"@donotdev/components";var Os='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#3178C6" d="M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z"/></svg>',zs='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#61DAFB" d="M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"/></svg>',Vs='<svg role="img" viewBox="0 0 410 404" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="vite-a" x1="6" y1="33" x2="235" y2="344" gradientUnits="userSpaceOnUse"><stop stop-color="#41D1FF"/><stop offset="1" stop-color="#BD34FE"/></linearGradient><linearGradient id="vite-b" x1="195" y1="9" x2="236" y2="293" gradientUnits="userSpaceOnUse"><stop stop-color="#FFEA83"/><stop offset=".08" stop-color="#FFDD35"/><stop offset="1" stop-color="#FFA800"/></linearGradient></defs><path fill="url(#vite-a)" d="M399.641 59.525 215.643 388.545c-3.799 6.793-13.559 6.833-17.415.073L10.582 59.556c-4.201-7.366 2.098-16.29 10.446-14.797l184.195 32.923c1.175.21 2.378.208 3.553-.006l180.343-32.87c8.32-1.517 14.649 7.337 10.522 14.72z"/><path fill="url(#vite-b)" d="M292.965 1.574 156.801 28.255c-2.238.439-3.895 2.335-4.03 4.611l-8.376 141.465c-.197 3.332 2.863 5.918 6.115 5.168l37.91-8.749c3.547-.818 6.752 2.306 6.023 5.873l-11.263 55.153c-.758 3.712 2.727 6.886 6.352 5.785l23.415-7.114c3.63-1.102 7.118 2.081 6.35 5.796l-17.899 86.633c-1.12 5.42 6.088 8.374 9.094 3.728l2.008-3.103 110.954-221.428c1.858-3.707-1.346-7.935-5.418-7.15l-39.022 7.532c-3.667.707-6.787-2.708-5.752-6.296l25.469-88.291c1.036-3.594-2.095-6.612-5.764-5.891z"/></svg>',Us='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M18.665 21.978C16.758 23.255 14.465 24 12 24 5.377 24 0 18.623 0 12S5.377 0 12 0s12 5.377 12 12c0 3.583-1.574 6.801-4.067 9.001L9.219 7.2H7.2v9.596h1.615V9.251l9.85 12.727Zm-3.332-8.533 1.6 2.061V7.2h-1.6v6.245Z"/></svg>',_s='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#339933" d="M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z"/></svg>',Hs='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#DD2C00" d="M19.455 8.369c-.538-.748-1.778-2.285-3.681-4.569-.826-.991-1.535-1.832-1.884-2.245a146 146 0 0 0-.488-.576l-.207-.245-.113-.133-.022-.032-.01-.005L12.57 0l-.609.488c-1.555 1.246-2.828 2.851-3.681 4.64-.523 1.064-.864 2.105-1.043 3.176-.047.241-.088.489-.121.738-.209-.017-.421-.028-.632-.033-.018-.001-.035-.002-.059-.003a7.46 7.46 0 0 0-2.28.274l-.317.089-.163.286c-.765 1.342-1.198 2.869-1.252 4.416-.07 2.01.477 3.954 1.583 5.625 1.082 1.633 2.61 2.882 4.42 3.611l.236.095.071.025.003-.001a9.59 9.59 0 0 0 2.941.568q.171.006.342.006c1.273 0 2.513-.249 3.69-.742l.008.004.313-.145a9.63 9.63 0 0 0 3.927-3.335c1.01-1.49 1.577-3.234 1.641-5.042.075-2.161-.643-4.304-2.133-6.371m-7.083 6.695c.328 1.244.264 2.44-.191 3.558-1.135-1.12-1.967-2.352-2.475-3.665-.543-1.404-.87-2.74-.974-3.975.48.157.922.366 1.315.622 1.132.737 1.914 1.902 2.325 3.461zm.207 6.022c.482.368.99.712 1.513 1.028-.771.21-1.565.302-2.369.273a8 8 0 0 1-.373-.022c.458-.394.869-.823 1.228-1.279zm1.347-6.431c-.516-1.957-1.527-3.437-3.002-4.398-.647-.421-1.385-.741-2.194-.95.011-.134.026-.268.043-.4.014-.113.03-.216.046-.313.133-.689.332-1.37.589-2.025.099-.25.206-.499.321-.74l.004-.008c.177-.358.376-.719.61-1.105l.092-.152-.003-.001c.544-.851 1.197-1.627 1.942-2.311l.288.341c.672.796 1.304 1.548 1.878 2.237 1.291 1.549 2.966 3.583 3.612 4.48 1.277 1.771 1.893 3.579 1.83 5.375-.049 1.395-.461 2.755-1.195 3.933-.694 1.116-1.661 2.05-2.8 2.708-.636-.318-1.559-.839-2.539-1.599.79-1.575.952-3.28.479-5.072zm-2.575 5.397c-.725.939-1.587 1.55-2.09 1.856-.081-.029-.163-.06-.243-.093l-.065-.026c-1.49-.616-2.747-1.656-3.635-3.01-.907-1.384-1.356-2.993-1.298-4.653.041-1.19.338-2.327.882-3.379.316-.07.638-.114.96-.131l.084-.002c.162-.003.324-.003.478 0 .227.011.454.035.677.07.073 1.513.445 3.145 1.105 4.852.637 1.644 1.694 3.162 3.144 4.515z"/></svg>',$s='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="m12 1.608 12 20.784H0Z"/></svg>',Gs='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#635BFF" d="M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z"/></svg>',Ws='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><defs><linearGradient id="vb-a" x1="0.414" y1="0.255" x2="0" y2="0.932" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#eab308"/><stop offset="1" stop-color="#ca8a04"/></linearGradient><linearGradient id="vb-b" x1="0.338" y1="0.02" x2="0.664" y2="0.966" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#fde68a"/><stop offset="1" stop-color="#fbbf24"/></linearGradient><linearGradient id="vb-c" y1="0.5" x2="1" y2="0.5" gradientUnits="objectBoundingBox"><stop offset="0" stop-color="#7dd3fc"/><stop offset="1" stop-color="#0ea5e9"/></linearGradient></defs><g transform="translate(-2056 -1899)"><path d="M742.271,987.024c-66.706,0-119.121,54.673-121.874,126.408l-2.551,95.471c-3.967,78.653,71.961,105.52,126.936,105.52Z" transform="translate(1463.458 1004.277)" fill="url(#vb-a)"/><path d="M92.616.01H319.894c54.53-.8,95.624,40.1,98.381,93.335l6.144,135.76c.732,67.368-48.116,94.95-104.525,95.335L92.616,327.374C34.061,327.8-1.063,283.663.022,229.105l3.8-135.76C7.41,33.54,33.3,1.093,92.616.01Z" transform="translate(2118.42 1991.302)" fill="url(#vb-b)"/><path d="M86.844.009H299.958c51.132-.746,89.665,37.307,92.25,86.824l5.761,126.29c.686,62.669-45.117,88.326-98.011,88.685L86.844,304.537C31.938,304.933-1,263.875.02,213.123L3.58,86.834C6.948,31.2,31.222,1.016,86.844.009Z" transform="translate(2136.977 2001.737)" fill="#111827"/><circle cx="27.626" cy="27.626" r="27.626" transform="translate(2421.148 2104.357)" fill="url(#vb-c)"/><circle cx="27.626" cy="27.626" r="27.626" transform="translate(2208.034 2104.357)" fill="url(#vb-c)"/></g></svg>',Ks='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#3FCF8E" d="M11.9 1.036c-.015-.986-1.26-1.41-1.874-.637L.764 12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z"/></svg>',Ys='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="#FBF0DF" d="M12 22.596c6.628 0 12-4.338 12-9.688 0-3.318-2.057-6.248-5.219-7.986-1.286-.715-2.297-1.357-3.139-1.89C14.058 2.025 13.08 1.404 12 1.404c-1.097 0-2.334.785-3.966 1.821a49.92 49.92 0 0 1-2.816 1.697C2.057 6.66 0 9.59 0 12.908c0 5.35 5.372 9.687 12 9.687v.001ZM10.599 4.715c.334-.759.503-1.58.498-2.409 0-.145.202-.187.23-.029.658 2.783-.902 4.162-2.057 4.624-.124.048-.199-.121-.103-.209a5.763 5.763 0 0 0 1.432-1.977Zm2.058-.102a5.82 5.82 0 0 0-.782-2.306v-.016c-.069-.123.086-.263.185-.172 1.962 2.111 1.307 4.067.556 5.051-.082.103-.23-.003-.189-.126a5.85 5.85 0 0 0 .23-2.431Zm1.776-.561a5.727 5.727 0 0 0-1.612-1.806v-.014c-.112-.085-.024-.274.114-.218 2.595 1.087 2.774 3.18 2.459 4.407a.116.116 0 0 1-.049.071.11.11 0 0 1-.153-.026.122.122 0 0 1-.022-.083a5.891 5.891 0 0 0-.737-2.331Zm-5.087.561c-.617.546-1.282.76-2.063 1-.117 0-.195-.078-.156-.181 1.752-.909 2.376-1.649 2.999-2.778 0 0 .155-.118.188.085 0 .304-.349 1.329-.968 1.874Zm4.945 11.237a2.957 2.957 0 0 1-.937 1.553c-.346.346-.8.565-1.286.62a2.178 2.178 0 0 1-1.327-.62 2.955 2.955 0 0 1-.925-1.553.244.244 0 0 1 .064-.198.234.234 0 0 1 .193-.069h3.965a.226.226 0 0 1 .19.07c.05.053.073.125.063.197Zm-5.458-2.176a1.862 1.862 0 0 1-2.384-.245 1.98 1.98 0 0 1-.233-2.447c.207-.319.503-.566.848-.713a1.84 1.84 0 0 1 1.092-.11c.366.075.703.261.967.531a1.98 1.98 0 0 1 .408 2.114 1.931 1.931 0 0 1-.698.869v.001Zm8.495.005a1.86 1.86 0 0 1-2.381-.253 1.964 1.964 0 0 1-.547-1.366c0-.384.11-.76.32-1.079.207-.319.503-.567.849-.713a1.844 1.844 0 0 1 1.093-.108c.367.076.704.262.968.534a1.98 1.98 0 0 1 .4 2.117 1.932 1.932 0 0 1-.702.868Z"/></svg>',Jt={bun:{svg:`data:image/svg+xml,${encodeURIComponent(Ys)}`,color:"#FBF0DF",name:"Bun"},typescript:{svg:`data:image/svg+xml,${encodeURIComponent(Os)}`,color:"#3178C6",name:"TypeScript"},react:{svg:`data:image/svg+xml,${encodeURIComponent(zs)}`,color:"#61DAFB",name:"React"},vite:{svg:`data:image/svg+xml,${encodeURIComponent(Vs)}`,color:"#BD34FE",name:"Vite"},nextjs:{svg:`data:image/svg+xml,${encodeURIComponent(Us)}`,color:"var(--foreground, #000000)",name:"Next.js"},nodejs:{svg:`data:image/svg+xml,${encodeURIComponent(_s)}`,color:"#339933",name:"Node.js"},firebase:{svg:`data:image/svg+xml,${encodeURIComponent(Hs)}`,color:"#DD2C00",name:"Firebase"},supabase:{svg:`data:image/svg+xml,${encodeURIComponent(Ks)}`,color:"#3FCF8E",name:"Supabase"},vercel:{svg:`data:image/svg+xml,${encodeURIComponent($s)}`,color:"var(--foreground, #000000)",name:"Vercel"},stripe:{svg:`data:image/svg+xml,${encodeURIComponent(Gs)}`,color:"#635BFF",name:"Stripe"},valibot:{svg:`data:image/svg+xml,${encodeURIComponent(Ws)}`,color:"#FBBF24",name:"Valibot"}};import{jsx as be,jsxs as al}from"react/jsx-runtime";function ol({techKey:e,variant:t}){let o=Jt[e],[r,n]=qs(!1);if(!o)return null;let a=decodeURIComponent(o.svg.replace("data:image/svg+xml,","")),i=Le(a);return be(Js,{variant:t,className:"dndev-tech-card",style:{"--tech-color":o.color},"data-hover":r,onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),children:al(Xs,{direction:"column",align:"center",gap:"tight",children:[be("div",{className:"dndev-tech-card-logo","data-tech":e,dangerouslySetInnerHTML:{__html:i}}),be(js,{as:"span",level:"small",children:o.name})]})})}function rl({title:e,techs:t,cols:o=3,columns:r,gap:n="medium",separator:a=!1,tone:i=el.GHOST,align:l,collapsible:c,open:u,onOpenChange:s,defaultOpen:d,className:m}){let f=r||(typeof o=="number"?{mobile:o,tablet:o,desktop:o,wide:o}:{mobile:o[0],tablet:o[1],desktop:o[2],wide:o[3]}),p=v=>{if(v==="long")return{cols:2,rows:1};if(v==="high")return{cols:1,rows:2};if(v==="huge")return{cols:2,rows:2}},g=t.filter(v=>Jt[v.name]).map(v=>({id:v.name,content:be(ol,{techKey:v.name,variant:v.variant}),span:p(v.size)})),h=be(Zs,{items:g,columns:f,gap:n,ariaLabel:"Technology stack"});return be(Qs,{title:e,separator:a,tone:i,align:l,collapsible:c,open:u,onOpenChange:s,defaultOpen:d,className:tl("dndev-tech-bento",m),children:be("div",{className:"dndev-tech-bento-grid",children:h})})}var nl=rl;import{Suspense as il,lazy as sl}from"react";import{useConsent as ir}from"@donotdev/core";import{jsx as sr}from"react/jsx-runtime";var ll=sl(()=>import("./CookieConsent-W7UE647Y.js"));function Bg(){let e=ir("hasConsented"),t=ir("showBanner");return e&&!t?null:sr(il,{fallback:null,children:sr(ll,{})})}import{useLayoutEffect as cl}from"react";import{useLayout as lr}from"@donotdev/core";function Ug({hideBreadcrumbs:e,preset:t}){let o=lr("setRouteHideBreadcrumbs"),r=lr("setRoutePresetOverride");return cl(()=>(e!=null&&o(e),t!=null&&r(t),()=>{o(!1),r(null)}),[e,t,o,r]),null}import{Button as cr,ScrollArea as dl}from"@donotdev/components";import{cn as dr}from"@donotdev/components";import{jsx as ce,jsxs as ul}from"react/jsx-runtime";function Gg({content:e,cta:t,align:o="center",justify:r="center",disableScrollArea:n=!1,contentVariant:a="narrow",contentClassName:i,ctaClassName:l}){let u=a==="narrow"?a==="narrow"&&ce("div",{className:"dndev-game-container__content-narrow",children:e}):e,s=n?ce("div",{style:{overflow:"auto",overscrollBehavior:"contain",height:"100%"},children:u}):ce(dl,{className:"dndev-game-container__scroll",children:u});return ul("div",{className:"dndev-game-container",children:[ce("div",{className:dr("dndev-game-container__content",i),"data-align":o,"data-justify":r,"data-content-variant":a,children:ce("div",{className:"dndev-game-container__scroll-wrapper",children:s})}),t&&ce("div",{className:dr("dndev-game-container__cta",l),children:Array.isArray(t)?ce("div",{className:"dndev-game-container__cta-buttons",children:t.map((d,m)=>ce(cr,{onClick:d.onClick,disabled:d.disabled??!1,variant:d.variant??"default",className:"dndev-game-container__cta-button",fullWidth:!0,children:d.label},m))}):ce(cr,{onClick:t.onClick,disabled:t.disabled??!1,variant:t.variant??"default",className:"dndev-game-container__cta-button",children:t.label})})]})}import{useEffect as pl,Suspense as ml,lazy as fl}from"react";import{jsx as Qt}from"react/jsx-runtime";var ur=new Set,pr=new Map;function gl(e,t){let o=pr.get(e);if(o)return o;let r=t[e];if(!r)return null;let n=fl(r);return pr.set(e,n),n}function qg({screenRegistry:e,currentScreen:t,nextScreen:o,fallback:r=null}){pl(()=>{if(o&&!ur.has(o)){ur.add(o);let a=e[o];a&&a().catch(()=>{})}},[o,e]);let n=t?gl(t,e):null;return!t||!n?null:Qt("div",{style:{height:"100%"},children:Qt(ml,{fallback:r,children:Qt(n,{})})})}import{cn as vl,DISPLAY as Xt}from"@donotdev/components";import{useAppConfig as mr}from"@donotdev/core";import{jsx as pt,jsxs as bl}from"react/jsx-runtime";var hl=({display:e=Xt.AUTO,linkToHome:t=!0,className:o})=>{let r=mr("name"),a=mr("shortName")||r||"App",i=K.getLogoSvgContent(),l=K.resolveLogo(),c=e===Xt.FULL||e===Xt.AUTO,u=i?pt("div",{className:"app-branding-logo",role:"img","aria-label":a,dangerouslySetInnerHTML:{__html:Le(i)}}):K.assetExists(l)?pt("img",{src:l,alt:a,className:"app-branding-logo"}):null,s=c&&pt("span",{className:"app-branding-title","data-display":e,children:a}),d=bl("div",{className:vl("app-branding",o),"data-display":e,children:[u,s]});return t?pt(k,{path:"/",className:"app-branding-link",children:d}):d},yl=hl;import{cn as fr}from"@donotdev/components";import{useAppConfig as gr}from"@donotdev/core";import{jsx as hr}from"react/jsx-runtime";var vr={sm:{width:"var(--icon-md)",height:"var(--icon-md)"},md:{width:"var(--icon-touch)",height:"var(--icon-touch)"},lg:{width:"var(--icon-touch)",height:"var(--icon-touch)"},xl:{width:"var(--touch-target)",height:"var(--touch-target)"},header:{height:"var(--icon-touch)",width:"auto"}},Sl=({alt:e,size:t="header",className:o})=>{let r=gr("name"),n=gr("shortName"),a=e||r||n||"App",i=K.getLogoSvgContent(),l=K.resolveLogo(),c=typeof t=="string"&&t in vr?vr[t]:typeof t=="string"?{}:{width:t,height:t};return i?hr("div",{className:fr("app-icon-header",o),style:{display:"inline-flex",...c},role:"img","aria-label":a,dangerouslySetInnerHTML:{__html:Le(i)}}):hr("img",{src:l,alt:a,className:fr(o),style:{objectFit:"contain",...c}})},Cl=Sl;import{cn as yr}from"@donotdev/components";import{useAppConfig as br,useBreakpoint as xl}from"@donotdev/core";import{jsx as Sr}from"react/jsx-runtime";var wl=({title:e,className:t,linkToHome:o=!0})=>{let r=xl("isMobileOrTablet"),n=br("name"),a=br("shortName"),i=e||r&&a||n||"App",l=Sr("div",{className:yr("dndev-text-base",t),style:{fontSize:"var(--font-size-xl)",fontWeight:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},children:i});return o?Sr(k,{path:"/",className:yr("dndev-inline-block",t),children:l}):l},Tl=wl;import{ChevronRight as Il}from"lucide-react";import{useMemo as Nl}from"react";import{cn as Ll}from"@donotdev/components";import{useTranslation as Fl}from"@donotdev/core";import{useLocation as Dl}from"@donotdev/ui/routing/hooks";import{useMemo as Cr}from"react";import{useNavigationStore as h1,getRoutes as kl,getRouteManifest as y1}from"@donotdev/core";function Al(){return Cr(()=>{try{let e=kl();return!e||e.length===0?[]:El(e)}catch{return[]}},[])}function xr(){let e=Al();return Cr(()=>e.flatMap(t=>t.routes),[e])}function El(e){let t=new Map;return e.forEach(o=>{let r=typeof o.path=="string"?o.path:String(o.path);if(!r||r==="undefined"||r==="null")return;let n=o.meta?.entity||Rl(r)||"other",a={path:r,label:o.meta?.title||Pl(r),icon:o.meta?.icon,component:o.component,importPath:o.importPath,exportName:o.exportName,auth:o.auth,meta:o.meta};t.has(n)||t.set(n,{label:n.charAt(0).toUpperCase()+n.slice(1),routes:[]}),t.get(n)?.routes.push(a)}),Array.from(t.values())}function Rl(e){return e.split("/").filter(Boolean)[0]||null}function Pl(e){let t=e.split("/").filter(Boolean),o=t[t.length-1];return o?o.split("-").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" "):"Home"}import{jsx as He,jsxs as Ol}from"react/jsx-runtime";var Bl=({items:e,separator:t=Il,showHome:o=!0,homeHref:r="/",variant:n="default",className:a})=>{let{t:i}=Fl("dndev"),l=Dl(),c=xr(),u=Nl(()=>new Set(c.map(m=>m.path)),[c]),s=e||(()=>{let m=l.pathname.split("/").filter(Boolean),f=[],p="";return m.forEach(g=>{p+=`/${g}`;let h=g.split("-").map(x=>x.charAt(0).toUpperCase()+x.slice(1)).join(" "),v=u.has(p)?p:void 0;f.push({label:h,href:v})}),f})(),d=o?[{label:i("navigation.home","Home"),href:r},...s]:s;return n==="smart"&&l.pathname.split("/").filter(Boolean).length<2?null:He("nav",{role:"navigation","aria-label":"Breadcrumb navigation",className:Ll("breadcrumbs",a),children:d.map((m,f)=>{let g=f===d.length-1||!m.href;return Ol("span",{className:"breadcrumb-item",children:[f>0&&He(t,{className:"dndev-size-md separator"}),m.icon&&He(m.icon,{className:"dndev-size-md icon"}),m.href&&!g?He(k,{path:m.href,className:"breadcrumb-link",children:m.label}):He("span",{className:"breadcrumb-label",children:m.label})]},f)})})},Ml=Bl;import{useTranslation as zl,maybeTranslate as wr,useLayout as jt,useAppConfig as Vl}from"@donotdev/core";import{jsx as Fe,jsxs as _l}from"react/jsx-runtime";var Ul=({asLink:e=!1,className:t})=>{let o=Vl("app"),r=jt("gameTitle"),n=jt("gameSubtitle"),a=jt("gameNamespace"),{t:i}=zl(a||"dndev"),l=wr(i,r??void 0),c=wr(i,n??void 0),u=o?.name||"Game";if(l)return Fe("div",{className:t,children:_l("div",{style:{textAlign:"center"},children:[Fe("h2",{style:{fontSize:"var(--font-size-lg)",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:l}),c&&Fe("p",{style:{color:"var(--muted-foreground)",fontSize:"var(--font-size-sm)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:c})]})});let s=Fe("h2",{style:{fontSize:"var(--font-size-lg)",fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:u});return e?Fe(k,{path:"/",className:t,style:{fontSize:"var(--font-size-2xl)",fontWeight:700,transition:"color var(--dur-fast) ease-out"},onMouseEnter:d=>d.currentTarget.style.color="var(--primary)",onMouseLeave:d=>d.currentTarget.style.color="var(--foreground)",children:u}):Fe("div",{className:t,children:s})};import{Trash2 as Hl}from"lucide-react";import{useState as Tr}from"react";import{Button as $l,BUTTON_VARIANT as Gl,Checkbox as Wl,Stack as eo,useToast as Kl}from"@donotdev/components";import{useTranslation as Yl}from"@donotdev/core";import{useRefresh as ql}from"@donotdev/ui/routing/hooks";import{jsx as mt,jsxs as kr}from"react/jsx-runtime";function Zl(){let{t:e}=Yl("dndev"),{toast:t}=Kl(),[o,r]=Tr(!1),n=ql(),[a,i]=Tr({localStorage:!0,sessionStorage:!0,applicationCache:!0,serviceWorker:!0,cookies:!0,indexedDB:!0,webSQL:!0,memoryCache:!0}),l=async()=>{try{r(!0);let c=[];if(a.localStorage&&typeof window<"u")try{localStorage.clear(),c.push("localStorage")}catch{}if(a.sessionStorage&&typeof window<"u")try{sessionStorage.clear(),c.push("sessionStorage")}catch{}if(a.indexedDB&&typeof window<"u"&&"indexedDB"in window)try{if("databases"in indexedDB){let s=await indexedDB.databases();await Promise.all(s.map(async d=>{if(d.name){let m=indexedDB.deleteDatabase(d.name);await new Promise((f,p)=>{m.onsuccess=()=>f(void 0),m.onerror=()=>p(m.error)})}}))}c.push("IndexedDB")}catch{}if(a.webSQL&&typeof window<"u"&&"openDatabase"in window)try{let s=globalThis.openDatabase("","","","");s&&s.transaction&&s.transaction(d=>{d.executeSql('SELECT name FROM sqlite_master WHERE type="table"',[],(m,f)=>{for(let p=0;p<f.rows.length;p++){let g=f.rows.item(p).name;/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(g)&&m.executeSql(`DROP TABLE IF EXISTS ${g}`)}})}),c.push("WebSQL")}catch{}if(a.applicationCache&&typeof window<"u"&&"caches"in window)try{let s=await caches.keys();await Promise.all(s.map(async d=>{try{await caches.delete(d)}catch{}})),c.push("Application Cache")}catch{}if(a.serviceWorker&&"serviceWorker"in navigator)try{let s=await navigator.serviceWorker.getRegistrations();await Promise.all(s.map(async d=>{try{await d.unregister()}catch{}})),c.push("Service Workers")}catch{}if(a.cookies)try{document.cookie.split(";").forEach(s=>{let d=s.indexOf("="),m=d>-1?s.slice(0,d):s;document.cookie=`${m.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/`,document.cookie=`${m.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=${window.location.hostname}`,document.cookie=`${m.trim()}=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=.${window.location.hostname}`}),c.push("Cookies")}catch{}if(a.memoryCache)try{"gc"in window&&typeof globalThis.gc=="function"&&globalThis.gc(),c.push("Memory Cache")}catch{}let u=c.length>0?e("settings.clearCache.success","Cache cleared successfully: {{items}}",{items:c.join(", ")}):e("settings.clearCache.noItemsCleared","No cache items were cleared");t("success",u),c.length>0&&setTimeout(()=>{typeof globalThis<"u"&&globalThis._DNDEV_STORES_&&(globalThis._DNDEV_STORES_={}),typeof window<"u"?window.location.href=window.location.href:n()},1e3)}catch{t("error",e("settings.clearCache.error","Error clearing cache"))}finally{r(!1)}};return kr(eo,{children:[mt(eo,{children:Object.entries(a).map(([c,u])=>kr(eo,{direction:"row",align:"center",gap:"tight",children:[mt(Wl,{id:c,checked:u,onCheckedChange:s=>i(d=>({...d,[c]:!!s}))}),mt("label",{htmlFor:c,style:{fontSize:"var(--font-size-sm)",fontWeight:500,lineHeight:1,cursor:"pointer"},children:e(`settings.clearCache.${c}`,c.charAt(0).toUpperCase()+c.slice(1))})]},c))}),mt($l,{variant:Gl.DESTRUCTIVE,style:{margin:"0 auto"},disabled:o||!Object.values(a).some(Boolean),onClick:l,icon:Hl,children:o?e("settings.clearCache.clearing","Clearing..."):e("settings.clearCache.button","Clear Cache")})]})}var to=Zl;import{DropdownMenu as jl,Button as oo,Stack as ec}from"@donotdev/components";import{Link as Jl}from"lucide-react";import{navigationMenuTriggerStylePrimitive as Ql}from"@donotdev/components";import{jsx as Ar,jsxs as Xl}from"react/jsx-runtime";var ft=({path:e,route:t,showIcons:o=!0})=>{let r=re(),n=t??r.find(l=>l.path===e);if(!n)return null;let a=o&&!!n.icon,i=!!n.label;return Xl(k,{path:n.path,className:Ql(),...a&&!i&&{"data-display":"compact"},children:[o&&Ar(W,{icon:n.icon,fallback:Jl}),Ar("span",{children:n.label})]})};import{jsx as Se}from"react/jsx-runtime";var tc=({navigation:e,className:t})=>Se(ec,{role:"navigation",direction:"row",align:"center",className:t,style:{gap:"var(--gap-sm)"},children:e.map((o,r)=>o.routes&&o.routes.length>0?Se(jl,{trigger:Se(oo,{icon:o.icon,children:o.label}),items:o.routes.map(n=>({label:n.label,children:Se(ft,{route:n}),asChild:!!n.path})),contentAlign:"start"},o.label+r):o.path?Se(oo,{icon:o.icon,"aria-label":o.label,render:({children:n,...a})=>Se(k,{path:o.path,...a,children:n}),children:o.label},o.label+r):Se(oo,{icon:o.icon,disabled:!0,"aria-label":o.label,children:o.label},o.label+r))}),oc=tc;import{Card as rc,cn as nc}from"@donotdev/components";import{jsx as ro}from"react/jsx-runtime";var ac=({languages:e,currentLanguage:t,onLanguageChange:o,className:r})=>ro(rc,{className:nc("dndev-z-modal",r),style:{position:"fixed",bottom:"var(--gap-md)",insetInlineEnd:"var(--gap-md)",display:"flex",alignItems:"center",gap:"var(--gap-sm)",transition:"var(--dur-fast) ease-out"},role:"region","aria-label":"Language selector","data-role":"floating",children:ro("select",{style:{backgroundColor:"transparent",outline:"none",fontSize:"var(--font-size-base)",cursor:"pointer"},value:t,onChange:n=>o?.(n.target.value),"aria-label":"Select language",children:e.map(n=>ro("option",{value:n,children:n},n))})}),ic=ac;import{MoreHorizontal as sc}from"lucide-react";import{Button as lc,BUTTON_VARIANT as cc,DropdownMenu as dc}from"@donotdev/components";import{jsx as Er}from"react/jsx-runtime";var uc=({children:e,className:t})=>Er(dc,{trigger:Er(lc,{variant:cc.GHOST,icon:sc,"aria-label":"Menu",className:t}),contentAlign:"end",children:e}),pc=uc;import{MoreHorizontal as mc}from"lucide-react";import{Link as fc}from"lucide-react";import{DISPLAY as $e,DropdownMenu as gc,Button as Rr}from"@donotdev/components";import{cn as vc}from"@donotdev/components";import{useBreakpoint as Pr,useTranslation as hc}from"@donotdev/core";import{jsx as Ce}from"react/jsx-runtime";var yc=({className:e="",showIcons:t=!0,display:o=$e.AUTO,path:r})=>{let{t:n}=hc("dndev"),a=Pr("isMobile"),i=Pr("isTablet"),l=re(),c=Co(r??"");return r?c?Ce(Rr,{variant:"ghost",display:o,icon:t?Ce(W,{icon:c.icon,fallback:fc}):void 0,className:e,render:({children:s,...d})=>Ce(k,{path:c.path,...d,children:s}),children:c.label}):null:(o===$e.AUTO?a||i?$e.COMPACT:$e.FULL:o)===$e.COMPACT?Ce(gc,{trigger:Ce(Rr,{variant:"ghost",icon:mc,"aria-label":n("navigation.menu","Navigation"),className:e}),contentAlign:"end",items:l.map(s=>({label:s.label,children:Ce(ft,{route:s,showIcons:t}),asChild:!0}))}):Ce(Oo,{overflowDetection:!0,showIcons:t,className:vc(e),style:{flex:1}})},bc=yc;import{Bell as Sc}from"lucide-react";import{useMemo as Cc,useEffect as xc,useRef as wc}from"react";import{Button as Tc,cn as kc,toast as Ac,Stack as Ec}from"@donotdev/components";import{jsx as no}from"react/jsx-runtime";var Rc={sm:{button:{width:"var(--icon-md)",height:"var(--icon-md)"},icon:{width:"var(--icon-md)",height:"var(--icon-md)"},badge:{width:"var(--icon-md)",height:"var(--icon-md)",fontSize:"var(--font-size-xs)"}},md:{button:{width:"var(--touch-target)",height:"var(--touch-target)"},icon:{width:"var(--icon-md)",height:"var(--icon-md)"},badge:{width:"var(--icon-md)",height:"var(--icon-md)",fontSize:"var(--font-size-xs)"}},lg:{button:{width:"var(--touch-target)",height:"var(--touch-target)"},icon:{width:"var(--icon-touch)",height:"var(--icon-touch)"},badge:{width:"var(--icon-touch)",height:"var(--icon-touch)",fontSize:"var(--font-size-sm)"}}},Pc=({notifications:e=[],count:t=0,loading:o=!1,onNotificationClick:r,onDropdownOpen:n,className:a,maxVisible:i=10,alwaysShow:l=!1,size:c="md",disabled:u=!1})=>{let s=Rc[c],d=wc(new Set),m=Cc(()=>t===0?null:t>99?"99+":t.toString(),[t]),f=t>0||l;return xc(()=>{e.forEach(p=>{if(!d.current.has(p.id)){d.current.add(p.id);let g=p.type==="error"?"error":p.type==="warning"?"warning":p.type==="success"?"success":"info";Ac({title:p.title,description:p.message,toastType:g,duration:0,onDismiss:()=>{d.current.delete(p.id),r&&r(p)}})}})},[e,r]),f?no("div",{className:kc(a),style:{position:"relative"},children:no(Tc,{disabled:u,style:{...s.button,position:"relative"},onClick:()=>{n?.()},onFocus:p=>{p.currentTarget.style.outline="2px solid var(--ring)",p.currentTarget.style.outlineOffset="2px"},onBlur:p=>{p.currentTarget.style.outline="none"},"aria-label":`${t} notification${t!==1?"s":""}`,icon:Sc,children:m&&no(Ec,{align:"center",justify:"center",style:{position:"absolute",top:"-0.25rem",insetInlineEnd:"-0.25rem",backgroundColor:"var(--destructive)",color:"var(--destructive-foreground)",borderRadius:"var(--radius-full)",fontWeight:600,lineHeight:1,minWidth:0,...s.badge},"aria-hidden":"true",children:m})})}):null},Ic=Pc;import{Settings as Nc,Check as Lc}from"lucide-react";import*as gt from"lucide-react";import{Button as Fc,BUTTON_VARIANT as Dc,DropdownMenu as Bc,Stack as Mc,DISPLAY as Oc}from"@donotdev/components";import{useTranslation as zc}from"@donotdev/core";import{useLanguageSelector as Vc,useTheme as ao,Flag as Uc}from"@donotdev/core";import{jsx as me,jsxs as $c}from"react/jsx-runtime";function _c({variant:e=Dc.OUTLINE}={}){let{t}=zc("dndev"),{languages:o,currentLanguage:r,changeLanguage:n,isLoading:a}=Vc(),i=ao("availableThemes"),l=ao("currentTheme"),c=ao("setTheme"),u=f=>{if(!f)return gt.Palette;let p=f.replace(/['"]/g,"");return gt[p]||gt.Palette},s=i.map(f=>{let p=u(f.meta?.icon),g=f.name===l;return{label:f.displayName||f.name,icon:p,onClick:()=>c(f.name),checked:g}}),d=o.map(f=>{let p=f.id===r;return{label:f.name,onClick:()=>n(f.id),disabled:a,checked:p,className:p?"bg-accent":void 0,iconEnd:p&&!a?Lc:void 0,children:$c(Mc,{direction:"row",align:"center",gap:"tight",children:[me(Uc,{code:f.flagCode||f.id,title:`${f.name} flag`}),me("span",{children:f.name}),a&&p&&me("div",{style:{marginInlineStart:"auto"},children:me("div",{style:{width:"0.5rem",height:"0.5rem",borderRadius:"50%",backgroundColor:"var(--primary)"}})})]})}}),m=[{label:t("auth.title","Authentication"),subContent:me(Gt,{display:Oc.COMPACT})},{label:t("settings.theme","Theme"),subItems:s},{label:t("settings.language","Language"),subItems:d},{label:t("settings.clearCache.title","Clear Cache"),subContent:me(to,{})}];return me(Bc,{trigger:me(Fc,{variant:e,"aria-label":t("settings.title","Settings"),icon:Nc}),items:m,contentWidth:"14rem",contentAlign:"end"})}var Hc=_c;import*as vt from"lucide-react";import{Button as Ir,BUTTON_VARIANT as Gc,DropdownMenu as Wc,DISPLAY as Kc}from"@donotdev/components";import{useTranslation as Yc}from"@donotdev/core";import{useTheme as io}from"@donotdev/core";import{jsx as lo}from"react/jsx-runtime";var so=e=>{if(!e)return vt.Palette;let t=e.replace(/['"]/g,"");return vt[t]||vt.Palette},qc=({display:e=Kc.AUTO,"no-tooltip":t=!1})=>{let{t:o}=Yc("dndev"),r=io("availableThemes"),n=io("currentTheme"),a=io("setTheme");if(r.length<=1)return null;let i=r.find(v=>v.name===n)||r[0],l=r.length===2?r.find(v=>v.name!==i?.name)||r[0]:null,c=i?so(i.meta?.icon):null,u=l?so(l.meta?.icon):null,s=i?.displayName||i?.name||"Theme",d=l?.displayName||l?.name||"Theme",m=r.length===2&&l&&u,f=m?u:c,p=m?t?void 0:o("common.themeSelector.tooltipWithNext","Change Theme: Switch to {{next}}",{next:l?.displayName||l?.name}):t?void 0:o("common.themeSelector.changeTheme","Change Theme"),g={variant:Gc.OUTLINE,"aria-label":o("common.themeSelector.changeTheme","Change Theme"),tooltip:p,icon:f,display:e};if(m&&l)return lo(Ir,{...g,onClick:()=>a(l.name),children:d});if(!i||!c)return null;let h=r.map(v=>{let x=so(v.meta?.icon),w=v.name===n;return{label:v.displayName||v.name,icon:x,onClick:()=>a(v.name),checked:w}});return lo(Wc,{trigger:lo(Ir,{...g,children:s}),items:h,contentWidth:"10rem"})},Zc=qc;import{ExternalLink as Jc}from"lucide-react";import{getPlatformEnvVar as Qc}from"@donotdev/core";import{jsx as Xc,jsxs as jc}from"react/jsx-runtime";var co=({className:e})=>{let o=Qc("APP_URL")==="https://donotdev.com";return jc("a",{href:o?"https://www.ambroise-park.com":"https://donotdev.com",target:"_blank",rel:"noopener noreferrer",className:e,style:{display:"inline-flex",alignItems:"center",gap:"var(--gap-sm)",fontSize:"var(--font-size-xs)"},children:[o?"AMBROISE-PARK":"DoNotDev",Xc(Jc,{style:{width:"12px",height:"12px"},"aria-hidden":"true"})]})};import{cn as ed}from"@donotdev/components";import{useTranslation as td,useAppConfig as od}from"@donotdev/core";import{jsxs as nd}from"react/jsx-runtime";var rd=({appName:e,year:t=new Date().getFullYear(),className:o})=>{let{t:r}=td("dndev"),n=od("app"),a=e||n?.name||"App";return nd("span",{className:ed(o),style:{flexShrink:0,color:"var(--muted-foreground)",fontSize:"var(--font-size-xs)"},children:["\xA9 ",t," ",a,". ",r("footer.legal.allRightsReserved")]})};import{Stack as sd}from"@donotdev/components";import{useTranslation as ld,maybeTranslate as cd,useAppConfig as dd}from"@donotdev/core";var ad=[{path:"#cookie-settings",label:"footer.legal.cookieSettings"},{label:"footer.legal.privacyPolicy",path:"/privacy"},{label:"footer.legal.termsOfService",path:"/terms"}],id=e=>e?.legalLinks===null?[]:e?.legalLinks??ad,Nr=id;import{jsx as Lr,jsxs as pd}from"react/jsx-runtime";var ud=({app:e,direction:t="column",gap:o="tight",align:r="stretch"})=>{let{t:n}=ld("dndev"),a=dd("app"),l=Nr((e||a||{}).footer),c={transition:"color var(--dur-fast) ease-out",textDecoration:"underline",textUnderlineOffset:"2px",color:"var(--muted-foreground)",fontSize:"var(--font-size-xs)"};return l.length===0?null:pd(sd,{direction:t,gap:o,align:r,children:[l.map(u=>Lr(k,{path:u.path,style:c,onMouseEnter:s=>s.currentTarget.style.color="var(--primary)",onMouseLeave:s=>s.currentTarget.style.color="var(--muted-foreground)",children:cd(n,u.label)},u.path)),Lr(co,{})]})};import{useEffect as md,useState as uo,useMemo as fd}from"react";import{Stack as po,Spinner as gd}from"@donotdev/components";import{useTranslation as Yr,isFieldVisible as vd}from"@donotdev/core";import*as B from"@donotdev/crud";var Y=typeof B?.useCrud=="function",Fr=B?.useEntityForm,Dr=B?.useFormStore,Br=B?.useFieldConditions,ht=B?.useCrud,Mr=B?.useCrudList,yt=B?.useCrudCardList,Or=B?.useEntityFavorites,zr=B?.useCrudFilters,Vr=B?.useCrudPageSize,Ur=B?.useEntityWorkflow,_r=B?.useReferenceResolver,bt=B?.DisplayFieldRenderer,Hr=B?.FormFieldRenderer,$r=B?.UploadProvider,St=B?.EntityFilters,Gr=B?.CrudCard,Wr=B?.translateFieldLabel,Kr=B?.formatValue;import{jsx as xe,jsxs as yd}from"react/jsx-runtime";function hd({entity:e,id:t,t:o,className:r="",loadingMessage:n,notFoundMessage:a,viewerRole:i,excludeFields:l,preview:c}){if(!Y)return null;let u=!!c,s=N("userRole"),d=i??(u?"super":s),{get:m,loading:f,data:p,error:g,isAvailable:h}=ht(e),[v,x]=uo(!1),[w,b]=uo(null),[S,I]=uo(null),{t:F}=Yr([e.namespace,"crud"]),{t:U}=Yr("crud"),T=o||F;md(()=>{if(u)return;if(!t){I(null),b(null),x(!1);return}if(!h||!m)return;let C=!1;return x(!0),b(null),m(t).then(O=>{C||(x(!1),O?(I(O),b(null)):(I(null),b(new Error("Entity not found"))))}).catch(O=>{C||(x(!1),b(O instanceof Error?O:new Error(String(O))),I(null))}),()=>{C=!0}},[t,m,h,u]);let y=u?c:p||S,L=u?null:g||w,te=u?!1:f||v||!t,A=fd(()=>y?Object.entries(e.fields).filter(([C,O])=>{if(l?.includes(C)||!vd(O.visibility,d)||O.visibility==="hidden")return!1;let E=y[C];return!(E==null||typeof E=="string"&&E.trim()===""||Array.isArray(E)&&E.length===0||typeof E=="object"&&!Array.isArray(E)&&E!==null&&Object.keys(E).length===0)}):[],[e.fields,d,y,l]);return te?xe("div",{style:{position:"relative",width:"100%",gridColumn:"1 / -1",display:"contents"},className:r,children:xe(gd,{overlay:!0,"aria-label":n||U("form.loading",{defaultValue:"Loading..."})})}):L||!y?xe(po,{align:"center",justify:"center",style:{padding:"var(--gap-3xl)",textAlign:"center"},className:r,children:yd(po,{direction:"column",gap:"tight",children:[xe("h3",{style:{color:"var(--muted-foreground)"},children:a||U("errors.notFound",{defaultValue:`${e.name} not found`})}),L&&xe("p",{style:{color:"var(--destructive)",fontSize:"var(--font-size-sm)"},children:L instanceof Error?L.message:String(L)})]})}):xe(po,{direction:"column",className:r,children:A.map(([C,O])=>xe(bt,{name:C,config:O,value:y[C],t:T},C))})}import{RefreshCw as bd,Plus as qr,Trash2 as Sd,Edit as Zr,Search as Cd}from"lucide-react";import{useCallback as xd,useState as Jr}from"react";import{DataTable as wd,Button as Ge,Stack as mo,ActionButton as Td,Section as Qr,Input as kd}from"@donotdev/components";import{useTranslation as Xr}from"@donotdev/core";import{Fragment as Ed,jsx as Q,jsxs as Ct}from"react/jsx-runtime";function Ad({entity:e,basePath:t,onClick:o,hideFilters:r=!1,pagination:n="auto",pageSize:a,queryOptions:i,exportable:l=!0,preview:c,tone:u}){if(!Y)return null;let s=!!c,d=Ie(),m=t??`/${e.collection}`,f=_r(e,!s),[p,g]=Jr(1),{pageSize:h,setPageSize:v}=Vr({collection:e.collection,...a!=null&&{defaultPageSize:a}}),[x,w]=Jr(""),{data:b,items:S,processed:I,loading:F,mutate:U,effectiveMode:T}=Mr(e,{enabled:!s,pagination:n,searchQuery:x,...i&&{queryOptions:i},...(n==="server"||n==="auto")&&{page:p,pageSize:h}}),y=s?c:I,L=s?!1:F,{delete:te}=ht(e),{t:A}=Xr("crud"),{t:C}=Xr([e.namespace,"crud"]),O=async()=>{await U()},E=xd(D=>{s||(o?o(D):d(`${m}/${D}`))},[m,d,o,s]),ge=async D=>{s||await te(D)},Ae=(e.listFields||Object.keys(e.fields)).map(D=>{let _=e.fields[D];if(!_)return null;let ie=Wr(D,_,C),Ee=_.type||"text";return{key:D,title:ie,dataIndex:D,sortable:!s,filterable:!s,align:Ee==="number"||Ee==="range"?"end":"start",render:(Ye,qe)=>Kr(Ye,_,C,{compact:!0,referenceData:f,item:qe})}}).filter(Boolean),j=[{key:"_actions",title:A("actions.label",{defaultValue:"Actions"}),dataIndex:void 0,sortable:!1,width:120,align:"center",render:(D,_)=>Ct(mo,{direction:"row",gap:"tight",align:"center",justify:"center",children:[s?Q(Ge,{variant:"outline",icon:Zr,disabled:!0,"aria-label":A("edit",{defaultValue:"Edit"})}):Q(Ge,{variant:"outline",icon:Zr,render:({children:ie,...Ee})=>Q(k,{path:`${m}/${_.id}`,onClick:Ke=>Ke.stopPropagation(),...Ee,children:ie}),"aria-label":A("edit",{defaultValue:"Edit"})}),Q(Td,{action:async()=>{await ge(_.id)},confirmText:A("delete.confirm",{defaultValue:"Are you sure you want to delete this item?"}),confirmTitle:A("delete.title",{defaultValue:"Delete Item"}),loadingText:A("delete.loading",{defaultValue:"Deleting..."}),variant:"destructive",icon:Sd,disabled:s,"aria-label":A("delete",{defaultValue:"Delete"}),children:A("delete",{defaultValue:"Delete"})})]})},...Ae],de=C("name",{defaultValue:e.name}),oe=y.length;return Ct(Ed,{children:[Q(Qr,{title:A("filters.title",{entity:de,defaultValue:`Browse ${de} - Filters`}),collapsible:!0,defaultOpen:!0,tone:u,children:Ct(mo,{children:[Ct(mo,{direction:"row",gap:"tight",align:"center",className:"dndev-w-full",style:{display:"grid",gridTemplateColumns:"1fr auto auto"},children:[Q(kd,{placeholder:A("search.placeholder",{defaultValue:"Search..."}),value:x,onChange:D=>w(D.target.value),icon:Cd,className:"dndev-w-full",disabled:s}),Q(Ge,{icon:bd,variant:"outline",onClick:O,disabled:s||L,display:"compact","aria-label":A("refresh",{defaultValue:"Refresh"})}),s?Q(Ge,{icon:qr,display:"compact",disabled:!0,children:A("addNew",{defaultValue:"Add New"})}):Q(Ge,{icon:qr,display:"compact",render:({children:D,..._})=>Q(k,{path:`${m}/new`,..._,children:D}),children:A("addNew",{defaultValue:"Add New"})})]}),!r&&Q(St,{entity:e,data:S,fieldsToFilter:e.listFields})]})}),Q(Qr,{title:L?A("results.title.fetching",{defaultValue:"Fetching..."}):A("results.title.count",{count:oe,defaultValue:oe===1?"Found 1 occurrence":`Found ${oe} occurrences`}),collapsible:!0,defaultOpen:!0,tone:u,children:Q(wd,{data:y,columns:j,sortable:!s,searchable:!1,pagination:!0,loading:L,onRowClick:s?void 0:D=>E(D.id),showingLabel:A("pagination.showing",{defaultValue:"Showing {{from}} to {{to}} of {{total}} entries"}),paginationPreviousLabel:A("pagination.previous",{defaultValue:"Previous"}),paginationNextLabel:A("pagination.next",{defaultValue:"Next"}),paginationItemsPerPagePlaceholder:A("pagination.itemsPerPagePlaceholder",{defaultValue:"Items per page"}),pageSize:h,onPageSizeChange:v,...!s&&T==="server"&&{currentPage:p,total:b?.total,onPageChange:g},exportable:s?!1:l,exportFilename:`${e.collection}-export`,exportLabel:A("export",{defaultValue:"Export"})})})]})}import{Heart as en}from"lucide-react";import{useMemo as Rd,useCallback as Pd}from"react";import{Card as rn,Grid as nn,Stack as wt,Text as we,Skeleton as De,Section as tn,Button as Id}from"@donotdev/components";import{useTranslation as on,getListCardFieldNames as an,useBreakpoint as Nd}from"@donotdev/core";import{jsx as jr}from"react/jsx-runtime";function xt({detailHref:e,onClick:t,...o}){if(!Y)return null;let r=jr(Gr,{...o,onClick:e?void 0:t});return e?jr(k,{path:e,"aria-label":o.item?.id?`View ${o.item.id}`:void 0,children:r}):r}import{Fragment as Md,jsx as P,jsxs as We}from"react/jsx-runtime";function Ld(e){let t=e.listCardFields;if(t&&!Array.isArray(t)){let i=t;return{titleFields:i.title??[],subtitleFields:i.subtitle??[],contentFields:i.content??[],footerFields:i.footer??[]}}let o=an(e),r=i=>{let l=e.fields[i]?.type;return l==="image"||l==="images"},n=o.filter(i=>!r(i)),a=o.filter(r);return{titleFields:n.length>0?[n[0]]:[],subtitleFields:[],contentFields:[...n.slice(1,4),...a],footerFields:[]}}var Fd={mobile:0,tablet:1,laptop:2,desktop:3};function Dd({cols:e,entity:t}){let o=Ld(t),r=Nd("current"),a=((Array.isArray(e)?e[Fd[r]??3]:e)??1)*3,i=u=>{let s=t.fields[u]?.type;return s==="image"||s==="images"},l=o.contentFields.length>0?P(wt,{direction:"column",gap:"tight",children:o.contentFields.map(u=>i(u)?P(De,{height:120},u):We("div",{children:[P(we,{level:"small",variant:"muted",children:P(De,{})}),P(we,{children:P(De,{})})]},u))}):void 0,c=o.footerFields.length>0?P(we,{level:"small",children:P(De,{})}):void 0;return P(nn,{cols:e,children:Array.from({length:a},(u,s)=>P(rn,{title:P(De,{}),subtitle:o.subtitleFields.length>0?P(De,{}):void 0,content:l,footer:c,elevated:!0},s))})}function Bd({entity:e,basePath:t,onClick:o,cols:r=[1,2,3,4],staleTime:n=1e3*60*30,queryOptions:a,filter:i,hideFilters:l=!1,resultLabel:c,tone:u,renderCardOverlay:s,clientSort:d,collapsible:m=!1,defaultOpen:f,preview:p}){if(!Y)return null;let g=!!p,h=Ie(),v=t??`/${e.collection}`,{items:x,processed:w,loading:b,error:S}=yt(e,{enabled:!g,staleTime:n,queryOptions:a,clientSort:d}),I=g?!1:b,{isFavorite:F,toggleFavorite:U,favoritesFilter:T}=Or({collection:e.collection}),{showFavoritesOnly:y,setShowFavoritesOnly:L,filters:te,setFilters:A}=zr({collection:e.collection}),C=g?p:w;g||(y&&(C=C.filter(T)),i&&(C=C.filter(i)),C=C.toSorted((z,j)=>{let de=F(String(z.id))?0:1,oe=F(String(j.id))?0:1;return de-oe}));let{t:O}=on([e.namespace,"crud"]),{t:E}=on("crud"),ge=Pd(z=>{g||(o?o(z):h(`${v}/${z}`))},[v,h,o,g]),ke=Rd(()=>an(e),[e]),Ae=O("name",{defaultValue:e.name});return We(Md,{children:[!l&&P(tn,{title:E("filters.title",{entity:Ae,defaultValue:`Browse ${Ae} - Filters`}),collapsible:m,defaultOpen:f,tone:u,children:P(rn,{children:We(wt,{direction:"column",children:[P(Id,{variant:!g&&y?"primary":"outline",icon:P(en,{size:18}),onClick:()=>L(!y),disabled:g,children:y?E("favorites.showAll",{defaultValue:"Show All"}):E("favorites.showFavorites",{defaultValue:"Show Favorites"})}),!g&&P(St,{entity:e,data:x,fieldsToFilter:ke})]})})}),P(tn,{title:I?E("results.title.fetching",{defaultValue:"Fetching..."}):c?c(C.length):E("results.title.count",{count:C.length,defaultValue:C.length===1?"Found 1 occurrence":`Found ${C.length} occurrences`}),collapsible:m,defaultOpen:m?!0:void 0,tone:u,children:I?P(Dd,{cols:r,entity:e}):S?We(wt,{align:"center",justify:"center",style:{padding:"var(--gap-3xl)",textAlign:"center"},children:[P(we,{level:"h3",style:{color:"var(--destructive)"},children:E("errors.fetchFailed",{defaultValue:`Failed to load ${e.name.toLowerCase()}`})}),P(we,{level:"small",style:{color:"var(--destructive)"},children:S instanceof Error?S.message:String(S)})]}):C.length===0?We(wt,{align:"center",justify:"center",style:{padding:"var(--gap-3xl)",textAlign:"center"},children:[P(we,{level:"h3",style:{color:"var(--muted-foreground)"},children:E("emptyState.title",{defaultValue:`No ${e.name.toLowerCase()} found`})}),P(we,{style:{color:"var(--muted-foreground)"},children:E("emptyState.description",{defaultValue:`No ${e.name.toLowerCase()} available at this time.`})})]}):P(nn,{cols:r,children:C.map(z=>{let j=F(z.id),de=g||o?void 0:`${v}/${z.id}`;return P(xt,{item:z,entity:e,detailHref:de,onClick:g?void 0:o?()=>ge(z.id):void 0,renderOverlay:s?.(z),renderActions:P(en,{fill:j?"#ef4444":"#ffffff",stroke:j?"#ef4444":"var(--muted-foreground)",onClick:oe=>{oe.preventDefault(),oe.stopPropagation(),g||U(z.id)},style:{cursor:g?"default":"pointer",width:"var(--icon-md)",height:"var(--icon-md)",transition:"fill 0.2s, stroke 0.2s",opacity:g?.5:1},"aria-label":j?E("favorites.remove",{defaultValue:"Remove from favorites"}):E("favorites.add",{defaultValue:"Add to favorites"})})},z.id)})})})]})}import{useEffect as Od,useId as zd,useMemo as fo,useState as Vd}from"react";import{FormProvider as Ud,useWatch as _d}from"react-hook-form";import{Badge as Hd,Button as Tt,DropdownMenu as $d,Grid as Gd,Stack as Wd,Spinner as Kd}from"@donotdev/components";import{hasRoleAccess as Yd,useTranslation as sn}from"@donotdev/core";import{jsx as q,jsxs as kt}from"react/jsx-runtime";function qd({name:e,config:t,control:o,t:r}){let n=_d({control:o,name:e});return q(bt,{name:e,config:t,value:n,t:r})}function go(e){let{instanceKey:t,...o}=e;return q(Zd,{...o},t)}function Zd({entity:e,onSubmit:t,t:o,className:r="",submitText:n,loading:a=!1,defaultValues:i,submitVariant:l="primary",secondaryButtonText:c,secondaryButtonVariant:u="outline",onSecondarySubmit:s,viewerRole:d,operation:m=i?"edit":"create",formId:f,cancelText:p,cancelPath:g,successPath:h,onCancel:v,hideVisibilityInfo:x=!1}){if(!Y)return null;let w=Ie(),b=N("userRole"),S=d??b,I=zd(),F=f??`entity-form-${e.name}-${I}`,{t:U}=sn([e.namespace,"crud"]),{t:T}=sn("crud"),y=o||U,te=!x&&(S==="admin"||S==="super"),A=S==="user"||S==="admin"||S==="super",[C,O]=Vd(S==="admin"||S==="super"||S==="user"?S:"guest"),E={guest:"muted",user:"secondary",admin:"warning",super:"destructive",technical:"accent",owner:"secondary"},ge=["guest","user","admin","super"],ke={guest:"Guest",user:"User",admin:"Admin",super:"Super",technical:"System"},Ae=fo(()=>ge.filter(R=>Yd(S,R)).map(R=>({label:ke[R],checked:C===R,onClick:()=>O(R)})),[C,S]),z=Fr(e,{formId:F,operation:m,defaultValues:i,viewerRole:S,t:y,loading:a}),{control:j,handleSubmit:de,formState:{errors:oe},fields:D,formStatus:_,uploadProgress:ie,isDirty:Ee,hasUserInteracted:Ke,resetForm:vo}=z,Ye=Ee&&Ke,qe=fo(()=>{if(!A)return D;let R=ge.indexOf(C);return D.filter(({config:G})=>{let se=G.visibility;return se==="hidden"?!1:se==="technical"?!0:ge.indexOf(se)<=R})},[D,A,C]),pn=Br(qe,j);Od(()=>{F&&Dr.getState().setIsDirty(F,Ye)},[F,Ye]);let mn=()=>{vo(),v?v():w(g||"back")},fn=async R=>{await t(R),h&&w(h)},gn=p!==null,ho=p??T("form.cancel",{defaultValue:"Cancel"}),yo={gridColumn:"1 / -1",position:"sticky",bottom:0,backgroundColor:"var(--background)",borderTop:"1px solid var(--border)",paddingTop:"var(--gap-md)",paddingBottom:"var(--gap-md)",zIndex:10,marginTop:"var(--gap-lg)"},vn=a||m==="edit"&&!i,Z=fo(()=>_==="uploading"?{loading:!0,loadingText:ie<100?T("form.uploading",{progress:Math.round(ie),defaultValue:`Uploading ${Math.round(ie)}%...`}):T("form.processing",{defaultValue:"Processing..."}),progress:ie}:_==="validating"?{loading:!0,loadingText:T("form.validating",{defaultValue:"Validating..."})}:_==="submitting"?{loading:!0,loadingText:T("form.saving",{defaultValue:"Saving..."})}:_==="success"?{loading:!1,successText:T("form.saved",{defaultValue:"Saved"})}:_==="error"?{loading:!1,errorText:T("form.error",{defaultValue:"Error \u2014 try again"})}:{loading:!1},[_,ie,T]);return q(Ud,{...z,children:q($r,{formId:F,children:kt("div",{style:{position:"relative",width:"100%",gridColumn:"1 / -1",display:"contents"},children:[vn&&q(Kd,{overlay:!0}),kt("form",{onSubmit:R=>de(fn)(R),noValidate:!0,className:r,style:{width:"100%",gridColumn:"1 / -1",display:"contents"},children:[qe.map(({name:R,config:G,editable:se})=>{let X=pn[R];if(X&&!X.visible)return null;let bo=X?{...G,...X.required&&G.validation?{validation:{...G.validation,required:!0}}:X.required?{validation:{required:!0}}:{}}:G,hn=se&&!X?.disabled&&!X?.readonly,yn=te&&G.visibility!=="guest",bn=G.visibility!=="hidden"?E[G.visibility]:void 0,Sn=ke[G.visibility]??G.visibility,So=hn?q(Hr,{name:R,config:bo,control:j,errors:oe,t:y},R):q(qd,{name:R,config:bo,control:j,t:y},R);return yn?kt("div",{style:{position:"relative"},children:[q(Hd,{as:"span",variant:bn,style:{position:"absolute",top:0,insetInlineEnd:0,fontSize:"var(--font-size-xs)",zIndex:1},children:Sn}),So]},R):So}),(()=>{let R=[];if(gn&&ho&&R.push(q(Tt,{type:"button",onClick:mn,disabled:Z.loading,variant:"outline",className:"dndev-w-full",children:ho},"cancel")),A){let X=E[C]||"muted";R.push(q($d,{trigger:kt(Tt,{type:"button",variant:X,disabled:Z.loading,className:"dndev-w-full",children:[T("visibility.preview",{defaultValue:"Preview"}),": ",ke[C]]}),items:Ae},"preview"))}c&&R.push(q(Tt,{type:"button",onClick:()=>{if(s){let X=z.getValues();s(X)}},loading:Z.loading,loadingText:Z.loadingText,progress:Z.progress,variant:u,className:"dndev-w-full",children:c},"secondary")),R.push(q(Tt,{type:"submit",loading:Z.loading,loadingText:Z.loadingText,progress:Z.progress,variant:Z.successText?"success":Z.errorText?"destructive":l,disabled:!!Z.successText,className:"dndev-w-full",children:Z.successText||Z.errorText||n||T("form.submit",{defaultValue:"Submit"})},"submit"));let G=R.length;if(G===1)return q(Wd,{direction:"column",gap:"tight",style:yo,children:R[0]});let se=G===2?"1fr 2fr":G===3?"1fr 1fr 2fr":"1fr 1fr 1fr 2fr";return q(Gd,{cols:["1fr",se,se,se],gap:"tight",style:yo,children:R})})()]})]})})})}import{Card as Jd,Section as Qd,Skeleton as At,Stack as Xd}from"@donotdev/components";import{useTranslation as jd,useBreakpoint as eu}from"@donotdev/core";import{jsx as Te,jsxs as ou}from"react/jsx-runtime";function tu({entity:e,queryOptions:t,title:o,basePath:r,cols:n=[1,1,3,3],tone:a,className:i}){if(!Y)return null;let{t:l}=jd([e.namespace,"crud"]),{items:c,loading:u}=yt(e,{queryOptions:t}),s=eu("current");if(!u&&c.length===0)return null;let d=r??`/${e.collection}`,m=o??l("recommendations.title",{defaultValue:"You may also like"}),f={mobile:0,tablet:1,laptop:2,desktop:3},p=(Array.isArray(n)?n[f[s]??3]:typeof n=="number"?n:3)??1,g=(typeof p=="number"?p:3)*3;return Te(Qd,{title:m,gridCols:n,tone:a,className:i,children:u?Array.from({length:g},(h,v)=>Te(Jd,{title:Te(At,{width:"60%"}),subtitle:Te(At,{width:"40%"}),content:ou(Xd,{direction:"column",gap:"tight",children:[Te(At,{width:"80%"}),Te(At,{width:"50%"})]}),elevated:!0},v)):c.map(h=>Te(xt,{item:h,entity:e,detailHref:`${d}/${h.id}`},h.id))})}import{Button as ru,Stack as nu,Stepper as au}from"@donotdev/components";import{useTranslation as iu}from"@donotdev/core";import{Fragment as lu,jsx as Et,jsxs as cu}from"react/jsx-runtime";function su({workflow:e,onComplete:t,onStepChange:o,defaultValues:r,viewerRole:n,children:a,className:i}){if(!Y)return null;let{t:l}=iu("crud"),c=Ur(e,{onComplete:t,onStepChange:o,defaultValues:r});if(a)return Et(lu,{children:a(c)});let{currentStep:u,currentStepIndex:s,visibleSteps:d,isFirst:m,isLast:f,isSubmitting:p,stepData:g}=c,h=d.map((v,x)=>({number:x+1,title:v.title,content:null}));return cu(nu,{className:i,gap:"large",children:[Et(au,{steps:h,activeStep:s,showStepNumbers:!0,onStepChange:v=>{v<=s&&c.goToStep(v)}}),u.custom?u.custom(c.allData):u.entity?Et(go,{entity:u.entity,operation:"create",viewerRole:n,defaultValues:{...g[u.id],...!f&&{status:"draft"}},onSubmit:async v=>{await c.goNext(v)},submitText:f?l("workflow.submit",{defaultValue:"Submit"}):l("workflow.next",{defaultValue:"Next"}),cancelText:m?null:l("workflow.previous",{defaultValue:"Previous"}),onCancel:m?void 0:c.goPrevious,loading:p,hideVisibilityInfo:!0}):null,u.allowSkip&&!f&&Et(ru,{variant:"ghost",onClick:c.skipStep,className:"dndev-w-full",children:l("workflow.skip",{defaultValue:"Skip this step"})})]})}import{createContext as cn,useId as du,use as ln}from"react";import{Controller as uu,FormProvider as pu,useFormContext as mu}from"react-hook-form";import{Label as fu,Slot as gu,cn as vu,Stack as hu}from"@donotdev/components";import{jsx as fe}from"react/jsx-runtime";var gh=pu,dn=cn({}),vh=({...e})=>fe(dn.Provider,{value:{name:e.name},children:fe(uu,{...e})}),un=cn({}),hh=({className:e,...t})=>{let o=du();return fe(un.Provider,{value:{id:o},children:fe(hu,{className:e,...t})})},Rt=()=>{let e=ln(dn);if(!e||!e.name)return null;let t=ln(un);if(!t)return null;let{getFieldState:o,formState:r}=mu(),n=o(e.name,r),{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...n}},yh=({className:e,...t})=>{let o=Rt();if(!o)return null;let{error:r,formItemId:n}=o;return fe(fu,{className:vu(r&&"text-destructive",e),htmlFor:n,...t})},bh=({...e})=>{let t=Rt();if(!t)return null;let{error:o,formItemId:r,formDescriptionId:n,formMessageId:a}=t;return fe(gu,{id:r,"aria-describedby":o?`${n} ${a}`:`${n}`,"aria-invalid":!!o,...e})},Sh=({className:e,...t})=>{let o=Rt();if(!o)return null;let{formDescriptionId:r}=o;return fe("p",{id:r,className:e,style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},...t})},Ch=({className:e,children:t,...o})=>{let r=Rt();if(!r)return null;let{error:n,formMessageId:a}=r,i=n?String(n?.message):t;return i?fe("p",{id:a,className:e,style:{fontSize:"var(--font-size-sm)",fontWeight:500,color:"var(--destructive)"},...o,children:i}):null};var yu={layoutContainer:"dndev-layout",sidebar:"sidebar",sidebarTop:"sidebar-top",sidebarContent:"sidebar-content",sidebarBottom:"sidebar-bottom",sidebarResizeHandle:"dndev-sidebar-resize-handle",header:"header",main:"main",footer:"footer",container:"dndev-container",pageContainer:"dndev-container",breadcrumbsContainer:"breadcrumbs-container"},bu={zHeader:"dndev-z-header",zSidebar:"dndev-z-sidebar",zOverlay:"dndev-z-overlay",zModal:"dndev-z-modal",zTooltip:"dndev-z-tooltip",zToast:"dndev-z-toast"},Lh={...yu,...bu},Fh={headerHeight:"--header-height",headerPadding:"--header-padding",headerIconSize:"--header-icon-size",headerLogoMaxHeight:"--header-logo-max-height",sidebarWidth:"--sidebar-width",sidebarPadding:"--sidebar-padding",mainPadding:"--main-padding",mainMaxWidth:"--main-max-width",contentWidth:"--content-width",contentPadding:"--content-padding",footerHeight:"--footer-height",footerPadding:"--footer-padding",zHeader:"--z-header",zSidebar:"--z-sidebar",zFooter:"--z-footer",zOverlay:"--z-overlay",zModal:"--z-modal",zTooltip:"--z-tooltip",zToast:"--z-toast"},Dh={headerHeight:"--header-height",headerPadding:"--header-padding",logoSize:"--logo-size",sidebarWidth:"--sidebar-width",sidebarPadding:"--sidebar-padding",footerHeight:"--footer-height",footerPadding:"--footer-padding",layoutGap:"--layout-gap",sectionGap:"--gap-lg",contentGap:"--content-gap",zHeader:"--z-header",zSidebar:"--z-sidebar",zFooter:"--z-footer",zModal:"--z-modal",zTooltip:"--z-tooltip"};export{yl as AppBranding,Cl as AppIcon,Tl as AppTitle,K as AssetResolver,In as AuthGuard,bp as AuthGuardFallback,Gt as AuthHeader,Ht as AuthMenu,fa as AuthReturnTo,Ml as Breadcrumbs,to as CacheSettings,Bg as ConsentBanner,Oo as DnDevNavigationMenu,oc as DropdownNavigation,Bd as EntityCardList,hd as EntityDisplayRenderer,go as EntityFormRenderer,Ad as EntityList,tu as EntityRecommendations,su as EntityWorkflow,Ms as FeatureCard,fs as FeatureDisabled,ic as FloatingLanguageSwitcher,co as FooterBranding,rd as FooterCopyright,ud as FooterLegalLinks,gh as Form,bh as FormControl,Sh as FormDescription,vh as FormField,hh as FormItem,yh as FormLabel,Ch as FormMessage,Gg as GameContainer,qg as GameFlow,Ul as GameTitle,Np as GoTo,za as GoToInput,Pa as GoToWrapper,pc as HeaderMenu,bc as HeaderNavigation,Cn as Icon,k as Link,zo as NotFoundPage,Ic as Notifications,Ug as PageConfig,et as PageContainer,Cu as PasswordResetCallback,Es as ProgressBar,Ts as RedirectOverlay,Ei as Seo,Hc as SettingsMenu,Is as Skeleton,nl as TechBento,Zc as ThemeToggle,Lh as allLayoutClasses,_u as createAuthConfig,Dh as cssVariables,Su as isAuthAvailable,Wm as isBillingAvailable,jm as isCrudAvailable,Vm as isFormStoreAvailable,rf as isOAuthAvailable,yu as layoutClasses,bu as layoutUtilities,Fh as layoutVariables,Mm as resolveFaviconSet,Bm as resolveLogo,Le as sanitizeSvg,cf as tList,Jt as techLogos,N as useAuthSafe,Vu as useAuthState,at as useAuthVisibility,xm as useBack,Zm as useBillingVisibility,Mu as useCanAccess,Nn as useCanNavigate,Xm as useCrudSafe,Rt as useFormField,ri as useFormStoreSafe,xu as useGoTo,zu as useHasRole,km as useLocation,Pm as useMatch,Ie as useNavigate,re as useNavigationItems,Co as useNavigationRoute,of as useOAuthSafe,Am as useParams,Tm as usePrefetch,Im as useQueryParams,Nm as useRedirectGuard,wm as useRefresh,Em as useRouteParam,Rm as useSearchParams,bf as useSeo,zt as useStripeBillingSafe,Ou as useUserRole,Uu as withAuth};