@vikukumar/propvault 0.1.5 → 0.1.6

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 (207) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/server/app/(website)/[...slug]/page/server-reference-manifest.json +4 -4
  5. package/.next/server/app/(website)/[...slug]/page_client-reference-manifest.js +1 -1
  6. package/.next/server/app/(website)/blog/[slug]/page/server-reference-manifest.json +1 -1
  7. package/.next/server/app/(website)/blog/[slug]/page_client-reference-manifest.js +1 -1
  8. package/.next/server/app/(website)/contact/page/server-reference-manifest.json +1 -1
  9. package/.next/server/app/(website)/contact/page_client-reference-manifest.js +1 -1
  10. package/.next/server/app/(website)/page/server-reference-manifest.json +5 -5
  11. package/.next/server/app/(website)/page_client-reference-manifest.js +1 -1
  12. package/.next/server/app/(website)/projects/[slug]/page/server-reference-manifest.json +1 -1
  13. package/.next/server/app/(website)/projects/[slug]/page_client-reference-manifest.js +1 -1
  14. package/.next/server/app/_global-error.html +1 -1
  15. package/.next/server/app/_global-error.rsc +1 -1
  16. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  17. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  18. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  19. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  20. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  21. package/.next/server/app/_not-found.html +1 -1
  22. package/.next/server/app/_not-found.rsc +1 -1
  23. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  24. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  25. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  26. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  27. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  28. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  29. package/.next/server/app/admin/cms/email-templates/page/server-reference-manifest.json +2 -2
  30. package/.next/server/app/admin/cms/email-templates/page_client-reference-manifest.js +1 -1
  31. package/.next/server/app/admin/cms/menus/page/server-reference-manifest.json +3 -3
  32. package/.next/server/app/admin/cms/menus/page_client-reference-manifest.js +1 -1
  33. package/.next/server/app/admin/cms/pages/[id]/edit/page/server-reference-manifest.json +6 -6
  34. package/.next/server/app/admin/cms/pages/[id]/edit/page_client-reference-manifest.js +1 -1
  35. package/.next/server/app/admin/cms/pages/new/page/server-reference-manifest.json +1 -1
  36. package/.next/server/app/admin/cms/pages/new/page_client-reference-manifest.js +1 -1
  37. package/.next/server/app/admin/cms/pages/page/server-reference-manifest.json +2 -2
  38. package/.next/server/app/admin/cms/pages/page_client-reference-manifest.js +1 -1
  39. package/.next/server/app/admin/cms/redirects/page/server-reference-manifest.json +3 -3
  40. package/.next/server/app/admin/cms/redirects/page_client-reference-manifest.js +1 -1
  41. package/.next/server/app/admin/leads/[id]/page/server-reference-manifest.json +2 -2
  42. package/.next/server/app/admin/leads/[id]/page_client-reference-manifest.js +1 -1
  43. package/.next/server/app/admin/page/server-reference-manifest.json +3 -3
  44. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  45. package/.next/server/app/admin/plugins/page/server-reference-manifest.json +5 -5
  46. package/.next/server/app/admin/plugins/page_client-reference-manifest.js +1 -1
  47. package/.next/server/app/admin/profile/page/server-reference-manifest.json +2 -2
  48. package/.next/server/app/admin/profile/page_client-reference-manifest.js +1 -1
  49. package/.next/server/app/admin/projects/edit/[id]/page/server-reference-manifest.json +2 -2
  50. package/.next/server/app/admin/projects/edit/[id]/page_client-reference-manifest.js +1 -1
  51. package/.next/server/app/admin/projects/new/page/server-reference-manifest.json +2 -2
  52. package/.next/server/app/admin/projects/new/page_client-reference-manifest.js +1 -1
  53. package/.next/server/app/admin/settings/analytics/page/server-reference-manifest.json +1 -1
  54. package/.next/server/app/admin/settings/analytics/page.js.nft.json +1 -1
  55. package/.next/server/app/admin/settings/analytics/page_client-reference-manifest.js +1 -1
  56. package/.next/server/app/admin/settings/api-keys/page/server-reference-manifest.json +102 -102
  57. package/.next/server/app/admin/settings/api-keys/page_client-reference-manifest.js +1 -1
  58. package/.next/server/app/admin/settings/branding/page/server-reference-manifest.json +1 -1
  59. package/.next/server/app/admin/settings/branding/page.js.nft.json +1 -1
  60. package/.next/server/app/admin/settings/branding/page_client-reference-manifest.js +1 -1
  61. package/.next/server/app/admin/settings/general/page/server-reference-manifest.json +1 -1
  62. package/.next/server/app/admin/settings/general/page.js.nft.json +1 -1
  63. package/.next/server/app/admin/settings/general/page_client-reference-manifest.js +1 -1
  64. package/.next/server/app/admin/settings/security/page/server-reference-manifest.json +1 -1
  65. package/.next/server/app/admin/settings/security/page.js.nft.json +1 -1
  66. package/.next/server/app/admin/settings/security/page_client-reference-manifest.js +1 -1
  67. package/.next/server/app/admin/settings/seo/page/server-reference-manifest.json +1 -1
  68. package/.next/server/app/admin/settings/seo/page.js.nft.json +1 -1
  69. package/.next/server/app/admin/settings/seo/page_client-reference-manifest.js +1 -1
  70. package/.next/server/app/admin/settings/smtp/page/server-reference-manifest.json +1 -1
  71. package/.next/server/app/admin/settings/smtp/page.js.nft.json +1 -1
  72. package/.next/server/app/admin/settings/smtp/page_client-reference-manifest.js +1 -1
  73. package/.next/server/app/admin/settings/storage/page/server-reference-manifest.json +1 -1
  74. package/.next/server/app/admin/settings/storage/page.js.nft.json +1 -1
  75. package/.next/server/app/admin/settings/storage/page_client-reference-manifest.js +1 -1
  76. package/.next/server/app/admin/theme/page/server-reference-manifest.json +5 -5
  77. package/.next/server/app/admin/theme/page_client-reference-manifest.js +1 -1
  78. package/.next/server/app/api/upload/route.js.nft.json +1 -1
  79. package/.next/server/app/contact.html +2 -2
  80. package/.next/server/app/contact.rsc +2 -2
  81. package/.next/server/app/contact.segments/!KHdlYnNpdGUp/contact/__PAGE__.segment.rsc +2 -2
  82. package/.next/server/app/contact.segments/!KHdlYnNpdGUp/contact.segment.rsc +1 -1
  83. package/.next/server/app/contact.segments/!KHdlYnNpdGUp.segment.rsc +1 -1
  84. package/.next/server/app/contact.segments/_full.segment.rsc +2 -2
  85. package/.next/server/app/contact.segments/_head.segment.rsc +1 -1
  86. package/.next/server/app/contact.segments/_index.segment.rsc +1 -1
  87. package/.next/server/app/contact.segments/_tree.segment.rsc +1 -1
  88. package/.next/server/app/index.html +2 -2
  89. package/.next/server/app/index.rsc +11 -11
  90. package/.next/server/app/index.segments/!KHdlYnNpdGUp/__PAGE__.segment.rsc +11 -11
  91. package/.next/server/app/index.segments/!KHdlYnNpdGUp.segment.rsc +1 -1
  92. package/.next/server/app/index.segments/_full.segment.rsc +11 -11
  93. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  94. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  95. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  96. package/.next/server/app/login.html +1 -1
  97. package/.next/server/app/login.rsc +1 -1
  98. package/.next/server/app/login.segments/_full.segment.rsc +1 -1
  99. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  100. package/.next/server/app/login.segments/_index.segment.rsc +1 -1
  101. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  102. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +1 -1
  103. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  104. package/.next/server/app/setup/page/server-reference-manifest.json +15 -15
  105. package/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  106. package/.next/server/app/setup.html +2 -2
  107. package/.next/server/app/setup.rsc +2 -2
  108. package/.next/server/app/setup.segments/_full.segment.rsc +2 -2
  109. package/.next/server/app/setup.segments/_head.segment.rsc +1 -1
  110. package/.next/server/app/setup.segments/_index.segment.rsc +1 -1
  111. package/.next/server/app/setup.segments/_tree.segment.rsc +1 -1
  112. package/.next/server/app/setup.segments/setup/__PAGE__.segment.rsc +2 -2
  113. package/.next/server/app/setup.segments/setup.segment.rsc +1 -1
  114. package/.next/server/app/sitemap.xml.body +9 -9
  115. package/.next/server/chunks/[root-of-the-server]__0ikpexd._.js +1 -1
  116. package/.next/server/chunks/ssr/[root-of-the-server]__03m3xqu._.js +1 -1
  117. package/.next/server/chunks/ssr/[root-of-the-server]__05px_h7._.js +1 -1
  118. package/.next/server/chunks/ssr/[root-of-the-server]__08s00s8._.js +1 -1
  119. package/.next/server/chunks/ssr/[root-of-the-server]__0_x-0vh._.js +1 -1
  120. package/.next/server/chunks/ssr/[root-of-the-server]__0ae1ufj._.js +1 -1
  121. package/.next/server/chunks/ssr/[root-of-the-server]__0b0jtbx._.js +1 -1
  122. package/.next/server/chunks/ssr/[root-of-the-server]__0d95wm4._.js +1 -1
  123. package/.next/server/chunks/ssr/[root-of-the-server]__0d_wuy_._.js +1 -1
  124. package/.next/server/chunks/ssr/[root-of-the-server]__0frxadd._.js +1 -1
  125. package/.next/server/chunks/ssr/[root-of-the-server]__0owpb-h._.js +1 -1
  126. package/.next/server/chunks/ssr/[root-of-the-server]__1--m0t_._.js +1 -1
  127. package/.next/server/chunks/ssr/[root-of-the-server]__11c23n7._.js +1 -1
  128. package/.next/server/chunks/ssr/[root-of-the-server]__12yzdf7._.js +1 -1
  129. package/.next/server/chunks/ssr/[root-of-the-server]__1_5z9ae._.js +1 -1
  130. package/.next/server/chunks/ssr/[root-of-the-server]__1ijsxgu._.js +1 -1
  131. package/.next/server/chunks/ssr/[root-of-the-server]__1mh1dn4._.js +1 -1
  132. package/.next/server/chunks/ssr/[root-of-the-server]__1nrl0j-._.js +1 -1
  133. package/.next/server/chunks/ssr/[root-of-the-server]__1qronyg._.js +1 -1
  134. package/.next/server/chunks/ssr/[root-of-the-server]__1rjv73_._.js +1 -1
  135. package/.next/server/chunks/ssr/[root-of-the-server]__1ybv0-1._.js +1 -1
  136. package/.next/server/chunks/ssr/[root-of-the-server]__203pgu_._.js +1 -1
  137. package/.next/server/chunks/ssr/_01ovwyq._.js +1 -1
  138. package/.next/server/chunks/ssr/_05jzsu5._.js +1 -1
  139. package/.next/server/chunks/ssr/_06ljqk-._.js +1 -1
  140. package/.next/server/chunks/ssr/_06rh1hs._.js +1 -1
  141. package/.next/server/chunks/ssr/_08mru_6._.js +1 -1
  142. package/.next/server/chunks/ssr/_09o1npz._.js +1 -1
  143. package/.next/server/chunks/ssr/{_1zm01h0._.js → _0d9dhlq._.js} +2 -2
  144. package/.next/server/chunks/ssr/_0h33iks._.js +1 -1
  145. package/.next/server/chunks/ssr/_0ju3jec._.js +1 -1
  146. package/.next/server/chunks/ssr/_0kdtd1g._.js +1 -1
  147. package/.next/server/chunks/ssr/_0m0s15u._.js +1 -1
  148. package/.next/server/chunks/ssr/_0qdyrxm._.js +1 -1
  149. package/.next/server/chunks/ssr/_0untlx2._.js +1 -1
  150. package/.next/server/chunks/ssr/{_1hb_oxg._.js → _0v1z0z-._.js} +2 -2
  151. package/.next/server/chunks/ssr/_0vu77cg._.js +1 -1
  152. package/.next/server/chunks/ssr/_0xki9b-._.js +1 -1
  153. package/.next/server/chunks/ssr/_1-wcqf6._.js +1 -1
  154. package/.next/server/chunks/ssr/_10imd--._.js +1 -1
  155. package/.next/server/chunks/ssr/_122ck8v._.js +1 -1
  156. package/.next/server/chunks/ssr/_17z_x3y._.js +1 -1
  157. package/.next/server/chunks/ssr/_18r74av._.js +1 -1
  158. package/.next/server/chunks/ssr/_1agt3s0._.js +1 -1
  159. package/.next/server/chunks/ssr/_1ijzz5f._.js +1 -1
  160. package/.next/server/chunks/ssr/_1l22w_w._.js +1 -1
  161. package/.next/server/chunks/ssr/_1lhtejs._.js +1 -1
  162. package/.next/server/chunks/ssr/_1pulrwl._.js +1 -1
  163. package/.next/server/chunks/ssr/_1pvmkr2._.js +1 -1
  164. package/.next/server/chunks/ssr/_1sseqap._.js +1 -1
  165. package/.next/server/chunks/ssr/_212t7ar._.js +1 -1
  166. package/.next/server/chunks/ssr/src_actions_cms_ts_0_rm7-x._.js +1 -1
  167. package/.next/server/chunks/ssr/src_app_admin_cms_pages_[id]_edit_page-editor-client_tsx_0hbosvr._.js +1 -1
  168. package/.next/server/chunks/ssr/src_components_admin_branding_icon-generator_tsx_0-p-crb._.js +1 -1
  169. package/.next/server/chunks/ssr/src_components_admin_projects_project-form_tsx_0ynt29x._.js +1 -1
  170. package/.next/server/chunks/ssr/src_components_admin_theme_theme-editor_tsx_0ec47ja._.js +1 -1
  171. package/.next/server/chunks/ssr/src_components_setup_setup-wizard_tsx_17wfyof._.js +1 -1
  172. package/.next/server/middleware-build-manifest.js +3 -3
  173. package/.next/server/pages/404.html +1 -1
  174. package/.next/server/pages/500.html +1 -1
  175. package/.next/server/server-reference-manifest.js +1 -1
  176. package/.next/server/server-reference-manifest.json +120 -120
  177. package/.next/static/chunks/{2d9me2ckcnr7h.js → 04j81u4sdpfu2.js} +1 -1
  178. package/.next/static/chunks/{0zqog_yngqq7z.js → 0ah0kpd7ekuw1.js} +1 -1
  179. package/.next/static/chunks/{1q0w9ewl3z_h6.js → 0auy0r9a1q2tn.js} +1 -1
  180. package/.next/static/chunks/{1tbfriywhx1pb.js → 0ggovh07wwyy8.js} +1 -1
  181. package/.next/static/chunks/{38rdy0o7-0ox6.js → 0lis8frknimvp.js} +1 -1
  182. package/.next/static/chunks/{263r2j2npbofi.js → 0nsus-669a8ey.js} +1 -1
  183. package/.next/static/chunks/{3me6cr4hl9rom.js → 0rf2sac4cv9to.js} +1 -1
  184. package/.next/static/chunks/{36-tbikyofe31.js → 0xpdqt-hymrf7.js} +1 -1
  185. package/.next/static/chunks/{1ck9hpq1413sl.js → 1bowvtenaqsj6.js} +1 -1
  186. package/.next/static/chunks/{3f49air8y0adp.js → 1cjpbb6-vptf4.js} +4 -4
  187. package/.next/static/chunks/{20lykhw4m0xj7.js → 1hk1y1sg8lhbw.js} +1 -1
  188. package/.next/static/chunks/{32ewdom11wcw5.js → 1nrpg3ex2_sv_.js} +1 -1
  189. package/.next/static/chunks/{2kw34i4gw2ajr.js → 1sf7ew5fumaxp.js} +3 -3
  190. package/.next/static/chunks/{2xln3s9fcx9bl.js → 1u3legaue49ub.js} +1 -1
  191. package/.next/static/chunks/{2fyzgog8nf5lt.js → 1wy2lokd1l1lp.js} +1 -1
  192. package/.next/static/chunks/{0y4lkzby6pn69.js → 2-v2c7pmrytbo.js} +1 -1
  193. package/.next/static/chunks/{11pcx9jz6m8mh.js → 24pptltdm6on5.js} +1 -1
  194. package/.next/static/chunks/{0pwgm534jn6iw.js → 262zw0y5-stbe.js} +1 -1
  195. package/.next/static/chunks/{1pwy0ti-uue8r.js → 2hdi4miihh5xo.js} +1 -1
  196. package/.next/static/chunks/{1902bgggagxq9.js → 2mkfi4f-v_--2.js} +2 -2
  197. package/.next/static/chunks/{1hame1c35m1cl.js → 2uc63cmx05kds.js} +1 -1
  198. package/.next/static/chunks/{30qbmzgby_p2-.js → 2y63g12thk4t0.js} +1 -1
  199. package/.next/static/chunks/{3ibw_8tcpt3lm.js → 2zqss-359c2pk.js} +1 -1
  200. package/.next/static/chunks/{3ussphcvkyzyx.js → 3i5hcquiom8c0.js} +1 -1
  201. package/.next/static/chunks/{3kghfbcpnl0zl.js → 3xtvxy_mnp_8w.js} +1 -1
  202. package/.next/static/chunks/{3en21d5viwrkl.js → 41e2p0bvp89ut.js} +1 -1
  203. package/README.md +6 -6
  204. package/package.json +5 -5
  205. /package/.next/static/{81gZJnh1KWfMhrvOF9la3 → Q2_R7URofsFGUQNefVZtd}/_buildManifest.js +0 -0
  206. /package/.next/static/{81gZJnh1KWfMhrvOF9la3 → Q2_R7URofsFGUQNefVZtd}/_clientMiddlewareManifest.js +0 -0
  207. /package/.next/static/{81gZJnh1KWfMhrvOF9la3 → Q2_R7URofsFGUQNefVZtd}/_ssgManifest.js +0 -0
