@emintech/core 0.8.7 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/dist/{chunk-MXCVQQZ5.js → chunk-27WJSL75.js} +1 -1
  2. package/dist/chunk-2RDTNW5J.js +1 -0
  3. package/dist/{chunk-MVO5CO4K.js → chunk-3SUNL2KP.js} +1 -1
  4. package/dist/{chunk-Q4GG4CRQ.js → chunk-4BYSDVXA.js} +1 -1
  5. package/dist/chunk-5LFO6VRS.js +2 -0
  6. package/dist/chunk-5SCOJRW6.js +1 -0
  7. package/dist/{chunk-6PI2N5AX.js → chunk-CN6NPPO6.js} +1 -1
  8. package/dist/{chunk-KYNCXEGC.js → chunk-GJ3Z7ZV5.js} +1 -1
  9. package/dist/{chunk-TEUFO6KQ.js → chunk-IN4S2FZY.js} +1 -1
  10. package/dist/chunk-JN47WU22.js +1 -0
  11. package/dist/{chunk-GJE7VQA3.js → chunk-LHLB7FQU.js} +1 -1
  12. package/dist/chunk-M4WWDZLJ.js +2 -0
  13. package/dist/{chunk-YIM5JIER.js → chunk-MFEDVU5N.js} +1 -1
  14. package/dist/{chunk-L7QST6XM.js → chunk-MIJMBHKX.js} +1 -1
  15. package/dist/chunk-NLD7PVBE.js +1 -0
  16. package/dist/{chunk-6S6OHJ3G.js → chunk-PC75QMDC.js} +1 -1
  17. package/dist/chunk-QKP3C5FM.js +1 -0
  18. package/dist/chunk-QZ7BICYJ.js +1 -0
  19. package/dist/{chunk-B4FQFQOO.js → chunk-RAUR55QN.js} +1 -1
  20. package/dist/{chunk-VQRZZNRC.js → chunk-RBWDBGNJ.js} +1 -1
  21. package/dist/{chunk-PWQOU5TI.js → chunk-SZBMRQZB.js} +1 -1
  22. package/dist/{chunk-FIZXF3HF.js → chunk-TCXFBTBM.js} +1 -1
  23. package/dist/{chunk-FH3ERVYP.js → chunk-UTO7XKUN.js} +1 -1
  24. package/dist/chunk-V6XQBO4L.js +1 -0
  25. package/dist/{chunk-PJMGHYAG.js → chunk-VTOYD4F3.js} +1 -1
  26. package/dist/chunk-VXSWY5HH.js +1 -0
  27. package/dist/chunk-X5PHT6XR.js +1 -0
  28. package/dist/chunk-XHQB4Q52.js +1 -0
  29. package/dist/{chunk-7TZMAWS6.js → chunk-ZE5UNNBM.js} +1 -1
  30. package/dist/emincore.register.js +1 -1
  31. package/dist/features/account/change-password/components/PasswordForm.js +1 -1
  32. package/dist/features/account/change-password/index.js +1 -1
  33. package/dist/features/account/change-password/pages/index.js +1 -1
  34. package/dist/features/account/delete-account/components/DeleteAccountForm.js +1 -1
  35. package/dist/features/account/delete-account/index.js +1 -1
  36. package/dist/features/account/delete-account/pages/index.js +1 -1
  37. package/dist/features/account/index.js +1 -1
  38. package/dist/features/account/preferences/pages/index.js +1 -1
  39. package/dist/features/account/profile/components/Profile.js +1 -1
  40. package/dist/features/account/profile/components/ProfileForm.js +1 -1
  41. package/dist/features/account/profile/index.js +1 -1
  42. package/dist/features/account/profile/pages/EditProfilePage.js +1 -1
  43. package/dist/features/account/profile/pages/IndexProfilePage.js +1 -1
  44. package/dist/features/account/shared/components/MyAccountHeader.js +1 -1
  45. package/dist/features/account/shared/components/UserLabel.js +1 -1
  46. package/dist/features/account/shared/components/UserMenu.js +1 -1
  47. package/dist/features/account/shared/components/index.js +1 -1
  48. package/dist/features/account/shared/index.js +1 -1
  49. package/dist/features/account/shared/layouts/MyAccountLayout.js +1 -1
  50. package/dist/features/api-key/index.d.ts +1 -0
  51. package/dist/features/api-key/index.js +1 -0
  52. package/dist/features/api-key/types/api-key.types.d.ts +14 -0
  53. package/dist/features/api-key/types/api-key.types.js +1 -0
  54. package/dist/features/app/components/AppHeader.js +1 -1
  55. package/dist/features/app/components/AppLogo.js +1 -1
  56. package/dist/features/app/index.js +1 -1
  57. package/dist/features/app/layout/AppLayout.js +1 -1
  58. package/dist/features/appearance/components/AppearanceButton.js +1 -1
  59. package/dist/features/appearance/components/AppearanceDropdown.js +1 -1
  60. package/dist/features/appearance/components/AppearanceToggle.js +1 -1
  61. package/dist/features/appearance/hooks/use-appearance.js +1 -1
  62. package/dist/features/appearance/index.js +1 -1
  63. package/dist/features/appearance/lib/appearance-service.js +1 -1
  64. package/dist/features/auth/index.js +1 -1
  65. package/dist/features/auth/login/components/Login.js +1 -1
  66. package/dist/features/auth/login/hooks/use-login-form.js +1 -1
  67. package/dist/features/auth/login/index.js +1 -1
  68. package/dist/features/auth/password/confirmation/components/PasswordConfirmation.js +1 -1
  69. package/dist/features/auth/password/confirmation/index.js +1 -1
  70. package/dist/features/auth/password/forgot/components/PasswordForgot.js +1 -1
  71. package/dist/features/auth/password/forgot/index.js +1 -1
  72. package/dist/features/auth/password/index.js +1 -1
  73. package/dist/features/auth/password/reset/components/PasswordReset.js +1 -1
  74. package/dist/features/auth/password/reset/index.js +1 -1
  75. package/dist/features/auth/register/components/Register.js +1 -1
  76. package/dist/features/auth/register/index.js +1 -1
  77. package/dist/features/auth/shared/components/PasswordInput.js +1 -1
  78. package/dist/features/auth/shared/index.js +1 -1
  79. package/dist/features/auth/shared/layouts/AuthLayout.js +1 -1
  80. package/dist/features/auth/verify/email/components/EmailVerify.js +1 -1
  81. package/dist/features/auth/verify/email/index.js +1 -1
  82. package/dist/features/auth/verify/index.js +1 -1
  83. package/dist/features/dashboard/components/DashboardSidebar.js +1 -1
  84. package/dist/features/dashboard/components/DashboardTopbar.js +1 -1
  85. package/dist/features/dashboard/index.js +1 -1
  86. package/dist/features/dashboard/layouts/DashboardLayout.js +1 -1
  87. package/dist/features/emin-jobs/components/EminJobsComponents.js +1 -1
  88. package/dist/features/emin-jobs/hooks/use-emin-jobs.js +1 -1
  89. package/dist/features/emin-jobs/index.js +1 -1
  90. package/dist/features/marketplace/components/MarketplaceComponents.js +1 -1
  91. package/dist/features/marketplace/context/MarketplaceContext.d.ts +1 -1
  92. package/dist/features/marketplace/context/MarketplaceContext.js +1 -1
  93. package/dist/features/marketplace/index.js +1 -1
  94. package/dist/features/marketplace/lib/marketplace-utils.d.ts +2 -2
  95. package/dist/features/marketplace/lib/marketplace-utils.js +1 -1
  96. package/dist/features/marketplace/pages/IndexMarketplacePage.js +1 -1
  97. package/dist/features/marketplace/types/marketplace.types.d.ts +14 -22
  98. package/dist/features/mobile-token/index.d.ts +1 -0
  99. package/dist/features/mobile-token/index.js +1 -0
  100. package/dist/features/mobile-token/types/mobile-token.types.d.ts +16 -0
  101. package/dist/features/mobile-token/types/mobile-token.types.js +1 -0
  102. package/dist/features/notifications/components/EminNotification.js +1 -1
  103. package/dist/features/notifications/context/NotificationsContext.js +1 -1
  104. package/dist/features/notifications/index.js +1 -1
  105. package/dist/features/notifications/pages/UserNotificationsPage.js +1 -1
  106. package/dist/features/package-manager/index.js +1 -1
  107. package/dist/features/package-manager/installer/index.js +1 -1
  108. package/dist/features/package-manager/installer/lib/installer-formatter.js +1 -1
  109. package/dist/features/package-manager/shared/components/PackageManagerModal.js +1 -1
  110. package/dist/features/package-manager/shared/context/PackageManagerContext.js +1 -1
  111. package/dist/features/package-manager/shared/hooks/use-package-version-selector.js +1 -1
  112. package/dist/features/package-manager/shared/index.js +1 -1
  113. package/dist/features/package-manager/shared/lib/package-manager-formatter.js +1 -1
  114. package/dist/features/package-manager/shared/lib/package-manager-services.js +1 -1
  115. package/dist/features/package-manager/updater/index.js +1 -1
  116. package/dist/features/package-manager/updater/lib/updater-formatter.js +1 -1
  117. package/dist/features/packages/components/Packages.js +1 -1
  118. package/dist/features/packages/components/PackagesTable.js +1 -1
  119. package/dist/features/packages/context/PackagesContext.js +1 -1
  120. package/dist/features/packages/index.js +1 -1
  121. package/dist/features/packages/lib/packages-formatter.js +1 -1
  122. package/dist/features/packages/pages/IndexPackagesPage.js +1 -1
  123. package/dist/features/packages/types/packages.types.d.ts +6 -2
  124. package/dist/features/platform/components/PlatformComponents.d.ts +0 -1
  125. package/dist/features/platform/components/PlatformComponents.js +1 -1
  126. package/dist/features/platform/components/PlatformPageComponents.d.ts +2 -2
  127. package/dist/features/platform/components/PlatformPageComponents.js +1 -1
  128. package/dist/features/platform/index.js +1 -1
  129. package/dist/features/platform/lib/platform-formatter.d.ts +0 -3
  130. package/dist/features/platform/lib/platform-formatter.js +1 -1
  131. package/dist/features/platform/pages/IndexPlatformPage.js +1 -1
  132. package/dist/features/platform/types/platform.types.d.ts +2 -1
  133. package/dist/features/settings/api/settings.api.js +1 -1
  134. package/dist/features/settings/context/SettingsContext.js +1 -1
  135. package/dist/features/settings/index.js +1 -1
  136. package/dist/features/settings/layouts/SettingsLayout.js +1 -1
  137. package/dist/features/settings/lib/settings-formatter.js +1 -1
  138. package/dist/features/settings/pages/DesignSettingsPage.js +1 -1
  139. package/dist/features/settings/pages/GeneralSettingsPage.js +1 -1
  140. package/dist/features/settings/pages/MailSettingsPage.js +1 -1
  141. package/dist/features/settings/pages/NavPage.js +1 -1
  142. package/dist/features/slugs/components/slugs.js +1 -1
  143. package/dist/features/slugs/context/SlugsContext.js +1 -1
  144. package/dist/features/slugs/index.js +1 -1
  145. package/dist/features/users/api/users.api.d.ts +1 -0
  146. package/dist/features/users/api/users.api.js +1 -0
  147. package/dist/features/users/components/UserModal.js +1 -1
  148. package/dist/features/users/components/UsersPage.d.ts +3 -2
  149. package/dist/features/users/components/UsersPage.js +1 -1
  150. package/dist/features/users/components/UsersStatistics.js +1 -1
  151. package/dist/features/users/components/UsersTable.js +1 -1
  152. package/dist/features/users/context/UsersContext.d.ts +5 -2
  153. package/dist/features/users/context/UsersContext.js +1 -1
  154. package/dist/features/users/index.d.ts +1 -0
  155. package/dist/features/users/index.js +1 -1
  156. package/dist/features/users/lib/users-formatter.d.ts +4 -3
  157. package/dist/features/users/lib/users-formatter.js +1 -1
  158. package/dist/features/users/widgets/UserStatisticsWidget.js +1 -1
  159. package/dist/features/widgets/components/WidgetMenu.js +1 -1
  160. package/dist/features/widgets/components/WidgetProfileMenu.js +1 -1
  161. package/dist/features/widgets/components/WidgetsComponents.js +1 -1
  162. package/dist/features/widgets/components/WidgetsScreen.js +1 -1
  163. package/dist/features/widgets/index.js +1 -1
  164. package/dist/integrations/emincore/page.registry.js +1 -1
  165. package/dist/integrations/emincore/provider.registry.js +1 -1
  166. package/dist/integrations/emincore/widget.registry.js +1 -1
  167. package/dist/pages/auth/login.js +1 -1
  168. package/dist/pages/auth/password-confirm.js +1 -1
  169. package/dist/pages/auth/password-forgot.js +1 -1
  170. package/dist/pages/auth/password-reset.js +1 -1
  171. package/dist/pages/auth/register.js +1 -1
  172. package/dist/pages/auth/verify-email.js +1 -1
  173. package/dist/pages/dashboard/index.js +1 -1
  174. package/dist/pages/dashboard/marketplace/index.js +1 -1
  175. package/dist/pages/dashboard/packages/index.js +1 -1
  176. package/dist/pages/dashboard/platform/index.js +1 -1
  177. package/dist/pages/dashboard/settings/index.js +1 -1
  178. package/dist/pages/dashboard/settings/slugs/index.js +1 -1
  179. package/dist/pages/dashboard/users/index.d.ts +3 -2
  180. package/dist/pages/dashboard/users/index.js +1 -1
  181. package/dist/pages/my-account/notifications/index.js +1 -1
  182. package/dist/pages/my-account/profile/edit-password.js +1 -1
  183. package/dist/pages/my-account/profile/edit.js +1 -1
  184. package/dist/pages/my-account/profile/index.js +1 -1
  185. package/dist/provider.js +1 -1
  186. package/dist/shared/components/composite/AlertModal.js +1 -1
  187. package/dist/shared/components/composite/EminEditable.js +1 -1
  188. package/dist/shared/components/composite/EminFormButton.js +1 -1
  189. package/dist/shared/components/composite/EminInput.d.ts +3 -3
  190. package/dist/shared/components/composite/EminInput.js +1 -1
  191. package/dist/shared/components/composite/EminPreference.js +1 -1
  192. package/dist/shared/components/composite/EminPreloader.js +1 -1
  193. package/dist/shared/components/composite/Menu/EminMenu.js +1 -1
  194. package/dist/shared/components/composite/Menu/EminSidebarMenu.js +1 -1
  195. package/dist/shared/components/composite/Menu/index.js +1 -1
  196. package/dist/shared/components/composite/QuickMenu/QuickMenu.js +1 -1
  197. package/dist/shared/components/composite/QuickMenu/index.js +1 -1
  198. package/dist/shared/components/composite/QuickMenu/quick-menu-utils.js +1 -1
  199. package/dist/shared/components/composite/RoleBadge.d.ts +2 -10
  200. package/dist/shared/components/composite/RoleBadge.js +1 -1
  201. package/dist/shared/components/composite/SectionCard.js +1 -1
  202. package/dist/shared/components/composite/StatisticCards.js +1 -1
  203. package/dist/shared/components/composite/index.js +1 -1
  204. package/dist/shared/components/index.js +1 -1
  205. package/dist/shared/components/ui/avatar.js +1 -1
  206. package/dist/shared/components/ui/breadcrumbs.js +1 -1
  207. package/dist/shared/components/ui/chart.js +1 -1
  208. package/dist/shared/components/ui/sidebar.js +1 -1
  209. package/dist/shared/components/ui/slider.js +1 -1
  210. package/dist/shared/components/ui/team-switcher.js +1 -1
  211. package/dist/shared/index.js +1 -1
  212. package/dist/shared/modules/emin-table/components/EminTable.js +1 -1
  213. package/dist/shared/modules/emin-table/components/EminTableContent.js +1 -1
  214. package/dist/shared/modules/emin-table/components/EminTablePagination.js +1 -1
  215. package/dist/shared/modules/emin-table/components/EminTableToolbar.js +1 -1
  216. package/dist/shared/modules/emin-table/context/EminTableContext.js +1 -1
  217. package/dist/shared/modules/emin-table/index.js +1 -1
  218. package/dist/shared/modules/index.js +1 -1
  219. package/dist/shared/modules/world-map/components/WorldMap2D.js +1 -1
  220. package/dist/shared/modules/world-map/context/WorldMapContext.js +1 -1
  221. package/dist/shared/modules/world-map/index.js +1 -1
  222. package/dist/shared/types/index.d.ts +10 -0
  223. package/dist/shared/types/index.js +1 -1
  224. package/package.json +1 -1
  225. package/dist/chunk-2ZZVRAC2.js +0 -1
  226. package/dist/chunk-4DHRTWA7.js +0 -1
  227. package/dist/chunk-6JANELO6.js +0 -1
  228. package/dist/chunk-6POIVEDA.js +0 -1
  229. package/dist/chunk-DWAU5VTB.js +0 -1
  230. package/dist/chunk-E4XU52EE.js +0 -1
  231. package/dist/chunk-L2UKX2NN.js +0 -1
  232. package/dist/chunk-RCUM5ZGQ.js +0 -1
  233. package/dist/chunk-WQ53I46F.js +0 -1
  234. package/dist/chunk-YRATU7YA.js +0 -1
  235. package/dist/chunk-ZDXMRR4H.js +0 -2
  236. /package/dist/{features/platform/api/platform.api.d.ts → chunk-ARU7FSI6.js} +0 -0
  237. /package/dist/{features/platform/api/platform.api.js → chunk-GL653BPU.js} +0 -0
