@myrjfa/state 2.3.1 → 2.3.3

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 (179) hide show
  1. package/dist/lib/actions/actions.d.ts +6 -6
  2. package/dist/lib/actions/auth.d.ts +23 -19
  3. package/dist/lib/actions/auth.d.ts.map +1 -1
  4. package/dist/lib/actions/auth.js +24 -5
  5. package/dist/lib/actions/chat.d.ts +20 -14
  6. package/dist/lib/actions/chat.d.ts.map +1 -1
  7. package/dist/lib/actions/chat.js +2 -2
  8. package/dist/lib/actions/fetcher.d.ts.map +1 -1
  9. package/dist/lib/actions/fetcher.js +15 -8
  10. package/dist/lib/actions.d.ts +12 -12
  11. package/dist/lib/actions.d.ts.map +1 -1
  12. package/dist/lib/actions.js +3 -1
  13. package/dist/lib/authSessionManager.d.ts.map +1 -1
  14. package/dist/lib/authSessionManager.js +77 -13
  15. package/dist/lib/authSessionPolicy.d.ts +34 -0
  16. package/dist/lib/authSessionPolicy.d.ts.map +1 -1
  17. package/dist/lib/authSessionPolicy.js +52 -0
  18. package/dist/lib/context/ChatContext.d.ts.map +1 -1
  19. package/dist/lib/context/ChatContext.js +12 -6
  20. package/dist/lib/models/authorization.d.ts +4 -3
  21. package/dist/lib/models/authorization.d.ts.map +1 -1
  22. package/dist/lib/models/authorization.js +10 -4
  23. package/dist/lib/models/blog.d.ts +4 -4
  24. package/dist/lib/models/chat.d.ts +10 -2
  25. package/dist/lib/models/chat.d.ts.map +1 -1
  26. package/dist/lib/models/chat.js +8 -0
  27. package/dist/lib/models/discount.d.ts +52 -52
  28. package/dist/lib/models/notifications.d.ts +2 -2
  29. package/dist/lib/models/opportunities/freelance.d.ts +34 -34
  30. package/dist/lib/models/opportunities/internship.d.ts +34 -34
  31. package/dist/lib/models/opportunities/job.d.ts +34 -34
  32. package/dist/lib/models/opportunities/opportunity.d.ts +34 -34
  33. package/dist/lib/models/opportunities/volunteerJob.d.ts +34 -34
  34. package/dist/lib/models/package.d.ts +16 -16
  35. package/dist/lib/models/portfolio.d.ts +2 -2
  36. package/dist/lib/models/pricing.d.ts +12 -12
  37. package/dist/lib/models/review.d.ts +2 -2
  38. package/dist/lib/models/stay.d.ts +18 -18
  39. package/dist/lib/models/travelPackage.d.ts +36 -36
  40. package/dist/lib/models/user.d.ts +12 -12
  41. package/dist/lib/userAtom.d.ts +126 -25
  42. package/dist/lib/userAtom.d.ts.map +1 -1
  43. package/dist/lib/userAtom.js +79 -45
  44. package/package.json +1 -1
  45. package/dist/lib/actions/adminDashboard.d.ts +0 -4
  46. package/dist/lib/actions/adminDashboard.d.ts.map +0 -1
  47. package/dist/lib/actions/adminDashboard.js +0 -29
  48. package/dist/lib/actions/adventure.d.ts +0 -104
  49. package/dist/lib/actions/adventure.d.ts.map +0 -1
  50. package/dist/lib/actions/adventure.js +0 -203
  51. package/dist/lib/actions/application.d.ts +0 -35
  52. package/dist/lib/actions/application.d.ts.map +0 -1
  53. package/dist/lib/actions/application.js +0 -573
  54. package/dist/lib/actions/blog.d.ts +0 -61
  55. package/dist/lib/actions/blog.d.ts.map +0 -1
  56. package/dist/lib/actions/blog.js +0 -762
  57. package/dist/lib/actions/brand.d.ts +0 -83
  58. package/dist/lib/actions/brand.d.ts.map +0 -1
  59. package/dist/lib/actions/brand.js +0 -28
  60. package/dist/lib/actions/companion.d.ts +0 -174
  61. package/dist/lib/actions/companion.d.ts.map +0 -1
  62. package/dist/lib/actions/companion.js +0 -276
  63. package/dist/lib/actions/event.d.ts +0 -178
  64. package/dist/lib/actions/event.d.ts.map +0 -1
  65. package/dist/lib/actions/event.js +0 -214
  66. package/dist/lib/actions/guide.d.ts +0 -55
  67. package/dist/lib/actions/guide.d.ts.map +0 -1
  68. package/dist/lib/actions/guide.js +0 -128
  69. package/dist/lib/actions/hostDashboard.d.ts +0 -122
  70. package/dist/lib/actions/hostDashboard.d.ts.map +0 -1
  71. package/dist/lib/actions/hostDashboard.js +0 -329
  72. package/dist/lib/actions/location.d.ts +0 -141
  73. package/dist/lib/actions/location.d.ts.map +0 -1
  74. package/dist/lib/actions/location.js +0 -113
  75. package/dist/lib/actions/notifications.d.ts +0 -91
  76. package/dist/lib/actions/notifications.d.ts.map +0 -1
  77. package/dist/lib/actions/notifications.js +0 -83
  78. package/dist/lib/actions/opportunity.d.ts +0 -44
  79. package/dist/lib/actions/opportunity.d.ts.map +0 -1
  80. package/dist/lib/actions/opportunity.js +0 -318
  81. package/dist/lib/actions/package.d.ts +0 -85
  82. package/dist/lib/actions/package.d.ts.map +0 -1
  83. package/dist/lib/actions/package.js +0 -167
  84. package/dist/lib/actions/place.d.ts +0 -191
  85. package/dist/lib/actions/place.d.ts.map +0 -1
  86. package/dist/lib/actions/place.js +0 -57
  87. package/dist/lib/actions/portfolio.d.ts +0 -65
  88. package/dist/lib/actions/portfolio.d.ts.map +0 -1
  89. package/dist/lib/actions/portfolio.js +0 -62
  90. package/dist/lib/actions/property.d.ts +0 -17
  91. package/dist/lib/actions/property.d.ts.map +0 -1
  92. package/dist/lib/actions/property.js +0 -16
  93. package/dist/lib/actions/rental.d.ts +0 -87
  94. package/dist/lib/actions/rental.d.ts.map +0 -1
  95. package/dist/lib/actions/rental.js +0 -205
  96. package/dist/lib/actions/review.d.ts +0 -8
  97. package/dist/lib/actions/review.d.ts.map +0 -1
  98. package/dist/lib/actions/review.js +0 -102
  99. package/dist/lib/actions/room.d.ts +0 -39
  100. package/dist/lib/actions/room.d.ts.map +0 -1
  101. package/dist/lib/actions/room.js +0 -74
  102. package/dist/lib/actions/stay.d.ts +0 -97
  103. package/dist/lib/actions/stay.d.ts.map +0 -1
  104. package/dist/lib/actions/stay.js +0 -138
  105. package/dist/lib/actions/travelPackage.d.ts +0 -104
  106. package/dist/lib/actions/travelPackage.d.ts.map +0 -1
  107. package/dist/lib/actions/travelPackage.js +0 -487
  108. package/dist/lib/data/adventureDummyData.d.ts +0 -3
  109. package/dist/lib/data/adventureDummyData.d.ts.map +0 -1
  110. package/dist/lib/data/adventureDummyData.js +0 -138
  111. package/dist/lib/data/adventureFormPage.d.ts +0 -28
  112. package/dist/lib/data/adventureFormPage.d.ts.map +0 -1
  113. package/dist/lib/data/adventureFormPage.js +0 -58
  114. package/dist/lib/data/companionDummyData.d.ts +0 -99
  115. package/dist/lib/data/companionDummyData.d.ts.map +0 -1
  116. package/dist/lib/data/companionDummyData.js +0 -203
  117. package/dist/lib/data/destinations.d.ts +0 -14
  118. package/dist/lib/data/destinations.d.ts.map +0 -1
  119. package/dist/lib/data/destinations.js +0 -203
  120. package/dist/lib/data/eventFormPage.d.ts +0 -38
  121. package/dist/lib/data/eventFormPage.d.ts.map +0 -1
  122. package/dist/lib/data/eventFormPage.js +0 -56
  123. package/dist/lib/data/eventsDummyData.d.ts +0 -54
  124. package/dist/lib/data/eventsDummyData.d.ts.map +0 -1
  125. package/dist/lib/data/eventsDummyData.js +0 -586
  126. package/dist/lib/data/guideDummyData.d.ts +0 -3
  127. package/dist/lib/data/guideDummyData.d.ts.map +0 -1
  128. package/dist/lib/data/guideDummyData.js +0 -66
  129. package/dist/lib/data/opportunityFormData.d.ts +0 -13
  130. package/dist/lib/data/opportunityFormData.d.ts.map +0 -1
  131. package/dist/lib/data/opportunityFormData.js +0 -62
  132. package/dist/lib/data/opportunityFormPage.d.ts +0 -12
  133. package/dist/lib/data/opportunityFormPage.d.ts.map +0 -1
  134. package/dist/lib/data/opportunityFormPage.js +0 -33
  135. package/dist/lib/data/packageDummyData.d.ts +0 -3
  136. package/dist/lib/data/packageDummyData.d.ts.map +0 -1
  137. package/dist/lib/data/packageDummyData.js +0 -56
  138. package/dist/lib/data/rentalDummyData.d.ts +0 -3
  139. package/dist/lib/data/rentalDummyData.d.ts.map +0 -1
  140. package/dist/lib/data/rentalDummyData.js +0 -382
  141. package/dist/lib/data/rentalFormPage.d.ts +0 -11
  142. package/dist/lib/data/rentalFormPage.d.ts.map +0 -1
  143. package/dist/lib/data/rentalFormPage.js +0 -86
  144. package/dist/lib/data/staysDummyData.d.ts +0 -72
  145. package/dist/lib/data/staysDummyData.d.ts.map +0 -1
  146. package/dist/lib/data/staysDummyData.js +0 -694
  147. package/dist/lib/data/storeDummyData.d.ts +0 -33
  148. package/dist/lib/data/storeDummyData.d.ts.map +0 -1
  149. package/dist/lib/data/storeDummyData.js +0 -336
  150. package/dist/lib/data/travelPackageFormData.d.ts +0 -19
  151. package/dist/lib/data/travelPackageFormData.d.ts.map +0 -1
  152. package/dist/lib/data/travelPackageFormData.js +0 -51
  153. package/dist/lib/data/travelPackageFormPage.d.ts +0 -22
  154. package/dist/lib/data/travelPackageFormPage.d.ts.map +0 -1
  155. package/dist/lib/data/travelPackageFormPage.js +0 -40
  156. package/dist/lib/data/vehicleData.d.ts +0 -2
  157. package/dist/lib/data/vehicleData.d.ts.map +0 -1
  158. package/dist/lib/data/vehicleData.js +0 -187
  159. package/dist/lib/data/vehicleModels.d.ts +0 -2
  160. package/dist/lib/data/vehicleModels.d.ts.map +0 -1
  161. package/dist/lib/data/vehicleModels.js +0 -128
  162. package/dist/lib/hooks/usePersistentDraftState.d.ts +0 -20
  163. package/dist/lib/hooks/usePersistentDraftState.d.ts.map +0 -1
  164. package/dist/lib/hooks/usePersistentDraftState.js +0 -47
  165. package/dist/lib/models/forms.d.ts +0 -384
  166. package/dist/lib/models/forms.d.ts.map +0 -1
  167. package/dist/lib/models/forms.js +0 -121
  168. package/dist/lib/pricingActions.d.ts +0 -13
  169. package/dist/lib/pricingActions.d.ts.map +0 -1
  170. package/dist/lib/pricingActions.js +0 -16
  171. package/dist/lib/utils/entitySubmission.d.ts +0 -21
  172. package/dist/lib/utils/entitySubmission.d.ts.map +0 -1
  173. package/dist/lib/utils/entitySubmission.js +0 -10
  174. package/dist/lib/utils/imageUpload.d.ts +0 -4
  175. package/dist/lib/utils/imageUpload.d.ts.map +0 -1
  176. package/dist/lib/utils/imageUpload.js +0 -36
  177. package/dist/lib/utils/tileConverters.d.ts +0 -8
  178. package/dist/lib/utils/tileConverters.d.ts.map +0 -1
  179. package/dist/lib/utils/tileConverters.js +0 -59