@@ -1,3 +1,3 @@
1
- module.exports=[923690,a=>{"use strict";var b=a.i(298621),c=a.i(474614);a.s(["cn",0,function(...a){return(0,c.twMerge)((0,b.clsx)(a))},"formatCurrency",0,function(a,b="INR",c="en-IN"){return a>=1e7?`₹${(a/1e7).toFixed(2)} Cr`:a>=1e5?`₹${(a/1e5).toFixed(2)} L`:new Intl.NumberFormat(c,{style:"currency",currency:b,maximumFractionDigits:0}).format(a)},"formatDate",0,function(a,b={year:"numeric",month:"long",day:"numeric"},c="en-IN"){return("string"==typeof a?new Date(a):a).toLocaleDateString(c,b)},"formatRelativeDate",0,function(a){let b="string"==typeof a?new Date(a):a,c=Math.floor((new Date().getTime()-b.getTime())/1e3),d=Math.floor(c/60),e=Math.floor(d/60),f=Math.floor(e/24),g=Math.floor(f/30),h=Math.floor(g/12);return c<60?"just now":d<60?`${d}m ago`:e<24?`${e}h ago`:f<30?`${f}d ago`:g<12?`${g}mo ago`:`${h}y ago`}])},866718,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(368114);let e=c.forwardRef(({className:a,type:c,...e},f)=>(0,b.jsx)("input",{type:c,className:(0,d.cn)("flex h-10 w-full rounded-xl border border-border bg-card px-3 py-2 text-sm text-foreground ring-offset-background placeholder:text-muted-foreground/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:border-primary/50 disabled:cursor-not-allowed disabled:opacity-50 transition-colors",a),ref:f,...e}));e.displayName="Input",a.s(["Input",0,e])},699570,400187,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(811011),e=a.i(298621);let f=a=>"boolean"==typeof a?`${a}`:0===a?"0":a,g=e.clsx,h=(a,b)=>c=>{var d;if((null==b?void 0:b.variants)==null)return g(a,null==c?void 0:c.class,null==c?void 0:c.className);let{variants:e,defaultVariants:h}=b,i=Object.keys(e).map(a=>{let b=null==c?void 0:c[a],d=null==h?void 0:h[a];if(null===b)return null;let g=f(b)||f(d);return e[a][g]}),j=c&&Object.entries(c).reduce((a,b)=>{let[c,d]=b;return void 0===d||(a[c]=d),a},{});return g(a,i,null==b||null==(d=b.compoundVariants)?void 0:d.reduce((a,b)=>{let{class:c,className:d,...e}=b;return Object.entries(e).every(a=>{let[b,c]=a;return Array.isArray(c)?c.includes({...h,...j}[b]):({...h,...j})[b]===c})?[...a,c,d]:a},[]),null==c?void 0:c.class,null==c?void 0:c.className)};a.s(["cva",0,h],400187);var i=a.i(368114);let j=h("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 select-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 active:scale-[0.98]",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-border bg-transparent hover:bg-secondary/50 hover:text-foreground text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary/50 hover:text-foreground text-muted-foreground",link:"text-primary underline-offset-4 hover:underline",gold:"bg-gradient-to-r from-[hsl(36,82%,47%)] to-[hsl(42,88%,65%)] text-[hsl(240,20%,7%)] font-semibold hover:opacity-90 active:scale-[0.98] shadow-[0_4px_14px_0_hsl(36,82%,47%,0.4)]","gold-outline":"border border-[hsl(36,82%,47%,0.5)] text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)] hover:border-[hsl(36,82%,47%)]","gold-ghost":"text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)]"},size:{default:"h-10 px-5 py-2",xs:"h-7 px-3 text-xs rounded-lg",sm:"h-9 px-4 text-sm",lg:"h-12 px-8 text-base",xl:"h-14 px-10 text-lg",icon:"h-10 w-10","icon-sm":"h-9 w-9","icon-lg":"h-12 w-12"}},defaultVariants:{variant:"default",size:"default"}}),k=c.forwardRef(({className:a,variant:c,size:e,asChild:f=!1,...g},h)=>{let k=f?d.Slot:"button";return(0,b.jsx)(k,{className:(0,i.cn)(j({variant:c,size:e,className:a})),ref:h,...g})});k.displayName="Button",a.s(["Button",0,k],699570)},875160,702918,a=>{"use strict";let b=(0,a.i(164831).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["default",0,b],702918),a.s(["Loader2",0,b],875160)},405050,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(120611),g=a.r(1722),h=a.r(738783)},870430,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(30553),e=c.forwardRef((a,c)=>(0,b.jsx)(d.Primitive.label,{...a,ref:c,onMouseDown:b=>{b.target.closest("button, input, select, textarea")||(a.onMouseDown?.(b),!b.defaultPrevented&&b.detail>1&&b.preventDefault())}}));e.displayName="Label";var f=a.i(368114);let g=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(e,{ref:d,className:(0,f.cn)("text-sm font-medium text-foreground leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",a),...c}));g.displayName=e.displayName,a.s(["Label",0,g],870430)},429246,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(368114);let e=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("textarea",{className:(0,d.cn)("flex min-h-[80px] w-full rounded-xl border border-border bg-card px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:border-primary/50 disabled:cursor-not-allowed disabled:opacity-50 resize-none transition-colors",a),ref:e,...c}));e.displayName="Textarea",a.s(["Textarea",0,e])},162591,287828,a=>{"use strict";let b=(0,a.i(164831).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);a.s(["default",0,b],287828),a.s(["Mail",0,b],162591)},674746,694369,a=>{"use strict";let b=(0,a.i(164831).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);a.s(["default",0,b],694369),a.s(["Send",0,b],674746)},863414,a=>{"use strict";let b=(0,a.i(164831).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);a.s(["default",0,b])},875083,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(507554),e=a.i(750104),f=a.i(224050),g=a.i(777192),h=a.i(30553),i=a.i(507827),j=a.i(225152),k=a.i(392843),l="Tabs",[m,n]=(0,e.createContextScope)(l,[f.createRovingFocusGroupScope]),o=(0,f.createRovingFocusGroupScope)(),[p,q]=m(l),r=c.forwardRef((a,c)=>{let{__scopeTabs:d,value:e,onValueChange:f,defaultValue:g,orientation:m="horizontal",dir:n,activationMode:o="automatic",...q}=a,r=(0,i.useDirection)(n),[s,t]=(0,j.useControllableState)({prop:e,onChange:f,defaultProp:g??"",caller:l});return(0,b.jsx)(p,{scope:d,baseId:(0,k.useId)(),value:s,onValueChange:t,orientation:m,dir:r,activationMode:o,children:(0,b.jsx)(h.Primitive.div,{dir:r,"data-orientation":m,...q,ref:c})})});r.displayName=l;var s="TabsList",t=c.forwardRef((a,c)=>{let{__scopeTabs:d,loop:e=!0,...g}=a,i=q(s,d),j=o(d);return(0,b.jsx)(f.Root,{asChild:!0,...j,orientation:i.orientation,dir:i.dir,loop:e,children:(0,b.jsx)(h.Primitive.div,{role:"tablist","aria-orientation":i.orientation,...g,ref:c})})});t.displayName=s;var u="TabsTrigger",v=c.forwardRef((a,c)=>{let{__scopeTabs:e,value:g,disabled:i=!1,...j}=a,k=q(u,e),l=o(e),m=y(k.baseId,g),n=z(k.baseId,g),p=g===k.value;return(0,b.jsx)(f.Item,{asChild:!0,...l,focusable:!i,active:p,children:(0,b.jsx)(h.Primitive.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":n,"data-state":p?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:m,...j,ref:c,onMouseDown:(0,d.composeEventHandlers)(a.onMouseDown,a=>{i||0!==a.button||!1!==a.ctrlKey?a.preventDefault():k.onValueChange(g)}),onKeyDown:(0,d.composeEventHandlers)(a.onKeyDown,a=>{!i&&a.target===a.currentTarget&&[" ","Enter"].includes(a.key)&&k.onValueChange(g)}),onFocus:(0,d.composeEventHandlers)(a.onFocus,()=>{let a="manual"!==k.activationMode;p||i||!a||k.onValueChange(g)})})})});v.displayName=u;var w="TabsContent",x=c.forwardRef((a,d)=>{let{__scopeTabs:e,value:f,forceMount:i,children:j,...k}=a,l=q(w,e),m=y(l.baseId,f),n=z(l.baseId,f),o=f===l.value,p=c.useRef(o);return c.useEffect(()=>{let a=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(a)},[]),(0,b.jsx)(g.Presence,{present:i||o,children:({present:c})=>(0,b.jsx)(h.Primitive.div,{"data-state":o?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":m,hidden:!c,id:n,tabIndex:0,...k,ref:d,style:{...a.style,animationDuration:p.current?"0s":void 0},children:c&&j})})});function y(a,b){return`${a}-trigger-${b}`}function z(a,b){return`${a}-content-${b}`}x.displayName=w;var A=a.i(368114);let B=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(t,{ref:d,className:(0,A.cn)("inline-flex h-10 items-center gap-1 rounded-xl border border-border bg-secondary/30 p-1 text-muted-foreground",a),...c}));B.displayName=t.displayName;let C=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(v,{ref:d,className:(0,A.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-lg px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-card data-[state=active]:text-foreground data-[state=active]:shadow-sm data-[state=active]:border data-[state=active]:border-border",a),...c}));C.displayName=v.displayName;let D=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(x,{ref:d,className:(0,A.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...c}));D.displayName=x.displayName,a.s(["Tabs",0,r,"TabsContent",0,D,"TabsList",0,B,"TabsTrigger",0,C],875083)},967156,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(50944),e=a.i(695245),f=a.i(875160),g=a.i(866491),h=a.i(162591),i=a.i(674746),j=a.i(863414),j=j,k=a.i(641544),l=a.i(238246),m=a.i(823292),n=a.i(699570),o=a.i(866718),p=a.i(870430),q=a.i(429246),r=a.i(875083),s=a.i(405050);let t=(0,s.createServerReference)("700c117436201386781dec840445b2538ca69b6602",s.callServer,void 0,s.findSourceMapURL,"addLeadNote"),u=(0,s.createServerReference)("6077d3f67fb6db9b58c60e0d8c85f1a43da25413be",s.callServer,void 0,s.findSourceMapURL,"updateLeadStatus");var v=a.i(923690);a.s(["LeadDetailClient",0,function({lead:a,project:s,notes:w,activities:x,agents:y,currentUser:z}){let A=(0,d.useRouter)(),[B,C]=(0,c.useState)(!1),[D,E]=(0,c.useState)(!1),{register:F,handleSubmit:G}=(0,e.useForm)({defaultValues:{status:a.status,assigned_to:a.assigned_to??"",next_follow_up:a.next_follow_up??""}}),{register:H,handleSubmit:I,reset:J}=(0,e.useForm)({defaultValues:{content:""}}),K=async b=>{C(!0);try{let c=await u(a.id,b);c.success?(m.toast.success("Lead details updated!"),A.refresh()):m.toast.error(c.error??"Failed to update status")}catch{m.toast.error("Failed to update status")}finally{C(!1)}},L=async b=>{if(b.content.trim()){E(!0);try{let c=await t(a.id,{content:b.content,type:"general",is_private:!1},z.id);c.success?(m.toast.success("Note added!"),J(),A.refresh()):m.toast.error(c.error??"Failed to add note")}catch{m.toast.error("Failed to add note")}finally{E(!1)}}};return(0,b.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,b.jsx)("div",{children:(0,b.jsxs)(l.default,{href:"/admin/leads",className:"inline-flex items-center gap-2 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[(0,b.jsx)(j.default,{className:"w-3.5 h-3.5"})," Back to Leads Directory"]})}),(0,b.jsxs)("div",{className:"grid lg:grid-cols-3 gap-6",children:[(0,b.jsxs)("div",{className:"lg:col-span-1 space-y-6",children:[(0,b.jsxs)("div",{className:"glass-card p-6 rounded-2xl space-y-4",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-[hsl(36,82%,47%)] to-[hsl(42,88%,65%)] flex items-center justify-center text-[hsl(240,20%,7%)] font-bold text-lg",children:a.name?.charAt(0)??"?"}),(0,b.jsxs)("div",{children:[(0,b.jsx)("h3",{className:"font-semibold text-foreground text-base",children:a.name}),(0,b.jsxs)("span",{className:"text-xs text-muted-foreground",children:["Enquired ",(0,v.formatRelativeDate)(a.created_at)]})]})]}),(0,b.jsxs)("div",{className:"border-t border-border pt-4 space-y-3 text-sm",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2.5 text-muted-foreground",children:[(0,b.jsx)(g.Phone,{className:"w-4 h-4 text-primary shrink-0"}),(0,b.jsx)("a",{href:`tel:${a.phone}`,className:"hover:text-foreground hover:underline",children:a.phone})]}),a.email&&(0,b.jsxs)("div",{className:"flex items-center gap-2.5 text-muted-foreground",children:[(0,b.jsx)(h.Mail,{className:"w-4 h-4 text-primary shrink-0"}),(0,b.jsx)("a",{href:`mailto:${a.email}`,className:"hover:text-foreground hover:underline",children:a.email})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2.5 text-muted-foreground",children:[(0,b.jsx)(k.ClipboardList,{className:"w-4 h-4 text-primary shrink-0"}),(0,b.jsxs)("span",{children:["Source: ",(0,b.jsx)("strong",{className:"text-foreground capitalize",children:a.source})]})]})]})]}),(0,b.jsxs)("div",{className:"glass-card p-6 rounded-2xl",children:[(0,b.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-4",children:"Lead Status & Agent Assignment"}),(0,b.jsxs)("form",{onSubmit:G(K),className:"space-y-4",children:[(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(p.Label,{children:"Lead Status"}),(0,b.jsxs)("select",{...F("status"),className:"h-10 w-full px-3 rounded-xl border border-border bg-card text-sm text-foreground focus:outline-none",children:[(0,b.jsx)("option",{value:"new",children:"New"}),(0,b.jsx)("option",{value:"contacted",children:"Contacted"}),(0,b.jsx)("option",{value:"qualified",children:"Qualified"}),(0,b.jsx)("option",{value:"site_visit",children:"Site Visit"}),(0,b.jsx)("option",{value:"negotiating",children:"Negotiating"}),(0,b.jsx)("option",{value:"closed_won",children:"Closed Won"}),(0,b.jsx)("option",{value:"closed_lost",children:"Closed Lost"}),(0,b.jsx)("option",{value:"junk",children:"Junk"})]})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(p.Label,{children:"Assign Property Consultant"}),(0,b.jsxs)("select",{...F("assigned_to"),className:"h-10 w-full px-3 rounded-xl border border-border bg-card text-sm text-foreground focus:outline-none",children:[(0,b.jsx)("option",{value:"",children:"Unassigned"}),y.map(a=>(0,b.jsx)("option",{value:a.id,children:a.name},a.id))]})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(p.Label,{children:"Next Follow-up Date"}),(0,b.jsx)(o.Input,{type:"date",...F("next_follow_up"),className:"bg-card border-border"})]}),(0,b.jsx)(n.Button,{type:"submit",variant:"gold",className:"w-full",disabled:B,children:B?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.Loader2,{className:"w-4 h-4 animate-spin"})," Updating..."]}):"Update Lead"})]})]})]}),(0,b.jsxs)("div",{className:"lg:col-span-2 space-y-6",children:[(0,b.jsxs)("div",{className:"glass-card p-6 rounded-2xl",children:[(0,b.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-3",children:"Property Interest"}),(0,b.jsxs)("div",{className:"grid md:grid-cols-2 gap-4 text-sm",children:[(0,b.jsxs)("div",{className:"p-3 bg-secondary/15 rounded-xl",children:[(0,b.jsx)("div",{className:"text-xs text-muted-foreground mb-0.5",children:"Interested Project"}),(0,b.jsx)("div",{className:"font-semibold text-foreground",children:s?.name??"General Enquiry"})]}),a.property_type&&(0,b.jsxs)("div",{className:"p-3 bg-secondary/15 rounded-xl",children:[(0,b.jsx)("div",{className:"text-xs text-muted-foreground mb-0.5",children:"Configuration Category"}),(0,b.jsx)("div",{className:"font-semibold text-foreground capitalize",children:a.property_type})]})]}),a.message&&(0,b.jsxs)("div",{className:"mt-4 p-4 bg-secondary/10 rounded-xl",children:[(0,b.jsx)("div",{className:"text-xs text-muted-foreground mb-1.5",children:"User Message"}),(0,b.jsx)("p",{className:"text-foreground text-sm leading-relaxed",children:a.message})]})]}),(0,b.jsxs)(r.Tabs,{defaultValue:"notes",className:"w-full",children:[(0,b.jsxs)(r.TabsList,{className:"w-full justify-start border-b border-border bg-transparent h-auto p-0 rounded-none mb-4",children:[(0,b.jsxs)(r.TabsTrigger,{value:"notes",className:"px-4 py-2 text-sm font-medium border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-transparent rounded-none",children:["Lead Notes (",w.length,")"]}),(0,b.jsxs)(r.TabsTrigger,{value:"activities",className:"px-4 py-2 text-sm font-medium border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-transparent rounded-none",children:["Activity Audit (",x.length,")"]})]}),(0,b.jsxs)(r.TabsContent,{value:"notes",className:"space-y-4",children:[(0,b.jsxs)("form",{onSubmit:I(L),className:"space-y-2",children:[(0,b.jsx)(q.Textarea,{...H("content"),placeholder:"Type notes from calls, site visits, or messages here...",className:"bg-card border-border min-h-[90px]"}),(0,b.jsx)("div",{className:"flex justify-end",children:(0,b.jsx)(n.Button,{type:"submit",variant:"gold",size:"sm",disabled:D,children:D?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.Loader2,{className:"w-3.5 h-3.5 animate-spin"})," Adding..."]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(i.Send,{className:"w-3.5 h-3.5"})," Add Note"]})})})]}),(0,b.jsx)("div",{className:"space-y-3",children:0===w.length?(0,b.jsx)("p",{className:"text-center py-6 text-xs text-muted-foreground",children:"No notes recorded yet."}):w.map(a=>(0,b.jsxs)("div",{className:"p-4 bg-secondary/15 rounded-xl border border-border/50 text-sm",children:[(0,b.jsx)("p",{className:"text-foreground leading-relaxed",children:a.content}),(0,b.jsxs)("div",{className:"flex items-center justify-between mt-3 text-xs text-muted-foreground border-t border-border/30 pt-2",children:[(0,b.jsx)("span",{children:"By Agent"}),(0,b.jsx)("span",{children:(0,v.formatRelativeDate)(a.created_at)})]})]},a.id))})]}),(0,b.jsx)(r.TabsContent,{value:"activities",className:"space-y-3",children:0===x.length?(0,b.jsx)("p",{className:"text-center py-6 text-xs text-muted-foreground",children:"No activities recorded yet."}):x.map(a=>(0,b.jsxs)("div",{className:"p-3 bg-secondary/10 rounded-xl text-xs flex items-center justify-between border border-border/20",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{className:"font-semibold text-foreground capitalize mr-2",children:a.action}),(0,b.jsx)("span",{className:"text-muted-foreground",children:a.description})]}),(0,b.jsx)("span",{className:"text-[10px] text-muted-foreground shrink-0 ml-4",children:(0,v.formatRelativeDate)(a.created_at)})]},a.id))})]})]})]})]})}],967156)}];
1
+ module.exports=[923690,a=>{"use strict";var b=a.i(298621),c=a.i(474614);a.s(["cn",0,function(...a){return(0,c.twMerge)((0,b.clsx)(a))},"formatCurrency",0,function(a,b="INR",c="en-IN"){return a>=1e7?`₹${(a/1e7).toFixed(2)} Cr`:a>=1e5?`₹${(a/1e5).toFixed(2)} L`:new Intl.NumberFormat(c,{style:"currency",currency:b,maximumFractionDigits:0}).format(a)},"formatDate",0,function(a,b={year:"numeric",month:"long",day:"numeric"},c="en-IN"){return("string"==typeof a?new Date(a):a).toLocaleDateString(c,b)},"formatRelativeDate",0,function(a){let b="string"==typeof a?new Date(a):a,c=Math.floor((new Date().getTime()-b.getTime())/1e3),d=Math.floor(c/60),e=Math.floor(d/60),f=Math.floor(e/24),g=Math.floor(f/30),h=Math.floor(g/12);return c<60?"just now":d<60?`${d}m ago`:e<24?`${e}h ago`:f<30?`${f}d ago`:g<12?`${g}mo ago`:`${h}y ago`}])},866718,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(368114);let e=c.forwardRef(({className:a,type:c,...e},f)=>(0,b.jsx)("input",{type:c,className:(0,d.cn)("flex h-10 w-full rounded-xl border border-border bg-card px-3 py-2 text-sm text-foreground ring-offset-background placeholder:text-muted-foreground/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:border-primary/50 disabled:cursor-not-allowed disabled:opacity-50 transition-colors",a),ref:f,...e}));e.displayName="Input",a.s(["Input",0,e])},699570,400187,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(811011),e=a.i(298621);let f=a=>"boolean"==typeof a?`${a}`:0===a?"0":a,g=e.clsx,h=(a,b)=>c=>{var d;if((null==b?void 0:b.variants)==null)return g(a,null==c?void 0:c.class,null==c?void 0:c.className);let{variants:e,defaultVariants:h}=b,i=Object.keys(e).map(a=>{let b=null==c?void 0:c[a],d=null==h?void 0:h[a];if(null===b)return null;let g=f(b)||f(d);return e[a][g]}),j=c&&Object.entries(c).reduce((a,b)=>{let[c,d]=b;return void 0===d||(a[c]=d),a},{});return g(a,i,null==b||null==(d=b.compoundVariants)?void 0:d.reduce((a,b)=>{let{class:c,className:d,...e}=b;return Object.entries(e).every(a=>{let[b,c]=a;return Array.isArray(c)?c.includes({...h,...j}[b]):({...h,...j})[b]===c})?[...a,c,d]:a},[]),null==c?void 0:c.class,null==c?void 0:c.className)};a.s(["cva",0,h],400187);var i=a.i(368114);let j=h("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 select-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 active:scale-[0.98]",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-border bg-transparent hover:bg-secondary/50 hover:text-foreground text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary/50 hover:text-foreground text-muted-foreground",link:"text-primary underline-offset-4 hover:underline",gold:"bg-gradient-to-r from-[hsl(36,82%,47%)] to-[hsl(42,88%,65%)] text-[hsl(240,20%,7%)] font-semibold hover:opacity-90 active:scale-[0.98] shadow-[0_4px_14px_0_hsl(36,82%,47%,0.4)]","gold-outline":"border border-[hsl(36,82%,47%,0.5)] text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)] hover:border-[hsl(36,82%,47%)]","gold-ghost":"text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)]"},size:{default:"h-10 px-5 py-2",xs:"h-7 px-3 text-xs rounded-lg",sm:"h-9 px-4 text-sm",lg:"h-12 px-8 text-base",xl:"h-14 px-10 text-lg",icon:"h-10 w-10","icon-sm":"h-9 w-9","icon-lg":"h-12 w-12"}},defaultVariants:{variant:"default",size:"default"}}),k=c.forwardRef(({className:a,variant:c,size:e,asChild:f=!1,...g},h)=>{let k=f?d.Slot:"button";return(0,b.jsx)(k,{className:(0,i.cn)(j({variant:c,size:e,className:a})),ref:h,...g})});k.displayName="Button",a.s(["Button",0,k],699570)},875160,702918,a=>{"use strict";let b=(0,a.i(164831).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["default",0,b],702918),a.s(["Loader2",0,b],875160)},405050,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(120611),g=a.r(1722),h=a.r(738783)},870430,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(30553),e=c.forwardRef((a,c)=>(0,b.jsx)(d.Primitive.label,{...a,ref:c,onMouseDown:b=>{b.target.closest("button, input, select, textarea")||(a.onMouseDown?.(b),!b.defaultPrevented&&b.detail>1&&b.preventDefault())}}));e.displayName="Label";var f=a.i(368114);let g=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(e,{ref:d,className:(0,f.cn)("text-sm font-medium text-foreground leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",a),...c}));g.displayName=e.displayName,a.s(["Label",0,g],870430)},429246,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(368114);let e=c.forwardRef(({className:a,...c},e)=>(0,b.jsx)("textarea",{className:(0,d.cn)("flex min-h-[80px] w-full rounded-xl border border-border bg-card px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:border-primary/50 disabled:cursor-not-allowed disabled:opacity-50 resize-none transition-colors",a),ref:e,...c}));e.displayName="Textarea",a.s(["Textarea",0,e])},162591,287828,a=>{"use strict";let b=(0,a.i(164831).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);a.s(["default",0,b],287828),a.s(["Mail",0,b],162591)},674746,694369,a=>{"use strict";let b=(0,a.i(164831).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);a.s(["default",0,b],694369),a.s(["Send",0,b],674746)},863414,a=>{"use strict";let b=(0,a.i(164831).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);a.s(["default",0,b])},875083,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(507554),e=a.i(750104),f=a.i(224050),g=a.i(777192),h=a.i(30553),i=a.i(507827),j=a.i(225152),k=a.i(392843),l="Tabs",[m,n]=(0,e.createContextScope)(l,[f.createRovingFocusGroupScope]),o=(0,f.createRovingFocusGroupScope)(),[p,q]=m(l),r=c.forwardRef((a,c)=>{let{__scopeTabs:d,value:e,onValueChange:f,defaultValue:g,orientation:m="horizontal",dir:n,activationMode:o="automatic",...q}=a,r=(0,i.useDirection)(n),[s,t]=(0,j.useControllableState)({prop:e,onChange:f,defaultProp:g??"",caller:l});return(0,b.jsx)(p,{scope:d,baseId:(0,k.useId)(),value:s,onValueChange:t,orientation:m,dir:r,activationMode:o,children:(0,b.jsx)(h.Primitive.div,{dir:r,"data-orientation":m,...q,ref:c})})});r.displayName=l;var s="TabsList",t=c.forwardRef((a,c)=>{let{__scopeTabs:d,loop:e=!0,...g}=a,i=q(s,d),j=o(d);return(0,b.jsx)(f.Root,{asChild:!0,...j,orientation:i.orientation,dir:i.dir,loop:e,children:(0,b.jsx)(h.Primitive.div,{role:"tablist","aria-orientation":i.orientation,...g,ref:c})})});t.displayName=s;var u="TabsTrigger",v=c.forwardRef((a,c)=>{let{__scopeTabs:e,value:g,disabled:i=!1,...j}=a,k=q(u,e),l=o(e),m=y(k.baseId,g),n=z(k.baseId,g),p=g===k.value;return(0,b.jsx)(f.Item,{asChild:!0,...l,focusable:!i,active:p,children:(0,b.jsx)(h.Primitive.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":n,"data-state":p?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:m,...j,ref:c,onMouseDown:(0,d.composeEventHandlers)(a.onMouseDown,a=>{i||0!==a.button||!1!==a.ctrlKey?a.preventDefault():k.onValueChange(g)}),onKeyDown:(0,d.composeEventHandlers)(a.onKeyDown,a=>{!i&&a.target===a.currentTarget&&[" ","Enter"].includes(a.key)&&k.onValueChange(g)}),onFocus:(0,d.composeEventHandlers)(a.onFocus,()=>{let a="manual"!==k.activationMode;p||i||!a||k.onValueChange(g)})})})});v.displayName=u;var w="TabsContent",x=c.forwardRef((a,d)=>{let{__scopeTabs:e,value:f,forceMount:i,children:j,...k}=a,l=q(w,e),m=y(l.baseId,f),n=z(l.baseId,f),o=f===l.value,p=c.useRef(o);return c.useEffect(()=>{let a=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(a)},[]),(0,b.jsx)(g.Presence,{present:i||o,children:({present:c})=>(0,b.jsx)(h.Primitive.div,{"data-state":o?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":m,hidden:!c,id:n,tabIndex:0,...k,ref:d,style:{...a.style,animationDuration:p.current?"0s":void 0},children:c&&j})})});function y(a,b){return`${a}-trigger-${b}`}function z(a,b){return`${a}-content-${b}`}x.displayName=w;var A=a.i(368114);let B=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(t,{ref:d,className:(0,A.cn)("inline-flex h-10 items-center gap-1 rounded-xl border border-border bg-secondary/30 p-1 text-muted-foreground",a),...c}));B.displayName=t.displayName;let C=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(v,{ref:d,className:(0,A.cn)("inline-flex items-center justify-center whitespace-nowrap rounded-lg px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-card data-[state=active]:text-foreground data-[state=active]:shadow-sm data-[state=active]:border data-[state=active]:border-border",a),...c}));C.displayName=v.displayName;let D=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(x,{ref:d,className:(0,A.cn)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...c}));D.displayName=x.displayName,a.s(["Tabs",0,r,"TabsContent",0,D,"TabsList",0,B,"TabsTrigger",0,C],875083)},967156,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(50944),e=a.i(695245),f=a.i(875160),g=a.i(866491),h=a.i(162591),i=a.i(674746),j=a.i(863414),j=j,k=a.i(641544),l=a.i(238246),m=a.i(823292),n=a.i(699570),o=a.i(866718),p=a.i(870430),q=a.i(429246),r=a.i(875083),s=a.i(405050);let t=(0,s.createServerReference)("700a86e30eb0d95acc1e992813d62568a937524a30",s.callServer,void 0,s.findSourceMapURL,"addLeadNote"),u=(0,s.createServerReference)("60f2dc2a48282597bf192c74a107a363792207929c",s.callServer,void 0,s.findSourceMapURL,"updateLeadStatus");var v=a.i(923690);a.s(["LeadDetailClient",0,function({lead:a,project:s,notes:w,activities:x,agents:y,currentUser:z}){let A=(0,d.useRouter)(),[B,C]=(0,c.useState)(!1),[D,E]=(0,c.useState)(!1),{register:F,handleSubmit:G}=(0,e.useForm)({defaultValues:{status:a.status,assigned_to:a.assigned_to??"",next_follow_up:a.next_follow_up??""}}),{register:H,handleSubmit:I,reset:J}=(0,e.useForm)({defaultValues:{content:""}}),K=async b=>{C(!0);try{let c=await u(a.id,b);c.success?(m.toast.success("Lead details updated!"),A.refresh()):m.toast.error(c.error??"Failed to update status")}catch{m.toast.error("Failed to update status")}finally{C(!1)}},L=async b=>{if(b.content.trim()){E(!0);try{let c=await t(a.id,{content:b.content,type:"general",is_private:!1},z.id);c.success?(m.toast.success("Note added!"),J(),A.refresh()):m.toast.error(c.error??"Failed to add note")}catch{m.toast.error("Failed to add note")}finally{E(!1)}}};return(0,b.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,b.jsx)("div",{children:(0,b.jsxs)(l.default,{href:"/admin/leads",className:"inline-flex items-center gap-2 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[(0,b.jsx)(j.default,{className:"w-3.5 h-3.5"})," Back to Leads Directory"]})}),(0,b.jsxs)("div",{className:"grid lg:grid-cols-3 gap-6",children:[(0,b.jsxs)("div",{className:"lg:col-span-1 space-y-6",children:[(0,b.jsxs)("div",{className:"glass-card p-6 rounded-2xl space-y-4",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-[hsl(36,82%,47%)] to-[hsl(42,88%,65%)] flex items-center justify-center text-[hsl(240,20%,7%)] font-bold text-lg",children:a.name?.charAt(0)??"?"}),(0,b.jsxs)("div",{children:[(0,b.jsx)("h3",{className:"font-semibold text-foreground text-base",children:a.name}),(0,b.jsxs)("span",{className:"text-xs text-muted-foreground",children:["Enquired ",(0,v.formatRelativeDate)(a.created_at)]})]})]}),(0,b.jsxs)("div",{className:"border-t border-border pt-4 space-y-3 text-sm",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2.5 text-muted-foreground",children:[(0,b.jsx)(g.Phone,{className:"w-4 h-4 text-primary shrink-0"}),(0,b.jsx)("a",{href:`tel:${a.phone}`,className:"hover:text-foreground hover:underline",children:a.phone})]}),a.email&&(0,b.jsxs)("div",{className:"flex items-center gap-2.5 text-muted-foreground",children:[(0,b.jsx)(h.Mail,{className:"w-4 h-4 text-primary shrink-0"}),(0,b.jsx)("a",{href:`mailto:${a.email}`,className:"hover:text-foreground hover:underline",children:a.email})]}),(0,b.jsxs)("div",{className:"flex items-center gap-2.5 text-muted-foreground",children:[(0,b.jsx)(k.ClipboardList,{className:"w-4 h-4 text-primary shrink-0"}),(0,b.jsxs)("span",{children:["Source: ",(0,b.jsx)("strong",{className:"text-foreground capitalize",children:a.source})]})]})]})]}),(0,b.jsxs)("div",{className:"glass-card p-6 rounded-2xl",children:[(0,b.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-4",children:"Lead Status & Agent Assignment"}),(0,b.jsxs)("form",{onSubmit:G(K),className:"space-y-4",children:[(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(p.Label,{children:"Lead Status"}),(0,b.jsxs)("select",{...F("status"),className:"h-10 w-full px-3 rounded-xl border border-border bg-card text-sm text-foreground focus:outline-none",children:[(0,b.jsx)("option",{value:"new",children:"New"}),(0,b.jsx)("option",{value:"contacted",children:"Contacted"}),(0,b.jsx)("option",{value:"qualified",children:"Qualified"}),(0,b.jsx)("option",{value:"site_visit",children:"Site Visit"}),(0,b.jsx)("option",{value:"negotiating",children:"Negotiating"}),(0,b.jsx)("option",{value:"closed_won",children:"Closed Won"}),(0,b.jsx)("option",{value:"closed_lost",children:"Closed Lost"}),(0,b.jsx)("option",{value:"junk",children:"Junk"})]})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(p.Label,{children:"Assign Property Consultant"}),(0,b.jsxs)("select",{...F("assigned_to"),className:"h-10 w-full px-3 rounded-xl border border-border bg-card text-sm text-foreground focus:outline-none",children:[(0,b.jsx)("option",{value:"",children:"Unassigned"}),y.map(a=>(0,b.jsx)("option",{value:a.id,children:a.name},a.id))]})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(p.Label,{children:"Next Follow-up Date"}),(0,b.jsx)(o.Input,{type:"date",...F("next_follow_up"),className:"bg-card border-border"})]}),(0,b.jsx)(n.Button,{type:"submit",variant:"gold",className:"w-full",disabled:B,children:B?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.Loader2,{className:"w-4 h-4 animate-spin"})," Updating..."]}):"Update Lead"})]})]})]}),(0,b.jsxs)("div",{className:"lg:col-span-2 space-y-6",children:[(0,b.jsxs)("div",{className:"glass-card p-6 rounded-2xl",children:[(0,b.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-3",children:"Property Interest"}),(0,b.jsxs)("div",{className:"grid md:grid-cols-2 gap-4 text-sm",children:[(0,b.jsxs)("div",{className:"p-3 bg-secondary/15 rounded-xl",children:[(0,b.jsx)("div",{className:"text-xs text-muted-foreground mb-0.5",children:"Interested Project"}),(0,b.jsx)("div",{className:"font-semibold text-foreground",children:s?.name??"General Enquiry"})]}),a.property_type&&(0,b.jsxs)("div",{className:"p-3 bg-secondary/15 rounded-xl",children:[(0,b.jsx)("div",{className:"text-xs text-muted-foreground mb-0.5",children:"Configuration Category"}),(0,b.jsx)("div",{className:"font-semibold text-foreground capitalize",children:a.property_type})]})]}),a.message&&(0,b.jsxs)("div",{className:"mt-4 p-4 bg-secondary/10 rounded-xl",children:[(0,b.jsx)("div",{className:"text-xs text-muted-foreground mb-1.5",children:"User Message"}),(0,b.jsx)("p",{className:"text-foreground text-sm leading-relaxed",children:a.message})]})]}),(0,b.jsxs)(r.Tabs,{defaultValue:"notes",className:"w-full",children:[(0,b.jsxs)(r.TabsList,{className:"w-full justify-start border-b border-border bg-transparent h-auto p-0 rounded-none mb-4",children:[(0,b.jsxs)(r.TabsTrigger,{value:"notes",className:"px-4 py-2 text-sm font-medium border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-transparent rounded-none",children:["Lead Notes (",w.length,")"]}),(0,b.jsxs)(r.TabsTrigger,{value:"activities",className:"px-4 py-2 text-sm font-medium border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-transparent rounded-none",children:["Activity Audit (",x.length,")"]})]}),(0,b.jsxs)(r.TabsContent,{value:"notes",className:"space-y-4",children:[(0,b.jsxs)("form",{onSubmit:I(L),className:"space-y-2",children:[(0,b.jsx)(q.Textarea,{...H("content"),placeholder:"Type notes from calls, site visits, or messages here...",className:"bg-card border-border min-h-[90px]"}),(0,b.jsx)("div",{className:"flex justify-end",children:(0,b.jsx)(n.Button,{type:"submit",variant:"gold",size:"sm",disabled:D,children:D?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(f.Loader2,{className:"w-3.5 h-3.5 animate-spin"})," Adding..."]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(i.Send,{className:"w-3.5 h-3.5"})," Add Note"]})})})]}),(0,b.jsx)("div",{className:"space-y-3",children:0===w.length?(0,b.jsx)("p",{className:"text-center py-6 text-xs text-muted-foreground",children:"No notes recorded yet."}):w.map(a=>(0,b.jsxs)("div",{className:"p-4 bg-secondary/15 rounded-xl border border-border/50 text-sm",children:[(0,b.jsx)("p",{className:"text-foreground leading-relaxed",children:a.content}),(0,b.jsxs)("div",{className:"flex items-center justify-between mt-3 text-xs text-muted-foreground border-t border-border/30 pt-2",children:[(0,b.jsx)("span",{children:"By Agent"}),(0,b.jsx)("span",{children:(0,v.formatRelativeDate)(a.created_at)})]})]},a.id))})]}),(0,b.jsx)(r.TabsContent,{value:"activities",className:"space-y-3",children:0===x.length?(0,b.jsx)("p",{className:"text-center py-6 text-xs text-muted-foreground",children:"No activities recorded yet."}):x.map(a=>(0,b.jsxs)("div",{className:"p-3 bg-secondary/10 rounded-xl text-xs flex items-center justify-between border border-border/20",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{className:"font-semibold text-foreground capitalize mr-2",children:a.action}),(0,b.jsx)("span",{className:"text-muted-foreground",children:a.description})]}),(0,b.jsx)("span",{className:"text-[10px] text-muted-foreground shrink-0 ml-4",children:(0,v.formatRelativeDate)(a.created_at)})]},a.id))})]})]})]})]})}],967156)}];
2
2
 