@@ -1 +0,0 @@
1
- var n=e=>"https://market.emincore.io/profile/"+e.toLowerCase().replace("","-"),c=e=>e.versions[e.versions.length-1],i=(e,t)=>{let a=r(e);return!t&&a?"install":!t&&!a?"not_compatible":t&&a&&t.version!==e.version?"update":t&&a&&t.version===e.version?"uninstall":"not_compatible"},s=(e,t)=>{let a=e.versions?.find(o=>o.version===t);return a?{code:e.code,name:e.name,version:t,core_constraint:a.core_constraint,description:e.description,image:e.image,author:e.author,created_at:e.created_at,updated_at:e.updated_at,is_custom:!1}:null},g=e=>"https://market.emincore.io/package/"+e.code,r=e=>e.version>=import.meta.env.VITE_EMIN_CORE_VERSION;export{n as a,c as b,i as c,s as d,g as e,r as f};
@@ -1 +0,0 @@
1
- import{createContext as c,useContext as f,useState as s}from"react";import{jsx as M}from"react/jsx-runtime";var t=c({users:[],setUsers:()=>{},selectedUser:void 0,setSelectedUser:()=>{},showUserModal:!1,setShowUserModal:()=>{},meta:void 0,setMeta:()=>{}}),m=({children:e,users:r,meta:o})=>{let[d,n]=s(),[a,U]=s(!1),[u,i]=s(o||void 0),l={users:r,setUsers:()=>{},selectedUser:d,setSelectedUser:n,showUserModal:a,setShowUserModal:U,meta:u,setMeta:i};return M(t.Provider,{value:l,children:e})},w=()=>{let e=f(t);if(!e)throw new Error("useUsersProvider must be used within a UsersProvider");return e};export{m as a,w as b};
@@ -1 +0,0 @@
1
- import{a as R,b as B,c as H,d as O}from"./chunk-ZDXMRR4H.js";import{b as M}from"./chunk-6S6OHJ3G.js";import{a as V}from"./chunk-KND3PUAR.js";import{a as E}from"./chunk-4DHRTWA7.js";import{a as F}from"./chunk-6PI2N5AX.js";import{g as C}from"./chunk-L2UKX2NN.js";import{a as w}from"./chunk-DSY4KVMF.js";import{a as h,b as P,f as D,g as b,i as I,j as k}from"./chunk-QFUZ6MVT.js";import{b as N}from"./chunk-TVCWAJFT.js";import{a as n}from"./chunk-G4EEZUTC.js";import{a as A}from"./chunk-DWAU5VTB.js";import{useState as z}from"react";import{useForm as G,usePage as j}from"@inertiajs/react";import{IconAlertCircle as Y}from"@tabler/icons-react";import{Fragment as c,jsx as r,jsxs as u}from"react/jsx-runtime";var K=o=>[{step:u(c,{children:["Sign up at ",r("strong",{children:"emincore.io"})]})},{step:u(c,{children:["Create an application for ",r("strong",{children:o.app.url})]})},{step:u(c,{children:["Copy your ",r("strong",{children:"verification key"})]})},{step:r(c,{children:"Submit and verify your application"})}],L=o=>[{step:u(c,{children:["Log in to ",r("strong",{children:"emincore.io"})]})},{step:u(c,{children:["Select the application for ",r("strong",{children:o.app.url})]})},{step:r(c,{children:"Generate or regenerate an API Secret key and fill it in the form below."})},{step:r(c,{children:"Submit and complete the connection process."})}],X=o=>{switch(o){case"invalid_api_secret":return{icon:r(Y,{className:"text-red-500 mx-auto h-15 w-15"}),title:"Invalid API Secret Key",message:"Please check your API Secret key to access all ecosystem features.",content:r(S,{})};case"get_api_secret":return{icon:"IconPackages",title:"Connect to EminCore Platform",message:"Connect your application to the EminCore platform with your API Secret key to access all ecosystem features.",content:r(S,{})};case"verify_app":return{icon:"IconProgressCheck",title:"Verify your application",message:"Verify your application on the EminCore platform to access marketplace.",content:r(T,{})};case"403":return{icon:"IconBan",title:"403 Forbidden",message:"You do not have permission to access this resource."};default:return null}};import{Head as $}from"@inertiajs/react";import{Fragment as J,jsx as s,jsxs as _}from"react/jsx-runtime";var ce=({packages:o,requirements:m,account:l,error:g})=>{let p=[{title:"WM Dashboard",href:route("dashboard")},{title:"Platform"}],d=o.find(f=>f.code==A);return _(J,{children:[s($,{title:"Platform"}),s(F,{breadcrumbs:p,children:s(M,{packages:o,children:_("div",{className:"container mx-auto",children:[s(V,{title:"Platform",description:"Platform overview",icon:s(n,{iconName:"IconCloudCog"})}),_("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:[s(R,{account:l}),s(B,{eminCore:d}),s(H,{requirements:m}),s(O,{})]})]})})})]})};import{toast as q}from"sonner";import{jsx as e,jsxs as t}from"react/jsx-runtime";var _e=({icon:o,title:m,message:l,content:g,className:p})=>t("div",{className:`grid gap-4 mt-15 mb-25 ${p}`,children:[o&&(typeof o=="string"?e(n,{iconName:o,className:"mx-auto h-15 w-15"}):o),t("div",{className:"grid gap-2 text-center",children:[e("h2",{className:"text-2xl font-bold",children:m}),e("span",{className:"text-sm text-muted-foreground",children:l}),g]})]}),S=()=>{let[o,m]=z(!1),l=j().props,{data:g,setData:p,post:d,processing:f,recentlySuccessful:v,errors:y}=G({api_secret_key:""});return t(h,{open:o,onOpenChange:m,children:[e(P,{children:t(N,{variant:"default",size:"sm",className:"mt-2",children:[e(n,{iconName:"IconPlug"}),e("span",{children:"Connect"})]})}),t(D,{children:[t(b,{children:[t(I,{className:"grid text-center mx-auto gap-2",children:[e(n,{iconName:"IconPlug",className:"mx-auto h-10 w-10"}),e("span",{children:"Connect to EminCore Platform"})]}),e(k,{className:"text-center",children:"Please provide valid API Secret Key to connect your application to the EminCore platform."})]}),e("div",{className:"grid gap-3",children:t("form",{onSubmit:a=>{a.preventDefault();let i=new Promise(x=>d(route("dashboard.settings.platform.connect"),{onFinish:x}));q.promise(i,{loading:"Connecting to EminCore Platform..."})},children:[t("div",{className:"grid gap-4 text-left max-w-md mx-auto text-center justify-center border-y py-4 my-4",children:[e("strong",{className:"text-center text-sm",children:"How to get API & Verification key"}),L(l).map((a,i)=>t("div",{className:"grid text-center gap-3",children:[e("span",{className:"flex-shrink-0 w-6 h-6 rounded-full bg-primary/10 text-primary flex items-center justify-center text-xs font-bold mx-auto",children:i+1}),e("span",{className:"text-sm text-muted-foreground",children:a.step})]},i))]}),t("div",{className:"grid gap-4 text-center",children:[e(E,{placeholder:"Enter your API secret key",icon:"IconKey",value:g.api_secret_key,onChange:a=>p({api_secret_key:a.target.value}),error:y.api_secret_key}),t(C,{recentlySuccessful:v,processing:f,variant:"default",size:"sm",className:"mt-2",children:[e(n,{iconName:"IconPlug"}),e("span",{children:"Connect"})]})]})]})})]})]})},T=()=>{let[o,m]=z(!1),l=j().props,{data:g,setData:p,post:d,processing:f,recentlySuccessful:v,errors:y}=G({verification_code:""});return t(h,{open:o,onOpenChange:m,children:[e(P,{children:t(N,{variant:"default",size:"sm",className:"mt-2",children:[e(n,{iconName:"IconCheck"}),e("span",{children:"Verify"})]})}),t(D,{children:[t(b,{children:[t(I,{className:"grid text-center mx-auto gap-2",children:[e(n,{iconName:"IconProgressCheck",className:"mx-auto h-10 w-10"}),e("span",{children:"Verify your application on EminCore Platform"})]}),e(k,{className:"text-center",children:"Please follow the steps below to verify your application on the EminCore platform."})]}),e("div",{className:"grid gap-3",children:t("form",{onSubmit:a=>{a.preventDefault();let i=new Promise(x=>d(route("dashboard.settings.platform.verify"),{onFinish:x}));q.promise(i,{loading:"Verifying your application..."})},children:[e("div",{className:"grid gap-4 text-left max-w-md mx-auto text-center justify-center border-y py-4 my-4",children:K(l).map((a,i)=>t("div",{className:"grid text-center gap-3",children:[e("span",{className:"flex-shrink-0 w-6 h-6 rounded-full bg-primary/10 text-primary flex items-center justify-center text-xs font-bold mx-auto",children:i+1}),e("span",{className:"text-sm text-muted-foreground",children:a.step})]},i))}),t("div",{className:"grid gap-4 text-center",children:[e(E,{placeholder:"Enter your verification code",icon:"IconKey",value:g.verification_code,onChange:a=>p({verification_code:a.target.value}),error:y.verification_code}),t(C,{processing:f,recentlySuccessful:v,className:"mt-2",children:[e(n,{iconName:"IconCheck"}),e("span",{children:"Verify"})]}),e(w,{message:y?.verification_code})]})]})})]})]})};export{_e as a,S as b,T as c,K as d,L as e,X as f,ce as g};
@@ -1,2 +0,0 @@
1
- import{c as D}from"./chunk-6S6OHJ3G.js";import{a as B}from"./chunk-SC5FEULM.js";import{a as E}from"./chunk-PJMGHYAG.js";import{g as y}from"./chunk-L2UKX2NN.js";import{b as g}from"./chunk-TVCWAJFT.js";import{a as C,b as S,c as w,d as T,f as b}from"./chunk-3DBYUBWW.js";import{a as M}from"./chunk-65LRDGYI.js";import{a as c}from"./chunk-G4EEZUTC.js";import{a as h}from"./chunk-GND5KQRZ.js";import{a as N}from"./chunk-DWAU5VTB.js";import{Link as G,useForm as $,useHttp as Q}from"@inertiajs/react";import{useEffect as W,useState as f}from"react";import{toast as F}from"sonner";import{IconAlertCircleFilled as X,IconArrowUpRight as Y,IconCircleCheckFilled as Z,IconRefresh as L}from"@tabler/icons-react";import{jsx as e,jsxs as t}from"react/jsx-runtime";var he=({account:r})=>e(M,{title:"My Platform Account",icon:"IconUserCircle",description:"Manage your platform account settings.",className:"col-span-full",buttons:r?e(g,{variant:"outline",size:"sm",children:t("a",{href:"https://emincore.io/login",target:"_blank",className:"flex items-center gap-2",children:[e(c,{iconName:"IconUserCircle",className:"h-4 w-4"}),e("span",{children:r})]})}):e(G,{href:route("dashboard.marketplace"),className:"flex items-center gap-2",children:t(g,{variant:"default",size:"sm",children:[e(c,{iconName:"IconUserCircle",className:"h-4 w-4"}),e("span",{children:"Connect to Platform"})]})})}),fe=({eminCore:r})=>t(C,{className:"col-span-2",children:[t(S,{children:[t(w,{className:"flex gap-1",children:[t("div",{className:"grid gap-2",children:[e("img",{src:"https://emin.llc/wp-content/uploads/2022/11/siyah-logo-arkasiz.svg",className:"h-8"}),e("span",{className:"text-xl font-bold text-primary",children:"EminCore - The Cross-Ecosystem Orchestrator"})]}),t("div",{className:"ml-auto flex max-w-[400px] flex-wrap gap-1",children:[t(g,{variant:"outline",size:"sm",className:"gap-2",children:[e(c,{iconName:"IconCode",className:"h-4 w-4"}),t("span",{className:"text-xs font-bold",children:["v",r.version]})]}),t(g,{variant:"outline",size:"sm",className:"gap-2",children:[e(c,{iconName:"IconBuilding",className:"h-4 w-4"}),e("span",{className:"text-xs font-bold",children:"Emin Tech"})]}),t(g,{variant:"outline",size:"sm",className:"gap-2",children:[e(c,{iconName:"IconBook",className:"h-4 w-4"}),e("span",{className:"text-xs font-bold",children:"Docs"})]})]})]}),e(T,{children:e("p",{children:"A modular application platform that orchestrates Composer and npm ecosystems through a unified package architecture, marketplace, and runtime."})})]}),e(b,{className:"grid gap-6",children:e(ee,{})})]}),xe=({requirements:r})=>{let o=({requirement:n})=>{let m=Math.random()*500+800,[k,s]=f(!0);return f(()=>{let v=setTimeout(()=>s(!1),m);return()=>clearTimeout(v)}),k?e(c,{iconName:"IconLoader2",className:"animate-spin mx-auto h-4 w-4 my-0.5"}):e("span",{className:h("font-mono font-bold text-sm",n.status?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400"),children:n.value??"-"})};return t(C,{className:"col-span-2",children:[e(S,{children:t(w,{className:"flex items-center gap-2",children:[e(c,{iconName:"IconServer",className:"h-5 w-5 text-primary"}),e("h3",{className:"font-semibold",children:"System Status"})]})}),e(b,{children:e("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-7 gap-3",children:r?.map(n=>t("div",{className:"rounded-md border p-3 text-center grid gap-[1px]",children:[t("span",{className:"text-xs text-muted-foreground mx-auto flex items-center gap-1",children:[e(c,{iconName:n.icon,className:"h-4 w-4 text-primary mx-auto"}),n.title]}),e(o,{requirement:n}),n.requirements&&e("span",{className:"font-mono font-bold text-xs text-muted-foreground",children:n.requirements})]}))})})]})},Ne=()=>t("div",{className:"col-span-2 text-center grid gap-3",children:[t("p",{className:"text-sm text-muted-foreground px-5 mx-auto",children:["A two-year R&D effort carried out by a single-person team resulted in the completion of this platform and ecosystem. It provides users with a unique infrastructure built on the most modern and powerful technology stacks. This infrastructure enables you to prepare your project in the shortest possible time while achieving maximum performance, user engagement, and rich functionality.",e("br",{}),"Thank you for choosing us."]}),e("img",{src:"https://eminilhan.com/wp-content/uploads/2023/04/beyaz-logo-1.png",className:"h-10 mx-auto"})]}),ee=()=>{let r=localStorage?.getItem("last_core_update_checked"),[o,n]=f(localStorage?.getItem("is_core_up_to_date")==="true"),[m,k]=f(r?new Date(r):null),[s,v]=f(JSON.parse(localStorage?.getItem("last_core_versions")??"null")),d=Q();W(()=>{localStorage.setItem("is_core_up_to_date",o?"true":"false"),localStorage.setItem("last_core_versions",JSON.stringify(s)),localStorage.setItem("last_core_update_checked",m?m.toISOString():"")},[o,s,m]);let R=D(),{packages:I,isLoading:_,setIsLoading:V,setLoadingContent:O,setIsModalOpen:z,setPackageManifest:U,setProcess:P,setValidationError:A}=R,{selectVersion:j,SelectionModal:q}=E(),H=()=>d.processing?e(L,{className:"h-6 w-6 text-primary animate-spin shrink-0"}):o?e(Z,{className:"h-6 w-6 text-green-600 dark:text-green-400 shrink-0"}):e(X,{className:"h-6 w-6 text-blue-600 dark:text-blue-500 shrink-0"}),J=()=>t("div",{className:"grid",children:[e("span",{className:h("text-sm font-medium",d.processing?"text-primary":o?"text-green-600 dark:text-green-400":"text-blue-600 dark:text-blue-500"),children:d.processing?"Checking updates...":o?"System is up to date!":"New version available!"}),e("span",{className:"text-xs text-primary/70",children:o===!0?"Last checked: "+(m?.toLocaleString()??"never"):"Keep your system up to date with the latest features, performance improvements, and security updates."})]});return t("div",{className:"grid md:flex md:items-center gap-2",children:[e(()=>t("div",{className:"flex items-center gap-2",children:[e(H,{}),e(J,{})]}),{}),t("div",{className:"grid md:flex md:items-center gap-3 md:ml-auto",children:[e(()=>{let i=$(),x=(a,l)=>({process:"update",manifest:{code:N,version:a==="update"?l.latest_compatible.version:l.latest.version,core_constraint:"latest"}}),p=()=>{_||i.processing||!s||u().then(()=>{P("update"),V(!0),O({title:"Updating System",description:"Please wait while we update your system to the latest version."}),U({...I.find(a=>a.code==N),version:"latest"}),z(!0),i.post(route("dashboard.packages.manager"),{onError:a=>A(Object.values(a).join(`
2
- `))})})},u=async()=>{if(!s)return;if(s.latest.version!==s.latest_compatible.version)await j(s).then(l=>{if(l!==null){let K=l.version===s.latest.version?"upgrade":"update";i.setData(x(K,s))}else return Promise.reject("User cancelled selection.")});else return i.setData(x("update",s)),Promise.resolve()};return!o&&!_&&t(y,{processing:i.processing,recentlySuccessful:i.recentlySuccessful,processingText:"Updating System...",successText:"System updated successfully!",size:"sm",variant:"ghost",className:h("gap-2"),onClick:()=>p(),children:[e(Y,{className:h("h-4 w-4")}),"Update Now"]})},{}),e(()=>{let i=()=>{let p=new Date().getTime()-(m?.getTime()??0),u=60*1e3-p;if(u>0)return F.warning(`Please wait ${Math.ceil(u/1e3)} seconds before checking again.`),!1;let a=new Date().toISOString();return k(new Date(a)),localStorage.setItem("last_core_update_checked",a),!0},x=()=>{if(d.processing||!i())return;let p=I.find(a=>a.code==N);P("update"),U(p);let u=a=>{let l=a.latest.version===p.version;n(l),l||v(a)};B(d,p.id).then(a=>u(a)).catch(()=>F.error("Failed to check updates for Emin Core."))};return t(y,{processing:d.processing,recentlySuccessful:d.recentlySuccessful,processingText:"Checking updates...",successText:o?"System is up to date!":"New version available!",size:"sm",variant:"outline",onClick:()=>x(),children:[e(L,{className:"h-4 w-4"}),"Check Updates"]})},{})]}),e(q,{})]})};export{he as a,fe as b,xe as c,Ne as d};