@@ -1,58 +0,0 @@
1
- import { createSinglePricing } from "../models/pricing";
2
- export function getDefaultAdventureFormState() {
3
- return {
4
- hostId: "",
5
- title: "",
6
- description: "",
7
- activityType: "trekking",
8
- difficulty: "Moderate",
9
- duration: "3",
10
- city: "",
11
- state: "",
12
- address: "",
13
- meetingPoint: "",
14
- pricing: createSinglePricing({
15
- currency: "INR",
16
- finalBasePrice: 1500,
17
- basePrice: 1500,
18
- description: "Standard admission",
19
- }),
20
- maxGroupSize: "10",
21
- minAge: "12",
22
- bestSeason: "Year round",
23
- safetyInfo: "",
24
- highlightsRaw: "",
25
- includedRaw: "",
26
- excludedRaw: "",
27
- gearRaw: "",
28
- operatingHoursStart: "09:00",
29
- operatingHoursEnd: "18:00",
30
- status: "open",
31
- };
32
- }
33
- export function hydrateAdventureForm(adventure) {
34
- return {
35
- hostId: typeof adventure.hostId === "string" ? adventure.hostId : adventure.hostId?.username || "",
36
- title: adventure.title || "",
37
- description: adventure.description || "",
38
- activityType: adventure.activityType || "trekking",
39
- difficulty: adventure.difficulty || "Moderate",
40
- duration: String(adventure.duration || 3),
41
- city: adventure.city || "",
42
- state: adventure.state || "",
43
- address: adventure.address || "",
44
- meetingPoint: adventure.meetingPoint || "",
45
- pricing: createSinglePricing(adventure?.pricing?.pricingStrategies?.[0] ?? { currency: "INR", finalBasePrice: 0 }),
46
- maxGroupSize: String(adventure.maxGroupSize || 10),
47
- minAge: String(adventure.minAge || 12),
48
- bestSeason: adventure.bestSeason || "Year round",
49
- safetyInfo: adventure.safetyInfo || "",
50
- highlightsRaw: (adventure.highlights || []).join("\n"),
51
- includedRaw: (adventure.included || []).join("\n"),
52
- excludedRaw: (adventure.excluded || []).join("\n"),
53
- gearRaw: (adventure.gear || []).join("\n"),
54
- operatingHoursStart: adventure.operatingHours?.start || "09:00",
55
- operatingHoursEnd: adventure.operatingHours?.end || "18:00",
56
- status: adventure.status || "open",
57
- };
58
- }
@@ -1,99 +0,0 @@
1
- export declare const dummyTravelPlans: {
2
- _id: string;
3
- destination: {
4
- city: string;
5
- state: string;
6
- country: string;
7
- };
8
- startDate: string;
9
- endDate: string;
10
- budgetRange: {
11
- min: number;
12
- max: number;
13
- };
14
- travelStyle: string;
15
- interests: string[];
16
- description: string;
17
- maxTravelers: number;
18
- participants: {
19
- _id: string;
20
- profilePic: string;
21
- }[];
22
- images: string[];
23
- compatibilityScore: number;
24
- compatibilityReasons: string[];
25
- createdBy: {
26
- _id: string;
27
- firstName: string;
28
- username: string;
29
- profilePic: string;
30
- verifiedPhoneNumber: boolean;
31
- };
32
- status: string;
33
- likes: string[];
34
- myJoinStatus: string;
35
- isMine: boolean;
36
- }[];
37
- export declare const dummyTravelers: {
38
- userId: string;
39
- user: {
40
- firstName: string;
41
- lastName: string;
42
- username: string;
43
- profilePic: string;
44
- };
45
- travelStyle: string;
46
- bio: string;
47
- interests: string[];
48
- destinations: string[];
49
- languages: string[];
50
- matchScore: number;
51
- matchReasons: string[];
52
- }[];
53
- export declare const dummyMyPlans: {
54
- _id: string;
55
- destination: {
56
- city: string;
57
- state: string;
58
- country: string;
59
- };
60
- startDate: string;
61
- endDate: string;
62
- budgetRange: {
63
- min: number;
64
- max: number;
65
- };
66
- travelStyle: string;
67
- interests: string[];
68
- description: string;
69
- maxTravelers: number;
70
- participants: {
71
- _id: string;
72
- profilePic: string;
73
- }[];
74
- images: string[];
75
- compatibilityScore: number;
76
- compatibilityReasons: never[];
77
- createdBy: {
78
- _id: string;
79
- firstName: string;
80
- username: string;
81
- profilePic: string;
82
- verifiedPhoneNumber: boolean;
83
- };
84
- status: string;
85
- likes: string[];
86
- myJoinStatus: string;
87
- isMine: boolean;
88
- }[];
89
- export declare const dummyJoinRequests: {
90
- _id: string;
91
- userId: {
92
- firstName: string;
93
- lastName: string;
94
- profilePic: string;
95
- };
96
- message: string;
97
- status: string;
98
- }[];
99
- //# sourceMappingURL=companionDummyData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"companionDummyData.d.ts","sourceRoot":"","sources":["../../../src/lib/data/companionDummyData.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqG5B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;GAiD1B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BxB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;GAsB7B,CAAC"}
@@ -1,203 +0,0 @@
1
- export const dummyTravelPlans = [
2
- {
3
- _id: "plan-1",
4
- destination: { city: "Bali", state: "Bali", country: "Indonesia" },
5
- startDate: new Date(Date.now() + 15 * 24 * 60 * 60 * 1000).toISOString(),
6
- endDate: new Date(Date.now() + 25 * 24 * 60 * 60 * 1000).toISOString(),
7
- budgetRange: { min: 40000, max: 80000 },
8
- travelStyle: "flashpacker",
9
- interests: ["surfing", "yoga", "food", "culture"],
10
- description: "Planning to explore the beaches, temples, and rice terraces of Bali. Looking for someone adventurous to share the cost of a nice villa and join me on hikes and surfing sessions!",
11
- maxTravelers: 4,
12
- participants: [
13
- { _id: "user-0", profilePic: "/images/profile_placeholder.webp" },
14
- ],
15
- images: [
16
- "https://images.unsplash.com/photo-1537996194471-e657df975ab4?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
17
- ],
18
- compatibilityScore: 85,
19
- compatibilityReasons: [
20
- "You both love surfing",
21
- "Matched travel style: flashpacker",
22
- ],
23
- createdBy: {
24
- _id: "user-0",
25
- firstName: "Aarav",
26
- username: "aarav_travels",
27
- profilePic: "/images/profile_placeholder.webp",
28
- verifiedPhoneNumber: true,
29
- },
30
- status: "open",
31
- likes: ["user-a", "user-b"],
32
- myJoinStatus: "none",
33
- isMine: false,
34
- },
35
- {
36
- _id: "plan-2",
37
- destination: { city: "Leh", state: "Ladakh", country: "India" },
38
- startDate: new Date(Date.now() + 30 * 24 * 60 * 60 * 1000).toISOString(),
39
- endDate: new Date(Date.now() + 40 * 24 * 60 * 60 * 1000).toISOString(),
40
- budgetRange: { min: 25000, max: 45000 },
41
- travelStyle: "backpacker",
42
- interests: ["trekking", "photography", "adventure"],
43
- description: "Road trip across Ladakh! Will be renting Royal Enfields. Looking for fellow riders who are comfortable with high altitudes and basic homestays.",
44
- maxTravelers: 6,
45
- participants: [
46
- { _id: "user-1", profilePic: "/images/profile_placeholder.webp" },
47
- { _id: "user-2", profilePic: "/images/profile_placeholder.webp" },
48
- ],
49
- images: [
50
- "https://images.unsplash.com/photo-1626601323380-498c8c6cfd89?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
51
- ],
52
- compatibilityScore: 92,
53
- compatibilityReasons: [
54
- "Both interested in trekking",
55
- "Highly compatible age group",
56
- ],
57
- createdBy: {
58
- _id: "user-1",
59
- firstName: "Rohan",
60
- username: "rohan_rides",
61
- profilePic: "/images/profile_placeholder.webp",
62
- verifiedPhoneNumber: true,
63
- },
64
- status: "open",
65
- likes: ["user-c"],
66
- myJoinStatus: "none",
67
- isMine: false,
68
- },
69
- {
70
- _id: "plan-3",
71
- destination: { city: "Tokyo", state: "Tokyo", country: "Japan" },
72
- startDate: new Date(Date.now() + 60 * 24 * 60 * 60 * 1000).toISOString(),
73
- endDate: new Date(Date.now() + 70 * 24 * 60 * 60 * 1000).toISOString(),
74
- budgetRange: { min: 80000, max: 150000 },
75
- travelStyle: "mid-range",
76
- interests: ["food", "culture", "shopping", "nightlife"],
77
- description: "First time in Japan! I want to visit Tokyo, Kyoto, and Osaka. Looking for 1-2 travel buddies to split accommodation and explore the incredible food scene.",
78
- maxTravelers: 3,
79
- participants: [
80
- { _id: "user-3", profilePic: "/images/profile_placeholder.webp" },
81
- ],
82
- images: [
83
- "https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
84
- ],
85
- compatibilityScore: 65,
86
- compatibilityReasons: ["Shared interest in food"],
87
- createdBy: {
88
- _id: "user-3",
89
- firstName: "Priya",
90
- username: "priya_explores",
91
- profilePic: "/images/profile_placeholder.webp",
92
- verifiedPhoneNumber: false,
93
- },
94
- status: "open",
95
- likes: [],
96
- myJoinStatus: "none",
97
- isMine: false,
98
- },
99
- ];
100
- export const dummyTravelers = [
101
- {
102
- userId: "user-10",
103
- user: {
104
- firstName: "Kabir",
105
- lastName: "S",
106
- username: "kabir99",
107
- profilePic: "/images/profile_placeholder.webp",
108
- },
109
- travelStyle: "backpacker",
110
- bio: "Software engineer by day, mountain lover by weekend. Always looking for the next hiking trail.",
111
- interests: ["trekking", "nature", "photography"],
112
- destinations: ["Himalayas", "Nepal", "Patagonia"],
113
- languages: ["English", "Hindi"],
114
- matchScore: 88,
115
- matchReasons: ["You both love trekking", "Similar travel style"],
116
- },
117
- {
118
- userId: "user-11",
119
- user: {
120
- firstName: "Ananya",
121
- lastName: "M",
122
- username: "ananya_m",
123
- profilePic: "/images/profile_placeholder.webp",
124
- },
125
- travelStyle: "luxury",
126
- bio: "I travel for the food and the resorts. Let's find the best spas and fine dining spots!",
127
- interests: ["food", "wellness", "shopping"],
128
- destinations: ["Maldives", "Paris", "Dubai"],
129
- languages: ["English", "French"],
130
- matchScore: 45,
131
- matchReasons: ["Shared interest in food"],
132
- },
133
- {
134
- userId: "user-12",
135
- user: {
136
- firstName: "Vikram",
137
- lastName: "K",
138
- username: "vikram.k",
139
- profilePic: "/images/profile_placeholder.webp",
140
- },
141
- travelStyle: "mid-range",
142
- bio: "History buff who loves exploring old ruins and museums. Easy-going and flexible planner.",
143
- interests: ["history", "culture", "architecture"],
144
- destinations: ["Rome", "Egypt", "Cambodia"],
145
- languages: ["English", "Hindi", "Spanish"],
146
- matchScore: 72,
147
- matchReasons: ["High personality compatibility"],
148
- },
149
- ];
150
- export const dummyMyPlans = [
151
- {
152
- _id: "plan-my-1",
153
- destination: { city: "Goa", state: "Goa", country: "India" },
154
- startDate: new Date(Date.now() + 5 * 24 * 60 * 60 * 1000).toISOString(),
155
- endDate: new Date(Date.now() + 10 * 24 * 60 * 60 * 1000).toISOString(),
156
- budgetRange: { min: 15000, max: 25000 },
157
- travelStyle: "budget",
158
- interests: ["nightlife", "beaches"],
159
- description: "Quick weekend escape to North Goa.",
160
- maxTravelers: 4,
161
- participants: [
162
- { _id: "me", profilePic: "/images/profile_placeholder.webp" },
163
- ],
164
- images: [
165
- "https://images.unsplash.com/photo-1512343879784-a960bf40e7f2?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80",
166
- ],
167
- compatibilityScore: 0,
168
- compatibilityReasons: [],
169
- createdBy: {
170
- _id: "me",
171
- firstName: "You",
172
- username: "you",
173
- profilePic: "/images/profile_placeholder.webp",
174
- verifiedPhoneNumber: true,
175
- },
176
- status: "open",
177
- likes: ["user-x", "user-y"],
178
- myJoinStatus: "accepted",
179
- isMine: true,
180
- },
181
- ];
182
- export const dummyJoinRequests = [
183
- {
184
- _id: "req-1",
185
- userId: {
186
- firstName: "Rahul",
187
- lastName: "T",
188
- profilePic: "/images/profile_placeholder.webp",
189
- },
190
- message: "Hey, your plan sounds awesome! I have been to Goa before and know some good hidden spots.",
191
- status: "pending",
192
- },
193
- {
194
- _id: "req-2",
195
- userId: {
196
- firstName: "Neha",
197
- lastName: "S",
198
- profilePic: "/images/profile_placeholder.webp",
199
- },
200
- message: "Would love to join for the nightlife!",
201
- status: "pending",
202
- },
203
- ];
@@ -1,14 +0,0 @@
1
- export interface Destination {
2
- name: string;
3
- emoji: string;
4
- state: string;
5
- country: string;
6
- }
7
- export declare const ALL_DESTINATIONS: Destination[];
8
- /** Flat array of city names — use for autocomplete suggestions */
9
- export declare const INDIAN_CITIES: string[];
10
- /** { title: cityName } format — compatible with skillsOptions / Filter component */
11
- export declare const INDIAN_CITIES_OPTIONS: {
12
- title: string;
13
- }[];
14
- //# sourceMappingURL=destinations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"destinations.d.ts","sourceRoot":"","sources":["../../../src/lib/data/destinations.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,gBAAgB,EAAE,WAAW,EAsMzC,CAAC;AAeF,kEAAkE;AAClE,eAAO,MAAM,aAAa,EAAE,MAAM,EAAwC,CAAC;AAE3E,oFAAoF;AACpF,eAAO,MAAM,qBAAqB,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAElD,CAAC"}
@@ -1,203 +0,0 @@
1
- export const ALL_DESTINATIONS = [
2
- // Hill Stations & Mountains
3
- { name: "Manali", emoji: "🏔️", state: "Himachal Pradesh", country: "India" },
4
- { name: "Shimla", emoji: "🏔️", state: "Himachal Pradesh", country: "India" },
5
- { name: "Spiti Valley", emoji: "🏔️", state: "Himachal Pradesh", country: "India" },
6
- { name: "Kasol", emoji: "🌲", state: "Himachal Pradesh", country: "India" },
7
- { name: "Mcleod Ganj", emoji: "🙏", state: "Himachal Pradesh", country: "India" },
8
- { name: "Dharamshala", emoji: "🏔️", state: "Himachal Pradesh", country: "India" },
9
- { name: "Dalhousie", emoji: "⛰️", state: "Himachal Pradesh", country: "India" },
10
- { name: "Kullu", emoji: "🌊", state: "Himachal Pradesh", country: "India" },
11
- { name: "Chail", emoji: "🌲", state: "Himachal Pradesh", country: "India" },
12
- { name: "Kinnaur", emoji: "🍎", state: "Himachal Pradesh", country: "India" },
13
- { name: "Rishikesh", emoji: "🧘", state: "Uttarakhand", country: "India" },
14
- { name: "Haridwar", emoji: "🕉️", state: "Uttarakhand", country: "India" },
15
- { name: "Nainital", emoji: "💧", state: "Uttarakhand", country: "India" },
16
- { name: "Mussoorie", emoji: "🌄", state: "Uttarakhand", country: "India" },
17
- { name: "Dehradun", emoji: "🏔️", state: "Uttarakhand", country: "India" },
18
- { name: "Auli", emoji: "⛷️", state: "Uttarakhand", country: "India" },
19
- { name: "Lansdowne", emoji: "🌿", state: "Uttarakhand", country: "India" },
20
- { name: "Chakrata", emoji: "🌲", state: "Uttarakhand", country: "India" },
21
- { name: "Ranikhet", emoji: "🌸", state: "Uttarakhand", country: "India" },
22
- { name: "Jim Corbett", emoji: "🐯", state: "Uttarakhand", country: "India" },
23
- { name: "Chopta", emoji: "❄️", state: "Uttarakhand", country: "India" },
24
- { name: "Darjeeling", emoji: "🍵", state: "West Bengal", country: "India" },
25
- { name: "Kalimpong", emoji: "🌺", state: "West Bengal", country: "India" },
26
- { name: "Gangtok", emoji: "🏔️", state: "Sikkim", country: "India" },
27
- { name: "Pelling", emoji: "🏔️", state: "Sikkim", country: "India" },
28
- { name: "Lachung", emoji: "❄️", state: "Sikkim", country: "India" },
29
- { name: "Yumsam", emoji: "🌿", state: "Sikkim", country: "India" },
30
- { name: "Shillong", emoji: "🌧️", state: "Meghalaya", country: "India" },
31
- { name: "Cherrapunji", emoji: "🌧️", state: "Meghalaya", country: "India" },
32
- { name: "Mawlynnong", emoji: "🌿", state: "Meghalaya", country: "India" },
33
- { name: "Tawang", emoji: "🏔️", state: "Arunachal Pradesh", country: "India" },
34
- { name: "Ziro", emoji: "🌾", state: "Arunachal Pradesh", country: "India" },
35
- { name: "Dirang", emoji: "🏔️", state: "Arunachal Pradesh", country: "India" },
36
- // Jammu & Kashmir
37
- { name: "Srinagar", emoji: "🌷", state: "Jammu & Kashmir", country: "India" },
38
- { name: "Gulmarg", emoji: "⛷️", state: "Jammu & Kashmir", country: "India" },
39
- { name: "Pahalgam", emoji: "🏞️", state: "Jammu & Kashmir", country: "India" },
40
- { name: "Sonamarg", emoji: "❄️", state: "Jammu & Kashmir", country: "India" },
41
- { name: "Vaishno Devi", emoji: "⛰️", state: "Jammu & Kashmir", country: "India" },
42
- { name: "Doodhpathri", emoji: "🌸", state: "Jammu & Kashmir", country: "India" },
43
- // Ladakh
44
- { name: "Ladakh", emoji: "🏕️", state: "Ladakh", country: "India" },
45
- { name: "Leh", emoji: "🏔️", state: "Ladakh", country: "India" },
46
- { name: "Nubra Valley", emoji: "🐪", state: "Ladakh", country: "India" },
47
- { name: "Pangong Lake", emoji: "💙", state: "Ladakh", country: "India" },
48
- { name: "Tso Moriri", emoji: "🏔️", state: "Ladakh", country: "India" },
49
- { name: "Zanskar Valley", emoji: "⛰️", state: "Ladakh", country: "India" },
50
- // Rajasthan
51
- { name: "Jaipur", emoji: "🏯", state: "Rajasthan", country: "India" },
52
- { name: "Udaipur", emoji: "🏰", state: "Rajasthan", country: "India" },
53
- { name: "Jodhpur", emoji: "🏯", state: "Rajasthan", country: "India" },
54
- { name: "Jaisalmer", emoji: "🏜️", state: "Rajasthan", country: "India" },
55
- { name: "Pushkar", emoji: "🐫", state: "Rajasthan", country: "India" },
56
- { name: "Ajmer", emoji: "🕌", state: "Rajasthan", country: "India" },
57
- { name: "Bikaner", emoji: "🐪", state: "Rajasthan", country: "India" },
58
- { name: "Mount Abu", emoji: "⛰️", state: "Rajasthan", country: "India" },
59
- { name: "Ranthambore", emoji: "🐯", state: "Rajasthan", country: "India" },
60
- { name: "Alwar", emoji: "🏰", state: "Rajasthan", country: "India" },
61
- { name: "Bundi", emoji: "🏯", state: "Rajasthan", country: "India" },
62
- { name: "Chittorgarh", emoji: "🏰", state: "Rajasthan", country: "India" },
63
- { name: "Kota", emoji: "🌊", state: "Rajasthan", country: "India" },
64
- // Goa & West Coast
65
- { name: "Goa", emoji: "🏖️", state: "Goa", country: "India" },
66
- { name: "Panaji", emoji: "🏖️", state: "Goa", country: "India" },
67
- { name: "Calangute", emoji: "🌊", state: "Goa", country: "India" },
68
- { name: "Arambol", emoji: "🏄", state: "Goa", country: "India" },
69
- { name: "Palolem", emoji: "🌴", state: "Goa", country: "India" },
70
- { name: "Candolim", emoji: "🏖️", state: "Goa", country: "India" },
71
- // Kerala
72
- { name: "Kerala", emoji: "🌴", state: "Kerala", country: "India" },
73
- { name: "Munnar", emoji: "🍃", state: "Kerala", country: "India" },
74
- { name: "Alleppey", emoji: "🚣", state: "Kerala", country: "India" },
75
- { name: "Varkala", emoji: "🏖️", state: "Kerala", country: "India" },
76
- { name: "Kochi", emoji: "⛵", state: "Kerala", country: "India" },
77
- { name: "Wayanad", emoji: "🌿", state: "Kerala", country: "India" },
78
- { name: "Thekkady", emoji: "🐘", state: "Kerala", country: "India" },
79
- { name: "Thrissur", emoji: "🎭", state: "Kerala", country: "India" },
80
- { name: "Kozhikode", emoji: "🌊", state: "Kerala", country: "India" },
81
- { name: "Kovalam", emoji: "🏖️", state: "Kerala", country: "India" },
82
- { name: "Kannur", emoji: "🌴", state: "Kerala", country: "India" },
83
- { name: "Vagamon", emoji: "🌫️", state: "Kerala", country: "India" },
84
- { name: "Idukki", emoji: "🌿", state: "Kerala", country: "India" },
85
- // Tamil Nadu
86
- { name: "Ooty", emoji: "🌿", state: "Tamil Nadu", country: "India" },
87
- { name: "Kodaikanal", emoji: "🌫️", state: "Tamil Nadu", country: "India" },
88
- { name: "Chennai", emoji: "🌊", state: "Tamil Nadu", country: "India" },
89
- { name: "Madurai", emoji: "🛕", state: "Tamil Nadu", country: "India" },
90
- { name: "Coimbatore", emoji: "🏙️", state: "Tamil Nadu", country: "India" },
91
- { name: "Pondicherry", emoji: "🌸", state: "Puducherry", country: "India" },
92
- { name: "Rameswaram", emoji: "🕌", state: "Tamil Nadu", country: "India" },
93
- { name: "Kanyakumari", emoji: "🌅", state: "Tamil Nadu", country: "India" },
94
- { name: "Tirupati", emoji: "🙏", state: "Andhra Pradesh", country: "India" },
95
- { name: "Mahabalipuram", emoji: "🗿", state: "Tamil Nadu", country: "India" },
96
- { name: "Yercaud", emoji: "⛰️", state: "Tamil Nadu", country: "India" },
97
- { name: "Valparai", emoji: "🌿", state: "Tamil Nadu", country: "India" },
98
- // Karnataka
99
- { name: "Coorg", emoji: "☕", state: "Karnataka", country: "India" },
100
- { name: "Mysore", emoji: "🏯", state: "Karnataka", country: "India" },
101
- { name: "Bangalore", emoji: "🌇", state: "Karnataka", country: "India" },
102
- { name: "Hampi", emoji: "🗿", state: "Karnataka", country: "India" },
103
- { name: "Badami", emoji: "🗿", state: "Karnataka", country: "India" },
104
- { name: "Chikmagalur", emoji: "☕", state: "Karnataka", country: "India" },
105
- { name: "Dandeli", emoji: "🌊", state: "Karnataka", country: "India" },
106
- { name: "Mangalore", emoji: "🌊", state: "Karnataka", country: "India" },
107
- { name: "Udupi", emoji: "🛕", state: "Karnataka", country: "India" },
108
- { name: "Gokarna", emoji: "🏖️", state: "Karnataka", country: "India" },
109
- { name: "Sakleshpur", emoji: "🌿", state: "Karnataka", country: "India" },
110
- { name: "Kudremukh", emoji: "🌧️", state: "Karnataka", country: "India" },
111
- { name: "Nagarhole", emoji: "🐘", state: "Karnataka", country: "India" },
112
- // Maharashtra
113
- { name: "Mumbai", emoji: "🌆", state: "Maharashtra", country: "India" },
114
- { name: "Pune", emoji: "🏙️", state: "Maharashtra", country: "India" },
115
- { name: "Mahabaleshwar", emoji: "🍓", state: "Maharashtra", country: "India" },
116
- { name: "Lonavala", emoji: "⛰️", state: "Maharashtra", country: "India" },
117
- { name: "Alibaug", emoji: "🏝️", state: "Maharashtra", country: "India" },
118
- { name: "Aurangabad", emoji: "🏯", state: "Maharashtra", country: "India" },
119
- { name: "Nagpur", emoji: "🍊", state: "Maharashtra", country: "India" },
120
- { name: "Nashik", emoji: "🍇", state: "Maharashtra", country: "India" },
121
- { name: "Shirdi", emoji: "🙏", state: "Maharashtra", country: "India" },
122
- { name: "Kolhapur", emoji: "🏙️", state: "Maharashtra", country: "India" },
123
- { name: "Matheran", emoji: "⛰️", state: "Maharashtra", country: "India" },
124
- { name: "Igatpuri", emoji: "🌿", state: "Maharashtra", country: "India" },
125
- { name: "Tadoba", emoji: "🐯", state: "Maharashtra", country: "India" },
126
- // Gujarat
127
- { name: "Ahmedabad", emoji: "🏙️", state: "Gujarat", country: "India" },
128
- { name: "Surat", emoji: "💍", state: "Gujarat", country: "India" },
129
- { name: "Rann of Kutch", emoji: "🏜️", state: "Gujarat", country: "India" },
130
- { name: "Dwarka", emoji: "🛕", state: "Gujarat", country: "India" },
131
- { name: "Somnath", emoji: "🛕", state: "Gujarat", country: "India" },
132
- { name: "Gir", emoji: "🦁", state: "Gujarat", country: "India" },
133
- { name: "Vadodara", emoji: "🏙️", state: "Gujarat", country: "India" },
134
- { name: "Rajkot", emoji: "🏙️", state: "Gujarat", country: "India" },
135
- { name: "Mandvi", emoji: "🏖️", state: "Gujarat", country: "India" },
136
- { name: "Saputara", emoji: "⛰️", state: "Gujarat", country: "India" },
137
- // Uttar Pradesh
138
- { name: "Varanasi", emoji: "🕌", state: "Uttar Pradesh", country: "India" },
139
- { name: "Agra", emoji: "🕌", state: "Uttar Pradesh", country: "India" },
140
- { name: "Lucknow", emoji: "🏙️", state: "Uttar Pradesh", country: "India" },
141
- { name: "Prayagraj", emoji: "🕉️", state: "Uttar Pradesh", country: "India" },
142
- { name: "Mathura", emoji: "🛕", state: "Uttar Pradesh", country: "India" },
143
- { name: "Vrindavan", emoji: "🌸", state: "Uttar Pradesh", country: "India" },
144
- { name: "Ayodhya", emoji: "🛕", state: "Uttar Pradesh", country: "India" },
145
- { name: "Kanpur", emoji: "🏙️", state: "Uttar Pradesh", country: "India" },
146
- // Metro Cities
147
- { name: "Delhi", emoji: "🏛️", state: "Delhi", country: "India" },
148
- { name: "Kolkata", emoji: "🎭", state: "West Bengal", country: "India" },
149
- { name: "Hyderabad", emoji: "💎", state: "Telangana", country: "India" },
150
- { name: "Chandigarh", emoji: "🌳", state: "Chandigarh", country: "India" },
151
- { name: "Bhopal", emoji: "🏙️", state: "Madhya Pradesh", country: "India" },
152
- { name: "Indore", emoji: "🍲", state: "Madhya Pradesh", country: "India" },
153
- { name: "Jaipur", emoji: "🏯", state: "Rajasthan", country: "India" },
154
- { name: "Amritsar", emoji: "🕌", state: "Punjab", country: "India" },
155
- { name: "Ludhiana", emoji: "🏙️", state: "Punjab", country: "India" },
156
- { name: "Patna", emoji: "🏛️", state: "Bihar", country: "India" },
157
- { name: "Ranchi", emoji: "🌿", state: "Jharkhand", country: "India" },
158
- { name: "Bhubaneswar", emoji: "🛕", state: "Odisha", country: "India" },
159
- // Beach & Coastal
160
- { name: "Andaman Islands", emoji: "🏝️", state: "Andaman & Nicobar", country: "India" },
161
- { name: "Havelock Island", emoji: "🏝️", state: "Andaman & Nicobar", country: "India" },
162
- { name: "Neil Island", emoji: "🌊", state: "Andaman & Nicobar", country: "India" },
163
- { name: "Lakshadweep", emoji: "🏝️", state: "Lakshadweep", country: "India" },
164
- { name: "Puri", emoji: "🌊", state: "Odisha", country: "India" },
165
- { name: "Vizag", emoji: "🌊", state: "Andhra Pradesh", country: "India" },
166
- { name: "Pondicherry", emoji: "🌸", state: "Puducherry", country: "India" },
167
- // Madhya Pradesh
168
- { name: "Khajuraho", emoji: "🛕", state: "Madhya Pradesh", country: "India" },
169
- { name: "Bhopal", emoji: "🏙️", state: "Madhya Pradesh", country: "India" },
170
- { name: "Indore", emoji: "🍲", state: "Madhya Pradesh", country: "India" },
171
- { name: "Ujjain", emoji: "🛕", state: "Madhya Pradesh", country: "India" },
172
- { name: "Orchha", emoji: "🏯", state: "Madhya Pradesh", country: "India" },
173
- { name: "Pachmarhi", emoji: "🌿", state: "Madhya Pradesh", country: "India" },
174
- { name: "Bandhavgarh", emoji: "🐯", state: "Madhya Pradesh", country: "India" },
175
- { name: "Kanha", emoji: "🦌", state: "Madhya Pradesh", country: "India" },
176
- // Northeast
177
- { name: "Kaziranga", emoji: "🦏", state: "Assam", country: "India" },
178
- { name: "Guwahati", emoji: "🌊", state: "Assam", country: "India" },
179
- { name: "Majuli", emoji: "🏝️", state: "Assam", country: "India" },
180
- { name: "Imphal", emoji: "🌿", state: "Manipur", country: "India" },
181
- { name: "Aizawl", emoji: "⛰️", state: "Mizoram", country: "India" },
182
- { name: "Kohima", emoji: "🌿", state: "Nagaland", country: "India" },
183
- { name: "Agartala", emoji: "🌿", state: "Tripura", country: "India" },
184
- { name: "Itanagar", emoji: "🏔️", state: "Arunachal Pradesh", country: "India" },
185
- ];
186
- // Deduplicate by name
187
- const seen = new Set();
188
- const deduped = [];
189
- for (const d of ALL_DESTINATIONS) {
190
- if (!seen.has(d.name)) {
191
- seen.add(d.name);
192
- deduped.push(d);
193
- }
194
- }
195
- // Re-assign after dedup
196
- ALL_DESTINATIONS.length = 0;
197
- ALL_DESTINATIONS.push(...deduped);
198
- /** Flat array of city names — use for autocomplete suggestions */
199
- export const INDIAN_CITIES = ALL_DESTINATIONS.map((d) => d.name);
200
- /** { title: cityName } format — compatible with skillsOptions / Filter component */
201
- export const INDIAN_CITIES_OPTIONS = ALL_DESTINATIONS.map((d) => ({
202
- title: d.name,
203
- }));
@@ -1,38 +0,0 @@
1
- export type EventAgendaItem = {
2
- time: string;
3
- title: string;
4
- description: string;
5
- };
6
- export type EventFaqItem = {
7
- question: string;
8
- answer: string;
9
- };
10
- export type EventFormState = {
11
- hostUsername: string;
12
- title: string;
13
- shortDescription: string;
14
- description: string;
15
- category: string;
16
- tagsRaw: string;
17
- eventDate: string;
18
- endDate: string;
19
- startTime: string;
20
- endTime: string;
21
- venue: string;
22
- address: string;
23
- city: string;
24
- state: string;
25
- latitude: string;
26
- longitude: string;
27
- locationAddress: string;
28
- totalCapacity: string;
29
- pricePerPerson: string;
30
- isFree: boolean;
31
- highlightsRaw: string;
32
- includedRaw: string;
33
- agenda: EventAgendaItem[];
34
- faqs: EventFaqItem[];
35
- };
36
- export declare function getDefaultEventFormState(): EventFormState;
37
- export declare function hydrateEventForm(event: any): EventFormState;
38
- //# sourceMappingURL=eventFormPage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eventFormPage.d.ts","sourceRoot":"","sources":["../../../src/lib/data/eventFormPage.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,IAAI,EAAE,YAAY,EAAE,CAAC;CACtB,CAAC;AAEF,wBAAgB,wBAAwB,IAAI,cAAc,CA2BzD;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,GAAG,cAAc,CA2B3D"}