3
3
  //# sourceMappingURL=_0qdyrxm._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[415337,a=>{"use strict";let b=(0,a.i(164831).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);a.s(["default",0,b])},308311,a=>{"use strict";var b=a.i(415337);a.s(["Clock",()=>b.default])},575712,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(346271),e=a.i(695245),f=a.i(159501),g=a.i(954098),h=a.i(866491),i=a.i(162591),j=a.i(308311),k=a.i(674746),l=a.i(79362),m=a.i(875160),n=a.i(944597),o=a.i(823292),p=a.i(699570),q=a.i(866718),r=a.i(870430),s=a.i(429246),t=a.i(704607),u=a.i(405050);let v=(0,u.createServerReference)("401d21b2615952c9259b71539410cec7d60a8f78c9",u.callServer,void 0,u.findSourceMapURL,"submitContact");var w=a.i(781737);let x=[{icon:h.Phone,label:"Call Us",value:"+91 99999 99999",href:"tel:+919999999999"},{icon:i.Mail,label:"Email Us",value:"info@propvault.in",href:"mailto:info@propvault.in"},{icon:g.MapPin,label:"Visit Us",value:"PropVault Tower, BKC, Mumbai 400051",href:"https://maps.google.com"},{icon:j.Clock,label:"Office Hours",value:"Mon–Sat: 9AM–7PM IST",href:null}];a.s(["ContactPageClient",0,function(){let[a,g]=(0,c.useState)(!1),[h,i]=(0,c.useState)(!1),{register:j,handleSubmit:u,formState:{errors:y},reset:z}=(0,e.useForm)({resolver:(0,f.zodResolver)(t.contactSchema)}),A=async a=>{i(!0);try{let b=await v(a);b.success?(g(!0),z()):o.toast.error(b.error??"Failed to submit. Please try again.")}catch{o.toast.error("Something went wrong.")}finally{i(!1)}};return(0,b.jsxs)("div",{className:"min-h-screen pt-20",children:[(0,b.jsx)("section",{className:"section-padding bg-[hsl(240,15%,9%)]",children:(0,b.jsxs)("div",{className:"section-container text-center",children:[(0,b.jsx)("span",{className:"badge-gold mb-4 inline-flex",children:"Get In Touch"}),(0,b.jsx)("h1",{className:"section-title text-4xl lg:text-5xl mb-4",children:"Contact PropVault"}),(0,b.jsx)("div",{className:"gold-divider"}),(0,b.jsx)("p",{className:"section-subtitle mt-4 max-w-xl mx-auto",children:"Have a question? Our team of property experts is here to help. Reach out and we'll respond within 30 minutes."})]})}),(0,b.jsx)("section",{className:"section-container py-16",children:(0,b.jsxs)("div",{className:"grid lg:grid-cols-3 gap-10",children:[(0,b.jsx)("div",{className:"lg:col-span-1",children:(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[x.map(({icon:a,label:c,value:e,href:f})=>(0,b.jsxs)(d.motion.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},className:"luxury-card p-5 flex items-start gap-4",children:[(0,b.jsx)("div",{className:"w-10 h-10 rounded-xl bg-[hsl(36,82%,47%,0.1)] border border-[hsl(36,82%,47%,0.2)] flex items-center justify-center shrink-0",children:(0,b.jsx)(a,{className:"w-5 h-5 text-[hsl(36,82%,47%)]"})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-xs text-muted-foreground mb-0.5",children:c}),f?(0,b.jsx)("a",{href:f,className:"font-medium text-foreground hover:text-[hsl(36,82%,47%)] transition-colors text-sm",children:e}):(0,b.jsx)("p",{className:"font-medium text-foreground text-sm",children:e})]})]},c)),(0,b.jsxs)("a",{href:`https://wa.me/${w.WHATSAPP_NUMBER}?text=Hi, I have a query`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-3 py-4 bg-green-600/10 border border-green-600/30 text-green-400 rounded-2xl font-semibold hover:bg-green-600/20 transition-colors",children:[(0,b.jsx)(n.MessageCircle,{className:"w-5 h-5"}),"Chat on WhatsApp"]})]})}),(0,b.jsx)("div",{className:"lg:col-span-2",children:(0,b.jsx)("div",{className:"luxury-card p-8",children:a?(0,b.jsxs)(d.motion.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},className:"text-center py-10",children:[(0,b.jsx)("div",{className:"w-16 h-16 bg-green-500/15 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,b.jsx)(l.CheckCircle,{className:"w-8 h-8 text-green-400"})}),(0,b.jsx)("h3",{className:"font-display text-2xl font-bold text-foreground mb-2",children:"Message Received!"}),(0,b.jsx)("p",{className:"text-muted-foreground mb-6",children:"Our team will get back to you within 1 business day."}),(0,b.jsx)(p.Button,{variant:"gold-outline",onClick:()=>g(!1),children:"Send Another Message"})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("h2",{className:"font-display text-2xl font-bold text-foreground mb-6",children:"Send Us a Message"}),(0,b.jsxs)("form",{onSubmit:u(A),className:"flex flex-col gap-4",children:[(0,b.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(r.Label,{htmlFor:"contact-name",children:"Full Name *"}),(0,b.jsx)(q.Input,{id:"contact-name",...j("name"),placeholder:"John Doe",className:y.name?"border-destructive":""}),y.name&&(0,b.jsx)("p",{className:"text-xs text-destructive",children:y.name.message})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(r.Label,{htmlFor:"contact-email",children:"Email Address *"}),(0,b.jsx)(q.Input,{id:"contact-email",...j("email"),type:"email",placeholder:"john@example.com",className:y.email?"border-destructive":""}),y.email&&(0,b.jsx)("p",{className:"text-xs text-destructive",children:y.email.message})]})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(r.Label,{htmlFor:"contact-phone",children:"Phone Number"}),(0,b.jsx)(q.Input,{id:"contact-phone",...j("phone"),type:"tel",placeholder:"+91 98765 43210"})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(r.Label,{htmlFor:"contact-subject",children:"Subject *"}),(0,b.jsx)(q.Input,{id:"contact-subject",...j("subject"),placeholder:"Property Enquiry / Investment Query / etc.",className:y.subject?"border-destructive":""}),y.subject&&(0,b.jsx)("p",{className:"text-xs text-destructive",children:y.subject.message})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(r.Label,{htmlFor:"contact-message",children:"Message *"}),(0,b.jsx)(s.Textarea,{id:"contact-message",...j("message"),placeholder:"Tell us how we can help you...",className:`min-h-[140px] ${y.message?"border-destructive":""}`}),y.message&&(0,b.jsx)("p",{className:"text-xs text-destructive",children:y.message.message})]}),(0,b.jsx)(p.Button,{type:"submit",variant:"gold",size:"lg",disabled:h,className:"w-full sm:w-auto",children:h?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(m.Loader2,{className:"w-4 h-4 animate-spin"}),"Sending..."]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(k.Send,{className:"w-4 h-4"}),"Send Message"]})})]})]})})})]})})]})}],575712)}];
1
+ module.exports=[415337,a=>{"use strict";let b=(0,a.i(164831).default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);a.s(["default",0,b])},308311,a=>{"use strict";var b=a.i(415337);a.s(["Clock",()=>b.default])},575712,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(346271),e=a.i(695245),f=a.i(159501),g=a.i(954098),h=a.i(866491),i=a.i(162591),j=a.i(308311),k=a.i(674746),l=a.i(79362),m=a.i(875160),n=a.i(944597),o=a.i(823292),p=a.i(699570),q=a.i(866718),r=a.i(870430),s=a.i(429246),t=a.i(704607),u=a.i(405050);let v=(0,u.createServerReference)("409fd8117d5bf863e1ce4bf92dea1bcfc43248996d",u.callServer,void 0,u.findSourceMapURL,"submitContact");var w=a.i(781737);let x=[{icon:h.Phone,label:"Call Us",value:"+91 99999 99999",href:"tel:+919999999999"},{icon:i.Mail,label:"Email Us",value:"info@propvault.in",href:"mailto:info@propvault.in"},{icon:g.MapPin,label:"Visit Us",value:"PropVault Tower, BKC, Mumbai 400051",href:"https://maps.google.com"},{icon:j.Clock,label:"Office Hours",value:"Mon–Sat: 9AM–7PM IST",href:null}];a.s(["ContactPageClient",0,function(){let[a,g]=(0,c.useState)(!1),[h,i]=(0,c.useState)(!1),{register:j,handleSubmit:u,formState:{errors:y},reset:z}=(0,e.useForm)({resolver:(0,f.zodResolver)(t.contactSchema)}),A=async a=>{i(!0);try{let b=await v(a);b.success?(g(!0),z()):o.toast.error(b.error??"Failed to submit. Please try again.")}catch{o.toast.error("Something went wrong.")}finally{i(!1)}};return(0,b.jsxs)("div",{className:"min-h-screen pt-20",children:[(0,b.jsx)("section",{className:"section-padding bg-[hsl(240,15%,9%)]",children:(0,b.jsxs)("div",{className:"section-container text-center",children:[(0,b.jsx)("span",{className:"badge-gold mb-4 inline-flex",children:"Get In Touch"}),(0,b.jsx)("h1",{className:"section-title text-4xl lg:text-5xl mb-4",children:"Contact PropVault"}),(0,b.jsx)("div",{className:"gold-divider"}),(0,b.jsx)("p",{className:"section-subtitle mt-4 max-w-xl mx-auto",children:"Have a question? Our team of property experts is here to help. Reach out and we'll respond within 30 minutes."})]})}),(0,b.jsx)("section",{className:"section-container py-16",children:(0,b.jsxs)("div",{className:"grid lg:grid-cols-3 gap-10",children:[(0,b.jsx)("div",{className:"lg:col-span-1",children:(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[x.map(({icon:a,label:c,value:e,href:f})=>(0,b.jsxs)(d.motion.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},className:"luxury-card p-5 flex items-start gap-4",children:[(0,b.jsx)("div",{className:"w-10 h-10 rounded-xl bg-[hsl(36,82%,47%,0.1)] border border-[hsl(36,82%,47%,0.2)] flex items-center justify-center shrink-0",children:(0,b.jsx)(a,{className:"w-5 h-5 text-[hsl(36,82%,47%)]"})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"text-xs text-muted-foreground mb-0.5",children:c}),f?(0,b.jsx)("a",{href:f,className:"font-medium text-foreground hover:text-[hsl(36,82%,47%)] transition-colors text-sm",children:e}):(0,b.jsx)("p",{className:"font-medium text-foreground text-sm",children:e})]})]},c)),(0,b.jsxs)("a",{href:`https://wa.me/${w.WHATSAPP_NUMBER}?text=Hi, I have a query`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-3 py-4 bg-green-600/10 border border-green-600/30 text-green-400 rounded-2xl font-semibold hover:bg-green-600/20 transition-colors",children:[(0,b.jsx)(n.MessageCircle,{className:"w-5 h-5"}),"Chat on WhatsApp"]})]})}),(0,b.jsx)("div",{className:"lg:col-span-2",children:(0,b.jsx)("div",{className:"luxury-card p-8",children:a?(0,b.jsxs)(d.motion.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},className:"text-center py-10",children:[(0,b.jsx)("div",{className:"w-16 h-16 bg-green-500/15 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,b.jsx)(l.CheckCircle,{className:"w-8 h-8 text-green-400"})}),(0,b.jsx)("h3",{className:"font-display text-2xl font-bold text-foreground mb-2",children:"Message Received!"}),(0,b.jsx)("p",{className:"text-muted-foreground mb-6",children:"Our team will get back to you within 1 business day."}),(0,b.jsx)(p.Button,{variant:"gold-outline",onClick:()=>g(!1),children:"Send Another Message"})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("h2",{className:"font-display text-2xl font-bold text-foreground mb-6",children:"Send Us a Message"}),(0,b.jsxs)("form",{onSubmit:u(A),className:"flex flex-col gap-4",children:[(0,b.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(r.Label,{htmlFor:"contact-name",children:"Full Name *"}),(0,b.jsx)(q.Input,{id:"contact-name",...j("name"),placeholder:"John Doe",className:y.name?"border-destructive":""}),y.name&&(0,b.jsx)("p",{className:"text-xs text-destructive",children:y.name.message})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(r.Label,{htmlFor:"contact-email",children:"Email Address *"}),(0,b.jsx)(q.Input,{id:"contact-email",...j("email"),type:"email",placeholder:"john@example.com",className:y.email?"border-destructive":""}),y.email&&(0,b.jsx)("p",{className:"text-xs text-destructive",children:y.email.message})]})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(r.Label,{htmlFor:"contact-phone",children:"Phone Number"}),(0,b.jsx)(q.Input,{id:"contact-phone",...j("phone"),type:"tel",placeholder:"+91 98765 43210"})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(r.Label,{htmlFor:"contact-subject",children:"Subject *"}),(0,b.jsx)(q.Input,{id:"contact-subject",...j("subject"),placeholder:"Property Enquiry / Investment Query / etc.",className:y.subject?"border-destructive":""}),y.subject&&(0,b.jsx)("p",{className:"text-xs text-destructive",children:y.subject.message})]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(r.Label,{htmlFor:"contact-message",children:"Message *"}),(0,b.jsx)(s.Textarea,{id:"contact-message",...j("message"),placeholder:"Tell us how we can help you...",className:`min-h-[140px] ${y.message?"border-destructive":""}`}),y.message&&(0,b.jsx)("p",{className:"text-xs text-destructive",children:y.message.message})]}),(0,b.jsx)(p.Button,{type:"submit",variant:"gold",size:"lg",disabled:h,className:"w-full sm:w-auto",children:h?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(m.Loader2,{className:"w-4 h-4 animate-spin"}),"Sending..."]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(k.Send,{className:"w-4 h-4"}),"Send Message"]})})]})]})})})]})})]})}],575712)}];
2
2
 
3
3
  //# sourceMappingURL=_0untlx2._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[699570,400187,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(811011),e=a.i(298621);let f=a=>"boolean"==typeof a?`${a}`:0===a?"0":a,g=e.clsx,h=(a,b)=>c=>{var d;if((null==b?void 0:b.variants)==null)return g(a,null==c?void 0:c.class,null==c?void 0:c.className);let{variants:e,defaultVariants:h}=b,i=Object.keys(e).map(a=>{let b=null==c?void 0:c[a],d=null==h?void 0:h[a];if(null===b)return null;let g=f(b)||f(d);return e[a][g]}),j=c&&Object.entries(c).reduce((a,b)=>{let[c,d]=b;return void 0===d||(a[c]=d),a},{});return g(a,i,null==b||null==(d=b.compoundVariants)?void 0:d.reduce((a,b)=>{let{class:c,className:d,...e}=b;return Object.entries(e).every(a=>{let[b,c]=a;return Array.isArray(c)?c.includes({...h,...j}[b]):({...h,...j})[b]===c})?[...a,c,d]:a},[]),null==c?void 0:c.class,null==c?void 0:c.className)};a.s(["cva",0,h],400187);var i=a.i(368114);let j=h("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 select-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 active:scale-[0.98]",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-border bg-transparent hover:bg-secondary/50 hover:text-foreground text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary/50 hover:text-foreground text-muted-foreground",link:"text-primary underline-offset-4 hover:underline",gold:"bg-gradient-to-r from-[hsl(36,82%,47%)] to-[hsl(42,88%,65%)] text-[hsl(240,20%,7%)] font-semibold hover:opacity-90 active:scale-[0.98] shadow-[0_4px_14px_0_hsl(36,82%,47%,0.4)]","gold-outline":"border border-[hsl(36,82%,47%,0.5)] text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)] hover:border-[hsl(36,82%,47%)]","gold-ghost":"text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)]"},size:{default:"h-10 px-5 py-2",xs:"h-7 px-3 text-xs rounded-lg",sm:"h-9 px-4 text-sm",lg:"h-12 px-8 text-base",xl:"h-14 px-10 text-lg",icon:"h-10 w-10","icon-sm":"h-9 w-9","icon-lg":"h-12 w-12"}},defaultVariants:{variant:"default",size:"default"}}),k=c.forwardRef(({className:a,variant:c,size:e,asChild:f=!1,...g},h)=>{let k=f?d.Slot:"button";return(0,b.jsx)(k,{className:(0,i.cn)(j({variant:c,size:e,className:a})),ref:h,...g})});k.displayName="Button",a.s(["Button",0,k],699570)},875160,702918,a=>{"use strict";let b=(0,a.i(164831).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["default",0,b],702918),a.s(["Loader2",0,b],875160)},405050,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(120611),g=a.r(1722),h=a.r(738783)},46216,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("60943df2f95bdd57b09fe75171ce8faaea7c6566f4",b.callServer,void 0,b.findSourceMapURL,"saveSettingsGroup");a.s(["saveSettingsGroup",0,c])},217563,a=>{"use strict";let b=(0,a.i(164831).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);a.s(["default",0,b])},201661,a=>{"use strict";var b=a.i(217563);a.s(["Upload",()=>b.default])},765973,a=>{"use strict";let b=(0,a.i(164831).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);a.s(["default",0,b])},609225,a=>{"use strict";let b=(0,a.i(164831).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);a.s(["default",0,b])},613412,a=>{"use strict";var b=a.i(765973);a.s(["CheckCircle2",()=>b.default])}];
1
+ module.exports=[699570,400187,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(811011),e=a.i(298621);let f=a=>"boolean"==typeof a?`${a}`:0===a?"0":a,g=e.clsx,h=(a,b)=>c=>{var d;if((null==b?void 0:b.variants)==null)return g(a,null==c?void 0:c.class,null==c?void 0:c.className);let{variants:e,defaultVariants:h}=b,i=Object.keys(e).map(a=>{let b=null==c?void 0:c[a],d=null==h?void 0:h[a];if(null===b)return null;let g=f(b)||f(d);return e[a][g]}),j=c&&Object.entries(c).reduce((a,b)=>{let[c,d]=b;return void 0===d||(a[c]=d),a},{});return g(a,i,null==b||null==(d=b.compoundVariants)?void 0:d.reduce((a,b)=>{let{class:c,className:d,...e}=b;return Object.entries(e).every(a=>{let[b,c]=a;return Array.isArray(c)?c.includes({...h,...j}[b]):({...h,...j})[b]===c})?[...a,c,d]:a},[]),null==c?void 0:c.class,null==c?void 0:c.className)};a.s(["cva",0,h],400187);var i=a.i(368114);let j=h("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 select-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 active:scale-[0.98]",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-border bg-transparent hover:bg-secondary/50 hover:text-foreground text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary/50 hover:text-foreground text-muted-foreground",link:"text-primary underline-offset-4 hover:underline",gold:"bg-gradient-to-r from-[hsl(36,82%,47%)] to-[hsl(42,88%,65%)] text-[hsl(240,20%,7%)] font-semibold hover:opacity-90 active:scale-[0.98] shadow-[0_4px_14px_0_hsl(36,82%,47%,0.4)]","gold-outline":"border border-[hsl(36,82%,47%,0.5)] text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)] hover:border-[hsl(36,82%,47%)]","gold-ghost":"text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)]"},size:{default:"h-10 px-5 py-2",xs:"h-7 px-3 text-xs rounded-lg",sm:"h-9 px-4 text-sm",lg:"h-12 px-8 text-base",xl:"h-14 px-10 text-lg",icon:"h-10 w-10","icon-sm":"h-9 w-9","icon-lg":"h-12 w-12"}},defaultVariants:{variant:"default",size:"default"}}),k=c.forwardRef(({className:a,variant:c,size:e,asChild:f=!1,...g},h)=>{let k=f?d.Slot:"button";return(0,b.jsx)(k,{className:(0,i.cn)(j({variant:c,size:e,className:a})),ref:h,...g})});k.displayName="Button",a.s(["Button",0,k],699570)},875160,702918,a=>{"use strict";let b=(0,a.i(164831).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["default",0,b],702918),a.s(["Loader2",0,b],875160)},405050,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(120611),g=a.r(1722),h=a.r(738783)},504648,a=>{"use strict";var b=a.i(405050);let c=(0,b.createServerReference)("6060a4b26d62d4d4cec46005debf62b42d4f2aa197",b.callServer,void 0,b.findSourceMapURL,"saveSettingsGroup");a.s(["saveSettingsGroup",0,c])},217563,a=>{"use strict";let b=(0,a.i(164831).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);a.s(["default",0,b])},201661,a=>{"use strict";var b=a.i(217563);a.s(["Upload",()=>b.default])},765973,a=>{"use strict";let b=(0,a.i(164831).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);a.s(["default",0,b])},609225,a=>{"use strict";let b=(0,a.i(164831).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);a.s(["default",0,b])},613412,a=>{"use strict";var b=a.i(765973);a.s(["CheckCircle2",()=>b.default])}];
2
2
 
3
- //# sourceMappingURL=_1hb_oxg._.js.map
3
+ //# sourceMappingURL=_0v1z0z-._.js.map
@@ -1,4 +1,4 @@
1
1
  module.exports=[137936,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"registerServerReference",{enumerable:!0,get:function(){return d.registerServerReference}});let d=a.r(211857)},713095,(a,b,c)=>{"use strict";function d(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
2
- Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},724711,a=>{"use strict";var b=a.i(306646);a.s([],357202),a.i(357202),a.s(["6077d3f67fb6db9b58c60e0d8c85f1a43da25413be",()=>b.updateLeadStatus,"700c117436201386781dec840445b2538ca69b6602",()=>b.addLeadNote],724711)},674098,a=>{a.v(b=>Promise.all(["server/chunks/ssr/src_lib_plugins_hooks-manager_ts_04m6z7f._.js"].map(b=>a.l(b))).then(()=>b(615120)))},839090,a=>{a.v(a=>Promise.resolve().then(()=>a(780099)))}];
2
+ Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},724711,a=>{"use strict";var b=a.i(306646);a.s([],357202),a.i(357202),a.s(["60f2dc2a48282597bf192c74a107a363792207929c",()=>b.updateLeadStatus,"700a86e30eb0d95acc1e992813d62568a937524a30",()=>b.addLeadNote],724711)},674098,a=>{a.v(b=>Promise.all(["server/chunks/ssr/src_lib_plugins_hooks-manager_ts_04m6z7f._.js"].map(b=>a.l(b))).then(()=>b(615120)))},839090,a=>{a.v(a=>Promise.resolve().then(()=>a(780099)))}];
3
3
 
4
4
  //# sourceMappingURL=_0vu77cg._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[195233,a=>{"use strict";var b=a.i(187924),c=a.i(238246),d=a.i(50944),e=a.i(572131),f=a.i(346271),g=a.i(233540),h=a.i(954098),i=a.i(343419),j=a.i(871499),k=a.i(818783),l=a.i(699570),m=a.i(781737);let n=[{label:"Properties Listed",value:"2,500+"},{label:"Happy Families",value:"10,000+"},{label:"Cities Covered",value:"15+"},{label:"Trusted Builders",value:"200+"}];a.s(["HeroSection",0,function(){let a=(0,d.useRouter)(),[o,p]=(0,e.useState)(""),[q,r]=(0,e.useState)(""),[s,t]=(0,e.useState)("");return(0,b.jsxs)("section",{className:"relative min-h-screen flex items-center overflow-hidden",children:[(0,b.jsxs)("div",{className:"absolute inset-0 z-0",children:[(0,b.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-background via-card to-background"}),(0,b.jsx)("div",{className:"absolute top-1/4 right-1/4 w-[600px] h-[600px] bg-primary/5 rounded-full blur-3xl"}),(0,b.jsx)("div",{className:"absolute bottom-1/4 left-1/4 w-[400px] h-[400px] bg-primary/5 rounded-full blur-3xl"}),(0,b.jsx)("div",{className:"absolute inset-0 opacity-[0.015]",style:{backgroundImage:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(255,255,255)'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e\")"}})]}),(0,b.jsxs)("div",{className:"relative z-10 container max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-24 pb-16",children:[(0,b.jsxs)("div",{className:"max-w-4xl mx-auto text-center",children:[(0,b.jsx)(f.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:(0,b.jsxs)("span",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full border border-primary/20 bg-primary/10 text-primary text-sm font-medium mb-6",children:[(0,b.jsx)(j.Crown,{className:"w-4 h-4"}),"India's Premier Luxury Real Estate Platform"]})}),(0,b.jsxs)(f.motion.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7,delay:.1},className:"font-display text-5xl sm:text-6xl lg:text-7xl xl:text-8xl font-bold text-foreground leading-[1.05] mb-6",children:["Find Your"," ",(0,b.jsx)("span",{className:"text-gradient-gold",children:"Dream"}),(0,b.jsx)("br",{}),"Property"]}),(0,b.jsx)(f.motion.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"text-lg sm:text-xl text-muted-foreground max-w-2xl mx-auto mb-10 leading-relaxed",children:"Explore 2,500+ curated luxury properties across 15+ Indian cities. Premium apartments, villas, commercial spaces — all RERA verified."}),(0,b.jsx)(f.motion.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7,delay:.3},children:(0,b.jsxs)("form",{onSubmit:b=>{b.preventDefault();let c=new URLSearchParams;o&&c.set("q",o),q&&c.set("city",q),s&&c.set("category",s),a.push(`/projects?${c.toString()}`)},className:"glass-card rounded-2xl p-3 lg:p-4 flex flex-col lg:flex-row gap-3 max-w-3xl mx-auto",children:[(0,b.jsxs)("div",{className:"relative flex-1",children:[(0,b.jsx)(g.Search,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),(0,b.jsx)("input",{type:"text",value:o,onChange:a=>p(a.target.value),placeholder:"Project name, builder, keyword...",className:"w-full pl-11 pr-4 py-3 bg-transparent text-foreground placeholder:text-muted-foreground/60 focus:outline-none text-sm"})]}),(0,b.jsxs)("div",{className:"relative lg:w-44",children:[(0,b.jsx)(h.MapPin,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),(0,b.jsxs)("select",{value:q,onChange:a=>r(a.target.value),className:"w-full pl-9 pr-4 py-3 bg-secondary/50 border border-border rounded-xl text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-primary appearance-none",children:[(0,b.jsx)("option",{value:"",children:"All Cities"}),m.MAJOR_CITIES.map(a=>(0,b.jsx)("option",{value:a,children:a},a))]})]}),(0,b.jsxs)("div",{className:"relative lg:w-44",children:[(0,b.jsx)(i.TrendingUp,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),(0,b.jsxs)("select",{value:s,onChange:a=>t(a.target.value),className:"w-full pl-9 pr-4 py-3 bg-secondary/50 border border-border rounded-xl text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-primary appearance-none",children:[(0,b.jsx)("option",{value:"",children:"All Types"}),m.PROJECT_CATEGORIES.map(a=>(0,b.jsx)("option",{value:a.value,children:a.label},a.value))]})]}),(0,b.jsxs)(l.Button,{type:"submit",variant:"gold",size:"lg",className:"lg:px-8",children:[(0,b.jsx)(g.Search,{className:"w-4 h-4"}),(0,b.jsx)("span",{children:"Search"})]})]})}),(0,b.jsxs)(f.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.6,delay:.5},className:"flex flex-wrap justify-center gap-2 mt-6",children:[(0,b.jsx)("span",{className:"text-sm text-muted-foreground",children:"Popular:"}),["Luxury Apartments Mumbai","Villas Pune","Commercial Bangalore","New Launch Hyderabad"].map(a=>(0,b.jsx)("button",{onClick:()=>p(a),className:"text-xs text-primary hover:text-primary/80 underline underline-offset-2 transition-colors",children:a},a))]}),(0,b.jsxs)(f.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.6},className:"flex flex-wrap justify-center gap-4 mt-10",children:[(0,b.jsx)(l.Button,{variant:"gold",size:"xl",asChild:!0,children:(0,b.jsxs)(c.default,{href:"/projects",children:["Explore All Properties",(0,b.jsx)(k.ArrowRight,{className:"w-5 h-5"})]})}),(0,b.jsx)(l.Button,{variant:"gold-outline",size:"xl",asChild:!0,children:(0,b.jsxs)(c.default,{href:"/projects/luxury",children:[(0,b.jsx)(j.Crown,{className:"w-5 h-5"}),"Luxury Collection"]})})]})]}),(0,b.jsx)(f.motion.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.8,delay:.7},className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mt-20 max-w-3xl mx-auto",children:n.map(a=>(0,b.jsxs)("div",{className:"text-center glass-card rounded-2xl p-4",children:[(0,b.jsx)("div",{className:"text-2xl lg:text-3xl font-display font-bold text-gradient-gold mb-1",children:a.value}),(0,b.jsx)("div",{className:"text-xs text-muted-foreground",children:a.label})]},a.label))})]}),(0,b.jsx)(f.motion.div,{className:"absolute bottom-8 left-1/2 -translate-x-1/2",initial:{opacity:0},animate:{opacity:1,y:[0,8,0]},transition:{delay:1,duration:2,repeat:1/0},children:(0,b.jsx)("div",{className:"w-6 h-10 rounded-full border-2 border-primary/40 flex items-start justify-center pt-1.5",children:(0,b.jsx)("div",{className:"w-1.5 h-3 rounded-full bg-primary/60"})})})]})}])},278140,a=>{"use strict";var b=a.i(765254);a.s(["Award",()=>b.default])},489845,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(346271),e=a.i(254760);let f={some:0,all:1};var g=a.i(427377),h=a.i(285888),i=a.i(954098),j=a.i(526634),k=a.i(343419),l=a.i(278140);let m=[{label:"Properties Listed",value:2500,suffix:"+",icon:g.Building2,color:"text-primary"},{label:"Happy Families",value:1e4,suffix:"+",icon:h.Users,color:"text-green-400"},{label:"Cities Covered",value:15,suffix:"+",icon:i.MapPin,color:"text-blue-400"},{label:"Top Builders",value:200,suffix:"+",icon:j.Star,color:"text-purple-400"},{label:"Crore+ Deals Closed",value:500,suffix:"+",icon:k.TrendingUp,color:"text-amber-400"},{label:"Years Experience",value:12,suffix:"+",icon:l.Award,color:"text-pink-400"}];function n({target:a,suffix:d}){let[g,h]=(0,c.useState)(0),i=(0,c.useRef)(null),j=function(a,{root:b,margin:d,amount:g,once:h=!1,initial:i=!1}={}){let[j,k]=(0,c.useState)(i);return(0,c.useEffect)(()=>{if(!a.current||h&&j)return;let c={root:b&&b.current||void 0,margin:d,amount:g};return function(a,b,{root:c,margin:d,amount:g="some"}={}){let h=(0,e.resolveElements)(a),i=new WeakMap,j=new IntersectionObserver(a=>{a.forEach(a=>{let c=i.get(a.target);if(!!c!==a.isIntersecting)if(a.isIntersecting){let c=b(a.target,a);"function"==typeof c?i.set(a.target,c):j.unobserve(a.target)}else"function"==typeof c&&(c(a),i.delete(a.target))})},{root:c,rootMargin:d,threshold:"number"==typeof g?g:f[g]});return h.forEach(a=>j.observe(a)),()=>j.disconnect()}(a.current,()=>(k(!0),h?void 0:()=>k(!1)),c)},[b,a,d,h,g]),j}(i,{once:!0});return(0,c.useEffect)(()=>{if(!j)return;let b=a/60,c=0,d=setInterval(()=>{(c+=b)>=a?(h(a),clearInterval(d)):h(Math.floor(c))},2e3/60);return()=>clearInterval(d)},[j,a]),(0,b.jsxs)("span",{ref:i,children:[g.toLocaleString("en-IN"),d]})}a.s(["StatsSection",0,function(){return(0,b.jsx)("section",{className:"section-padding border-y border-border bg-card",children:(0,b.jsx)("div",{className:"section-container",children:(0,b.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-6",children:m.map((a,c)=>(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.08*c},className:"text-center group",children:[(0,b.jsx)("div",{className:"flex justify-center mb-3",children:(0,b.jsx)("div",{className:"w-12 h-12 rounded-2xl bg-secondary/50 flex items-center justify-center group-hover:scale-110 transition-transform duration-300",children:(0,b.jsx)(a.icon,{className:`w-6 h-6 ${a.color}`})})}),(0,b.jsx)("div",{className:`text-3xl lg:text-4xl font-display font-bold mb-1 ${a.color}`,children:(0,b.jsx)(n,{target:a.value,suffix:a.suffix})}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground font-medium",children:a.label})]},a.label))})})})}],489845)},607035,a=>{"use strict";var b=a.i(187924),c=a.i(238246),d=a.i(346271),e=a.i(818783),f=a.i(427377),g=a.i(699570),h=a.i(352019);a.s(["FeaturedProjectsSection",0,function({projects:a}){return 0===a.length?null:(0,b.jsx)("section",{className:"section-padding",children:(0,b.jsxs)("div",{className:"section-container",children:[(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[(0,b.jsxs)("span",{className:"badge-gold mb-4 inline-flex",children:[(0,b.jsx)(f.Building2,{className:"w-3.5 h-3.5 mr-1.5"}),"Featured Properties"]}),(0,b.jsx)("h2",{className:"section-title text-4xl lg:text-5xl mb-4",children:"Handpicked Luxury Properties"}),(0,b.jsx)("div",{className:"gold-divider"}),(0,b.jsx)("p",{className:"section-subtitle mt-4 max-w-2xl mx-auto",children:"Discover our curated collection of premium properties from India's most trusted builders — each vetted for quality and value."})]}),(0,b.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-10",children:a.map((a,c)=>(0,b.jsx)(h.PropertyCard,{project:a,index:c},a.id))}),(0,b.jsx)("div",{className:"text-center",children:(0,b.jsx)(g.Button,{variant:"gold-outline",size:"lg",asChild:!0,children:(0,b.jsxs)(c.default,{href:"/projects",children:["View All Properties",(0,b.jsx)(e.ArrowRight,{className:"w-4 h-4 ml-1"})]})})})]})})}])},369005,a=>{"use strict";var b=a.i(187924),c=a.i(238246),d=a.i(346271),e=a.i(871499),f=a.i(555486),g=a.i(427377),h=a.i(118343),i=a.i(514098),i=i,j=a.i(104647),k=a.i(343419),l=a.i(428821),l=l;let m=[{value:"luxury",label:"Luxury",description:"Ultra-premium residences",icon:e.Crown,color:"from-amber-500/20 to-yellow-600/20 border-amber-500/30",iconColor:"text-amber-400",href:"/projects/luxury"},{value:"residential",label:"Residential",description:"Comfortable family homes",icon:f.Home,color:"from-blue-500/20 to-indigo-600/20 border-blue-500/30",iconColor:"text-blue-400",href:"/projects/residential"},{value:"commercial",label:"Commercial",description:"Office & retail spaces",icon:g.Building2,color:"from-purple-500/20 to-violet-600/20 border-purple-500/30",iconColor:"text-purple-400",href:"/projects/commercial"},{value:"rental",label:"Rental",description:"Ready to move rentals",icon:h.Key,color:"from-green-500/20 to-emerald-600/20 border-green-500/30",iconColor:"text-green-400",href:"/projects/rental"},{value:"villa",label:"Villas",description:"Independent luxury villas",icon:i.default,color:"from-teal-500/20 to-cyan-600/20 border-teal-500/30",iconColor:"text-teal-400",href:"/projects?category=villa"},{value:"plot",label:"Plots",description:"Land & development plots",icon:j.Map,color:"from-orange-500/20 to-red-600/20 border-orange-500/30",iconColor:"text-orange-400",href:"/projects?category=plot"},{value:"new_launch",label:"New Launches",description:"Fresh listings at best prices",icon:k.TrendingUp,color:"from-pink-500/20 to-rose-600/20 border-pink-500/30",iconColor:"text-pink-400",href:"/projects?is_new_launch=true"},{value:"all",label:"All Projects",description:"Browse complete catalog",icon:l.default,color:"from-slate-500/20 to-gray-600/20 border-slate-500/30",iconColor:"text-slate-400",href:"/projects"}];a.s(["CategoriesSection",0,function(){return(0,b.jsx)("section",{className:"section-padding bg-card",children:(0,b.jsxs)("div",{className:"section-container",children:[(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[(0,b.jsx)("span",{className:"badge-gold mb-4 inline-flex",children:"Browse By Type"}),(0,b.jsx)("h2",{className:"section-title text-4xl lg:text-5xl mb-4",children:"Find Your Perfect Property"}),(0,b.jsx)("div",{className:"gold-divider"}),(0,b.jsx)("p",{className:"section-subtitle mt-4 max-w-xl mx-auto",children:"From luxury penthouses to commercial spaces, we have every property type covered."})]}),(0,b.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:m.map((a,e)=>(0,b.jsx)(d.motion.div,{initial:{opacity:0,scale:.92},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:.06*e},children:(0,b.jsxs)(c.default,{href:a.href,className:`flex flex-col items-center text-center p-6 rounded-2xl border bg-gradient-to-br ${a.color} hover:scale-105 transition-all duration-300 group cursor-pointer`,children:[(0,b.jsx)("div",{className:"w-14 h-14 rounded-2xl bg-background/30 flex items-center justify-center mb-3 group-hover:scale-110 transition-transform duration-300",children:(0,b.jsx)(a.icon,{className:`w-7 h-7 ${a.iconColor}`})}),(0,b.jsx)("h3",{className:"font-semibold text-foreground mb-1",children:a.label}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:a.description})]})},a.value))})]})})}],369005)},415999,a=>{"use strict";var b=a.i(187924),c=a.i(238246),d=a.i(346271),e=a.i(954098),f=a.i(368114);let g={Mumbai:"https://images.unsplash.com/photo-1570168007204-dfb528c6958f?w=600&q=80",Pune:"https://images.unsplash.com/photo-1587474260584-136574528ed5?w=600&q=80",Bangalore:"https://images.unsplash.com/photo-1596176530529-78163a4f7af2?w=600&q=80",Hyderabad:"https://images.unsplash.com/photo-1563789537395-76e0c9e11e7f?w=600&q=80",Chennai:"https://images.unsplash.com/photo-1582510003544-4d00b7f74220?w=600&q=80","Delhi NCR":"https://images.unsplash.com/photo-1587474260584-136574528ed5?w=600&q=80",Noida:"https://images.unsplash.com/photo-1587474260584-136574528ed5?w=600&q=80",Gurgaon:"https://images.unsplash.com/photo-1587474260584-136574528ed5?w=600&q=80"};a.s(["CitiesSection",0,function({cities:a}){let h=a.length>0?a:[{id:"1",name:"Mumbai",slug:"mumbai",image_url:g.Mumbai},{id:"2",name:"Pune",slug:"pune",image_url:g.Pune},{id:"3",name:"Bangalore",slug:"bangalore",image_url:g.Bangalore},{id:"4",name:"Hyderabad",slug:"hyderabad",image_url:g.Hyderabad},{id:"5",name:"Chennai",slug:"chennai",image_url:g.Chennai},{id:"6",name:"Delhi NCR",slug:"delhi-ncr",image_url:g["Delhi NCR"]},{id:"7",name:"Noida",slug:"noida",image_url:g.Noida},{id:"8",name:"Gurgaon",slug:"gurgaon",image_url:g.Gurgaon}];return(0,b.jsx)("section",{className:"section-padding",children:(0,b.jsxs)("div",{className:"section-container",children:[(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[(0,b.jsxs)("span",{className:"badge-gold mb-4 inline-flex",children:[(0,b.jsx)(e.MapPin,{className:"w-3.5 h-3.5 mr-1.5"}),"Top Cities"]}),(0,b.jsx)("h2",{className:"section-title text-4xl lg:text-5xl mb-4",children:"Properties Across India"}),(0,b.jsx)("div",{className:"gold-divider"}),(0,b.jsx)("p",{className:"section-subtitle mt-4 max-w-xl mx-auto",children:"Explore premium real estate in India's most sought-after cities."})]}),(0,b.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:h.map((a,h)=>{let i=a.image_url??g[a.name]??g.Mumbai;return(0,b.jsx)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:.07*h},children:(0,b.jsxs)(c.default,{href:`/projects?city=${encodeURIComponent(a.name)}`,className:"relative group block rounded-2xl overflow-hidden h-44 md:h-52",children:[(0,b.jsx)("img",{src:(0,f.optimizeImageUrl)(i,500),alt:a.name,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-110",loading:"lazy"}),(0,b.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"}),(0,b.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-4",children:[(0,b.jsx)("h3",{className:"font-display text-lg font-bold text-white",children:a.name}),(0,b.jsxs)("p",{className:"text-xs text-white/70 flex items-center gap-1",children:[(0,b.jsx)(e.MapPin,{className:"w-3 h-3"}),"Explore Properties"]})]}),(0,b.jsx)("div",{className:"absolute inset-0 bg-primary/15 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,b.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-0.5 bg-gradient-to-r from-primary to-accent transform scale-x-0 group-hover:scale-x-100 transition-transform duration-300"})]})},a.id)})})]})})}])},628688,a=>{"use strict";var b=a.i(187924),c=a.i(238246),d=a.i(346271),e=a.i(818783),f=a.i(427377),g=a.i(526634),h=a.i(699570),i=a.i(368114);a.s(["BuildersSection",0,function({builders:a}){return 0===a.length?null:(0,b.jsx)("section",{className:"section-padding bg-card",children:(0,b.jsxs)("div",{className:"section-container",children:[(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[(0,b.jsxs)("span",{className:"badge-gold mb-4 inline-flex",children:[(0,b.jsx)(f.Building2,{className:"w-3.5 h-3.5 mr-1.5"}),"Trusted Builders"]}),(0,b.jsx)("h2",{className:"section-title text-4xl lg:text-5xl mb-4",children:"India's Leading Developers"}),(0,b.jsx)("div",{className:"gold-divider"}),(0,b.jsx)("p",{className:"section-subtitle mt-4 max-w-xl mx-auto",children:"We partner exclusively with India's most reputable and award-winning real estate developers."})]}),(0,b.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:a.map((a,e)=>(0,b.jsx)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:.07*e},children:(0,b.jsxs)(c.default,{href:`/builders/${a.slug}`,className:"glass-card rounded-2xl p-5 flex flex-col items-center text-center hover:border-primary/40 transition-all duration-300 group h-full",children:[(0,b.jsx)("div",{className:"w-20 h-20 rounded-2xl bg-secondary/50 flex items-center justify-center mb-4 overflow-hidden group-hover:scale-105 transition-transform duration-300",children:a.logo?(0,b.jsx)("img",{src:(0,i.optimizeImageUrl)(a.logo,200),alt:a.name,width:60,height:60,className:"object-contain",loading:"lazy"}):(0,b.jsx)(f.Building2,{className:"w-8 h-8 text-primary"})}),(0,b.jsx)("h3",{className:"font-semibold text-foreground text-sm mb-1 group-hover:text-primary transition-colors",children:a.name}),a.rating&&(0,b.jsxs)("div",{className:"flex items-center gap-1 mb-2",children:[(0,b.jsx)(g.Star,{className:"w-3.5 h-3.5 text-primary fill-current"}),(0,b.jsx)("span",{className:"text-xs text-muted-foreground",children:a.rating})]}),(0,b.jsxs)("p",{className:"text-xs text-muted-foreground",children:[a.total_projects||0," Projects"]})]})},a.id))}),(0,b.jsx)("div",{className:"text-center mt-10",children:(0,b.jsx)(h.Button,{variant:"gold-outline",size:"lg",asChild:!0,children:(0,b.jsxs)(c.default,{href:"/builders",children:["View All Builders",(0,b.jsx)(e.ArrowRight,{className:"w-4 h-4 ml-1"})]})})})]})})}])},721888,a=>{"use strict";var b=a.i(187924),c=a.i(346271),d=a.i(526634),e=a.i(516410),e=e,f=a.i(368114);let g=[{id:"1",author_name:"Rajesh Sharma",author_designation:"IT Professional",author_company:"TCS, Bangalore",content:"PropVault made finding my dream 3BHK in Whitefield absolutely effortless. The team was professional, the listings were accurate, and they helped me with home loan paperwork too. Highly recommend!",rating:5,city:"Bangalore"},{id:"2",author_name:"Priya Patel",author_designation:"Entrepreneur",author_company:"Mumbai",content:"I was skeptical about online property platforms, but PropVault exceeded all expectations. Bought a luxury flat in BKC at a great price. Their RERA verification gave me complete confidence.",rating:5,city:"Mumbai"},{id:"3",author_name:"Arjun Mehta",author_designation:"Senior Manager",author_company:"HDFC Bank, Pune",content:"Found the perfect villa in Wakad through PropVault. The virtual tours saved so much time. The consultant, Vikram, was incredibly knowledgeable. Closed the deal in just 3 weeks!",rating:5,city:"Pune"},{id:"4",author_name:"Sunita Agarwal",author_designation:"Doctor",author_company:"Apollo Hospitals, Hyderabad",content:"PropVault's curated luxury collection is outstanding. Found an investment property in Gachibowli with excellent rental yield. The ROI calculator tool was particularly helpful.",rating:5,city:"Hyderabad"},{id:"5",author_name:"Vikram Reddy",author_designation:"Software Engineer",author_company:"Amazon, Chennai",content:"As a first-time buyer, I was nervous. PropVault's team guided me through every step — from shortlisting to registration. Now proud owner of a 2BHK in OMR. Best decision ever!",rating:5,city:"Chennai"},{id:"6",author_name:"Deepa Nair",author_designation:"CA",author_company:"Deloitte, Mumbai",content:"PropVault helped me invest in commercial real estate for the first time. Their market insights and due diligence reports are world-class. Already seeing 8% rental yield.",rating:5,city:"Mumbai"}];a.s(["TestimonialsSection",0,function({testimonials:a}){let h=a.length>0?a:g;return(0,b.jsx)("section",{className:"section-padding",children:(0,b.jsxs)("div",{className:"section-container",children:[(0,b.jsxs)(c.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[(0,b.jsx)("span",{className:"badge-gold mb-4 inline-flex",children:"Client Stories"}),(0,b.jsx)("h2",{className:"section-title text-4xl lg:text-5xl mb-4",children:"What Our Clients Say"}),(0,b.jsx)("div",{className:"gold-divider"}),(0,b.jsx)("p",{className:"section-subtitle mt-4 max-w-xl mx-auto",children:"10,000+ families have found their perfect home through PropVault."})]}),(0,b.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:h.slice(0,6).map((a,g)=>(0,b.jsxs)(c.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:.08*g},className:"luxury-card p-6 flex flex-col",children:[(0,b.jsx)(e.default,{className:"w-8 h-8 text-primary/40 mb-4 shrink-0"}),(0,b.jsx)("div",{className:"flex gap-1 mb-4",children:Array.from({length:Number(a.rating)||5}).map((a,c)=>(0,b.jsx)(d.Star,{className:"w-4 h-4 text-primary fill-current"},c))}),(0,b.jsxs)("p",{className:"text-muted-foreground text-sm leading-relaxed flex-1 mb-5",children:['"',a.content,'"']}),(0,b.jsxs)("div",{className:"flex items-center gap-3 pt-4 border-t border-border",children:[a.author_avatar?(0,b.jsx)("img",{src:(0,f.optimizeImageUrl)(a.author_avatar,150),alt:a.author_name,width:44,height:44,className:"rounded-full object-cover w-11 h-11",loading:"lazy"}):(0,b.jsx)("div",{className:"w-11 h-11 rounded-full bg-gradient-to-br from-primary to-accent flex items-center justify-center text-primary-foreground font-bold text-sm",children:a.author_name.charAt(0)}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"font-semibold text-foreground text-sm",children:a.author_name}),(0,b.jsxs)("p",{className:"text-xs text-muted-foreground",children:[a.author_designation,a.author_company&&` \xb7 ${a.author_company}`]}),a.city&&(0,b.jsx)("p",{className:"text-xs text-primary",children:a.city})]})]})]},a.id))})]})})}],721888)},614427,a=>{"use strict";var b=a.i(187924),c=a.i(238246),d=a.i(346271),e=a.i(818783),f=a.i(308311),g=a.i(118688),h=a.i(699570),i=a.i(786304),j=a.i(923690),k=a.i(368114);let l=[{id:"1",title:"Top 10 Luxury Residential Projects in Mumbai 2025",slug:"top-10-luxury-residential-projects-mumbai-2025",excerpt:"Discover the most sought-after luxury developments in Mumbai's premium micro-markets including BKC, Worli, and Lower Parel.",cover_image:"https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=800&q=80",category:"Market Trends",read_time_minutes:8,published_at:new Date(Date.now()-1728e5).toISOString()},{id:"2",title:"RERA Compliance Guide for Property Buyers in 2025",slug:"rera-compliance-guide-property-buyers-2025",excerpt:"Everything you need to know about RERA registration, how to verify projects, and protect yourself as a buyer.",cover_image:"https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=800&q=80",category:"Legal & RERA",read_time_minutes:10,published_at:new Date(Date.now()-432e6).toISOString()},{id:"3",title:"Home Loan Guide: Get the Best Rate in 2025",slug:"home-loan-guide-best-rate-2025",excerpt:"Complete guide to home loans — interest rates, EMI calculations, eligibility, and tips to get the best deal from Indian banks.",cover_image:"https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=800&q=80",category:"Home Loan",read_time_minutes:12,published_at:new Date(Date.now()-6048e5).toISOString()}];a.s(["BlogSection",0,function({blogs:a}){let m=a.length>0?a:l;return(0,b.jsx)("section",{className:"section-padding bg-card",children:(0,b.jsxs)("div",{className:"section-container",children:[(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 mb-12",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("span",{className:"badge-gold mb-3 inline-flex",children:[(0,b.jsx)(g.BookOpen,{className:"w-3.5 h-3.5 mr-1.5"}),"Expert Insights"]}),(0,b.jsx)("h2",{className:"section-title text-3xl lg:text-4xl",children:"Real Estate Blog"})]}),(0,b.jsx)(h.Button,{variant:"gold-outline",size:"sm",asChild:!0,children:(0,b.jsxs)(c.default,{href:"/blog",children:["View All Articles",(0,b.jsx)(e.ArrowRight,{className:"w-4 h-4 ml-1"})]})})]}),(0,b.jsx)("div",{className:"grid md:grid-cols-3 gap-6",children:m.slice(0,3).map((a,e)=>(0,b.jsx)(d.motion.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:.1*e},className:"luxury-card overflow-hidden group",children:(0,b.jsxs)(c.default,{href:`/blog/${a.slug}`,children:[(0,b.jsxs)("div",{className:"relative h-48 overflow-hidden",children:[a.cover_image?(0,b.jsx)("img",{src:(0,k.optimizeImageUrl)(a.cover_image,600),alt:a.title,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"}):(0,b.jsx)("div",{className:"h-full bg-gradient-to-br from-primary/20 to-secondary"}),(0,b.jsx)("div",{className:"absolute top-3 left-3",children:(0,b.jsx)(i.Badge,{variant:"gold",children:a.category})})]}),(0,b.jsxs)("div",{className:"p-5",children:[(0,b.jsx)("h3",{className:"font-display font-semibold text-foreground mb-2 line-clamp-2 group-hover:text-primary transition-colors duration-200",children:a.title}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-4",children:a.excerpt}),(0,b.jsxs)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[(0,b.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,b.jsx)(f.Clock,{className:"w-3.5 h-3.5"}),a.read_time_minutes," min read"]}),a.published_at&&(0,b.jsx)("span",{children:(0,j.formatRelativeDate)(a.published_at)})]})]})]})},a.id))})]})})}])},235517,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(346271),e=a.i(162591),f=a.i(79362),g=a.i(875160),h=a.i(818783),i=a.i(823292),j=a.i(699570),k=a.i(866718),l=a.i(405050);let m=(0,l.createServerReference)("60c3e878a5afa0b68e0f379c586a25b3f2d5616d89",l.callServer,void 0,l.findSourceMapURL,"subscribeNewsletter");a.s(["NewsletterSection",0,function(){let[a,l]=(0,c.useState)(""),[n,o]=(0,c.useState)(!1),[p,q]=(0,c.useState)(!1),r=async b=>{if(b.preventDefault(),a.trim()){o(!0);try{let b=await m(a.trim());b.success?(q(!0),l("")):i.toast.error(b.error??"Failed to subscribe. Please try again.")}catch{i.toast.error("Something went wrong. Please try again.")}finally{o(!1)}}};return(0,b.jsx)("section",{className:"section-padding",children:(0,b.jsx)("div",{className:"section-container",children:(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"relative overflow-hidden rounded-3xl",style:{background:"linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--background)) 100%)",border:"1px solid hsl(var(--border))"},children:[(0,b.jsx)("div",{className:"absolute top-0 right-0 w-72 h-72 bg-primary/5 rounded-full blur-3xl"}),(0,b.jsx)("div",{className:"absolute bottom-0 left-0 w-72 h-72 bg-primary/5 rounded-full blur-3xl"}),(0,b.jsxs)("div",{className:"relative z-10 px-8 py-16 lg:px-16 text-center",children:[(0,b.jsx)("div",{className:"w-16 h-16 bg-primary/10 border border-primary/30 rounded-2xl flex items-center justify-center mx-auto mb-6",children:(0,b.jsx)(e.Mail,{className:"w-8 h-8 text-primary"})}),(0,b.jsx)("h2",{className:"section-title text-3xl lg:text-4xl mb-4",children:"Stay Ahead of the Market"}),(0,b.jsx)("p",{className:"text-muted-foreground text-lg mb-8 max-w-2xl mx-auto",children:"Get exclusive property alerts, market insights, new project launches, and investment tips delivered to your inbox — no spam, only value."}),p?(0,b.jsxs)(d.motion.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},className:"flex flex-col items-center gap-3",children:[(0,b.jsx)("div",{className:"w-12 h-12 bg-green-500/15 rounded-full flex items-center justify-center",children:(0,b.jsx)(f.CheckCircle,{className:"w-6 h-6 text-green-400"})}),(0,b.jsx)("p",{className:"text-foreground font-semibold",children:"You're subscribed!"}),(0,b.jsx)("p",{className:"text-muted-foreground text-sm",children:"Thank you for joining our community of 50,000+ subscribers."})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("form",{onSubmit:r,className:"flex flex-col sm:flex-row gap-3 max-w-lg mx-auto mb-4",children:[(0,b.jsx)(k.Input,{type:"email",value:a,onChange:a=>l(a.target.value),placeholder:"Enter your email address",className:"flex-1 h-12 text-base",required:!0}),(0,b.jsx)(j.Button,{type:"submit",variant:"gold",size:"lg",disabled:n,className:"h-12 px-8",children:n?(0,b.jsx)(g.Loader2,{className:"w-4 h-4 animate-spin"}):(0,b.jsxs)(b.Fragment,{children:["Subscribe ",(0,b.jsx)(h.ArrowRight,{className:"w-4 h-4 ml-1"})]})})]}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:"Join 50,000+ subscribers · Unsubscribe anytime · No spam"})]})]})]})})})}],235517)},80137,a=>{"use strict";var b=a.i(187924),c=a.i(346271),d=a.i(414258),e=a.i(278140),f=a.i(285888),g=a.i(492378),h=a.i(58704),h=h,i=a.i(79362);let j=[{icon:d.Shield,title:"100% RERA Verified",description:"Every property listed is RERA registered and legally verified for complete peace of mind.",color:"text-green-400",bg:"bg-green-400/10 border-green-400/20"},{icon:e.Award,title:"Premium Builders Only",description:"We partner exclusively with India's most reputable and award-winning developers.",color:"text-primary",bg:"bg-primary/10 border-primary/20"},{icon:f.Users,title:"10,000+ Happy Families",description:"Over a decade of helping Indian families find their perfect home across 15+ cities.",color:"text-blue-400",bg:"bg-blue-400/10 border-blue-400/20"},{icon:g.Zap,title:"Instant Enquiry Response",description:"Our property consultants respond to every enquiry within 30 minutes, 7 days a week.",color:"text-purple-400",bg:"bg-purple-400/10 border-purple-400/20"},{icon:h.default,title:"End-to-End Assistance",description:"From site visits to home loans to registration — we're with you every step of the way.",color:"text-pink-400",bg:"bg-pink-400/10 border-pink-400/20"},{icon:i.CheckCircle,title:"Zero Brokerage",description:"We believe in transparency. No hidden fees, no brokerage charges on listed properties.",color:"text-teal-400",bg:"bg-teal-400/10 border-teal-400/20"}];a.s(["WhyUsSection",0,function(){return(0,b.jsx)("section",{className:"section-padding bg-card",children:(0,b.jsx)("div",{className:"section-container",children:(0,b.jsxs)("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[(0,b.jsxs)(c.motion.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},children:[(0,b.jsx)("span",{className:"badge-gold mb-4 inline-flex",children:"Why Choose PropVault"}),(0,b.jsxs)("h2",{className:"section-title text-4xl lg:text-5xl mb-6",children:["India's Most Trusted",(0,b.jsx)("br",{}),(0,b.jsx)("span",{className:"text-gradient-gold",children:"Real Estate Partner"})]}),(0,b.jsx)("div",{className:"gold-divider ml-0 my-6"}),(0,b.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-8",children:"We've helped over 10,000 families find their dream homes since 2012. Our platform combines cutting-edge technology with personal expertise to deliver an unmatched property buying experience."}),(0,b.jsx)("div",{className:"flex flex-col gap-3",children:["12+ Years of Excellence","₹500 Cr+ in Transactions","ISO 9001:2015 Certified","Member of CREDAI & NAR India"].map(a=>(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)(i.CheckCircle,{className:"w-5 h-5 text-primary shrink-0"}),(0,b.jsx)("span",{className:"text-foreground font-medium",children:a})]},a))})]}),(0,b.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:j.map((a,d)=>(0,b.jsxs)(c.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:.1*d},className:`p-5 rounded-2xl border ${a.bg} group hover:scale-[1.02] transition-transform duration-300`,children:[(0,b.jsx)("div",{className:"mb-3",children:(0,b.jsx)(a.icon,{className:`w-8 h-8 ${a.color}`})}),(0,b.jsx)("h3",{className:"font-semibold text-foreground mb-1.5 text-sm",children:a.title}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground leading-relaxed",children:a.description})]},a.title))})]})})})}],80137)}];
1
+ module.exports=[195233,a=>{"use strict";var b=a.i(187924),c=a.i(238246),d=a.i(50944),e=a.i(572131),f=a.i(346271),g=a.i(233540),h=a.i(954098),i=a.i(343419),j=a.i(871499),k=a.i(818783),l=a.i(699570),m=a.i(781737);let n=[{label:"Properties Listed",value:"2,500+"},{label:"Happy Families",value:"10,000+"},{label:"Cities Covered",value:"15+"},{label:"Trusted Builders",value:"200+"}];a.s(["HeroSection",0,function(){let a=(0,d.useRouter)(),[o,p]=(0,e.useState)(""),[q,r]=(0,e.useState)(""),[s,t]=(0,e.useState)("");return(0,b.jsxs)("section",{className:"relative min-h-screen flex items-center overflow-hidden",children:[(0,b.jsxs)("div",{className:"absolute inset-0 z-0",children:[(0,b.jsx)("div",{className:"absolute inset-0 bg-gradient-to-br from-background via-card to-background"}),(0,b.jsx)("div",{className:"absolute top-1/4 right-1/4 w-[600px] h-[600px] bg-primary/5 rounded-full blur-3xl"}),(0,b.jsx)("div",{className:"absolute bottom-1/4 left-1/4 w-[400px] h-[400px] bg-primary/5 rounded-full blur-3xl"}),(0,b.jsx)("div",{className:"absolute inset-0 opacity-[0.015]",style:{backgroundImage:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='32' height='32' fill='none' stroke='rgb(255,255,255)'%3e%3cpath d='M0 .5H31.5V32'/%3e%3c/svg%3e\")"}})]}),(0,b.jsxs)("div",{className:"relative z-10 container max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-24 pb-16",children:[(0,b.jsxs)("div",{className:"max-w-4xl mx-auto text-center",children:[(0,b.jsx)(f.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:(0,b.jsxs)("span",{className:"inline-flex items-center gap-2 px-4 py-1.5 rounded-full border border-primary/20 bg-primary/10 text-primary text-sm font-medium mb-6",children:[(0,b.jsx)(j.Crown,{className:"w-4 h-4"}),"India's Premier Luxury Real Estate Platform"]})}),(0,b.jsxs)(f.motion.h1,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7,delay:.1},className:"font-display text-5xl sm:text-6xl lg:text-7xl xl:text-8xl font-bold text-foreground leading-[1.05] mb-6",children:["Find Your"," ",(0,b.jsx)("span",{className:"text-gradient-gold",children:"Dream"}),(0,b.jsx)("br",{}),"Property"]}),(0,b.jsx)(f.motion.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.2},className:"text-lg sm:text-xl text-muted-foreground max-w-2xl mx-auto mb-10 leading-relaxed",children:"Explore 2,500+ curated luxury properties across 15+ Indian cities. Premium apartments, villas, commercial spaces — all RERA verified."}),(0,b.jsx)(f.motion.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7,delay:.3},children:(0,b.jsxs)("form",{onSubmit:b=>{b.preventDefault();let c=new URLSearchParams;o&&c.set("q",o),q&&c.set("city",q),s&&c.set("category",s),a.push(`/projects?${c.toString()}`)},className:"glass-card rounded-2xl p-3 lg:p-4 flex flex-col lg:flex-row gap-3 max-w-3xl mx-auto",children:[(0,b.jsxs)("div",{className:"relative flex-1",children:[(0,b.jsx)(g.Search,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),(0,b.jsx)("input",{type:"text",value:o,onChange:a=>p(a.target.value),placeholder:"Project name, builder, keyword...",className:"w-full pl-11 pr-4 py-3 bg-transparent text-foreground placeholder:text-muted-foreground/60 focus:outline-none text-sm"})]}),(0,b.jsxs)("div",{className:"relative lg:w-44",children:[(0,b.jsx)(h.MapPin,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),(0,b.jsxs)("select",{value:q,onChange:a=>r(a.target.value),className:"w-full pl-9 pr-4 py-3 bg-secondary/50 border border-border rounded-xl text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-primary appearance-none",children:[(0,b.jsx)("option",{value:"",children:"All Cities"}),m.MAJOR_CITIES.map(a=>(0,b.jsx)("option",{value:a,children:a},a))]})]}),(0,b.jsxs)("div",{className:"relative lg:w-44",children:[(0,b.jsx)(i.TrendingUp,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),(0,b.jsxs)("select",{value:s,onChange:a=>t(a.target.value),className:"w-full pl-9 pr-4 py-3 bg-secondary/50 border border-border rounded-xl text-sm text-foreground focus:outline-none focus:ring-1 focus:ring-primary appearance-none",children:[(0,b.jsx)("option",{value:"",children:"All Types"}),m.PROJECT_CATEGORIES.map(a=>(0,b.jsx)("option",{value:a.value,children:a.label},a.value))]})]}),(0,b.jsxs)(l.Button,{type:"submit",variant:"gold",size:"lg",className:"lg:px-8",children:[(0,b.jsx)(g.Search,{className:"w-4 h-4"}),(0,b.jsx)("span",{children:"Search"})]})]})}),(0,b.jsxs)(f.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.6,delay:.5},className:"flex flex-wrap justify-center gap-2 mt-6",children:[(0,b.jsx)("span",{className:"text-sm text-muted-foreground",children:"Popular:"}),["Luxury Apartments Mumbai","Villas Pune","Commercial Bangalore","New Launch Hyderabad"].map(a=>(0,b.jsx)("button",{onClick:()=>p(a),className:"text-xs text-primary hover:text-primary/80 underline underline-offset-2 transition-colors",children:a},a))]}),(0,b.jsxs)(f.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.6},className:"flex flex-wrap justify-center gap-4 mt-10",children:[(0,b.jsx)(l.Button,{variant:"gold",size:"xl",asChild:!0,children:(0,b.jsxs)(c.default,{href:"/projects",children:["Explore All Properties",(0,b.jsx)(k.ArrowRight,{className:"w-5 h-5"})]})}),(0,b.jsx)(l.Button,{variant:"gold-outline",size:"xl",asChild:!0,children:(0,b.jsxs)(c.default,{href:"/projects/luxury",children:[(0,b.jsx)(j.Crown,{className:"w-5 h-5"}),"Luxury Collection"]})})]})]}),(0,b.jsx)(f.motion.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:.8,delay:.7},className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mt-20 max-w-3xl mx-auto",children:n.map(a=>(0,b.jsxs)("div",{className:"text-center glass-card rounded-2xl p-4",children:[(0,b.jsx)("div",{className:"text-2xl lg:text-3xl font-display font-bold text-gradient-gold mb-1",children:a.value}),(0,b.jsx)("div",{className:"text-xs text-muted-foreground",children:a.label})]},a.label))})]}),(0,b.jsx)(f.motion.div,{className:"absolute bottom-8 left-1/2 -translate-x-1/2",initial:{opacity:0},animate:{opacity:1,y:[0,8,0]},transition:{delay:1,duration:2,repeat:1/0},children:(0,b.jsx)("div",{className:"w-6 h-10 rounded-full border-2 border-primary/40 flex items-start justify-center pt-1.5",children:(0,b.jsx)("div",{className:"w-1.5 h-3 rounded-full bg-primary/60"})})})]})}])},278140,a=>{"use strict";var b=a.i(765254);a.s(["Award",()=>b.default])},489845,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(346271),e=a.i(254760);let f={some:0,all:1};var g=a.i(427377),h=a.i(285888),i=a.i(954098),j=a.i(526634),k=a.i(343419),l=a.i(278140);let m=[{label:"Properties Listed",value:2500,suffix:"+",icon:g.Building2,color:"text-primary"},{label:"Happy Families",value:1e4,suffix:"+",icon:h.Users,color:"text-green-400"},{label:"Cities Covered",value:15,suffix:"+",icon:i.MapPin,color:"text-blue-400"},{label:"Top Builders",value:200,suffix:"+",icon:j.Star,color:"text-purple-400"},{label:"Crore+ Deals Closed",value:500,suffix:"+",icon:k.TrendingUp,color:"text-amber-400"},{label:"Years Experience",value:12,suffix:"+",icon:l.Award,color:"text-pink-400"}];function n({target:a,suffix:d}){let[g,h]=(0,c.useState)(0),i=(0,c.useRef)(null),j=function(a,{root:b,margin:d,amount:g,once:h=!1,initial:i=!1}={}){let[j,k]=(0,c.useState)(i);return(0,c.useEffect)(()=>{if(!a.current||h&&j)return;let c={root:b&&b.current||void 0,margin:d,amount:g};return function(a,b,{root:c,margin:d,amount:g="some"}={}){let h=(0,e.resolveElements)(a),i=new WeakMap,j=new IntersectionObserver(a=>{a.forEach(a=>{let c=i.get(a.target);if(!!c!==a.isIntersecting)if(a.isIntersecting){let c=b(a.target,a);"function"==typeof c?i.set(a.target,c):j.unobserve(a.target)}else"function"==typeof c&&(c(a),i.delete(a.target))})},{root:c,rootMargin:d,threshold:"number"==typeof g?g:f[g]});return h.forEach(a=>j.observe(a)),()=>j.disconnect()}(a.current,()=>(k(!0),h?void 0:()=>k(!1)),c)},[b,a,d,h,g]),j}(i,{once:!0});return(0,c.useEffect)(()=>{if(!j)return;let b=a/60,c=0,d=setInterval(()=>{(c+=b)>=a?(h(a),clearInterval(d)):h(Math.floor(c))},2e3/60);return()=>clearInterval(d)},[j,a]),(0,b.jsxs)("span",{ref:i,children:[g.toLocaleString("en-IN"),d]})}a.s(["StatsSection",0,function(){return(0,b.jsx)("section",{className:"section-padding border-y border-border bg-card",children:(0,b.jsx)("div",{className:"section-container",children:(0,b.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-6",children:m.map((a,c)=>(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:.08*c},className:"text-center group",children:[(0,b.jsx)("div",{className:"flex justify-center mb-3",children:(0,b.jsx)("div",{className:"w-12 h-12 rounded-2xl bg-secondary/50 flex items-center justify-center group-hover:scale-110 transition-transform duration-300",children:(0,b.jsx)(a.icon,{className:`w-6 h-6 ${a.color}`})})}),(0,b.jsx)("div",{className:`text-3xl lg:text-4xl font-display font-bold mb-1 ${a.color}`,children:(0,b.jsx)(n,{target:a.value,suffix:a.suffix})}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground font-medium",children:a.label})]},a.label))})})})}],489845)},607035,a=>{"use strict";var b=a.i(187924),c=a.i(238246),d=a.i(346271),e=a.i(818783),f=a.i(427377),g=a.i(699570),h=a.i(352019);a.s(["FeaturedProjectsSection",0,function({projects:a}){return 0===a.length?null:(0,b.jsx)("section",{className:"section-padding",children:(0,b.jsxs)("div",{className:"section-container",children:[(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[(0,b.jsxs)("span",{className:"badge-gold mb-4 inline-flex",children:[(0,b.jsx)(f.Building2,{className:"w-3.5 h-3.5 mr-1.5"}),"Featured Properties"]}),(0,b.jsx)("h2",{className:"section-title text-4xl lg:text-5xl mb-4",children:"Handpicked Luxury Properties"}),(0,b.jsx)("div",{className:"gold-divider"}),(0,b.jsx)("p",{className:"section-subtitle mt-4 max-w-2xl mx-auto",children:"Discover our curated collection of premium properties from India's most trusted builders — each vetted for quality and value."})]}),(0,b.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mb-10",children:a.map((a,c)=>(0,b.jsx)(h.PropertyCard,{project:a,index:c},a.id))}),(0,b.jsx)("div",{className:"text-center",children:(0,b.jsx)(g.Button,{variant:"gold-outline",size:"lg",asChild:!0,children:(0,b.jsxs)(c.default,{href:"/projects",children:["View All Properties",(0,b.jsx)(e.ArrowRight,{className:"w-4 h-4 ml-1"})]})})})]})})}])},369005,a=>{"use strict";var b=a.i(187924),c=a.i(238246),d=a.i(346271),e=a.i(871499),f=a.i(555486),g=a.i(427377),h=a.i(118343),i=a.i(514098),i=i,j=a.i(104647),k=a.i(343419),l=a.i(428821),l=l;let m=[{value:"luxury",label:"Luxury",description:"Ultra-premium residences",icon:e.Crown,color:"from-amber-500/20 to-yellow-600/20 border-amber-500/30",iconColor:"text-amber-400",href:"/projects/luxury"},{value:"residential",label:"Residential",description:"Comfortable family homes",icon:f.Home,color:"from-blue-500/20 to-indigo-600/20 border-blue-500/30",iconColor:"text-blue-400",href:"/projects/residential"},{value:"commercial",label:"Commercial",description:"Office & retail spaces",icon:g.Building2,color:"from-purple-500/20 to-violet-600/20 border-purple-500/30",iconColor:"text-purple-400",href:"/projects/commercial"},{value:"rental",label:"Rental",description:"Ready to move rentals",icon:h.Key,color:"from-green-500/20 to-emerald-600/20 border-green-500/30",iconColor:"text-green-400",href:"/projects/rental"},{value:"villa",label:"Villas",description:"Independent luxury villas",icon:i.default,color:"from-teal-500/20 to-cyan-600/20 border-teal-500/30",iconColor:"text-teal-400",href:"/projects?category=villa"},{value:"plot",label:"Plots",description:"Land & development plots",icon:j.Map,color:"from-orange-500/20 to-red-600/20 border-orange-500/30",iconColor:"text-orange-400",href:"/projects?category=plot"},{value:"new_launch",label:"New Launches",description:"Fresh listings at best prices",icon:k.TrendingUp,color:"from-pink-500/20 to-rose-600/20 border-pink-500/30",iconColor:"text-pink-400",href:"/projects?is_new_launch=true"},{value:"all",label:"All Projects",description:"Browse complete catalog",icon:l.default,color:"from-slate-500/20 to-gray-600/20 border-slate-500/30",iconColor:"text-slate-400",href:"/projects"}];a.s(["CategoriesSection",0,function(){return(0,b.jsx)("section",{className:"section-padding bg-card",children:(0,b.jsxs)("div",{className:"section-container",children:[(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[(0,b.jsx)("span",{className:"badge-gold mb-4 inline-flex",children:"Browse By Type"}),(0,b.jsx)("h2",{className:"section-title text-4xl lg:text-5xl mb-4",children:"Find Your Perfect Property"}),(0,b.jsx)("div",{className:"gold-divider"}),(0,b.jsx)("p",{className:"section-subtitle mt-4 max-w-xl mx-auto",children:"From luxury penthouses to commercial spaces, we have every property type covered."})]}),(0,b.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:m.map((a,e)=>(0,b.jsx)(d.motion.div,{initial:{opacity:0,scale:.92},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.4,delay:.06*e},children:(0,b.jsxs)(c.default,{href:a.href,className:`flex flex-col items-center text-center p-6 rounded-2xl border bg-gradient-to-br ${a.color} hover:scale-105 transition-all duration-300 group cursor-pointer`,children:[(0,b.jsx)("div",{className:"w-14 h-14 rounded-2xl bg-background/30 flex items-center justify-center mb-3 group-hover:scale-110 transition-transform duration-300",children:(0,b.jsx)(a.icon,{className:`w-7 h-7 ${a.iconColor}`})}),(0,b.jsx)("h3",{className:"font-semibold text-foreground mb-1",children:a.label}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:a.description})]})},a.value))})]})})}],369005)},415999,a=>{"use strict";var b=a.i(187924),c=a.i(238246),d=a.i(346271),e=a.i(954098),f=a.i(368114);let g={Mumbai:"https://images.unsplash.com/photo-1570168007204-dfb528c6958f?w=600&q=80",Pune:"https://images.unsplash.com/photo-1587474260584-136574528ed5?w=600&q=80",Bangalore:"https://images.unsplash.com/photo-1596176530529-78163a4f7af2?w=600&q=80",Hyderabad:"https://images.unsplash.com/photo-1563789537395-76e0c9e11e7f?w=600&q=80",Chennai:"https://images.unsplash.com/photo-1582510003544-4d00b7f74220?w=600&q=80","Delhi NCR":"https://images.unsplash.com/photo-1587474260584-136574528ed5?w=600&q=80",Noida:"https://images.unsplash.com/photo-1587474260584-136574528ed5?w=600&q=80",Gurgaon:"https://images.unsplash.com/photo-1587474260584-136574528ed5?w=600&q=80"};a.s(["CitiesSection",0,function({cities:a}){let h=a.length>0?a:[{id:"1",name:"Mumbai",slug:"mumbai",image_url:g.Mumbai},{id:"2",name:"Pune",slug:"pune",image_url:g.Pune},{id:"3",name:"Bangalore",slug:"bangalore",image_url:g.Bangalore},{id:"4",name:"Hyderabad",slug:"hyderabad",image_url:g.Hyderabad},{id:"5",name:"Chennai",slug:"chennai",image_url:g.Chennai},{id:"6",name:"Delhi NCR",slug:"delhi-ncr",image_url:g["Delhi NCR"]},{id:"7",name:"Noida",slug:"noida",image_url:g.Noida},{id:"8",name:"Gurgaon",slug:"gurgaon",image_url:g.Gurgaon}];return(0,b.jsx)("section",{className:"section-padding",children:(0,b.jsxs)("div",{className:"section-container",children:[(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[(0,b.jsxs)("span",{className:"badge-gold mb-4 inline-flex",children:[(0,b.jsx)(e.MapPin,{className:"w-3.5 h-3.5 mr-1.5"}),"Top Cities"]}),(0,b.jsx)("h2",{className:"section-title text-4xl lg:text-5xl mb-4",children:"Properties Across India"}),(0,b.jsx)("div",{className:"gold-divider"}),(0,b.jsx)("p",{className:"section-subtitle mt-4 max-w-xl mx-auto",children:"Explore premium real estate in India's most sought-after cities."})]}),(0,b.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:h.map((a,h)=>{let i=a.image_url??g[a.name]??g.Mumbai;return(0,b.jsx)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:.07*h},children:(0,b.jsxs)(c.default,{href:`/projects?city=${encodeURIComponent(a.name)}`,className:"relative group block rounded-2xl overflow-hidden h-44 md:h-52",children:[(0,b.jsx)("img",{src:(0,f.optimizeImageUrl)(i,500),alt:a.name,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-110",loading:"lazy"}),(0,b.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent"}),(0,b.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-4",children:[(0,b.jsx)("h3",{className:"font-display text-lg font-bold text-white",children:a.name}),(0,b.jsxs)("p",{className:"text-xs text-white/70 flex items-center gap-1",children:[(0,b.jsx)(e.MapPin,{className:"w-3 h-3"}),"Explore Properties"]})]}),(0,b.jsx)("div",{className:"absolute inset-0 bg-primary/15 opacity-0 group-hover:opacity-100 transition-opacity duration-300"}),(0,b.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-0.5 bg-gradient-to-r from-primary to-accent transform scale-x-0 group-hover:scale-x-100 transition-transform duration-300"})]})},a.id)})})]})})}])},628688,a=>{"use strict";var b=a.i(187924),c=a.i(238246),d=a.i(346271),e=a.i(818783),f=a.i(427377),g=a.i(526634),h=a.i(699570),i=a.i(368114);a.s(["BuildersSection",0,function({builders:a}){return 0===a.length?null:(0,b.jsx)("section",{className:"section-padding bg-card",children:(0,b.jsxs)("div",{className:"section-container",children:[(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[(0,b.jsxs)("span",{className:"badge-gold mb-4 inline-flex",children:[(0,b.jsx)(f.Building2,{className:"w-3.5 h-3.5 mr-1.5"}),"Trusted Builders"]}),(0,b.jsx)("h2",{className:"section-title text-4xl lg:text-5xl mb-4",children:"India's Leading Developers"}),(0,b.jsx)("div",{className:"gold-divider"}),(0,b.jsx)("p",{className:"section-subtitle mt-4 max-w-xl mx-auto",children:"We partner exclusively with India's most reputable and award-winning real estate developers."})]}),(0,b.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:a.map((a,e)=>(0,b.jsx)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:.07*e},children:(0,b.jsxs)(c.default,{href:`/builders/${a.slug}`,className:"glass-card rounded-2xl p-5 flex flex-col items-center text-center hover:border-primary/40 transition-all duration-300 group h-full",children:[(0,b.jsx)("div",{className:"w-20 h-20 rounded-2xl bg-secondary/50 flex items-center justify-center mb-4 overflow-hidden group-hover:scale-105 transition-transform duration-300",children:a.logo?(0,b.jsx)("img",{src:(0,i.optimizeImageUrl)(a.logo,200),alt:a.name,width:60,height:60,className:"object-contain",loading:"lazy"}):(0,b.jsx)(f.Building2,{className:"w-8 h-8 text-primary"})}),(0,b.jsx)("h3",{className:"font-semibold text-foreground text-sm mb-1 group-hover:text-primary transition-colors",children:a.name}),a.rating&&(0,b.jsxs)("div",{className:"flex items-center gap-1 mb-2",children:[(0,b.jsx)(g.Star,{className:"w-3.5 h-3.5 text-primary fill-current"}),(0,b.jsx)("span",{className:"text-xs text-muted-foreground",children:a.rating})]}),(0,b.jsxs)("p",{className:"text-xs text-muted-foreground",children:[a.total_projects||0," Projects"]})]})},a.id))}),(0,b.jsx)("div",{className:"text-center mt-10",children:(0,b.jsx)(h.Button,{variant:"gold-outline",size:"lg",asChild:!0,children:(0,b.jsxs)(c.default,{href:"/builders",children:["View All Builders",(0,b.jsx)(e.ArrowRight,{className:"w-4 h-4 ml-1"})]})})})]})})}])},721888,a=>{"use strict";var b=a.i(187924),c=a.i(346271),d=a.i(526634),e=a.i(516410),e=e,f=a.i(368114);let g=[{id:"1",author_name:"Rajesh Sharma",author_designation:"IT Professional",author_company:"TCS, Bangalore",content:"PropVault made finding my dream 3BHK in Whitefield absolutely effortless. The team was professional, the listings were accurate, and they helped me with home loan paperwork too. Highly recommend!",rating:5,city:"Bangalore"},{id:"2",author_name:"Priya Patel",author_designation:"Entrepreneur",author_company:"Mumbai",content:"I was skeptical about online property platforms, but PropVault exceeded all expectations. Bought a luxury flat in BKC at a great price. Their RERA verification gave me complete confidence.",rating:5,city:"Mumbai"},{id:"3",author_name:"Arjun Mehta",author_designation:"Senior Manager",author_company:"HDFC Bank, Pune",content:"Found the perfect villa in Wakad through PropVault. The virtual tours saved so much time. The consultant, Vikram, was incredibly knowledgeable. Closed the deal in just 3 weeks!",rating:5,city:"Pune"},{id:"4",author_name:"Sunita Agarwal",author_designation:"Doctor",author_company:"Apollo Hospitals, Hyderabad",content:"PropVault's curated luxury collection is outstanding. Found an investment property in Gachibowli with excellent rental yield. The ROI calculator tool was particularly helpful.",rating:5,city:"Hyderabad"},{id:"5",author_name:"Vikram Reddy",author_designation:"Software Engineer",author_company:"Amazon, Chennai",content:"As a first-time buyer, I was nervous. PropVault's team guided me through every step — from shortlisting to registration. Now proud owner of a 2BHK in OMR. Best decision ever!",rating:5,city:"Chennai"},{id:"6",author_name:"Deepa Nair",author_designation:"CA",author_company:"Deloitte, Mumbai",content:"PropVault helped me invest in commercial real estate for the first time. Their market insights and due diligence reports are world-class. Already seeing 8% rental yield.",rating:5,city:"Mumbai"}];a.s(["TestimonialsSection",0,function({testimonials:a}){let h=a.length>0?a:g;return(0,b.jsx)("section",{className:"section-padding",children:(0,b.jsxs)("div",{className:"section-container",children:[(0,b.jsxs)(c.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-12",children:[(0,b.jsx)("span",{className:"badge-gold mb-4 inline-flex",children:"Client Stories"}),(0,b.jsx)("h2",{className:"section-title text-4xl lg:text-5xl mb-4",children:"What Our Clients Say"}),(0,b.jsx)("div",{className:"gold-divider"}),(0,b.jsx)("p",{className:"section-subtitle mt-4 max-w-xl mx-auto",children:"10,000+ families have found their perfect home through PropVault."})]}),(0,b.jsx)("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6",children:h.slice(0,6).map((a,g)=>(0,b.jsxs)(c.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:.08*g},className:"luxury-card p-6 flex flex-col",children:[(0,b.jsx)(e.default,{className:"w-8 h-8 text-primary/40 mb-4 shrink-0"}),(0,b.jsx)("div",{className:"flex gap-1 mb-4",children:Array.from({length:Number(a.rating)||5}).map((a,c)=>(0,b.jsx)(d.Star,{className:"w-4 h-4 text-primary fill-current"},c))}),(0,b.jsxs)("p",{className:"text-muted-foreground text-sm leading-relaxed flex-1 mb-5",children:['"',a.content,'"']}),(0,b.jsxs)("div",{className:"flex items-center gap-3 pt-4 border-t border-border",children:[a.author_avatar?(0,b.jsx)("img",{src:(0,f.optimizeImageUrl)(a.author_avatar,150),alt:a.author_name,width:44,height:44,className:"rounded-full object-cover w-11 h-11",loading:"lazy"}):(0,b.jsx)("div",{className:"w-11 h-11 rounded-full bg-gradient-to-br from-primary to-accent flex items-center justify-center text-primary-foreground font-bold text-sm",children:a.author_name.charAt(0)}),(0,b.jsxs)("div",{children:[(0,b.jsx)("p",{className:"font-semibold text-foreground text-sm",children:a.author_name}),(0,b.jsxs)("p",{className:"text-xs text-muted-foreground",children:[a.author_designation,a.author_company&&` \xb7 ${a.author_company}`]}),a.city&&(0,b.jsx)("p",{className:"text-xs text-primary",children:a.city})]})]})]},a.id))})]})})}],721888)},614427,a=>{"use strict";var b=a.i(187924),c=a.i(238246),d=a.i(346271),e=a.i(818783),f=a.i(308311),g=a.i(118688),h=a.i(699570),i=a.i(786304),j=a.i(923690),k=a.i(368114);let l=[{id:"1",title:"Top 10 Luxury Residential Projects in Mumbai 2025",slug:"top-10-luxury-residential-projects-mumbai-2025",excerpt:"Discover the most sought-after luxury developments in Mumbai's premium micro-markets including BKC, Worli, and Lower Parel.",cover_image:"https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?w=800&q=80",category:"Market Trends",read_time_minutes:8,published_at:new Date(Date.now()-1728e5).toISOString()},{id:"2",title:"RERA Compliance Guide for Property Buyers in 2025",slug:"rera-compliance-guide-property-buyers-2025",excerpt:"Everything you need to know about RERA registration, how to verify projects, and protect yourself as a buyer.",cover_image:"https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=800&q=80",category:"Legal & RERA",read_time_minutes:10,published_at:new Date(Date.now()-432e6).toISOString()},{id:"3",title:"Home Loan Guide: Get the Best Rate in 2025",slug:"home-loan-guide-best-rate-2025",excerpt:"Complete guide to home loans — interest rates, EMI calculations, eligibility, and tips to get the best deal from Indian banks.",cover_image:"https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=800&q=80",category:"Home Loan",read_time_minutes:12,published_at:new Date(Date.now()-6048e5).toISOString()}];a.s(["BlogSection",0,function({blogs:a}){let m=a.length>0?a:l;return(0,b.jsx)("section",{className:"section-padding bg-card",children:(0,b.jsxs)("div",{className:"section-container",children:[(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 mb-12",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("span",{className:"badge-gold mb-3 inline-flex",children:[(0,b.jsx)(g.BookOpen,{className:"w-3.5 h-3.5 mr-1.5"}),"Expert Insights"]}),(0,b.jsx)("h2",{className:"section-title text-3xl lg:text-4xl",children:"Real Estate Blog"})]}),(0,b.jsx)(h.Button,{variant:"gold-outline",size:"sm",asChild:!0,children:(0,b.jsxs)(c.default,{href:"/blog",children:["View All Articles",(0,b.jsx)(e.ArrowRight,{className:"w-4 h-4 ml-1"})]})})]}),(0,b.jsx)("div",{className:"grid md:grid-cols-3 gap-6",children:m.slice(0,3).map((a,e)=>(0,b.jsx)(d.motion.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:.1*e},className:"luxury-card overflow-hidden group",children:(0,b.jsxs)(c.default,{href:`/blog/${a.slug}`,children:[(0,b.jsxs)("div",{className:"relative h-48 overflow-hidden",children:[a.cover_image?(0,b.jsx)("img",{src:(0,k.optimizeImageUrl)(a.cover_image,600),alt:a.title,className:"absolute inset-0 w-full h-full object-cover transition-transform duration-500 group-hover:scale-105",loading:"lazy"}):(0,b.jsx)("div",{className:"h-full bg-gradient-to-br from-primary/20 to-secondary"}),(0,b.jsx)("div",{className:"absolute top-3 left-3",children:(0,b.jsx)(i.Badge,{variant:"gold",children:a.category})})]}),(0,b.jsxs)("div",{className:"p-5",children:[(0,b.jsx)("h3",{className:"font-display font-semibold text-foreground mb-2 line-clamp-2 group-hover:text-primary transition-colors duration-200",children:a.title}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-4",children:a.excerpt}),(0,b.jsxs)("div",{className:"flex items-center justify-between text-xs text-muted-foreground",children:[(0,b.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,b.jsx)(f.Clock,{className:"w-3.5 h-3.5"}),a.read_time_minutes," min read"]}),a.published_at&&(0,b.jsx)("span",{children:(0,j.formatRelativeDate)(a.published_at)})]})]})]})},a.id))})]})})}])},235517,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(346271),e=a.i(162591),f=a.i(79362),g=a.i(875160),h=a.i(818783),i=a.i(823292),j=a.i(699570),k=a.i(866718),l=a.i(405050);let m=(0,l.createServerReference)("6035faf56b23c5839fb8bcb9d5d52e4c3f9c5bdca7",l.callServer,void 0,l.findSourceMapURL,"subscribeNewsletter");a.s(["NewsletterSection",0,function(){let[a,l]=(0,c.useState)(""),[n,o]=(0,c.useState)(!1),[p,q]=(0,c.useState)(!1),r=async b=>{if(b.preventDefault(),a.trim()){o(!0);try{let b=await m(a.trim());b.success?(q(!0),l("")):i.toast.error(b.error??"Failed to subscribe. Please try again.")}catch{i.toast.error("Something went wrong. Please try again.")}finally{o(!1)}}};return(0,b.jsx)("section",{className:"section-padding",children:(0,b.jsx)("div",{className:"section-container",children:(0,b.jsxs)(d.motion.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"relative overflow-hidden rounded-3xl",style:{background:"linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--background)) 100%)",border:"1px solid hsl(var(--border))"},children:[(0,b.jsx)("div",{className:"absolute top-0 right-0 w-72 h-72 bg-primary/5 rounded-full blur-3xl"}),(0,b.jsx)("div",{className:"absolute bottom-0 left-0 w-72 h-72 bg-primary/5 rounded-full blur-3xl"}),(0,b.jsxs)("div",{className:"relative z-10 px-8 py-16 lg:px-16 text-center",children:[(0,b.jsx)("div",{className:"w-16 h-16 bg-primary/10 border border-primary/30 rounded-2xl flex items-center justify-center mx-auto mb-6",children:(0,b.jsx)(e.Mail,{className:"w-8 h-8 text-primary"})}),(0,b.jsx)("h2",{className:"section-title text-3xl lg:text-4xl mb-4",children:"Stay Ahead of the Market"}),(0,b.jsx)("p",{className:"text-muted-foreground text-lg mb-8 max-w-2xl mx-auto",children:"Get exclusive property alerts, market insights, new project launches, and investment tips delivered to your inbox — no spam, only value."}),p?(0,b.jsxs)(d.motion.div,{initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},className:"flex flex-col items-center gap-3",children:[(0,b.jsx)("div",{className:"w-12 h-12 bg-green-500/15 rounded-full flex items-center justify-center",children:(0,b.jsx)(f.CheckCircle,{className:"w-6 h-6 text-green-400"})}),(0,b.jsx)("p",{className:"text-foreground font-semibold",children:"You're subscribed!"}),(0,b.jsx)("p",{className:"text-muted-foreground text-sm",children:"Thank you for joining our community of 50,000+ subscribers."})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("form",{onSubmit:r,className:"flex flex-col sm:flex-row gap-3 max-w-lg mx-auto mb-4",children:[(0,b.jsx)(k.Input,{type:"email",value:a,onChange:a=>l(a.target.value),placeholder:"Enter your email address",className:"flex-1 h-12 text-base",required:!0}),(0,b.jsx)(j.Button,{type:"submit",variant:"gold",size:"lg",disabled:n,className:"h-12 px-8",children:n?(0,b.jsx)(g.Loader2,{className:"w-4 h-4 animate-spin"}):(0,b.jsxs)(b.Fragment,{children:["Subscribe ",(0,b.jsx)(h.ArrowRight,{className:"w-4 h-4 ml-1"})]})})]}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:"Join 50,000+ subscribers · Unsubscribe anytime · No spam"})]})]})]})})})}],235517)},80137,a=>{"use strict";var b=a.i(187924),c=a.i(346271),d=a.i(414258),e=a.i(278140),f=a.i(285888),g=a.i(492378),h=a.i(58704),h=h,i=a.i(79362);let j=[{icon:d.Shield,title:"100% RERA Verified",description:"Every property listed is RERA registered and legally verified for complete peace of mind.",color:"text-green-400",bg:"bg-green-400/10 border-green-400/20"},{icon:e.Award,title:"Premium Builders Only",description:"We partner exclusively with India's most reputable and award-winning developers.",color:"text-primary",bg:"bg-primary/10 border-primary/20"},{icon:f.Users,title:"10,000+ Happy Families",description:"Over a decade of helping Indian families find their perfect home across 15+ cities.",color:"text-blue-400",bg:"bg-blue-400/10 border-blue-400/20"},{icon:g.Zap,title:"Instant Enquiry Response",description:"Our property consultants respond to every enquiry within 30 minutes, 7 days a week.",color:"text-purple-400",bg:"bg-purple-400/10 border-purple-400/20"},{icon:h.default,title:"End-to-End Assistance",description:"From site visits to home loans to registration — we're with you every step of the way.",color:"text-pink-400",bg:"bg-pink-400/10 border-pink-400/20"},{icon:i.CheckCircle,title:"Zero Brokerage",description:"We believe in transparency. No hidden fees, no brokerage charges on listed properties.",color:"text-teal-400",bg:"bg-teal-400/10 border-teal-400/20"}];a.s(["WhyUsSection",0,function(){return(0,b.jsx)("section",{className:"section-padding bg-card",children:(0,b.jsx)("div",{className:"section-container",children:(0,b.jsxs)("div",{className:"grid lg:grid-cols-2 gap-16 items-center",children:[(0,b.jsxs)(c.motion.div,{initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.6},children:[(0,b.jsx)("span",{className:"badge-gold mb-4 inline-flex",children:"Why Choose PropVault"}),(0,b.jsxs)("h2",{className:"section-title text-4xl lg:text-5xl mb-6",children:["India's Most Trusted",(0,b.jsx)("br",{}),(0,b.jsx)("span",{className:"text-gradient-gold",children:"Real Estate Partner"})]}),(0,b.jsx)("div",{className:"gold-divider ml-0 my-6"}),(0,b.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-8",children:"We've helped over 10,000 families find their dream homes since 2012. Our platform combines cutting-edge technology with personal expertise to deliver an unmatched property buying experience."}),(0,b.jsx)("div",{className:"flex flex-col gap-3",children:["12+ Years of Excellence","₹500 Cr+ in Transactions","ISO 9001:2015 Certified","Member of CREDAI & NAR India"].map(a=>(0,b.jsxs)("div",{className:"flex items-center gap-3",children:[(0,b.jsx)(i.CheckCircle,{className:"w-5 h-5 text-primary shrink-0"}),(0,b.jsx)("span",{className:"text-foreground font-medium",children:a})]},a))})]}),(0,b.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:j.map((a,d)=>(0,b.jsxs)(c.motion.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:.1*d},className:`p-5 rounded-2xl border ${a.bg} group hover:scale-[1.02] transition-transform duration-300`,children:[(0,b.jsx)("div",{className:"mb-3",children:(0,b.jsx)(a.icon,{className:`w-8 h-8 ${a.color}`})}),(0,b.jsx)("h3",{className:"font-semibold text-foreground mb-1.5 text-sm",children:a.title}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground leading-relaxed",children:a.description})]},a.title))})]})})})}],80137)}];
2
2
 
3
3
  //# sourceMappingURL=_0xki9b-._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[866718,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(368114);let e=c.forwardRef(({className:a,type:c,...e},f)=>(0,b.jsx)("input",{type:c,className:(0,d.cn)("flex h-10 w-full rounded-xl border border-border bg-card px-3 py-2 text-sm text-foreground ring-offset-background placeholder:text-muted-foreground/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:border-primary/50 disabled:cursor-not-allowed disabled:opacity-50 transition-colors",a),ref:f,...e}));e.displayName="Input",a.s(["Input",0,e])},699570,400187,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(811011),e=a.i(298621);let f=a=>"boolean"==typeof a?`${a}`:0===a?"0":a,g=e.clsx,h=(a,b)=>c=>{var d;if((null==b?void 0:b.variants)==null)return g(a,null==c?void 0:c.class,null==c?void 0:c.className);let{variants:e,defaultVariants:h}=b,i=Object.keys(e).map(a=>{let b=null==c?void 0:c[a],d=null==h?void 0:h[a];if(null===b)return null;let g=f(b)||f(d);return e[a][g]}),j=c&&Object.entries(c).reduce((a,b)=>{let[c,d]=b;return void 0===d||(a[c]=d),a},{});return g(a,i,null==b||null==(d=b.compoundVariants)?void 0:d.reduce((a,b)=>{let{class:c,className:d,...e}=b;return Object.entries(e).every(a=>{let[b,c]=a;return Array.isArray(c)?c.includes({...h,...j}[b]):({...h,...j})[b]===c})?[...a,c,d]:a},[]),null==c?void 0:c.class,null==c?void 0:c.className)};a.s(["cva",0,h],400187);var i=a.i(368114);let j=h("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 select-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 active:scale-[0.98]",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-border bg-transparent hover:bg-secondary/50 hover:text-foreground text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary/50 hover:text-foreground text-muted-foreground",link:"text-primary underline-offset-4 hover:underline",gold:"bg-gradient-to-r from-[hsl(36,82%,47%)] to-[hsl(42,88%,65%)] text-[hsl(240,20%,7%)] font-semibold hover:opacity-90 active:scale-[0.98] shadow-[0_4px_14px_0_hsl(36,82%,47%,0.4)]","gold-outline":"border border-[hsl(36,82%,47%,0.5)] text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)] hover:border-[hsl(36,82%,47%)]","gold-ghost":"text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)]"},size:{default:"h-10 px-5 py-2",xs:"h-7 px-3 text-xs rounded-lg",sm:"h-9 px-4 text-sm",lg:"h-12 px-8 text-base",xl:"h-14 px-10 text-lg",icon:"h-10 w-10","icon-sm":"h-9 w-9","icon-lg":"h-12 w-12"}},defaultVariants:{variant:"default",size:"default"}}),k=c.forwardRef(({className:a,variant:c,size:e,asChild:f=!1,...g},h)=>{let k=f?d.Slot:"button";return(0,b.jsx)(k,{className:(0,i.cn)(j({variant:c,size:e,className:a})),ref:h,...g})});k.displayName="Button",a.s(["Button",0,k],699570)},875160,702918,a=>{"use strict";let b=(0,a.i(164831).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["default",0,b],702918),a.s(["Loader2",0,b],875160)},405050,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(120611),g=a.r(1722),h=a.r(738783)},870430,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(30553),e=c.forwardRef((a,c)=>(0,b.jsx)(d.Primitive.label,{...a,ref:c,onMouseDown:b=>{b.target.closest("button, input, select, textarea")||(a.onMouseDown?.(b),!b.defaultPrevented&&b.detail>1&&b.preventDefault())}}));e.displayName="Label";var f=a.i(368114);let g=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(e,{ref:d,className:(0,f.cn)("text-sm font-medium text-foreground leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",a),...c}));g.displayName=e.displayName,a.s(["Label",0,g],870430)},759943,a=>{"use strict";let b=(0,a.i(164831).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);a.s(["default",0,b])},879675,a=>{"use strict";var b=a.i(759943);a.s(["Save",()=>b.default])},79247,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(823292),e=a.i(344451),f=a.i(414258),g=a.i(118343),h=a.i(875160),i=a.i(879675),j=a.i(699570),k=a.i(866718),l=a.i(870430),m=a.i(405050);let n=(0,m.createServerReference)("402b481e152b3f6928e25e0bd99c36b48f9fba3cc1",m.callServer,void 0,m.findSourceMapURL,"updateProfile"),o=(0,m.createServerReference)("4028871eecf97bfe5b419a3ad2b293ae26761bbe21",m.callServer,void 0,m.findSourceMapURL,"changePassword");a.s(["ProfileEditor",0,function({user:a}){let[m,p]=(0,c.useState)(a.name||""),[q,r]=(0,c.useState)(a.phone||""),[s,t]=(0,c.useState)(a.image||""),[u,v]=(0,c.useState)({current:"",new:"",confirm:""}),[w,x]=(0,c.useTransition)();return(0,b.jsxs)("div",{className:"grid md:grid-cols-2 gap-8 max-w-5xl",children:[(0,b.jsxs)("div",{className:"glass-card rounded-2xl border border-border p-6 md:p-8 space-y-6",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h2",{className:"text-lg font-semibold text-foreground flex items-center gap-2",children:[(0,b.jsx)(e.User,{className:"h-5 w-5 text-primary"}),"Profile Details"]}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Configure your personal operator credentials and display image."})]}),(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(l.Label,{htmlFor:"email",children:"Email Address"}),(0,b.jsx)(k.Input,{id:"email",value:a.email||"",disabled:!0,className:"bg-secondary/40 text-muted-foreground"}),(0,b.jsx)("p",{className:"text-[10px] text-muted-foreground",children:"Your primary identifier cannot be modified."})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(l.Label,{htmlFor:"name",children:"Full Display Name"}),(0,b.jsx)(k.Input,{id:"name",value:m,onChange:a=>p(a.target.value),placeholder:"e.g. Vikram Sharma"})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(l.Label,{htmlFor:"phone",children:"Contact Phone"}),(0,b.jsx)(k.Input,{id:"phone",value:q,onChange:a=>r(a.target.value),placeholder:"e.g. +91 99999 99999"})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(l.Label,{htmlFor:"avatar",children:"Avatar Image URL"}),(0,b.jsx)(k.Input,{id:"avatar",value:s,onChange:a=>t(a.target.value),placeholder:"e.g. /uploads/avatar.png"})]})]}),(0,b.jsxs)(j.Button,{onClick:()=>{m.trim()?x(async()=>{let a=await n({name:m,phone:q,image:s||void 0});a.success?d.toast.success("Profile details updated successfully"):d.toast.error(a.error||"Failed to update profile")}):d.toast.error("Name is required")},disabled:w,className:"btn-gold w-full gap-2",children:[w?(0,b.jsx)(h.Loader2,{className:"h-4 w-4 animate-spin"}):(0,b.jsx)(i.Save,{className:"h-4 w-4"}),"Save Profile Details"]})]}),(0,b.jsxs)("div",{className:"glass-card rounded-2xl border border-border p-6 md:p-8 space-y-6",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h2",{className:"text-lg font-semibold text-foreground flex items-center gap-2",children:[(0,b.jsx)(g.Key,{className:"h-5 w-5 text-primary"}),"Security & Credentials"]}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Update your administrative login credentials regularly."})]}),(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(l.Label,{htmlFor:"current-pwd",children:"Current Password"}),(0,b.jsx)(k.Input,{id:"current-pwd",type:"password",value:u.current,onChange:a=>v({...u,current:a.target.value}),placeholder:"••••••••••••"})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(l.Label,{htmlFor:"new-pwd",children:"New Password"}),(0,b.jsx)(k.Input,{id:"new-pwd",type:"password",value:u.new,onChange:a=>v({...u,new:a.target.value}),placeholder:"••••••••••••"}),(0,b.jsx)("p",{className:"text-[10px] text-muted-foreground",children:"Minimum 8 characters, with letters and numbers."})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(l.Label,{htmlFor:"confirm-pwd",children:"Confirm New Password"}),(0,b.jsx)(k.Input,{id:"confirm-pwd",type:"password",value:u.confirm,onChange:a=>v({...u,confirm:a.target.value}),placeholder:"••••••••••••"})]})]}),(0,b.jsxs)(j.Button,{onClick:()=>{u.current&&u.new?u.new.length<8?d.toast.error("New password must be at least 8 characters long"):u.new!==u.confirm?d.toast.error("New passwords do not match"):x(async()=>{let a=await o({current:u.current,new:u.new});a.success?(d.toast.success("Password changed successfully"),v({current:"",new:"",confirm:""})):d.toast.error(a.error||"Failed to change password")}):d.toast.error("All password fields are required")},disabled:w,className:"btn-gold w-full gap-2",children:[w?(0,b.jsx)(h.Loader2,{className:"h-4 w-4 animate-spin"}):(0,b.jsx)(f.Shield,{className:"h-4 w-4"}),"Update Login Credentials"]})]})]})}],79247)}];
1
+ module.exports=[866718,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(368114);let e=c.forwardRef(({className:a,type:c,...e},f)=>(0,b.jsx)("input",{type:c,className:(0,d.cn)("flex h-10 w-full rounded-xl border border-border bg-card px-3 py-2 text-sm text-foreground ring-offset-background placeholder:text-muted-foreground/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:border-primary/50 disabled:cursor-not-allowed disabled:opacity-50 transition-colors",a),ref:f,...e}));e.displayName="Input",a.s(["Input",0,e])},699570,400187,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(811011),e=a.i(298621);let f=a=>"boolean"==typeof a?`${a}`:0===a?"0":a,g=e.clsx,h=(a,b)=>c=>{var d;if((null==b?void 0:b.variants)==null)return g(a,null==c?void 0:c.class,null==c?void 0:c.className);let{variants:e,defaultVariants:h}=b,i=Object.keys(e).map(a=>{let b=null==c?void 0:c[a],d=null==h?void 0:h[a];if(null===b)return null;let g=f(b)||f(d);return e[a][g]}),j=c&&Object.entries(c).reduce((a,b)=>{let[c,d]=b;return void 0===d||(a[c]=d),a},{});return g(a,i,null==b||null==(d=b.compoundVariants)?void 0:d.reduce((a,b)=>{let{class:c,className:d,...e}=b;return Object.entries(e).every(a=>{let[b,c]=a;return Array.isArray(c)?c.includes({...h,...j}[b]):({...h,...j})[b]===c})?[...a,c,d]:a},[]),null==c?void 0:c.class,null==c?void 0:c.className)};a.s(["cva",0,h],400187);var i=a.i(368114);let j=h("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 select-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 active:scale-[0.98]",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-border bg-transparent hover:bg-secondary/50 hover:text-foreground text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary/50 hover:text-foreground text-muted-foreground",link:"text-primary underline-offset-4 hover:underline",gold:"bg-gradient-to-r from-[hsl(36,82%,47%)] to-[hsl(42,88%,65%)] text-[hsl(240,20%,7%)] font-semibold hover:opacity-90 active:scale-[0.98] shadow-[0_4px_14px_0_hsl(36,82%,47%,0.4)]","gold-outline":"border border-[hsl(36,82%,47%,0.5)] text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)] hover:border-[hsl(36,82%,47%)]","gold-ghost":"text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)]"},size:{default:"h-10 px-5 py-2",xs:"h-7 px-3 text-xs rounded-lg",sm:"h-9 px-4 text-sm",lg:"h-12 px-8 text-base",xl:"h-14 px-10 text-lg",icon:"h-10 w-10","icon-sm":"h-9 w-9","icon-lg":"h-12 w-12"}},defaultVariants:{variant:"default",size:"default"}}),k=c.forwardRef(({className:a,variant:c,size:e,asChild:f=!1,...g},h)=>{let k=f?d.Slot:"button";return(0,b.jsx)(k,{className:(0,i.cn)(j({variant:c,size:e,className:a})),ref:h,...g})});k.displayName="Button",a.s(["Button",0,k],699570)},875160,702918,a=>{"use strict";let b=(0,a.i(164831).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["default",0,b],702918),a.s(["Loader2",0,b],875160)},405050,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(120611),g=a.r(1722),h=a.r(738783)},870430,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(30553),e=c.forwardRef((a,c)=>(0,b.jsx)(d.Primitive.label,{...a,ref:c,onMouseDown:b=>{b.target.closest("button, input, select, textarea")||(a.onMouseDown?.(b),!b.defaultPrevented&&b.detail>1&&b.preventDefault())}}));e.displayName="Label";var f=a.i(368114);let g=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(e,{ref:d,className:(0,f.cn)("text-sm font-medium text-foreground leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",a),...c}));g.displayName=e.displayName,a.s(["Label",0,g],870430)},759943,a=>{"use strict";let b=(0,a.i(164831).default)("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);a.s(["default",0,b])},879675,a=>{"use strict";var b=a.i(759943);a.s(["Save",()=>b.default])},79247,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(823292),e=a.i(344451),f=a.i(414258),g=a.i(118343),h=a.i(875160),i=a.i(879675),j=a.i(699570),k=a.i(866718),l=a.i(870430),m=a.i(405050);let n=(0,m.createServerReference)("40dc1f492fbaac4553b7c9e93c74f8301433f1a5af",m.callServer,void 0,m.findSourceMapURL,"updateProfile"),o=(0,m.createServerReference)("40ea9ce06a5b4392e3b975e33322e6274638656b54",m.callServer,void 0,m.findSourceMapURL,"changePassword");a.s(["ProfileEditor",0,function({user:a}){let[m,p]=(0,c.useState)(a.name||""),[q,r]=(0,c.useState)(a.phone||""),[s,t]=(0,c.useState)(a.image||""),[u,v]=(0,c.useState)({current:"",new:"",confirm:""}),[w,x]=(0,c.useTransition)();return(0,b.jsxs)("div",{className:"grid md:grid-cols-2 gap-8 max-w-5xl",children:[(0,b.jsxs)("div",{className:"glass-card rounded-2xl border border-border p-6 md:p-8 space-y-6",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h2",{className:"text-lg font-semibold text-foreground flex items-center gap-2",children:[(0,b.jsx)(e.User,{className:"h-5 w-5 text-primary"}),"Profile Details"]}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Configure your personal operator credentials and display image."})]}),(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(l.Label,{htmlFor:"email",children:"Email Address"}),(0,b.jsx)(k.Input,{id:"email",value:a.email||"",disabled:!0,className:"bg-secondary/40 text-muted-foreground"}),(0,b.jsx)("p",{className:"text-[10px] text-muted-foreground",children:"Your primary identifier cannot be modified."})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(l.Label,{htmlFor:"name",children:"Full Display Name"}),(0,b.jsx)(k.Input,{id:"name",value:m,onChange:a=>p(a.target.value),placeholder:"e.g. Vikram Sharma"})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(l.Label,{htmlFor:"phone",children:"Contact Phone"}),(0,b.jsx)(k.Input,{id:"phone",value:q,onChange:a=>r(a.target.value),placeholder:"e.g. +91 99999 99999"})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(l.Label,{htmlFor:"avatar",children:"Avatar Image URL"}),(0,b.jsx)(k.Input,{id:"avatar",value:s,onChange:a=>t(a.target.value),placeholder:"e.g. /uploads/avatar.png"})]})]}),(0,b.jsxs)(j.Button,{onClick:()=>{m.trim()?x(async()=>{let a=await n({name:m,phone:q,image:s||void 0});a.success?d.toast.success("Profile details updated successfully"):d.toast.error(a.error||"Failed to update profile")}):d.toast.error("Name is required")},disabled:w,className:"btn-gold w-full gap-2",children:[w?(0,b.jsx)(h.Loader2,{className:"h-4 w-4 animate-spin"}):(0,b.jsx)(i.Save,{className:"h-4 w-4"}),"Save Profile Details"]})]}),(0,b.jsxs)("div",{className:"glass-card rounded-2xl border border-border p-6 md:p-8 space-y-6",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h2",{className:"text-lg font-semibold text-foreground flex items-center gap-2",children:[(0,b.jsx)(g.Key,{className:"h-5 w-5 text-primary"}),"Security & Credentials"]}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Update your administrative login credentials regularly."})]}),(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(l.Label,{htmlFor:"current-pwd",children:"Current Password"}),(0,b.jsx)(k.Input,{id:"current-pwd",type:"password",value:u.current,onChange:a=>v({...u,current:a.target.value}),placeholder:"••••••••••••"})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(l.Label,{htmlFor:"new-pwd",children:"New Password"}),(0,b.jsx)(k.Input,{id:"new-pwd",type:"password",value:u.new,onChange:a=>v({...u,new:a.target.value}),placeholder:"••••••••••••"}),(0,b.jsx)("p",{className:"text-[10px] text-muted-foreground",children:"Minimum 8 characters, with letters and numbers."})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(l.Label,{htmlFor:"confirm-pwd",children:"Confirm New Password"}),(0,b.jsx)(k.Input,{id:"confirm-pwd",type:"password",value:u.confirm,onChange:a=>v({...u,confirm:a.target.value}),placeholder:"••••••••••••"})]})]}),(0,b.jsxs)(j.Button,{onClick:()=>{u.current&&u.new?u.new.length<8?d.toast.error("New password must be at least 8 characters long"):u.new!==u.confirm?d.toast.error("New passwords do not match"):x(async()=>{let a=await o({current:u.current,new:u.new});a.success?(d.toast.success("Password changed successfully"),v({current:"",new:"",confirm:""})):d.toast.error(a.error||"Failed to change password")}):d.toast.error("All password fields are required")},disabled:w,className:"btn-gold w-full gap-2",children:[w?(0,b.jsx)(h.Loader2,{className:"h-4 w-4 animate-spin"}):(0,b.jsx)(f.Shield,{className:"h-4 w-4"}),"Update Login Credentials"]})]})]})}],79247)}];
2
2
 
3
3
  //# sourceMappingURL=_1-wcqf6._.js.map
@@ -1,4 +1,4 @@
1
1
  module.exports=[137936,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"registerServerReference",{enumerable:!0,get:function(){return d.registerServerReference}});let d=a.r(211857)},713095,(a,b,c)=>{"use strict";function d(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
2
- Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},353830,a=>{"use strict";var b=a.i(137936),c=a.i(118558),d=a.i(257807);async function e(a,b){try{if(!a)return{success:!1,error:"Page ID is required."};let e=await d.repositories.pages.findById(a);if(!e)return{success:!1,error:"Page not found."};let f=JSON.stringify(b);return await d.repositories.pages.update(a,{content:f}),(0,c.revalidatePath)("/","layout"),(0,c.revalidatePath)(`/${e.slug}`),{success:!0}}catch(a){return{success:!1,error:a.message||"Failed to save page layout."}}}async function f(a){try{if(!a)return{success:!1,error:"Page ID is required."};let b=await d.repositories.pages.findById(a);if(!b)return{success:!1,error:"Page not found."};if("home"===b.slug)return{success:!1,error:"System homepage cannot be deleted."};return await d.repositories.pages.delete(a),(0,c.revalidatePath)("/","layout"),(0,c.revalidatePath)(`/${b.slug}`),{success:!0,data:b}}catch(a){return{success:!1,error:a.message||"Failed to delete page."}}}async function g(a){try{if(!a)return{success:!1,error:"Page data is required for restore."};return await d.repositories.pages.create({id:a.id,title:a.title,slug:a.slug,content:a.content,excerpt:a.excerpt||"",template:a.template||"default",meta_title:a.meta_title||"",meta_description:a.meta_description||"",og_image:a.og_image||"",publish_status:a.publish_status||"draft",published_at:a.published_at||null,created_by:a.created_by||""}),(0,c.revalidatePath)("/","layout"),a.slug&&(0,c.revalidatePath)(`/${a.slug}`),{success:!0}}catch(a){return{success:!1,error:a.message||"Failed to restore page."}}}(0,a.i(713095).ensureServerEntryExports)([e,f,g]),(0,b.registerServerReference)(e,"60ba133804ee070ee632a05824a3a1eeac8deb2fe9",null),(0,b.registerServerReference)(f,"402a835b60f9bd12e789e64d035b5e883fa421fc63",null),(0,b.registerServerReference)(g,"404206a8118e555c252b5d36bae76db8a92fdb1dfa",null),a.s([],184672),a.i(184672),a.s(["402a835b60f9bd12e789e64d035b5e883fa421fc63",0,f,"404206a8118e555c252b5d36bae76db8a92fdb1dfa",0,g],353830)}];
2
+ Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"ensureServerEntryExports",{enumerable:!0,get:function(){return d}})},353830,a=>{"use strict";var b=a.i(137936),c=a.i(118558),d=a.i(257807);async function e(a,b){try{if(!a)return{success:!1,error:"Page ID is required."};let e=await d.repositories.pages.findById(a);if(!e)return{success:!1,error:"Page not found."};let f=JSON.stringify(b);return await d.repositories.pages.update(a,{content:f}),(0,c.revalidatePath)("/","layout"),(0,c.revalidatePath)(`/${e.slug}`),{success:!0}}catch(a){return{success:!1,error:a.message||"Failed to save page layout."}}}async function f(a){try{if(!a)return{success:!1,error:"Page ID is required."};let b=await d.repositories.pages.findById(a);if(!b)return{success:!1,error:"Page not found."};if("home"===b.slug)return{success:!1,error:"System homepage cannot be deleted."};return await d.repositories.pages.delete(a),(0,c.revalidatePath)("/","layout"),(0,c.revalidatePath)(`/${b.slug}`),{success:!0,data:b}}catch(a){return{success:!1,error:a.message||"Failed to delete page."}}}async function g(a){try{if(!a)return{success:!1,error:"Page data is required for restore."};return await d.repositories.pages.create({id:a.id,title:a.title,slug:a.slug,content:a.content,excerpt:a.excerpt||"",template:a.template||"default",meta_title:a.meta_title||"",meta_description:a.meta_description||"",og_image:a.og_image||"",publish_status:a.publish_status||"draft",published_at:a.published_at||null,created_by:a.created_by||""}),(0,c.revalidatePath)("/","layout"),a.slug&&(0,c.revalidatePath)(`/${a.slug}`),{success:!0}}catch(a){return{success:!1,error:a.message||"Failed to restore page."}}}(0,a.i(713095).ensureServerEntryExports)([e,f,g]),(0,b.registerServerReference)(e,"606c1b114215a2c0071a2a2636e4a846930f979676",null),(0,b.registerServerReference)(f,"40e50956a159cfbe0e9aba415579f05efc61bda66a",null),(0,b.registerServerReference)(g,"4006e6f11f76d02f219834540fcb997a0792370a6e",null),a.s([],184672),a.i(184672),a.s(["4006e6f11f76d02f219834540fcb997a0792370a6e",0,g,"40e50956a159cfbe0e9aba415579f05efc61bda66a",0,f],353830)}];
3
3
 
4
4
  //# sourceMappingURL=_10imd--._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[866718,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(368114);let e=c.forwardRef(({className:a,type:c,...e},f)=>(0,b.jsx)("input",{type:c,className:(0,d.cn)("flex h-10 w-full rounded-xl border border-border bg-card px-3 py-2 text-sm text-foreground ring-offset-background placeholder:text-muted-foreground/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:border-primary/50 disabled:cursor-not-allowed disabled:opacity-50 transition-colors",a),ref:f,...e}));e.displayName="Input",a.s(["Input",0,e])},699570,400187,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(811011),e=a.i(298621);let f=a=>"boolean"==typeof a?`${a}`:0===a?"0":a,g=e.clsx,h=(a,b)=>c=>{var d;if((null==b?void 0:b.variants)==null)return g(a,null==c?void 0:c.class,null==c?void 0:c.className);let{variants:e,defaultVariants:h}=b,i=Object.keys(e).map(a=>{let b=null==c?void 0:c[a],d=null==h?void 0:h[a];if(null===b)return null;let g=f(b)||f(d);return e[a][g]}),j=c&&Object.entries(c).reduce((a,b)=>{let[c,d]=b;return void 0===d||(a[c]=d),a},{});return g(a,i,null==b||null==(d=b.compoundVariants)?void 0:d.reduce((a,b)=>{let{class:c,className:d,...e}=b;return Object.entries(e).every(a=>{let[b,c]=a;return Array.isArray(c)?c.includes({...h,...j}[b]):({...h,...j})[b]===c})?[...a,c,d]:a},[]),null==c?void 0:c.class,null==c?void 0:c.className)};a.s(["cva",0,h],400187);var i=a.i(368114);let j=h("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 select-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 active:scale-[0.98]",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-border bg-transparent hover:bg-secondary/50 hover:text-foreground text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary/50 hover:text-foreground text-muted-foreground",link:"text-primary underline-offset-4 hover:underline",gold:"bg-gradient-to-r from-[hsl(36,82%,47%)] to-[hsl(42,88%,65%)] text-[hsl(240,20%,7%)] font-semibold hover:opacity-90 active:scale-[0.98] shadow-[0_4px_14px_0_hsl(36,82%,47%,0.4)]","gold-outline":"border border-[hsl(36,82%,47%,0.5)] text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)] hover:border-[hsl(36,82%,47%)]","gold-ghost":"text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)]"},size:{default:"h-10 px-5 py-2",xs:"h-7 px-3 text-xs rounded-lg",sm:"h-9 px-4 text-sm",lg:"h-12 px-8 text-base",xl:"h-14 px-10 text-lg",icon:"h-10 w-10","icon-sm":"h-9 w-9","icon-lg":"h-12 w-12"}},defaultVariants:{variant:"default",size:"default"}}),k=c.forwardRef(({className:a,variant:c,size:e,asChild:f=!1,...g},h)=>{let k=f?d.Slot:"button";return(0,b.jsx)(k,{className:(0,i.cn)(j({variant:c,size:e,className:a})),ref:h,...g})});k.displayName="Button",a.s(["Button",0,k],699570)},875160,702918,a=>{"use strict";let b=(0,a.i(164831).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["default",0,b],702918),a.s(["Loader2",0,b],875160)},405050,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(120611),g=a.r(1722),h=a.r(738783)},870430,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(30553),e=c.forwardRef((a,c)=>(0,b.jsx)(d.Primitive.label,{...a,ref:c,onMouseDown:b=>{b.target.closest("button, input, select, textarea")||(a.onMouseDown?.(b),!b.defaultPrevented&&b.detail>1&&b.preventDefault())}}));e.displayName="Label";var f=a.i(368114);let g=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(e,{ref:d,className:(0,f.cn)("text-sm font-medium text-foreground leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",a),...c}));g.displayName=e.displayName,a.s(["Label",0,g],870430)},683835,a=>{"use strict";let b=(0,a.i(164831).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);a.s(["default",0,b])},980180,a=>{"use strict";var b=a.i(683835);a.s(["Trash2",()=>b.default])},704307,a=>{"use strict";let b=(0,a.i(164831).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["default",0,b])},403512,a=>{"use strict";var b=a.i(704307);a.s(["Plus",()=>b.default])},759314,a=>{"use strict";let b=(0,a.i(164831).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);a.s(["default",0,b])},818783,a=>{"use strict";var b=a.i(759314);a.s(["ArrowRight",()=>b.default])},935812,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(823292),e=a.i(346271),f=a.i(262036),g=a.i(31247),h=a.i(403512),i=a.i(980180),j=a.i(875160),k=a.i(818783),l=a.i(699570),m=a.i(866718),n=a.i(870430),o=a.i(771511),p=a.i(405050);let q=(0,p.createServerReference)("006311e6febb62b47dc95da21079abf8ab8bbe50e9",p.callServer,void 0,p.findSourceMapURL,"getRedirects"),r=(0,p.createServerReference)("40be6e2dd0bc4c20bfa751078f962befc55102a996",p.callServer,void 0,p.findSourceMapURL,"createRedirect"),s=(0,p.createServerReference)("4065d507ed2911e8cd62951693455462bf2796f2e5",p.callServer,void 0,p.findSourceMapURL,"deleteRedirect");a.s(["default",0,function(){let[a,p]=(0,c.useState)([]),[t,u]=(0,c.useState)(!0),[v,w]=(0,c.useState)(!1),[x,y]=(0,c.useState)(null),[z,A]=(0,c.useState)({from_path:"",to_path:"",type:301,is_active:!0}),[B,C]=(0,c.useTransition)(),D=async()=>{try{let a=await q();a.success&&a.data&&p(a.data)}finally{u(!1)}};return(0,c.useEffect)(()=>{D()},[]),(0,b.jsxs)("div",{className:"p-6 lg:p-8 space-y-6 max-w-5xl",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h1",{className:"text-2xl font-bold text-foreground flex items-center gap-2",children:[(0,b.jsx)(g.Tag,{className:"h-6 w-6 text-primary"}),"URL Redirects"]}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Configure 301 (Permanent) and 302 (Temporary) URL forwarding rules."})]}),(0,b.jsxs)(l.Button,{onClick:()=>w(!0),className:"btn-gold gap-2",children:[(0,b.jsx)(h.Plus,{className:"h-4 w-4"}),"Add Redirect"]})]}),(0,b.jsx)(f.AnimatePresence,{children:v&&(0,b.jsx)(e.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"overflow-hidden",children:(0,b.jsxs)("div",{className:"p-6 rounded-2xl border border-border bg-card/50 space-y-4",children:[(0,b.jsx)("h3",{className:"font-semibold text-foreground",children:"Add Redirect Rule"}),(0,b.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(n.Label,{children:"Source Path (From)"}),(0,b.jsx)(m.Input,{value:z.from_path,onChange:a=>A(b=>({...b,from_path:a.target.value})),placeholder:"e.g. /old-about-page"})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(n.Label,{children:"Target Path / URL (To)"}),(0,b.jsx)(m.Input,{value:z.to_path,onChange:a=>A(b=>({...b,to_path:a.target.value})),placeholder:"e.g. /about"})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(n.Label,{children:"Redirect Type"}),(0,b.jsxs)("select",{value:z.type,onChange:a=>A(b=>({...b,type:Number(a.target.value)})),className:"w-full h-10 px-3 py-2 bg-secondary/80 border border-border rounded-xl text-foreground text-sm focus:outline-none focus:ring-1 focus:ring-primary/40",children:[(0,b.jsx)("option",{value:301,children:"301 (Permanent)"}),(0,b.jsx)("option",{value:302,children:"302 (Temporary)"})]})]})]}),(0,b.jsxs)("div",{className:"flex gap-3",children:[(0,b.jsx)(l.Button,{onClick:()=>{z.from_path.trim()&&z.to_path.trim()?C(async()=>{let a=await r({from_path:z.from_path,to_path:z.to_path,type:z.type,is_active:z.is_active});a.success?(d.toast.success("Redirect rule created successfully"),w(!1),A({from_path:"",to_path:"",type:301,is_active:!0}),D()):d.toast.error(a.error??"Failed to create redirect")}):d.toast.error("Both paths are required")},disabled:B,className:"btn-gold",children:B?(0,b.jsx)(j.Loader2,{className:"h-4 w-4 animate-spin"}):"Save Rule"}),(0,b.jsx)(l.Button,{variant:"outline",onClick:()=>w(!1),children:"Cancel"})]})]})})}),t?(0,b.jsx)("div",{className:"h-40 shimmer rounded-2xl"}):(0,b.jsx)("div",{className:"rounded-2xl border border-border overflow-hidden bg-card/20",children:(0,b.jsxs)("table",{className:"w-full",children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{className:"border-b border-border bg-secondary/40",children:[(0,b.jsx)("th",{className:"text-left px-5 py-3.5 text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"From"}),(0,b.jsx)("th",{className:"px-3 py-3.5 w-10"}),(0,b.jsx)("th",{className:"text-left px-5 py-3.5 text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"To"}),(0,b.jsx)("th",{className:"text-left px-5 py-3.5 text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Type"}),(0,b.jsx)("th",{className:"px-5 py-3.5 w-16"})]})}),(0,b.jsx)("tbody",{children:0===a.length?(0,b.jsx)("tr",{children:(0,b.jsx)("td",{colSpan:5,className:"px-5 py-12 text-center text-sm text-muted-foreground",children:"No redirect rules defined."})}):a.map(a=>(0,b.jsxs)("tr",{className:"border-b border-border/50 hover:bg-secondary/20 transition-colors",children:[(0,b.jsx)("td",{className:"px-5 py-3.5",children:(0,b.jsx)("code",{className:"text-xs font-mono text-muted-foreground",children:a.from_path})}),(0,b.jsx)("td",{className:"px-3 py-3.5 text-muted-foreground/30",children:(0,b.jsx)(k.ArrowRight,{className:"h-3.5 w-3.5"})}),(0,b.jsx)("td",{className:"px-5 py-3.5",children:(0,b.jsx)("code",{className:"text-xs font-mono text-foreground",children:a.to_path})}),(0,b.jsx)("td",{className:"px-5 py-3.5",children:(0,b.jsx)("span",{className:`px-2.5 py-0.5 rounded-full text-[10px] font-semibold border ${301===a.type?"bg-emerald-500/15 border-emerald-500/25 text-emerald-400":"bg-amber-500/15 border-amber-500/25 text-amber-400"}`,children:a.type})}),(0,b.jsx)("td",{className:"px-5 py-3.5",children:(0,b.jsx)("button",{onClick:()=>y(a),className:"h-7 w-7 rounded-lg hover:bg-destructive/15 flex items-center justify-center text-muted-foreground hover:text-destructive transition-colors",children:(0,b.jsx)(i.Trash2,{className:"h-3.5 w-3.5"})})})]},a.id))})]})}),(0,b.jsx)(o.DeleteDialog,{open:!!x,entityName:`redirect from ${x?.from_path}`,entityType:"Redirect Rule",onConfirm:()=>{x&&C(async()=>{let a=await s(x.id);a.success?(d.toast.success("Redirect rule deleted"),y(null),D()):d.toast.error(a.error??"Failed to delete")})},onCancel:()=>y(null),isLoading:B})]})}],935812)}];
1
+ module.exports=[866718,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(368114);let e=c.forwardRef(({className:a,type:c,...e},f)=>(0,b.jsx)("input",{type:c,className:(0,d.cn)("flex h-10 w-full rounded-xl border border-border bg-card px-3 py-2 text-sm text-foreground ring-offset-background placeholder:text-muted-foreground/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:border-primary/50 disabled:cursor-not-allowed disabled:opacity-50 transition-colors",a),ref:f,...e}));e.displayName="Input",a.s(["Input",0,e])},699570,400187,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(811011),e=a.i(298621);let f=a=>"boolean"==typeof a?`${a}`:0===a?"0":a,g=e.clsx,h=(a,b)=>c=>{var d;if((null==b?void 0:b.variants)==null)return g(a,null==c?void 0:c.class,null==c?void 0:c.className);let{variants:e,defaultVariants:h}=b,i=Object.keys(e).map(a=>{let b=null==c?void 0:c[a],d=null==h?void 0:h[a];if(null===b)return null;let g=f(b)||f(d);return e[a][g]}),j=c&&Object.entries(c).reduce((a,b)=>{let[c,d]=b;return void 0===d||(a[c]=d),a},{});return g(a,i,null==b||null==(d=b.compoundVariants)?void 0:d.reduce((a,b)=>{let{class:c,className:d,...e}=b;return Object.entries(e).every(a=>{let[b,c]=a;return Array.isArray(c)?c.includes({...h,...j}[b]):({...h,...j})[b]===c})?[...a,c,d]:a},[]),null==c?void 0:c.class,null==c?void 0:c.className)};a.s(["cva",0,h],400187);var i=a.i(368114);let j=h("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-xl text-sm font-medium transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 select-none",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 active:scale-[0.98]",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-border bg-transparent hover:bg-secondary/50 hover:text-foreground text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary/50 hover:text-foreground text-muted-foreground",link:"text-primary underline-offset-4 hover:underline",gold:"bg-gradient-to-r from-[hsl(36,82%,47%)] to-[hsl(42,88%,65%)] text-[hsl(240,20%,7%)] font-semibold hover:opacity-90 active:scale-[0.98] shadow-[0_4px_14px_0_hsl(36,82%,47%,0.4)]","gold-outline":"border border-[hsl(36,82%,47%,0.5)] text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)] hover:border-[hsl(36,82%,47%)]","gold-ghost":"text-[hsl(36,82%,47%)] bg-transparent hover:bg-[hsl(36,82%,47%,0.1)]"},size:{default:"h-10 px-5 py-2",xs:"h-7 px-3 text-xs rounded-lg",sm:"h-9 px-4 text-sm",lg:"h-12 px-8 text-base",xl:"h-14 px-10 text-lg",icon:"h-10 w-10","icon-sm":"h-9 w-9","icon-lg":"h-12 w-12"}},defaultVariants:{variant:"default",size:"default"}}),k=c.forwardRef(({className:a,variant:c,size:e,asChild:f=!1,...g},h)=>{let k=f?d.Slot:"button";return(0,b.jsx)(k,{className:(0,i.cn)(j({variant:c,size:e,className:a})),ref:h,...g})});k.displayName="Button",a.s(["Button",0,k],699570)},875160,702918,a=>{"use strict";let b=(0,a.i(164831).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["default",0,b],702918),a.s(["Loader2",0,b],875160)},405050,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(120611),g=a.r(1722),h=a.r(738783)},870430,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(30553),e=c.forwardRef((a,c)=>(0,b.jsx)(d.Primitive.label,{...a,ref:c,onMouseDown:b=>{b.target.closest("button, input, select, textarea")||(a.onMouseDown?.(b),!b.defaultPrevented&&b.detail>1&&b.preventDefault())}}));e.displayName="Label";var f=a.i(368114);let g=c.forwardRef(({className:a,...c},d)=>(0,b.jsx)(e,{ref:d,className:(0,f.cn)("text-sm font-medium text-foreground leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",a),...c}));g.displayName=e.displayName,a.s(["Label",0,g],870430)},683835,a=>{"use strict";let b=(0,a.i(164831).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);a.s(["default",0,b])},980180,a=>{"use strict";var b=a.i(683835);a.s(["Trash2",()=>b.default])},704307,a=>{"use strict";let b=(0,a.i(164831).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["default",0,b])},403512,a=>{"use strict";var b=a.i(704307);a.s(["Plus",()=>b.default])},759314,a=>{"use strict";let b=(0,a.i(164831).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);a.s(["default",0,b])},818783,a=>{"use strict";var b=a.i(759314);a.s(["ArrowRight",()=>b.default])},935812,a=>{"use strict";var b=a.i(187924),c=a.i(572131),d=a.i(823292),e=a.i(346271),f=a.i(262036),g=a.i(31247),h=a.i(403512),i=a.i(980180),j=a.i(875160),k=a.i(818783),l=a.i(699570),m=a.i(866718),n=a.i(870430),o=a.i(771511),p=a.i(405050);let q=(0,p.createServerReference)("00a017bd7945294000dda28861283775c157d128a6",p.callServer,void 0,p.findSourceMapURL,"getRedirects"),r=(0,p.createServerReference)("407f54003b848bf60df0ef0c468d815e6361ee587f",p.callServer,void 0,p.findSourceMapURL,"createRedirect"),s=(0,p.createServerReference)("40c57563aac66a43cccd99e6065023ab4f2bc6d3e1",p.callServer,void 0,p.findSourceMapURL,"deleteRedirect");a.s(["default",0,function(){let[a,p]=(0,c.useState)([]),[t,u]=(0,c.useState)(!0),[v,w]=(0,c.useState)(!1),[x,y]=(0,c.useState)(null),[z,A]=(0,c.useState)({from_path:"",to_path:"",type:301,is_active:!0}),[B,C]=(0,c.useTransition)(),D=async()=>{try{let a=await q();a.success&&a.data&&p(a.data)}finally{u(!1)}};return(0,c.useEffect)(()=>{D()},[]),(0,b.jsxs)("div",{className:"p-6 lg:p-8 space-y-6 max-w-5xl",children:[(0,b.jsxs)("div",{className:"flex items-center justify-between",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("h1",{className:"text-2xl font-bold text-foreground flex items-center gap-2",children:[(0,b.jsx)(g.Tag,{className:"h-6 w-6 text-primary"}),"URL Redirects"]}),(0,b.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Configure 301 (Permanent) and 302 (Temporary) URL forwarding rules."})]}),(0,b.jsxs)(l.Button,{onClick:()=>w(!0),className:"btn-gold gap-2",children:[(0,b.jsx)(h.Plus,{className:"h-4 w-4"}),"Add Redirect"]})]}),(0,b.jsx)(f.AnimatePresence,{children:v&&(0,b.jsx)(e.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"overflow-hidden",children:(0,b.jsxs)("div",{className:"p-6 rounded-2xl border border-border bg-card/50 space-y-4",children:[(0,b.jsx)("h3",{className:"font-semibold text-foreground",children:"Add Redirect Rule"}),(0,b.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(n.Label,{children:"Source Path (From)"}),(0,b.jsx)(m.Input,{value:z.from_path,onChange:a=>A(b=>({...b,from_path:a.target.value})),placeholder:"e.g. /old-about-page"})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(n.Label,{children:"Target Path / URL (To)"}),(0,b.jsx)(m.Input,{value:z.to_path,onChange:a=>A(b=>({...b,to_path:a.target.value})),placeholder:"e.g. /about"})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(n.Label,{children:"Redirect Type"}),(0,b.jsxs)("select",{value:z.type,onChange:a=>A(b=>({...b,type:Number(a.target.value)})),className:"w-full h-10 px-3 py-2 bg-secondary/80 border border-border rounded-xl text-foreground text-sm focus:outline-none focus:ring-1 focus:ring-primary/40",children:[(0,b.jsx)("option",{value:301,children:"301 (Permanent)"}),(0,b.jsx)("option",{value:302,children:"302 (Temporary)"})]})]})]}),(0,b.jsxs)("div",{className:"flex gap-3",children:[(0,b.jsx)(l.Button,{onClick:()=>{z.from_path.trim()&&z.to_path.trim()?C(async()=>{let a=await r({from_path:z.from_path,to_path:z.to_path,type:z.type,is_active:z.is_active});a.success?(d.toast.success("Redirect rule created successfully"),w(!1),A({from_path:"",to_path:"",type:301,is_active:!0}),D()):d.toast.error(a.error??"Failed to create redirect")}):d.toast.error("Both paths are required")},disabled:B,className:"btn-gold",children:B?(0,b.jsx)(j.Loader2,{className:"h-4 w-4 animate-spin"}):"Save Rule"}),(0,b.jsx)(l.Button,{variant:"outline",onClick:()=>w(!1),children:"Cancel"})]})]})})}),t?(0,b.jsx)("div",{className:"h-40 shimmer rounded-2xl"}):(0,b.jsx)("div",{className:"rounded-2xl border border-border overflow-hidden bg-card/20",children:(0,b.jsxs)("table",{className:"w-full",children:[(0,b.jsx)("thead",{children:(0,b.jsxs)("tr",{className:"border-b border-border bg-secondary/40",children:[(0,b.jsx)("th",{className:"text-left px-5 py-3.5 text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"From"}),(0,b.jsx)("th",{className:"px-3 py-3.5 w-10"}),(0,b.jsx)("th",{className:"text-left px-5 py-3.5 text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"To"}),(0,b.jsx)("th",{className:"text-left px-5 py-3.5 text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:"Type"}),(0,b.jsx)("th",{className:"px-5 py-3.5 w-16"})]})}),(0,b.jsx)("tbody",{children:0===a.length?(0,b.jsx)("tr",{children:(0,b.jsx)("td",{colSpan:5,className:"px-5 py-12 text-center text-sm text-muted-foreground",children:"No redirect rules defined."})}):a.map(a=>(0,b.jsxs)("tr",{className:"border-b border-border/50 hover:bg-secondary/20 transition-colors",children:[(0,b.jsx)("td",{className:"px-5 py-3.5",children:(0,b.jsx)("code",{className:"text-xs font-mono text-muted-foreground",children:a.from_path})}),(0,b.jsx)("td",{className:"px-3 py-3.5 text-muted-foreground/30",children:(0,b.jsx)(k.ArrowRight,{className:"h-3.5 w-3.5"})}),(0,b.jsx)("td",{className:"px-5 py-3.5",children:(0,b.jsx)("code",{className:"text-xs font-mono text-foreground",children:a.to_path})}),(0,b.jsx)("td",{className:"px-5 py-3.5",children:(0,b.jsx)("span",{className:`px-2.5 py-0.5 rounded-full text-[10px] font-semibold border ${301===a.type?"bg-emerald-500/15 border-emerald-500/25 text-emerald-400":"bg-amber-500/15 border-amber-500/25 text-amber-400"}`,children:a.type})}),(0,b.jsx)("td",{className:"px-5 py-3.5",children:(0,b.jsx)("button",{onClick:()=>y(a),className:"h-7 w-7 rounded-lg hover:bg-destructive/15 flex items-center justify-center text-muted-foreground hover:text-destructive transition-colors",children:(0,b.jsx)(i.Trash2,{className:"h-3.5 w-3.5"})})})]},a.id))})]})}),(0,b.jsx)(o.DeleteDialog,{open:!!x,entityName:`redirect from ${x?.from_path}`,entityType:"Redirect Rule",onConfirm:()=>{x&&C(async()=>{let a=await s(x.id);a.success?(d.toast.success("Redirect rule deleted"),y(null),D()):d.toast.error(a.error??"Failed to delete")})},onCancel:()=>y(null),isLoading:B})]})}],935812)}];
2
2
 
3
3
  //# sourceMappingURL=_122ck8v._.js.map