Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Cap Spaces (#641)
Ameer Al Ashhab8e84603341ee
diff --git a/apps/desktop/src/routes/(window-chrome)/upgrade.tsx b/apps/desktop/src/routes/(window-chrome)/upgrade.tsxindex 178e105a2..44ad906a9 100644--- a/apps/desktop/src/routes/(window-chrome)/upgrade.tsx+++ b/apps/desktop/src/routes/(window-chrome)/upgrade.tsx@@ -19,7 +19,6 @@ import PricingRive from "../../assets/rive/pricing.riv";import { authStore } from "../../store";import { Dialog, DialogContent, Input } from "../editor/ui";-import callbackTemplate from "./callback.template";const proFeatures = ["Commercial License Included",@@ -306,9 +305,7 @@ export default function Page() {<Show when={license.data.expiryDate}>{(expiryDate) => (<div class="space-y-1">- <label class="text-sm text-gray-12">- Expires- </label>+ <label class="text-sm text-gray-12">Expires</label><p class="text-gray-10">{new Date(expiryDate()).toLocaleDateString(undefined,diff --git a/apps/web/actions/caps/get-shared-spaces.ts b/apps/web/actions/caps/get-shared-spaces.tsnew file mode 100644index 000000000..c7c84415c--- /dev/null+++ b/apps/web/actions/caps/get-shared-spaces.ts@@ -0,0 +1,56 @@+'use server'++import { db } from "@cap/database"+import { getCurrentUser } from "@cap/database/auth/session"+import { sharedVideos, videos, spaces, organizationMembers, organizations, spaceVideos } from "@cap/database/schema"+import { eq, and, inArray, or } from "drizzle-orm"++interface Space {+ id: string;+ name: string;+ organizationId: string;+}++export async function getSharedSpacesForCap(capId: string): Promise<Space[]> {+ try {+ const user = await getCurrentUser()+ if (!user) {+ return [];+ }++ const [cap] = await db().select().from(videos).where(eq(videos.id, capId))+ if (!cap) {+ return [];+ }++ const directlySharedSpaces = await db()+ .select({+ id: spaces.id,+ name: spaces.name,+ organizationId: spaces.organizationId,+ })+ .from(spaceVideos)+ .innerJoin(spaces, eq(spaceVideos.spaceId, spaces.id))+ .where(eq(spaceVideos.videoId, capId));++ const sharedOrganizations = await db()+ .select({+ id: organizations.id,+ name: organizations.name,+ })+ .from(sharedVideos)+ .innerJoin(organizations, eq(sharedVideos.organizationId, organizations.id))+ .where(eq(sharedVideos.videoId, capId));++ const organizationSpaces = sharedOrganizations.map(org => ({+ id: org.id,+ name: `All ${org.name}`,+ organizationId: org.id,+ }));++ return [...directlySharedSpaces, ...organizationSpaces];+ } catch (error) {+ console.error('Error getting shared spaces for cap:', error)+ return []+ }+}\ No newline at end of filediff --git a/apps/web/actions/caps/share.ts b/apps/web/actions/caps/share.tsnew file mode 100644index 000000000..86853cb55--- /dev/null+++ b/apps/web/actions/caps/share.ts@@ -0,0 +1,132 @@+'use server'++import { revalidatePath } from 'next/cache'+import { db } from "@cap/database"+import { getCurrentUser } from "@cap/database/auth/session"+import { sharedVideos, videos, spaces, organizationMembers, organizations, spaceVideos } from "@cap/database/schema"+import { eq, and, inArray, or } from "drizzle-orm"+import { nanoId } from "@cap/database/helpers"++interface ShareCapParams {+ capId: string+ spaceIds: string[]+}++export async function shareCap({ capId, spaceIds }: ShareCapParams) {+ try {++ const user = await getCurrentUser()+ if (!user) {+ return { success: false, error: "Unauthorized" }+ }++ const [cap] = await db().select().from(videos).where(eq(videos.id, capId))+ if (!cap || cap.ownerId !== user.id) {+ return { success: false, error: "Unauthorized" }+ }++ const userOrganizations = await db()+ .select({+ organizationId: organizationMembers.organizationId,+ })+ .from(organizationMembers)+ .where(eq(organizationMembers.userId, user.id))++ const userOrganizationIds = userOrganizations.map(org => org.organizationId)++ const directOrgIds = await db()+ .select()+ .from(organizations)+ .where(+ and(+ inArray(organizations.id, spaceIds),+ inArray(organizations.id, userOrganizationIds)+ )+ )+ .then(orgs => orgs.map(org => org.id))++ const spacesData = await db()+ .select()+ .from(spaces)+ .where(+ and(+ inArray(spaces.id, spaceIds),+ inArray(spaces.organizationId, userOrganizationIds)+ )+ )++ const organizationIds = directOrgIds++ const currentSharedOrganizations = await db()+ .select()+ .from(sharedVideos)+ .where(eq(sharedVideos.videoId, capId))++ for (const sharedOrganization of currentSharedOrganizations) {+ if (!organizationIds.includes(sharedOrganization.organizationId)) {+ await db()+ .delete(sharedVideos)+ .where(+ and(+ eq(sharedVideos.videoId, capId),+ eq(sharedVideos.organizationId, sharedOrganization.organizationId)+ )+ )+ }+ }++ for (const organizationId of organizationIds) {+ const existingShare = currentSharedOrganizations.find(+ (share) => share.organizationId === organizationId+ )+ if (!existingShare) {+ await db().insert(sharedVideos).values({+ id: nanoId(),+ videoId: capId,+ organizationId: organizationId,+ sharedByUserId: user.id,+ })+ }+ }++ const spacesIds = spacesData.map(space => space.id)++ const currentSpaceVideos = await db()+ .select()+ .from(spaceVideos)+ .where(eq(spaceVideos.videoId, capId))++ for (const spaceVideo of currentSpaceVideos) {+ if (!spacesIds.includes(spaceVideo.spaceId)) {+ await db()+ .delete(spaceVideos)+ .where(+ and(+ eq(spaceVideos.videoId, capId),+ eq(spaceVideos.spaceId, spaceVideo.spaceId)+ )+ )+ }+ }++ for (const spaceId of spacesIds) {+ const existingSpaceShare = currentSpaceVideos.find(+ (share) => share.spaceId === spaceId+ )+ if (!existingSpaceShare) {+ await db().insert(spaceVideos).values({+ id: nanoId(),+ videoId: capId,+ spaceId: spaceId,+ addedById: user.id,+ })+ }+ }+ revalidatePath('/dashboard/caps')+ revalidatePath(`/dashboard/caps/${capId}`)+ return { success: true }+ } catch (error) {+ console.error('Error sharing cap:', error)+ return { success: false, error: 'Failed to update sharing settings' }+ }+}\ No newline at end of filediff --git a/apps/web/actions/organization/create-space.ts b/apps/web/actions/organization/create-space.tsnew file mode 100644index 000000000..a772b215f--- /dev/null+++ b/apps/web/actions/organization/create-space.ts@@ -0,0 +1,225 @@+"use server";++import { db } from "@cap/database";+import { getCurrentUser } from "@cap/database/auth/session";+import { spaces, users, spaceMembers } from "@cap/database/schema";+import { inArray, eq, and } from "drizzle-orm";+import { nanoId, nanoIdLength } from "@cap/database/helpers";+import { revalidatePath } from "next/cache";+import { createS3Client, getS3Bucket } from "@/utils/s3";+import { createPresignedPost } from "@aws-sdk/s3-presigned-post";+import { serverEnv } from "@cap/env";+import { v4 as uuidv4 } from "uuid";++interface CreateSpaceResponse {+ success: boolean;+ spaceId?: string;+ name?: string;+ iconUrl?: string | null;+ error?: string;+}++export async function createSpace(+ formData: FormData+): Promise<CreateSpaceResponse> {+ try {+ const user = await getCurrentUser();++ if (!user || !user.activeOrganizationId) {+ return {+ success: false,+ error: "User not logged in or no active organization",+ };+ }++ const name = formData.get("name") as string;++ if (!name) {+ return {+ success: false,+ error: "Space name is required",+ };+ }++ // Check for duplicate space name in the same organization+ const existingSpace = await db()+ .select({ id: spaces.id })+ .from(spaces)+ .where(+ and(+ eq(spaces.organizationId, user.activeOrganizationId),+ eq(spaces.name, name)+ )+ )+ .limit(1);+ if (existingSpace.length > 0) {+ return {+ success: false,+ error: "A space with this name already exists.",+ };+ }++ // Generate the space ID early so we can use it in the file path+ const spaceId = nanoId();++ const iconFile = formData.get("icon") as File | null;+ let iconUrl = null;++ if (iconFile) {+ // Validate file type+ if (!iconFile.type.startsWith("image/")) {+ return {+ success: false,+ error: "File must be an image",+ };+ }++ // Validate file size (limit to 2MB)+ if (iconFile.size > 2 * 1024 * 1024) {+ return {+ success: false,+ error: "File size must be less than 2MB",+ };+ }++ try {+ // Create a unique file key+ const fileExtension = iconFile.name.split(".").pop();+ const fileKey = `organizations/${+ user.activeOrganizationId+ }/spaces/${spaceId}/icon-${Date.now()}.${fileExtension}`;++ // Get S3 client+ const [s3Client] = await createS3Client();+ const bucketName = await getS3Bucket();++ // Create presigned post+ const presignedPostData = await createPresignedPost(s3Client, {+ Bucket: bucketName,+ Key: fileKey,+ Fields: {+ "Content-Type": iconFile.type,+ },+ Expires: 600, // 10 minutes+ });++ // Upload file to S3+ const formDataForS3 = new FormData();+ Object.entries(presignedPostData.fields).forEach(([key, value]) => {+ formDataForS3.append(key, value as string);+ });+ formDataForS3.append("file", iconFile);++ const uploadResponse = await fetch(presignedPostData.url, {+ method: "POST",+ body: formDataForS3,+ });++ if (!uploadResponse.ok) {+ throw new Error("Failed to upload file to S3");+ }++ // Construct the icon URL+ if (serverEnv().CAP_AWS_BUCKET_URL) {+ // If a custom bucket URL is defined, use it+ iconUrl = `${serverEnv().CAP_AWS_BUCKET_URL}/${fileKey}`;+ } else if (serverEnv().CAP_AWS_ENDPOINT) {+ // For custom endpoints like MinIO+ iconUrl = `${serverEnv().CAP_AWS_ENDPOINT}/${bucketName}/${fileKey}`;+ } else {+ // Default AWS S3 URL format+ iconUrl = `https://${bucketName}.s3.${+ serverEnv().CAP_AWS_REGION || "us-east-1"+ }.amazonaws.com/${fileKey}`;+ }+ } catch (error) {+ console.error("Error uploading space icon:", error);+ return {+ success: false,+ error: "Failed to upload space icon",+ };+ }+ }++ await db()+ .insert(spaces)+ .values({+ id: spaceId,+ name,+ organizationId: user.activeOrganizationId,+ createdById: user.id,+ iconUrl,+ description: iconUrl ? `Space with custom icon: ${iconUrl}` : null,+ createdAt: new Date(),+ updatedAt: new Date(),+ });++ // --- Member Management Logic ---+ // Collect member emails from formData+ const members: string[] = [];+ for (const entry of formData.getAll("members[]")) {+ if (typeof entry === "string" && entry.length > 0) {+ members.push(entry);+ }+ }++ // Always add the creator as Owner (if not already in the list)+ const memberEmailsSet = new Set(members.map((e) => e.toLowerCase()));+ const creatorEmail = user.email.toLowerCase();+ if (!memberEmailsSet.has(creatorEmail)) {+ members.push(user.email);+ }++ // Look up user IDs for each email+ if (members.length > 0) {+ // Fetch all users with these emails+ const usersFound = await db()+ .select({ id: users.id, email: users.email })+ .from(users)+ .where(inArray(users.email, members));++ // Map email to userId+ const emailToUserId = Object.fromEntries(+ usersFound.map((u) => [u.email.toLowerCase(), u.id])+ );++ // Prepare spaceMembers insertions+ const spaceMembersToInsert = members+ .map((email) => {+ const userId = emailToUserId[email.toLowerCase()];+ if (!userId) return null;+ // Creator is always Owner, others are Member+ const role =+ email.toLowerCase() === creatorEmail ? "Admin" : "Member";+ return {+ id: uuidv4().substring(0, nanoIdLength),+ spaceId,+ userId,+ role,+ createdAt: new Date(),+ updatedAt: new Date(),+ };+ })+ .filter((v): v is NonNullable<typeof v> => Boolean(v));++ if (spaceMembersToInsert.length > 0) {+ await db().insert(spaceMembers).values(spaceMembersToInsert);+ }+ }++ revalidatePath("/dashboard");++ return {+ success: true,+ spaceId,+ name,+ iconUrl,+ };+ } catch (error) {+ console.error("Error creating space:", error);+ return {+ success: false,+ error: "Failed to create space",+ };+ }+}diff --git a/apps/web/actions/organization/delete-space.ts b/apps/web/actions/organization/delete-space.tsnew file mode 100644index 000000000..287fd2bc4--- /dev/null+++ b/apps/web/actions/organization/delete-space.ts@@ -0,0 +1,111 @@+"use server";++import { db } from "@cap/database";+import { getCurrentUser } from "@cap/database/auth/session";+import { spaces, spaceMembers, spaceVideos } from "@cap/database/schema";+import { eq } from "drizzle-orm";+import { revalidatePath } from "next/cache";+import { createS3Client, getS3Bucket } from "@/utils/s3";+import { DeleteObjectsCommand, ListObjectsV2Command } from "@aws-sdk/client-s3";++interface DeleteSpaceResponse {+ success: boolean;+ error?: string;+}++export async function deleteSpace(+ spaceId: string+): Promise<DeleteSpaceResponse> {+ try {+ const user = await getCurrentUser();++ if (!user || !user.activeOrganizationId) {+ return {+ success: false,+ error: "User not logged in or no active organization",+ };+ }++ // Check if the space exists and belongs to the user's organization+ const space = await db()+ .select()+ .from(spaces)+ .where(eq(spaces.id, spaceId))+ .limit(1);++ if (!space || space.length === 0) {+ return {+ success: false,+ error: "Space not found",+ };+ }++ // Check if user has permission to delete the space+ // Only the space creator or organization owner should be able to delete spaces+ const spaceData = space[0];+ if (!spaceData || spaceData.createdById !== user.id) {+ return {+ success: false,+ error: "You don't have permission to delete this space",+ };+ }++ // Delete in order to maintain referential integrity:+ // 1. First delete all space videos+ await db().delete(spaceVideos).where(eq(spaceVideos.spaceId, spaceId));++ // 2. Delete all space members+ await db().delete(spaceMembers).where(eq(spaceMembers.spaceId, spaceId));++ // 3. Delete space icons from S3+ try {+ const [s3Client] = await createS3Client();+ const bucketName = await getS3Bucket();++ // List all objects with the space prefix+ const prefix = `organizations/${user.activeOrganizationId}/spaces/${spaceId}/`;++ const listObjectsCommand = new ListObjectsV2Command({+ Bucket: bucketName,+ Prefix: prefix,+ });++ const listedObjects = await s3Client.send(listObjectsCommand);++ if (listedObjects.Contents?.length) {+ const deleteObjectsCommand = new DeleteObjectsCommand({+ Bucket: bucketName,+ Delete: {+ Objects: listedObjects.Contents.map((content) => ({+ Key: content.Key,+ })),+ },+ });++ await s3Client.send(deleteObjectsCommand);+ console.log(+ `Deleted ${listedObjects.Contents.length} objects for space ${spaceId}`+ );+ }+ } catch (error) {+ console.error("Error deleting space icons from S3:", error);+ // Continue with space deletion even if S3 deletion fails+ }++ // 4. Finally delete the space itself+ await db().delete(spaces).where(eq(spaces.id, spaceId));++ // Revalidate the dashboard path to reflect the changes+ revalidatePath("/dashboard");++ return {+ success: true,+ };+ } catch (error) {+ console.error("Error deleting space:", error);+ return {+ success: false,+ error: "Failed to delete space",+ };+ }+}diff --git a/apps/web/actions/organization/update-space.ts b/apps/web/actions/organization/update-space.tsnew file mode 100644index 000000000..a184f6c6c--- /dev/null+++ b/apps/web/actions/organization/update-space.ts@@ -0,0 +1,69 @@+"use server";++import { db } from "@cap/database";+import { getCurrentUser } from "@cap/database/auth/session";+import { spaces, spaceMembers } from "@cap/database/schema";+import { eq } from "drizzle-orm";+import { revalidatePath } from "next/cache";+import { uploadSpaceIcon } from "./upload-space-icon";+import { v4 as uuidv4 } from "uuid";+import { nanoIdLength } from "@cap/database/helpers";+import { createS3Client, getS3Bucket } from "@/utils/s3";+import { DeleteObjectCommand } from "@aws-sdk/client-s3";++export async function updateSpace(formData: FormData) {+ const user = await getCurrentUser();+ if (!user) return { success: false, error: "Unauthorized" };++ const id = formData.get("id") as string;+ const name = formData.get("name") as string;+ const members = formData.getAll("members[]") as string[];+ const iconFile = formData.get("icon") as File | null;++ // Update space name+ await db().update(spaces).set({ name }).where(eq(spaces.id, id));++ // Update members (simple replace for now)+ await db().delete(spaceMembers).where(eq(spaceMembers.spaceId, id));+ if (members.length > 0) {+ await db()+ .insert(spaceMembers)+ .values(+ members.map((userId) => ({+ id: uuidv4().substring(0, nanoIdLength),+ spaceId: id,+ userId,+ }))+ );+ }++ // Handle icon removal if requested+ if (formData.get("removeIcon") === "true") {+ // Remove icon from S3 and set iconUrl to null+ const spaceArr = await db().select().from(spaces).where(eq(spaces.id, id));+ const space = spaceArr[0];+ if (space && space.iconUrl) {+ try {+ const [s3Client] = await createS3Client();+ const bucketName = await getS3Bucket();+ const prevKeyMatch = space.iconUrl.match(/organizations\/.+/);+ if (prevKeyMatch && prevKeyMatch[0]) {+ await s3Client.send(+ new DeleteObjectCommand({+ Bucket: bucketName,+ Key: prevKeyMatch[0],+ })+ );+ }+ } catch (e) {+ console.warn("Failed to delete old space icon from S3", e);+ }+ }+ await db().update(spaces).set({ iconUrl: null }).where(eq(spaces.id, id));+ } else if (iconFile && iconFile.size > 0) {+ await uploadSpaceIcon(formData, id);+ }++ revalidatePath("/dashboard");+ return { success: true };+}diff --git a/apps/web/actions/organization/upload-icon.ts b/apps/web/actions/organization/upload-organization-icon.tssimilarity index 88%rename from apps/web/actions/organization/upload-icon.tsrename to apps/web/actions/organization/upload-organization-icon.tsindex 3eb63d5e4..bb313f29f 100644--- a/apps/web/actions/organization/upload-icon.ts+++ b/apps/web/actions/organization/upload-organization-icon.ts@@ -1,4 +1,4 @@-'use server';+"use server";import { getCurrentUser } from "@cap/database/auth/session";import { organizations } from "@cap/database/schema";@@ -32,14 +32,14 @@ export async function uploadOrganizationIcon(throw new Error("Only the owner can update organization icon");}- const file = formData.get('file') as File;-+ const file = formData.get("file") as File;+if (!file) {throw new Error("No file provided");}// Validate file type- if (!file.type.startsWith('image/')) {+ if (!file.type.startsWith("image/")) {throw new Error("File must be an image");}@@ -49,7 +49,7 @@ export async function uploadOrganizationIcon(}// Create a unique file key- const fileExtension = file.name.split('.').pop();+ const fileExtension = file.name.split(".").pop();const fileKey = `organizations/${organizationId}/icon-${Date.now()}.${fileExtension}`;try {@@ -62,7 +62,7 @@ export async function uploadOrganizationIcon(Bucket: bucketName,Key: fileKey,Fields: {- 'Content-Type': file.type,+ "Content-Type": file.type,},Expires: 600, // 10 minutes});@@ -72,10 +72,10 @@ export async function uploadOrganizationIcon(Object.entries(presignedPostData.fields).forEach(([key, value]) => {formDataForS3.append(key, value as string);});- formDataForS3.append('file', file);+ formDataForS3.append("file", file);const uploadResponse = await fetch(presignedPostData.url, {- method: 'POST',+ method: "POST",body: formDataForS3,});@@ -93,7 +93,9 @@ export async function uploadOrganizationIcon(iconUrl = `${serverEnv().CAP_AWS_ENDPOINT}/${bucketName}/${fileKey}`;} else {// Default AWS S3 URL format- iconUrl = `https://${bucketName}.s3.${serverEnv().CAP_AWS_REGION || 'us-east-1'}.amazonaws.com/${fileKey}`;+ iconUrl = `https://${bucketName}.s3.${+ serverEnv().CAP_AWS_REGION || "us-east-1"+ }.amazonaws.com/${fileKey}`;}// Update organization with new icon URLdiff --git a/apps/web/actions/organization/upload-space-icon.ts b/apps/web/actions/organization/upload-space-icon.tsnew file mode 100644index 000000000..52733afab--- /dev/null+++ b/apps/web/actions/organization/upload-space-icon.ts@@ -0,0 +1,125 @@+"use server";++import { getCurrentUser } from "@cap/database/auth/session";+import { spaces } from "@cap/database/schema";+import { db } from "@cap/database";+import { eq } from "drizzle-orm";+import { revalidatePath } from "next/cache";+import { createS3Client, getS3Bucket } from "@/utils/s3";+import { createPresignedPost } from "@aws-sdk/s3-presigned-post";+import { serverEnv } from "@cap/env";+import { DeleteObjectCommand } from "@aws-sdk/client-s3";++export async function uploadSpaceIcon(formData: FormData, spaceId: string) {+ const user = await getCurrentUser();++ if (!user) {+ throw new Error("Unauthorized");+ }++ // Fetch the space and check permissions+ const spaceArr = await db()+ .select()+ .from(spaces)+ .where(eq(spaces.id, spaceId));++ if (!spaceArr || spaceArr.length === 0) {+ throw new Error("Space not found");+ }+ const space = spaceArr[0];++ if (!space) {+ throw new Error("Space not found");+ }++ if (space.organizationId !== user.activeOrganizationId) {+ throw new Error("You do not have permission to update this space");+ }++ const file = formData.get("icon") as File;+ if (!file) {+ throw new Error("No file provided");+ }+ if (!file.type.startsWith("image/")) {+ throw new Error("File must be an image");+ }+ if (file.size > 2 * 1024 * 1024) {+ throw new Error("File size must be less than 2MB");+ }++ // Prepare new file key+ const fileExtension = file.name.split(".").pop();+ const fileKey = `organizations/${+ space.organizationId+ }/spaces/${spaceId}/icon-${Date.now()}.${fileExtension}`;++ try {+ const [s3Client] = await createS3Client();+ const bucketName = await getS3Bucket();++ // Remove previous icon if exists+ if (space.iconUrl) {+ // Try to extract the previous S3 key from the URL+ const prevKeyMatch = space.iconUrl.match(/organizations\/.+/);+ if (prevKeyMatch && prevKeyMatch[0]) {+ try {+ await s3Client.send(+ new DeleteObjectCommand({+ Bucket: bucketName,+ Key: prevKeyMatch[0],+ })+ );+ } catch (e) {+ // Log and continue+ console.warn("Failed to delete old space icon from S3", e);+ }+ }+ }++ // Create presigned post+ const presignedPostData = await createPresignedPost(s3Client, {+ Bucket: bucketName,+ Key: fileKey,+ Fields: {+ "Content-Type": file.type,+ },+ Expires: 600, // 10 minutes+ });++ // Upload file to S3+ const formDataForS3 = new FormData();+ Object.entries(presignedPostData.fields).forEach(([key, value]) => {+ formDataForS3.append(key, value as string);+ });+ formDataForS3.append("file", file);++ const uploadResponse = await fetch(presignedPostData.url, {+ method: "POST",+ body: formDataForS3,+ });+ if (!uploadResponse.ok) {+ throw new Error("Failed to upload file to S3");+ }++ // Construct the icon URL+ let iconUrl;+ if (serverEnv().CAP_AWS_BUCKET_URL) {+ iconUrl = `${serverEnv().CAP_AWS_BUCKET_URL}/${fileKey}`;+ } else if (serverEnv().CAP_AWS_ENDPOINT) {+ iconUrl = `${serverEnv().CAP_AWS_ENDPOINT}/${bucketName}/${fileKey}`;+ } else {+ iconUrl = `https://${bucketName}.s3.${+ serverEnv().CAP_AWS_REGION || "us-east-1"+ }.amazonaws.com/${fileKey}`;+ }++ // Update space with new icon URL+ await db().update(spaces).set({ iconUrl }).where(eq(spaces.id, spaceId));++ revalidatePath("/dashboard");+ return { success: true, iconUrl };+ } catch (error) {+ console.error("Error uploading space icon:", error);+ throw new Error(error instanceof Error ? error.message : "Upload failed");+ }+}diff --git a/apps/web/actions/organizations/add-videos.ts b/apps/web/actions/organizations/add-videos.tsnew file mode 100644index 000000000..0da6957c4--- /dev/null+++ b/apps/web/actions/organizations/add-videos.ts@@ -0,0 +1,102 @@+"use server";++import { getCurrentUser } from "@cap/database/auth/session";+import { sharedVideos, organizations, videos, organizationMembers } from "@cap/database/schema";+import { db } from "@cap/database";+import { eq, and, inArray } from "drizzle-orm";+import { nanoId } from "@cap/database/helpers";+import { revalidatePath } from "next/cache";++export async function addVideosToOrganization(organizationId: string, videoIds: string[]) {+ try {+ const user = await getCurrentUser();++ if (!user || !user.id) {+ throw new Error("Unauthorized");+ }++ if (!organizationId || !videoIds || videoIds.length === 0) {+ throw new Error("Missing required data");+ }++ const [organization] = await db()+ .select()+ .from(organizations)+ .where(eq(organizations.id, organizationId));++ if (!organization) {+ throw new Error("Organization not found");+ }++ const isOrgOwner = organization.ownerId === user.id;+ let hasAccess = isOrgOwner;++ if (!isOrgOwner) {+ const orgMembership = await db()+ .select({ id: organizationMembers.id })+ .from(organizationMembers)+ .where(+ and(+ eq(organizationMembers.userId, user.id),+ eq(organizationMembers.organizationId, organizationId)+ )+ )+ .limit(1);++ hasAccess = orgMembership.length > 0;+ }++ if (!hasAccess) {+ throw new Error("You don't have permission to add videos to this organization");+ }++ const userVideos = await db()+ .select({ id: videos.id })+ .from(videos)+ .where(and(eq(videos.ownerId, user.id), inArray(videos.id, videoIds)));++ const validVideoIds = userVideos.map(v => v.id);++ if (validVideoIds.length === 0) {+ throw new Error("No valid videos found");+ }++ const existingSharedVideos = await db()+ .select({ videoId: sharedVideos.videoId })+ .from(sharedVideos)+ .where(and(+ eq(sharedVideos.organizationId, organizationId),+ inArray(sharedVideos.videoId, validVideoIds)+ ));++ const existingVideoIds = existingSharedVideos.map(sv => sv.videoId);+ const newVideoIds = validVideoIds.filter(id => !existingVideoIds.includes(id));++ if (newVideoIds.length === 0) {+ return { success: true, message: "Videos already shared with organization" };+ }++ const sharedVideoEntries = newVideoIds.map(videoId => ({+ id: nanoId(),+ videoId,+ organizationId,+ sharedByUserId: user.id,+ }));++ await db().insert(sharedVideos).values(sharedVideoEntries);++ revalidatePath(`/dashboard/spaces/${organizationId}`);+ revalidatePath("/dashboard/caps");++ return {+ success: true,+ message: `${newVideoIds.length} video${newVideoIds.length === 1 ? '' : 's'} shared with organization`+ };+ } catch (error) {+ console.error("Error adding videos to organization:", error);+ return {+ success: false,+ error: error instanceof Error ? error.message : "Failed to add videos to organization"+ };+ }+}\ No newline at end of filediff --git a/apps/web/actions/organizations/get-organization-videos.ts b/apps/web/actions/organizations/get-organization-videos.tsnew file mode 100644index 000000000..c43f370dd--- /dev/null+++ b/apps/web/actions/organizations/get-organization-videos.ts@@ -0,0 +1,38 @@+"use server";++import { getCurrentUser } from "@cap/database/auth/session";+import { sharedVideos } from "@cap/database/schema";+import { db } from "@cap/database";+import { eq } from "drizzle-orm";++export async function getOrganizationVideoIds(organizationId: string) {+ try {+ const user = await getCurrentUser();++ if (!user || !user.id) {+ throw new Error("Unauthorized");+ }++ if (!organizationId) {+ throw new Error("Organization ID is required");+ }++ const videoIds = await db()+ .select({+ videoId: sharedVideos.videoId,+ })+ .from(sharedVideos)+ .where(eq(sharedVideos.organizationId, organizationId));++ return {+ success: true,+ data: videoIds.map(v => v.videoId)+ };+ } catch (error) {+ console.error("Error fetching organization video IDs:", error);+ return {+ success: false,+ error: error instanceof Error ? error.message : "Failed to fetch organization videos"+ };+ }+}\ No newline at end of filediff --git a/apps/web/actions/spaces/add-videos.ts b/apps/web/actions/spaces/add-videos.tsnew file mode 100644index 000000000..81a5e9c41--- /dev/null+++ b/apps/web/actions/spaces/add-videos.ts@@ -0,0 +1,80 @@+"use server";++import { getCurrentUser } from "@cap/database/auth/session";+import { spaceVideos, spaces, videos } from "@cap/database/schema";+import { db } from "@cap/database";+import { eq, and, inArray } from "drizzle-orm";+import { nanoId } from "@cap/database/helpers";+import { revalidatePath } from "next/cache";++export async function addVideosToSpace(spaceId: string, videoIds: string[]) {+ try {+ const user = await getCurrentUser();++ if (!user || !user.id) {+ throw new Error("Unauthorized");+ }++ if (!spaceId || !videoIds || videoIds.length === 0) {+ throw new Error("Missing required data");+ }++ const [space] = await db()+ .select()+ .from(spaces)+ .where(eq(spaces.id, spaceId));++ if (!space) {+ throw new Error("Space not found");+ }++ const userVideos = await db()+ .select({ id: videos.id })+ .from(videos)+ .where(and(eq(videos.ownerId, user.id), inArray(videos.id, videoIds)));++ const validVideoIds = userVideos.map(v => v.id);++ if (validVideoIds.length === 0) {+ throw new Error("No valid videos found");+ }++ const existingSpaceVideos = await db()+ .select({ videoId: spaceVideos.videoId })+ .from(spaceVideos)+ .where(and(+ eq(spaceVideos.spaceId, spaceId),+ inArray(spaceVideos.videoId, validVideoIds)+ ));++ const existingVideoIds = existingSpaceVideos.map(sv => sv.videoId);+ const newVideoIds = validVideoIds.filter(id => !existingVideoIds.includes(id));++ if (newVideoIds.length === 0) {+ return { success: true, message: "Videos already added to space" };+ }++ const spaceVideoEntries = newVideoIds.map(videoId => ({+ id: nanoId(),+ videoId,+ spaceId,+ addedById: user.id,+ }));++ await db().insert(spaceVideos).values(spaceVideoEntries);++ revalidatePath(`/dashboard/spaces/${spaceId}`);+ revalidatePath("/dashboard/caps");++ return {+ success: true,+ message: `${newVideoIds.length} video${newVideoIds.length === 1 ? '' : 's'} added to space`+ };+ } catch (error) {+ console.error("Error adding videos to space:", error);+ return {+ success: false,+ error: error instanceof Error ? error.message : "Failed to add videos to space"+ };+ }+}\ No newline at end of filediff --git a/apps/web/actions/spaces/get-space-videos.ts b/apps/web/actions/spaces/get-space-videos.tsnew file mode 100644index 000000000..bff5ad1b2--- /dev/null+++ b/apps/web/actions/spaces/get-space-videos.ts@@ -0,0 +1,38 @@+"use server";++import { getCurrentUser } from "@cap/database/auth/session";+import { spaceVideos } from "@cap/database/schema";+import { db } from "@cap/database";+import { eq } from "drizzle-orm";++export async function getSpaceVideoIds(spaceId: string) {+ try {+ const user = await getCurrentUser();++ if (!user || !user.id) {+ throw new Error("Unauthorized");+ }++ if (!spaceId) {+ throw new Error("Space ID is required");+ }++ const videoIds = await db()+ .select({+ videoId: spaceVideos.videoId,+ })+ .from(spaceVideos)+ .where(eq(spaceVideos.spaceId, spaceId));++ return {+ success: true,+ data: videoIds.map(v => v.videoId)+ };+ } catch (error) {+ console.error("Error fetching space video IDs:", error);+ return {+ success: false,+ error: error instanceof Error ? error.message : "Failed to fetch space videos"+ };+ }+}\ No newline at end of filediff --git a/apps/web/actions/videos/get-user-videos.ts b/apps/web/actions/videos/get-user-videos.tsnew file mode 100644index 000000000..2d7ed12bc--- /dev/null+++ b/apps/web/actions/videos/get-user-videos.ts@@ -0,0 +1,71 @@+"use server";++import { getCurrentUser } from "@cap/database/auth/session";+import { videos, comments, users } from "@cap/database/schema";+import { db } from "@cap/database";+import { eq, desc, sql } from "drizzle-orm";++export async function getUserVideos(limit: number = 20) {+ try {+ const user = await getCurrentUser();++ if (!user || !user.id) {+ throw new Error("Unauthorized");+ }++ const userId = user.id;++ const videoData = await db()+ .select({+ id: videos.id,+ ownerId: videos.ownerId,+ name: videos.name,+ createdAt: videos.createdAt,+ metadata: videos.metadata,+ totalComments: sql<number>`COUNT(DISTINCT CASE WHEN ${comments.type} = 'text' THEN ${comments.id} END)`,+ totalReactions: sql<number>`COUNT(DISTINCT CASE WHEN ${comments.type} = 'emoji' THEN ${comments.id} END)`,+ ownerName: users.name,+ effectiveDate: sql<string>`+ COALESCE(+ JSON_UNQUOTE(JSON_EXTRACT(${videos.metadata}, '$.customCreatedAt')),+ ${videos.createdAt}+ )+ `,+ })+ .from(videos)+ .leftJoin(comments, eq(videos.id, comments.videoId))+ .leftJoin(users, eq(videos.ownerId, users.id))+ .where(eq(videos.ownerId, userId))+ .groupBy(+ videos.id,+ videos.ownerId,+ videos.name,+ videos.createdAt,+ videos.metadata,+ users.name+ )+ .orderBy(+ desc(sql`COALESCE(+ JSON_UNQUOTE(JSON_EXTRACT(${videos.metadata}, '$.customCreatedAt')),+ ${videos.createdAt}+ )`)+ )+ .limit(limit);++ const processedVideoData = videoData.map((video) => {+ const { effectiveDate, ...videoWithoutEffectiveDate } = video;+ return {+ ...videoWithoutEffectiveDate,+ ownerName: video.ownerName ?? "",+ metadata: video.metadata as+ | { customCreatedAt?: string; [key: string]: any }+ | undefined,+ };+ });++ return { success: true, data: processedVideoData };+ } catch (error) {+ console.error("Error fetching user videos:", error);+ return { success: false, error: "Failed to fetch videos" };+ }+}\ No newline at end of filediff --git a/apps/web/app/api/caps/share/route.ts b/apps/web/app/api/caps/share/route.tsdeleted file mode 100644index a777041cd..000000000--- a/apps/web/app/api/caps/share/route.ts+++ /dev/null@@ -1,62 +0,0 @@-import { NextRequest, NextResponse } from "next/server";-import { db } from "@cap/database";-import { getCurrentUser } from "@cap/database/auth/session";-import { sharedVideos, videos } from "@cap/database/schema";-import { eq, and } from "drizzle-orm";-import { nanoId } from "@cap/database/helpers";--export async function POST(request: NextRequest) {- const user = await getCurrentUser();- if (!user) {- return NextResponse.json({ error: "Unauthorized" }, { status: 401 });- }-- const { capId, organizationIds } = await request.json();-- try {- const [cap] = await db().select().from(videos).where(eq(videos.id, capId));- if (!cap || cap.ownerId !== user.id) {- return NextResponse.json({ error: "Unauthorized" }, { status: 403 });- }-- const currentSharedOrganizations = await db()- .select()- .from(sharedVideos)- .where(eq(sharedVideos.videoId, capId));-- for (const sharedOrganization of currentSharedOrganizations) {- if (!organizationIds.includes(sharedOrganization.organizationId)) {- await db()- .delete(sharedVideos)- .where(- and(- eq(sharedVideos.videoId, capId),- eq(sharedVideos.organizationId, sharedOrganization.organizationId)- )- );- }- }-- for (const organizationId of organizationIds) {- const existingShare = currentSharedOrganizations.find(- (share) => share.organizationId === organizationId- );- if (!existingShare) {- await db().insert(sharedVideos).values({- id: nanoId(),- videoId: capId,- organizationId: organizationId,- sharedByUserId: user.id,- });- }- }-- return NextResponse.json({ success: true });- } catch (error) {- console.error("Error updating shared spaces:", error);- return NextResponse.json(- { error: "Internal server error" },- { status: 500 }- );- }-}diff --git a/apps/web/app/api/desktop/[...route]/root.ts b/apps/web/app/api/desktop/[...route]/root.tsindex 9ae0eca6a..8b6f93a85 100644--- a/apps/web/app/api/desktop/[...route]/root.ts+++ b/apps/web/app/api/desktop/[...route]/root.ts@@ -25,7 +25,6 @@ app.post(const { feedback, os, version } = c.req.valid("form");try {- // Send feedback to Discord channelconst discordWebhookUrl = serverEnv().DISCORD_FEEDBACK_WEBHOOK_URL;if (!discordWebhookUrl)throw new Error("Discord webhook URL is not configured");@@ -66,7 +65,6 @@ app.get("/plan", async (c) => {subscriptionStatus: user.stripeSubscriptionStatus,});- // Check for third-party Stripe subscriptionif (user.thirdPartyStripeSubscriptionId) {isSubscribed = true;}diff --git a/apps/web/app/dashboard/_components/AdminNavbar/AdminDesktopNav.tsx b/apps/web/app/dashboard/_components/AdminNavbar/AdminDesktopNav.tsxindex fff24324b..7251fc3a8 100644--- a/apps/web/app/dashboard/_components/AdminNavbar/AdminDesktopNav.tsx+++ b/apps/web/app/dashboard/_components/AdminNavbar/AdminDesktopNav.tsx@@ -1,6 +1,6 @@"use client";import { Tooltip } from "@/components/Tooltip";-import { Logo } from "@cap/ui";+import { Button, Logo } from "@cap/ui";import clsx from "clsx";import { motion } from "framer-motion";import { useDetectPlatform } from "hooks/useDetectPlatform";@@ -8,7 +8,7 @@ import { ChevronRight } from "lucide-react";import Link from "next/link";import { useEffect } from "react";import { useSharedContext } from "../DynamicSharedLayout";-import { AdminNavItems } from "./AdminNavItems";+import AdminNavItems from "./AdminNavItems";export const AdminDesktopNav = () => {const { toggleSidebarCollapsed, sidebarCollapsed } = useSharedContext();@@ -50,33 +50,40 @@ export const AdminDesktopNav = () => {}}className={clsx("hidden z-50 h-full lg:flex group", "relative")}>- <div className="flex flex-col w-full max-w-[220px] mx-auto">- <div className="flex overflow-hidden flex-col flex-grow h-full">- <div className="flex flex-col items-center px-3 pt-5 w-full h-full justify-top">- <div className="flex justify-start items-center mb-3.5 w-full truncate min-h-8">- <Link href="/dashboard">- <Logo- hideLogoName={sidebarCollapsed}- className="mx-auto w-[120px] h-[40px]"- />- </Link>- </div>+ <div className="flex flex-col w-full max-w-[220px] mx-auto h-full">+ <div className="flex justify-start items-center px-3 pt-5 mb-3.5 w-full truncate min-h-8">+ <Link href="/dashboard">+ <Logo+ hideLogoName={sidebarCollapsed}+ className="mx-auto w-[120px] h-[40px]"+ />+ </Link>+ </div>++ <div className="flex overflow-y-auto flex-col flex-grow">+ <div className="flex flex-col px-3 h-full"><AdminNavItems /></div></div>- {/* Collapse toggle button - moved outside the overflow container */}<Tooltipkbd={[cmdSymbol, "Shift", "S"]}position="right"content="Toggle collapse">- <button+ <Button+ variant="dark"onClick={toggleSidebarCollapsed}- className="absolute right-[-12px] hover:border-gray-3 hover:bg-gray-2 top-[50%] transform -translate-y-1/2 rounded-full p-1 border bg-gray-1 border-gray-3 transition-colors z-10"+ className="absolute right-[-12px] size-7 p-0 min-w-[unset] hover:border-gray-3 hover:bg-gray-2 top-[50%] transform -translate-y-1/2 rounded-full border bg-gray-1 border-gray-3 transition-colors z-10">- <ChevronRight size={16} className={clsx("transition-transform duration-200 text-gray-12", sidebarCollapsed ? "rotate-180" : "")} />- </button>+ <ChevronRight+ size={14}+ className={clsx(+ "transition-transform duration-200 text-gray-12",+ sidebarCollapsed ? "rotate-180" : ""+ )}+ />+ </Button></Tooltip></div></motion.div>diff --git a/apps/web/app/dashboard/_components/AdminNavbar/AdminMobileNav.tsx b/apps/web/app/dashboard/_components/AdminNavbar/AdminMobileNav.tsxindex d40671ee0..ed23b2a5b 100644--- a/apps/web/app/dashboard/_components/AdminNavbar/AdminMobileNav.tsx+++ b/apps/web/app/dashboard/_components/AdminNavbar/AdminMobileNav.tsx@@ -8,7 +8,7 @@ import { AnimatePresence, motion } from "framer-motion";import { Menu, X } from "lucide-react";import Link from "next/link";import { MutableRefObject, useState } from "react";-import { AdminNavItems } from "./AdminNavItems";+import AdminNavItems from "./AdminNavItems";export const AdminMobileNav = () => {const [sidebarOpen, setSidebarOpen] = useState(false);diff --git a/apps/web/app/dashboard/_components/AdminNavbar/AdminNavItems.tsx b/apps/web/app/dashboard/_components/AdminNavbar/AdminNavItems.tsxindex 8fb414f3f..cde7fa06e 100644--- a/apps/web/app/dashboard/_components/AdminNavbar/AdminNavItems.tsx+++ b/apps/web/app/dashboard/_components/AdminNavbar/AdminNavItems.tsx@@ -15,6 +15,7 @@ import {Popover,PopoverContent,PopoverTrigger,+ Avatar,} from "@cap/ui";import { classNames } from "@cap/utils";import { Check, ChevronDown, Plus } from "lucide-react";@@ -22,7 +23,6 @@ import Link from "next/link";import { usePathname } from "next/navigation";import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";-import { Avatar } from "@/app/s/[videoId]/_components/tabs/Activity";import { NewOrganization } from "@/components/forms/NewOrganization";import { Tooltip } from "@/components/Tooltip";import { UsageButton } from "@/components/UsageButton";@@ -41,12 +41,16 @@ import Image from "next/image";import { useRef, useState } from "react";import { updateActiveOrganization } from "./server";+import SpacesList from "./SpacesList";interface Props {toggleMobileNav?: () => void;}-export const AdminNavItems = ({ toggleMobileNav }: Props) => {+export const navItemClass =+ "flex items-center justify-start rounded-xl outline-none tracking-tight overflow-hidden";++const AdminNavItems = ({ toggleMobileNav }: Props) => {const pathname = usePathname();const [open, setOpen] = useState(false);const [hoveredItem, setHoveredItem] = useState<string | null>(null);@@ -60,19 +64,7 @@ export const AdminNavItems = ({ toggleMobileNav }: Props) => {subNav: [],},{- name: "Shared Caps",- href: `/dashboard/shared-caps`,- icon: faShareNodes,- subNav: [],- },- {- name: "Download App",- href: `/download`,- icon: faDownload,- subNav: [],- },- {- name: "Organization",+ name: "Organization Settings",href: `/dashboard/settings/organization`,icon: faBuilding,subNav: [],@@ -89,9 +81,6 @@ export const AdminNavItems = ({ toggleMobileNav }: Props) => {: []),];- const navItemClass =- "flex items-center justify-start px-3 rounded-xl outline-none tracking-tight overflow-hidden";-const [dialogOpen, setDialogOpen] = useState(false);const {organizationData: orgData,@@ -102,6 +91,8 @@ export const AdminNavItems = ({ toggleMobileNav }: Props) => {const [createLoading, setCreateLoading] = useState(false);const [organizationName, setOrganizationName] = useState("");+ const isPathActive = (path: string) => pathname.includes(path);+return (<Dialog open={dialogOpen} onOpenChange={setDialogOpen}><Popover open={open} onOpenChange={setOpen}>@@ -112,27 +103,31 @@ export const AdminNavItems = ({ toggleMobileNav }: Props) => {><PopoverTrigger asChild><motion.div- initial={{- width: sidebarCollapsed ? "40px" : "100%",- }}- animate={{- width: sidebarCollapsed ? "40px" : "100%",- }}transition={{- type: "spring",- bounce: 0.2,- width: { type: "tween", duration: 0.2 },+ type: "easeInOut",+ duration: 0.2,}}className={clsx(- "p-2.5 mt-2.5 rounded-xl border cursor-pointer bg-gradient-to-t from-gray-4 to-gray-2 border-gray-4"+ "mt-1.5 mx-auto p-2.5 rounded-xl cursor-pointer bg-gray-3",+ sidebarCollapsed ? "w-fit" : "w-full")}><div- className="flex justify-between items-center cursor-pointer"+ className={clsx(+ "flex items-center cursor-pointer",+ sidebarCollapsed ? "justify-center" : "justify-between"+ )}role="combobox"aria-expanded={open}>- <div className="flex justify-between items-center w-full text-left">+ <div+ className={clsx(+ "flex items-center",+ sidebarCollapsed+ ? "justify-center w-fit"+ : "justify-between w-full"+ )}+ ><div className="flex items-center">{activeOrg?.organization.iconUrl ? (<div className="overflow-hidden relative flex-shrink-0 rounded-full size-[18px]">@@ -147,17 +142,25 @@ export const AdminNavItems = ({ toggleMobileNav }: Props) => {</div>) : (<Avatar- letterClass="text-gray-1 text-[10px]"- className="relative flex-shrink-0 size-[18px]"+ letterClass={clsx(+ sidebarCollapsed ? "text-sm" : "text-[11px]"+ )}+ className={clsx(+ "relative flex-shrink-0 mx-auto",+ sidebarCollapsed ? "size-6" : "size-5"+ )}name={activeOrg?.organization.name ??"No organization found"}/>)}- <p className="ml-2.5 text-sm text-gray-12 truncate">- {activeOrg?.organization.name ?? "No organization found"}- </p>+ {!sidebarCollapsed && (+ <p className="ml-2.5 text-sm text-gray-12 truncate">+ {activeOrg?.organization.name ??+ "No organization found"}+ </p>+ )}</div>{!sidebarCollapsed && (<ChevronDown@@ -212,7 +215,7 @@ export const AdminNavItems = ({ toggleMobileNav }: Props) => {</div>) : (<Avatar- letterClass="text-gray-1 text-xs"+ letterClass="text-xs"className="relative flex-shrink-0 size-5"name={organization.organization.name}/>@@ -239,10 +242,10 @@ export const AdminNavItems = ({ toggleMobileNav }: Props) => {<Buttonvariant="dark"size="sm"- className="flex gap-1 items-center mt-3 w-full"+ className="flex gap-1 items-center my-2 w-[90%] mx-auto text-sm">- <Plus className="w-4 h-auto" />- Add new organization+ <Plus className="w-3.5 h-auto" />+ New organization</Button></DialogTrigger></CommandGroup>@@ -258,52 +261,42 @@ export const AdminNavItems = ({ toggleMobileNav }: Props) => {><divclassName={clsx(- "mt-8",+ "mt-5",sidebarCollapsed ? "flex flex-col justify-center items-center" : "")}>{manageNavigation.map((item) => (<divkey={item.name}- className="flex relative justify-center items-center w-full mb-2.5"+ className="flex relative justify-center items-center mb-1.5 w-full">- {/* Active indicator - always visible for active items */}- {pathname.includes(item.href) && (+ {isPathActive(item.href) && (<motion.div- initial={{- width: sidebarCollapsed ? 36 : "100%",- height: sidebarCollapsed ? 36 : "100%",- }}animate={{width: sidebarCollapsed ? 36 : "100%",- height: sidebarCollapsed ? 36 : "100%",}}transition={{- type: "spring",- bounce: 0.2,- duration: 0.4,- width: { type: "tween", duration: 0.05 },+ layout: {+ type: "tween",+ duration: 0.15,+ },+ width: {+ type: "tween",+ duration: 0.05,+ },}}- layoutId="underline"- id="underline"- className={clsx(- "absolute rounded-xl border bg-gray-3 border-gray-4",- sidebarCollapsed- ? "inset-0 right-0 left-0 mx-auto w-9 h-9"- : "inset-0 ml-[2px]"- )}+ layoutId="navlinks"+ id="navlinks"+ className="absolute h-[36px] w-full rounded-xl pointer-events-none bg-gray-3"/>)}- {/* Hover indicator - only visible when hovering non-active items */}- {hoveredItem === item.name && !pathname.includes(item.href) && (+ {hoveredItem === item.name && !isPathActive(item.href) && (<motion.divlayoutId="hoverIndicator"className={clsx(- "absolute bg-transparent rounded-xl border-gray-4 border-[1px]",- sidebarCollapsed- ? "inset-0 right-0 left-0 mx-auto w-9 h-9"- : "inset-0 ml-[2px]"+ "absolute bg-transparent rounded-xl",+ sidebarCollapsed ? "inset-0 mx-auto w-9 h-9" : "inset-0")}initial={{ opacity: 0 }}animate={{ opacity: 1 }}@@ -328,18 +321,23 @@ export const AdminNavItems = ({ toggleMobileNav }: Props) => {prefetch={false}href={item.href}className={classNames(- "relative border border-transparent transition-opacity duration-200 z-3",+ "relative border border-transparent transition z-3",sidebarCollapsed- ? "flex justify-center items-center w-full h-9"- : "py-2 w-full",+ ? "flex justify-center px-0 items-center w-full size-9"+ : "py-2 w-full px-3",+ isPathActive(item.href)+ ? "bg-transparent pointer-events-none"+ : "hover:bg-gray-2",navItemClass)}><FontAwesomeIconicon={item.icon as IconDefinition}className={clsx(- "flex-shrink-0 size-3.5 transition-colors duration-200 stroke-[1.5px]",- sidebarCollapsed ? "text-gray-12 mx-auto" : "text-gray-10"+ "flex-shrink-0 transition-colors",+ sidebarCollapsed+ ? "text-gray-12 size-[18px] mx-auto"+ : "text-gray-10 size-3.5")}aria-hidden="true"/>@@ -355,20 +353,20 @@ export const AdminNavItems = ({ toggleMobileNav }: Props) => {</Tooltip></div>))}++ <SpacesList toggleMobileNav={() => toggleMobileNav?.()} /></div>- <div className="pb-0 w-full lg:pb-5">- {buildEnv.NEXT_PUBLIC_IS_CAP && (- <UsageButton- toggleMobileNav={() => toggleMobileNav?.()}- subscribed={userIsSubscribed}- />- )}+ <div className="pb-4 mt-auto w-full">+ <UsageButton+ toggleMobileNav={() => toggleMobileNav?.()}+ subscribed={userIsSubscribed}+ /><p className="mt-4 text-xs text-center truncate text-gray-10">Cap Software, Inc. {new Date().getFullYear()}.</p></div></nav>- <DialogContent className="p-0 w-full max-w-md rounded-xl border bg-gray-2 border-gray-4">+ <DialogContent className="p-0 w-full max-w-md rounded-xl bg-gray-2"><DialogHeadericon={<FontAwesomeIcon icon={faBuilding} />}description="A new organization to share caps with your team"diff --git a/apps/web/app/dashboard/_components/AdminNavbar/SpaceDialog.tsx b/apps/web/app/dashboard/_components/AdminNavbar/SpaceDialog.tsxnew file mode 100644index 000000000..ca396be11--- /dev/null+++ b/apps/web/app/dashboard/_components/AdminNavbar/SpaceDialog.tsx@@ -0,0 +1,293 @@+"use client";++import { zodResolver } from "@hookform/resolvers/zod";+import * as z from "zod";+import React from "react";+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+ Form,+ FormControl,+ FormField,+ Input,+ CardDescription,+ DialogFooter,+ Button,+ Label,+} from "@cap/ui";+import { useForm } from "react-hook-form";+import { useState, useRef } from "react";+import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";+import { toast } from "sonner";+import { FileInput } from "@/components/FileInput";+import { createSpace } from "./server";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { faLayerGroup } from "@fortawesome/free-solid-svg-icons";+import { updateSpace } from "@/actions/organization/update-space";+import { MemberSelect } from "../../spaces/[spaceId]/components/MemberSelect";++interface SpaceDialogProps {+ open: boolean;+ onClose: () => void;+ edit?: boolean;+ space?: {+ id: string;+ name: string;+ members: string[];+ iconUrl?: string;+ } | null;+ onSpaceUpdated?: () => void;+}++const SpaceDialog = ({+ open,+ onClose,+ edit = false,+ space,+ onSpaceUpdated,+}: SpaceDialogProps) => {+ const [isSubmitting, setIsSubmitting] = useState(false);+ const formRef = useRef<HTMLFormElement | null>(null);+ const [spaceName, setSpaceName] = useState(space?.name || "");++ // Reset spaceName when dialog opens or space changes+ React.useEffect(() => {+ setSpaceName(space?.name || "");+ }, [space, open]);++ return (+ <Dialog open={open} onOpenChange={(open) => !open && onClose()}>+ <DialogContent className="p-0 w-full max-w-md rounded-xl border bg-gray-2 border-gray-4">+ <DialogHeader+ icon={<FontAwesomeIcon icon={faLayerGroup} />}+ description={+ edit+ ? "Edit your space details"+ : "A new space for your team to collaborate"+ }+ >+ <DialogTitle className="text-lg text-gray-12">+ {edit ? "Edit Space" : "Create New Space"}+ </DialogTitle>+ </DialogHeader>+ <div className="p-5">+ <NewSpaceForm+ formRef={formRef}+ setCreateLoading={setIsSubmitting}+ onSpaceCreated={onSpaceUpdated || onClose}+ onNameChange={setSpaceName}+ edit={edit}+ space={space}+ />+ </div>+ <DialogFooter>+ <Button variant="gray" size="sm" onClick={onClose}>+ Cancel+ </Button>+ <Button+ variant="dark"+ size="sm"+ disabled={isSubmitting || !spaceName.trim().length}+ spinner={isSubmitting}+ onClick={() => formRef.current?.requestSubmit()}+ type="submit"+ >+ {isSubmitting+ ? edit+ ? "Saving..."+ : "Creating..."+ : edit+ ? "Save"+ : "Create"}+ </Button>+ </DialogFooter>+ </DialogContent>+ </Dialog>+ );+};++export interface NewSpaceFormProps {+ onSpaceCreated: () => void;+ formRef?: React.RefObject<HTMLFormElement>;+ setCreateLoading?: React.Dispatch<React.SetStateAction<boolean>>;+ onNameChange?: (name: string) => void;+ edit?: boolean;+ space?: {+ id: string;+ name: string;+ members: string[];+ iconUrl?: string;+ } | null;+}++const formSchema = z.object({+ name: z+ .string()+ .min(1, "Space name is required")+ .max(25, "Space name must be at most 25 characters"),+ members: z.array(z.string()).optional(),+});++export const NewSpaceForm: React.FC<NewSpaceFormProps> = (props) => {+ const { edit = false, space } = props;++ const form = useForm<z.infer<typeof formSchema>>({+ resolver: zodResolver(formSchema),+ defaultValues: {+ name: space?.name || "",+ members: space?.members || [],+ },+ mode: "onChange",+ });++ React.useEffect(() => {+ if (space) {+ form.reset({+ name: space.name,+ members: space.members,+ });+ } else {+ form.reset({ name: "", members: [] });+ }+ }, [space, form]);++ const [selectedFile, setSelectedFile] = useState<File | null>(null);+ const [isUploading, setIsUploading] = useState(false);+ const { activeOrganization } = useSharedContext();++ return (+ <Form {...form}>+ <form+ className="space-y-4"+ ref={props.formRef}+ onSubmit={form.handleSubmit(async (values) => {+ try {+ if (selectedFile) {+ setIsUploading(true);+ }+ props.setCreateLoading?.(true);++ const formData = new FormData();+ formData.append("name", values.name);++ if (selectedFile) {+ formData.append("icon", selectedFile);+ }++ if (values.members && values.members.length > 0) {+ values.members.forEach((id) => {+ formData.append("members[]", id);+ });+ }++ if (edit && space?.id) {+ formData.append("id", space.id);+ // If the user removed the icon, send a removeIcon flag+ if (selectedFile === null && space.iconUrl) {+ formData.append("removeIcon", "true");+ }+ await updateSpace(formData);+ toast.success("Space updated successfully");+ } else {+ await createSpace(formData);+ toast.success("Space created successfully");+ }++ form.reset();+ setSelectedFile(null);+ props.onSpaceCreated();+ } catch (error: any) {+ console.error(+ edit ? "Error updating space:" : "Error creating space:",+ error+ );+ toast.error(+ error?.message ||+ error?.error ||+ (edit ? "Failed to update space" : "Failed to create space")+ );+ } finally {+ setIsUploading(false);+ props.setCreateLoading?.(false);+ }+ })}+ >+ <div className="space-y-4">+ <FormField+ control={form.control}+ name="name"+ render={({ field }) => (+ <FormControl>+ <Input+ placeholder="Space name"+ maxLength={25}+ {...field}+ onChange={(e) => {+ field.onChange(e);+ props.onNameChange?.(e.target.value);+ }}+ />+ </FormControl>+ )}+ />++ {/* Space Members Input */}+ <div className="space-y-1">+ <Label htmlFor="members">Members</Label>+ <CardDescription className="w-full max-w-[400px]">+ Add team members to this space.+ </CardDescription>+ </div>+ <FormField+ control={form.control}+ name="members"+ render={({ field }) => {+ return (+ <FormControl>+ <MemberSelect+ placeholder="Add member..."+ showEmptyIfNoMembers+ disabled={isUploading}+ selected={(activeOrganization?.members ?? [])+ .filter((m) => (field.value ?? []).includes(m.user.id))+ .map((m) => ({+ value: m.user.id,+ label: m.user.name || m.user.email,+ image: m.user.image || undefined,+ }))}+ onSelect={(selected) =>+ field.onChange(selected.map((opt) => opt.value))+ }+ />+ </FormControl>+ );+ }}+ />++ <div className="space-y-1">+ <Label htmlFor="icon">Space Icon</Label>+ <CardDescription className="w-full max-w-[400px]">+ Upload a custom logo or icon for your space.+ </CardDescription>+ </div>++ <div className="relative mt-2">+ <FileInput+ id="icon"+ name="icon"+ initialPreviewUrl={space?.iconUrl || null}+ notDraggingClassName="hover:bg-gray-3"+ onChange={setSelectedFile}+ disabled={isUploading}+ isLoading={isUploading}+ />+ </div>+ </div>+ </form>+ </Form>+ );+};++export default SpaceDialog;diff --git a/apps/web/app/dashboard/_components/AdminNavbar/SpacesList.tsx b/apps/web/app/dashboard/_components/AdminNavbar/SpacesList.tsxnew file mode 100644index 000000000..7b79b6baa--- /dev/null+++ b/apps/web/app/dashboard/_components/AdminNavbar/SpacesList.tsx@@ -0,0 +1,371 @@+"use client";++import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";+import { ChevronDown, ChevronUp } from "lucide-react";+import Link from "next/link";+import { useState } from "react";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import {+ faLayerGroup,+ faPlus,+ faXmark,+} from "@fortawesome/free-solid-svg-icons";+import { deleteSpace } from "@/actions/organization/delete-space";+import clsx from "clsx";+import SpaceDialog from "./SpaceDialog";+import { Button, Avatar } from "@cap/ui";+import { shareCap } from "@/actions/caps/share";+import { toast } from "sonner";+import { useParams, usePathname, useRouter } from "next/navigation";+import { Tooltip } from "@/components/Tooltip";+import { motion } from "framer-motion";+import { useMemo } from "react";+import Image from "next/image";++import { navItemClass } from "./AdminNavItems";+import { Spaces } from "../../dashboard-data";++const SpacesList = ({ toggleMobileNav }: { toggleMobileNav?: () => void }) => {+ const { spacesData, sidebarCollapsed, user } = useSharedContext();+ const [showSpaceDialog, setShowSpaceDialog] = useState(false);++ const [showAllSpaces, setShowAllSpaces] = useState(false);+ const [activeDropTarget, setActiveDropTarget] = useState<string | null>(null);+ const router = useRouter();+ const params = useParams();+ const pathname = usePathname();++ const handleDeleteSpace = async (e: React.MouseEvent, spaceId: string) => {+ e.preventDefault();+ e.stopPropagation();++ if (+ confirm(+ "Are you sure you want to delete this space? This action cannot be undone."+ )+ ) {+ try {+ const result = await deleteSpace(spaceId);++ if (result.success) {+ toast.success("Space deleted successfully");++ router.refresh();++ // If we're currently on the deleted space's page, redirect to dashboard+ if (params.spaceId === spaceId) {+ router.push("/dashboard");+ }+ } else {+ toast.error(result.error || "Failed to delete space");+ }+ } catch (error) {+ console.error("Error deleting space:", error);+ toast.error("Failed to delete space");+ }+ }+ };++ if (!spacesData) return null;++ const { displayedSpaces, hasMoreSpaces, hiddenSpacesCount } = useMemo(() => {+ return {+ displayedSpaces: showAllSpaces ? spacesData : spacesData.slice(0, 3),+ hasMoreSpaces: spacesData.length > 3,+ hiddenSpacesCount: Math.max(0, spacesData.length - 3),+ };+ }, [spacesData, showAllSpaces]);++ const handleDragOver = (e: React.DragEvent, spaceId: string) => {+ e.preventDefault();+ setActiveDropTarget(spaceId);+ };++ const handleDragLeave = () => {+ setActiveDropTarget(null);+ };++ const handleDrop = async (e: React.DragEvent, spaceId: string) => {+ e.preventDefault();+ setActiveDropTarget(null);++ try {+ const capData = e.dataTransfer.getData("application/cap");+ if (!capData) return;++ const cap = JSON.parse(capData);++ // Call the share action with just this space ID+ const result = await shareCap({+ capId: cap.id,+ spaceIds: [spaceId],+ });++ if (result.success) {+ const space = spacesData.find((s) => s.id === spaceId);+ toast.success(`Shared "${cap.name}" to ${space?.name || "space"}`);+ router.refresh();+ } else {+ toast.error(result.error || "Failed to share cap");+ }+ } catch (error) {+ console.error("Error sharing cap:", error);+ toast.error("Failed to share cap");+ }+ };++ const activeSpaceParams = (spaceId: string) => params.spaceId === spaceId;++ return (+ <div className="flex flex-col mt-4">+ <div+ className={clsx(+ "flex items-center mb-3",+ sidebarCollapsed ? "justify-center" : "justify-between"+ )}+ >+ <h2+ className={clsx(+ "text-sm font-medium truncate text-gray-12",+ sidebarCollapsed ? "hidden" : "flex"+ )}+ >+ Spaces+ </h2>+ <Tooltip position="right" content="Create space">+ <Button+ className={clsx(+ "p-0 bg-transparent min-w-[unset] hover:bg-gray-3",+ sidebarCollapsed ? "size-8" : "size-7"+ )}+ variant="gray"+ onClick={() => {+ setShowSpaceDialog(true);+ }}+ >+ <FontAwesomeIcon+ className={clsx(+ "text-gray-12",+ sidebarCollapsed ? "size-4" : "size-3"+ )}+ icon={faPlus}+ />+ </Button>+ </Tooltip>+ </div>++ <Tooltip+ content="Browse spaces"+ disable={sidebarCollapsed === false}+ position="right"+ >+ <Link+ passHref+ onClick={() => toggleMobileNav?.()}+ prefetch={false}+ href="/dashboard/spaces/browse"+ className={clsx(+ "relative border border-transparent transition z-3",+ sidebarCollapsed+ ? "flex justify-center px-0 mb-2 items-center w-full size-10"+ : "py-2 w-full px-3 mb-2",+ pathname.includes("/dashboard/spaces/browse")+ ? "bg-gray-3 pointer-events-none"+ : "hover:bg-gray-2",+ navItemClass+ )}+ >+ <FontAwesomeIcon+ icon={faLayerGroup}+ className={clsx(+ "flex-shrink-0 transition-colors",+ sidebarCollapsed+ ? "text-gray-12 size-[18px] mx-auto"+ : "text-gray-10 size-3.5"+ )}+ aria-hidden="true"+ />+ <p+ className={clsx(+ "text-sm text-gray-12 truncate",+ sidebarCollapsed ? "hidden" : "ml-2.5"+ )}+ >+ Browse spaces+ </p>+ </Link>+ </Tooltip>++ {/* Wrapper div with overflow hidden to prevent scrollbar flash */}+ <div className="overflow-hidden">+ <div+ className={clsx(+ "transition-all duration-300",+ showAllSpaces && !sidebarCollapsed+ ? "max-h-[calc(100vh-450px)] overflow-y-auto"+ : "max-h-max overflow-hidden"+ )}+ style={{+ scrollbarWidth: "none",+ msOverflowStyle: "none",+ WebkitOverflowScrolling: "touch",+ }}+ >+ {displayedSpaces.map((space: Spaces) => {+ const isOwner = space.createdById === user?.id;+ return (+ <Tooltip+ position="right"+ disable={!sidebarCollapsed}+ content={space.name}+ key={space.id}+ >+ <div+ className={clsx(+ "relative transition-colors border border-transparent overflow-visible duration-150 rounded-xl mb-1.5",+ activeSpaceParams(space.id)+ ? "hover:bg-gray-3 cursor-default"+ : "cursor-pointer"+ )}+ onDragOver={(e) => handleDragOver(e, space.id)}+ onDragLeave={handleDragLeave}+ onDrop={(e) => handleDrop(e, space.id)}+ >+ {activeSpaceParams(space.id) && (+ <motion.div+ layoutId="navlinks"+ className={clsx(+ "absolute rounded-xl bg-gray-3",+ sidebarCollapsed+ ? "inset-0 right-0 left-0 mx-auto"+ : "inset-0"+ )}+ style={{ willChange: "transform" }}+ transition={{+ layout: {+ type: "tween",+ duration: 0.1,+ },+ }}+ />+ )}+ {activeDropTarget === space.id && (+ <div className="absolute inset-0 z-10 rounded-xl border pointer-events-none border-gray-5 bg-gray-4" />+ )}+ <Link+ href={`/dashboard/spaces/${space.id}`}+ className={clsx(+ "flex relative z-10 items-center px-2 py-2 truncate rounded-xl transition-colors group",+ sidebarCollapsed ? "justify-center" : "",+ activeSpaceParams(space.id)+ ? "hover:bg-gray-3"+ : "hover:bg-gray-2",+ space.primary ? "h-10" : "h-fit"+ )}+ >+ {space.iconUrl ? (+ <Image+ src={space.iconUrl}+ alt={space.name}+ className="relative flex-shrink-0 rounded-full"+ width={sidebarCollapsed ? 24 : 20}+ height={sidebarCollapsed ? 24 : 20}+ />+ ) : (+ <Avatar+ letterClass={clsx(+ sidebarCollapsed ? "text-sm" : "text-[11px]"+ )}+ className={clsx(+ "relative flex-shrink-0",+ sidebarCollapsed ? "size-6" : "size-5"+ )}+ name={space.name}+ />+ )}+ {!sidebarCollapsed && (+ <>+ <span className="ml-2.5 text-sm truncate transition-colors text-gray-11 group-hover:text-gray-12">+ {space.name}+ </span>+ {/* Hide delete button for 'All spaces' synthetic entry */}+ {!space.primary && isOwner && (+ <div+ onClick={(e) => handleDeleteSpace(e, space.id)}+ className={+ "flex justify-center items-center ml-auto rounded-full opacity-0 transition-all group size-6 group-hover:opacity-100 hover:bg-gray-4"+ }+ aria-label={`Delete ${space.name} space`}+ >+ <FontAwesomeIcon+ icon={faXmark}+ className="size-3.5 text-gray-12"+ />+ </div>+ )}+ </>+ )}+ </Link>+ </div>+ </Tooltip>+ );+ })}+ </div>+ </div>++ <SpaceToggleControl+ showAllSpaces={showAllSpaces}+ hasMoreSpaces={hasMoreSpaces}+ sidebarCollapsed={sidebarCollapsed}+ hiddenSpacesCount={hiddenSpacesCount}+ setShowAllSpaces={setShowAllSpaces}+ />++ <SpaceDialog+ open={showSpaceDialog}+ onClose={() => setShowSpaceDialog(false)}+ />+ </div>+ );+};++const SpaceToggleControl = ({+ showAllSpaces,+ hasMoreSpaces,+ sidebarCollapsed,+ hiddenSpacesCount,+ setShowAllSpaces,+}: {+ showAllSpaces: boolean;+ hasMoreSpaces: boolean;+ sidebarCollapsed: boolean;+ hiddenSpacesCount: number;+ setShowAllSpaces: (show: boolean) => void;+}) => {+ if (sidebarCollapsed) return null;+ if (!showAllSpaces && hasMoreSpaces) {+ return (+ <div+ onClick={() => setShowAllSpaces(true)}+ className="flex justify-between items-center p-2 w-full truncate rounded-xl transition-colors cursor-pointer text-gray-10 hover:text-gray-12 hover:bg-gray-3"+ >+ <span className="text-sm text-gray-10">+ {hiddenSpacesCount} more</span>+ <ChevronDown size={16} className="ml-2" />+ </div>+ );+ }+ if (showAllSpaces) {+ return (+ <div+ onClick={() => setShowAllSpaces(false)}+ className="flex justify-between items-center p-2 w-full truncate rounded-xl transition-colors cursor-pointer text-gray-10 hover:text-gray-12 hover:bg-gray-3"+ >+ <span className="text-sm text-gray-10">Show less</span>+ <ChevronUp size={16} className="ml-2" />+ </div>+ );+ }+ return null;+};++export default SpacesList;diff --git a/apps/web/app/dashboard/_components/AdminNavbar/server.ts b/apps/web/app/dashboard/_components/AdminNavbar/server.tsindex 9403c2524..b9c4d5707 100644--- a/apps/web/app/dashboard/_components/AdminNavbar/server.ts+++ b/apps/web/app/dashboard/_components/AdminNavbar/server.ts@@ -9,6 +9,8 @@ import {} from "@cap/database/schema";import { and, eq } from "drizzle-orm";import { revalidatePath } from "next/cache";+import { createSpace as createSpaceAction } from "@/actions/organization/create-space";+import { updateSpace as updateSpaceAction } from "@/actions/organization/update-space";export async function updateActiveOrganization(organizationId: string) {const user = await getCurrentUser();@@ -35,3 +37,31 @@ export async function updateActiveOrganization(organizationId: string) {revalidatePath("/dashboard");}++export async function createSpace(formData: FormData) {+ try {+ const result = await createSpaceAction(formData);++ if (!result.success) {+ throw new Error(result.error || "Failed to create space");+ }++ return result;+ } catch (error) {+ console.error("Error creating space:", error);+ throw error;+ }+}++export async function updateSpace(formData: FormData) {+ try {+ const result = await updateSpaceAction(formData);+ if (!result.success) {+ throw new Error(result.error || "Failed to update space");+ }+ return result;+ } catch (error) {+ console.error("Error updating space:", error);+ throw error;+ }+}diff --git a/apps/web/app/dashboard/_components/Avatar.tsx b/apps/web/app/dashboard/_components/Avatar.tsxnew file mode 100644index 000000000..dd4a13276--- /dev/null+++ b/apps/web/app/dashboard/_components/Avatar.tsx@@ -0,0 +1,88 @@+"use client";++import clsx from "clsx";++// Default palette of 26 visually distinct Tailwind background color classes for Avatar+const avatarDefaultPalette = [+ "bg-blue-200",+ "bg-blue-300",+ "bg-sky-200",+ "bg-sky-300",+ "bg-cyan-200",+ "bg-cyan-300",+ "bg-teal-200",+ "bg-teal-300",+ "bg-emerald-200",+ "bg-emerald-300",+ "bg-green-200",+ "bg-green-300",+ "bg-lime-200",+ "bg-lime-300",+ "bg-yellow-200",+ "bg-yellow-300",+ "bg-indigo-200",+ "bg-indigo-300",+ "bg-purple-200",+ "bg-purple-300",+ "bg-pink-200",+ "bg-pink-300",+ "bg-fuchsia-200",+ "bg-fuchsia-300",+ "bg-rose-200",+ "bg-rose-300",+];++// Palette of slightly darker text colors to match each background+const avatarTextPalette = [+ "text-blue-600",+ "text-blue-700",+ "text-sky-600",+ "text-sky-700",+ "text-cyan-600",+ "text-cyan-700",+ "text-teal-600",+ "text-teal-700",+ "text-emerald-600",+ "text-emerald-700",+ "text-green-600",+ "text-green-700",+ "text-lime-600",+ "text-lime-700",+ "text-yellow-600",+ "text-yellow-700",+ "text-indigo-600",+ "text-indigo-700",+ "text-purple-600",+ "text-purple-700",+ "text-pink-600",+ "text-pink-700",+ "text-fuchsia-600",+ "text-fuchsia-700",+ "text-rose-600",+ "text-rose-700",+];++export const Avatar: React.FC<{+ name: string | null | undefined;+ className?: string;+ letterClass?: string;+}> = ({ name, className = "", letterClass = "text-xs" }) => {+ const initial = name?.[0]?.toUpperCase() || "A";+ const charCode = initial.charCodeAt(0);+ const isAlpha = charCode >= 65 && charCode <= 90;+ const colorIndex = isAlpha ? charCode - 65 : 25; // fallback to last color for non-alpha+ const bgColor = avatarDefaultPalette[colorIndex];+ const textColor = avatarTextPalette[colorIndex];++ return (+ <div+ className={clsx(+ "flex justify-center items-center rounded-full size-4",+ bgColor,+ className+ )}+ >+ <span className={clsx(letterClass, textColor)}>{initial}</span>+ </div>+ );+};diff --git a/apps/web/app/dashboard/_components/DashboardInner.tsx b/apps/web/app/dashboard/_components/DashboardInner.tsxindex e8972e000..8ddee69ae 100644--- a/apps/web/app/dashboard/_components/DashboardInner.tsx+++ b/apps/web/app/dashboard/_components/DashboardInner.tsx@@ -4,7 +4,7 @@ import {useSharedContext,useTheme,} from "@/app/dashboard/_components/DynamicSharedLayout";-import { Avatar } from "@/app/s/[videoId]/_components/tabs/Activity";+import { useEffect } from "react";import { UpgradeModal } from "@/components/UpgradeModal";import { buildEnv } from "@cap/env";import {@@ -14,16 +14,9 @@ import {Popover,PopoverContent,PopoverTrigger,+ Avatar,} from "@cap/ui";-import {- faCrown,- faGear,- faHome,- faMessage,- faMoon,- faSignOut,- faSun,-} from "@fortawesome/free-solid-svg-icons";+import { MembersDialog } from "@/app/dashboard/spaces/[spaceId]/components/MembersDialog";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import clsx from "clsx";import { MoreVertical } from "lucide-react";@@ -31,6 +24,17 @@ import { signOut } from "next-auth/react";import Link from "next/link";import { usePathname } from "next/navigation";import { useState } from "react";+import {+ faMoon,+ faSun,+ faHome,+ faCrown,+ faGear,+ faMessage,+ faSignOut,+ faDownload,+} from "@fortawesome/free-solid-svg-icons";+import Image from "next/image";export default function DashboardInner({children,@@ -38,41 +42,75 @@ export default function DashboardInner({children: React.ReactNode;}) {const pathname = usePathname();+ const { activeOrganization, activeSpace } = useSharedContext();+ const [membersDialogOpen, setMembersDialogOpen] = useState(false);+const titles: Record<string, string> = {"/dashboard/caps": "Caps","/dashboard/shared-caps": "Shared Caps","/dashboard/settings/organization": "Organization Settings","/dashboard/settings/account": "Account Settings",+ "/dashboard/spaces": "Spaces",+ "/dashboard/spaces/browse": "Browse Spaces",};- const title = titles[pathname] || "";++ const title = activeSpace ? activeSpace.name : titles[pathname] || "";const { theme, setThemeHandler } = useTheme();+ const isSharedCapsPage = pathname === "/dashboard/shared-caps";+return (- <>- {/* Top Bar - Fixed at top with proper z-index */}- <header+ <div className="flex flex-col min-h-screen">+ <divclassName={clsx(- "flex sticky z-50 justify-between items-center px-5 mt-10 w-full border-b bg-gray-1 lg:bg-transparent min-h-16 lg:min-h-10 border-gray-3 lg:border-b-0 lg:pl-0 lg:pr-5 lg:top-0 lg:relative top-[64px] lg:mt-5 lg:h-8"+ "flex sticky z-50 justify-between items-center px-5 mt-10 w-full border-b",+ "bg-gray-1 lg:bg-transparent min-h-16 lg:min-h-10 border-gray-3 lg:border-b-0 lg:pl-0 lg:pr-5 lg:top-0 lg:relative top-[64px] lg:mt-5 lg:h-8")}>- <p className="relative text-xl truncate md:max-w-full text-gray-12 lg:text-2xl w-fit max-w-[150px]">- {title}- </p>+ <div className="flex flex-col gap-0.5">+ {activeSpace && <span className="text-xs text-gray-11">Space</span>}+ <div className="flex gap-1.5 items-center">+ {activeSpace &&+ (activeSpace.iconUrl ? (+ <Image+ src={activeSpace?.iconUrl}+ alt={activeSpace?.name || "Space"}+ width={20}+ height={20}+ className="rounded-full"+ />+ ) : (+ <Avatar+ letterClass="text-xs"+ className="relative flex-shrink-0 size-5"+ name={activeSpace?.name}+ />+ ))}+ <p className="relative text-base truncate md:text-lg text-gray-12 lg:text-2xl">+ {title}+ </p>+ </div>+ </div><div className="flex gap-4 items-center"><divonClick={() => {- setThemeHandler(theme === "light" ? "dark" : "light");+ if (document.startViewTransition) {+ document.startViewTransition(() => {+ setThemeHandler(theme === "light" ? "dark" : "light");+ });+ } else {+ setThemeHandler(theme === "light" ? "dark" : "light");+ }}}- className="hidden justify-center items-center bg-gradient-to-t rounded-full border transition-colors cursor-pointer lg:flex from-gray-4 to-gray-2 border-gray-4 hover:border-gray-6 hover:bg-gray-5 size-9"+ className="hidden justify-center items-center rounded-full transition-colors cursor-pointer bg-gray-3 lg:flex hover:bg-gray-5 size-9"><FontAwesomeIcon- className="text-gray-12 size-3.5"+ className="text-gray-12 size-3.5 view-transition-theme-icon"icon={theme === "dark" ? faMoon : faSun}/></div><User /></div>- </header>- {/* Content Area - Scrollable content with proper spacing */}+ </div><mainclassName={"flex flex-col flex-1 p-5 pb-5 mt-5 border border-b-0 min-h-fit bg-gray-2 border-gray-3 lg:rounded-tl-2xl lg:p-8"@@ -80,7 +118,15 @@ export default function DashboardInner({><div className="flex flex-col flex-1 gap-4">{children}</div></main>- </>+ {isSharedCapsPage && activeOrganization?.members && (+ <MembersDialog+ open={membersDialogOpen}+ onOpenChange={setMembersDialogOpen}+ members={activeOrganization.members}+ organizationName={activeOrganization.organization.name || ""}+ />+ )}+ </div>);}@@ -98,7 +144,7 @@ const User = () => {<PopoverTrigger asChild><divdata-state={menuOpen ? "open" : "closed"}- className="flex gap-2 justify-between items-center p-2 rounded-xl border data-[state=open]:border-gray-5 data-[state=open]:bg-gray-3 border-transparent transition-colors cursor-pointer group lg:gap-6 hover:border-gray-4"+ className="flex gap-2 justify-between items-center p-2 rounded-xl border data-[state=open]:border-gray-3 data-[state=open]:bg-gray-3 border-transparent transition-colors cursor-pointer group lg:gap-6 hover:border-gray-3"><div className="flex items-center"><Avatar@@ -182,6 +228,22 @@ const User = () => {Chat Support</span></CommandItem>++ <CommandItem+ className="px-2 py-1.5 rounded-lg transition-colors duration-300 cursor-pointer hover:bg-gray-5 group"+ onSelect={() =>+ window.open("https://cap.so/download", "_blank")+ }+ >+ <FontAwesomeIcon+ icon={faDownload}+ className="mr-2 text-gray-11 transition-colors duration-300 size-3.5 group-hover:text-gray-12"+ />+ <span className="text-[13px] transition-colors duration-300 text-gray-11 group-hover:text-gray-12">+ Download App+ </span>+ </CommandItem>+<CommandItemclassName="px-2 py-1.5 rounded-lg transition-colors duration-300 cursor-pointer hover:bg-gray-5 group"onSelect={() => signOut()}diff --git a/apps/web/app/dashboard/_components/DynamicSharedLayout.tsx b/apps/web/app/dashboard/_components/DynamicSharedLayout.tsxindex a5710af79..6e452780e 100644--- a/apps/web/app/dashboard/_components/DynamicSharedLayout.tsx+++ b/apps/web/app/dashboard/_components/DynamicSharedLayout.tsx@@ -1,16 +1,21 @@"use client";import AdminMobileNav from "@/app/dashboard/_components/AdminNavbar/AdminMobileNav";-import { Organization } from "@/app/dashboard/layout";-import { UpgradeModal } from "@/components/UpgradeModal";import { users } from "@cap/database/schema";import Cookies from "js-cookie";import { createContext, useContext, useEffect, useState } from "react";import AdminDesktopNav from "./AdminNavbar/AdminDesktopNav";+import { UpgradeModal } from "@/components/UpgradeModal";+import { usePathname } from "next/navigation";import { buildEnv } from "@cap/env";+import { Organization, Spaces } from "../dashboard-data";type SharedContext = {organizationData: Organization[] | null;activeOrganization: Organization | null;+ spacesData: Spaces[] | null;+ userSpaces: Spaces[] | null;+ sharedSpaces: Spaces[] | null;+ activeSpace: Spaces | null;user: typeof users.$inferSelect;isSubscribed: boolean;toggleSidebarCollapsed: () => void;@@ -37,6 +42,7 @@ export default function DynamicSharedLayout({children,organizationData,activeOrganization,+ spacesData,user,isSubscribed,initialTheme,@@ -45,6 +51,7 @@ export default function DynamicSharedLayout({children: React.ReactNode;organizationData: SharedContext["organizationData"];activeOrganization: SharedContext["activeOrganization"];+ spacesData: SharedContext["spacesData"];user: SharedContext["user"];isSubscribed: SharedContext["isSubscribed"];initialTheme: ITheme;@@ -55,12 +62,50 @@ export default function DynamicSharedLayout({initialSidebarCollapsed);const [upgradeModalOpen, setUpgradeModalOpen] = useState(false);+ const pathname = usePathname();++ // Calculate user's spaces (both owned and member of)+ const userSpaces =+ spacesData?.filter((space) =>+ // User might be the space owner or a member of the space in the organization+ activeOrganization?.members.some(+ (member) =>+ member.userId === user.id &&+ member.organizationId === space.organizationId+ )+ ) || null;++ // Spaces shared with the user but not owned by them+ const sharedSpaces =+ spacesData?.filter((space) =>+ activeOrganization?.members.some(+ (member) =>+ member.userId === user.id &&+ member.organizationId === space.organizationId &&+ member.role === "MEMBER"+ )+ ) || null;++ // Get activeSpace from URL if on a space page+ const [activeSpace, setActiveSpace] = useState<Spaces | null>(null);++ useEffect(() => {+ const spaceIdMatch = pathname.match(/\/dashboard\/spaces\/([^\/]+)/);+ const spaceId = spaceIdMatch ? spaceIdMatch[1] : null;++ if (spaceId && spacesData) {+ const space = spacesData.find((space) => space.id === spaceId) || null;+ setActiveSpace(space);+ } else {+ setActiveSpace(null);+ }+ }, [spacesData, pathname]);+const setThemeHandler = (newTheme: ITheme) => {setTheme(newTheme);Cookies.set("theme", newTheme, {expires: 365,});- document.body.className = newTheme;};useEffect(() => {if (Cookies.get("theme")) {@@ -86,6 +131,10 @@ export default function DynamicSharedLayout({value={{organizationData,activeOrganization,+ spacesData,+ userSpaces,+ sharedSpaces,+ activeSpace,user,isSubscribed,toggleSidebarCollapsed,@@ -95,7 +144,7 @@ export default function DynamicSharedLayout({}}>{/* CSS Grid layout for dashboard */}- <div className="grid grid-cols-[auto,1fr] bg-gray-1 grid-rows-[auto,1fr] h-dvh min-h-dvh">+ <div className="grid grid-cols-[auto,1fr] overflow-y-auto bg-gray-1 grid-rows-[auto,1fr] h-dvh min-h-dvh">{/* Sidebar */}<aside className="z-10 col-span-1 row-span-2"><AdminDesktopNav />diff --git a/apps/web/app/dashboard/caps/Caps.tsx b/apps/web/app/dashboard/caps/Caps.tsxindex 41b1bf16e..94bbfbee3 100644--- a/apps/web/app/dashboard/caps/Caps.tsx+++ b/apps/web/app/dashboard/caps/Caps.tsx@@ -12,7 +12,6 @@ import { EmptyCapState } from "./components/EmptyCapState";import { SelectedCapsBar } from "./components/SelectedCapsBar";import { UploadCapButton } from "./components/UploadCapButton";import { UploadPlaceholderCard } from "./components/UploadPlaceholderCard";-import { serverEnv } from "@cap/env";type VideoData = {id: string;@@ -21,7 +20,13 @@ type VideoData = {createdAt: Date;totalComments: number;totalReactions: number;- sharedOrganizations: { id: string; name: string }[];+ sharedOrganizations: { id: string; name: string; iconUrl?: string }[];+ sharedSpaces: {+ id: string;+ name: string;+ iconUrl?: string;+ organizationId: string;+ }[];ownerName: string;metadata?: VideoMetadata;hasPassword: boolean;@@ -30,24 +35,23 @@ type VideoData = {export const Caps = ({data,count,- userOrganizations,dubApiKeyEnabled,}: {data: VideoData;count: number;- userOrganizations: { id: string; name: string }[];dubApiKeyEnabled: boolean;}) => {const { refresh } = useRouter();const params = useSearchParams();const page = Number(params.get("page")) || 1;const [analytics, setAnalytics] = useState<Record<string, number>>({});- const { user } = useSharedContext();+ const { user, spacesData, organizationData } = useSharedContext();const limit = 15;const totalPages = Math.ceil(count / limit);const [selectedCaps, setSelectedCaps] = useState<string[]>([]);const previousCountRef = useRef<number>(0);const [isDeleting, setIsDeleting] = useState(false);+ const [isDraggingCap, setIsDraggingCap] = useState(false);const [uploadPlaceholders, setUploadPlaceholders] = useState<{id: string;@@ -127,6 +131,19 @@ export const Caps = ({};}, [selectedCaps.length, data]);+ useEffect(() => {+ const handleDragStart = () => setIsDraggingCap(true);+ const handleDragEnd = () => setIsDraggingCap(false);++ window.addEventListener("dragstart", handleDragStart);+ window.addEventListener("dragend", handleDragEnd);++ return () => {+ window.removeEventListener("dragstart", handleDragStart);+ window.removeEventListener("dragend", handleDragEnd);+ };+ }, []);+const deleteCap = async (videoId: string) => {if (!window.confirm(@@ -222,7 +239,6 @@ export const Caps = ({setSelectedCaps([]);refresh();} catch (error) {- // Error is handled by toast.promise} finally {setIsDeleting(false);}@@ -253,9 +269,19 @@ export const Caps = ({return (<div className="flex relative flex-col w-full">- <div className="flex justify-end mb-4">+ {isDraggingCap && (+ <div className="fixed inset-0 z-50 pointer-events-none">+ <div className="flex justify-center items-center w-full h-full">+ <div className="px-5 py-3 text-sm font-medium rounded-lg border backdrop-blur-md bg-gray-1/80 border-gray-4 text-gray-12">+ Drag to a space to share+ </div>+ </div>+ </div>+ )}+ <div className="flex justify-start mb-5"><UploadCapButtononStart={handleUploadStart}+ size="sm"onProgress={handleUploadProgress}onComplete={handleUploadComplete}/>@@ -276,7 +302,6 @@ export const Caps = ({analytics={analytics[cap.id] || 0}onDelete={deleteCap}userId={user?.id}- userOrganizations={userOrganizations}isSelected={selectedCaps.includes(cap.id)}onSelectToggle={() => handleCapSelection(cap.id)}anyCapSelected={anyCapSelected}@@ -284,7 +309,7 @@ export const Caps = ({))}</div>{(data.length > limit || data.length === limit || page !== 1) && (- <div className="mt-10">+ <div className="mt-7"><CapPagination currentPage={page} totalPages={totalPages} /></div>)}diff --git a/apps/web/app/dashboard/caps/components/CapCard.tsx b/apps/web/app/dashboard/caps/components/CapCard.tsxindex 052c9b3d1..621a38e58 100644--- a/apps/web/app/dashboard/caps/components/CapCard.tsx+++ b/apps/web/app/dashboard/caps/components/CapCard.tsx@@ -33,7 +33,17 @@ interface Props extends PropsWithChildren {createdAt: Date;totalComments: number;totalReactions: number;- sharedOrganizations?: { id: string; name: string; iconUrl?: string }[];+ sharedOrganizations?: {+ id: string;+ name: string;+ iconUrl?: string | null;+ }[];+ sharedSpaces?: {+ id: string;+ name: string;+ iconUrl?: string | null;+ organizationId: string;+ }[];ownerName: string | null;metadata?: VideoMetadata;hasPassword?: boolean;@@ -41,10 +51,10 @@ interface Props extends PropsWithChildren {analytics: number;onDelete?: (videoId: string) => Promise<void>;userId?: string;- userOrganizations?: { id: string; name: string; iconUrl?: string }[];sharedCapCard?: boolean;isSelected?: boolean;onSelectToggle?: () => void;+ hideSharedStatus?: boolean;anyCapSelected?: boolean;}@@ -54,8 +64,8 @@ export const CapCard = ({children,onDelete,userId,- userOrganizations,sharedCapCard = false,+ hideSharedStatus = false,isSelected = false,onSelectToggle,anyCapSelected = false,@@ -71,13 +81,13 @@ export const CapCard = ({const [passwordProtected, setPasswordProtected] = useState(cap.hasPassword || false);- const [, setSharedOrganizations] = useState(cap.sharedOrganizations);const [isDateEditing, setIsDateEditing] = useState(false);const [copyPressed, setCopyPressed] = useState(false);const [dateValue, setDateValue] = useState(moment(effectiveDate).format("YYYY-MM-DD HH:mm:ss"));const [showFullDate, setShowFullDate] = useState(false);+ const [isDragging, setIsDragging] = useState(false);const router = useRouter();const { isSubscribed, setUpgradeModalOpen } = useSharedContext();@@ -106,12 +116,7 @@ export const CapCard = ({? Math.max(cap.totalComments, cap.totalReactions): analytics;- const handleSharingUpdated = (updatedSharedOrganizations: string[]) => {- setSharedOrganizations(- userOrganizations?.filter((organization) =>- updatedSharedOrganizations.includes(organization.id)- )- );+ const handleSharingUpdated = (updatedSharedSpaces: string[]) => {router.refresh();};@@ -122,13 +127,52 @@ export const CapCard = ({const isOwner = userId === cap.ownerId;+ const handleDragStart = (e: React.DragEvent<HTMLDivElement>) => {+ if (anyCapSelected || !isOwner) return;++ e.dataTransfer.setData(+ "application/cap",+ JSON.stringify({+ id: cap.id,+ name: cap.name,+ })+ );++ setIsDragging(true);++ // Create a smaller drag image+ const dragImage = new Image();+ dragImage.src = `https://cap-api-thumbnails.s3.us-west-2.amazonaws.com/${cap.id}/thumbnail.png`;+ dragImage.onload = () => {+ const canvas = document.createElement("canvas");+ canvas.width = 100;+ canvas.height = 60;+ const ctx = canvas.getContext("2d");+ if (ctx) {+ ctx.drawImage(dragImage, 0, 0, 100, 60);+ const dataURL = canvas.toDataURL();+ const img = new Image();+ img.src = dataURL;+ e.dataTransfer.setDragImage(img, 50, 30);+ }+ };+ };++ const handleDragEnd = () => {+ setIsDragging(false);+ };+const renderSharedStatus = () => {const baseClassName = clsx("text-sm text-gray-10 transition-colors duration-200 flex items-center mb-1",- sharedCapCard ? "cursor-default" : "hover:text-gray-12 cursor-pointer"+ "hover:text-gray-12",+ hideSharedStatus ? "pointer-events-none" : "cursor-pointer");- if (isOwner) {- if (cap.sharedOrganizations?.length === 0) {+ if (isOwner && !hideSharedStatus) {+ if (+ (cap.sharedOrganizations?.length === 0 || !cap.sharedOrganizations) &&+ (cap.sharedSpaces?.length === 0 || !cap.sharedSpaces)+ ) {return (<pclassName={baseClassName}@@ -260,8 +304,7 @@ export const CapCard = ({onClose={() => setIsSharingDialogOpen(false)}capId={cap.id}capName={cap.name}- sharedOrganizations={cap.sharedOrganizations || []}- userOrganizations={userOrganizations}+ sharedSpaces={cap.sharedSpaces || []}onSharingUpdated={handleSharingUpdated}/><PasswordDialog@@ -273,13 +316,18 @@ export const CapCard = ({/><divonClick={handleCardClick}+ draggable={isOwner && !anyCapSelected}+ onDragStart={handleDragStart}+ onDragEnd={handleDragEnd}className={clsx("flex relative flex-col gap-4 w-full h-full rounded-xl cursor-default bg-gray-1 border-gray-3 group border-[1px]",isSelected? "!border-blue-10 border-[1px]": anyCapSelected? "border-blue-10 border-[1px] hover:border-blue-10"- : "hover:border-blue-10"+ : "hover:border-blue-10",+ isDragging && "opacity-50",+ isOwner && !anyCapSelected && "cursor-grab active:cursor-grabbing")}>{anyCapSelected && !sharedCapCard && (diff --git a/apps/web/app/dashboard/caps/components/CapPagination.tsx b/apps/web/app/dashboard/caps/components/CapPagination.tsxindex 4a82a8687..5eac9afb8 100644--- a/apps/web/app/dashboard/caps/components/CapPagination.tsx+++ b/apps/web/app/dashboard/caps/components/CapPagination.tsx@@ -23,13 +23,14 @@ export const CapPagination: React.FC<CapPaginationProps> = ({{currentPage > 1 && (<PaginationItem><PaginationPrevious+ className="h-10 bg-transparent hover:bg-gray-4"href={`/dashboard/caps?page=${currentPage - 1}`}/></PaginationItem>)}<PaginationItem><PaginationLink- className="min-w-[54px]"+ className="h-10 min-w-10"href={`/dashboard/caps?page=1`}isActive={currentPage === 1}>@@ -39,7 +40,7 @@ export const CapPagination: React.FC<CapPaginationProps> = ({{currentPage !== 1 && (<PaginationItem><PaginationLink- className="min-w-[54px]"+ className="h-10 min-w-10"href={`/dashboard/caps?page=${currentPage}`}isActive={true}>@@ -50,7 +51,7 @@ export const CapPagination: React.FC<CapPaginationProps> = ({{totalPages > currentPage + 1 && (<PaginationItem><PaginationLink- className="min-w-[54px]"+ className="h-10 min-w-10 hover:bg-gray-3"href={`/dashboard/caps?page=${currentPage + 1}`}isActive={false}>@@ -61,6 +62,7 @@ export const CapPagination: React.FC<CapPaginationProps> = ({{currentPage > 2 && <PaginationEllipsis />}<PaginationItem><PaginationNext+ className="h-10 bg-transparent hover:bg-gray-4"href={`/dashboard/caps?page=${currentPage === totalPages ? currentPage : currentPage + 1}`}diff --git a/apps/web/app/dashboard/caps/components/EmptyCapState.tsx b/apps/web/app/dashboard/caps/components/EmptyCapState.tsxindex 8e07e8676..0ad1d3a6d 100644--- a/apps/web/app/dashboard/caps/components/EmptyCapState.tsx+++ b/apps/web/app/dashboard/caps/components/EmptyCapState.tsx@@ -2,6 +2,8 @@ import { Button } from "@cap/ui";import { useRive } from "@rive-app/react-canvas";import { useTheme } from "../../_components/DynamicSharedLayout";import { UploadCapButton } from "./UploadCapButton";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { faDownload } from "@fortawesome/free-solid-svg-icons";interface EmptyCapStateProps {userName?: string;@@ -28,17 +30,20 @@ export const EmptyCapState: React.FC<EmptyCapStateProps> = ({ userName }) => {Craft your narrative with Cap - get projects done quicker.</p></div>- <div className="flex flex-col gap-3 justify-center mt-4">+ <div className="flex gap-3 justify-center items-center mt-4"><Button- size="lg"href="/download"- className="relative"+ className="flex relative gap-2 justify-center items-center"variant="primary">+ <FontAwesomeIcon+ className="text-white size-3.5"+ icon={faDownload}+ />Download Cap</Button>- <p className="text-gray-10 text-sm">or</p>- <UploadCapButton grey={true} />+ <p className="text-sm text-gray-10">or</p>+ <UploadCapButton /></div></div></div>diff --git a/apps/web/app/dashboard/caps/components/SelectedCapsBar.tsx b/apps/web/app/dashboard/caps/components/SelectedCapsBar.tsxindex b26b3be57..14ddc11f6 100644--- a/apps/web/app/dashboard/caps/components/SelectedCapsBar.tsx+++ b/apps/web/app/dashboard/caps/components/SelectedCapsBar.tsx@@ -17,13 +17,13 @@ export const SelectedCapsBar = ({selectedCaps,setSelectedCaps,deleteSelectedCaps,- isDeleting+ isDeleting,}: SelectedCapsBarProps) => {return (<AnimatePresence>{selectedCaps.length > 0 && (<motion.div- className="flex fixed right-0 left-0 bottom-4 z-50 justify-between items-center px-6 py-3 mx-auto w-full max-w-xl rounded-xl border shadow-lg border-gray-2 bg-gray-1"+ className="flex fixed right-0 left-0 bottom-12 z-50 justify-between items-center p-3 mx-auto w-full max-w-xl rounded-xl border shadow-lg border-gray-2 bg-gray-1"initial={{ opacity: 0, y: 10, scale: 0.9 }}animate={{ opacity: 1, y: 0, scale: 1 }}exit={{@@ -33,9 +33,9 @@ export const SelectedCapsBar = ({transition: { duration: 0.2 },}}transition={{- type: "spring",- damping: 15,- stiffness: 200,+ opacity: { duration: 0.3, ease: "easeOut" },+ y: { type: "spring", damping: 15, stiffness: 200 },+ scale: { type: "spring", damping: 15, stiffness: 200 },}}><div className="flex gap-1 text-sm font-medium text-gray-10">@@ -55,15 +55,14 @@ export const SelectedCapsBar = ({Cancel</Button><Button- style={{ minWidth: "auto" }}variant="destructive"onClick={deleteSelectedCaps}disabled={isDeleting}- className="text-sm w-[40px]"+ className="size-[40px] min-w-[unset] p-0"spinner={isDeleting}size="sm">- <FontAwesomeIcon icon={faTrash} />+ <FontAwesomeIcon className="w-3.5 text-white" icon={faTrash} /></Button></div></motion.div>diff --git a/apps/web/app/dashboard/caps/components/SharingDialog.tsx b/apps/web/app/dashboard/caps/components/SharingDialog.tsxindex 970d07294..2aaa19dc4 100644--- a/apps/web/app/dashboard/caps/components/SharingDialog.tsx+++ b/apps/web/app/dashboard/caps/components/SharingDialog.tsx@@ -1,4 +1,4 @@-import { Avatar } from "@/app/s/[videoId]/_components/tabs/Activity";+import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";import { Tooltip } from "@/components/Tooltip";import {Button,@@ -8,6 +8,7 @@ import {DialogHeader,DialogTitle,Input,+ Avatar,} from "@cap/ui";import { faShareNodes } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";@@ -15,17 +16,22 @@ import clsx from "clsx";import { motion } from "framer-motion";import { Check, Search } from "lucide-react";import Image from "next/image";-import { useEffect, useState } from "react";+import { useCallback, useEffect, useState } from "react";import { toast } from "sonner";+import { shareCap } from "@/actions/caps/share";interface SharingDialogProps {isOpen: boolean;onClose: () => void;capId: string;capName: string;- sharedOrganizations: { id: string; name: string; iconUrl?: string }[];- userOrganizations?: { id: string; name: string; iconUrl?: string }[];- onSharingUpdated: (updatedSharedOrganizations: string[]) => void;+ sharedSpaces: {+ id: string;+ name: string;+ iconUrl?: string | null;+ organizationId: string;+ }[];+ onSharingUpdated: (updatedSharedSpaces: string[]) => void;}export const SharingDialog: React.FC<SharingDialogProps> = ({@@ -33,38 +39,44 @@ export const SharingDialog: React.FC<SharingDialogProps> = ({onClose,capId,capName,- sharedOrganizations,- userOrganizations,+ sharedSpaces,onSharingUpdated,}) => {- const [selectedOrganizations, setSelectedOrganizations] = useState<- Set<string>- >(new Set(sharedOrganizations.map((organization) => organization.id)));+ const { spacesData } = useSharedContext();+ const [selectedSpaces, setSelectedSpaces] = useState<Set<string>>(new Set());const [searchTerm, setSearchTerm] = useState("");- const [initialSelectedOrganizations, setInitialSelectedOrganizations] =- useState<Set<string>>(- new Set(sharedOrganizations.map((organization) => organization.id))- );+ const [initialSelectedSpaces, setInitialSelectedSpaces] = useState<+ Set<string>+ >(new Set());const [loading, setLoading] = useState(false);+ const sharedSpaceIds = new Set(sharedSpaces?.map((space) => space.id) || []);+useEffect(() => {- if (isOpen) {- const currentOrganizationIds = new Set(- sharedOrganizations.map((organization) => organization.id)- );- setSelectedOrganizations(currentOrganizationIds);- setInitialSelectedOrganizations(currentOrganizationIds);+ if (isOpen && sharedSpaces) {+ const spaceIds = new Set(sharedSpaces.map((space) => space.id));+ setSelectedSpaces(spaceIds);+ setInitialSelectedSpaces(spaceIds);setSearchTerm("");}- }, [isOpen, sharedOrganizations]);+ }, [isOpen, sharedSpaces]);++ const isSpaceSharedViaOrganization = useCallback(+ (spaceId: string) => {+ const space = spacesData?.find((s) => s.id === spaceId);+ if (!space) return false;+ return sharedSpaceIds.has(space.id);+ },+ [spacesData, sharedSpaceIds]+ );- const handleToggleOrganization = (organizationId: string) => {- setSelectedOrganizations((prev) => {+ const handleToggleSpace = (spaceId: string) => {+ setSelectedSpaces((prev) => {const newSet = new Set(prev);- if (newSet.has(organizationId)) {- newSet.delete(organizationId);+ if (newSet.has(spaceId)) {+ newSet.delete(spaceId);} else {- newSet.add(organizationId);+ newSet.add(spaceId);}return newSet;});@@ -73,92 +85,73 @@ export const SharingDialog: React.FC<SharingDialogProps> = ({const handleSave = async () => {try {setLoading(true);- const response = await fetch("/api/caps/share", {- method: "POST",- headers: { "Content-Type": "application/json" },- body: JSON.stringify({- capId,- organizationIds: Array.from(selectedOrganizations),- }),+ const result = await shareCap({+ capId,+ spaceIds: Array.from(selectedSpaces),});- if (!response.ok) {- throw new Error("Failed to update sharing settings");+ if (!result.success) {+ throw new Error(result.error || "Failed to update sharing settings");}- const newSelectedOrganizations = Array.from(selectedOrganizations);- const initialOrganizations = Array.from(initialSelectedOrganizations);+ const newSelectedSpaces = Array.from(selectedSpaces);+ const initialSpaces = Array.from(initialSelectedSpaces);- const addedOrganizationIds = newSelectedOrganizations.filter(- (id) => !initialOrganizations.includes(id)+ const addedSpaceIds = newSelectedSpaces.filter(+ (id) => !initialSpaces.includes(id));- const removedOrganizationIds = initialOrganizations.filter(- (id) => !newSelectedOrganizations.includes(id)+ const removedSpaceIds = initialSpaces.filter(+ (id) => !newSelectedSpaces.includes(id));- if (- addedOrganizationIds.length === 1 &&- removedOrganizationIds.length === 0- ) {- const addedOrganizationName = userOrganizations?.find(- (organization) => organization.id === addedOrganizationIds[0]- )?.name;- toast.success(`Shared to ${addedOrganizationName}`);- } else if (- removedOrganizationIds.length === 1 &&- addedOrganizationIds.length === 0- ) {- const removedOrganizationName = sharedOrganizations.find(- (organization) => organization.id === removedOrganizationIds[0]- )?.name;- toast.success(`Unshared from ${removedOrganizationName}`);- } else if (- addedOrganizationIds.length > 0 &&- removedOrganizationIds.length === 0- ) {- toast.success(`Shared to ${addedOrganizationIds.length} organizations`);- } else if (- removedOrganizationIds.length > 0 &&- addedOrganizationIds.length === 0- ) {+ const getSpaceName = (id: string) => {+ const space = spacesData?.find((space) => space.id === id);+ return space?.name || `Space ${id}`;+ };++ if (addedSpaceIds.length === 1 && removedSpaceIds.length === 0) {+ toast.success(`Shared to ${getSpaceName(addedSpaceIds[0] as string)}`);+ } else if (removedSpaceIds.length === 1 && addedSpaceIds.length === 0) {toast.success(- `Unshared from ${removedOrganizationIds.length} organizations`+ `Unshared from ${getSpaceName(removedSpaceIds[0] as string)}`);- } else if (- addedOrganizationIds.length > 0 &&- removedOrganizationIds.length > 0- ) {+ } else if (addedSpaceIds.length > 0 && removedSpaceIds.length === 0) {+ toast.success(`Shared to ${addedSpaceIds.length} spaces`);+ } else if (removedSpaceIds.length > 0 && addedSpaceIds.length === 0) {+ toast.success(`Unshared from ${removedSpaceIds.length} spaces`);+ } else if (addedSpaceIds.length > 0 && removedSpaceIds.length > 0) {toast.success(`Sharing settings updated`);} else {- toast.success("No changes to sharing settings");+ toast.info("No changes to sharing settings");}- onSharingUpdated(newSelectedOrganizations);+ onSharingUpdated(newSelectedSpaces);onClose();} catch (error) {- console.error("Error updating sharing settings:", error);toast.error("Failed to update sharing settings");} finally {setLoading(false);}};- const filteredOrganizations = userOrganizations?.filter((organization) =>- organization.name.toLowerCase().includes(searchTerm.toLowerCase())- );+ const filteredSpaces = searchTerm+ ? spacesData?.filter((space) =>+ space.name.toLowerCase().includes(searchTerm.toLowerCase())+ )+ : spacesData;return (<Dialog open={isOpen} onOpenChange={onClose}><DialogContent className="p-0 w-full max-w-md rounded-xl border bg-gray-2 border-gray-4"><DialogHeadericon={<FontAwesomeIcon icon={faShareNodes} className="size-3.5" />}- description="Select the organizations you would like to share with"+ description="Select the spaces you would like to share with">- <DialogTitle>- Share <span className="font-bold text-gray-12">{capName}</span>+ <DialogTitle className="truncate w-full max-w-[320px]">+ Share {capName}</DialogTitle></DialogHeader><div className="p-5">- <div className="relative mb-4">+ <div className="relative mb-3"><Inputtype="text"placeholder="Search..."@@ -171,19 +164,26 @@ export const SharingDialog: React.FC<SharingDialogProps> = ({size={20}/></div>- <div className="grid grid-cols-4 gap-3 max-h-60">- {filteredOrganizations && filteredOrganizations.length > 0 ? (- filteredOrganizations.map((organization) => (+ <div className="grid overflow-y-auto grid-cols-5 gap-3 pt-2 max-h-60">+ {filteredSpaces && filteredSpaces.length > 0 ? (+ filteredSpaces.map((space) => (<SpaceCard- key={organization.id}- organization={organization}- selectedOrganizations={selectedOrganizations}- handleToggleOrganization={handleToggleOrganization}+ key={space.id}+ space={space}+ selectedSpaces={selectedSpaces}+ handleToggleSpace={handleToggleSpace}+ isSharedViaOrganization={isSpaceSharedViaOrganization(+ space.id+ )}/>))) : (- <div className="flex gap-2 justify-center items-center pt-2 text-sm">- <p className="text-gray-12">No organizations found</p>+ <div className="flex col-span-5 gap-2 justify-center items-center text-sm">+ <p className="text-gray-12">+ {spacesData && spacesData.length > 0+ ? "No spaces match your search"+ : "No spaces available"}+ </p></div>)}</div>@@ -208,73 +208,81 @@ export const SharingDialog: React.FC<SharingDialogProps> = ({};const SpaceCard = ({- organization,- selectedOrganizations,- handleToggleOrganization,+ space,+ selectedSpaces,+ handleToggleSpace,+ isSharedViaOrganization,}: {- organization: { id: string; name: string; iconUrl?: string };- selectedOrganizations: Set<string>;- handleToggleOrganization: (organizationId: string) => void;+ space: {+ id: string;+ name: string;+ iconUrl?: string | null;+ organizationId: string;+ };+ selectedSpaces: Set<string>;+ handleToggleSpace: (spaceId: string) => void;+ isSharedViaOrganization?: boolean;}) => {+ const isSelected = selectedSpaces.has(space.id);+return (- <Tooltip content={organization.name}>- <div- className={clsx(- "flex items-center relative flex-col justify-center gap-2 border transition-colors bg-gray-1 duration-200 border-gray-3 w-full p-3 rounded-xl cursor-pointer",- selectedOrganizations.has(organization.id)- ? "bg-gray-3 border-gray-4"- : "hover:bg-gray-3 hover:border-gray-4"- )}- onClick={() => handleToggleOrganization(organization.id)}+ <Tooltip+ content={+ isSharedViaOrganization+ ? `${space.name} (shared via organization)`+ : space.name+ }>- {organization.iconUrl ? (- <div className="overflow-hidden relative flex-shrink-0 rounded-full size-6">- <Image- src={organization.iconUrl}- alt={organization.name}- width={24}- height={24}- className="object-cover w-full h-full"- />- </div>- ) : (- <Avatar- letterClass="text-gray-1 text-xs"- className="relative flex-shrink-0 size-6"- name={organization.name}- />- )}- <p className="max-w-full text-xs truncate transition-colors duration-200 text-gray-10">- {organization.name}- </p>- <motion.div- key={organization.id}- animate={{- scale: selectedOrganizations.has(organization.id) ? 1 : 0,- }}- initial={{- scale: 0,- }}- transition={{- type: selectedOrganizations.has(organization.id) ? "spring" : "tween",- stiffness: selectedOrganizations.has(organization.id)- ? 300- : undefined,- damping: selectedOrganizations.has(organization.id) ? 20 : undefined,- duration: !selectedOrganizations.has(organization.id)- ? 0.2- : undefined,- }}+ <divclassName={clsx(- "absolute top-[-6px] flex items-center justify-center right-[-5px] bg-gray-4 rounded-full border size-4",- selectedOrganizations.has(organization.id)- ? "bg-green-500 border-transparent"- : "bg-gray-4 border-gray-5"+ "flex items-center relative overflow-visible flex-col justify-center gap-2 border transition-colors bg-gray-1",+ "duration-200 w-full p-2.5 rounded-xl cursor-pointer",+ isSelected+ ? "bg-gray-3 border-green-500"+ : "hover:bg-gray-3 hover:border-gray-5 border-gray-4",+ isSharedViaOrganization && "ring-1 ring-inset ring-green-500/30")}+ onClick={() => handleToggleSpace(space.id)}>- <Check className="text-white" size={10} />- </motion.div>- </div>+ {space.iconUrl ? (+ <div className="overflow-hidden relative flex-shrink-0 rounded-full size-5">+ <Image+ src={space.iconUrl}+ alt={space.name}+ width={24}+ height={24}+ className="object-cover w-full h-full"+ />+ </div>+ ) : (+ <Avatar+ letterClass="text-[11px]"+ className="relative z-10 flex-shrink-0 size-5"+ name={space.name}+ />+ )}+ <p className="max-w-full text-xs truncate transition-colors duration-200 text-gray-10">+ {space.name}+ </p>+ <motion.div+ key={space.id}+ animate={{+ scale: isSelected ? 1 : 0,+ }}+ initial={{+ scale: isSelected ? 1 : 0,+ }}+ transition={{+ type: isSelected ? "spring" : "tween",+ stiffness: isSelected ? 300 : undefined,+ damping: isSelected ? 20 : undefined,+ duration: !isSelected ? 0.2 : undefined,+ }}+ className="flex absolute z-10 justify-center items-center rounded-full top-[-6px] right-[-6px] bg-gray-4 size-4 bg-green-500"+ >+ <Check className="text-white" size={10} />+ </motion.div>+ </div></Tooltip>);};diff --git a/apps/web/app/dashboard/caps/components/UploadCapButton.tsx b/apps/web/app/dashboard/caps/components/UploadCapButton.tsxindex 5eea6c6dd..c4a38c083 100644--- a/apps/web/app/dashboard/caps/components/UploadCapButton.tsx+++ b/apps/web/app/dashboard/caps/components/UploadCapButton.tsx@@ -14,17 +14,19 @@ import {isUserOnProPlan,} from "@cap/utils";import { UpgradeModal } from "@/components/UpgradeModal";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { faUpload } from "@fortawesome/free-solid-svg-icons";export const UploadCapButton = ({onStart,onProgress,onComplete,- grey = false,+ size = "md",}: {onStart?: (id: string, thumbnail?: string) => void;onProgress?: (id: string, progress: number, uploadProgress?: number) => void;onComplete?: (id: string) => void;- grey?: boolean;+ size?: "sm" | "lg" | "md";}) => {const { user, isSubscribed } = useSharedContext();const inputRef = useRef<HTMLInputElement>(null);@@ -400,43 +402,13 @@ export const UploadCapButton = ({<ButtononClick={handleClick}disabled={uploading}- variant={grey ? "gray" : "primary"}- size="sm"+ variant="dark"+ className="flex gap-2 items-center"+ size={size}+ spinner={uploading}>- {uploading ? (- <div className="flex items-center gap-2">- {status}- <svg className="w-4 h-4 transform -rotate-90" viewBox="0 0 20 20">- <circle- cx="10"- cy="10"- r="8"- stroke="currentColor"- strokeWidth="3"- fill="none"- className={grey ? "text-black/30" : "text-white/30"}- />- <circle- cx="10"- cy="10"- r="8"- stroke="currentColor"- strokeWidth="3"- fill="none"- strokeLinecap="round"- className={`${- grey ? "text-black" : "text-white"- } transition-all duration-200 ease-out`}- style={{- strokeDasharray: `${circumference} ${circumference}`,- strokeDashoffset: `${strokeDashoffset}`,- }}- />- </svg>- </div>- ) : (- "Upload Video"- )}+ <FontAwesomeIcon className="size-3.5" icon={faUpload} />+ Upload Video</Button><inputref={inputRef}diff --git a/apps/web/app/dashboard/caps/page.tsx b/apps/web/app/dashboard/caps/page.tsxindex f065011be..f2c47b0f8 100644--- a/apps/web/app/dashboard/caps/page.tsx+++ b/apps/web/app/dashboard/caps/page.tsx@@ -7,6 +7,7 @@ import {sharedVideos,users,videos,+ spaces,} from "@cap/database/schema";import { count, desc, eq, sql } from "drizzle-orm";import { Metadata } from "next";@@ -68,6 +69,57 @@ export default async function CapsPage({JSON_ARRAY())`,+ sharedSpaces: sql<+ {+ id: string;+ name: string;+ organizationId: string;+ iconUrl: string;+ isOrg: boolean;+ }[]+ >`+ COALESCE(+ (+ SELECT JSON_ARRAYAGG(+ JSON_OBJECT(+ 'id', s.id,+ 'name', s.name,+ 'organizationId', s.organizationId,+ 'iconUrl', s.iconUrl,+ 'isOrg', s.isOrg+ )+ )+ FROM (+ -- Include spaces where the video is directly added via space_videos+ SELECT DISTINCT+ s.id,+ s.name,+ s.organizationId,+ o.iconUrl as iconUrl,+ FALSE as isOrg+ FROM space_videos sv+ JOIN spaces s ON sv.spaceId = s.id+ JOIN organizations o ON s.organizationId = o.id+ WHERE sv.videoId = ${videos.id}++ UNION++ -- For organization-level sharing, include the organization details+ -- and mark it as an organization with isOrg=TRUE+ SELECT DISTINCT+ o.id as id,+ o.name as name,+ o.id as organizationId,+ o.iconUrl as iconUrl,+ TRUE as isOrg+ FROM shared_videos sv+ JOIN organizations o ON sv.organizationId = o.id+ WHERE sv.videoId = ${videos.id}+ ) AS s+ ),+ JSON_ARRAY()+ )+ `,ownerName: users.name,effectiveDate: sql<string>`COALESCE(@@ -100,19 +152,6 @@ export default async function CapsPage({.limit(limit).offset(offset);- const userOrganizations = await db()- .select({- id: organizations.id,- name: organizations.name,- iconUrl: organizations.iconUrl,- })- .from(organizations)- .leftJoin(- organizationMembers,- eq(organizations.id, organizationMembers.organizationId)- )- .where(eq(organizationMembers.userId, userId));-const processedVideoData = videoData.map((video) => {const { effectiveDate, ...videoWithoutEffectiveDate } = video;@@ -121,6 +160,7 @@ export default async function CapsPage({sharedOrganizations: video.sharedOrganizations.filter((organization) => organization.id !== null),+ sharedSpaces: video.sharedSpaces.filter((space) => space.id !== null),ownerName: video.ownerName ?? "",metadata: video.metadata as| {@@ -136,7 +176,6 @@ export default async function CapsPage({<Capsdata={processedVideoData}count={totalCount}- userOrganizations={userOrganizations}dubApiKeyEnabled={!!serverEnv().DUB_API_KEY}/>);diff --git a/apps/web/app/dashboard/dashboard-data.ts b/apps/web/app/dashboard/dashboard-data.tsnew file mode 100644index 000000000..5b931f709--- /dev/null+++ b/apps/web/app/dashboard/dashboard-data.ts@@ -0,0 +1,232 @@+import { db } from "@cap/database";+import { userSelectProps } from "@cap/database/auth/session";+import {+ organizationInvites,+ organizationMembers,+ organizations,+ users,+ spaces,+ sharedVideos,+} from "@cap/database/schema";+import { count, eq, inArray, or, sql } from "drizzle-orm";++export type Organization = {+ organization: typeof organizations.$inferSelect;+ members: (typeof organizationMembers.$inferSelect & {+ user: Pick<+ typeof users.$inferSelect,+ "id" | "name" | "email" | "lastName" | "image"+ >;+ })[];+ invites: (typeof organizationInvites.$inferSelect)[];+ inviteQuota: number;+ totalInvites: number;+};++export type Spaces = Omit<+ typeof spaces.$inferSelect,+ "createdAt" | "updatedAt"+> & {+ memberCount: number;+ videoCount: number;+};++export async function getDashboardData(user: typeof userSelectProps) {+ try {+ const organizationsWithMembers = await db()+ .select({+ organization: organizations,+ member: organizationMembers,+ user: {+ id: users.id,+ name: users.name,+ lastName: users.lastName,+ email: users.email,+ inviteQuota: users.inviteQuota,+ image: users.image,+ },+ })+ .from(organizations)+ .leftJoin(+ organizationMembers,+ eq(organizations.id, organizationMembers.organizationId)+ )+ .leftJoin(users, eq(organizationMembers.userId, users.id))+ .where(+ or(+ eq(organizations.ownerId, user.id),+ eq(organizationMembers.userId, user.id)+ )+ );++ const organizationIds = organizationsWithMembers.map(+ (row) => row.organization.id+ );++ let organizationInvitesData: (typeof organizationInvites.$inferSelect)[] =+ [];+ if (organizationIds.length > 0) {+ organizationInvitesData = await db()+ .select()+ .from(organizationInvites)+ .where(inArray(organizationInvites.organizationId, organizationIds));+ }++ let spacesData: Spaces[] = [];++ // Find active organization ID++ let activeOrganizationId = organizationIds.find(+ (orgId) => orgId === user.activeOrganizationId+ );++ if (!activeOrganizationId && organizationIds.length > 0) {+ activeOrganizationId = organizationIds[0];+ }+ // Only fetch spaces for the active organization++ if (activeOrganizationId) {+ spacesData = await db()+ .select({+ id: spaces.id,+ primary: spaces.primary,+ privacy: spaces.privacy,+ name: spaces.name,+ description: spaces.description,+ organizationId: spaces.organizationId,+ createdById: spaces.createdById,+ iconUrl: spaces.iconUrl,+ memberCount: sql<number>`(+ SELECT COUNT(*) FROM space_members WHERE space_members.spaceId = spaces.id AND space_members.userId != ${user.id}+ )`,+ videoCount: sql<number>`(+ SELECT COUNT(*) FROM space_videos WHERE space_videos.spaceId = spaces.id+ )`,+ })+ .from(spaces)+ .where(eq(spaces.organizationId, activeOrganizationId));++ // Add a single 'All spaces' entry for the active organization+ const activeOrgInfo = organizationsWithMembers.find(+ (row) => row.organization.id === activeOrganizationId+ );+ if (activeOrgInfo) {+ // Count all members in the organization+ const orgMemberCountResult = await db()+ .select({ value: sql<number>`COUNT(*)` })+ .from(organizationMembers)+ .where(+ eq(+ organizationMembers.organizationId,+ activeOrgInfo.organization.id+ )+ );+ const orgMemberCount = orgMemberCountResult[0]?.value || 0;++ // Count all videos shared with the organization (via sharedVideos table)+ const orgVideoCountResult = await db()+ .select({+ value: sql<number>`COUNT(DISTINCT ${sharedVideos.videoId})`,+ })+ .from(sharedVideos)+ .where(+ eq(sharedVideos.organizationId, activeOrgInfo.organization.id)+ );+ const orgVideoCount = orgVideoCountResult[0]?.value || 0;++ const allSpacesEntry = {+ id: activeOrgInfo.organization.id,+ primary: true,+ privacy: "Public",+ name: `All ${activeOrgInfo.organization.name}`,+ description: `View all content in ${activeOrgInfo.organization.name}`,+ organizationId: activeOrgInfo.organization.id,+ iconUrl: null,+ memberCount: orgMemberCount,+ createdById: activeOrgInfo.organization.ownerId,+ videoCount: orgVideoCount,+ } as const;+ spacesData = [allSpacesEntry, ...spacesData];+ }+ }++ const organizationSelect: Organization[] = await Promise.all(+ organizationsWithMembers+ .reduce((acc: (typeof organizations.$inferSelect)[], row) => {+ const existingOrganization = acc.find(+ (o) => o.id === row.organization.id+ );+ if (!existingOrganization) {+ acc.push(row.organization);+ }+ return acc;+ }, [])+ .map(async (organization) => {+ const allMembers = await db()+ .select({+ member: organizationMembers,+ user: {+ id: users.id,+ name: users.name,+ lastName: users.lastName,+ email: users.email,+ image: users.image,+ },+ })+ .from(organizationMembers)+ .leftJoin(users, eq(organizationMembers.userId, users.id))+ .where(eq(organizationMembers.organizationId, organization.id));++ const owner = await db()+ .select({+ inviteQuota: users.inviteQuota,+ })+ .from(users)+ .where(eq(users.id, organization.ownerId))+ .then((result) => result[0]);++ const totalInvitesResult = await db()+ .select({+ value: sql<number>`+ ${count(organizationMembers.id)} + ${count(+ organizationInvites.id+ )}+ `,+ })+ .from(organizations)+ .leftJoin(+ organizationMembers,+ eq(organizations.id, organizationMembers.organizationId)+ )+ .leftJoin(+ organizationInvites,+ eq(organizations.id, organizationInvites.organizationId)+ )+ .where(eq(organizations.ownerId, organization.ownerId));++ const totalInvites = totalInvitesResult[0]?.value || 0;++ return {+ organization,+ members: allMembers.map((m) => ({ ...m.member, user: m.user! })),+ invites: organizationInvitesData.filter(+ (invite) => invite.organizationId === organization.id+ ),+ inviteQuota: owner?.inviteQuota || 1,+ totalInvites,+ };+ })+ );++ return {+ organizationSelect,+ spacesData,+ };+ } catch (error) {+ console.error("Failed to fetch dashboard data", error);+ return {+ organizationSelect: [],+ spacesData: [],+ };+ }+}diff --git a/apps/web/app/dashboard/layout.tsx b/apps/web/app/dashboard/layout.tsxindex 44ab07cf9..8f2b733d2 100644--- a/apps/web/app/dashboard/layout.tsx+++ b/apps/web/app/dashboard/layout.tsx@@ -1,27 +1,10 @@import DynamicSharedLayout from "@/app/dashboard/_components/DynamicSharedLayout";import { DashboardTemplate } from "@/components/templates/DashboardTemplate";-import { db } from "@cap/database";import { getCurrentUser } from "@cap/database/auth/session";-import {- organizationInvites,- organizationMembers,- organizations,- users,-} from "@cap/database/schema";-import { count, eq, inArray, or, sql } from "drizzle-orm";+import { getDashboardData, Organization, Spaces } from "./dashboard-data";import { cookies } from "next/headers";import { redirect } from "next/navigation";-export type Organization = {- organization: typeof organizations.$inferSelect;- members: (typeof organizationMembers.$inferSelect & {- user: Pick<typeof users.$inferSelect, "id" | "name" | "email" | "lastName">;- })[];- invites: (typeof organizationInvites.$inferSelect)[];- inviteQuota: number;- totalInvites: number;-};-export const dynamic = "force-dynamic";export default async function DashboardLayout({@@ -39,116 +22,24 @@ export default async function DashboardLayout({redirect("/onboarding");}- const organizationsWithMembers = await db()- .select({- organization: organizations,- member: organizationMembers,- user: {- id: users.id,- name: users.name,- lastName: users.lastName,- email: users.email,- inviteQuota: users.inviteQuota,- },- })- .from(organizations)- .leftJoin(- organizationMembers,- eq(organizations.id, organizationMembers.organizationId)- )- .leftJoin(users, eq(organizationMembers.userId, users.id))- .where(- or(- eq(organizations.ownerId, user.id),- eq(organizationMembers.userId, user.id)- )- );-- const organizationIds = organizationsWithMembers.map(- (row) => row.organization.id- );-- let organizationInvitesData: (typeof organizationInvites.$inferSelect)[] = [];- if (organizationIds.length > 0) {- organizationInvitesData = await db()- .select()- .from(organizationInvites)- .where(inArray(organizationInvites.organizationId, organizationIds));+ let organizationSelect: Organization[] = [];+ let spacesData: Spaces[] = [];+ try {+ const dashboardData = await getDashboardData(user);+ organizationSelect = dashboardData.organizationSelect;+ spacesData = dashboardData.spacesData;+ } catch (error) {+ console.error("Failed to load dashboard data", error);+ organizationSelect = [];+ spacesData = [];}- const organizationSelect: Organization[] = await Promise.all(- organizationsWithMembers- .reduce((acc: (typeof organizations.$inferSelect)[], row) => {- const existingOrganization = acc.find(- (o) => o.id === row.organization.id- );- if (!existingOrganization) {- acc.push(row.organization);- }- return acc;- }, [])- .map(async (organization) => {- const allMembers = await db()- .select({- member: organizationMembers,- user: {- id: users.id,- name: users.name,- lastName: users.lastName,- email: users.email,- },- })- .from(organizationMembers)- .leftJoin(users, eq(organizationMembers.userId, users.id))- .where(eq(organizationMembers.organizationId, organization.id));-- const owner = await db()- .select({- inviteQuota: users.inviteQuota,- })- .from(users)- .where(eq(users.id, organization.ownerId))- .then((result) => result[0]);-- const totalInvitesResult = await db()- .select({- value: sql<number>`- ${count(organizationMembers.id)} + ${count(- organizationInvites.id- )}- `,- })- .from(organizations)- .leftJoin(- organizationMembers,- eq(organizations.id, organizationMembers.organizationId)- )- .leftJoin(- organizationInvites,- eq(organizations.id, organizationInvites.organizationId)- )- .where(eq(organizations.ownerId, organization.ownerId));-- const totalInvites = totalInvitesResult[0]?.value || 0;-- return {- organization,- members: allMembers.map((m) => ({ ...m.member, user: m.user! })),- invites: organizationInvitesData.filter(- (invite) => invite.organizationId === organization.id- ),- inviteQuota: owner?.inviteQuota || 1,- totalInvites,- };- })- );-- let findActiveOrganization = organizationSelect.find(+ let activeOrganization = organizationSelect.find((organization) => organization.organization.id === user.activeOrganizationId);- if (!findActiveOrganization && organizationSelect.length > 0) {- findActiveOrganization = organizationSelect[0];+ if (!activeOrganization && organizationSelect.length > 0) {+ activeOrganization = organizationSelect[0];}const isSubscribed =@@ -162,7 +53,8 @@ export default async function DashboardLayout({return (<DynamicSharedLayoutorganizationData={organizationSelect}- activeOrganization={findActiveOrganization || null}+ activeOrganization={activeOrganization || null}+ spacesData={spacesData}user={user}isSubscribed={isSubscribed}initialTheme={theme as "light" | "dark"}diff --git a/apps/web/app/dashboard/settings/organization/Organization.tsx b/apps/web/app/dashboard/settings/organization/Organization.tsxindex fb027fde0..bbdaad32e 100644--- a/apps/web/app/dashboard/settings/organization/Organization.tsx+++ b/apps/web/app/dashboard/settings/organization/Organization.tsx@@ -5,7 +5,7 @@ import { updateOrganizationDetails } from "@/actions/organization/update-detailsimport { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";import { Card, CardDescription, CardTitle } from "@cap/ui";import { useRouter } from "next/navigation";-import { useCallback, useRef, useState } from "react";+import { Dispatch, SetStateAction, useCallback, useRef, useState } from "react";import { toast } from "sonner";import { BillingCard } from "./components/BillingCard";import { CustomDomainIconCard } from "./components/CustomDomainIconCard";@@ -19,6 +19,7 @@ export const Organization = () => {const organizationName = activeOrganization?.organization.name;const router = useRouter();const [loading, setLoading] = useState(false);+ const [billingLoading, setBillingLoading] = useState(false);const isOwner = user?.id === activeOrganization?.organization.ownerId;const [isInviteDialogOpen, setIsInviteDialogOpen] = useState(false);const ownerToastShown = useRef(false);@@ -66,22 +67,24 @@ export const Organization = () => {[isOwner, showOwnerToast, activeOrganization?.organization.id, router]);- const handleManageBilling = useCallback(async () => {- if (!isOwner) {- showOwnerToast();- return;- }-- setLoading(true);- try {- const url = await manageBilling();- router.push(url);- } catch (error) {- console.error("Error managing billing:", error);- toast.error("An error occurred while managing billing");- setLoading(false);- }- }, [isOwner, showOwnerToast, router]);+ const handleManageBilling = useCallback(+ async (loadingDispatch: Dispatch<SetStateAction<boolean>>) => {+ if (!isOwner) {+ showOwnerToast();+ return;+ }+ loadingDispatch(true);+ try {+ const url = await manageBilling();+ router.push(url);+ } catch (error) {+ console.error("Error managing billing:", error);+ toast.error("An error occurred while managing billing");+ loadingDispatch(false);+ }+ },+ [isOwner, showOwnerToast, router]+ );return (<form className="flex flex-col gap-6" onSubmit={handleSubmit}>@@ -112,15 +115,15 @@ export const Organization = () => {<MembersCardisOwner={isOwner}loading={loading}- handleManageBilling={handleManageBilling}+ handleManageBilling={() => handleManageBilling(setLoading)}showOwnerToast={showOwnerToast}setIsInviteDialogOpen={setIsInviteDialogOpen}/><BillingCardisOwner={isOwner}- loading={loading}- handleManageBilling={handleManageBilling}+ loading={billingLoading}+ handleManageBilling={() => handleManageBilling(setBillingLoading)}/><InviteDialog@@ -128,7 +131,7 @@ export const Organization = () => {setIsOpen={setIsInviteDialogOpen}isOwner={isOwner}showOwnerToast={showOwnerToast}- handleManageBilling={handleManageBilling}+ handleManageBilling={() => handleManageBilling(setLoading)}/></form>);diff --git a/apps/web/app/dashboard/settings/organization/components/BillingCard.tsx b/apps/web/app/dashboard/settings/organization/components/BillingCard.tsxindex 614a1e889..51c9c44cb 100644--- a/apps/web/app/dashboard/settings/organization/components/BillingCard.tsx+++ b/apps/web/app/dashboard/settings/organization/components/BillingCard.tsx@@ -1,13 +1,6 @@"use client";-import {- Button,- Card,- CardDescription,- CardHeader,- CardTitle-} from "@cap/ui";-+import { Button, Card, CardDescription, CardHeader, CardTitle } from "@cap/ui";interface BillingCardProps {isOwner: boolean;@@ -18,7 +11,7 @@ interface BillingCardProps {export const BillingCard = ({isOwner,loading,- handleManageBilling+ handleManageBilling,}: BillingCardProps) => {return (<Card className="flex flex-wrap gap-6 justify-between items-center w-full">@@ -33,8 +26,9 @@ export const BillingCard = ({type="button"size="sm"variant="dark"+ spinner={loading}onClick={handleManageBilling}- disabled={!isOwner}+ disabled={!isOwner || loading}>{loading ? "Loading..." : "Manage Billing"}</Button>diff --git a/apps/web/app/dashboard/settings/organization/components/CustomDomain.tsx b/apps/web/app/dashboard/settings/organization/components/CustomDomain.tsxindex ecb7e6a33..b84e1de56 100644--- a/apps/web/app/dashboard/settings/organization/components/CustomDomain.tsx+++ b/apps/web/app/dashboard/settings/organization/components/CustomDomain.tsx@@ -32,7 +32,6 @@ type DomainConfig = {requiredAValue?: string;};-export function CustomDomain() {const router = useRouter();const { activeOrganization, isSubscribed } = useSharedContext();@@ -227,7 +226,7 @@ export function CustomDomain() {};return (- <div className="flex flex-wrap space-y-6">+ <div className="flex flex-wrap mt-4 space-y-6"><div className="flex-1"><div className="flex flex-col justify-between items-start"><Input@@ -237,7 +236,7 @@ export function CustomDomain() {value={domain}onChange={(e) => setDomain(e.target.value)}disabled={loading}- className="flex-1"+ className="flex-1 min-h-[44px]"/><div className="flex gap-2 justify-between items-center mt-4">{activeOrganization?.organization.customDomain &&@@ -265,6 +264,7 @@ export function CustomDomain() {<Buttontype="submit"size="sm"+ className="px-[1.5rem]"variant="dark"onClick={handleSubmit}spinner={loading}diff --git a/apps/web/app/dashboard/settings/organization/components/CustomDomainIconCard.tsx b/apps/web/app/dashboard/settings/organization/components/CustomDomainIconCard.tsxindex 0cdffafd3..e4a6e5d5c 100644--- a/apps/web/app/dashboard/settings/organization/components/CustomDomainIconCard.tsx+++ b/apps/web/app/dashboard/settings/organization/components/CustomDomainIconCard.tsx@@ -26,9 +26,7 @@ export const CustomDomainIconCard = ({it unique.</CardDescription></div>- <div className="mt-4">- <CustomDomain />- </div>+ <CustomDomain /></div></Card>);diff --git a/apps/web/app/dashboard/settings/organization/components/InviteDialog.tsx b/apps/web/app/dashboard/settings/organization/components/InviteDialog.tsxindex bf096da19..402dec23b 100644--- a/apps/web/app/dashboard/settings/organization/components/InviteDialog.tsx+++ b/apps/web/app/dashboard/settings/organization/components/InviteDialog.tsx@@ -106,7 +106,11 @@ export const InviteDialog = ({},onError: (error) => {console.error("Error sending invites:", error);- toast.error(error instanceof Error ? error.message : "An error occurred while sending invites");+ toast.error(+ error instanceof Error+ ? error.message+ : "An error occurred while sending invites"+ );},});@@ -123,7 +127,7 @@ export const InviteDialog = ({><DialogTitle>Invite to{" "}- <span className="font-bold text-gray-12">+ <span className="font-medium text-gray-12">{activeOrganization?.organization.name}</span></DialogTitle>@@ -148,7 +152,7 @@ export const InviteDialog = ({{inviteEmails.map((email) => (<divkey={email}- className="flex justify-between items-center p-3 rounded-xl border transition-colors duration-200 cursor-pointer border-gray-3"+ className="flex justify-between items-center p-3 rounded-xl border transition-colors duration-200 cursor-pointer border-gray-4 hover:bg-gray-3"><span className="text-sm text-gray-12">{email}</span><Button@@ -170,8 +174,8 @@ export const InviteDialog = ({</div></>) : (- <div className="flex flex-col gap-2 p-4 rounded-xl border bg-amber-50 border-amber-200">- <p className="text-amber-800 font-medium">No Seats Available</p>+ <div className="flex flex-col gap-2 p-4 bg-amber-50 rounded-xl border border-amber-200">+ <p className="font-medium text-amber-800">No Seats Available</p><p className="text-sm text-amber-700">You've reached your seat limit. Please upgrade your plan orremove existing members to invite new ones.@@ -180,7 +184,7 @@ export const InviteDialog = ({type="button"size="sm"variant="dark"- className="mt-2 self-start"+ className="self-start mt-2"spinner={upgradeLoading}disabled={upgradeLoading || !isOwner}onClick={handleUpgradePlan}@@ -205,7 +209,9 @@ export const InviteDialog = ({variant="dark"spinner={sendInvites.isPending}disabled={- sendInvites.isPending || inviteEmails.length === 0 || remainingSeats === 0+ sendInvites.isPending ||+ inviteEmails.length === 0 ||+ remainingSeats === 0}onClick={handleSendInvites}>diff --git a/apps/web/app/dashboard/settings/organization/components/MembersCard.tsx b/apps/web/app/dashboard/settings/organization/components/MembersCard.tsxindex c0723788f..72a0a1c1c 100644--- a/apps/web/app/dashboard/settings/organization/components/MembersCard.tsx+++ b/apps/web/app/dashboard/settings/organization/components/MembersCard.tsx@@ -76,6 +76,7 @@ export const MembersCard = ({type="button"size="sm"variant="primary"+ className="px-6 min-w-auto"spinner={loading}disabled={!isOwner || loading}onClick={handleManageBilling}@@ -87,6 +88,7 @@ export const MembersCard = ({type="button"size="sm"variant="dark"+ className="px-6 min-w-auto"onClick={() => {if (!isOwner) {showOwnerToast();diff --git a/apps/web/app/dashboard/settings/organization/components/OrganizationDetailsCard.tsx b/apps/web/app/dashboard/settings/organization/components/OrganizationDetailsCard.tsxindex 6bdd65a3a..a0a2bd112 100644--- a/apps/web/app/dashboard/settings/organization/components/OrganizationDetailsCard.tsx+++ b/apps/web/app/dashboard/settings/organization/components/OrganizationDetailsCard.tsx@@ -1,12 +1,7 @@"use client";import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";-import {- Button,- Card,- Input,- Label-} from "@cap/ui";+import { Button, Card, Input, Label } from "@cap/ui";interface OrganizationDetailsCardProps {isOwner: boolean;@@ -19,7 +14,7 @@ export const OrganizationDetailsCard = ({isOwner,saveLoading,showOwnerToast,- organizationName+ organizationName,}: OrganizationDetailsCardProps) => {const { activeOrganization } = useSharedContext();@@ -49,9 +44,11 @@ export const OrganizationDetailsCard = ({<div className="flex-1 w-full"><div className="space-y-1"><Label htmlFor="allowedEmailDomain">Access email domain</Label>- <p className="mt-1 text-sm text-gray-10">+ <p className="text-sm text-gray-10">Only emails from this domain can access shared videos.{" "}- <b>Leave blank to allow everyone.</b>+ <span className="font-medium text-sm text-gray-11 leading-[0px]">+ Leave blank to allow everyone.+ </span></p></div><Input@@ -71,7 +68,7 @@ export const OrganizationDetailsCard = ({</div></div><Button- className="mt-8 w-fit"+ className="mt-8 px-[1.5rem] w-fit"type="submit"spinner={saveLoading}size="sm"diff --git a/apps/web/app/dashboard/settings/organization/components/OrganizationIcon.tsx b/apps/web/app/dashboard/settings/organization/components/OrganizationIcon.tsxindex 7a3d85eb6..4a91528e1 100644--- a/apps/web/app/dashboard/settings/organization/components/OrganizationIcon.tsx+++ b/apps/web/app/dashboard/settings/organization/components/OrganizationIcon.tsx@@ -1,7 +1,7 @@"use client";import { removeOrganizationIcon } from "@/actions/organization/remove-icon";-import { uploadOrganizationIcon } from "@/actions/organization/upload-icon";+import { uploadOrganizationIcon } from "@/actions/organization/upload-organization-icon";import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";import { FileInput } from "@/components/FileInput";import { CardDescription, Label } from "@cap/ui";@@ -20,32 +20,34 @@ export const OrganizationIcon = ({const { activeOrganization } = useSharedContext();const organizationId = activeOrganization?.organization.id;const existingIconUrl = activeOrganization?.organization.iconUrl;-+const [isUploading, setIsUploading] = useState(false);-+const handleFileChange = async (file: File | null) => {if (!isOwner) {showOwnerToast();return;}-+// If file is null, it means the user removed the fileif (!file || !organizationId) return;-+// Upload the file to the server immediatelytry {setIsUploading(true);const formData = new FormData();- formData.append('file', file);-+ formData.append("file", file);+const result = await uploadOrganizationIcon(formData, organizationId);-+if (result.success) {toast.success("Organization icon updated successfully");}} catch (error) {console.error("Error uploading organization icon:", error);- toast.error(error instanceof Error ? error.message : "Failed to upload icon");+ toast.error(+ error instanceof Error ? error.message : "Failed to upload icon"+ );} finally {setIsUploading(false);}@@ -53,16 +55,18 @@ export const OrganizationIcon = ({const handleRemoveIcon = async () => {if (!isOwner || !organizationId) return;-+try {const result = await removeOrganizationIcon(organizationId);-+if (result.success) {toast.success("Organization icon removed successfully");}} catch (error) {console.error("Error removing organization icon:", error);- toast.error(error instanceof Error ? error.message : "Failed to remove icon");+ toast.error(+ error instanceof Error ? error.message : "Failed to remove icon"+ );}};@@ -71,8 +75,7 @@ export const OrganizationIcon = ({<div className="space-y-1"><Label htmlFor="icon">Organization Icon</Label><CardDescription className="w-full max-w-[400px]">- Upload a custom logo or icon for your organization and make it- unique.+ Upload a custom logo or icon for your organization and make it unique.</CardDescription></div><div className="relative mt-4">@@ -85,7 +88,7 @@ export const OrganizationIcon = ({initialPreviewUrl={existingIconUrl || null}onRemove={handleRemoveIcon}/>- </div>+ </div></div>);};diff --git a/apps/web/app/dashboard/settings/organization/components/SeatsInfoCards.tsx b/apps/web/app/dashboard/settings/organization/components/SeatsInfoCards.tsxindex 84bdbe95e..fff6a89ef 100644--- a/apps/web/app/dashboard/settings/organization/components/SeatsInfoCards.tsx+++ b/apps/web/app/dashboard/settings/organization/components/SeatsInfoCards.tsx@@ -18,14 +18,14 @@ export const SeatsInfoCards = () => {<FontAwesomeIcon className="text-gray-10 size-5" icon={faChair} /><p className="text-gray-12">Seats Remaining- <span className="ml-2 font-bold text-gray-12">{remainingSeats}</span>+ <span className="ml-2 font-medium text-gray-12">{remainingSeats}</span></p></Card><Card className="flex flex-col flex-1 gap-3 justify-center items-center"><FontAwesomeIcon className="text-gray-10 size-5" icon={faUserGroup} /><p className="text-gray-12">Seats Capacity- <span className="ml-2 font-bold text-gray-12">{inviteQuota}</span>+ <span className="ml-2 font-medium text-gray-12">{inviteQuota}</span></p></Card></div>diff --git a/apps/web/app/dashboard/settings/organization/loading.tsx b/apps/web/app/dashboard/settings/organization/loading.tsxindex bd8c845ff..eecbeafec 100644--- a/apps/web/app/dashboard/settings/organization/loading.tsx+++ b/apps/web/app/dashboard/settings/organization/loading.tsx@@ -27,7 +27,7 @@ export default function Loading() {width={100}/></span>- <span className="ml-2 font-bold">+ <span className="ml-2 font-medium"><SkeletonbaseColor="var(--gray-4)"highlightColor="var(--gray-5)"@@ -55,7 +55,7 @@ export default function Loading() {width={100}/></span>- <span className="ml-2 font-bold">+ <span className="ml-2 font-medium"><SkeletonbaseColor="var(--gray-4)"highlightColor="var(--gray-5)"diff --git a/apps/web/app/dashboard/shared-caps/SharedCaps.tsx b/apps/web/app/dashboard/shared-caps/SharedCaps.tsxdeleted file mode 100644index f188d0dbb..000000000--- a/apps/web/app/dashboard/shared-caps/SharedCaps.tsx+++ /dev/null@@ -1,77 +0,0 @@-"use client";-import { getVideoAnalytics } from "@/actions/videos/get-analytics";-import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";-import { VideoMetadata } from "@cap/database/types";-import { useSearchParams } from "next/navigation";-import { useEffect, useState } from "react";-import { CapPagination } from "../caps/components/CapPagination";-import { EmptySharedCapState } from "./components/EmptySharedCapState";-import { SharedCapCard } from "./components/SharedCapCard";--type SharedVideoData = {- id: string;- ownerId: string;- name: string;- createdAt: Date;- totalComments: number;- totalReactions: number;- ownerName: string | null;- metadata?: VideoMetadata;-}[];--export const SharedCaps = ({- data,- count,-}: {- data: SharedVideoData;- count: number;-}) => {- const params = useSearchParams();- const page = Number(params.get("page")) || 1;- const [analytics, setAnalytics] = useState<Record<string, number>>({});- const { activeOrganization } = useSharedContext();- const limit = 15;- const totalPages = Math.ceil(count / limit);-- useEffect(() => {- const fetchAnalytics = async () => {- const analyticsData: Record<string, number> = {};-- for (const video of data) {- const result = await getVideoAnalytics(video.id);- analyticsData[video.id] = result.count || 0;- }- setAnalytics(analyticsData);- };-- fetchAnalytics();- }, [data]);-- if (data.length === 0) {- return (- <EmptySharedCapState- organizationName={activeOrganization?.organization.name || ""}- />- );- }-- return (- <div className="flex flex-col w-full h-full">- <div className="grid grid-cols-1 gap-4 sm:gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5">- {data.map((cap) => (- <SharedCapCard- key={cap.id}- cap={cap}- analytics={analytics[cap.id] || 0}- organizationName={activeOrganization?.organization.name || ""}- />- ))}- </div>- {(data.length > limit || data.length === limit || page !== 1) && (- <div className="mt-4">- <CapPagination currentPage={page} totalPages={totalPages} />- </div>- )}- </div>- );-};diff --git a/apps/web/app/dashboard/shared-caps/components/EmptySharedCapState.tsx b/apps/web/app/dashboard/shared-caps/components/EmptySharedCapState.tsxdeleted file mode 100644index 99fdbeae4..000000000--- a/apps/web/app/dashboard/shared-caps/components/EmptySharedCapState.tsx+++ /dev/null@@ -1,36 +0,0 @@-import { useRive } from "@rive-app/react-canvas";-import { useTheme } from "../../_components/DynamicSharedLayout";--interface EmptySharedCapStateProps {- organizationName: string;-}--export const EmptySharedCapState: React.FC<EmptySharedCapStateProps> = ({- organizationName,-}) => {- const { theme } = useTheme();- const { RiveComponent: EmptyCap } = useRive({- src: "/rive/main.riv",- artboard: theme === "light" ? "emptyshared" : "darkemptyshared",- autoplay: true,- });- return (- <div className="flex flex-col flex-1 justify-center items-center w-full h-full">- <div className="mx-auto mb-20 w-full max-w-md">- <EmptyCap- key={theme + "empty-shared-cap"}- className="max-w-[300px] w-full mx-auto md:max-w-[600px] h-[250px]"- />- </div>- <div className="text-center pb-[30px]">- <p className="mb-3 text-xl font-semibold text-gray-12">- No shared Caps yet!- </p>- <p className="max-w-md text-md text-gray-10">- There are no Caps shared with {organizationName} yet. Ask your team- members to share their Caps with this organization.- </p>- </div>- </div>- );-};diff --git a/apps/web/app/dashboard/shared-caps/page.tsx b/apps/web/app/dashboard/shared-caps/page.tsxdeleted file mode 100644index 28ed6a724..000000000--- a/apps/web/app/dashboard/shared-caps/page.tsx+++ /dev/null@@ -1,147 +0,0 @@-import { db } from "@cap/database";-import { getCurrentUser } from "@cap/database/auth/session";-import {- comments,- organizationMembers,- organizations,- sharedVideos,- users,- videos,-} from "@cap/database/schema";-import { count, desc, eq, sql } from "drizzle-orm";-import { Metadata } from "next";-import { SharedCaps } from "./SharedCaps";--export const metadata: Metadata = {- title: "Shared Caps — Cap",-};--export const revalidate = 0;--export default async function SharedCapsPage({- searchParams,-}: {- searchParams: { [key: string]: string | string[] | undefined };-}) {- const page = Number(searchParams.page) || 1;- const limit = Number(searchParams.limit) || 15;- const user = await getCurrentUser();- const userId = user?.id as string;-- let activeOrganizationId = user?.activeOrganizationId;- if (!activeOrganizationId) {- const firstOrganization = await db()- .select({ id: organizations.id })- .from(organizations)- .innerJoin(- organizationMembers,- eq(organizations.id, organizationMembers.organizationId)- )- .where(eq(organizationMembers.userId, userId))- .limit(1)- .then((result) => result[0]);-- activeOrganizationId = firstOrganization?.id;- }-- if (!activeOrganizationId) {- return (- <div>- No organizations available. Please create or join an organization.- </div>- );- }-- const offset = (page - 1) * limit;-- const totalCountResult = await db()- .select({ count: count() })- .from(sharedVideos)- .where(eq(sharedVideos.organizationId, activeOrganizationId));-- const totalCount = totalCountResult[0]?.count || 0;-- const sharedVideoData = await db()- .select({- id: videos.id,- ownerId: videos.ownerId,- name: videos.name,- createdAt: videos.createdAt,- metadata: videos.metadata,- totalComments: sql<number>`COUNT(DISTINCT CASE WHEN ${comments.type} = 'text' THEN ${comments.id} END)`,- totalReactions: sql<number>`COUNT(DISTINCT CASE WHEN ${comments.type} = 'emoji' THEN ${comments.id} END)`,- ownerName: users.name,- effectiveDate: sql<string>`- COALESCE(- JSON_UNQUOTE(JSON_EXTRACT(${videos.metadata}, '$.customCreatedAt')),- ${videos.createdAt}- )- `,- })- .from(sharedVideos)- .innerJoin(videos, eq(sharedVideos.videoId, videos.id))- .leftJoin(comments, eq(videos.id, comments.videoId))- .leftJoin(users, eq(videos.ownerId, users.id))- .where(eq(sharedVideos.organizationId, activeOrganizationId))- .groupBy(- videos.id,- videos.ownerId,- videos.name,- videos.createdAt,- videos.metadata,- users.name- )- .orderBy(- desc(sql`COALESCE(- JSON_UNQUOTE(JSON_EXTRACT(${videos.metadata}, '$.customCreatedAt')),- ${videos.createdAt}- )`)- )- .limit(limit)- .offset(offset);-- // Process the data to clean it up and remove the temporary effectiveDate field- const processedSharedVideoData = sharedVideoData.map((video) => {- const { effectiveDate, ...videoWithoutEffectiveDate } = video;-- return {- ...videoWithoutEffectiveDate,- ownerName: video.ownerName ?? null,- metadata: video.metadata as- | {- customCreatedAt?: string;- [key: string]: any;- }- | undefined,- };- });-- console.log("sharedVideoData:");- console.log(processedSharedVideoData);-- // Debug: Check if there are any shared videos for this space- const debugSharedVideos = await db()- .select({- id: sharedVideos.id,- videoId: sharedVideos.videoId,- organizationId: sharedVideos.organizationId,- })- .from(sharedVideos)- .where(eq(sharedVideos.organizationId, activeOrganizationId));-- if (debugSharedVideos.length > 0) {- const debugVideos = await db()- .select({- id: videos.id,- name: videos.name,- ownerId: videos.ownerId,- })- .from(videos)- .where(eq(videos.id, debugSharedVideos[0]!.videoId));-- console.log("Debug: Video details:");- console.log(debugVideos);- }-- return <SharedCaps data={processedSharedVideoData} count={totalCount} />;-}diff --git a/apps/web/app/dashboard/spaces/[spaceId]/SharedCaps.tsx b/apps/web/app/dashboard/spaces/[spaceId]/SharedCaps.tsxnew file mode 100644index 000000000..95378fd14--- /dev/null+++ b/apps/web/app/dashboard/spaces/[spaceId]/SharedCaps.tsx@@ -0,0 +1,241 @@+"use client";++import { getVideoAnalytics } from "@/actions/videos/get-analytics";+import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";+import { VideoMetadata } from "@cap/database/types";+import { useSearchParams, useRouter } from "next/navigation";+import { useEffect, useState } from "react";+import { CapPagination } from "../../caps/components/CapPagination";+import { EmptySharedCapState } from "./components/EmptySharedCapState";+import { SharedCapCard } from "./components/SharedCapCard";+import { MembersIndicator } from "./components/MembersIndicator";+import { AddVideosDialog } from "./components/AddVideosDialog";+import {+ OrganizationIndicator,+ OrganizationMemberData,+} from "./components/OrganizationIndicator";+import { AddVideosToOrganizationDialog } from "./components/AddVideosToOrganizationDialog";+import { SpaceMemberData } from "./page";++type SharedVideoData = {+ id: string;+ ownerId: string;+ name: string;+ createdAt: Date;+ totalComments: number;+ totalReactions: number;+ ownerName: string | null;+ metadata?: VideoMetadata;+}[];++type SpaceData = {+ id: string;+ name: string;+ organizationId: string;+ createdById: string;+};++export const SharedCaps = ({+ data,+ count,+ spaceData,+ spaceMembers,+ organizationMembers,+ currentUserId,+ organizationData,+ hideSharedWith,+}: {+ data: SharedVideoData;+ count: number;+ spaceData?: SpaceData;+ hideSharedWith?: boolean;+ spaceMembers?: SpaceMemberData[];+ organizationMembers?: OrganizationMemberData[];+ currentUserId?: string;+ organizationData?: {+ id: string;+ name: string;+ ownerId: string;+ };+}) => {+ const params = useSearchParams();+ const router = useRouter();+ const page = Number(params.get("page")) || 1;+ const [analytics, setAnalytics] = useState<Record<string, number>>({});+ const { activeOrganization } = useSharedContext();+ const limit = 15;+ const totalPages = Math.ceil(count / limit);+ const [isDraggingCap, setIsDraggingCap] = useState(false);+ const [isAddVideosDialogOpen, setIsAddVideosDialogOpen] = useState(false);+ const [+ isAddOrganizationVideosDialogOpen,+ setIsAddOrganizationVideosDialogOpen,+ ] = useState(false);++ const isSpaceOwner = spaceData?.createdById === currentUserId;+ const isOrgOwner = organizationData?.ownerId === currentUserId;++ const spaceMemberCount = isSpaceOwner+ ? spaceMembers?.filter((m) => m.userId !== currentUserId).length || 0+ : spaceMembers?.length || 0;++ const organizationMemberCount = organizationMembers?.length || 0;++ useEffect(() => {+ const fetchAnalytics = async () => {+ const analyticsData: Record<string, number> = {};++ for (const video of data) {+ const result = await getVideoAnalytics(video.id);+ analyticsData[video.id] = result.count || 0;+ }+ setAnalytics(analyticsData);+ };++ fetchAnalytics();+ }, [data]);++ useEffect(() => {+ const handleDragStart = () => setIsDraggingCap(true);+ const handleDragEnd = () => setIsDraggingCap(false);++ window.addEventListener("dragstart", handleDragStart);+ window.addEventListener("dragend", handleDragEnd);++ return () => {+ window.removeEventListener("dragstart", handleDragStart);+ window.removeEventListener("dragend", handleDragEnd);+ };+ }, []);++ const handleVideosAdded = () => {+ router.refresh();+ };++ if (data.length === 0) {+ return (+ <>+ <div className="flex relative flex-col w-full h-full">+ {spaceData && spaceMembers && (+ <MembersIndicator+ memberCount={spaceMemberCount}+ members={spaceMembers}+ organizationMembers={organizationMembers || []}+ spaceId={spaceData.id}+ canManageMembers={isSpaceOwner}+ onAddVideos={() => setIsAddVideosDialogOpen(true)}+ />+ )}+ {organizationData && organizationMembers && !spaceData && (+ <OrganizationIndicator+ memberCount={organizationMemberCount}+ members={organizationMembers}+ organizationId={organizationData.id}+ organizationName={organizationData.name}+ canManageMembers={isOrgOwner}+ onAddVideos={() => setIsAddOrganizationVideosDialogOpen(true)}+ />+ )}+ <EmptySharedCapState+ organizationName={activeOrganization?.organization.name || ""}+ type={spaceData ? "space" : "organization"}+ spaceData={spaceData}+ currentUserId={currentUserId}+ onAddVideos={+ spaceData+ ? () => setIsAddVideosDialogOpen(true)+ : () => setIsAddOrganizationVideosDialogOpen(true)+ }+ />+ </div>+ {spaceData && (+ <AddVideosDialog+ open={isAddVideosDialogOpen}+ onClose={() => setIsAddVideosDialogOpen(false)}+ spaceId={spaceData.id}+ spaceName={spaceData.name}+ onVideosAdded={handleVideosAdded}+ />+ )}+ {organizationData && (+ <AddVideosToOrganizationDialog+ open={isAddOrganizationVideosDialogOpen}+ onClose={() => setIsAddOrganizationVideosDialogOpen(false)}+ organizationId={organizationData.id}+ organizationName={organizationData.name}+ onVideosAdded={handleVideosAdded}+ />+ )}+ </>+ );+ }++ return (+ <div className="flex relative flex-col w-full h-full">+ {isDraggingCap && (+ <div className="fixed inset-0 z-50 pointer-events-none">+ <div className="flex justify-center items-center w-full h-full">+ <div className="px-5 py-3 text-sm font-medium rounded-lg border backdrop-blur-md bg-gray-1/80 border-gray-4 text-gray-12">+ Drag to a space to share+ </div>+ </div>+ </div>+ )}+ {spaceData && spaceMembers && (+ <MembersIndicator+ memberCount={spaceMemberCount}+ members={spaceMembers}+ organizationMembers={organizationMembers || []}+ spaceId={spaceData.id}+ canManageMembers={isSpaceOwner}+ onAddVideos={() => setIsAddVideosDialogOpen(true)}+ />+ )}+ {organizationData && organizationMembers && !spaceData && (+ <OrganizationIndicator+ memberCount={organizationMemberCount}+ members={organizationMembers}+ organizationId={organizationData.id}+ organizationName={organizationData.name}+ canManageMembers={isOrgOwner}+ onAddVideos={() => setIsAddOrganizationVideosDialogOpen(true)}+ />+ )}+ {spaceData && (+ <AddVideosDialog+ open={isAddVideosDialogOpen}+ onClose={() => setIsAddVideosDialogOpen(false)}+ spaceId={spaceData.id}+ spaceName={spaceData.name}+ onVideosAdded={handleVideosAdded}+ />+ )}+ {organizationData && (+ <AddVideosToOrganizationDialog+ open={isAddOrganizationVideosDialogOpen}+ onClose={() => setIsAddOrganizationVideosDialogOpen(false)}+ organizationId={organizationData.id}+ organizationName={organizationData.name}+ onVideosAdded={handleVideosAdded}+ />+ )}+ <div className="grid grid-cols-1 gap-4 sm:gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5">+ {data.map((cap) => (+ <SharedCapCard+ key={cap.id}+ cap={cap}+ hideSharedStatus+ analytics={analytics[cap.id] || 0}+ organizationName={activeOrganization?.organization.name || ""}+ userId={currentUserId}+ />+ ))}+ </div>+ {(data.length > limit || data.length === limit || page !== 1) && (+ <div className="mt-4">+ <CapPagination currentPage={page} totalPages={totalPages} />+ </div>+ )}+ </div>+ );+};diff --git a/apps/web/app/dashboard/spaces/[spaceId]/actions.ts b/apps/web/app/dashboard/spaces/[spaceId]/actions.tsnew file mode 100644index 000000000..1d90d7aea--- /dev/null+++ b/apps/web/app/dashboard/spaces/[spaceId]/actions.ts@@ -0,0 +1,223 @@+"use server";++import { db } from "@cap/database";+import { revalidatePath } from "next/cache";+import { z } from "zod";+import { spaceMembers } from "@cap/database/schema";+import { getCurrentUser } from "@cap/database/auth/session";+import { nanoIdLength } from "@cap/database/helpers";+import { eq } from "drizzle-orm";+import { v4 as uuidv4 } from "uuid";++const addSpaceMemberSchema = z.object({+ spaceId: z.string(),+ userId: z.string(),+ role: z.string(),+});++const addSpaceMembersSchema = z.object({+ spaceId: z.string(),+ userIds: z.array(z.string()),+ role: z.string(),+});++export async function addSpaceMember(+ data: z.infer<typeof addSpaceMemberSchema>+) {+ const validation = addSpaceMemberSchema.safeParse(data);++ if (!validation.success) {+ throw new Error("Invalid input");+ }++ const currentUser = await getCurrentUser();++ if (!currentUser) {+ throw new Error("Unauthorized");+ }++ const { spaceId, userId, role } = validation.data;++ await db()+ .insert(spaceMembers)+ .values({+ id: uuidv4().substring(0, nanoIdLength),+ spaceId,+ userId,+ role,+ createdAt: new Date(),+ updatedAt: new Date(),+ });++ revalidatePath(`/dashboard/spaces/${spaceId}`);++ return { success: true };+}++export async function addSpaceMembers(+ data: z.infer<typeof addSpaceMembersSchema>+) {+ const validation = addSpaceMembersSchema.safeParse(data);+ if (!validation.success) {+ throw new Error("Invalid input");+ }++ const currentUser = await getCurrentUser();+ if (!currentUser) {+ throw new Error("Unauthorized");+ }++ const { spaceId, userIds, role } = validation.data;++ // Fetch existing members to avoid duplicates+ const existing = await db()+ .select({ userId: spaceMembers.userId })+ .from(spaceMembers)+ .where(eq(spaceMembers.spaceId, spaceId));+ const existingIds = new Set(existing.map((m) => m.userId));+ const newUserIds = userIds.filter((id) => !existingIds.has(id));++ if (newUserIds.length === 0) {+ revalidatePath(`/dashboard/spaces/${spaceId}`);+ return { success: true, added: [], alreadyMembers: userIds };+ }++ const now = new Date();+ const values = newUserIds.map((userId) => ({+ id: uuidv4().substring(0, nanoIdLength),+ spaceId,+ userId,+ role,+ createdAt: now,+ updatedAt: now,+ }));++ await db().insert(spaceMembers).values(values);+ revalidatePath(`/dashboard/spaces/${spaceId}`);+ return {+ success: true,+ added: newUserIds,+ alreadyMembers: Array.from(existingIds),+ };+}++const removeSpaceMemberSchema = z.object({+ memberId: z.string(),+});++export async function removeSpaceMember(+ data: z.infer<typeof removeSpaceMemberSchema>+) {+ const validation = removeSpaceMemberSchema.safeParse(data);++ if (!validation.success) {+ throw new Error("Invalid input");+ }++ const currentUser = await getCurrentUser();++ if (!currentUser) {+ throw new Error("Unauthorized");+ }++ const { memberId } = validation.data;++ const member = await db()+ .select({ spaceId: spaceMembers.spaceId })+ .from(spaceMembers)+ .where(eq(spaceMembers.id, memberId))+ .limit(1);++ if (member.length === 0) {+ throw new Error("Member not found");+ }++ const spaceId = member[0]?.spaceId;++ if (!spaceId) {+ throw new Error("Space ID not found");+ }++ await db().delete(spaceMembers).where(eq(spaceMembers.id, memberId));++ revalidatePath(`/dashboard/spaces/${spaceId}`);++ return { success: true };+}++// Replace all members for a space+const setSpaceMembersSchema = z.object({+ spaceId: z.string(),+ userIds: z.array(z.string()),+ role: z.string().default("member"),+});++export async function setSpaceMembers(+ data: z.infer<typeof setSpaceMembersSchema>+) {+ const validation = setSpaceMembersSchema.safeParse(data);+ if (!validation.success) {+ throw new Error("Invalid input");+ }+ const currentUser = await getCurrentUser();+ if (!currentUser) {+ throw new Error("Unauthorized");+ }+ const { spaceId, userIds, role } = validation.data;++ // Remove all current members+ await db().delete(spaceMembers).where(eq(spaceMembers.spaceId, spaceId));++ // Insert new members if any+ if (userIds.length > 0) {+ const now = new Date();+ const values = userIds.map(userId => ({+ id: uuidv4().substring(0, nanoIdLength),+ spaceId,+ userId,+ role,+ createdAt: now,+ updatedAt: now,+ }));+ await db().insert(spaceMembers).values(values);+ }++ revalidatePath(`/dashboard/spaces/${spaceId}`);+ return { success: true, count: userIds.length };+}++const batchRemoveSpaceMembersSchema = z.object({+ memberIds: z.array(z.string()),+});++export async function batchRemoveSpaceMembers(+ data: z.infer<typeof batchRemoveSpaceMembersSchema>+) {+ const validation = batchRemoveSpaceMembersSchema.safeParse(data);+ if (!validation.success) {+ throw new Error("Invalid input");+ }++ const currentUser = await getCurrentUser();+ if (!currentUser) {+ throw new Error("Unauthorized");+ }++ const { memberIds } = validation.data;+ if (memberIds.length === 0) {+ return { success: true, removed: [] };+ }++ // Get spaceId for revalidation (assume all memberIds are from the same space)+ const members = await db()+ .select({ spaceId: spaceMembers.spaceId })+ .from(spaceMembers)+ .where(spaceMembers.id.in(memberIds));+ const spaceId = members[0]?.spaceId;++ await db().delete(spaceMembers).where(spaceMembers.id.in(memberIds));+ if (spaceId) {+ revalidatePath(`/dashboard/spaces/${spaceId}`);+ }+ return { success: true, removed: memberIds };+}diff --git a/apps/web/app/dashboard/spaces/[spaceId]/components/AddVideosDialog.tsx b/apps/web/app/dashboard/spaces/[spaceId]/components/AddVideosDialog.tsxnew file mode 100644index 000000000..c9fe282b2--- /dev/null+++ b/apps/web/app/dashboard/spaces/[spaceId]/components/AddVideosDialog.tsx@@ -0,0 +1,38 @@+"use client";++import React from "react";+import { getUserVideos } from "@/actions/videos/get-user-videos";+import { addVideosToSpace } from "@/actions/spaces/add-videos";+import { getSpaceVideoIds } from "@/actions/spaces/get-space-videos";+import AddVideosDialogBase from "./AddVideosDialogBase";++interface AddVideosDialogProps {+ open: boolean;+ onClose: () => void;+ spaceId: string;+ spaceName: string;+ onVideosAdded?: () => void;+}++export const AddVideosDialog: React.FC<AddVideosDialogProps> = ({+ open,+ onClose,+ spaceId,+ spaceName,+ onVideosAdded,+}) => {+ return (+ <AddVideosDialogBase+ open={open}+ onClose={onClose}+ entityId={spaceId}+ entityName={spaceName}+ onVideosAdded={onVideosAdded}+ addVideos={addVideosToSpace}+ getVideos={getUserVideos}+ getEntityVideoIds={getSpaceVideoIds}+ />+ );+};++export default AddVideosDialog;diff --git a/apps/web/app/dashboard/spaces/[spaceId]/components/AddVideosDialogBase.tsx b/apps/web/app/dashboard/spaces/[spaceId]/components/AddVideosDialogBase.tsxnew file mode 100644index 000000000..415fbb8bb--- /dev/null+++ b/apps/web/app/dashboard/spaces/[spaceId]/components/AddVideosDialogBase.tsx@@ -0,0 +1,349 @@+"use client";++import { zodResolver } from "@hookform/resolvers/zod";+import * as z from "zod";+import React, { useState, useEffect } from "react";+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+ Button,+ Input,+} from "@cap/ui";+import { useForm } from "react-hook-form";+import { toast } from "sonner";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { faVideo } from "@fortawesome/free-solid-svg-icons";+import { VideoThumbnail } from "@/components/VideoThumbnail";+import { useMutation, useQuery } from "@tanstack/react-query";+import { Search } from "lucide-react";+import { Check } from "lucide-react";+import moment from "moment";+import clsx from "clsx";+import { motion } from "framer-motion";+interface AddVideosDialogBaseProps {+ open: boolean;+ onClose: () => void;+ entityId: string;+ entityName: string;+ onVideosAdded?: () => void;+ addVideos: (entityId: string, videoIds: string[]) => Promise<any>;+ getVideos: (limit: number) => Promise<any>;+ getEntityVideoIds: (entityId: string) => Promise<any>;+}++interface Video {+ id: string;+ ownerId: string;+ name: string;+ createdAt: Date;+ totalComments: number;+ totalReactions: number;+ ownerName: string;+ metadata?: {+ customCreatedAt?: string;+ };+}++const formSchema = z.object({+ search: z.string(),+});++const AddVideosDialogBase: React.FC<AddVideosDialogBaseProps> = ({+ open,+ onClose,+ entityId,+ entityName,+ onVideosAdded,+ addVideos,+ getVideos,+ getEntityVideoIds,+}) => {+ const [selectedVideos, setSelectedVideos] = useState<string[]>([]);+ const [searchTerm, setSearchTerm] = useState("");++ const form = useForm<z.infer<typeof formSchema>>({+ resolver: zodResolver(formSchema),+ defaultValues: {+ search: "",+ },+ });++ const { data: videosData, isLoading } = useQuery({+ queryKey: ["user-videos"],+ queryFn: async () => {+ const result = await getVideos(50);+ if (!result.success) {+ throw new Error(result.error);+ }+ return result.data;+ },+ enabled: open,+ });++ const { data: entityVideoIds } = useQuery({+ queryKey: ["entity-video-ids", entityId],+ queryFn: async () => {+ const result = await getEntityVideoIds(entityId);+ if (!result.success) {+ throw new Error(result.error);+ }+ return result.data;+ },+ enabled: open,+ });++ const addVideosMutation = useMutation({+ mutationFn: (videoIds: string[]) => addVideos(entityId, videoIds),+ onSuccess: (result) => {+ if (result?.success) {+ toast.success(result.message || "Videos added successfully");+ setSelectedVideos([]);+ onVideosAdded?.();+ onClose();+ } else {+ toast.error(result?.error || "Failed to add videos");+ }+ },+ onError: (error) => {+ toast.error("Failed to add videos");+ console.error("Error adding videos:", error);+ },+ });++ const filteredVideos: Video[] =+ videosData?.filter((video: Video) =>+ video.name.toLowerCase().includes(searchTerm.toLowerCase())+ ) || [];++ const handleVideoToggle = (videoId: string) => {+ setSelectedVideos((prev) =>+ prev.includes(videoId)+ ? prev.filter((id) => id !== videoId)+ : [...prev, videoId]+ );+ };++ const handleAddVideos = () => {+ if (selectedVideos.length === 0) return;+ addVideosMutation.mutate(selectedVideos);+ };++ useEffect(() => {+ if (!open) {+ setSelectedVideos([]);+ setSearchTerm("");+ form.reset();+ }+ }, [open, form]);++ return (+ <Dialog open={open} onOpenChange={(open) => !open && onClose()}>+ <DialogContent className="p-0 w-full max-w-2xl rounded-xl border bg-gray-2 border-gray-4 max-h-[90vh] sm:max-h-[85vh] flex flex-col">+ <DialogHeader+ icon={<FontAwesomeIcon icon={faVideo} />}+ description={+ "Find and add videos you have previously recorded to share with people in this " ++ entityName ++ "."+ }+ >+ <DialogTitle className="text-lg text-gray-12">+ Add videos to {entityName}+ </DialogTitle>+ </DialogHeader>++ <div className="flex overflow-hidden flex-col flex-1 px-4 py-4 min-h-0 sm:px-8 sm:py-6">+ <div className="flex-shrink-0 px-2 mb-3">+ <div className="flex relative w-full">+ <div className="flex absolute inset-y-0 left-3 items-center pointer-events-none">+ <Search className="size-4 text-gray-9" />+ </div>+ <Input+ placeholder="Search your videos"+ value={searchTerm}+ onChange={(e) => setSearchTerm(e.target.value)}+ className="flex-1 pr-3 pl-8 w-full min-w-full text-sm placeholder-gray-8"+ />+ </div>+ </div>++ <div className="overflow-y-auto flex-1 px-1 min-h-0">+ {isLoading ? (+ <div className="flex justify-center items-center h-64">+ <div className="w-8 h-8 rounded-full border-b-2 border-blue-500 animate-spin"></div>+ </div>+ ) : filteredVideos.length === 0 ? (+ <div className="flex flex-col justify-center items-center h-24 text-center">+ <h3 className="text-lg font-medium text-gray-12">+ {searchTerm ? "No videos found" : "No videos to add"}+ </h3>+ <p className="max-w-sm text-sm text-gray-11">+ {searchTerm+ ? "Try adjusting your search terms"+ : "Record some videos first to add them to this " ++ entityName}+ </p>+ </div>+ ) : (+ <div className="space-y-3">+ {filteredVideos.map((video) => (+ <VideoCard+ key={video.id}+ video={video}+ isSelected={selectedVideos.includes(video.id)}+ onToggle={() => handleVideoToggle(video.id)}+ isAlreadyInEntity={+ entityVideoIds?.includes(video.id) || false+ }+ />+ ))}+ </div>+ )}+ </div>+ </div>++ <div className="flex flex-shrink-0 justify-between items-center px-4 py-4 border-t sm:px-8 sm:py-6 border-gray-4 bg-gray-3">+ <div className="text-xs sm:text-sm text-gray-11">+ {selectedVideos.length > 0 && (+ <span>+ {selectedVideos.length} video+ {selectedVideos.length === 1 ? "" : "s"} selected+ </span>+ )}+ </div>+ <div className="flex gap-2 sm:gap-3">+ <Button+ variant="gray"+ size="sm"+ onClick={onClose}+ className="px-3 py-2 text-sm sm:px-4"+ >+ Cancel+ </Button>+ <Button+ variant="dark"+ size="sm"+ disabled={+ selectedVideos.length === 0 || addVideosMutation.isPending+ }+ spinner={addVideosMutation.isPending}+ onClick={handleAddVideos}+ className="px-3 py-2 text-sm sm:px-4"+ >+ {addVideosMutation.isPending+ ? "Adding..."+ : selectedVideos.length === 0+ ? "Add videos"+ : `Add ${selectedVideos.length} video${+ selectedVideos.length === 1 ? "" : "s"+ }`}+ </Button>+ </div>+ </div>+ </DialogContent>+ </Dialog>+ );+};++interface VideoCardProps {+ video: Video;+ isSelected: boolean;+ onToggle: () => void;+ isAlreadyInEntity: boolean;+}++const VideoCard: React.FC<VideoCardProps> = ({+ video,+ isSelected,+ onToggle,+ isAlreadyInEntity,+}) => {+ const effectiveDate = video.metadata?.customCreatedAt+ ? new Date(video.metadata.customCreatedAt)+ : video.createdAt;++ return (+ <div+ onClick={isAlreadyInEntity ? undefined : onToggle}+ className={clsx(+ "flex gap-4 items-center p-3 mx-1 rounded-xl border transition-all duration-200 group",+ isAlreadyInEntity+ ? "cursor-not-allowed bg-gray-3 border-gray-6"+ : isSelected+ ? "cursor-pointer bg-gray-3 border-gray-5"+ : "bg-transparent cursor-pointer hover:bg-gray-3 hover:border-gray-5 border-gray-4"+ )}+ >+ <div className="relative flex-shrink-0">+ {!isAlreadyInEntity && (+ <motion.div+ key={video.id}+ animate={{+ scale: isSelected ? 1 : 0,+ }}+ initial={{+ scale: isSelected ? 1 : 0,+ }}+ transition={{+ type: isSelected ? "spring" : "tween",+ stiffness: isSelected ? 300 : undefined,+ damping: isSelected ? 20 : undefined,+ duration: !isSelected ? 0.2 : undefined,+ }}+ className="flex absolute z-10 justify-center items-center rounded-full top-[-6px] right-[-6px] bg-gray-4 size-4 bg-green-500"+ >+ <Check className="text-white" size={10} />+ </motion.div>+ )}++ <div+ className={clsx(+ "overflow-hidden relative w-32 h-20 rounded-lg border transition-colors bg-gray-3",+ isSelected ? "border-green-500" : "border-transparent"+ )}+ >+ <VideoThumbnail+ imageClass="w-full h-full transition-all duration-200 group-hover:scale-105"+ userId={video.ownerId}+ videoId={video.id}+ alt={`${video.name} Thumbnail`}+ objectFit="cover"+ containerClass="min-h-full !rounded-lg !border-b-0"+ />+ </div>+ </div>++ <div className="flex-1 min-w-0">+ <div className="flex gap-2 items-center mb-1">+ <h3+ className={clsx(+ "text-sm font-medium leading-tight truncate",+ isAlreadyInEntity ? "text-gray-11" : "text-gray-12"+ )}+ >+ {video.name}+ </h3>+ {isAlreadyInEntity && (+ <span className="flex-shrink-0 px-2 py-1 text-xs font-medium text-white bg-green-600 rounded-full">+ Added+ </span>+ )}+ </div>+ <div+ className={clsx(+ "flex items-center space-x-2",+ isAlreadyInEntity ? "text-gray-9" : "text-gray-9"+ )}+ >+ <p className="text-xs text-gray-9">+ {moment(effectiveDate).format("MMM D, YYYY")}+ </p>+ </div>+ </div>+ </div>+ );+};++export default AddVideosDialogBase;diff --git a/apps/web/app/dashboard/spaces/[spaceId]/components/AddVideosToOrganizationDialog.tsx b/apps/web/app/dashboard/spaces/[spaceId]/components/AddVideosToOrganizationDialog.tsxnew file mode 100644index 000000000..7c274ba7a--- /dev/null+++ b/apps/web/app/dashboard/spaces/[spaceId]/components/AddVideosToOrganizationDialog.tsx@@ -0,0 +1,34 @@+"use client";++import React from "react";+import { getUserVideos } from "@/actions/videos/get-user-videos";+import { addVideosToOrganization } from "@/actions/organizations/add-videos";+import { getOrganizationVideoIds } from "@/actions/organizations/get-organization-videos";+import AddVideosDialogBase from "./AddVideosDialogBase";++interface AddVideosToOrganizationDialogProps {+ open: boolean;+ onClose: () => void;+ organizationId: string;+ organizationName: string;+ onVideosAdded?: () => void;+}++export const AddVideosToOrganizationDialog: React.FC<+ AddVideosToOrganizationDialogProps+> = ({ open, onClose, organizationId, organizationName, onVideosAdded }) => {+ return (+ <AddVideosDialogBase+ open={open}+ onClose={onClose}+ entityId={organizationId}+ entityName={organizationName}+ onVideosAdded={onVideosAdded}+ addVideos={addVideosToOrganization}+ getVideos={getUserVideos}+ getEntityVideoIds={getOrganizationVideoIds}+ />+ );+};++export default AddVideosToOrganizationDialog;diff --git a/apps/web/app/dashboard/spaces/[spaceId]/components/EmptySharedCapState.tsx b/apps/web/app/dashboard/spaces/[spaceId]/components/EmptySharedCapState.tsxnew file mode 100644index 000000000..e7594b030--- /dev/null+++ b/apps/web/app/dashboard/spaces/[spaceId]/components/EmptySharedCapState.tsx@@ -0,0 +1,72 @@+import { useRive } from "@rive-app/react-canvas";+import { useTheme } from "../../../_components/DynamicSharedLayout";+import { Button } from "@cap/ui";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { faPlus } from "@fortawesome/free-solid-svg-icons";++interface EmptySharedCapStateProps {+ organizationName: string;+ type?: "space" | "organization";+ spaceData?: {+ id: string;+ name: string;+ organizationId: string;+ createdById: string;+ };+ currentUserId?: string;+ onAddVideos?: () => void;+}++export const EmptySharedCapState: React.FC<EmptySharedCapStateProps> = ({+ organizationName,+ type = "organization",+ spaceData,+ currentUserId,+ onAddVideos,+}) => {+ const { theme } = useTheme();+ const { RiveComponent: EmptyCap } = useRive({+ src: "/rive/main.riv",+ artboard: theme === "light" ? "emptyshared" : "darkemptyshared",+ autoplay: true,+ });++ const isSpaceOwner = spaceData?.createdById === currentUserId;+ const showAddButton =+ (type === "space" && isSpaceOwner && onAddVideos) ||+ (type === "organization" && onAddVideos);++ return (+ <div className="flex flex-col flex-1 justify-center items-center w-full h-full">+ <div className="mx-auto mb-20 w-full max-w-md">+ <EmptyCap+ key={theme + "empty-shared-cap"}+ className="max-w-[300px] w-full mx-auto md:max-w-[600px] h-[250px]"+ />+ </div>+ <div className="text-center pb-[30px]">+ <p className="mb-3 text-xl font-semibold text-gray-12">+ {type === "space"+ ? "Start sharing videos to this Space"+ : "No shared Caps yet!"}+ </p>+ <p className="mb-6 max-w-md text-md text-gray-10">+ {type === "space"+ ? "Add videos directly here in this Space, or add videos from the My Caps page."+ : `There are no Caps shared with ${organizationName} yet. Ask your team members to share their Caps with this ${type}.`}+ </p>+ {showAddButton && (+ <Button+ onClick={onAddVideos}+ variant="dark"+ size="lg"+ className="flex gap-2 items-center mx-auto"+ >+ <FontAwesomeIcon icon={faPlus} className="size-3.5" />+ Add videos to {type === "space" ? "Space" : "Organization"}+ </Button>+ )}+ </div>+ </div>+ );+};diff --git a/apps/web/app/dashboard/spaces/[spaceId]/components/MemberSelect.tsx b/apps/web/app/dashboard/spaces/[spaceId]/components/MemberSelect.tsxnew file mode 100644index 000000000..7fcf35147--- /dev/null+++ b/apps/web/app/dashboard/spaces/[spaceId]/components/MemberSelect.tsx@@ -0,0 +1,279 @@+"use client";++import { useState, useRef, useEffect, forwardRef } from "react";+import {+ DropdownMenu,+ DropdownMenuContent,+ DropdownMenuTrigger,+ DropdownMenuItem,+ Avatar,+ Button,+} from "@cap/ui";+import { ChevronDown } from "lucide-react";+import clsx from "clsx";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { faPlus, faXmark } from "@fortawesome/free-solid-svg-icons";+import Image from "next/image";+import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";++// Define types for organization member objects+type UserObject = {+ id: string;+ email: string;+ name: string | null;+ image: string | null;+};++type OrganizationMember = {+ id: string;+ user: UserObject;+};++export interface TagOption {+ value: string;+ label: string;+ image?: string;+}++interface MemberSelectProps {+ placeholder?: string;+ disabled?: boolean;+ className?: string;+ selected: TagOption[];+ onSelect: (selected: TagOption[]) => void;+ showEmptyIfNoMembers?: boolean;+ emptyMessage?: string;+}++export const MemberSelect = forwardRef<HTMLDivElement, MemberSelectProps>(+ (+ {+ disabled = false,+ className = "",+ placeholder = "Add Member...",+ selected = [],+ onSelect,+ showEmptyIfNoMembers = false,+ emptyMessage = "No members in your organization",+ ...props+ },+ ref+ ) => {+ const [isOpen, setIsOpen] = useState(false);++ const containerRef = useRef<HTMLDivElement>(null);+ const triggerWidth = useRef<number>(0);+ const triggerRef = useRef<HTMLDivElement>(null);+ const { activeOrganization } = useSharedContext();++ // Generate options from organization members if no external options provided+ const { user } = useSharedContext();++ const orgMemberOptions =+ activeOrganization?.members+ .filter((m) => m.user?.id !== user?.id)+ .filter((m) => !selected.some((s) => s.value === m.user?.id))+ .map((m) => {+ // Cast to our known type for proper type safety+ const member = m as unknown as OrganizationMember;+ const userObj = member.user;+ return {+ value: userObj.id,+ label: userObj.name || userObj.email,+ image: userObj.image || undefined,+ };+ }) || [];++ useEffect(() => {+ if (triggerRef.current) {+ triggerWidth.current = triggerRef.current.offsetWidth;+ }+ }, []);++ const handleSelect = (option: TagOption) => {+ if (!(selected ?? []).some((tag) => tag.value === option.value)) {+ onSelect([...(selected ?? []), option]);+ setIsOpen(true);+ }+ };++ const handleRemove = (tag: TagOption) => {+ onSelect((selected ?? []).filter((t) => t.value !== tag.value));+ };++ return (+ <div+ ref={ref || containerRef}+ className={clsx(+ "relative flex flex-col flex-wrap p-2 items-center min-h-[52px] flex-grow border border-gray-5 rounded-2xl bg-gray-1",+ className,+ disabled && "opacity-50 pointer-events-none"+ )}+ tabIndex={0}+ aria-disabled={disabled}+ {...props}+ >+ {showEmptyIfNoMembers &&+ // Case 1: No org members at all (except current user)+ (activeOrganization?.members.filter((m) => m.user?.id !== user?.id)+ .length === 0 ? (+ <div className="py-3">+ <EmptyMessage+ message="No members in your organization"+ showUpgradeButton={true}+ onButtonClick={() => setIsOpen(false)}+ />+ </div>+ ) : // Case 2: Has org members but none selected for this space+ selected.length === 0 && orgMemberOptions.length === 0 ? (+ <EmptyMessage+ message="No members have been added to this space"+ showUpgradeButton={false}+ onButtonClick={() => setIsOpen(false)}+ />+ ) : (+ <>+ {orgMemberOptions.length > 0 && (+ <div className="flex relative w-full h-[40px]">+ <DropdownMenu open={isOpen} onOpenChange={setIsOpen}>+ <DropdownMenuTrigger asChild>+ <div+ ref={triggerRef}+ className="flex flex-1 items-center px-2 h-full rounded-xl border transition-colors cursor-pointer bg-gray-3 border-gray-4 hover:bg-gray-5 group hover:border-gray-6"+ >+ <div+ onClick={() => setIsOpen(true)}+ className="flex flex-1 justify-between items-center p-0 h-full bg-transparent border-0 placeholder:text-gray-10 w-fit group-hover:placeholder:text-gray-12"+ >+ <p className="text-[13px] text-gray-12">+ {placeholder}+ </p>+ <ChevronDown+ className={clsx(+ "ml-1 transition-transform duration-150 text-gray-9",+ isOpen ? "rotate-180" : "rotate-0"+ )}+ size={18}+ tabIndex={-1}+ />+ </div>+ </div>+ </DropdownMenuTrigger>+ <DropdownMenuContent+ style={{+ width: triggerRef.current?.offsetWidth,+ }}+ sideOffset={8}+ align="start"+ >+ {orgMemberOptions.length > 0 &&+ orgMemberOptions.map((opt) => (+ <DropdownMenuItem+ onClick={() => {+ handleSelect(opt);+ setIsOpen(false);+ }}+ key={opt.value}+ className="flex gap-2 items-center+ justify-start p-1.5 text-[13px]+ rounded-xl cursor-pointer"+ >+ {opt.image ? (+ <Image+ src={opt.image}+ alt={opt.label}+ width={20}+ height={20}+ className="w-5 h-5 rounded-full"+ />+ ) : (+ <Avatar name={opt.label} className="w-5 h-5" />+ )}+ {opt.label}+ </DropdownMenuItem>+ ))}+ </DropdownMenuContent>+ </DropdownMenu>+ </div>+ )}+ {!showEmptyIfNoMembers ||+ orgMemberOptions.length > 0 ||+ (selected.length > 0 && (+ <div+ className={clsx(+ "flex flex-wrap gap-2 justify-start w-full",+ orgMemberOptions.length > 0 ? "mt-2" : "mt-0"+ )}+ >+ {selected+ .filter((tag) => tag.value !== user?.id)+ .map((tag) => (+ <div+ key={tag.value}+ className="flex gap-4 items-center hover:scale-[1.02] transition-transform h-full px-2 py-1.5 min-h-full text-xs rounded-xl bg-gray-3 text-gray-11 wobble"+ >+ <div className="flex gap-2 items-center">+ {tag.image ? (+ <Image+ src={tag.image}+ alt={tag.label}+ width={20}+ height={20}+ className="w-5 h-5 rounded-full"+ />+ ) : (+ <Avatar name={tag.label} className="w-5 h-5" />+ )}+ <p className="truncate text-[13px] text-gray-12">+ {tag.label}+ </p>+ </div>+ {tag.value !== user?.id && (+ <div+ onClick={() => handleRemove(tag)}+ className="flex justify-center items-center rounded-full transition-colors cursor-pointer size-6 bg-gray-6 hover:bg-gray-7"+ aria-label={`Remove ${tag.label}`}+ >+ <FontAwesomeIcon+ className="text-gray-12 size-3"+ icon={faXmark}+ />+ </div>+ )}+ </div>+ ))}+ </div>+ ))}+ </>+ ))}+ </div>+ );+ }+);++interface EmptyMessageProps {+ message: string;+ showUpgradeButton?: boolean;+ onButtonClick?: () => void;+}++const EmptyMessage: React.FC<EmptyMessageProps> = ({+ message,+ showUpgradeButton = false,+ onButtonClick,+}) => (+ <div className="flex flex-col gap-3 justify-center items-center h-full">+ <p className="text-sm text-center text-gray-10">{message}</p>+ {showUpgradeButton && (+ <Button+ href="/dashboard/settings/organization"+ variant="dark"+ size="sm"+ onClick={onButtonClick}+ >+ <FontAwesomeIcon className="size-3" icon={faPlus} />+ Invite members+ </Button>+ )}+ </div>+);diff --git a/apps/web/app/dashboard/spaces/[spaceId]/components/MembersDialog.tsx b/apps/web/app/dashboard/spaces/[spaceId]/components/MembersDialog.tsxnew file mode 100644index 000000000..1be881e27--- /dev/null+++ b/apps/web/app/dashboard/spaces/[spaceId]/components/MembersDialog.tsx@@ -0,0 +1,69 @@+import {+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+ Avatar,+} from "@cap/ui";++interface OrganizationMember {+ id: string;+ role: string;+ createdAt: Date;+ updatedAt: Date;+ userId: string;+ organizationId: string;+ user: {+ id: string;+ name: string | null;+ email: string;+ firstName?: string | null;+ lastName?: string | null;+ };+}++export const MembersDialog = ({+ open,+ onOpenChange,+ members,+ organizationName,+}: {+ open: boolean;+ onOpenChange: (open: boolean) => void;+ members: OrganizationMember[];+ organizationName: string;+}) => {+ return (+ <Dialog open={open} onOpenChange={onOpenChange}>+ <DialogContent className="sm:max-w-md">+ <DialogHeader>+ <DialogTitle>{organizationName} Members</DialogTitle>+ </DialogHeader>+ <div className="max-h-[60vh] overflow-auto py-4">+ <div className="flex flex-col gap-2">+ {members.map((member) => (+ <div+ key={member.userId}+ className="flex items-center p-2 rounded-lg hover:bg-gray-3"+ >+ <Avatar+ letterClass="text-md"+ name={member.user?.name || "User"}+ className="mr-3 size-8 text-gray-12"+ />+ <div className="flex flex-col">+ <span className="text-sm font-medium text-gray-12">+ {member.user?.name || "User"}+ </span>+ <span className="text-xs text-gray-11">+ {member.user?.email || ""}+ </span>+ </div>+ </div>+ ))}+ </div>+ </div>+ </DialogContent>+ </Dialog>+ );+};diff --git a/apps/web/app/dashboard/spaces/[spaceId]/components/MembersIndicator.tsx b/apps/web/app/dashboard/spaces/[spaceId]/components/MembersIndicator.tsxnew file mode 100644index 000000000..ffbe6afbb--- /dev/null+++ b/apps/web/app/dashboard/spaces/[spaceId]/components/MembersIndicator.tsx@@ -0,0 +1,182 @@+"use client";++import { useState, useCallback } from "react";+import {+ Button,+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+ DialogTrigger,+ DialogFooter,+ Form,+ FormField,+ FormControl,+} from "@cap/ui";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { faUserGroup, faPlus } from "@fortawesome/free-solid-svg-icons";+import { MemberSelect } from "./MemberSelect";+import { setSpaceMembers } from "@/app/dashboard/spaces/[spaceId]/actions";+import { useForm } from "react-hook-form";+import { zodResolver } from "@hookform/resolvers/zod";+import * as z from "zod";+import { toast } from "sonner";+import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";+import { SpaceMemberData } from "../page";++type MembersIndicatorProps = {+ memberCount: number;+ members: SpaceMemberData[];+ organizationMembers: SpaceMemberData[];+ spaceId: string;+ canManageMembers: boolean;+ onAddVideos?: () => void;+};++export const MembersIndicator = ({+ memberCount,+ members,+ organizationMembers,+ spaceId,+ canManageMembers,+ onAddVideos,+}: MembersIndicatorProps) => {+ const { user } = useSharedContext();+ const [open, setOpen] = useState(false);+ const [isLoading, setIsLoading] = useState(false);++ const formSchema = z.object({+ members: z.array(z.string().email("Invalid email address")).optional(),+ });++ const form = useForm<z.infer<typeof formSchema>>({+ resolver: zodResolver(formSchema),+ defaultValues: {+ members: members.map((m) => m.userId),+ },+ });++ const handleSaveMembers = async (selectedUserIds: string[]) => {+ if (!canManageMembers) return;++ // Compare selectedUserIds to current members' userIds (order-insensitive)+ const currentIds = members.map((m) => m.userId).sort();+ const selectedIds = (selectedUserIds ?? []).slice().sort();+ const noChange =+ currentIds.length === selectedIds.length &&+ currentIds.every((id, i) => id === selectedIds[i]);++ if (noChange) {+ toast.info("No changes were applied");+ return;+ }++ setIsLoading(true);+ try {+ await setSpaceMembers({+ spaceId,+ userIds: selectedUserIds ?? [],+ role: "member",+ });+ toast.success("Members updated!");+ } catch (error) {+ console.error("Failed to update members:", error);+ toast.error("Failed to update members");+ } finally {+ setIsLoading(false);+ setOpen(false);+ }+ };++ const OrgMembers = useCallback(+ (field: { value?: string[] }) => {+ return organizationMembers+ .filter(+ (m) => (field.value ?? []).includes(m.userId) && m.userId !== user.id+ )+ .map((m) => ({+ value: m.userId,+ label: m.name || m.email,+ image: m.image || undefined,+ }));+ },+ [organizationMembers, user]+ );++ return (+ <div className="flex gap-3 items-center mb-4">+ <Dialog open={open} onOpenChange={setOpen}>+ <DialogTrigger asChild>+ <Button variant="gray" size="sm" className="z-10">+ <FontAwesomeIcon className="mr-1 size-4" icon={faUserGroup} />+ {memberCount} members+ </Button>+ </DialogTrigger>+ <DialogContent className="p-0 w-full max-w-md rounded-xl border bg-gray-2 border-gray-4">+ <DialogHeader+ icon={<FontAwesomeIcon icon={faUserGroup} />}+ description="View and manage members of this space"+ >+ <DialogTitle className="text-lg text-gray-12">+ Space Members: {memberCount}+ </DialogTitle>+ </DialogHeader>++ <div className="p-5">+ <div className="flex flex-col">+ <Form {...form}>+ <div className="space-y-2 max-h-[320px] overflow-y-auto">+ <FormField+ control={form.control}+ name="members"+ render={({ field }) => {+ return (+ <FormControl>+ <MemberSelect+ placeholder="Add member..."+ disabled={!canManageMembers}+ showEmptyIfNoMembers+ selected={OrgMembers(field)}+ onSelect={(selected) => {+ field.onChange(selected.map((opt) => opt.value));+ }}+ />+ </FormControl>+ );+ }}+ />+ </div>+ </Form>+ </div>+ </div>++ <DialogFooter>+ <Button variant="gray" size="sm" onClick={() => setOpen(false)}>+ Close+ </Button>+ {canManageMembers && (+ <Button+ onClick={() =>+ handleSaveMembers(form.getValues("members") ?? [])+ }+ disabled={isLoading}+ spinner={isLoading}+ variant="dark"+ size="sm"+ >+ Save+ </Button>+ )}+ </DialogFooter>+ </DialogContent>+ </Dialog>++ {onAddVideos && (+ <Button variant="dark" size="sm" onClick={onAddVideos}>+ <FontAwesomeIcon className="size-3" icon={faPlus} />+ Add videos+ </Button>+ )}+ </div>+ );+};diff --git a/apps/web/app/dashboard/spaces/[spaceId]/components/OrganizationIndicator.tsx b/apps/web/app/dashboard/spaces/[spaceId]/components/OrganizationIndicator.tsxnew file mode 100644index 000000000..3a7c6cb39--- /dev/null+++ b/apps/web/app/dashboard/spaces/[spaceId]/components/OrganizationIndicator.tsx@@ -0,0 +1,143 @@+"use client";++import { useState } from "react";+import {+ Button,+ Dialog,+ DialogContent,+ DialogHeader,+ DialogTitle,+ DialogTrigger,+ DialogFooter,+} from "@cap/ui";+import Image from "next/image";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { faPlus, faBuilding } from "@fortawesome/free-solid-svg-icons";+import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";+import { Avatar } from "@cap/ui";+import clsx from "clsx";++export type OrganizationMemberData = {+ id: string;+ userId: string;+ role: string;+ image?: string | null;+ name: string | null;+ email: string;+};++type OrganizationIndicatorProps = {+ memberCount: number;+ members: OrganizationMemberData[];+ organizationName: string;+ canManageMembers: boolean;+ onAddVideos?: () => void;+};++export const OrganizationIndicator = ({+ memberCount,+ members,+ organizationName,+ canManageMembers,+ onAddVideos,+}: OrganizationIndicatorProps) => {+ const { user } = useSharedContext();+ const [open, setOpen] = useState(false);++ return (+ <div className="flex gap-3 items-center mb-4">+ <Dialog open={open} onOpenChange={setOpen}>+ <DialogTrigger asChild>+ <Button variant="gray" size="sm" className="z-10">+ <FontAwesomeIcon className="mr-1 size-4" icon={faBuilding} />+ {memberCount} members+ </Button>+ </DialogTrigger>+ <DialogContent className="p-0 w-full max-w-md rounded-xl border bg-gray-2 border-gray-4">+ <DialogHeader+ icon={<FontAwesomeIcon icon={faBuilding} />}+ description="View members of this organization"+ >+ <DialogTitle className="text-lg text-gray-12">+ {organizationName} Members: {memberCount}+ </DialogTitle>+ </DialogHeader>++ <div className="p-5">+ <div className="flex flex-col">+ <div className="space-y-3 max-h-[320px] custom-scroll overflow-y-auto">+ {members+ .sort((a, b) => b.role.localeCompare(a.role))+ .map((member) => (+ <div+ key={member.id}+ className="flex gap-3 items-center px-3 py-2 rounded-lg transition-colors hover:bg-gray-3"+ >+ {member.image ? (+ <Image+ src={member.image}+ alt={member.name || member.email}+ width={36}+ height={36}+ className="rounded-full"+ />+ ) : (+ <Avatar+ letterClass="text-md"+ name={member.name || member.email}+ className="mr-3 size-9 text-gray-12"+ />+ )}+ <div className="flex-1 min-w-0">+ <p className="text-sm font-medium truncate text-gray-12">+ {member.name || member.email}+ </p>+ {member.name && (+ <p className="text-xs truncate text-gray-10">+ {member.email}+ </p>+ )}+ </div>+ <p+ className={clsx(+ "px-2.5 py-1.5 text-xs font-medium capitalize text-white rounded-full",+ member.role == "owner" ? "bg-blue-500" : "bg-gray-7"+ )}+ >+ {member.role}+ </p>+ </div>+ ))}+ </div>+ </div>+ </div>++ <DialogFooter>+ <div className="flex justify-between w-full">+ {canManageMembers && (+ <Button+ variant="dark"+ size="sm"+ href="/dashboard/settings/organization"+ >+ <FontAwesomeIcon className="size-3" icon={faPlus} />+ Invite members+ </Button>+ )}+ <Button variant="gray" size="sm" onClick={() => setOpen(false)}>+ Close+ </Button>+ </div>+ </DialogFooter>+ </DialogContent>+ </Dialog>++ {onAddVideos && (+ <Button variant="dark" size="sm" onClick={onAddVideos}>+ <FontAwesomeIcon className="size-3" icon={faPlus} />+ Add videos+ </Button>+ )}+ </div>+ );+};diff --git a/apps/web/app/dashboard/shared-caps/components/SharedCapCard.tsx b/apps/web/app/dashboard/spaces/[spaceId]/components/SharedCapCard.tsxsimilarity index 56%rename from apps/web/app/dashboard/shared-caps/components/SharedCapCard.tsxrename to apps/web/app/dashboard/spaces/[spaceId]/components/SharedCapCard.tsxindex 911130353..2ec25b186 100644--- a/apps/web/app/dashboard/shared-caps/components/SharedCapCard.tsx+++ b/apps/web/app/dashboard/spaces/[spaceId]/components/SharedCapCard.tsx@@ -1,7 +1,7 @@import { VideoMetadata } from "@cap/database/types";import { faBuilding, faUser } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";-import { CapCard } from "../../caps/components/CapCard";+import { CapCard } from "../../../caps/components/CapCard";interface SharedCapCardProps {cap: {@@ -16,20 +16,31 @@ interface SharedCapCardProps {};analytics: number;organizationName: string;+ userId?: string;+ hideSharedStatus?: boolean;}export const SharedCapCard: React.FC<SharedCapCardProps> = ({cap,analytics,organizationName,+ userId,+ hideSharedStatus,}) => {const displayCount =analytics === 0? Math.max(cap.totalComments, cap.totalReactions): analytics;+ const isOwner = userId === cap.ownerId;return (- <CapCard cap={cap} analytics={displayCount} sharedCapCard>+ <CapCard+ hideSharedStatus={hideSharedStatus}+ cap={cap}+ analytics={displayCount}+ sharedCapCard+ userId={userId}+ ><div className="mb-2 space-y-1">{cap.ownerName && (<div className="flex gap-2 items-center">@@ -37,18 +48,20 @@ export const SharedCapCard: React.FC<SharedCapCardProps> = ({<span className="text-sm text-gray-10">{cap.ownerName}</span></div>)}- <div className="flex gap-2 items-center">- <FontAwesomeIcon- icon={faBuilding}- className="text-gray-10 size-2.5"- />- <p className="text-sm pointer-events-none text-gray-10">- Shared with{" "}- <span className="text-sm font-medium text-gray-12">- {organizationName}- </span>- </p>- </div>+ {isOwner && (+ <div className="flex gap-2 items-center">+ <FontAwesomeIcon+ icon={faBuilding}+ className="text-gray-10 size-2.5"+ />+ <p className="text-sm pointer-events-none text-gray-10">+ Shared with{" "}+ <span className="text-sm font-medium text-gray-12">+ {organizationName}+ </span>+ </p>+ </div>+ )}</div></CapCard>);diff --git a/apps/web/app/dashboard/shared-caps/loading.tsx b/apps/web/app/dashboard/spaces/[spaceId]/loading.tsxsimilarity index 100%rename from apps/web/app/dashboard/shared-caps/loading.tsxrename to apps/web/app/dashboard/spaces/[spaceId]/loading.tsxdiff --git a/apps/web/app/dashboard/spaces/[spaceId]/page.tsx b/apps/web/app/dashboard/spaces/[spaceId]/page.tsxnew file mode 100644index 000000000..f7ce78e67--- /dev/null+++ b/apps/web/app/dashboard/spaces/[spaceId]/page.tsx@@ -0,0 +1,345 @@+import { db } from "@cap/database";+import { getCurrentUser } from "@cap/database/auth/session";+import {+ comments,+ sharedVideos,+ organizationMembers,+ organizations,+ users,+ videos,+ spaces,+ spaceMembers,+ spaceVideos,+} from "@cap/database/schema";+import { count, desc, eq, sql, and } from "drizzle-orm";+import { Metadata } from "next";+import { SharedCaps } from "./SharedCaps";+import { notFound } from "next/navigation";++export const metadata: Metadata = {+ title: "Shared Caps — Cap",+};++export const revalidate = 0;++type SpaceData = {+ id: string;+ name: string;+ organizationId: string;+ createdById: string;+};++type OrganizationData = {+ id: string;+ name: string;+ ownerId: string;+};++export type SpaceMemberData = {+ id: string;+ userId: string;+ role: string;+ image?: string | null;+ name: string | null;+ email: string;+};++// --- Helper functions ---+async function fetchSpaceData(id: string) {+ return db()+ .select({+ id: spaces.id,+ name: spaces.name,+ organizationId: spaces.organizationId,+ createdById: spaces.createdById,+ })+ .from(spaces)+ .where(eq(spaces.id, id))+ .limit(1);+}++async function fetchOrganizationData(id: string) {+ return db()+ .select({+ id: organizations.id,+ name: organizations.name,+ ownerId: organizations.ownerId,+ })+ .from(organizations)+ .where(eq(organizations.id, id))+ .limit(1);+}++async function fetchSpaceMembers(spaceId: string) {+ return db()+ .select({+ id: spaceMembers.id,+ userId: spaceMembers.userId,+ role: sql<string>`'member'`,+ name: users.name,+ email: users.email,+ image: users.image,+ })+ .from(spaceMembers)+ .innerJoin(users, eq(spaceMembers.userId, users.id))+ .where(eq(spaceMembers.spaceId, spaceId));+}++async function fetchOrganizationMembers(orgId: string) {+ return db()+ .select({+ id: organizationMembers.id,+ userId: organizationMembers.userId,+ role: organizationMembers.role,+ name: users.name,+ email: users.email,+ image: users.image,+ })+ .from(organizationMembers)+ .innerJoin(users, eq(organizationMembers.userId, users.id))+ .where(eq(organizationMembers.organizationId, orgId));+}++export default async function SharedCapsPage({+ params,+ searchParams,+}: {+ params: { spaceId: string };+ searchParams: { [key: string]: string | string[] | undefined };+}) {+ const page = Number(searchParams.page) || 1;+ const limit = Number(searchParams.limit) || 15;+ const user = await getCurrentUser();+ const userId = user?.id as string;+ const id = params.spaceId;++ // Parallelize fetching space and org data+ const [spaceData, organizationData] = await Promise.all([+ fetchSpaceData(id),+ fetchOrganizationData(id),+ ]);++ // organizationData assignment handled above+ if (spaceData.length === 0 && organizationData.length === 0) {+ notFound();+ }++ const isSpace = spaceData.length > 0;++ // --- Access checks ---+ if (isSpace) {+ const space = spaceData[0] as SpaceData;+ const isSpaceCreator = space.createdById === userId;+ let hasAccess = isSpaceCreator;+ if (!isSpaceCreator) {+ const [spaceMembership, orgMembership] = await Promise.all([+ db()+ .select({ id: spaceMembers.id })+ .from(spaceMembers)+ .where(+ and(eq(spaceMembers.userId, userId), eq(spaceMembers.spaceId, id))+ )+ .limit(1),+ db()+ .select({ id: organizationMembers.id })+ .from(organizationMembers)+ .where(+ and(+ eq(organizationMembers.userId, userId),+ eq(organizationMembers.organizationId, space.organizationId)+ )+ )+ .limit(1),+ ]);+ hasAccess = spaceMembership.length > 0 || orgMembership.length > 0;+ }+ if (!hasAccess) notFound();++ // Fetch members in parallel+ const [spaceMembersData, organizationMembersData] = await Promise.all([+ fetchSpaceMembers(id),+ fetchOrganizationMembers(space.organizationId),+ ]);++ // --- Video fetching helpers ---+ async function fetchSpaceVideos(+ spaceId: string,+ page: number,+ limit: number+ ) {+ const offset = (page - 1) * limit;+ const [videoRows, totalCountResult] = await Promise.all([+ db()+ .select({+ id: videos.id,+ ownerId: videos.ownerId,+ name: videos.name,+ createdAt: videos.createdAt,+ metadata: videos.metadata,+ totalComments: sql<number>`COUNT(DISTINCT CASE WHEN ${comments.type} = 'text' THEN ${comments.id} END)`,+ totalReactions: sql<number>`COUNT(DISTINCT CASE WHEN ${comments.type} = 'emoji' THEN ${comments.id} END)`,+ ownerName: users.name,+ effectiveDate: sql<string>`COALESCE(JSON_UNQUOTE(JSON_EXTRACT(${videos.metadata}, '$.customCreatedAt')), ${videos.createdAt})`,+ })+ .from(spaceVideos)+ .innerJoin(videos, eq(spaceVideos.videoId, videos.id))+ .leftJoin(comments, eq(videos.id, comments.videoId))+ .leftJoin(users, eq(videos.ownerId, users.id))+ .where(eq(spaceVideos.spaceId, spaceId))+ .groupBy(+ videos.id,+ videos.ownerId,+ videos.name,+ videos.createdAt,+ videos.metadata,+ users.name+ )+ .orderBy(+ desc(+ sql`COALESCE(JSON_UNQUOTE(JSON_EXTRACT(${videos.metadata}, '$.customCreatedAt')), ${videos.createdAt})`+ )+ )+ .limit(limit)+ .offset(offset),+ db()+ .select({ count: count() })+ .from(spaceVideos)+ .where(eq(spaceVideos.spaceId, spaceId)),+ ]);+ return {+ videos: videoRows,+ totalCount: totalCountResult[0]?.count || 0,+ };+ }++ // Fetch videos and count in parallel+ const { videos: spaceVideoData, totalCount } = await fetchSpaceVideos(+ id,+ page,+ limit+ );+ const processedVideoData = spaceVideoData.map((video) => {+ const { effectiveDate, ...videoWithoutEffectiveDate } = video;+ return {+ ...videoWithoutEffectiveDate,+ ownerName: video.ownerName ?? null,+ metadata: video.metadata as+ | { customCreatedAt?: string; [key: string]: any }+ | undefined,+ };+ });++ return (+ <SharedCaps+ data={processedVideoData}+ count={totalCount}+ spaceData={space}+ spaceMembers={spaceMembersData}+ organizationMembers={organizationMembersData}+ currentUserId={userId}+ />+ );+ } else {+ const organization = organizationData[0] as OrganizationData;+ const isOrgOwner = organization.ownerId === userId;++ if (!isOrgOwner) {+ const orgMembership = await db()+ .select({ id: organizationMembers.id })+ .from(organizationMembers)+ .where(+ and(+ eq(organizationMembers.userId, userId),+ eq(organizationMembers.organizationId, id)+ )+ )+ .limit(1);++ if (orgMembership.length === 0) {+ notFound();+ }+ }++ // --- Organization video fetching helper ---+ async function fetchOrganizationVideos(+ orgId: string,+ page: number,+ limit: number+ ) {+ const offset = (page - 1) * limit;+ const [videoRows, totalCountResult] = await Promise.all([+ db()+ .select({+ id: videos.id,+ ownerId: videos.ownerId,+ name: videos.name,+ createdAt: videos.createdAt,+ metadata: videos.metadata,+ totalComments: sql<number>`COUNT(DISTINCT CASE WHEN ${comments.type} = 'text' THEN ${comments.id} END)`,+ totalReactions: sql<number>`COUNT(DISTINCT CASE WHEN ${comments.type} = 'emoji' THEN ${comments.id} END)`,+ ownerName: users.name,+ effectiveDate: sql<string>`COALESCE(JSON_UNQUOTE(JSON_EXTRACT(${videos.metadata}, '$.customCreatedAt')), ${videos.createdAt})`,+ })+ .from(sharedVideos)+ .innerJoin(videos, eq(sharedVideos.videoId, videos.id))+ .leftJoin(comments, eq(videos.id, comments.videoId))+ .leftJoin(users, eq(videos.ownerId, users.id))+ .where(eq(sharedVideos.organizationId, orgId))+ .groupBy(+ videos.id,+ videos.ownerId,+ videos.name,+ videos.createdAt,+ videos.metadata,+ users.name+ )+ .orderBy(+ desc(+ sql`COALESCE(JSON_UNQUOTE(JSON_EXTRACT(${videos.metadata}, '$.customCreatedAt')), ${videos.createdAt})`+ )+ )+ .limit(limit)+ .offset(offset),+ db()+ .select({ count: count() })+ .from(sharedVideos)+ .where(eq(sharedVideos.organizationId, orgId)),+ ]);+ return {+ videos: videoRows,+ totalCount: totalCountResult[0]?.count || 0,+ };+ }++ // Fetch videos and count in parallel+ const { videos: orgVideoData, totalCount } = await fetchOrganizationVideos(+ id,+ page,+ limit+ );+ const processedVideoData = orgVideoData.map((video) => {+ const { effectiveDate, ...videoWithoutEffectiveDate } = video;+ return {+ ...videoWithoutEffectiveDate,+ ownerName: video.ownerName ?? null,+ metadata: video.metadata as+ | { customCreatedAt?: string; [key: string]: any }+ | undefined,+ };+ });++ // Fetch organization members+ const organizationMembersData = await fetchOrganizationMembers(id);++ return (+ <SharedCaps+ data={processedVideoData}+ count={totalCount}+ hideSharedWith+ organizationData={organization}+ organizationMembers={organizationMembersData}+ currentUserId={userId}+ />+ );+ }+}diff --git a/apps/web/app/dashboard/spaces/browse/page.tsx b/apps/web/app/dashboard/spaces/browse/page.tsxnew file mode 100644index 000000000..e73e15596--- /dev/null+++ b/apps/web/app/dashboard/spaces/browse/page.tsx@@ -0,0 +1,218 @@+"use client";+import { useState } from "react";+import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";+import Image from "next/image";++import { Search } from "lucide-react";+import { Input } from "@cap/ui";+import { useRouter } from "next/navigation";+import { Button, Avatar } from "@cap/ui";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { faEdit, faPlus, faTrash } from "@fortawesome/free-solid-svg-icons";+import SpaceDialog from "../../_components/AdminNavbar/SpaceDialog";++import { Spaces } from "../../dashboard-data";+import { deleteSpace } from "@/actions/organization/delete-space";+import { toast } from "sonner";+import { useParams } from "next/navigation";++export default function BrowseSpacesPage() {+ const { spacesData, user, activeOrganization } = useSharedContext();+ const [showSpaceDialog, setShowSpaceDialog] = useState(false);+ const [editSpace, setEditSpace] = useState<any | null>(null);+ const [searchQuery, setSearchQuery] = useState("");++ const filteredSpaces = spacesData?.filter((space: Spaces) =>+ space.name.toLowerCase().includes(searchQuery.toLowerCase())+ );+ const router = useRouter();+ const params = useParams();++ const handleDeleteSpace = async (e: React.MouseEvent, spaceId: string) => {+ e.preventDefault();+ e.stopPropagation();++ if (+ confirm(+ "Are you sure you want to delete this space? This action cannot be undone."+ )+ ) {+ try {+ const result = await deleteSpace(spaceId);++ if (result.success) {+ toast.success("Space deleted successfully");++ router.refresh();++ // If we're currently on the deleted space's page, redirect to dashboard+ if (params.spaceId === spaceId) {+ router.push("/dashboard");+ }+ } else {+ toast.error(result.error || "Failed to delete space");+ }+ } catch (error) {+ console.error("Error deleting space:", error);+ toast.error("Failed to delete space");+ }+ }+ };++ return (+ <div>+ <div className="flex flex-wrap gap-3 justify-between items-start mb-4 w-full">+ <Button+ onClick={() => setShowSpaceDialog(true)}+ size="sm"+ variant="dark"+ >+ <FontAwesomeIcon className="size-3" icon={faPlus} />+ Create Space+ </Button>+ <div className="flex relative w-full max-w-md">+ <div className="flex absolute inset-y-0 left-3 items-center pointer-events-none">+ <Search className="size-4 text-gray-9" />+ </div>+ <Input+ type="text"+ placeholder="Search spaces..."+ className="flex-1 pr-3 pl-8 w-full min-w-full text-sm placeholder-gray-8"+ value={searchQuery}+ onChange={(e) => setSearchQuery(e.target.value)}+ />+ </div>+ </div>+ <div className="overflow-x-auto rounded-xl border border-gray-3">+ <table className="min-w-full bg-gray-1">+ <thead>+ <tr className="text-sm text-left text-gray-10">+ <th className="px-6 py-3 font-medium">Name</th>+ <th className="px-6 py-3 font-medium">Members</th>+ <th className="px-6 py-3 font-medium">Videos</th>+ <th className="px-6 py-3 font-medium">Role</th>+ <th className="px-6 py-3 font-medium">Actions</th>+ </tr>+ </thead>+ <tbody>+ {!spacesData && (+ <tr>+ <td colSpan={5} className="px-6 py-6 text-center text-gray-8">+ Loading Spaces…+ </td>+ </tr>+ )}+ {spacesData && filteredSpaces && filteredSpaces.length === 0 && (+ <tr>+ <td colSpan={5} className="px-6 py-6 text-center text-gray-8">+ No spaces found.+ </td>+ </tr>+ )}+ {filteredSpaces &&+ filteredSpaces.map((space: Spaces) => {+ return (+ <tr+ key={space.id}+ onClick={() => router.push(`/dashboard/spaces/${space.id}`)}+ className="border-t transition-colors cursor-pointer hover:bg-gray-2 border-gray-3"+ >+ <td className="flex gap-3 items-center px-6 py-4">+ {space.iconUrl ? (+ <Image+ src={space.iconUrl}+ alt={space.name}+ width={24}+ height={24}+ className="object-cover flex-shrink-0 w-7 h-7 rounded-full"+ />+ ) : (+ <Avatar+ className="relative flex-shrink-0 size-7"+ letterClass="text-sm"+ name={space.name}+ />+ )}+ <span className="text-sm font-semibold text-gray-12">+ {space.name}+ </span>+ </td>+ <td className="px-6 py-4 text-sm text-gray-12">+ {space.memberCount} member+ {space.memberCount === 1 ? "" : "s"}+ </td>+ <td className="px-6 py-4 text-sm text-gray-12">+ {space.videoCount} video+ {space.videoCount === 1 ? "" : "s"}+ </td>+ <td className="px-6 py-4 text-sm text-gray-12">+ {space.createdById === user?.id ? "Admin" : "Member"}+ </td>+ <td className="px-6">+ {space.createdById === user?.id && !space.primary ? (+ <div className="flex gap-2">+ <Button+ variant="gray"+ className="size-8 p-0 min-w-[unset]"+ size="sm"+ onClick={(e) => {+ e.stopPropagation();+ setEditSpace({+ id: space.id,+ name: space.name,+ members: (+ activeOrganization?.members || []+ ).map(+ (m: { user: { id: string } }) => m.user.id+ ),+ iconUrl: space.iconUrl,+ });+ setShowSpaceDialog(true);+ }}+ >+ <FontAwesomeIcon icon={faEdit} className="size-3" />+ </Button>+ <Button+ variant="gray"+ onClick={(e) => {+ e.stopPropagation();+ handleDeleteSpace(e, space.id);+ }}+ className="size-8 p-0 min-w-[unset]"+ size="sm"+ >+ <FontAwesomeIcon+ icon={faTrash}+ className="size-3"+ />+ </Button>+ </div>+ ) : (+ <div className="h-[32px]">+ <p>...</p>+ </div>+ )}+ </td>+ </tr>+ );+ })}+ </tbody>+ </table>+ </div>+ <SpaceDialog+ open={showSpaceDialog}+ onClose={() => {+ setShowSpaceDialog(false);+ setEditSpace(null);+ }}+ edit={!!editSpace}+ space={editSpace}+ onSpaceUpdated={() => {+ setShowSpaceDialog(false);+ setEditSpace(null);+ router.refresh();+ }}+ />+ </div>+ );+}diff --git a/apps/web/app/globals.css b/apps/web/app/globals.cssindex 467a02a37..df58ec236 100644--- a/apps/web/app/globals.css+++ b/apps/web/app/globals.css@@ -350,6 +350,69 @@ label {);}+.theme-transition {+ transition: background-color 0.5s ease-in-out;+}++/* View Transitions for theme switching */+/* Icon animations */+@keyframes rotate-sun {+ from { transform: rotate(0deg); }+ to { transform: rotate(360deg); }+}++@keyframes rotate-moon {+ from { transform: rotate(-360deg); }+ to { transform: rotate(0deg); }+}++::view-transition-old(theme-icon) {+ animation: 0.5s cubic-bezier(0.4, 0, 0.2, 1) both fade-out,+ 0.5s cubic-bezier(0.4, 0, 0.2, 1) both rotate-sun;+}++::view-transition-new(theme-icon) {+ animation: 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both fade-in,+ 0.5s cubic-bezier(0.4, 0, 0.2, 1) both rotate-moon;+}++/* Wipe effect for the entire theme change */+@keyframes wipe-in-right {+ from { clip-path: inset(0 100% 0 0); }+ to { clip-path: inset(0 0 0 0); }+}++@keyframes wipe-out-left {+ from { clip-path: inset(0 0 0 0); }+ to { clip-path: inset(0 0 0 100%); }+}++::view-transition-old(root) {+ animation: 0.7s cubic-bezier(0.4, 0, 0.2, 1) both wipe-out-left;+}++::view-transition-new(root) {+ animation: 0.7s cubic-bezier(0.4, 0, 0.2, 1) both wipe-in-right;+}++@keyframes fade-in {+ from { opacity: 0; }+ to { opacity: 1; }+}++@keyframes fade-out {+ from { opacity: 1; }+ to { opacity: 0; }+}++.view-transition-theme-icon {+ view-transition-name: theme-icon;+}++::view-transition-group(root) {+ animation-duration: 0.7s;+}+.styled-links a {@apply font-semibold underline;}@@ -528,6 +591,46 @@ body.react-draggable-transparent-selection .crosshair {display: block;}+@keyframes wobble {+ 0% {+ transform: rotate(-3deg) scale(1.05);+ }+ 10% {+ transform: rotate(3deg) scale(1.05);+ }+ 20% {+ transform: rotate(-3deg) scale(1.05);+ }+ 30% {+ transform: rotate(3deg) scale(1.05);+ }+ 40% {+ transform: rotate(-2deg) scale(1.05);+ }+ 50% {+ transform: rotate(2deg) scale(1.05);+ }+ 60% {+ transform: rotate(-1deg) scale(1.05);+ }+ 70% {+ transform: rotate(1deg) scale(1.05);+ }+ 80% {+ transform: rotate(-1deg) scale(1.05);+ }+ 90% {+ transform: rotate(1deg) scale(1.05);+ }+ 100% {+ transform: rotate(-3deg) scale(1.05);+ }+}++.wobble {+ animation: wobble 2.5s infinite linear;+}+footer ul {@apply p-0 list-none;}diff --git a/apps/web/app/login/form.tsx b/apps/web/app/login/form.tsxindex 4b8102c84..a3a2c220f 100644--- a/apps/web/app/login/form.tsx+++ b/apps/web/app/login/form.tsx@@ -5,13 +5,15 @@ import { NODE_ENV } from "@cap/env";import { Button, Input, LogoBadge } from "@cap/ui";import {faArrowLeft,+ faEnvelope,faExclamationCircle,} from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import { AnimatePresence, motion } from "framer-motion";import Cookies from "js-cookie";-import { LucideArrowUpRight, LucideMail } from "lucide-react";+import { LucideArrowUpRight } from "lucide-react";import { signIn } from "next-auth/react";+import Image from "next/image";import Link from "next/link";import { useSearchParams } from "next/navigation";import { Suspense, useEffect, useState } from "react";@@ -32,11 +34,11 @@ export function LoginForm() {useEffect(() => {theme === "dark"- ? document.documentElement.classList.add("dark")- : document.documentElement.classList.remove("dark");+ ? (document.body.className = "dark")+ : (document.body.className = "light");//remove the dark mode when we leave the dashboardreturn () => {- document.documentElement.classList.remove("dark");+ document.body.className = "light";};}, [theme]);@@ -123,151 +125,144 @@ export function LoginForm() {};return (- <div className="flex justify-center items-center w-full h-screen bg-gray-1">- <div className="overflow-hidden relative w-[calc(100%-5%)] p-[28px] max-w-[472px] bg-gray-2 border border-gray-4 rounded-2xl">- <motion.div- key="back-button"- initial={{ opacity: 0, display: "none" }}- animate={{- opacity: showOrgInput ? 1 : 0,- display: showOrgInput ? "flex" : "none",- transition: { duration: 0.2 },- }}- onClick={() => setShowOrgInput(false)}- className="flex absolute top-5 left-5 z-20 hover:bg-gray-1 gap-2 items-center py-1.5 px-3 text-gray-12 bg-transparent rounded-full border border-gray-4 transition-colors duration-300 cursor-pointer "+ <div className="overflow-hidden relative w-[calc(100%-5%)] p-[28px] max-w-[472px] bg-gray-3 border border-gray-5 rounded-2xl">+ <motion.div+ key="back-button"+ initial={{ opacity: 0, display: "none" }}+ animate={{+ opacity: showOrgInput ? 1 : 0,+ display: showOrgInput ? "flex" : "none",+ transition: { duration: 0.2 },+ }}+ onClick={() => setShowOrgInput(false)}+ className="flex absolute top-5 left-5 z-20 hover:bg-gray-1 gap-2 items-center py-1.5 px-3 text-gray-12 bg-transparent rounded-full border border-gray-4 transition-colors duration-300 cursor-pointer "+ >+ <FontAwesomeIcon className="w-2" icon={faArrowLeft} />+ <p className="text-xs text-inherit">Back</p>+ </motion.div>+ <Link className="flex mx-auto w-fit" href="/">+ <LogoBadge className="w-[72px] mx-auto" />+ </Link>+ <div className="flex flex-col justify-center items-center my-7 text-left">+ <h1 className="text-2xl font-semibold text-gray-12">Sign in to Cap</h1>+ <p className="text-[16px] text-gray-10">+ Beautiful screen recordings, owned by you.+ </p>+ </div>+ <div className="flex flex-col space-y-3">+ <Suspense+ fallback={+ <>+ <Button disabled={true} variant="primary" />+ <Button disabled={true} variant="destructive" />+ <div className="mx-auto w-3/4 h-5 rounded-lg bg-gray-1" />+ </>+ }>- <FontAwesomeIcon className="w-2" icon={faArrowLeft} />- <p className="text-xs text-inherit">Back</p>- </motion.div>- <Link className="flex mx-auto w-fit" href="/">- <LogoBadge className="w-[72px] mx-auto" />- </Link>- <div className="flex flex-col justify-center items-center my-7 text-left">- <h1 className="text-2xl font-semibold text-gray-12">- Sign in to Cap- </h1>- <p className="text-[16px] text-gray-10">- Beautiful screen recordings, owned by you.- </p>- </div>- <div className="flex flex-col space-y-3">- <Suspense- fallback={- <>- <Button disabled={true} variant="primary" />- <Button disabled={true} variant="secondary" />- <Button disabled={true} variant="destructive" />- <div className="mx-auto w-3/4 h-5 rounded-lg bg-gray-1" />- </>- }- >- <div className="flex flex-col space-y-3">- <AnimatePresence mode="wait" initial={false}>- {showOrgInput ? (- <motion.div- key="sso"- initial={{ x: 450, opacity: 0, filter: "blur(10px)" }}- animate={{ x: 0, opacity: 1, filter: "blur(0px)" }}- exit={{ x: 450, opacity: 0, filter: "blur(10px)" }}- transition={{ duration: 0.2, type: "spring", bounce: 0.2 }}- >- <LoginWithSSO- handleOrganizationLookup={handleOrganizationLookup}- organizationId={organizationId}- setOrganizationId={setOrganizationId}- organizationName={organizationName}- />- </motion.div>- ) : (- <motion.form- key="email"- initial={{ x: -450, opacity: 0, filter: "blur(10px)" }}- animate={{ x: 0, opacity: 1, filter: "blur(0px)" }}- exit={{ x: -450, opacity: 0, filter: "blur(10px)" }}- transition={{ duration: 0.2, type: "spring", bounce: 0.2 }}- onSubmit={async (e) => {- e.preventDefault();- if (!email) return;+ <div className="flex flex-col space-y-3">+ <AnimatePresence mode="wait" initial={false}>+ {showOrgInput ? (+ <motion.div+ key="sso"+ initial={{ x: 450, opacity: 0, filter: "blur(10px)" }}+ animate={{ x: 0, opacity: 1, filter: "blur(0px)" }}+ exit={{ x: 450, opacity: 0, filter: "blur(10px)" }}+ transition={{ duration: 0.2, type: "spring", bounce: 0.2 }}+ >+ <LoginWithSSO+ handleOrganizationLookup={handleOrganizationLookup}+ organizationId={organizationId}+ setOrganizationId={setOrganizationId}+ organizationName={organizationName}+ />+ </motion.div>+ ) : (+ <motion.form+ key="email"+ initial={{ x: -450, opacity: 0, filter: "blur(10px)" }}+ animate={{ x: 0, opacity: 1, filter: "blur(0px)" }}+ exit={{ x: -450, opacity: 0, filter: "blur(10px)" }}+ transition={{ duration: 0.2, type: "spring", bounce: 0.2 }}+ onSubmit={async (e) => {+ e.preventDefault();+ if (!email) return;- setLoading(true);- trackEvent("auth_started", {- method: "email",- is_signup: !oauthError,- });- signIn("email", {- email,- redirect: false,- ...(next && next.length > 0- ? { callbackUrl: next }- : {}),- })- .then((res) => {- setLoading(false);- if (res?.ok && !res?.error) {- setEmailSent(true);- trackEvent("auth_email_sent", {- email_domain: email.split("@")[1],- });- toast.success("Email sent - check your inbox!");- } else {- toast.error("Error sending email - try again?");- }- })- .catch(() => {- setEmailSent(false);- setLoading(false);+ setLoading(true);+ trackEvent("auth_started", {+ method: "email",+ is_signup: !oauthError,+ });+ signIn("email", {+ email,+ redirect: false,+ ...(next && next.length > 0 ? { callbackUrl: next } : {}),+ })+ .then((res) => {+ setLoading(false);+ if (res?.ok && !res?.error) {+ setEmailSent(true);+ trackEvent("auth_email_sent", {+ email_domain: email.split("@")[1],+ });+ toast.success("Email sent - check your inbox!");+ } else {toast.error("Error sending email - try again?");- });- }}- className="flex flex-col space-y-3"- >- <NormalLogin- setShowOrgInput={setShowOrgInput}- email={email}- emailSent={emailSent}- setEmail={setEmail}- loading={loading}- oauthError={oauthError}- handleGoogleSignIn={handleGoogleSignIn}- />- </motion.form>- )}- </AnimatePresence>- <p className="pt-3 text-xs text-center text-gray-8">- By typing your email and clicking continue, you acknowledge that- you have both read and agree to Cap's{" "}- <Link- href="/terms"- target="_blank"- className="text-xs font-semibold text-gray-12 hover:text-blue-300"- >- Terms of Service- </Link>{" "}- and{" "}- <Link- href="/privacy"- target="_blank"- className="text-xs font-semibold text-gray-12 hover:text-blue-300"+ }+ })+ .catch(() => {+ setEmailSent(false);+ setLoading(false);+ toast.error("Error sending email - try again?");+ });+ }}+ className="flex flex-col space-y-3">- Privacy Policy- </Link>- .- </p>- </div>- {emailSent && (- <button- className="pt-3 mx-auto text-sm underline text-gray-10 hover:text-gray-8"- onClick={() => {- setEmailSent(false);- setEmail("");- setLoading(false);- }}+ <NormalLogin+ setShowOrgInput={setShowOrgInput}+ email={email}+ emailSent={emailSent}+ setEmail={setEmail}+ loading={loading}+ oauthError={oauthError}+ handleGoogleSignIn={handleGoogleSignIn}+ />+ </motion.form>+ )}+ </AnimatePresence>+ <p className="pt-3 text-xs text-center text-gray-9">+ By typing your email and clicking continue, you acknowledge that+ you have both read and agree to Cap's{" "}+ <Link+ href="/terms"+ target="_blank"+ className="text-xs font-semibold text-gray-12 hover:text-blue-300">- Click to restart sign in process- </button>- )}- </Suspense>- </div>+ Terms of Service+ </Link>{" "}+ and{" "}+ <Link+ href="/privacy"+ target="_blank"+ className="text-xs font-semibold text-gray-12 hover:text-blue-300"+ >+ Privacy Policy+ </Link>+ .+ </p>+ </div>+ {emailSent && (+ <button+ className="pt-3 mx-auto text-sm underline text-gray-10 hover:text-gray-8"+ onClick={() => {+ setEmailSent(false);+ setEmail("");+ setLoading(false);+ }}+ >+ Click to restart sign in process+ </button>+ )}+ </Suspense></div></div>);@@ -347,7 +342,7 @@ const NormalLogin = ({variant="primary"type="submit"disabled={loading || emailSent}- icon={<LucideMail size={16} />}+ icon={<FontAwesomeIcon className="size-4" icon={faEnvelope} />}>{emailSent? NODE_ENV === "development"@@ -358,7 +353,7 @@ const NormalLogin = ({{/* {NODE_ENV === "development" && (<div className="flex justify-center items-center px-6 py-3 mt-3 bg-red-600 rounded-xl"><p className="text-lg text-white">- <span className="font-bold text-white">+ <span className="font-medium text-white">Development mode:</span>{" "}Auth URL will be logged to your dev console.@@ -375,25 +370,18 @@ const NormalLogin = ({{!oauthError && (<><Button- variant="red"+ variant="gray"type="button"- className="flex justify-center items-center space-x-2 w-full text-sm"+ className="flex gap-2 justify-center items-center w-full text-sm"onClick={handleGoogleSignIn}disabled={loading}>- <svg- width="15"- height="16"- viewBox="0 0 15 16"- fill="none"- className="mr-1"- xmlns="http://www.w3.org/2000/svg"- >- <path- d="M15 8.1754C15 12.4546 12.0215 15.5 7.62295 15.5C3.40574 15.5 0 12.1492 0 8C0 3.85081 3.40574 0.5 7.62295 0.5C9.67623 0.5 11.4037 1.24093 12.7346 2.4627L10.6598 4.4254C7.9457 1.84879 2.89857 3.78427 2.89857 8C2.89857 10.6159 5.02254 12.7359 7.62295 12.7359C10.6414 12.7359 11.7725 10.6069 11.9508 9.50302H7.62295V6.92339H14.8801C14.9508 7.30746 15 7.67641 15 8.1754Z"- fill="white"- />- </svg>+ <Image+ src="/logos/google.svg"+ alt="Google"+ width={16}+ height={16}+ />Login with Google</Button></>@@ -413,7 +401,7 @@ const NormalLogin = ({</div>)}<Button- variant="white"+ variant="gray"type="button"className="w-full"onClick={() => setShowOrgInput(true)}diff --git a/apps/web/app/login/page.tsx b/apps/web/app/login/page.tsxindex 8065d9022..361d94efa 100644--- a/apps/web/app/login/page.tsx+++ b/apps/web/app/login/page.tsx@@ -1,13 +1,26 @@import { getCurrentUser } from "@cap/database/auth/session";+import { faArrowLeft } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import Link from "next/link";import { redirect } from "next/navigation";import { LoginForm } from "./form";export const dynamic = "force-dynamic";export default async function LoginPage() {+const session = await getCurrentUser();if (session) {redirect("/dashboard");}- return <LoginForm />;+ return (+ <div className="flex relative justify-center items-center w-full h-screen bg-gray-2">+ <div className="flex absolute top-10 left-10 gap-2 justify-center items-center transition-opacity hover:opacity-75">+ <FontAwesomeIcon className="opacity-75 size-3 text-gray-12" icon={faArrowLeft} />+ <Link+ className="text-gray-12" href="/">Home</Link>+ </div>+ <LoginForm />+ </div>+ )}diff --git a/apps/web/app/not-found.tsx b/apps/web/app/not-found.tsxindex af27fe9da..b8e8b5fe4 100644--- a/apps/web/app/not-found.tsx+++ b/apps/web/app/not-found.tsx@@ -1,7 +1,7 @@export default function NotFound() {return (<div className="wrapper flex flex-col items-center justify-center h-screen text-center">- <h1 className="text-5xl md:text-6xl font-bold">404</h1>+ <h1 className="text-5xl md:text-6xl font-medium">404</h1><p className="text-3xl md:text-4xl mb-2">Oops, we couldn't find this page</p>diff --git a/apps/web/app/pricing/page.tsx b/apps/web/app/pricing/page.tsxindex 23fb6756e..9ff4760df 100644--- a/apps/web/app/pricing/page.tsx+++ b/apps/web/app/pricing/page.tsx@@ -1,6 +1,5 @@import { PricingPage } from "@/components/pages/PricingPage";import { Metadata } from "next";-import { Suspense } from "react";export const metadata: Metadata = {title: "Early Adopter Pricing — Cap",@@ -8,8 +7,6 @@ export const metadata: Metadata = {export default function App() {return (- <Suspense><PricingPage />- </Suspense>);}diff --git a/apps/web/app/robots.ts b/apps/web/app/robots.tsindex 6641beedf..a3d037afb 100644--- a/apps/web/app/robots.ts+++ b/apps/web/app/robots.ts@@ -7,20 +7,7 @@ export const revalidate = 0;export default function robots(): MetadataRoute.Robots {const seoPageSlugs = Object.keys(seoPages);const headersList = headers();-const referrer = headersList.get("x-referrer") || "";- const userAgentHeader = headersList.get("x-user-agent") || "";-- let ua;- let userAgentString = "";-- try {- ua = JSON.parse(userAgentHeader);- userAgentString = ua.ua || "";- } catch (error) {- console.error('Error parsing user agent JSON:', error);- userAgentString = userAgentHeader;- }const allowedReferrers = ["x.com",@@ -35,23 +22,10 @@ export default function robots(): MetadataRoute.Robots {"t.co"];- const allowedBots = [- "twitterbot"- ];-const isAllowedReferrer = allowedReferrers.some(domain =>referrer.includes(domain));- const userAgentLower = userAgentString.toLowerCase();- const isAllowedBot = allowedBots.some(bot =>- userAgentLower.includes(bot.toLowerCase())- );-- const shouldAllowCrawling = isAllowedReferrer || isAllowedBot;-- const isTwitterBot = userAgentLower.includes('twitterbot');-const disallowPaths = ["/dashboard","/login",@@ -61,25 +35,7 @@ export default function robots(): MetadataRoute.Robots {"/home",];- if (isTwitterBot) {- return {- rules: [- {- userAgent: "*",- allow: [- "/",- "/blog/",- ...seoPageSlugs.map((slug) => `/${slug}`),- "/s/*",- ],- disallow: disallowPaths,- },- ],- sitemap: "https://cap.so/sitemap.xml",- };- }-- if (!shouldAllowCrawling) {+ if (!isAllowedReferrer) {disallowPaths.push("/s/*");}@@ -91,7 +47,7 @@ export default function robots(): MetadataRoute.Robots {"/","/blog/",...seoPageSlugs.map((slug) => `/${slug}`),- ...(shouldAllowCrawling ? ["/s/*"] : []),+ ...(isAllowedReferrer ? ["/s/*"] : []),],disallow: disallowPaths,},diff --git a/apps/web/app/s/[videoId]/_components/AuthOverlay.tsx b/apps/web/app/s/[videoId]/_components/AuthOverlay.tsxindex e848e780b..e01b13385 100644--- a/apps/web/app/s/[videoId]/_components/AuthOverlay.tsx+++ b/apps/web/app/s/[videoId]/_components/AuthOverlay.tsx@@ -146,7 +146,7 @@ export const AuthOverlay: React.FC<AuthOverlayProps> = ({{NODE_ENV === "development" && (<div className="flex justify-center items-center px-6 py-3 mt-3 bg-red-600 rounded-xl"><p className="text-lg text-white">- <span className="font-bold text-white">+ <span className="font-medium text-white">Development mode:</span>{" "}Auth URL will be logged to your dev console.diff --git a/apps/web/app/s/[videoId]/_components/ShareHeader.tsx b/apps/web/app/s/[videoId]/_components/ShareHeader.tsxindex 7c32ba54d..c55c7cf1c 100644--- a/apps/web/app/s/[videoId]/_components/ShareHeader.tsx+++ b/apps/web/app/s/[videoId]/_components/ShareHeader.tsx@@ -21,6 +21,7 @@ import { isUserOnProPlan } from "@cap/utils";import { UpgradeModal } from "@/components/UpgradeModal";import { SharingDialog } from "@/app/dashboard/caps/components/SharingDialog";import clsx from "clsx";+import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";export const ShareHeader = ({data,@@ -29,6 +30,8 @@ export const ShareHeader = ({domainVerified,sharedOrganizations = [],userOrganizations = [],+ sharedSpaces = [],+ userSpaces = [],}: {data: typeof videos.$inferSelect;user: typeof userSelectProps | null;@@ -36,6 +39,18 @@ export const ShareHeader = ({domainVerified?: boolean;sharedOrganizations?: { id: string; name: string }[];userOrganizations?: { id: string; name: string }[];+ sharedSpaces?: {+ id: string;+ name: string;+ iconUrl?: string;+ organizationId: string;+ }[];+ userSpaces?: {+ id: string;+ name: string;+ iconUrl?: string;+ organizationId: string;+ }[];}) => {const { push, refresh } = useRouter();const [isEditing, setIsEditing] = useState(false);@@ -43,8 +58,11 @@ export const ShareHeader = ({const [isDownloading, setIsDownloading] = useState(false);const [upgradeModalOpen, setUpgradeModalOpen] = useState(false);const [isSharingDialogOpen, setIsSharingDialogOpen] = useState(false);- const [currentSharedOrganizations, setCurrentSharedOrganizations] =- useState(sharedOrganizations);++ const contextData = useSharedContext();+ const contextSpaces = contextData?.spacesData || null;+ const contextSharedSpaces = contextData?.sharedSpaces || null;+ const effectiveSharedSpaces = contextSharedSpaces || sharedSpaces;const isOwner = user && user.id.toString() === data.ownerId;@@ -98,12 +116,7 @@ export const ShareHeader = ({}): false;- const handleSharingUpdated = (updatedSharedOrganizations: string[]) => {- setCurrentSharedOrganizations(- userOrganizations?.filter((organization) =>- updatedSharedOrganizations.includes(organization.id)- )- );+ const handleSharingUpdated = () => {refresh();};@@ -112,7 +125,10 @@ export const ShareHeader = ({"text-sm text-gray-10 transition-colors duration-200 flex items-center";if (isOwner) {- if (currentSharedOrganizations?.length === 0) {+ if (+ (sharedOrganizations?.length === 0 || !sharedOrganizations) &&+ (effectiveSharedSpaces?.length === 0 || !effectiveSharedSpaces)+ ) {return (<pclassName={clsx(baseClassName, "hover:text-gray-12 cursor-pointer")}@@ -145,8 +161,7 @@ export const ShareHeader = ({onClose={() => setIsSharingDialogOpen(false)}capId={data.id}capName={data.name}- sharedOrganizations={currentSharedOrganizations || []}- userOrganizations={userOrganizations}+ sharedSpaces={effectiveSharedSpaces || []}onSharingUpdated={handleSharingUpdated}/><div>diff --git a/apps/web/app/s/[videoId]/_components/tabs/Activity.tsx b/apps/web/app/s/[videoId]/_components/tabs/Activity.tsxindex ae8b69755..1621ea8cc 100644--- a/apps/web/app/s/[videoId]/_components/tabs/Activity.tsx+++ b/apps/web/app/s/[videoId]/_components/tabs/Activity.tsx@@ -4,8 +4,7 @@ import { getVideoAnalytics } from "@/actions/videos/get-analytics";import { CapCardAnalytics } from "@/app/dashboard/caps/components/CapCardAnalytics";import { userSelectProps } from "@cap/database/auth/session";import { comments as commentsSchema } from "@cap/database/schema";-import { Button } from "@cap/ui";-import clsx from "clsx";+import { Button, Avatar } from "@cap/ui";import { AnimatePresence, motion } from "framer-motion";import { useEffect, useRef, useState } from "react";import { Tooltip } from "react-tooltip";@@ -28,28 +27,6 @@ interface ActivityProps {isOwnerOrMember?: boolean;}-export const Avatar: React.FC<{- name: string | null | undefined;- className?: string;- letterClass?: string;-}> = ({ name, className = "", letterClass = "text-xs" }) => {- const initial = name?.[0]?.toUpperCase() || "A";- const bgColor = name ? "bg-gray-12" : "bg-gray-6";- const textColor = name ? "text-gray-1" : "text-gray-12";-- return (- <div- className={clsx(- "flex justify-center items-center rounded-full size-4",- bgColor,- className- )}- >- <span className={clsx(letterClass, textColor)}>{initial}</span>- </div>- );-};-interface CommentInputProps {onSubmit: (content: string) => void;onCancel?: () => void;diff --git a/apps/web/app/s/[videoId]/page.tsx b/apps/web/app/s/[videoId]/page.tsxindex 9758d9116..af34b278c 100644--- a/apps/web/app/s/[videoId]/page.tsx+++ b/apps/web/app/s/[videoId]/page.tsx@@ -50,10 +50,7 @@ type VideoWithOrganization = typeof videos.$inferSelect & {hasPassword?: boolean;};-export async function generateMetadata(- { params }: Props,- parent: ResolvingMetadata-): Promise<Metadata> {+export async function generateMetadata({ params }: Props): Promise<Metadata> {const videoId = params.videoId as string;console.log("[generateMetadata] Fetching video metadata for videoId:",@@ -72,48 +69,30 @@ export async function generateMetadata(return notFound();}+ // Get the headers from the middlewareconst headersList = headers();const referrer = headersList.get("x-referrer") || "";- const userAgent = headersList.get("x-user-agent") || "";-- console.log("[generateMetadata] User Agent:", userAgent);+ // Check if referrer is from allowed platformsconst allowedReferrers = ["x.com",+ "twitter.com","facebook.com","fb.com","slack.com","notion.so","linkedin.com",- "reddit.com",- "youtube.com",- "quora.com",- "t.co",];- const allowedBots = ["twitterbot"];-const isAllowedReferrer = allowedReferrers.some((domain) =>referrer.includes(domain));- const userAgentLower = userAgent.toLowerCase();- const isAllowedBot = allowedBots.some((bot) =>- userAgentLower.includes(bot.toLowerCase())- );-- const isTwitterBot = userAgentLower.includes("twitterbot");-- const shouldAllowIndexing = isAllowedReferrer || isAllowedBot || isTwitterBot;-- const robotsDirective = shouldAllowIndexing+ // Set robots metadata based on referrer and video publicity+ const robotsDirective = isAllowedReferrer? "index, follow": "noindex, nofollow";- if (isTwitterBot) {- console.log("[generateMetadata] Twitter bot detected, allowing indexing");- }-if (video.public === false) {return {title: "Cap: This video is private",@@ -141,18 +120,7 @@ export async function generateMetadata(},],},- twitter: {- card: "summary_large_image",- title: "Cap: This video is private",- description: "This video is private and cannot be shared.",- images: [- new URL(- `/api/video/og?videoId=${videoId}`,- buildEnv.NEXT_PUBLIC_WEB_URL- ).toString(),- ],- },- robots: isTwitterBot ? "index, follow" : "noindex, nofollow",+ robots: "noindex, nofollow",};}@@ -348,9 +316,9 @@ async function AuthorizedContent({organization[0].allowedEmailDomain);return (- <div className="flex flex-col items-center justify-center min-h-screen p-4 text-center">- <h1 className="text-2xl font-bold mb-4">Access Restricted</h1>- <p className="text-gray-600 mb-2">+ <div className="flex flex-col justify-center items-center p-4 min-h-screen text-center">+ <h1 className="mb-4 text-2xl font-bold">Access Restricted</h1>+ <p className="mb-2 text-gray-10">This video is only accessible to members of this organization.</p><p className="text-gray-600">@@ -654,7 +622,7 @@ async function AuthorizedContent({<atarget="_blank"href={`/?ref=video_${video.id}`}- className="flex justify-center items-center px-4 py-2 mx-auto space-x-2 bg-gray-1 rounded-full new-card-style w-fit"+ className="flex justify-center items-center px-4 py-2 mx-auto space-x-2 rounded-full bg-gray-1 new-card-style w-fit"><span className="text-sm">Recorded with</span><Logo className="w-14 h-auto" />diff --git a/apps/web/app/tools/convert/page.tsx b/apps/web/app/tools/convert/page.tsxindex 98120010c..b273a6266 100644--- a/apps/web/app/tools/convert/page.tsx+++ b/apps/web/app/tools/convert/page.tsx@@ -87,7 +87,7 @@ export default function ConvertToolsPage() {</Link></div>- <h1 className="text-3xl font-bold tracking-tight text-gray-900 mb-8">+ <h1 className="text-3xl font-medium tracking-tight text-gray-900 mb-8">File Conversion Tools</h1><p className="mb-12 text-lg text-gray-600">diff --git a/apps/web/components/EmptyState.tsx b/apps/web/components/EmptyState.tsxnew file mode 100644index 000000000..9031b2a47--- /dev/null+++ b/apps/web/components/EmptyState.tsx@@ -0,0 +1,31 @@+import { Button } from "@cap/ui";+import { ReactNode } from "react";++interface EmptyStateProps {+ title: string;+ description: string;+ actionLabel?: string;+ onAction?: () => void;+ icon?: ReactNode;+}++export const EmptyState = ({+ title,+ description,+ actionLabel,+ onAction,+ icon,+}: EmptyStateProps) => {+ return (+ <div className="flex flex-col items-center justify-center py-16 text-center">+ {icon && <div className="mb-4">{icon}</div>}+ <h3 className="text-xl font-semibold text-gray-12">{title}</h3>+ <p className="mt-2 text-gray-10 max-w-md">{description}</p>+ {actionLabel && onAction && (+ <Button className="mt-6" onClick={onAction}>+ {actionLabel}+ </Button>+ )}+ </div>+ );+};diff --git a/apps/web/components/FileInput.tsx b/apps/web/components/FileInput.tsxindex ea331d17a..d3d93d2a3 100644--- a/apps/web/components/FileInput.tsx+++ b/apps/web/components/FileInput.tsx@@ -5,7 +5,7 @@ import { faCloudUpload, faSpinner } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import clsx from "clsx";import Image from "next/image";-import { useEffect, useRef, useState } from "react";+import React, { useEffect, useRef, useState } from "react";import { toast } from "sonner";export interface FileInputProps {@@ -14,6 +14,7 @@ export interface FileInputProps {id?: string;name?: string;className?: string;+ notDraggingClassName?: string;initialPreviewUrl?: string | null;onRemove?: () => void;isLoading?: boolean;@@ -25,6 +26,7 @@ export const FileInput: React.FC<FileInputProps> = ({id = "file",name = "file",className = "",+ notDraggingClassName = "",initialPreviewUrl = null,onRemove,isLoading = false,@@ -32,7 +34,9 @@ export const FileInput: React.FC<FileInputProps> = ({const fileInputRef = useRef<HTMLInputElement>(null);const [isDragging, setIsDragging] = useState(false);const [selectedFile, setSelectedFile] = useState<File | null>(null);- const [previewUrl, setPreviewUrl] = useState<string | null>(initialPreviewUrl);+ const [previewUrl, setPreviewUrl] = useState<string | null>(+ initialPreviewUrl+ );// Update preview URL when initialPreviewUrl changesuseEffect(() => {@@ -75,26 +79,26 @@ export const FileInput: React.FC<FileInputProps> = ({e.preventDefault();e.stopPropagation();setIsDragging(false);-+if (disabled) return;-+const files = e.dataTransfer.files;if (files && files.length > 0) {// Set the file to the input elementconst file = files[0];-+if (fileInputRef.current && file) {try {// Create a new DataTransfer instanceconst dataTransfer = new DataTransfer();dataTransfer.items.add(file);fileInputRef.current.files = dataTransfer.files;-+// Trigger onChange event manually- const event = new Event('change', { bubbles: true });+ const event = new Event("change", { bubbles: true });fileInputRef.current.dispatchEvent(event);} catch (error) {- console.error('Error handling file drop:', error);+ console.error("Error handling file drop:", error);}}}@@ -104,34 +108,39 @@ export const FileInput: React.FC<FileInputProps> = ({const file = fileInputRef.current?.files?.[0];if (file) {// Validate file type - only allow jpg, jpeg, svg, and png- const allowedTypes = ['image/jpeg', 'image/jpg', 'image/png', 'image/svg+xml'];+ const allowedTypes = [+ "image/jpeg",+ "image/jpg",+ "image/png",+ "image/svg+xml",+ ];if (!allowedTypes.includes(file.type)) {toast.error("Please select a JPG, JPEG, PNG, or SVG file");if (fileInputRef.current) {- fileInputRef.current.value = '';+ fileInputRef.current.value = "";}return;}-+// Validate file size (limit to 2MB)if (file.size > 2 * 1024 * 1024) {toast.error("File size must be less than 2MB");if (fileInputRef.current) {- fileInputRef.current.value = '';+ fileInputRef.current.value = "";}return;}-+// Clean up previous preview URL if it's not the initial preview URLif (previewUrl && previewUrl !== initialPreviewUrl) {URL.revokeObjectURL(previewUrl);}-+// Create a new preview URL for immediate feedbackconst newPreviewUrl = URL.createObjectURL(file);setPreviewUrl(newPreviewUrl);setSelectedFile(null);-+// Call the onChange callbackif (onChange) {onChange(file);@@ -141,24 +150,24 @@ export const FileInput: React.FC<FileInputProps> = ({const handleRemove = (e: React.MouseEvent) => {e.stopPropagation();-+// Clean up preview URL if it's not the initial preview URLif (previewUrl && previewUrl !== initialPreviewUrl) {URL.revokeObjectURL(previewUrl);}-+setPreviewUrl(null);setSelectedFile(null);-+if (fileInputRef.current) {- fileInputRef.current.value = '';+ fileInputRef.current.value = "";}-+// Call the onRemove callbackif (onRemove) {onRemove();}-+// Call the onChange callback with nullif (onChange) {onChange(null);@@ -167,48 +176,54 @@ export const FileInput: React.FC<FileInputProps> = ({return (<div className={`relative ${className}`}>- <div className="h-[46.5px]"> {/* Fixed height container to prevent resizing */}- {(selectedFile || previewUrl) ? (- <div className="flex gap-2 items-center p-1.5 rounded-xl border bg-gray-3 border-gray-4 h-full">+ <div className="h-[44px]">+ {" "}+ {/* Fixed height container to prevent resizing */}+ {selectedFile || previewUrl ? (+ <div className="flex gap-2 items-center p-1.5 rounded-xl border bg-gray-1 border-gray-3 h-full"><div className="flex flex-1 gap-1.5 items-center"><div className="flex flex-1 gap-1 items-center">{selectedFile ? (<>- <p className="text-xs font-medium w-fit max-w-[150px] truncate text-gray-12">{selectedFile.name}</p>- <p className="text-xs text-gray-10 min-w-fit">{(selectedFile.size / 1024).toFixed(1)} KB</p>+ <p className="text-xs font-medium w-fit max-w-[150px] truncate text-gray-12">+ {selectedFile.name}+ </p>+ <p className="text-xs text-gray-10 min-w-fit">+ {(selectedFile.size / 1024).toFixed(1)} KB+ </p></>) : (<div className="flex gap-2 items-center">- <p className="text-xs font-medium text-gray-12">Current icon: </p>- <div className="overflow-hidden relative flex-shrink-0 rounded-md size-5">- {previewUrl && (- <Image- src={previewUrl}- alt="File preview"- fill- className="object-contain rounded-full"- />- )}- </div>- </div>+ <p className="text-xs font-medium text-gray-12">+ Current icon:{" "}+ </p>+ <div className="overflow-hidden relative flex-shrink-0 rounded-md size-5">+ {previewUrl && (+ <Image+ src={previewUrl}+ alt="File preview"+ fill+ className="object-contain rounded-full"+ />+ )}+ </div>+ </div>)}</div></div><Buttonvariant="destructive"- style={{- "--gradient-border-radius": "8px",- } as React.CSSProperties}size="xs"- className="min-w-[80px]"+ spinner={isLoading}disabled={isLoading || disabled}onClick={handleRemove}+ style={+ {+ "--gradient-border-radius": "8px",+ } as React.CSSProperties+ }>- {isLoading ? (- <FontAwesomeIcon icon={faSpinner} className="animate-spin" />- ) : (- <>Remove</>- )}+ Remove</Button></div>) : (@@ -220,7 +235,9 @@ export const FileInput: React.FC<FileInputProps> = ({onDrop={handleDrop}className={clsx("flex gap-3 justify-center items-center px-4 w-full rounded-xl border border-dashed transition-all duration-300 cursor-pointer h-full",- isDragging ? "border-blue-500 bg-gray-5" : "hover:bg-gray-4 border-gray-8",+ isDragging+ ? "border-blue-500 bg-gray-5"+ : "hover:bg-gray-2 border-gray-5 " + notDraggingClassName,isLoading || disabled ? "opacity-50 pointer-events-none" : "")}>@@ -236,8 +253,8 @@ export const FileInput: React.FC<FileInputProps> = ({/>)}<p className="text-sm truncate text-gray-11">- {isLoading- ? "Uploading..."+ {isLoading+ ? "Uploading...": "Choose a file or drag & drop it here"}</p></div>diff --git a/apps/web/components/Navbar.tsx b/apps/web/components/Navbar.tsxindex f669881c6..ff95499da 100644--- a/apps/web/components/Navbar.tsx+++ b/apps/web/components/Navbar.tsx@@ -15,10 +15,11 @@ import {import { classNames } from "@cap/utils";import { faGithub } from "@fortawesome/free-brands-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";-import { Menu, X } from "lucide-react";+import { motion } from "framer-motion";import Link from "next/link";import { usePathname } from "next/navigation";import { useState } from "react";+import MobileMenu from "./ui/MobileMenu";const Links = [{@@ -108,215 +109,129 @@ export const Navbar = ({ auth }: { auth: boolean }) => {)return null;+ const isActive = (href: string) => pathname === href;+return (<>- <div className="fixed border-b border-b-zinc-100 inset-0 z-50 p-4 w-full backdrop-blur-md bg-white/70 h-[60px]">- <div className="flex justify-between items-center mx-auto max-w-4xl h-full transition-all">- <div className="flex items-center">- <Link passHref href="/home">- <Logo className="w-[90px]" />- </Link>- <div className="hidden md:block">- <NavigationMenu>- <NavigationMenuList className="space-x-0">- {Links.map((link) => (- <NavigationMenuItem key={link.label}>- {link.dropdown ? (- <>- <NavigationMenuTrigger- className={- "px-3 text-black/70 text-[14px] active:text-black/70 focus:text-black/70 hover:text-primary"- }- >- {link.label}- </NavigationMenuTrigger>- <NavigationMenuContent>- <ul className="grid gap-3 p-6 md:w-[400px] lg:w-[500px] lg:grid-cols-2">- {link.dropdown.map((sublink) => (- <ListItem- key={sublink.href}- href={sublink.href}- title={sublink.label}- >- {sublink.sub}- </ListItem>- ))}- </ul>- </NavigationMenuContent>- </>- ) : (- <Link href={link.href} legacyBehavior passHref>- <NavigationMenuLink- className={classNames(- navigationMenuTriggerStyle(),- "px-3 text-black/70 text-[14px] hover:text-primary active:text-black/70 focus:text-black/70"- )}- >- {link.label}- </NavigationMenuLink>- </Link>- )}- </NavigationMenuItem>- ))}- </NavigationMenuList>- </NavigationMenu>+ <header className="sticky inset-0 top-4 z-[51] md:top-10">+ <motion.nav+ initial={{ opacity: 0, y: -10 }}+ animate={{ opacity: 1, y: 0 }}+ transition={{ duration: 0.2, ease: "easeOut" }}+ className="p-2 mx-auto w-full max-w-[calc(100%-20px)] bg-white rounded-full border backdrop-blur-md md:max-w-fit border-zinc-200 h-fit"+ >+ <div className="flex gap-12 justify-between items-center mx-auto max-w-4xl h-full transition-all">+ <div className="flex items-center">+ <Link passHref href="/home">+ <Logo className="w-[90px]" />+ </Link>+ <div className="hidden md:flex">+ <NavigationMenu>+ <NavigationMenuList className="space-x-0">+ {Links.map((link) => (+ <NavigationMenuItem key={link.label}>+ {link.dropdown ? (+ <>+ <NavigationMenuTrigger+ className={+ "px-2 py-0 text-sm font-medium text-gray-10 active:text-gray-10 focus:text-gray-10 hover:text-blue-9"+ }+ >+ {link.label}+ </NavigationMenuTrigger>+ <NavigationMenuContent>+ <ul className="grid gap-3 p-6 md:w-[400px] lg:w-[500px] lg:grid-cols-2">+ {link.dropdown.map((sublink) => (+ <ListItem+ key={sublink.href}+ href={sublink.href}+ title={sublink.label}+ >+ {sublink.sub}+ </ListItem>+ ))}+ </ul>+ </NavigationMenuContent>+ </>+ ) : (+ <Link href={link.href} legacyBehavior passHref>+ <NavigationMenuLink+ className={classNames(+ navigationMenuTriggerStyle(),+ isActive(link.href)+ ? "text-blue-9"+ : "text-gray-10",+ "px-2 py-0 text-sm font-medium hover:text-blue-9 focus:text-8"+ )}+ >+ {link.label}+ </NavigationMenuLink>+ </Link>+ )}+ </NavigationMenuItem>+ ))}+ </NavigationMenuList>+ </NavigationMenu>+ </div></div>- </div>- <div className="hidden items-center space-x-2 md:flex">- <Button- variant="white"- href="https://github.com/CapSoftware/Cap"- size="sm"- className="w-full font-medium sm:w-auto"- icon={<FontAwesomeIcon className="size-4" icon={faGithub} />}- >- Github- </Button>- <Button- variant="darkgradient"- href={auth === false ? "/login" : "/dashboard"}- size="sm"- className="w-full font-medium sm:w-auto"+ <div className="hidden items-center space-x-2 md:flex">+ <Button+ variant="gray"+ href="https://github.com/CapSoftware/Cap"+ size="sm"+ className="w-full font-medium sm:w-auto"+ icon={<FontAwesomeIcon className="size-4" icon={faGithub} />}+ >+ Github+ </Button>+ <Button+ variant="darkgradient"+ href={auth === false ? "/login" : "/dashboard"}+ size="sm"+ className="w-full font-medium sm:w-auto"+ >+ {auth === false ? "Login" : "Dashboard"}+ </Button>+ </div>+ <button+ className="flex md:hidden"+ onClick={() => setShowMobileMenu(!showMobileMenu)}>- {auth === false ? "Login" : "Dashboard"}- </Button>- </div>- <div className="block md:hidden">- <button onClick={() => setShowMobileMenu(!showMobileMenu)}>- <Menu className={`w-[28px] h-[28px] text-black/70`} />+ <div className="flex flex-col gap-[5px] mr-1">+ <motion.div+ initial={{ opacity: 1 }}+ animate={{+ rotate: showMobileMenu ? 45 : 0,+ y: showMobileMenu ? 7 : 0,+ }}+ transition={{ duration: 0.2 }}+ className="w-6 h-0.5 bg-black"+ />+ <motion.div+ initial={{ opacity: 1 }}+ animate={{+ opacity: showMobileMenu ? 0 : 1,+ x: showMobileMenu ? -5 : 0,+ }}+ transition={{ duration: 0.2 }}+ className="w-6 h-0.5 bg-black"+ />+ <motion.div+ initial={{ opacity: 1 }}+ animate={{+ rotate: showMobileMenu ? -45 : 0,+ y: showMobileMenu ? -7 : 0,+ }}+ transition={{ duration: 0.2 }}+ className="w-6 h-0.5 bg-black"+ />+ </div></button></div>- </div>- </div>+ </motion.nav>+ </header>{showMobileMenu && (- <div className="fixed top-0 left-0 w-full h-full px-4 bg-gray-1 z-[100000] overflow-auto">- <div- className="bg-gradient-to-b from-white to-[rgba(255,255,255,0.3)]- pt-3 pb-12 sticky top-0 flex items-center justify-between"- >- <Link passHref href="/">- <Logo className="w-[90px] h-auto" />- </Link>- <button onClick={() => setShowMobileMenu(!showMobileMenu)}>- <X className="w-[28px] h-[28px]" />- </button>- </div>- <div className="pb-12">- <nav className="relative mobile">- <ul className="p-0 space-y-10">- <li>- <Link- onClick={() => {- setShowMobileMenu(false);- }}- href="/pricing"- passHref- >- Pricing- </Link>- </li>- <li>- <Link- onClick={() => {- setShowMobileMenu(false);- }}- href="/download"- passHref- >- Download- </Link>- </li>- <li>- <Link- onClick={() => {- setShowMobileMenu(false);- }}- href="/pricing"- passHref- >- Get started- </Link>- </li>- <li>- <Link- onClick={() => {- setShowMobileMenu(false);- }}- href="/about"- passHref- >- About- </Link>- </li>- <li>- <Link- onClick={() => {- setShowMobileMenu(false);- }}- href="/blog"- passHref- >- Blog- </Link>- </li>- <li>- <Link- href="https://github.com/CapSoftware/Cap"- passHref- target="_blank"- className="flex items-center"- >- <svg- xmlns="http://www.w3.org/2000/svg"- fill="currentColor"- className="w-6 h-6"- viewBox="0 0 24 24"- >- <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"></path>- </svg>- <span className="ml-2">Open Source</span>- </Link>- </li>- <li>- <Link- href="https://discord.gg/y8gdQ3WRN3"- passHref- target="_blank"- className="flex items-center"- >- <svg- xmlns="http://www.w3.org/2000/svg"- fill="currentColor"- className="w-6 h-6"- viewBox="0 0 24 24"- >- <path d="M20.317 4.37a19.791 19.791 0 00-4.885-1.515.074.074 0 00-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 00-5.487 0 12.64 12.64 0 00-.617-1.25.077.077 0 00-.079-.037A19.736 19.736 0 003.677 4.37a.07.07 0 00-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 00.031.057 19.9 19.9 0 005.993 3.03.078.078 0 00.084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 00-.041-.106 13.107 13.107 0 01-1.872-.892.077.077 0 01-.008-.128 10.2 10.2 0 00.372-.292.074.074 0 01.077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 01.078.01c.12.098.246.198.373.292a.077.077 0 01-.006.127 12.299 12.299 0 01-1.873.892.077.077 0 00-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 00.084.028 19.839 19.839 0 006.002-3.03.077.077 0 00.032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 00-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"></path>- </svg>- <span className="ml-2">Join the community</span>- </Link>- </li>- </ul>- <div className="flex flex-col gap-4 items-center mt-10">- <Button- variant="dark"- href="/login"- size="sm"- className="font-medium h-[50px] !text-white"- >- Login- </Button>- <Button- variant="radialblue"- className="font-medium h-[50px] !text-white"- href={auth === false ? "/download" : "/dashboard"}- size="lg"- >- {auth === false ? "Download App" : "Dashboard"}- </Button>- </div>- </nav>- </div>- </div>+ <MobileMenu setShowMobileMenu={setShowMobileMenu} auth={auth} />)}</>);diff --git a/apps/web/components/ToolsPageContent.tsx b/apps/web/components/ToolsPageContent.tsxindex 026119695..d8eb1ffe5 100644--- a/apps/web/components/ToolsPageContent.tsx+++ b/apps/web/components/ToolsPageContent.tsx@@ -1,7 +1,7 @@"use client";-import Link from "next/link";import { Button } from "@cap/ui";+import Link from "next/link";import { useEffect } from "react";interface ToolCategory {@@ -77,7 +77,7 @@ export function ToolsPageContent() {<div className="py-20 md:py-28"><div className="wrapper"><div className="text-center mb-12">- <h1 className="text-4xl font-bold tracking-tight text-gray-900 mb-4">+ <h1 className="text-4xl font-medium tracking-tight text-gray-900 mb-4">Try our free tools</h1><p className="text-xl text-gray-600 max-w-3xl mx-auto">@@ -148,7 +148,7 @@ export function ToolsPageContent() {</div><div className="wrapper mx-auto h-full flex flex-col justify-center items-center relative z-10"><div className="text-center max-w-[800px] mx-auto mb-8">- <h2 className="text-3xl md:text-4xl font-bold text-white mb-4 drop-shadow-md">+ <h2 className="text-3xl md:text-4xl font-medium text-white mb-4 drop-shadow-md">The open source Loom alternative</h2><p className="text-xl text-white/90 mb-6">diff --git a/apps/web/components/Tooltip.tsx b/apps/web/components/Tooltip.tsxindex 19d237208..db484d28d 100644--- a/apps/web/components/Tooltip.tsx+++ b/apps/web/components/Tooltip.tsx@@ -29,7 +29,7 @@ const Tooltip = ({<TooltipPrimitive.Contentside={position}className={classNames(- "select-none rounded-lg z-[60] text-gray-12 flex items-center gap-2 TooltipContent bg-gray-2 border border-gray-3 px-3 py-2 text-xs leading-none shadow-sm shadow-gray-3/50 data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade",+ "select-none rounded-lg z-[60] text-gray-12 font-medium flex items-center gap-2 TooltipContent bg-gray-2 border border-gray-3 px-3 py-2 text-xs leading-none shadow-sm shadow-gray-3/50 data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade",className)}sideOffset={5}diff --git a/apps/web/components/UpgradeModal.tsx b/apps/web/components/UpgradeModal.tsxindex 4bbafdd68..8a5f7ce69 100644--- a/apps/web/components/UpgradeModal.tsx+++ b/apps/web/components/UpgradeModal.tsx@@ -1,7 +1,6 @@"use client";-import { buildEnv } from "@cap/env";-import { Button, Dialog, DialogContent, DialogTitle, Switch } from "@cap/ui";+import { Button, Dialog, DialogContent, Switch } from "@cap/ui";import { getProPlanId } from "@cap/utils";import NumberFlow from "@number-flow/react";import { Fit, Layout, useRive } from "@rive-app/react-canvas";@@ -18,12 +17,12 @@ import {Share2,Shield,Sparkles,- Users,Video,} from "lucide-react";import { useRouter } from "next/navigation";import { memo, useState } from "react";import { toast } from "sonner";+import { buildEnv } from "@cap/env";interface UpgradeModalProps {open: boolean;@@ -172,7 +171,6 @@ export const UpgradeModal = ({ open, onOpenChange }: UpgradeModalProps) => {className="sm:max-w-[1100px] w-[calc(100%-20px)] custom-scroll bg-gray-2 borderborder-gray-4 overflow-y-auto md:overflow-hidden max-h-[90vh] p-0">- <DialogTitle className="sr-only">Upgrade to Cap Pro</DialogTitle><AnimatePresence mode="wait">{open && (<motion.div@@ -188,7 +186,7 @@ export const UpgradeModal = ({ open, onOpenChange }: UpgradeModalProps) => {</div><div className="flex relative flex-col flex-1 justify-center items-center py-6 w-full"><div className="flex flex-col items-center">- <h1 className="text-3xl font-bold text-gray-12">+ <h1 className="text-3xl font-medium text-gray-12">Upgrade to Cap Pro</h1></div>@@ -261,7 +259,7 @@ export const UpgradeModal = ({ open, onOpenChange }: UpgradeModalProps) => {<Buttonvariant="primary"onClick={planCheckout}- className="mt-5 w-full max-w-sm h-14 text-lg rounded-xl"+ className="mt-5 w-full max-w-sm h-14 text-lg"disabled={proLoading}>{proLoading ? "Loading..." : "Upgrade to Cap Pro"}@@ -282,7 +280,7 @@ export const UpgradeModal = ({ open, onOpenChange }: UpgradeModalProps) => {key={index}className="flex flex-col justify-center items-center">- <div className="mb-3.5 bg-gray-5 rounded-full size-10 flex items-center border border-gray-6 justify-center">+ <div className="mb-3.5 bg-gray-5 rounded-full size-10 flex items-center justify-center">{feature.icon}</div><h3 className="text-base font-medium text-center text-gray-12">diff --git a/apps/web/components/UsageButton.tsx b/apps/web/components/UsageButton.tsxindex 27e4dd840..e82ad1a3b 100644--- a/apps/web/components/UsageButton.tsx+++ b/apps/web/components/UsageButton.tsx@@ -1,85 +1,119 @@import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";import { Tooltip } from "@/components/Tooltip";import { Button } from "@cap/ui";-import { faArrowUp, faCheck } from "@fortawesome/free-solid-svg-icons";+import { faCheck } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { Fit, Layout, useRive } from "@rive-app/react-canvas";import clsx from "clsx";import Link from "next/link";+import { memo } from "react";-export const UsageButton = ({- subscribed,- toggleMobileNav,-}: {- subscribed: boolean;- toggleMobileNav?: () => void;-}) => {- const { sidebarCollapsed, setUpgradeModalOpen } = useSharedContext();-- if (subscribed) {- return (- <Tooltip position="right" content="Cap Pro">- <Link- className="flex justify-center mx-auto w-full"- href="/dashboard/settings/workspace"- >- <Button- size="lg"- className={clsx(- "overflow-hidden truncate",- sidebarCollapsed ? "p-0 w-10 h-10 rounded-full min-w-10" : "w-full"- )}- variant="primary"+export const UsageButton = memo(+ ({+ subscribed,+ toggleMobileNav,+ }: {+ subscribed: boolean;+ toggleMobileNav?: () => void;+ }) => {+ const { sidebarCollapsed } = useSharedContext();+ if (subscribed) {+ return (+ <Tooltip position="right" content="Cap Pro">+ <Link+ className="flex justify-center mx-auto w-full"+ href="/dashboard/settings/workspace">- <FontAwesomeIcon+ <Button+ size="lg"className={clsx(- "text-gray-50",- sidebarCollapsed ? "mr-0" : "mr-1"+ "overflow-hidden truncate",+ sidebarCollapsed+ ? "p-0 w-10 h-10 rounded-full min-w-10"+ : "w-full")}- icon={faCheck}- />- {sidebarCollapsed ? null : (- <p className="text-gray-50">- Cap Pro- </p>- )}- </Button>- </Link>- </Tooltip>+ variant="primary"+ >+ <FontAwesomeIcon+ className={clsx(+ "text-white",+ sidebarCollapsed ? "mr-0" : "mr-1"+ )}+ icon={faCheck}+ />+ {sidebarCollapsed ? null : <p className="text-white">Cap Pro</p>}+ </Button>+ </Link>+ </Tooltip>+ );+ }++ return (+ <>+ <Tooltip+ disable={!sidebarCollapsed}+ position="right"+ content="Upgrade to Pro"+ >+ <ProRiveButton toggleMobileNav={toggleMobileNav} />+ </Tooltip>+ </>);}+);- return (- <>- <Tooltip position="right" content="Upgrade to Pro">- <div className="flex justify-center mx-auto w-full">- <Button- size="lg"- className={clsx(- "overflow-hidden truncate",- sidebarCollapsed ? "p-0 w-10 h-10 rounded-full min-w-10" : "w-full"- )}- variant="primary"- onClick={() => {- setUpgradeModalOpen(true);- toggleMobileNav?.();- }}- >- <FontAwesomeIcon- className={clsx(- "text-gray-50",- sidebarCollapsed ? "mr-0" : "mr-1"- )}- icon={faArrowUp}- />- {sidebarCollapsed ? null : (- <p className="text-base text-gray-50">- Upgrade to Pro- </p>- )}- </Button>- </div>- </Tooltip>- {/* UpgradeModal is now rendered at the root level in DynamicSharedLayout */}- </>- );-};+const ProRiveButton = memo(+ ({ toggleMobileNav }: { toggleMobileNav?: () => void }) => {+ const { setUpgradeModalOpen, sidebarCollapsed } = useSharedContext();++ const { rive, RiveComponent: ProRive } = useRive({+ src: "/rive/pricing.riv",+ artboard: "pro",+ animations: "idle",+ autoplay: false,+ layout: new Layout({+ fit: Fit.Cover,+ }),+ });++ return (+ <div+ onMouseEnter={() => {+ if (rive) {+ rive.stop();+ rive.play("items-coming-out");+ }+ }}+ onMouseLeave={() => {+ if (rive) {+ rive.stop();+ rive.play("items-coming-in");+ }+ }}+ className={clsx(+ "flex overflow-visible relative gap-3 justify-evenly items-center cursor-pointer",+ "mx-auto bg-blue-600 rounded-full transition-colors hover:bg-blue-700",+ sidebarCollapsed ? "py-0 h-[45px] min-w-[unset]" : "py-3 w-full h-fit"+ )}+ onClick={() => {+ setUpgradeModalOpen(true);+ toggleMobileNav?.();+ }}+ >+ <ProRive+ className={clsx(+ sidebarCollapsed+ ? "bottom-[4px] absolute h-[45px] w-[68px]"+ : "absolute w-[90px] h-[66px] bottom-[-3px] left-[-20px]",+ "scale-[0.8]"+ )}+ />+ {!sidebarCollapsed ? (+ <p className="relative left-8 text-center text-white truncate">+ Upgrade to Pro+ </p>+ ) : null}+ </div>+ );+ }+);diff --git a/apps/web/components/VideoThumbnail.tsx b/apps/web/components/VideoThumbnail.tsxindex cf3291275..3206bd7cf 100644--- a/apps/web/components/VideoThumbnail.tsx+++ b/apps/web/components/VideoThumbnail.tsx@@ -8,6 +8,8 @@ interface VideoThumbnailProps {videoId: string;alt: string;imageClass?: string;+ objectFit?: string;+ containerClass?: string;}function generateRandomGrayScaleColor() {@@ -20,7 +22,14 @@ function generateRandomGrayScaleColor() {}export const VideoThumbnail: React.FC<VideoThumbnailProps> = memo(- ({ userId, videoId, alt, imageClass }) => {+ ({+ userId,+ videoId,+ alt,+ imageClass,+ objectFit = "cover",+ containerClass,+ }) => {const [imageUrls, setImageUrls] = useState({ screen: "" });const [loading, setLoading] = useState(true);const [failed, setFailed] = useState(false);@@ -49,7 +58,10 @@ export const VideoThumbnail: React.FC<VideoThumbnailProps> = memo(return (<div- className={`overflow-hidden relative mx-auto w-full bg-black rounded-t-xl border-b border-gray-3 max-h-[175px] aspect-video`}+ className={clsx(+ `overflow-hidden relative mx-auto w-full bg-black rounded-t-xl border-b border-gray-3 max-h-[175px] aspect-video`,+ containerClass+ )}><div className="flex absolute top-0 left-0 z-10 justify-center items-center w-full h-full">{failed ? (@@ -68,7 +80,7 @@ export const VideoThumbnail: React.FC<VideoThumbnailProps> = memo(src={imageUrls.screen}layout="fill"alt={alt}- objectFit="cover"+ objectFit={objectFit}className={clsx("w-full h-full", imageClass)}onLoad={() => setLoading(false)}onError={() => {diff --git a/apps/web/components/blog/BlogTemplate.tsx b/apps/web/components/blog/BlogTemplate.tsxindex 1d35218df..020ec9b77 100644--- a/apps/web/components/blog/BlogTemplate.tsx+++ b/apps/web/components/blog/BlogTemplate.tsx@@ -125,7 +125,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {<div className="mb-4 text-sm font-medium text-blue-600 fade-in-down">{content.category}</div>- <h1 className="text-4xl md:text-5xl font-bold text-gray-900 mb-6 fade-in-down">+ <h1 className="text-4xl md:text-5xl font-medium text-gray-900 mb-6 fade-in-down">{content.title}</h1><p className="text-xl md:text-2xl mb-8 max-w-3xl mx-auto text-gray-700 fade-in-down animate-delay-1">@@ -153,7 +153,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {{/* Hero TL;DR */}<div className="mb-12 bg-blue-50 p-8 rounded-xl border border-blue-100 shadow-md hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1">- <h2 className="text-2xl font-bold text-gray-900 mb-4 relative inline-block">+ <h2 className="text-2xl font-medium text-gray-900 mb-4 relative inline-block">TL;DR<span className="absolute -bottom-1 left-0 w-16 h-1 bg-blue-500 rounded-full"></span></h2>@@ -173,7 +173,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {{/* Comparison Table */}{content.comparisonTable && (<section className="mb-16">- <h2 className="text-3xl font-bold text-gray-900 mb-8 relative inline-block">+ <h2 className="text-3xl font-medium text-gray-900 mb-8 relative inline-block">{content.comparisonTable.title}<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -217,7 +217,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {{content.methods &&content.methods.map((method, index) => (<section key={index} className="mb-16">- <h2 className="text-3xl font-bold text-gray-900 mb-6 relative inline-block">+ <h2 className="text-3xl font-medium text-gray-900 mb-6 relative inline-block">{method.title}<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -244,7 +244,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {{/* Troubleshooting */}{content.troubleshooting && (<section className="mb-16">- <h2 className="text-3xl font-bold text-gray-900 mb-8 relative inline-block">+ <h2 className="text-3xl font-medium text-gray-900 mb-8 relative inline-block">{content.troubleshooting.title}<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -268,7 +268,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {{/* Pro Tips */}{content.proTips && (<section className="mb-16">- <h2 className="text-3xl font-bold text-gray-900 mb-8 relative inline-block">+ <h2 className="text-3xl font-medium text-gray-900 mb-8 relative inline-block">{content.proTips.title}<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -292,7 +292,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {{/* Video Demo */}{content.videoDemo && (<section className="mb-16">- <h2 className="text-3xl font-bold text-gray-900 mb-6 relative inline-block">+ <h2 className="text-3xl font-medium text-gray-900 mb-6 relative inline-block">{content.videoDemo.title}<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -311,7 +311,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {{/* FAQs */}{content.faqs && (<section className="mb-16">- <h2 className="text-3xl font-bold text-gray-900 mb-8 relative inline-block">+ <h2 className="text-3xl font-medium text-gray-900 mb-8 relative inline-block">Frequently Asked Questions<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -335,7 +335,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {{/* Testimonial */}{content.testimonial && (<section className="mb-16">- <h2 className="text-3xl font-bold text-gray-900 mb-8 relative inline-block">+ <h2 className="text-3xl font-medium text-gray-900 mb-8 relative inline-block">What Users Are Saying<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -388,7 +388,7 @@ export const BlogTemplate = ({ content }: { content: BlogPost }) => {/></div><div className="relative z-10">- <h2 className="text-3xl font-bold mb-4 text-white">+ <h2 className="text-3xl font-medium mb-4 text-white">{content.cta.title}</h2><p className="text-xl mb-8 text-white/90">diff --git a/apps/web/components/forms/NewOrganization.tsx b/apps/web/components/forms/NewOrganization.tsxindex c3e0e52e6..94a59022d 100644--- a/apps/web/components/forms/NewOrganization.tsx+++ b/apps/web/components/forms/NewOrganization.tsx@@ -47,16 +47,16 @@ export const NewOrganization: React.FC<NewOrganizationProps> = (props) => {try {setIsUploading(true);props.setCreateLoading?.(true);-+// Create FormData to send both the organization name and icon fileconst formData = new FormData();- formData.append('name', values.name);-+ formData.append("name", values.name);+// Add the icon file if one was selectedif (selectedFile) {- formData.append('icon', selectedFile);+ formData.append("icon", selectedFile);}-+await createOrganization(formData);props.onOrganizationCreated();} catch (error) {@@ -74,9 +74,9 @@ export const NewOrganization: React.FC<NewOrganizationProps> = (props) => {name="name"render={({ field }) => (<FormControl>- <Input- placeholder="Your organization name"- {...field}+ <Input+ placeholder="Your organization name"+ {...field}onChange={(e) => {field.onChange(e);props.onNameChange?.(e.target.value);@@ -87,7 +87,7 @@ export const NewOrganization: React.FC<NewOrganizationProps> = (props) => {/><div className="space-y-1">- <Label htmlFor="icon">Organization Icon (Optional)</Label>+ <Label htmlFor="icon">Organization Icon</Label><CardDescription className="w-full max-w-[400px]">Upload a custom logo or icon for your organization.</CardDescription>@@ -97,6 +97,7 @@ export const NewOrganization: React.FC<NewOrganizationProps> = (props) => {<FileInputid="icon"name="icon"+ notDraggingClassName="hover:bg-gray-3"onChange={setSelectedFile}disabled={isUploading}isLoading={isUploading}diff --git a/apps/web/components/pages/AboutPage.tsx b/apps/web/components/pages/AboutPage.tsxindex 45b732d22..8137de34b 100644--- a/apps/web/components/pages/AboutPage.tsx+++ b/apps/web/components/pages/AboutPage.tsx@@ -24,7 +24,7 @@ export const AboutPage = () => {<div className="mt-[120px]"><div className="relative z-10 px-5 pt-24 pb-36 w-full"><div className="mx-auto text-center wrapper wrapper-sm">- <h1 className="fade-in-down text-[2rem] font-bold leading-[2.5rem] md:text-[3.75rem] md:leading-[4rem] relative z-10 text-black mb-4">+ <h1 className="fade-in-down text-[2rem] leading-[2.5rem] md:text-[3.75rem] md:leading-[4rem] relative z-10 text-black mb-4">About Cap</h1><p className="mx-auto mb-8 max-w-3xl text-md sm:text-xl text-zinc-500 fade-in-down animate-delay-1">@@ -60,10 +60,10 @@ export const AboutPage = () => {</div>{/* Main Content */}- <div className="wrapper pb-24">- <div className="max-w-4xl mx-auto">+ <div className="pb-24 wrapper">+ <div className="mx-auto max-w-4xl"><div className="mb-48">- <p className="text-3xl text-center font-light">+ <p className="text-3xl font-light text-center">Your recordings shouldn't be locked away in systems you don'tcontrol. At Cap, we're building a screen recording tool thatputs you first, respects your privacy, and gives you full@@ -73,12 +73,12 @@ export const AboutPage = () => {<div className="mb-12" id="video"><div className="text-center max-w-[800px] mx-auto mb-10">- <h2 className="text-3xl font-bold text-gray-800 mb-6 relative inline-block">+ <h2 className="inline-block relative mb-6 text-3xl font-medium text-gray-800">See Cap In Action- <span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span>+ <span className="absolute -bottom-2 left-1/2 w-20 h-1 bg-blue-500 rounded-full transform -translate-x-1/2"></span></h2></div>- <div className="max-w-3xl mx-auto">+ <div className="mx-auto max-w-3xl"><div className="rounded-xl overflow-hidden shadow-[0_0_20px_rgba(0,0,0,0.08)]"><MuxPlayerplaybackId="A6oZoUWVZjOIVZB6XnBMLagYnXE6xhDhp8Hcyky018hk"@@ -92,10 +92,10 @@ export const AboutPage = () => {<div className="space-y-8"><div className="p-8 bg-gray-1 rounded-2xl border border-gray-4 backdrop-blur-sm shadow-[0_0_15px_rgba(0,0,0,0.03)] hover:shadow-[0_5px_30px_rgba(0,0,0,0.05)] transition-all duration-300 transform hover:-translate-y-[2px]">- <h2 className="text-2xl font-semibold mb-4 text-gray-800">+ <h2 className="mb-4 text-2xl font-semibold text-gray-800">Why Cap?</h2>- <p className="text-gray-600 leading-relaxed">+ <p className="leading-relaxed text-gray-600">Cap started with a simple idea: great ideas should be easy toshare. Whether you're explaining a concept, showing howsomething works, or working with others, the tools you use@@ -103,15 +103,15 @@ export const AboutPage = () => {</p></div>- <div className="grid grid-cols-1 md:grid-cols-2 gap-8">+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2"><div className="p-8 bg-gray-1 rounded-2xl border border-gray-4 backdrop-blur-sm shadow-[0_0_15px_rgba(0,0,0,0.03)] hover:shadow-[0_5px_30px_rgba(0,0,0,0.05)] transition-all duration-300 transform hover:-translate-y-[2px]">- <div className="bg-blue-50 w-12 h-12 flex items-center justify-center rounded-full mb-4">- <span className="text-blue-500 text-xl font-bold">1</span>+ <div className="flex justify-center items-center mb-4 w-12 h-12 bg-blue-50 rounded-full">+ <span className="text-xl font-medium text-blue-500">1</span></div>- <h2 className="text-2xl font-semibold mb-4 text-gray-800">+ <h2 className="mb-4 text-2xl font-semibold text-gray-800">The Problem</h2>- <p className="text-gray-600 leading-relaxed">+ <p className="leading-relaxed text-gray-600">After years of using other screen recording tools, we foundthey often don't respect your privacy, limit what you cando, and lock your content in their systems. Most of these@@ -121,13 +121,13 @@ export const AboutPage = () => {</div><div className="p-8 bg-gray-1 rounded-2xl border border-gray-4 backdrop-blur-sm shadow-[0_0_15px_rgba(0,0,0,0.03)] hover:shadow-[0_5px_30px_rgba(0,0,0,0.05)] transition-all duration-300 transform hover:-translate-y-[2px]">- <div className="bg-blue-50 w-12 h-12 flex items-center justify-center rounded-full mb-4">- <span className="text-blue-500 text-xl font-bold">2</span>+ <div className="flex justify-center items-center mb-4 w-12 h-12 bg-blue-50 rounded-full">+ <span className="text-xl font-medium text-blue-500">2</span></div>- <h2 className="text-2xl font-semibold mb-4 text-gray-800">+ <h2 className="mb-4 text-2xl font-semibold text-gray-800">Our Solution</h2>- <p className="text-gray-600 leading-relaxed">+ <p className="leading-relaxed text-gray-600">So we built Cap—a simple, complete screen recording toolthat anyone can use. Inspired by tools we love and built onprinciples we believe in, our goal is to help you share@@ -140,15 +140,15 @@ export const AboutPage = () => {</div><div className="p-8 bg-gray-1 rounded-2xl border border-gray-4 backdrop-blur-sm shadow-[0_0_15px_rgba(0,0,0,0.03)] hover:shadow-[0_5px_30px_rgba(0,0,0,0.05)] transition-all duration-300 transform hover:-translate-y-[2px]">- <h2 className="text-2xl font-semibold mb-4 text-gray-800">+ <h2 className="mb-4 text-2xl font-semibold text-gray-800">Two Ways to Record</h2>- <p className="text-gray-600 leading-relaxed mb-6">+ <p className="mb-6 leading-relaxed text-gray-600">Cap gives you two simple ways to record:</p>- <div className="grid grid-cols-1 md:grid-cols-2 gap-6">- <div className="p-6 bg-blue-50/50 rounded-xl border border-blue-100/20">- <h3 className="text-xl font-semibold text-blue-700 mb-3">+ <div className="grid grid-cols-1 gap-6 md:grid-cols-2">+ <div className="p-6 rounded-xl border bg-blue-50/50 border-blue-100/20">+ <h3 className="mb-3 text-xl font-semibold text-blue-700">Instant Mode</h3><p className="text-gray-600">@@ -156,8 +156,8 @@ export const AboutPage = () => {waiting, just record and share in seconds.</p></div>- <div className="p-6 bg-blue-50/50 rounded-xl border border-blue-100/20">- <h3 className="text-xl font-semibold text-blue-700 mb-3">+ <div className="p-6 rounded-xl border bg-blue-50/50 border-blue-100/20">+ <h3 className="mb-3 text-xl font-semibold text-blue-700">Studio Mode</h3><p className="text-gray-600">@@ -169,10 +169,10 @@ export const AboutPage = () => {</div><div className="p-8 bg-gray-1 rounded-2xl border border-gray-4 backdrop-blur-sm shadow-[0_0_15px_rgba(0,0,0,0.03)] hover:shadow-[0_5px_30px_rgba(0,0,0,0.05)] transition-all duration-300 transform hover:-translate-y-[2px]">- <h2 className="text-2xl font-semibold mb-4 text-gray-800">+ <h2 className="mb-4 text-2xl font-semibold text-gray-800">Privacy First</h2>- <p className="text-gray-600 leading-relaxed">+ <p className="leading-relaxed text-gray-600">Unlike other tools, Cap is built with your privacy as a toppriority. We don't trap your data or force you to use only oursystems. You can connect your own storage, keeping complete@@ -181,10 +181,10 @@ export const AboutPage = () => {</div><div className="p-8 bg-gray-1 rounded-2xl border border-gray-4 backdrop-blur-sm shadow-[0_0_15px_rgba(0,0,0,0.03)] hover:shadow-[0_5px_30px_rgba(0,0,0,0.05)]transition-all duration-300 transform hover:-translate-y-[2px]">- <h2 className="text-2xl font-semibold mb-4 text-gray-800">+ <h2 className="mb-4 text-2xl font-semibold text-gray-800">Open to Everyone</h2>- <p className="text-gray-600 leading-relaxed">+ <p className="leading-relaxed text-gray-600">We believe in being open and transparent. Cap's code isavailable for anyone to see, use, and improve. This means yourdata will always be accessible, and our tool will keep getting@@ -193,15 +193,15 @@ export const AboutPage = () => {</div><div className="p-8 bg-gray-1 rounded-2xl border border-gray-4 backdrop-blur-sm shadow-[0_0_15px_rgba(0,0,0,0.03)] hover:shadow-[0_5px_30px_rgba(0,0,0,0.05)] transition-all duration-300 transform hover:-translate-y-[2px]">- <h2 className="text-2xl font-semibold mb-4 text-gray-800">+ <h2 className="mb-4 text-2xl font-semibold text-gray-800">Join Us</h2>- <p className="text-gray-600 leading-relaxed">+ <p className="leading-relaxed text-gray-600">We're working to make Cap the best screen recording tool foreveryone. Whether you're creating content alone, working witha startup, or part of a large team, Cap works for you.</p>- <p className="text-gray-600 leading-relaxed mt-3">+ <p className="mt-3 leading-relaxed text-gray-600">Together, we're making it easier for everyone to share ideasand connect—one recording at a time.</p>diff --git a/apps/web/components/pages/HomePage/Faq.tsx b/apps/web/components/pages/HomePage/Faq.tsxnew file mode 100644index 000000000..3889758c0--- /dev/null+++ b/apps/web/components/pages/HomePage/Faq.tsx@@ -0,0 +1,97 @@+import { faMinus, faPlus } from '@fortawesome/free-solid-svg-icons';+import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';+import clsx from 'clsx';+import { AnimatePresence, motion } from 'framer-motion';+import { useState } from 'react';++interface FaqItem {+ question: string;+ answer: string;+}++const faqItems: FaqItem[] = [+ {+ question: 'Who is Cap for?',+ answer: 'Cap is designed for individuals, teams, and businesses who need an easy-to-use screen recording and sharing tool.'+ },+ {+ question: 'Which platforms does Cap support?',+ answer: 'Cap supports Windows, macOS, and Linux. Our web application works on all major browsers including Chrome, Firefox, Safari, and Edge.'+ },+ {+ question: 'How much does it cost?',+ answer: 'Cap offers a free version for personal use. You can upgrade to Cap Pro for just $9/month to unlock unlimited cloud storage, unlimited recording length, custom domain support, advanced team features, password-protected videos, analytics, and priority support. We also offer commercial licenses and self-hosted options for businesses.'+ },+ {+ question: 'What makes Cap different from Loom?',+ answer: 'Cap focuses on simplicity, performance, and privacy. Unlike Loom, we offer a self-hosted option and more affordable pricing for teams while maintaining all the essential features you need.'+ },+ {+ question: 'Can I self-host Cap?',+ answer: 'Yes! Cap offers self-hosted options for businesses that require complete control over their data and infrastructure.'+ },+ {+ question: 'Is there a commercial license available?',+ answer: 'Yes, we offer commercial licenses for businesses with custom pricing based on team size and needs. Contact our sales team for more information.'+ },+ {+ question: 'What happens after the beta period ends?',+ answer: 'After the beta period, all beta users will be offered a special discount to continue using Cap Pro. Your existing recordings and data will remain accessible.'+ }+];++const Faq = () => {+ const [openIndex, setOpenIndex] = useState<number | null>(null); // Default to the 'How much does it cost?' question++ const toggleFaq = (index: number) => {+ setOpenIndex(openIndex === index ? null : index);+ };++ return (+ <div className="mx-auto max-w-[1000px] px-5 my-[150px] md:my-[200px] lg:my-[250px]">+ <h2 className="mb-10 text-4xl text-gray-12">FAQ</h2>+ <div className="space-y-4">+ {faqItems.map((item, index) => (+ <div+ key={index}+ className={clsx("rounded-xl overflow-hidde border border-gray-5",+ openIndex === index+ ? 'bg-blue-500 text-white'+ : 'bg-gray-1 hover:bg-gray-3 text-gray-12',+ "transition-colors duration-200")}+ >+ <button+ className="flex justify-between items-center px-6 py-4 w-full text-left"+ onClick={() => toggleFaq(index)}+ >+ <p className={clsx("text-lg font-medium", openIndex === index ? "text-gray-1" : "text-gray-12")}>{item.question}</p>+ {openIndex === index ? (+ <FontAwesomeIcon icon={faMinus} className="flex-shrink-0 w-5 h-5 text-gray-1" />+ ) : (+ <FontAwesomeIcon icon={faPlus} className="flex-shrink-0 w-5 h-5" />+ )}+ </button>++ <AnimatePresence>+ {openIndex === index && (+ <motion.div+ initial={{ height: 0, opacity: 0 }}+ animate={{ height: 'auto', opacity: 1 }}+ exit={{ height: 0, opacity: 0 }}+ transition={{ duration: 0.3 }}+ className="overflow-hidden"+ >+ <p className="px-6 pb-4 text-gray-3">+ {item.answer}+ </p>+ </motion.div>+ )}+ </AnimatePresence>+ </div>+ ))}+ </div>+ </div>+ );+};++export default Faq;\ No newline at end of filediff --git a/apps/web/components/pages/HomePage/Features.tsx b/apps/web/components/pages/HomePage/Features.tsxnew file mode 100644index 000000000..2aa306b26--- /dev/null+++ b/apps/web/components/pages/HomePage/Features.tsx@@ -0,0 +1,215 @@+import { Fit, Layout, useRive } from "@rive-app/react-canvas";+import { memo } from "react";+++type Feature = {+ title: string;+ description: string;+ rive: JSX.Element;+ relative?: {+ top?: number;+ bottom?: number;+ left?: number;+ right?: number;+ }+};+++const VideoCaptureArt = memo(() => {+ const {RiveComponent: VideoCaptureRive} = useRive({+ src: "/rive/bento.riv",+ artboard: "videocapture",+ animations: ["in"],+ autoplay: true,+ layout: new Layout({+ fit: Fit.Contain+ }),+ });+ return (+ <VideoCaptureRive className="w-full max-w-[420px] mx-auto h-[244px]" />+ )+})++const StorageOptionsArt = memo(() => {+ const {RiveComponent: StorageOptionsRive} = useRive({+ src: "/rive/bento.riv",+ artboard: "storageoptions",+ animations: ["in"],+ autoplay: true,+ layout: new Layout({+ fit: Fit.Contain+ }),+ });+ return (+ <StorageOptionsRive className="w-full max-w-[350px] mx-auto h-[275px]" />+ )+})++const CollabArt = memo(() => {+ const {RiveComponent: CollabRive} = useRive({+ src: "/rive/bento.riv",+ artboard: "collab",+ animations: ["in"],+ autoplay: true,+ layout: new Layout({+ fit: Fit.Contain+ }),+ });+ return (+ <CollabRive className="w-full max-w-[500px] mx-auto h-[280px]" />+ )+})++const PrivacyFirstArt = memo(() => {+ const {RiveComponent: PrivacyFirstRive} = useRive({+ src: "/rive/bento.riv",+ artboard: "privacyfirst",+ animations: ["in"],+ autoplay: true,+ layout: new Layout({+ fit: Fit.Contain+ }),+ });+ return (+ <PrivacyFirstRive className="w-full max-w-[560px] mx-auto h-[250px]" />+ )+})++const PlatformSupportArt = memo(() => {+ const {RiveComponent: PlatformSupportRive} = useRive({+ src: "/rive/bento.riv",+ artboard: "platformsupport",+ animations: ["in"],+ autoplay: true,+ layout: new Layout({+ fit: Fit.Contain+ }),+ });+ return (+ <PlatformSupportRive className="w-full max-w-[600px] mx-auto h-[280px]" />+ )+})++const EveryoneArt = memo(() => {+ const {RiveComponent: EveryoneRive} = useRive({+ src: "/rive/bento.riv",+ artboard: "everyone",+ animations: ["in"],+ autoplay: true,+ layout: new Layout({+ fit: Fit.Contain+ }),+ });+ return (+ <EveryoneRive className="w-full max-w-[500px] mx-auto h-[250px]" />+ )+})++const features: Feature[] = [+ {+ title: "Flexible Storage Options",+ rive: <StorageOptionsArt />,+ relative: {+ top: 25,+ },+ description:+ "Choose how and where you store your recordings. Cap offers both local and cloud storage options to suit your needs. Save space on your device or keep your entire content library accessible from anywhere – ideal for freelancers and growing teams.",+ },+ {+ title: "Privacy-first",+ rive: <PrivacyFirstArt />,+ description:+ "Own your content with Cap’s privacy-focused approach. Keep your sensitive information secure and maintain complete control over who can access your recordings – perfect for confidential client communications and internal team sharing.",+ },+ {+ title: "Seamless Team Collaboration",+ rive: <CollabArt />,+ description:+ "Share knowledge effortlessly with your team or clients. Cap’s intuitive sharing features make it easy to organize content, provide access to specific people, and track engagement. Perfect for small businesses and growing teams who need simple yet powerful collaboration tools.",+ },+ {+ title: "Multi-Platform Support",+ rive: <PlatformSupportArt />,+ description:+ "Cap works seamlessly across macOS and Windows, giving you the flexibility to create content on any device. Capture, share, and collaborate regardless of which platform you or your team prefers, ensuring smooth workflows and consistent experience everywhere.",+ },+ {+ title: "High-Quality Video Capture",+ rive: <VideoCaptureArt />,+ description:+ "Deliver crystal-clear recordings that showcase your professionalism. Cap ensures exceptional quality for client presentations, tutorials, and team communications – making your content stand out whether you’re a solo creator or a small business owner.",+ },+ {+ title: "Built for everyone",+ rive: <EveryoneArt />,+ description:+ "For creators, teams, and educators alike, this screen recorder is designed to adapt to different needs and workflows—whether you’re capturing lessons, product demos, or quick updates. It’s a simple, customizable tool that makes screen recording accessible to everyone.",+ },+];++const Features = () => {+ return (+ <div className="text-center max-w-[1440px] mx-auto mb-8 px-5">+ <h2 className="mb-3">Crafted for simplicity</h2>+ <p className="text-lg leading-[1.75rem] w-full max-w-[800px] mx-auto">+ We believe great tools should make your life easier, not more+ complicated. Cap is crafted to streamline your workflow, so you can+ record, edit, and share without jumping through hoops.+ </p>+ <div className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3 mt-[52px]">+ {features.map((feature) => (+ <FeatureCard+ key={feature.title}+ title={feature.title}+ description={feature.description}+ rive={feature.rive}+ imageAlt={feature.title}+ relative={feature.relative}+ />+ ))}+ </div>+ </div>+ );+};+++const FeatureCard = ({+ title,+ description,+ rive,+ relative,+}: {+ title: string;+ description: string;+ rive?: JSX.Element;+ img?: string;+ imageAlt: string;+ imageClass?: string;+ relative?: {+ top?: number;+ bottom?: number;+ left?: number;+ right?: number;+ }+}) => {+ return (+ <div className="flex flex-col gap-10 justify-evenly p-6 text-left rounded-xl border md:p-8 bg-gray-1 border-gray-5">+ <div+ style={{+ top: relative?.top,+ bottom: relative?.bottom,+ left: relative?.left,+ right: relative?.right,+ }}+ className="relative flex-1 flex-grow justify-center content-center">+ {rive}+ </div>+ <div className="flex flex-col gap-2 justify-end h-fit">+ <h3 className="text-lg font-medium">{title}</h3>+ <p className="text-base text-gray-10">{description}</p>+ </div>+ </div>+ );+};++export default Features;diff --git a/apps/web/components/pages/HomePage/Header.tsx b/apps/web/components/pages/HomePage/Header.tsxnew file mode 100644index 000000000..2c5b76efc--- /dev/null+++ b/apps/web/components/pages/HomePage/Header.tsx@@ -0,0 +1,242 @@+// million-ignore+"use client";++import { LogoMarquee } from "@/components/ui/LogoMarquee";+import {+ getDownloadButtonText,+ getDownloadUrl,+ getPlatformIcon,+ PlatformIcons,+} from "@/utils/platform";+import { Button } from "@cap/ui";+import { faAngleRight, faPlay } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { AnimatePresence, motion } from "framer-motion";+import { useDetectPlatform } from "hooks/useDetectPlatform";+import Image from "next/image";+import Link from "next/link";+import { useState } from "react";+import VideoModal from "./VideoModal";++interface HeaderProps {+ serverHomepageCopyVariant?: string;+}+++ // Animation variants+ const fadeIn = {+ hidden: { opacity: 0, y: 20 },+ visible: (custom: number) => ({+ opacity: 1,+ y: 0,+ transition: {+ delay: custom * 0.1,+ duration: 0.5,+ ease: "easeOut"+ }+ })+ };++ const fadeInFromRight = {+ hidden: { opacity: 0, x: 50 },+ visible: {+ opacity: 1,+ x: 0,+ transition: {+ delay: 0.5,+ duration: 0.6,+ ease: "easeOut"+ }+ }+ };++const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {+ const [videoToggled, setVideoToggled] = useState(false);+ const { platform, isIntel } = useDetectPlatform();+ const loading = platform === null;++ return (+ <div className="mt-[60px] min-h-screen w-full max-w-[1920px] overflow-x-hidden md:overflow-visible mx-auto md:mt-[15vh]">+ <div className="flex flex-col justify-center lg:justify-start xl:flex-row relative z-10 px-5 w-full mb-[200px]">+ <div className="w-full max-w-[500px] 2xl:mt-12 mx-auto xl:ml-[100px] 2xl:ml-[150px]">+ <motion.div+ initial="hidden"+ animate="visible"+ custom={0}+ variants={fadeIn}+ >+ <Link+ href="https://x.com/richiemcilroy/status/1895526857807733018"+ target="_blank"+ className="flex gap-2 items-center px-3 py-2 mb-8 bg-white rounded-full border group border-gray-4 w-fit"+ >+ <p className="font-mono text-xs text-gray-12">+ Auto zoom has been released+ </p>+ <FontAwesomeIcon+ fontWeight="light"+ className="w-1.5 text-gray-12 group-hover:translate-x-0.5 transition-transform"+ icon={faAngleRight}+ />+ </Link>+ </motion.div>++ <div className="flex flex-col text-left w-full max-w-[650px]">+ <motion.h1+ className="text-[2.8rem] font-medium leading-[3rem] md:text-[3.75rem] md:leading-[4rem] relative z-10 text-black mb-4"+ initial="hidden"+ animate="visible"+ custom={1}+ variants={fadeIn}+ >+ {serverHomepageCopyVariant === "1" ? (+ <>Beautiful screen recordings, owned by you.</>+ ) : serverHomepageCopyVariant === "2" ? (+ <>The open source Loom alternative.</>+ ) : serverHomepageCopyVariant === "3" ? (+ <>The open source screen recording suite.</>+ ) : (+ <>Beautiful screen recordings, owned by you.</>+ )}+ </motion.h1>++ <motion.p+ className="mx-auto mb-8 max-w-3xl text-lg text-zinc-500"+ initial="hidden"+ animate="visible"+ custom={2}+ variants={fadeIn}+ >+ {serverHomepageCopyVariant === "1" ? (+ <>+ Cap is the open source alternative to Loom. Lightweight,+ powerful, and cross-platform. Record and share securely in+ seconds with custom S3 bucket support.+ </>+ ) : serverHomepageCopyVariant === "2" ? (+ <>+ Cap is the open source alternative to Loom. Lightweight,+ powerful, and cross-platform. Record and share securely in+ seconds. Connect your own storage, domain & more.+ </>+ ) : serverHomepageCopyVariant === "3" ? (+ <>+ Cap is open source, lightweight, powerful & cross-platform.+ With Instant Mode for shareable links and Studio Mode for+ high-quality recordings with local editing.+ </>+ ) : (+ <>+ Cap is the open source alternative to Loom. Lightweight,+ powerful, and cross-platform. Record and share securely in+ seconds with custom S3 bucket support.+ </>+ )}+ </motion.p>+ </div>++ <motion.div+ className="flex flex-col items-center mb-5 space-y-2 sm:flex-row sm:space-y-0 sm:space-x-4"+ initial="hidden"+ animate="visible"+ custom={3}+ variants={fadeIn}+ >+ <Button+ variant="white"+ href={+ platform === "windows"+ ? "/download"+ : getDownloadUrl(platform, isIntel)+ }+ size="lg"+ className="flex justify-center items-center w-full font-medium sm:w-auto"+ >+ {!loading && getPlatformIcon(platform)}+ {getDownloadButtonText(platform, loading, isIntel)}+ </Button>+ <Button+ variant="primary"+ href="/pricing"+ size="lg"+ className="relative z-[20] w-full font-medium sm:w-auto"+ >+ Buy Now+ </Button>+ </motion.div>++ <motion.p+ className="text-sm text-gray-10"+ initial="hidden"+ animate="visible"+ custom={4}+ variants={fadeIn}+ >+ Free version available. No credit card required.+ </motion.p>++ <motion.div+ className="mt-6 mb-10"+ initial="hidden"+ animate="visible"+ custom={5}+ variants={fadeIn}+ >+ {/* Platform icons */}+ <PlatformIcons />++ {/* See other options button */}+ <Link+ href="/download"+ className="mt-2 text-sm underline text-gray-10 hover:text-gray-12"+ >+ See other options+ </Link>+ </motion.div>++ {/* Logo Marquee */}+ <motion.div+ className="mt-14"+ initial="hidden"+ animate="visible"+ custom={6}+ variants={fadeIn}+ >+ <LogoMarquee />+ </motion.div>+ </div>++ <motion.div+ className="xl:absolute drop-shadow-2xl -top-[15%] lg:-right-[400px] 2xl:-right-[300px] w-full xl:max-w-[1000px] 2xl:max-w-[1200px]"+ initial="hidden"+ animate="visible"+ variants={fadeInFromRight}+ >+ {/* Play Button*/}+ <motion.div+ whileTap={{ scale: 0.95 }}+ whileHover={{ scale: 1.05 }}+ onClick={() => setVideoToggled(true)}+ className="size-[70px] md:size-[100px] inset-x-0 mx-auto top-[35vw] xs:top-[180px] sm:top-[35vw] xl:top-[350px] 2xl:top-[400px] xl:left-[-50px] relative cursor-pointer z-10+ shadow-[0px_60px_40px_3px_rgba(0,0,0,0.4)] flex items-center justify-center rounded-full bg-blue-500"+ >+ <FontAwesomeIcon icon={faPlay} className="text-white size-4 md:size-6" />+ </motion.div>+ <Image+ src="/illustrations/app.webp"+ width={1000}+ height={1000}+ quality={100}+ alt="App"+ className="object-cover relative inset-0 rounded-xl opacity-70 size-full"+ />+ </motion.div>+ </div>+ <AnimatePresence>+ {videoToggled && <VideoModal setVideoToggled={setVideoToggled} />}+ </AnimatePresence>+ </div>+ );+};++export default Header;diff --git a/apps/web/components/pages/HomePage/Pricing/CommercialArt.tsx b/apps/web/components/pages/HomePage/Pricing/CommercialArt.tsxnew file mode 100644index 000000000..124db436c--- /dev/null+++ b/apps/web/components/pages/HomePage/Pricing/CommercialArt.tsx@@ -0,0 +1,37 @@+import { Fit, Layout, useRive } from "@rive-app/react-canvas";+import { forwardRef, memo, useImperativeHandle } from "react";++export interface CommercialArtRef {+ playHoverAnimation: () => void;+ playDefaultAnimation: () => void;+}++export const CommercialArt = memo(forwardRef<CommercialArtRef>((_, ref) => {+ const { rive, RiveComponent: CommercialRive } = useRive({+ src: "/rive/pricing.riv",+ artboard: "commercial",+ animations: "idle",+ autoplay: false,+ layout: new Layout({+ fit: Fit.Cover,+ }),+ });++ useImperativeHandle(ref, () => ({+ playHoverAnimation: () => {+ if (rive) {+ rive.stop();+ rive.play("cards");+ }+ },+ playDefaultAnimation: () => {+ if (rive) {+ rive.stop();+ rive.play("card-stack");+ }+ }+ }));++ return <CommercialRive className="w-full max-w-[200px] mx-auto h-[175px]" />;+}));+diff --git a/apps/web/components/pages/HomePage/Pricing/CommercialCard.tsx b/apps/web/components/pages/HomePage/Pricing/CommercialCard.tsxnew file mode 100644index 000000000..8799efe0d--- /dev/null+++ b/apps/web/components/pages/HomePage/Pricing/CommercialCard.tsx@@ -0,0 +1,188 @@+import { Button, Switch } from "@cap/ui";+import {+ faCheck,+ faMinus,+ faPlus,+} from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import NumberFlow from "@number-flow/react";+import clsx from "clsx";+import { useRef, useState } from "react";+import { toast } from "sonner";+import { CommercialArt, CommercialArtRef } from "./CommercialArt";++export const CommercialCard = () => {+ const [licenses, setLicenses] = useState(1);+ const [isYearly, setIsYearly] = useState(false);+ const [commercialLoading, setCommercialLoading] = useState(false);+ const commercialArtRef = useRef<CommercialArtRef>(null);++ const COMMERCIAL_LICENSE_YEARLY_PRICE = 29;+ const COMMERCIAL_LICENSE_LIFETIME_PRICE = 58;++ const currentPrice = isYearly+ ? licenses * COMMERCIAL_LICENSE_YEARLY_PRICE+ : licenses * COMMERCIAL_LICENSE_LIFETIME_PRICE;+ const billingCycleText = isYearly ? "year" : "lifetime";++ const incrementLicenses = () => setLicenses((prev) => prev + 1);+ const decrementLicenses = () =>+ setLicenses((prev) => (prev > 1 ? prev - 1 : 1));++ const openCommercialCheckout = async () => {+ setCommercialLoading(true);+ try {+ const response = await fetch(`/api/commercial/checkout`, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({+ type: isYearly ? "yearly" : "lifetime",+ quantity: licenses,+ }),+ });++ const data = await response.json();++ if (response.status === 200) {+ window.location.href = data.url;+ } else {+ throw new Error(data.message);+ }+ } catch (error) {+ console.error("Error during commercial checkout:", error);+ toast.error("Failed to start checkout process");+ } finally {+ setCommercialLoading(false);+ }+ };++ return (+ <div+ onMouseEnter={() => commercialArtRef.current?.playHoverAnimation()}+ onMouseLeave={() => commercialArtRef.current?.playDefaultAnimation()}+ className="flex flex-col flex-1 justify-between p-8 rounded-2xl border shadow-lg bg-gray-1 border-gray-5"+ >+ <div>+ <div className="md:h-[300px]">+ <CommercialArt ref={commercialArtRef} />+ <h3 className="mb-2 text-2xl text-center text-gray-12">+ App + Commercial License+ </h3>+ <p className="mb-6 text-base text-center text-gray-10 w-full max-w-[285px] mx-auto">+ For professional use of the desktop app, without cloud features.+ </p>+ </div>++ <div className="mb-6 text-center">+ <span className="text-5xl tabular-nums text-gray-12">+ $<NumberFlow value={currentPrice} />+ </span>+ <span className="text-lg tabular-nums text-gray-10">+ {" "}+ / {billingCycleText}+ </span>+ {isYearly ? (+ <p className="text-lg tabular-nums text-gray-10">+ or, $+ <NumberFlow value={licenses * COMMERCIAL_LICENSE_LIFETIME_PRICE} />{" "}+ one-time payment+ </p>+ ) : (+ <p className="text-lg tabular-nums text-gray-10">+ or, $+ <NumberFlow value={licenses * COMMERCIAL_LICENSE_YEARLY_PRICE} />{" "}+ / year+ </p>+ )}+ </div>++ <div className="flex flex-wrap gap-5 justify-center items-center p-5 my-8 w-full rounded-xl border xs:gap-3 xs:p-3 xs:rounded-full xs:justify-between bg-gray-3 border-gray-4">++ <div className="flex gap-3 justify-center items-center">+ <p className="text-base text-gray-12">Licenses:</p>+ <div className="flex items-center">+ <Button+ onClick={decrementLicenses}+ className="px-1.5 py-1.5 bg-gray-12 hover:bg-gray-11 min-w-fit h-fit"+ aria-label="Decrease license count"+ >+ <FontAwesomeIcon icon={faMinus} className="text-gray-1 size-3" />+ </Button>+ <span className="w-8 font-medium tabular-nums text-center text-gray-12">+ <NumberFlow value={licenses} />+ </span>+ <Button+ onClick={incrementLicenses}+ className="px-1.5 py-1.5 bg-gray-12 hover:bg-gray-11 min-w-fit h-fit"+ aria-label="Increase license count"+ >+ <FontAwesomeIcon icon={faPlus} className="text-gray-1 size-3" />+ </Button>+ </div>+ </div>++ <div className="flex justify-center items-center">+ <div className="flex gap-2 items-center">+ <span+ className={clsx(+ "text-md",+ isYearly ? "font-medium text-gray-12" : "text-gray-10"+ )}+ >+ Yearly+ </span>+ <Switch+ checked={!isYearly}+ onCheckedChange={(checked) => setIsYearly(!checked)}+ aria-label="Billing Cycle For Commercial"+ id="billing-cycle-commercial"+ />+ <span+ className={clsx(+ "text-md",+ !isYearly ? "font-medium text-gray-12" : "text-gray-10"+ )}+ >+ Lifetime+ </span>+ </div>+ </div>++ </div>+++ <ul className="mb-8 space-y-3 text-base">+ <li className="flex items-center text-gray-12">+ <FontAwesomeIcon icon={faCheck} className="mr-2 text-gray-12" />+ Commercial use of Cap Recorder + Editor+ </li>+ <li className="flex items-center text-gray-12">+ <FontAwesomeIcon icon={faCheck} className="mr-2 text-gray-12" />+ Community Support+ </li>+ <li className="flex items-center text-gray-12">+ <FontAwesomeIcon icon={faCheck} className="mr-2 text-gray-12" />+ Local-only features+ </li>+ <li className="flex items-center text-gray-12">+ <FontAwesomeIcon icon={faCheck} className="mr-2 text-gray-12" />+ Perpetual license option+ </li>+ </ul>+ </div>++ <Button+ disabled={commercialLoading}+ onClick={openCommercialCheckout}+ variant="primary"+ size="lg"+ className="w-full font-medium"+ aria-label="Purchase Commercial License"+ >+ {commercialLoading ? "Loading..." : "Purchase License"}+ </Button>+ </div>+ );+};diff --git a/apps/web/components/pages/HomePage/Pricing/ProArt.tsx b/apps/web/components/pages/HomePage/Pricing/ProArt.tsxnew file mode 100644index 000000000..1a44d46d0--- /dev/null+++ b/apps/web/components/pages/HomePage/Pricing/ProArt.tsx@@ -0,0 +1,37 @@+import { Fit, Layout, useRive } from "@rive-app/react-canvas";+import { forwardRef, memo, useImperativeHandle } from "react";++export interface ProArtRef {+ playHoverAnimation: () => void;+ playDefaultAnimation: () => void;+}++export const ProArt = memo(forwardRef<ProArtRef>((_, ref) => {+ const { rive, RiveComponent: ProRive } = useRive({+ src: "/rive/pricing.riv",+ artboard: "pro",+ animations: "idle",+ autoplay: false,+ layout: new Layout({+ fit: Fit.Contain,+ }),+ });++ useImperativeHandle(ref, () => ({+ playHoverAnimation: () => {+ if (rive) {+ rive.stop();+ rive.play("items-coming-out");+ }+ },+ playDefaultAnimation: () => {+ if (rive) {+ rive.stop();+ rive.play("items-coming-in");+ }+ }+ }));++ return <ProRive className="w-full max-w-[210px] mx-auto h-[195px] relative bottom-5" />;+}));+diff --git a/apps/web/components/pages/HomePage/Pricing/ProCard.tsx b/apps/web/components/pages/HomePage/Pricing/ProCard.tsxnew file mode 100644index 000000000..8f024e9ea--- /dev/null+++ b/apps/web/components/pages/HomePage/Pricing/ProCard.tsx@@ -0,0 +1,243 @@+import { Button, Switch } from "@cap/ui";+import { getProPlanId } from "@cap/utils";+import {+ faCheck,+ faMinus,+ faPlus,+} from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import NumberFlow from "@number-flow/react";+import clsx from "clsx";+import { useRouter } from "next/navigation";+import { useRef, useState } from "react";+import { toast } from "sonner";+import { ProArt, ProArtRef } from "./ProArt";++export const ProCard = () => {+ const [users, setUsers] = useState(1);+ const [isAnnually, setIsAnnually] = useState(true);+ const [proLoading, setProLoading] = useState(false);+ const proArtRef = useRef<ProArtRef>(null);+ const { push } = useRouter();++ const CAP_PRO_ANNUAL_PRICE_PER_USER = 6;+ const CAP_PRO_MONTHLY_PRICE_PER_USER = 9;++ const currentTotalPricePro =+ users *+ (isAnnually+ ? CAP_PRO_ANNUAL_PRICE_PER_USER+ : CAP_PRO_MONTHLY_PRICE_PER_USER);+ const billingCycleTextPro = isAnnually ? "per user, billed annually" : "per user, billed monthly";++ const incrementUsers = () => setUsers((prev) => prev + 1);+ const decrementUsers = () => setUsers((prev) => (prev > 1 ? prev - 1 : 1));++ const planCheckout = async (planId?: string) => {+ setProLoading(true);++ if (!planId) {+ planId = getProPlanId(isAnnually ? "yearly" : "monthly");+ }++ const response = await fetch(`/api/settings/billing/subscribe`, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ },+ body: JSON.stringify({ priceId: planId, quantity: users }),+ });+ const data = await response.json();++ if (data.auth === false) {+ localStorage.setItem("pendingPriceId", planId);+ localStorage.setItem("pendingQuantity", users.toString());+ push(`/login?next=/pricing`);+ return;+ }++ if (data.subscription === true) {+ toast.success("You are already on the Cap Pro plan");+ }++ if (data.url) {+ window.location.href = data.url;+ }++ setProLoading(false);+ };++ return (+ <div+ onMouseEnter={() => {+ proArtRef.current?.playHoverAnimation();+ }}+ onMouseLeave={() => {+ proArtRef.current?.playDefaultAnimation();+ }}+ className="flex relative flex-col flex-1 justify-between p-8 text-white rounded-2xl shadow-2xl bg-gray-12"+ >+ <div>+ <div className="absolute top-0 left-1/2 transform -translate-x-1/2 -translate-y-1/2">+ <span className="rounded-full font-mono bg-blue-500 px-4 py-1.5 text-xs uppercase text-gray-1">+ Most Popular+ </span>+ </div>+ <div className="md:h-[300px]">+ <ProArt ref={proArtRef} />+ <h3 className="mb-2 text-2xl text-center">+ App + Commercial License +{" "}+ <span className="text-blue-9">Cap Pro</span>+ </h3>+ <p className="mb-6 text-base text-center text-gray-8">+ For professional use + cloud features like shareable links,+ transcriptions, comments, & more. Perfect for teams or sharing with+ clients.+ </p>+ </div>++ <div className="mb-6 text-center">+ <span className="mr-2 text-5xl tabular-nums text-gray-1">+ $<NumberFlow suffix="/mo" value={currentTotalPricePro} />+ </span>+ <span className="text-lg tabular-nums text-gray-8">+ {" "}+ {billingCycleTextPro}+ </span>+ {isAnnually ? (+ <p className="text-lg text-gray-8">+ or,{" "}+ <NumberFlow+ value={9 * users}+ className="text-lg tabular-nums"+ format={{+ notation: "compact",+ style: "currency",+ currency: "USD",+ }}+ suffix="/mo"+ />{" "}+ {users === 1 ? (+ "per user, "+ ) : (+ <>+ for{" "}+ <NumberFlow value={users} className="text-lg tabular-nums" />{" "}+ users,{" "}+ </>+ )}+ billed monthly+ </p>+ ) : (+ <p className="text-lg text-gray-8">+ or,{" "}+ <NumberFlow+ value={6 * users}+ className="text-lg tabular-nums"+ format={{+ notation: "compact",+ style: "currency",+ currency: "USD",+ }}+ suffix="/mo"+ />{" "}+ {users === 1 ? (+ "per user, "+ ) : (+ <>+ for{" "}+ <NumberFlow value={users} className="text-lg tabular-nums" />{" "}+ users,{" "}+ </>+ )}+ billed annually+ </p>+ )}+ </div>++ <div className="flex flex-wrap gap-5 justify-center items-center p-5 my-8 w-full rounded-xl border xs:gap-3 xs:p-3 xs:rounded-full xs:justify-between bg-zinc-700/50 border-zinc-700">++ <div className="flex gap-3 justify-center items-center">+ <p className="text-base text-gray-1">Users:</p>+ <div className="flex items-center">+ <Button+ onClick={decrementUsers}+ className="px-1.5 py-1.5 bg-gray-1 hover:bg-gray-3 min-w-fit h-fit"+ aria-label="Decrease user count"+ >+ <FontAwesomeIcon icon={faMinus} className="text-gray-12 size-3" />+ </Button>+ <span className="w-8 font-medium tabular-nums text-center text-white">+ <NumberFlow value={users} />+ </span>+ <Button+ onClick={incrementUsers}+ className="px-1.5 py-1.5 bg-gray-1 hover:bg-gray-3 min-w-fit h-fit"+ aria-label="Increase user count"+ >+ <FontAwesomeIcon icon={faPlus} className="text-gray-12 size-3" />+ </Button>+ </div>+ </div>++ <div className="flex justify-center items-center">+ <div className="flex gap-2 items-center">+ <span+ className={clsx(+ "text-md",+ !isAnnually ? "text-white" : "text-gray-8"+ )}+ >+ Monthly+ </span>+ <Switch+ checked={isAnnually}+ onCheckedChange={setIsAnnually}+ aria-label="Billing Cycle For Pro"+ id="billing-cycle-cap-pro"+ />+ <span+ className={clsx(+ "text-md",+ isAnnually ? "text-white" : "text-gray-8"+ )}+ >+ Annually+ </span>+ </div>+ </div>++ </div>++ <ul className="mb-8 space-y-3 text-base">+ {[+ "Commercial License included",+ "Unlimited cloud storage & Shareable links",+ "Connect custom S3 storage bucket",+ "Advanced teams features",+ "Unlimited views",+ "Password protected videos",+ "Advanced analytics",+ "Priority support",+ ].map((feature) => (+ <li key={feature} className="flex items-center text-gray-1">+ <FontAwesomeIcon icon={faCheck} className="mr-2 text-gray-1" />+ {feature}+ </li>+ ))}+ </ul>+ </div>++ <Button+ variant="white"+ size="lg"+ onClick={() => planCheckout()}+ disabled={proLoading}+ className="w-full font-medium"+ aria-label="Purchase Cap Pro License"+ >+ {proLoading ? "Loading..." : "Purchase License"}+ </Button>+ </div>+ );+};diff --git a/apps/web/components/pages/HomePage/Pricing/QuantityButton.tsx b/apps/web/components/pages/HomePage/Pricing/QuantityButton.tsxnew file mode 100644index 000000000..3649e0884--- /dev/null+++ b/apps/web/components/pages/HomePage/Pricing/QuantityButton.tsx@@ -0,0 +1,27 @@+import { classNames } from "@cap/utils";+import React from "react";++const BaseQuantityButtonClasses =+ "flex justify-center items-center px-2 w-6 h-6 rounded-md outline-none";++export const QuantityButton = ({+ onClick,+ children,+ className,+ ariaLabel,+}: {+ onClick: () => void;+ children: React.ReactNode;+ className?: string;+ ariaLabel?: string;+}) => {+ return (+ <button+ onClick={onClick}+ className={classNames(BaseQuantityButtonClasses, className)}+ aria-label={ariaLabel}+ >+ {children}+ </button>+ );+};diff --git a/apps/web/components/pages/HomePage/Pricing/index.tsx b/apps/web/components/pages/HomePage/Pricing/index.tsxnew file mode 100644index 000000000..3b9f15a3c--- /dev/null+++ b/apps/web/components/pages/HomePage/Pricing/index.tsx@@ -0,0 +1,32 @@+import { faHeart } from "@fortawesome/free-solid-svg-icons";+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { CommercialCard } from "./CommercialCard";+import { ProCard } from "./ProCard";++export { CommercialCard } from "./CommercialCard";+export { ProCard } from "./ProCard";++const Pricing = () => {+ return (+ <div className="w-full max-w-[1000px] mx-auto my-[150px] md:my-[200px] lg:my-[250px] px-5">+ <div className="px-5 mb-16 text-center">+ <h2 className="mb-3 w-full">Pricing</h2>+ <p className="text-lg max-w-[800px] mx-auto leading-[1.75rem] w-full">+ Cap is currently in public beta, and we're offering special early+ adopter pricing to our first users. This pricing will be locked in for+ the lifetime of your subscription.+ </p>+ <div className="flex justify-center items-center px-5 py-2.5 gap-2 mx-auto mt-6 rounded-full border bg-gray-1 border-gray-5 w-fit">+ <FontAwesomeIcon className="text-red-500 size-3.5" icon={faHeart} />+ <p className="font-medium text-gray-12">Loved by 10k+ users</p>+ </div>+ </div>+ <div className="flex flex-col gap-8 justify-center items-stretch lg:flex-row">+ <CommercialCard />+ <ProCard />+ </div>+ </div>+ );+};++export default Pricing;diff --git a/apps/web/components/pages/HomePage/RecordingModes.tsx b/apps/web/components/pages/HomePage/RecordingModes.tsxnew file mode 100644index 000000000..2d36f46b5--- /dev/null+++ b/apps/web/components/pages/HomePage/RecordingModes.tsx@@ -0,0 +1,96 @@+import { getDownloadButtonText, getDownloadUrl, getPlatformIcon } from "@/utils/platform";+import { Button } from "@cap/ui";+import clsx from "clsx";+import { motion } from "framer-motion";+import { useDetectPlatform } from "hooks/useDetectPlatform";+import { Clapperboard, Zap } from "lucide-react";+import { useState } from "react";++interface Mode {+ name: "Instant" | "Studio";+ icon: JSX.Element;+ description: string;+}++const modes: Mode[] = [+ {+ name: "Instant",+ icon: <Zap fill="yellow" className="size-5 md:size-6" strokeWidth={1.5} />,+ description: "Share your screen instantly with a magic link — no waiting for rendering, just capture and share in seconds."+ },+ {+ name: "Studio",+ icon: <Clapperboard fill="var(--blue-9)" className="size-5 md:size-6" strokeWidth={1.5} />,+ description: "Experience the power of Cap Studio Mode for high-quality recordings with local editing."+ }+];++const RecordingModes = () => {+ const [activeMode, setActiveMode] = useState<Mode | undefined>(modes[0]);+ const { platform, isIntel } = useDetectPlatform();+ const loading = platform === null;++ return (+ <div className="w-full max-w-[1200px] mx-auto px-5">+ <div className="flex flex-col gap-2 justify-center items-center text-center">+ <h1 className="text-4xl font-medium text-12">Instant & Studio modes</h1>+ <p className="text-lg text-gray-10">Upload your videos instantly or experience our editor before sharing</p>+ </div>+ {/*Toggles*/}+ <div className="flex flex-1 gap-5 mt-[52px]">+ {modes.map((mode) => (+ <div onClick={() => setActiveMode(mode)} key={mode.name} className={clsx("flex overflow-hidden relative",+ "flex-1 gap-3 justify-center items-center px-6 py-4 text-lg md:text-2xl font-medium rounded-2xl border transition-colors duration-200" ,+ "cursor-pointer text-gray-12 bg-gray-1 border-gray-5", activeMode !== mode ? "hover:bg-gray-3" : "pointer-events-none")}>+ <div className="flex gap-1.5 z-[2] items-center">+ {mode.icon}+ {mode.name}+ </div>+ {activeMode?.name === mode.name && (+ <motion.div+ initial={{ width: "0%", borderRadius: 0 }}+ animate={{+ width: "100%",+ }}+ exit={{ width: "0%" }}+ onAnimationComplete={() => setActiveMode(prev => prev === modes[0] ? modes[1] : modes[0])}+ transition={{+ duration: 10,+ ease: "linear"+ }}+ className={clsx("absolute z-[1] inset-0 h-full", activeMode.name === modes[0]?.name ? "bg-yellow-100" : "bg-blue-100")} />+ )}+ </div>+ ))}+ </div>+ {/* Video*/}+ <div className="mt-5 w-full rounded-2xl border shadow-xl h-fit bg-gray-1 border-gray-5 shadow-black/5">+ {/*Video Content*/}+ <div className="relative h-full">+ <img src="/illustrations/videopreview.jpg" alt="App" className="object-cover w-full min-h-[90%] rounded-t-xl" />+ {/*Video Description*/}+ <div className="absolute right-0 bottom-0 left-0 p-4 border-t backdrop-blur-md bg-black/70 border-gray-12">+ <p className="mx-auto w-full text-sm text-center md:text-xl text-gray-1">{activeMode?.description}</p>+ </div>+ </div>+ <div className="p-6">+ <Button+ variant="primary"+ href={+ platform === "windows"+ ? "/download"+ : getDownloadUrl(platform, isIntel)+ }+ size="lg"+ className="flex justify-center items-center mx-auto font-medium w-fit"+ >+ {!loading && getPlatformIcon(platform)}+ {getDownloadButtonText(platform, loading, isIntel)}+ </Button>+ </div>+ </div>+ </div>+ )+}++export default RecordingModes;\ No newline at end of filediff --git a/apps/web/components/pages/HomePage/Testimonials.tsx b/apps/web/components/pages/HomePage/Testimonials.tsxnew file mode 100644index 000000000..3b1200360--- /dev/null+++ b/apps/web/components/pages/HomePage/Testimonials.tsx@@ -0,0 +1,146 @@+import { Button } from "@cap/ui";+import { motion } from "framer-motion";+import Image from "next/image";+import { useState } from "react";+import { testimonials } from "../../../data/testimonials";++// Combined type for testimonial data and its position/style configuration+interface TestimonialItem {+ name: string;+ handle: string;+ image: string;+ content: string;+ url: string;+ position: { left?: string; right?: string; top?: string };+ rotation: number;+ zIndex: number;+}++// Card component props - now directly takes the TestimonialItem+interface TestimonialCardProps {+ item: TestimonialItem;+}++// Testimonial card component+const TestimonialCard: React.FC<TestimonialCardProps> = ({ item }) => {+ const [isHovered, setIsHovered] = useState(false);+ // Destructure all properties from item, including position, rotation and zIndex+ const { name, handle, image, content, url, position, rotation, zIndex } = item;++ return (+ <motion.a+ href={url}+ target="_blank"+ rel="noopener noreferrer"+ className="md:absolute bg-white p-6 h-fit md:h-auto rounded-xl transition-shadow duration-200 ease-in-out border border-gray-5 shadow-lg min-w-[300px] md:min-w-min md:w-full md:max-w-[300px] cursor-pointer"+ style={{+ ...position,+ transformOrigin: "center center",+ boxShadow: isHovered ? "0 20px 25px rgba(0, 0, 0, 0.1)" : "0 4px 10px rgba(0, 0, 0, 0.05)",+ }}+ initial={{+ rotate: rotation,+ zIndex: zIndex,+ }}+ whileHover={{+ rotate: 0,+ scale: 1.05,+ y: -5,+ zIndex: 50,+ transition: { duration: 0.3, ease: "easeOut" },+ }}+ onHoverStart={() => setIsHovered(true)}+ onHoverEnd={() => setIsHovered(false)}+ >+ <div className="flex items-center mb-4">+ <div className="overflow-hidden relative mr-3 w-12 h-12 rounded-full border-2 border-gray-100">+ <Image+ src={image}+ key={image}+ alt={`${name}'s profile picture`}+ fill+ className="object-cover"+ />+ </div>+ <div>+ <h4 className="text-lg font-semibold text-gray-12">{name}</h4>+ <p className="text-sm text-gray-10">{handle}</p>+ </div>+ </div>+ <p className="text-sm leading-relaxed text-gray-10">{content}</p>+ </motion.a>+ );+};++// Combined testimonial data with position and style configurations+const testimonialItems: TestimonialItem[] = [+ {+ ...testimonials[2],+ position: { right: '5%', top: '5%' },+ rotation: 8,+ zIndex: 4+ },+ {+ ...testimonials[25],+ position: { right: '25%', top: '15%' },+ rotation: -5,+ zIndex: 3+ },+ {+ ...testimonials[9],+ position: { left: '5%', top: '10%' },+ rotation: -8,+ zIndex: 2+ },+ {+ ...testimonials[22],+ position: { left: '25%', top: '5%' },+ rotation: 5,+ zIndex: 1+ },+ {+ ...testimonials[12],+ position: { right: '18%', top: '40%' },+ rotation: 8,+ zIndex: 3+ },+ {+ ...testimonials[10],+ position: { left: '20%', top: '40%' },+ rotation: -4,+ zIndex: 0+ },+];++// Main Testimonials component+const Testimonials = () => {+ return (+ <div className="w-full max-w-[1200px] mx-auto my-[250px] md:px-5">+ <div className="px-5 mb-16 text-center md:text-left">+ <h2 className="mb-3 w-full max-w-[440px]">+ What our users say about Cap after hitting record+ </h2>+ <p className="text-lg leading-[1.75rem] w-full max-w-[500px]">+ Don't just take our word for it. Here's what our users are saying+ about their experience with Cap.+ </p>+ </div>++ <div className="relative w-full min-h-fit py-10 md:h-[600px] px-5 md:px-0 overflow-x-auto">+ {/* Card layout container */}+ <div className="flex flex-row w-full h-full md:relative">+ {testimonialItems.map((item) => (+ <TestimonialCard key={item.name} item={item} />+ ))}+ </div>+ </div>+ <Button+ href="/testimonials"+ className="mx-auto mt-10 md:mt-0 w-fit" variant="primary" size="lg">+ View more+ </Button>+ </div>+ );+};++export default Testimonials;\ No newline at end of filediff --git a/apps/web/components/pages/HomePage/VideoModal.tsx b/apps/web/components/pages/HomePage/VideoModal.tsxnew file mode 100644index 000000000..3bf6417b4--- /dev/null+++ b/apps/web/components/pages/HomePage/VideoModal.tsx@@ -0,0 +1,51 @@+// million-ignore+++"use client";++import MuxPlayer from "@mux/mux-player-react";+import { useClickAway } from "@uidotdev/usehooks";+import { motion } from "framer-motion";+import React from "react";+++interface Props {+ setVideoToggled: React.Dispatch<React.SetStateAction<boolean>>;+ }++ const VideoModal = ({ setVideoToggled }: Props) => {+ const ref = useClickAway<HTMLDivElement>(() => setVideoToggled(false));+ return (+ <motion.div+ initial={{ opacity: 0 }}+ animate={{ opacity: 1 }}+ exit={{ opacity: 0 }}+ className="flex fixed inset-0 justify-center items-center w-screen z-[500] h-screen backdrop-blur-md bg-black/20"+ >+ <motion.div+ initial={{ filter: "blur(20px)", y: 50 }}+ animate={{ filter: "blur(0px)", y: 0 }}+ exit={{ filter: "blur(20px)", y: 50 }}+ transition={{+ type: "spring",+ bounce: 0.3,+ stiffness: 250,+ damping: 20,+ }}+ ref={ref}+ className="w-[calc(100%-20px)] max-w-[1000px] bg-gray-1 rounded-[16px] md:h-[700px] h-[300px]"+ >+ <MuxPlayer+ playbackId="A6oZoUWVZjOIVZB6XnBMLagYnXE6xhDhp8Hcyky018hk"+ metadataVideoTitle="Placeholder (optional)"+ metadata-viewer-user-id="Placeholder (optional)"+ accentColor="#5C9FFF"+ className="h-full rounded-[16px] overflow-hidden select-none"+ autoPlay+ />+ </motion.div>+ </motion.div>+ );+ };++ export default VideoModal;\ No newline at end of filediff --git a/apps/web/components/pages/PricingPage.tsx b/apps/web/components/pages/PricingPage.tsxindex a90ffe325..55f2e7ae4 100644--- a/apps/web/components/pages/PricingPage.tsx+++ b/apps/web/components/pages/PricingPage.tsx@@ -47,7 +47,6 @@ export const PricingPage = () => {const { push } = useRouter();const searchParams = useSearchParams();-useEffect(() => {const init = async () => {setInitialRender(false);@@ -272,30 +271,59 @@ export const PricingPage = () => {<div><div className="flex items-center space-x-3"><NumberFlow- value={isCommercialAnnual- ? `${29 * licenseQuantity}`- : `${58 * licenseQuantity}`}+ value={+ isCommercialAnnual+ ? `${29 * licenseQuantity}`+ : `${58 * licenseQuantity}`+ }className="text-4xl tabular-nums"format={{notation: "compact",style: "currency",- currency: "USD",+ currency: "USD",}}/><div><p className="text-sm font-medium">- {isCommercialAnnual- ? licenseQuantity === 1- ? "billed annually"- : <>for <NumberFlow value={licenseQuantity} className="text-sm font-medium tabular-nums" /> licenses, billed annually</>- : licenseQuantity === 1- ? "one-time payment"- : <>for <NumberFlow value={licenseQuantity} className="text-sm font-medium tabular-nums" /> licenses, one-time payment</>- }+ {isCommercialAnnual ? (+ licenseQuantity === 1 ? (+ "billed annually"+ ) : (+ <>+ for{" "}+ <NumberFlow+ value={licenseQuantity}+ className="text-sm font-medium tabular-nums"+ />{" "}+ licenses, billed annually+ </>+ )+ ) : licenseQuantity === 1 ? (+ "one-time payment"+ ) : (+ <>+ for{" "}+ <NumberFlow+ value={licenseQuantity}+ className="text-sm font-medium tabular-nums"+ />{" "}+ licenses, one-time payment+ </>+ )}</p>{isCommercialAnnual && (<p className="text-sm">- or, <NumberFlow value={58 * licenseQuantity} className="text-sm tabular-nums" format={{ notation: "compact", style: "currency", currency: "USD" }} /> one-time payment+ or,{" "}+ <NumberFlow+ value={58 * licenseQuantity}+ className="text-sm tabular-nums"+ format={{+ notation: "compact",+ style: "currency",+ currency: "USD",+ }}+ />{" "}+ one-time payment</p>)}</div>@@ -323,7 +351,10 @@ export const PricingPage = () => {>-</QuantityButton>- <NumberFlow value={licenseQuantity} className="text-sm tabular-nums" />+ <NumberFlow+ value={licenseQuantity}+ className="text-sm tabular-nums"+ /><QuantityButtononClick={() =>setLicenseQuantity(licenseQuantity + 1)@@ -394,9 +425,9 @@ export const PricingPage = () => {<div><div className="flex items-center space-x-3"><NumberFlow- value={isAnnual- ? `${6 * proQuantity}`- : `${9 * proQuantity}`}+ value={+ isAnnual ? `${6 * proQuantity}` : `${9 * proQuantity}`+ }className="text-4xl tabular-nums"format={{notation: "compact",@@ -404,24 +435,60 @@ export const PricingPage = () => {currency: "USD",}}suffix="/mo"- />+ /><div><p className="text-sm font-medium">- {isAnnual- ? (proQuantity === 1- ? "per user, billed annually."- : <>for <NumberFlow value={proQuantity} className="text-sm font-medium tabular-nums" /> users, billed annually.</>)- : (proQuantity === 1- ? "per user, billed monthly."- : <>for <NumberFlow value={proQuantity} className="text-sm font-medium tabular-nums" /> users, billed monthly.</>)- }+ {isAnnual ? (+ proQuantity === 1 ? (+ "per user, billed annually."+ ) : (+ <>+ for{" "}+ <NumberFlow+ value={proQuantity}+ className="text-sm font-medium tabular-nums"+ />{" "}+ users, billed annually.+ </>+ )+ ) : proQuantity === 1 ? (+ "per user, billed monthly."+ ) : (+ <>+ for{" "}+ <NumberFlow+ value={proQuantity}+ className="text-sm font-medium tabular-nums"+ />{" "}+ users, billed monthly.+ </>+ )}</p>{isAnnual && (<p className="text-sm">- or, <NumberFlow value={9 * proQuantity} className="text-sm tabular-nums" format={{ notation: "compact", style: "currency", currency: "USD", }} suffix="/mo" />{" "}- {proQuantity === 1- ? "per user, "- : <>for <NumberFlow value={proQuantity} className="text-sm tabular-nums" /> users, </>}+ or,{" "}+ <NumberFlow+ value={9 * proQuantity}+ className="text-sm tabular-nums"+ format={{+ notation: "compact",+ style: "currency",+ currency: "USD",+ }}+ suffix="/mo"+ />{" "}+ {proQuantity === 1 ? (+ "per user, "+ ) : (+ <>+ for{" "}+ <NumberFlow+ value={proQuantity}+ className="text-sm tabular-nums"+ />{" "}+ users,{" "}+ </>+ )}billed monthly.</p>)}@@ -447,7 +514,10 @@ export const PricingPage = () => {>-</QuantityButton>- <NumberFlow value={proQuantity} className="text-sm tabular-nums" />+ <NumberFlow+ value={proQuantity}+ className="text-sm tabular-nums"+ /><QuantityButtononClick={() => setProQuantity(proQuantity + 1)}>diff --git a/apps/web/components/pages/SelfHostingPage.tsx b/apps/web/components/pages/SelfHostingPage.tsxindex 2082b452b..84a3b0a9f 100644--- a/apps/web/components/pages/SelfHostingPage.tsx+++ b/apps/web/components/pages/SelfHostingPage.tsx@@ -67,7 +67,7 @@ export const SelfHostingPage = () => {<div className="mt-[120px]"><div className="relative z-10 px-5 pt-24 pb-36 w-full"><div className="mx-auto text-center wrapper wrapper-sm">- <h1 className="fade-in-down text-[2rem] font-bold leading-[2.5rem] md:text-[3.75rem] md:leading-[4rem] relative z-10 text-black mb-4">+ <h1 className="fade-in-down text-[2rem] font-medium leading-[2.5rem] md:text-[3.75rem] md:leading-[4rem] relative z-10 text-black mb-4">Self-host Cap</h1><p className="mx-auto mb-8 max-w-3xl text-md sm:text-xl text-zinc-500 fade-in-down animate-delay-1">diff --git a/apps/web/components/pages/UpdatesPage.tsx b/apps/web/components/pages/UpdatesPage.tsxindex b3a598599..938a6aa2e 100644--- a/apps/web/components/pages/UpdatesPage.tsx+++ b/apps/web/components/pages/UpdatesPage.tsx@@ -35,10 +35,7 @@ export const UpdatesPage = () => {});return (- <div className="py-32 wrapper wrapper-sm">- <div className="mb-14 text-center page-intro">- <h1>Blog</h1>- </div>+ <div className="py-24 wrapper wrapper-sm">{featuredPosts.length > 0 && (<div className="mb-6">@@ -46,7 +43,7 @@ export const UpdatesPage = () => {{featuredPosts.map((post) => (<articlekey={post.slug}- className="overflow-hidden w-full rounded-xl border transition-shadow border-gray-3 hover:shadow-md"+ className="overflow-hidden w-full rounded-xl border transition-shadow bg-gray-1 border-gray-5 hover:shadow-md"><Link href={`/blog/${post.slug}`}>{post.metadata.image && (@@ -109,7 +106,7 @@ export const UpdatesPage = () => {{remainingPosts.map((post) => (<articlekey={post.slug}- className="overflow-hidden w-full rounded-xl border"+ className="overflow-hidden w-full rounded-xl border bg-gray-1 border-gray-5"><Link href={`/blog/${post.slug}`}>{post.metadata.image && (diff --git a/apps/web/components/pages/WindowsPage.tsx b/apps/web/components/pages/WindowsPage.tsxindex 68f57cdef..1ad3b08b2 100644--- a/apps/web/components/pages/WindowsPage.tsx+++ b/apps/web/components/pages/WindowsPage.tsx@@ -1,8 +1,8 @@"use client";-import { useState } from "react";-import Link from "next/link";import { Button, Input } from "@cap/ui";+import Link from "next/link";+import { useState } from "react";export const WindowsPage = () => {const [isSubmitted, setIsSubmitted] = useState(false);@@ -80,7 +80,7 @@ export const WindowsPage = () => {meantime, you can{" "}<Linkhref="https://cap.link/discord"- className="font-bold underline text-base sm:text-xl"+ className="font-medium underline text-base sm:text-xl"target="_blank"rel="noopener noreferrer">diff --git a/apps/web/components/pages/_components/LogoSection.tsx b/apps/web/components/pages/_components/LogoSection.tsxindex f846bb89e..27714c4e9 100644--- a/apps/web/components/pages/_components/LogoSection.tsx+++ b/apps/web/components/pages/_components/LogoSection.tsx@@ -1,18 +1,20 @@+import Link from "next/link";+export const LogoSection = () => {return (- <div className="wrapper pb-32 md:pb-40">+ <div className="pb-32 wrapper md:pb-40"><div className="mb-4">- <svg- xmlns="http://www.w3.org/2000/svg"- className="w-[250px] h-auto mx-auto"- fill="none"- viewBox="0 0 255 30"- >- <path- fill="#8991A3"- d="m10.4 10.704.192 3.488q.128 1.76.064 3.488-.064 1.696-.352 3.328a13.2 13.2 0 0 1-.896 3.136 11 11 0 0 1-1.728 2.752q-1.056 1.28-2.688 2.304-.256.16-.576.192-.288.031-.576-.032a1.3 1.3 0 0 1-.512-.16.48.48 0 0 1-.288-.288q-.096-.288.096-.64t.64-.736q1.408-1.055 2.368-2.24t1.536-2.56q.576-1.376.736-2.976.192-1.632 0-3.552-.384.48-.896.992-.512.511-1.088.928-.576.384-1.184.672-.608.256-1.152.256-.448 0-.896-.192t-.896-.736a9.4 9.4 0 0 1-.928-1.504Q.992 15.76.704 14.96a28 28 0 0 1-.48-1.44 9 9 0 0 1-.192-.896 1.5 1.5 0 0 1 0-.608q.064-.289.416-.352.48-.096.896.064t.576.512q.128.352.352 1.088.224.735.544 1.472.32.704.672 1.248.384.544.8.544.48 0 1.12-.48.672-.48 1.28-1.248a8 8 0 0 0 1.024-1.696q.448-.96.448-1.856 0-.192.064-.448.064-.255.192-.48.127-.256.288-.416.192-.192.384-.224.512-.064.896.288.416.32.416.672M20.2 9.616q.96.352 1.6 1.056.672.705 1.024 1.6.353.864.384 1.792a4.6 4.6 0 0 1-.192 1.728 10.5 10.5 0 0 1-.896 1.76 8 8 0 0 1-1.248 1.536q-.705.672-1.6 1.088a4.66 4.66 0 0 1-1.984.416q-1.312 0-2.208-.608a4.3 4.3 0 0 1-1.408-1.568q-.511-.96-.672-2.176a9.3 9.3 0 0 1 .064-2.432 9.3 9.3 0 0 1 .416-1.728 6 6 0 0 1 .8-1.504 4.4 4.4 0 0 1 1.088-1.088 2.6 2.6 0 0 1 1.44-.416q.448 0 1.12.192.672.16 1.248.48.416-.384 1.024-.128m-1.216 2.336a16 16 0 0 1-.832-.576q-.448-.384-.8-.384-.384 0-.768.352a4.3 4.3 0 0 0-.64.832q-.256.448-.448.928t-.256.768q-.096.48-.128 1.152t.096 1.344q.127.64.48 1.184.385.512 1.12.736.448.128 1.056 0a4 4 0 0 0 1.184-.544 4.6 4.6 0 0 0 1.12-1.024q.544-.64.832-1.472.32-.928 0-1.92-.288-1.024-1.216-1.472a.77.77 0 0 1-.448.16.8.8 0 0 1-.352-.064M27.89 11.312a51 51 0 0 0-.384 1.92 23 23 0 0 0-.288 1.984q-.064.96 0 1.728.096.768.416 1.088.543.096 1.247-.448a9 9 0 0 0 1.377-1.44q.672-.864 1.216-1.856.543-1.024.768-1.792.128-.384.224-.8a3.8 3.8 0 0 0 .096-.864q0-.255.32-.48.351-.256.576-.288a.55.55 0 0 1 .352.064q.224.096.383.288.193.16.32.416.16.225.16.48.065.96.192 2.112.129 1.152.288 2.304.193 1.152.385 2.24t.384 1.952q.096.352-.192.8t-.64.544a1 1 0 0 1-.609-.064q-.287-.128-.448-.512a12 12 0 0 1-.32-1.088q-.128-.672-.255-1.376-.096-.736-.192-1.376a17 17 0 0 1-.128-1.12q-.48.864-1.152 1.76a12.6 12.6 0 0 1-1.408 1.6q-.736.705-1.569 1.12a3 3 0 0 1-1.663.288q-1.281-.16-1.953-2.4a7.2 7.2 0 0 1-.256-1.984q.033-1.088.16-2.144.16-1.088.352-2.048.225-.96.384-1.568a.95.95 0 0 1 .256-.448q.192-.225.448-.16.48.096.865.576.416.48.288.992M39.35 3.92a3 3 0 0 0-.447-.736q-.288-.352-.448-.928-.225-.735-.064-1.312.191-.575.64-.8.416-.191.8-.128.383.065.703.32.32.225.544.64.224.384.32.864.129.768.032 1.824a12.7 12.7 0 0 1-.32 2.144q-.255 1.056-.703 2.08a7.5 7.5 0 0 1-.96 1.696q-.225.289-.48.352a.77.77 0 0 1-.448-.064.8.8 0 0 1-.288-.352.72.72 0 0 1 .063-.512q.32-.64.545-1.184.223-.544.352-1.088.159-.544.223-1.088.064-.577.064-1.216 0-.255-.128-.512M54.55 9.744q-.575.32-1.215.672-.609.352-1.248.832-.608.448-1.184 1.088a7 7 0 0 0-.992 1.472 8.5 8.5 0 0 0-.864 2.496q-.225 1.248-.288 2.464 0 .576-.288 1.184-.256.576-.736.576-.608 0-.992-.608a4.6 4.6 0 0 1-.48-1.216 59 59 0 0 1-.896-4.48 111 111 0 0 1-.608-4.448q0-.448.255-.576.288-.128.64-.096.385.032.736.192.353.16.416.512.13 1.184.32 2.496.193 1.28.385 2.208a5.6 5.6 0 0 1 .703-2.112 8.5 8.5 0 0 1 1.409-1.856 9 9 0 0 1 1.92-1.408 7.4 7.4 0 0 1 2.208-.768q.48-.065.8 0 .32.064.447.224.128.16.033.512-.064.352-.48.64M63.587 13.264q-1.25.736-2.689 1.152-1.44.384-3.104.384.065 1.12.64 1.792a2.34 2.34 0 0 0 1.44.768 3.3 3.3 0 0 0 1.024-.032q.545-.096.992-.288.48-.225.864-.48.385-.255.672-.512.288-.255.608-.32.321-.096.48-.032.45.16.32.96a5.05 5.05 0 0 1-1.472 1.76q-.96.705-2.144.896a4.75 4.75 0 0 1-2.112-.096 4.4 4.4 0 0 1-1.952-1.12 4.9 4.9 0 0 1-1.12-1.728 7.5 7.5 0 0 1-.48-2.048 5 5 0 0 1 .16-1.888q.289-.896.864-1.568.576-.704 1.44-1.152.864-.449 2.017-.512 1.375-.096 2.496.512 1.12.607 1.568 1.696.255.607.127 1.056-.096.448-.64.8m-3.68-2.176a4 4 0 0 0-.704.224 3.2 3.2 0 0 0-.672.416 3.3 3.3 0 0 0-.544.544q-.224.288-.257.672a8 8 0 0 0 1.185-.096q.67-.096 1.28-.224.64-.16 1.151-.352.545-.192.897-.416-.257-.607-.96-.736a3.3 3.3 0 0 0-1.376-.032M80.126 7.728q-.064.32-.448.352-.385.032-.64.032-.8.032-1.664.16-.832.128-1.76.384-.384.128-.832-.096-.448-.225-.544-.896 0-.256.192-.416t.448-.288a5 5 0 0 1 .992-.32 7.056 7.056 0 0 1 2.304-.256q.544 0 .896.096.512.16.8.48a.86.86 0 0 1 .256.768m-.736 10.656q.225.512.224 1.12.032.575-.32.8-.449.288-.96-.032a2 2 0 0 1-.768-.864q-.352-.672-.544-1.632a22 22 0 0 1-.288-1.952 29 29 0 0 1-.128-1.792v-1.248q.032-.448.256-.832t.576-.448q.576.032.928.544.352.48.32 1.216 0 .576.032 1.28t.128 1.408q.096.705.224 1.376.128.64.32 1.056M83.908 10.224q.096.48.192 1.088.127.577.256 1.216.128.607.224 1.248.096.64.16 1.216.384-.832.832-1.76a14 14 0 0 1 .96-1.696q.544-.8 1.12-1.312.608-.512 1.312-.512 1.055 0 1.76.768.736.768 1.216 1.92.512 1.12.8 2.368t.48 2.208q.192.864-.768 1.28-.448.224-.672.064t-.256-.32q-.16-.384-.416-1.344-.224-.96-.544-1.952a9.4 9.4 0 0 0-.672-1.728q-.384-.736-.864-.672-.576.032-1.024.864-.384.673-.8 1.504a63 63 0 0 0-.768 1.664q-.384.832-.768 1.696a64 64 0 0 1-.672 1.536q-.224.224-.576.32a1.23 1.23 0 0 1-.672-.064 1.06 1.06 0 0 1-.512-.32q-.192-.225-.192-.448a115 115 0 0 0-.608-4.544 53 53 0 0 0-.768-4.192q-.224-.736-.096-1.152.16-.448.96-.352 1.12.192 1.376 1.408M108.935 11.952q.257.352.48.896.257.511.384 1.056.192.864.416 1.888.257.992.48 2.08.256 1.087.448 2.208.225 1.12.384 2.144a6 6 0 0 1-.224 2.688 5.9 5.9 0 0 1-1.312 2.336q-.927 1.024-2.304 1.632t-3.104.672q-.383-.032-.8-.384-.416-.32-.416-.672-.031-.352.32-.576.384-.192.768-.256a6.6 6.6 0 0 0 1.376-.288q.737-.192 1.376-.576a5.4 5.4 0 0 0 1.152-.928q.544-.545.832-1.28.225-.576.224-1.408 0-.864-.128-1.696a11 11 0 0 0-.288-1.568 11 11 0 0 0-.288-1.152 5 5 0 0 1-.576.48 5 5 0 0 1-.736.48q-.415.225-.928.352a3.1 3.1 0 0 1-.992.096 1.9 1.9 0 0 1-1.024-.384 3.7 3.7 0 0 1-.8-.896 5.7 5.7 0 0 1-.576-1.312 6 6 0 0 1-.192-1.536q.065-1.92.96-3.392.928-1.504 2.944-2.336a6 6 0 0 1 .416-.064q.288-.032.576 0 .288 0 .544.064.288.064.48.192.352.256.352.736t-.224.704m-4.032 4.384q0 .352.064.8.065.416.416.608.385.224.928.064a2.9 2.9 0 0 0 1.056-.544q.449-.352.576-.768.16-.448 0-1.184a69 69 0 0 0-.352-1.536 11 11 0 0 1-.256-1.44q-.384.193-.832.544a4 4 0 0 0-.768.896 6 6 0 0 0-.608 1.152 4.3 4.3 0 0 0-.224 1.408M122.883 9.744l-1.216.672q-.607.352-1.248.832-.608.448-1.184 1.088a7 7 0 0 0-.992 1.472 8.5 8.5 0 0 0-.864 2.496 20 20 0 0 0-.288 2.464q0 .576-.288 1.184-.256.576-.736.576-.608 0-.992-.608a4.6 4.6 0 0 1-.48-1.216 59 59 0 0 1-.896-4.48 111 111 0 0 1-.608-4.448q0-.448.256-.576.288-.128.64-.096.384.032.736.192a.67.67 0 0 1 .416.512q.128 1.184.32 2.496.192 1.28.384 2.208.128-1.088.704-2.112a8.5 8.5 0 0 1 1.408-1.856 9 9 0 0 1 1.92-1.408 7.4 7.4 0 0 1 2.208-.768q.48-.065.8 0 .32.064.448.224t.032.512q-.064.352-.48.64M131.919 13.264q-1.248.736-2.688 1.152-1.44.384-3.104.384.064 1.12.64 1.792a2.34 2.34 0 0 0 1.44.768 3.3 3.3 0 0 0 1.024-.032q.544-.096.992-.288.48-.225.864-.48t.672-.512a1.3 1.3 0 0 1 .608-.32q.32-.096.48-.032.448.16.32.96a5.04 5.04 0 0 1-1.472 1.76q-.96.705-2.144.896a4.75 4.75 0 0 1-2.112-.096 4.4 4.4 0 0 1-1.952-1.12 4.9 4.9 0 0 1-1.12-1.728 7.5 7.5 0 0 1-.48-2.048 5 5 0 0 1 .16-1.888q.288-.896.864-1.568.576-.704 1.44-1.152.864-.449 2.016-.512 1.376-.096 2.496.512 1.12.607 1.568 1.696.256.607.128 1.056-.096.448-.64.8m-3.68-2.176a4 4 0 0 0-.704.224 3.2 3.2 0 0 0-.672.416 3.3 3.3 0 0 0-.544.544 1.24 1.24 0 0 0-.256.672 8 8 0 0 0 1.184-.096q.672-.096 1.28-.224.64-.16 1.152-.352.544-.192.896-.416-.257-.607-.96-.736a3.3 3.3 0 0 0-1.376-.032M142.754 8.944q.127.896.192 1.92.095.991.128 2.016.063 1.024.064 1.984 0 .96-.032 1.728 1.023.704 1.216 1.248.223.544.064.96-.192.576-.704.608-.48 0-1.12-.352-.448.32-1.024.704-.576.353-1.216.704-.64.32-1.28.576t-1.184.352q-1.025.16-1.856-.384-.8-.544-1.088-1.632a4 4 0 0 1-.096-1.504 4.1 4.1 0 0 1 .48-1.504q.384-.736 1.024-1.312.672-.576 1.568-.896.224-.096.608-.16.415-.064.832-.032.447 0 .896.16.447.16.832.544 0-.544-.032-1.184a29 29 0 0 0-.032-1.344 21 21 0 0 0-.096-1.248 11 11 0 0 0-.096-1.024q-.065-.48-.384-.576-.288-.128-.736.032-.769.255-1.792.992a23 23 0 0 0-1.952 1.568.82.82 0 0 1-.672.256.96.96 0 0 1-.608-.288.93.93 0 0 1-.288-.576q-.032-.352.256-.736.543-.576 1.216-1.184t1.408-1.088q.736-.512 1.504-.832a4.5 4.5 0 0 1 1.536-.352q1.119-.031 1.728.512.607.512.736 1.344m-3.712 6.88q-.417.096-.896.416a3.8 3.8 0 0 0-.832.736 3 3 0 0 0-.544.96 1.67 1.67 0 0 0 0 1.024.48.48 0 0 0 .256.288.74.74 0 0 0 .48.032q.768-.16 1.728-.608.992-.48 1.568-1.024 0-.192-.192-.48a4 4 0 0 0-.448-.608 2.8 2.8 0 0 0-.576-.544q-.288-.224-.544-.192M152.878 12.208q.607-.032 1.216.288.608.32.608.992-.065.544-.608.704a3.6 3.6 0 0 1-.832.128q-.64 0-1.376.032t-1.504.096q-.065 1.056-.128 1.984-.033.928-.064 1.664-.033.704-.032 1.152 0 .448.032.48a9.5 9.5 0 0 0 1.504-.416 38 38 0 0 0 1.632-.672 58 58 0 0 0 1.6-.768q.8-.416 1.504-.768.32-.16.576-.096.288.064.352.288.063.352-.096.864-.16.511-.576.928a15 15 0 0 1-1.28.896q-.768.48-1.664.928-.897.448-1.824.8-.897.32-1.6.384-1.056.096-1.6-.576-.545-.672-.608-1.696a27 27 0 0 1-.032-2.368q.063-1.344.128-2.848-.609.064-1.184.128-.545.032-1.056.096-.417 0-.928-.192-.48-.192-.48-.736 0-.192.16-.512t.704-.48q1.311-.224 2.912-.384.096-1.504.224-2.912t.224-2.56q.032-.384.224-.672.191-.288.416-.288.543-.031 1.024.288.512.288.512.672a98 98 0 0 0-.256 2.464q-.096 1.376-.192 2.816.64-.064 1.216-.064.608-.032 1.152-.064M173.725 12.56a.9.9 0 0 1-.544.096q-.32-.064-.544-.416-.512-.672-1.248-.672-.672 0-1.216.32a3.3 3.3 0 0 0-.928.8q-.384.48-.64 1.088-.256.607-.352 1.216-.16 1.12.384 1.888t1.696.768q.928.032 2.08-.352 1.184-.416 2.208-1.056.448-.192.832-.224t.64.384q.32.511-.16 1.056-.48.511-1.28.928-.8.448-1.696.8-.864.32-1.76.48a6.3 6.3 0 0 1-1.792 0 4.2 4.2 0 0 1-1.632-.608q-1.216-.832-1.472-2.368t.224-3.168q.192-.607.544-1.216.352-.64.832-1.152.512-.512 1.12-.864a3.7 3.7 0 0 1 1.344-.512 4.1 4.1 0 0 1 2.272.256q1.088.416 1.44 1.568.065.256 0 .544-.064.256-.352.416M184.679 9.616a4 4 0 0 1 1.6 1.056q.672.705 1.024 1.6.351.864.384 1.792a4.6 4.6 0 0 1-.192 1.728 10.6 10.6 0 0 1-.896 1.76 8 8 0 0 1-1.248 1.536 5.9 5.9 0 0 1-1.6 1.088 4.66 4.66 0 0 1-1.984.416q-1.312 0-2.208-.608a4.3 4.3 0 0 1-1.408-1.568q-.513-.96-.672-2.176a9.3 9.3 0 0 1 .064-2.432 9.3 9.3 0 0 1 .416-1.728q.32-.864.8-1.504.48-.671 1.088-1.088a2.6 2.6 0 0 1 1.44-.416q.447 0 1.12.192.672.16 1.248.48.415-.384 1.024-.128m-1.216 2.336q-.352-.224-.832-.576-.449-.384-.8-.384-.384 0-.768.352a4.3 4.3 0 0 0-.64.832q-.256.448-.448.928t-.256.768q-.096.48-.128 1.152-.033.672.096 1.344.127.64.48 1.184.384.512 1.12.736.447.128 1.056 0 .608-.16 1.184-.544a4.6 4.6 0 0 0 1.12-1.024q.543-.64.832-1.472.32-.928 0-1.92-.289-1.024-1.216-1.472a.77.77 0 0 1-.448.16.8.8 0 0 1-.352-.064M191.536 10.448q.033.512.096 1.28.096.735.192 1.568l.192 1.6q.129.8.224 1.472l.864-1.728q.513-1.024 1.056-1.952.576-.96 1.152-1.6.608-.672 1.088-.672.513 0 .928.512.449.48.768 1.184.32.704.544 1.504.257.8.416 1.408.129-.416.32-.928l.448-1.088q.256-.576.544-1.12.321-.544.672-.96a2.5 2.5 0 0 1 .896-.64q.48-.224.704-.224.288 0 .672.192.417.16.832.448.417.288.768.704.384.384.608.8.449.864.704 1.888.288 1.024.416 1.952.129.928.16 1.664.064.704.096.992 0 .415-.096.64a.74.74 0 0 1-.352.32q-.351.16-.608.128a.9.9 0 0 1-.416-.224 1.4 1.4 0 0 1-.256-.352 2 2 0 0 1-.128-.384q-.096-.736-.224-1.504a26 26 0 0 0-.224-1.472q-.128-.736-.32-1.344a9 9 0 0 0-.352-1.12 1.7 1.7 0 0 0-.224-.32 2 2 0 0 0-.32-.416 2.2 2.2 0 0 0-.544-.48q-.32 0-.672.608a9 9 0 0 0-.672 1.408 28 28 0 0 0-.608 1.76q-.255.896-.384 1.536 0 .832-.32 1.248-.32.384-.672.384-.351 0-.768-.256-.383-.288-.512-.64a60 60 0 0 1-.416-1.152 49 49 0 0 0-.48-1.312 23 23 0 0 0-.48-1.312q-.223-.64-.448-1.152-.447.607-.896 1.344-.415.735-.832 1.504l-.768 1.536q-.351.735-.672 1.312a5 5 0 0 1-.48.64.83.83 0 0 1-.608.256q-.256 0-.544-.224a3.8 3.8 0 0 1-.544-.608 6 6 0 0 1-.48-.8 5 5 0 0 1-.288-.896q-.256-1.376-.448-3.008a482 482 0 0 0-.32-3.232 2.5 2.5 0 0 1 .128-.992q.192-.48.704-.64.544-.096.832.16.289.255.352.8M214.291 24.272a1.02 1.02 0 0 1-.32.64q-.288.32-.64.288-.544-.032-.832-.416t-.288-.64q0-1.215-.064-2.528-.063-1.344-.16-2.752a1.53 1.53 0 0 1-.768-.064.9.9 0 0 1-.448-.48q-.224-.544.064-.96t.928-.8a477 477 0 0 0-.32-2.336 62 62 0 0 0-.288-2.24.66.66 0 0 1 .032-.352q.064-.16.16-.288.096-.16.352-.288.417-.16.928.256.544.416.736 1.056.096.608.192 1.408.128.768.224 1.696.672-.416 1.248-.896.609-.48 1.024-1.024.449-.544.672-1.12a2.5 2.5 0 0 0 .128-1.248 1.6 1.6 0 0 0-.48-.96q-.415-.448-1.312-.48a6.8 6.8 0 0 0-1.6.128q-.768.16-1.536.416-.735.255-1.472.608-.704.353-1.376.704-.447.255-.896.224-.415-.065-.544-.32-.288-.64.032-1.152.352-.511 1.056-.96.609-.353 1.44-.704.864-.385 1.792-.64.96-.288 1.92-.384a6.2 6.2 0 0 1 1.888.032 3.7 3.7 0 0 1 1.6.608q.737.448 1.184 1.344.544 1.472.288 2.72a5.5 5.5 0 0 1-.96 2.24 8.9 8.9 0 0 1-1.76 1.824 21 21 0 0 1-2.08 1.44q.16 1.728.224 3.424.065 1.696.032 2.976M228.43 8.944q.128.896.192 1.92.096.991.128 2.016.064 1.024.064 1.984t-.032 1.728q1.024.704 1.216 1.248.224.544.064.96-.192.576-.704.608-.48 0-1.12-.352-.448.32-1.024.704-.576.353-1.216.704a17 17 0 0 1-1.28.576q-.64.256-1.184.352-1.024.16-1.856-.384-.8-.544-1.088-1.632a4 4 0 0 1-.096-1.504 4.1 4.1 0 0 1 .48-1.504q.384-.736 1.024-1.312a4.9 4.9 0 0 1 1.568-.896q.224-.096.608-.16.416-.064.832-.032.448 0 .896.16t.832.544q0-.544-.032-1.184a29 29 0 0 0-.032-1.344 19 19 0 0 0-.096-1.248 10 10 0 0 0-.096-1.024q-.065-.48-.384-.576-.288-.128-.736.032-.768.255-1.792.992a23 23 0 0 0-1.952 1.568.82.82 0 0 1-.672.256.96.96 0 0 1-.608-.288.93.93 0 0 1-.288-.576q-.032-.352.256-.736.544-.576 1.216-1.184t1.408-1.088a8 8 0 0 1 1.504-.832 4.5 4.5 0 0 1 1.536-.352q1.12-.031 1.728.512.608.512.736 1.344m-3.712 6.88q-.416.096-.896.416a3.8 3.8 0 0 0-.832.736 3 3 0 0 0-.544.96 1.67 1.67 0 0 0 0 1.024.49.49 0 0 0 .256.288.74.74 0 0 0 .48.032q.768-.16 1.728-.608.992-.48 1.568-1.024 0-.192-.192-.48a4 4 0 0 0-.448-.608 2.8 2.8 0 0 0-.576-.544q-.288-.224-.544-.192M233.338 10.224q.096.48.192 1.088.128.577.256 1.216.128.607.224 1.248.096.64.16 1.216.384-.832.832-1.76.449-.928.96-1.696.544-.8 1.12-1.312.608-.512 1.312-.512 1.056 0 1.76.768.736.768 1.216 1.92.512 1.12.8 2.368t.48 2.208q.192.864-.768 1.28-.449.224-.672.064t-.256-.32q-.16-.384-.416-1.344-.224-.96-.544-1.952a9.4 9.4 0 0 0-.672-1.728q-.384-.736-.864-.672-.576.032-1.024.864-.384.673-.8 1.504a63 63 0 0 0-.768 1.664q-.384.832-.768 1.696a67 67 0 0 1-.672 1.536q-.224.224-.576.32a1.23 1.23 0 0 1-.672-.064 1.06 1.06 0 0 1-.512-.32q-.192-.225-.192-.448a116 116 0 0 0-.608-4.544 53 53 0 0 0-.768-4.192q-.224-.736-.096-1.152.16-.448.96-.352 1.12.192 1.376 1.408M254.132 10.704l.192 3.488q.129 1.76.064 3.488-.064 1.696-.352 3.328a13.2 13.2 0 0 1-.896 3.136 11 11 0 0 1-1.728 2.752q-1.056 1.28-2.688 2.304-.255.16-.576.192-.288.031-.576-.032a1.3 1.3 0 0 1-.512-.16.48.48 0 0 1-.288-.288q-.096-.288.096-.64t.64-.736q1.408-1.055 2.368-2.24t1.536-2.56a10.3 10.3 0 0 0 .736-2.976q.192-1.632 0-3.552-.384.48-.896.992-.512.511-1.088.928a9 9 0 0 1-1.184.672 3 3 0 0 1-1.152.256q-.447 0-.896-.192-.447-.192-.896-.736a9.5 9.5 0 0 1-.928-1.504q-.384-.864-.672-1.664a28 28 0 0 1-.48-1.44 9 9 0 0 1-.192-.896 1.5 1.5 0 0 1 0-.608q.065-.289.416-.352.48-.096.896.064t.576.512q.129.352.352 1.088.225.735.544 1.472.321.704.672 1.248.384.544.8.544.48 0 1.12-.48a6.4 6.4 0 0 0 1.28-1.248 8 8 0 0 0 1.024-1.696q.448-.96.448-1.856 0-.192.064-.448.064-.255.192-.48.129-.256.288-.416.192-.192.384-.224.512-.064.896.288.416.32.416.672"- ></path>- </svg>+ <Link href="/" aria-label="Cap Home" className="inline-block w-[250px] h-auto mx-auto">+ <svg+ aria-label="Cap Logo"+ xmlns="http://www.w3.org/2000/svg"+ className="w-[250px] h-auto mx-auto"+ fill="none"+ viewBox="0 0 255 30"+ >+ <path />+ </svg>+ </Link></div><div className="text-center max-w-[800px] mx-auto mb-8"><h2 className="mb-3 text-2xl">@@ -20,8 +22,8 @@ export const LogoSection = () => {</h2></div><div className="flex flex-col items-center text-center lg:flex-row lg:items-center lg:justify-between lg:text-left">- <div className="grid grid-cols-2 gap-6 md:grid-cols-5 lg:max-w-4xl lg:gap-10 mx-auto">- <div className="mt-8 flex items-center justify-center lg:mt-0 ">+ <div className="grid grid-cols-2 gap-6 mx-auto md:grid-cols-5 lg:max-w-4xl lg:gap-10">+ <div className="flex justify-center items-center mt-8 lg:mt-0"><imgalt="Tesla Logo"loading="lazy"@@ -32,7 +34,7 @@ export const LogoSection = () => {src="/logos/tesla.svg"/></div>- <div className="mt-8 flex items-center justify-center lg:mt-0 ">+ <div className="flex justify-center items-center mt-8 lg:mt-0"><imgalt="Microsoft Logo"loading="lazy"@@ -43,7 +45,7 @@ export const LogoSection = () => {src="/logos/microsoft.svg"/></div>- <div className="mt-8 flex items-center justify-center lg:mt-0 ">+ <div className="flex justify-center items-center mt-8 lg:mt-0"><imgalt="Coinbase Logo"loading="lazy"@@ -54,7 +56,7 @@ export const LogoSection = () => {src="/logos/coinbase.svg"/></div>- <div className="mt-8 flex items-center justify-center lg:mt-0 ">+ <div className="flex justify-center items-center mt-8 lg:mt-0"><imgalt="IBM Logo"loading="lazy"@@ -65,7 +67,7 @@ export const LogoSection = () => {src="/logos/ibm.svg"/></div>- <div className="mt-8 flex items-center justify-center lg:mt-0 ">+ <div className="flex justify-center items-center mt-8 lg:mt-0"><imgalt="Dropbox Logo"loading="lazy"diff --git a/apps/web/components/seo/SeoPageTemplate.tsx b/apps/web/components/seo/SeoPageTemplate.tsxindex ad923a9a4..020702156 100644--- a/apps/web/components/seo/SeoPageTemplate.tsx+++ b/apps/web/components/seo/SeoPageTemplate.tsx@@ -330,7 +330,7 @@ export const SeoPageTemplate = ({{/* Features Section */}<div className="mb-28"><div className="text-center max-w-[800px] mx-auto mb-16">- <h2 className="text-4xl font-bold text-gray-800 mb-6 relative inline-block">+ <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">{content.featuresTitle}<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -345,7 +345,7 @@ export const SeoPageTemplate = ({className="p-8 bg-gray-1 rounded-2xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-100 hover:border-blue-100 transform hover:-translate-y-1"><div className="bg-blue-50 w-12 h-12 flex items-center justify-center rounded-full mb-4">- <span className="text-blue-500 text-xl font-bold">+ <span className="text-blue-500 text-xl font-medium">{index + 1}</span></div>@@ -364,7 +364,7 @@ export const SeoPageTemplate = ({{showVideo && (<div className="mb-28"><div className="text-center max-w-[800px] mx-auto mb-10">- <h2 className="text-4xl font-bold text-gray-800 mb-6 relative inline-block">+ <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">See Cap In Action<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -390,7 +390,7 @@ export const SeoPageTemplate = ({{content.comparison && content.comparisonTitle && (<div className="mb-28"><div className="text-center max-w-[800px] mx-auto mb-16">- <h2 className="text-4xl font-bold text-gray-800 mb-6 relative inline-block">+ <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">{content.comparisonTitle}<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -407,7 +407,7 @@ export const SeoPageTemplate = ({className="p-8 bg-gray-1 rounded-2xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-100 hover:border-blue-100 transform hover:-translate-y-1"><div className="bg-indigo-50 w-12 h-12 flex items-center justify-center rounded-full mb-4">- <span className="text-indigo-500 text-xl font-bold">+ <span className="text-indigo-500 text-xl font-medium">{index + 1}</span></div>@@ -427,7 +427,7 @@ export const SeoPageTemplate = ({{content.recordingModes && (<div className="mb-28"><div className="text-center max-w-[800px] mx-auto mb-16">- <h2 className="text-4xl font-bold text-gray-800 mb-6 relative inline-block">+ <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">{content.recordingModes.title}<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -442,7 +442,7 @@ export const SeoPageTemplate = ({className="p-8 bg-blue-50/50 rounded-2xl shadow-md hover:shadow-xl transition-all duration-300 border border-blue-100/20 transform hover:-translate-y-1"><div className="bg-blue-500 w-12 h-12 flex items-center justify-center rounded-full mb-4">- <span className="text-white text-xl font-bold">+ <span className="text-white text-xl font-medium">{index + 1}</span></div>@@ -462,7 +462,7 @@ export const SeoPageTemplate = ({{content.comparisonTable && (<div className="mb-28"><div className="text-center max-w-[800px] mx-auto mb-16">- <h2 className="text-4xl font-bold text-gray-800 mb-6 relative inline-block">+ <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">{content.comparisonTable.title}<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -508,7 +508,7 @@ export const SeoPageTemplate = ({{/* Use Cases Section */}<div className="mb-28"><div className="text-center max-w-[800px] mx-auto mb-16">- <h2 className="text-4xl font-bold text-gray-800 mb-6 relative inline-block">+ <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">{content.useCasesTitle}<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -523,7 +523,7 @@ export const SeoPageTemplate = ({className="p-8 bg-gray-1 rounded-2xl shadow-md hover:shadow-xl transition-all duration-300 border border-gray-100 hover:border-blue-100 transform hover:-translate-y-1"><div className="bg-blue-50 w-12 h-12 flex items-center justify-center rounded-full mb-4">- <span className="text-blue-500 text-xl font-bold">+ <span className="text-blue-500 text-xl font-medium">{String.fromCharCode(65 + index)}</span></div>@@ -542,7 +542,7 @@ export const SeoPageTemplate = ({{content.testimonials && (<div className="mb-28"><div className="text-center max-w-[800px] mx-auto mb-16">- <h2 className="text-4xl font-bold text-gray-800 mb-6 relative inline-block">+ <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">{content.testimonials.title}<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -578,7 +578,7 @@ export const SeoPageTemplate = ({{content.migrationGuide && (<div className="mb-28"><div className="text-center max-w-[800px] mx-auto mb-16">- <h2 className="text-4xl font-bold text-gray-800 mb-6 relative inline-block">+ <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">{content.migrationGuide.title}<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -601,7 +601,7 @@ export const SeoPageTemplate = ({{/* FAQ Section */}<div className="mb-28"><div className="text-center max-w-[800px] mx-auto mb-16">- <h2 className="text-4xl font-bold text-gray-800 mb-6 relative inline-block">+ <h2 className="text-4xl font-medium text-gray-800 mb-6 relative inline-block">{content.faqsTitle}<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-20 h-1 bg-blue-500 rounded-full"></span></h2>@@ -654,7 +654,7 @@ export const SeoPageTemplate = ({</div><div className="wrapper mx-auto h-full flex flex-col justify-center items-center relative z-10"><div className="text-center max-w-[800px] mx-auto mb-8">- <h2 className="text-3xl md:text-4xl font-bold text-white mb-4 drop-shadow-md">+ <h2 className="text-3xl md:text-4xl font-medium text-white mb-4 drop-shadow-md">{content.cta.title}</h2><p className="text-xl text-white/90 mb-6">diff --git a/apps/web/components/tools/ToolsPageTemplate.tsx b/apps/web/components/tools/ToolsPageTemplate.tsxindex 6e69fef93..d010ceed4 100644--- a/apps/web/components/tools/ToolsPageTemplate.tsx+++ b/apps/web/components/tools/ToolsPageTemplate.tsx@@ -1,10 +1,10 @@"use client";-import { Button } from "@cap/ui";import { ToolPageContent } from "@/components/tools/types";-import { useEffect, ReactNode } from "react";+import { Button } from "@cap/ui";import { motion } from "framer-motion";import Link from "next/link";+import { ReactNode, useEffect } from "react";const renderHTML = (content: string) => {const styledContent = content.replace(@@ -198,7 +198,7 @@ export const ToolsPageTemplate = ({{/* Features Section */}<div className="mb-20"><div className="text-center max-w-[800px] mx-auto mb-12">- <h2 className="text-3xl font-bold text-gray-800 mb-5 relative inline-block">+ <h2 className="text-3xl font-medium text-gray-800 mb-5 relative inline-block">{content.featuresTitle}<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-16 h-1 bg-blue-500 rounded-full"></span></h2>@@ -217,7 +217,7 @@ export const ToolsPageTemplate = ({className="p-6 bg-white rounded-xl shadow-sm hover:shadow-md transition-all duration-300 border border-gray-100 hover:border-blue-100"><div className="bg-blue-50 w-10 h-10 flex items-center justify-center rounded-full mb-4">- <span className="text-blue-500 text-lg font-bold">+ <span className="text-blue-500 text-lg font-medium">{index + 1}</span></div>@@ -237,7 +237,7 @@ export const ToolsPageTemplate = ({{content.faqs && (<div className="mb-20"><div className="text-center max-w-[800px] mx-auto mb-12">- <h2 className="text-3xl font-bold text-gray-800 mb-5 relative inline-block">+ <h2 className="text-3xl font-medium text-gray-800 mb-5 relative inline-block">Frequently Asked Questions<span className="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-16 h-1 bg-blue-500 rounded-full"></span></h2>@@ -292,7 +292,7 @@ export const ToolsPageTemplate = ({</div><div className="wrapper mx-auto h-full flex flex-col justify-center items-center relative z-10"><div className="text-center max-w-[700px] mx-auto mb-6">- <h2 className="text-2xl md:text-3xl font-bold text-white mb-3 drop-shadow-md">+ <h2 className="text-2xl md:text-3xl font-medium text-white mb-3 drop-shadow-md">{content.cta.title}</h2><p className="text-lg text-white/90 mb-5">diff --git a/apps/web/components/ui/LogoMarquee.tsx b/apps/web/components/ui/LogoMarquee.tsxnew file mode 100644index 000000000..df6efed4f--- /dev/null+++ b/apps/web/components/ui/LogoMarquee.tsx@@ -0,0 +1,58 @@+import React from "react";++interface LogoMarqueeProps {+ className?: string;+}++export const LogoMarquee: React.FC<LogoMarqueeProps> = ({ className = "" }) => {+ // Define the logos to display in the marquee+ const logos = [+ { src: "/logos/tesla.svg", alt: "Tesla Logo", width: 100, height: 30 },+ { src: "/logos/microsoft.svg", alt: "Microsoft Logo", width: 98, height: 24 },+ { src: "/logos/coinbase.svg", alt: "Coinbase Logo", width: 139, height: 32 },+ { src: "/logos/ibm.svg", alt: "IBM Logo", width: 80, height: 20 },+ { src: "/logos/dropbox.svg", alt: "Dropbox Logo", width: 115, height: 50 },+ ];++ return (+ <div className={`overflow-hidden relative w-full ${className}`}>+ {/* Fade gradient on the left side */}+ <div className="absolute top-0 left-0 z-10 w-16 h-full bg-gradient-to-r from-[#F2F2F2] to-transparent"></div>++ <div className="flex animate-marquee">+ {/* First set of logos */}+ {logos.map((logo, index) => (+ <div key={`logo-1-${index}`} className="flex justify-center items-center mx-5 shrink-0">+ <img+ alt={logo.alt}+ loading="lazy"+ width={logo.width}+ height={logo.height}+ decoding="async"+ style={{ color: "transparent", opacity: 0.5 }}+ src={logo.src}+ />+ </div>+ ))}++ {/* Duplicate set of logos for seamless looping */}+ {logos.map((logo, index) => (+ <div key={`logo-2-${index}`} className="flex justify-center items-center mx-5 shrink-0">+ <img+ alt={logo.alt}+ loading="lazy"+ width={logo.width}+ height={logo.height}+ decoding="async"+ style={{ color: "transparent", opacity: 0.5 }}+ src={logo.src}+ />+ </div>+ ))}+ </div>++ {/* Fade gradient on the right side */}+ <div className="absolute top-0 right-0 z-10 w-16 h-full bg-gradient-to-l from-[#F2F2F2] to-transparent"></div>+ </div>+ );+};diff --git a/apps/web/components/ui/MobileMenu.tsx b/apps/web/components/ui/MobileMenu.tsxnew file mode 100644index 000000000..784f1219c--- /dev/null+++ b/apps/web/components/ui/MobileMenu.tsx@@ -0,0 +1,119 @@+import { Button } from "@cap/ui";+import Link from "next/link";++interface MobileMenuProps {+ setShowMobileMenu: (showMobileMenu: boolean) => void;+ auth: boolean;+}++interface NavLink {+ href: string;+ text: string;+ external?: boolean;+ icon?: React.ReactNode;+}++const internalLinks: NavLink[] = [+ { href: "/pricing", text: "Pricing" },+ { href: "/download", text: "Download" },+ { href: "/pricing", text: "Get started" },+ { href: "/about", text: "About" },+ { href: "/blog", text: "Blog" },+ ];++ const externalLinks: NavLink[] = [+ {+ href: "https://github.com/CapSoftware/Cap",+ text: "Open Source",+ external: true,+ icon: (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ fill="currentColor"+ className="w-6 h-6"+ viewBox="0 0 24 24"+ >+ <path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"></path>+ </svg>+ )+ },+ {+ href: "https://discord.gg/y8gdQ3WRN3",+ text: "Join the community",+ external: true,+ icon: (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ fill="currentColor"+ className="w-6 h-6"+ viewBox="0 0 24 24"+ >+ <path d="M20.317 4.37a19.791 19.791 0 00-4.885-1.515.074.074 0 00-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 00-5.487 0 12.64 12.64 0 00-.617-1.25.077.077 0 00-.079-.037A19.736 19.736 0 003.677 4.37a.07.07 0 00-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 00.031.057 19.9 19.9 0 005.993 3.03.078.078 0 00.084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 00-.041-.106 13.107 13.107 0 01-1.872-.892.077.077 0 01-.008-.128 10.2 10.2 0 00.372-.292.074.074 0 01.077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 01.078.01c.12.098.246.198.373.292a.077.077 0 01-.006.127 12.299 12.299 0 01-1.873.892.077.077 0 00-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 00.084.028 19.839 19.839 0 006.002-3.03.077.077 0 00.032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 00-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"></path>+ </svg>+ )+ },+ ];+++export const MobileMenu: React.FC<MobileMenuProps> = ({+ setShowMobileMenu,+ auth,+}) => {+ return (+ <div className="overflow-auto fixed top-0 left-0 z-40 px-4 w-full h-full bg-gray-2">+ <div className="pb-12">+ <nav className="relative mt-24 mobile">+ <ul className="p-0 space-y-4">+ {internalLinks.map((link, index) => (+ <li key={`internal-${index}`}>+ <Link+ onClick={() => setShowMobileMenu(false)}+ href={link.href}+ passHref+ className="text-lg text-black"+ >+ {link.text}+ </Link>+ </li>+ ))}+ <div className="pt-5 pb-8 space-y-4">+ {externalLinks.map((link, index) => (+ <li key={`external-${index}`}>+ <Link+ href={link.href}+ passHref+ target="_blank"+ className="flex items-center text-lg text-black"+ >+ {link.icon}+ <span className="ml-2 text-lg text-black">{link.text}</span>+ </Link>+ </li>+ ))}+ </div>+ </ul>+ <div className="flex flex-col gap-4 items-center">+ <Button+ variant="gray"+ href="/login"+ size="lg"+ className="w-full font-medium"+ >+ Login+ </Button>+ <Button+ variant="primary"+ href={auth === false ? "/download" : "/dashboard"}+ size="lg"+ className="w-full font-medium"+ >+ {auth === false ? "Download App" : "Dashboard"}+ </Button>+ </div>+ </nav>+ </div>+ </div>+ );+};++export default MobileMenu;diff --git a/apps/web/components/ui/Testimonials.tsx b/apps/web/components/ui/Testimonials.tsxindex 16c89bf85..f6ce41bc4 100644--- a/apps/web/components/ui/Testimonials.tsx+++ b/apps/web/components/ui/Testimonials.tsx@@ -1,8 +1,8 @@"use client";-import { testimonials, Testimonial } from "../../data/testimonials";-import Image from "next/image";import { motion } from "framer-motion";+import Image from "next/image";+import { Testimonial, testimonials } from "../../data/testimonials";interface TestimonialsProps {amount?: number;@@ -31,7 +31,7 @@ export const Testimonials = ({initial={{ opacity: 0, y: 20 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 0.4 }}- className="text-3xl text-center md:text-4xl tracking-[-.05em] font-medium text-[--text-primary]"+ className="text-3xl text-center md:text-4xl tracking-[-.05em] text-gray-12">{title}</motion.h2>@@ -39,18 +39,18 @@ export const Testimonials = ({initial={{ opacity: 0, y: 20 }}animate={{ opacity: 1, y: 0 }}transition={{ duration: 0.4, delay: 0.1 }}- className="mx-auto mt-4 max-w-2xl text-center text-gray-400"+ className="mx-auto mt-3 max-w-2xl text-center text-gray-10">{subtitle}</motion.p></>)}- <div className="mt-8 columns-1 md:columns-2 lg:columns-3 gap-3 space-y-3">+ <div className="gap-3 mt-8 space-y-3 columns-1 md:columns-2 lg:columns-3">{displayedTestimonials.map((testimonial, i) => (<motion.divkey={i}- className="break-inside-avoid mb-3"+ className="mb-3 break-inside-avoid"initial={{ opacity: 0, y: 10 }}animate={{ opacity: 1, y: 0 }}transition={{diff --git a/apps/web/components/ui/TextReveal.tsx b/apps/web/components/ui/TextReveal.tsxnew file mode 100644index 000000000..656d15fec--- /dev/null+++ b/apps/web/components/ui/TextReveal.tsx@@ -0,0 +1,68 @@+"use client";++import clsx from "clsx";+import { motion, MotionValue, useScroll, useTransform } from "framer-motion";+import { ComponentPropsWithoutRef, FC, ReactNode, useRef } from "react";++export interface TextRevealProps extends ComponentPropsWithoutRef<"div"> {+ children: string;+ wordToStrike?: string;+}++export const TextReveal: FC<TextRevealProps> = ({ children, className }) => {+ const targetRef = useRef<HTMLDivElement | null>(null);+ const { scrollYProgress } = useScroll({+ target: targetRef,+ });++ if (typeof children !== "string") {+ throw new Error("TextReveal: children must be a string");+ }++ const words = children.split(" ");++ return (+ <div ref={targetRef} className={clsx("relative z-0 h-[200vh]", className)}>+ <div+ className={+ "sticky top-0 mx-auto flex h-[50%] max-w-4xl justify-center items-center bg-transparent px-[1rem] py-[5rem]"+ }+ >+ <span+ ref={targetRef}+ className={+ "flex flex-wrap gap-y-4 justify-center p-5 text-3xl font-medium text-center md:gap-y-8 md:text-[52px] text-gray-12"+ }+ >+ {words.map((word, i) => {+ const start = i / words.length;+ const end = start + 1 / words.length;+ return (+ <Word key={i} progress={scrollYProgress} range={[start, end]}>+ {word}+ </Word>+ );+ })}+ </span>+ </div>+ </div>+ );+};++interface WordProps {+ children: ReactNode;+ progress: MotionValue<number>;+ range: [number, number];+}++const Word: FC<WordProps> = ({ children, progress, range }) => {+ const opacity = useTransform(progress, range, [0, 1]);+ return (+ <span className="xl:lg-3 relative mx-1 lg:mx-1.5">+ <span className="absolute opacity-30">{children}</span>+ <motion.span style={{ opacity: opacity }} className="text-gray-12">+ {children}+ </motion.span>+ </span>+ );+};diff --git a/apps/web/data/testimonials.ts b/apps/web/data/testimonials.tsindex a297b1a75..6037e40ff 100644--- a/apps/web/data/testimonials.ts+++ b/apps/web/data/testimonials.ts@@ -206,7 +206,7 @@ export const testimonials = [content: "Thank you for Cap!",url: "https://www.producthunt.com/products/cap-3?comment=4174238#cap-4",},-];+] as const;export type Testimonial = {name: string;diff --git a/apps/web/public/fonts/NeueMontreal-Bold.otf b/apps/web/public/fonts/NeueMontreal-Bold.otfnew file mode 100644index 000000000..a1c6974f0Binary files /dev/null and b/apps/web/public/fonts/NeueMontreal-Bold.otf differdiff --git a/apps/web/public/fonts/NeueMontreal-BoldItalic.otf b/apps/web/public/fonts/NeueMontreal-BoldItalic.otfnew file mode 100644index 000000000..798048d1fBinary files /dev/null and b/apps/web/public/fonts/NeueMontreal-BoldItalic.otf differdiff --git a/apps/web/public/fonts/NeueMontreal-Italic.otf b/apps/web/public/fonts/NeueMontreal-Italic.otfnew file mode 100644index 000000000..a8c17e707Binary files /dev/null and b/apps/web/public/fonts/NeueMontreal-Italic.otf differdiff --git a/apps/web/public/fonts/NeueMontreal-Light.otf b/apps/web/public/fonts/NeueMontreal-Light.otfnew file mode 100644index 000000000..4cc95879bBinary files /dev/null and b/apps/web/public/fonts/NeueMontreal-Light.otf differdiff --git a/apps/web/public/fonts/NeueMontreal-LightItalic.otf b/apps/web/public/fonts/NeueMontreal-LightItalic.otfnew file mode 100644index 000000000..b0dd5734bBinary files /dev/null and b/apps/web/public/fonts/NeueMontreal-LightItalic.otf differdiff --git a/apps/web/public/fonts/NeueMontreal-Medium.otf b/apps/web/public/fonts/NeueMontreal-Medium.otfnew file mode 100644index 000000000..43030e87dBinary files /dev/null and b/apps/web/public/fonts/NeueMontreal-Medium.otf differdiff --git a/apps/web/public/fonts/NeueMontreal-MediumItalic.otf b/apps/web/public/fonts/NeueMontreal-MediumItalic.otfnew file mode 100644index 000000000..78b2fc548Binary files /dev/null and b/apps/web/public/fonts/NeueMontreal-MediumItalic.otf differdiff --git a/apps/web/public/fonts/NeueMontreal-Regular.otf b/apps/web/public/fonts/NeueMontreal-Regular.otfnew file mode 100644index 000000000..0265060cbBinary files /dev/null and b/apps/web/public/fonts/NeueMontreal-Regular.otf differdiff --git a/apps/web/public/illustrations/app-perspective.webp b/apps/web/public/illustrations/app-perspective.webpnew file mode 100644index 000000000..586ddf6d5Binary files /dev/null and b/apps/web/public/illustrations/app-perspective.webp differdiff --git a/apps/web/public/illustrations/app.webp b/apps/web/public/illustrations/app.webpindex d37db694b..28d9ac9e5 100644Binary files a/apps/web/public/illustrations/app.webp and b/apps/web/public/illustrations/app.webp differdiff --git a/apps/web/public/illustrations/bottomcloud.webp b/apps/web/public/illustrations/bottomcloud.webpindex 41e0eccbf..b1a504040 100644Binary files a/apps/web/public/illustrations/bottomcloud.webp and b/apps/web/public/illustrations/bottomcloud.webp differdiff --git a/apps/web/public/illustrations/chipcloud.webp b/apps/web/public/illustrations/chipcloud.webpindex a9e330b30..8f986ed12 100644Binary files a/apps/web/public/illustrations/chipcloud.webp and b/apps/web/public/illustrations/chipcloud.webp differdiff --git a/apps/web/public/illustrations/cloud-1.png b/apps/web/public/illustrations/cloud-1.pngindex 4f5b4f91f..93f7d351f 100644Binary files a/apps/web/public/illustrations/cloud-1.png and b/apps/web/public/illustrations/cloud-1.png differdiff --git a/apps/web/public/illustrations/cloud-2.png b/apps/web/public/illustrations/cloud-2.pngindex e8d6a764f..67acef077 100644Binary files a/apps/web/public/illustrations/cloud-2.png and b/apps/web/public/illustrations/cloud-2.png differdiff --git a/apps/web/public/illustrations/cloud-3.png b/apps/web/public/illustrations/cloud-3.pngindex 7b5cc6df6..7c04c73cd 100644Binary files a/apps/web/public/illustrations/cloud-3.png and b/apps/web/public/illustrations/cloud-3.png differdiff --git a/apps/web/public/illustrations/ctabg.svg b/apps/web/public/illustrations/ctabg.svgnew file mode 100644index 000000000..9bfe7bf00--- /dev/null+++ b/apps/web/public/illustrations/ctabg.svg@@ -0,0 +1,750 @@+<svg width="878" height="290" viewBox="0 0 878 290" fill="none" xmlns="http://www.w3.org/2000/svg">+<mask id="mask0_1580_3060" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="878" height="290">+<rect width="878" height="290" fill="url(#paint0_radial_1580_3060)"/>+</mask>+<g mask="url(#mask0_1580_3060)">+<path opacity="0.46" d="M16 0.736328C24.5604 0.736328 31.5 7.67591 31.5 16.2363C31.5 24.7967 24.5604 31.7363 16 31.7363C7.43959 31.7363 0.5 24.7967 0.5 16.2363C0.5 7.67591 7.43959 0.736328 16 0.736328Z" fill="#F9F9F9" stroke="url(#paint1_linear_1580_3060)"/>+<path opacity="0.45" d="M58 0.736328C66.5604 0.736328 73.5 7.67591 73.5 16.2363C73.5 24.7967 66.5604 31.7363 58 31.7363C49.4396 31.7363 42.5 24.7967 42.5 16.2363C42.5 7.67591 49.4396 0.736328 58 0.736328Z" fill="#F9F9F9" stroke="url(#paint2_linear_1580_3060)"/>+<path opacity="0.54" d="M100 0.736328C108.56 0.736328 115.5 7.67591 115.5 16.2363C115.5 24.7967 108.56 31.7363 100 31.7363C91.4396 31.7363 84.5 24.7967 84.5 16.2363C84.5 7.67591 91.4396 0.736328 100 0.736328Z" fill="#F9F9F9" stroke="url(#paint3_linear_1580_3060)"/>+<path opacity="0.44" d="M142 0.736328C150.56 0.736328 157.5 7.67591 157.5 16.2363C157.5 24.7967 150.56 31.7363 142 31.7363C133.44 31.7363 126.5 24.7967 126.5 16.2363C126.5 7.67591 133.44 0.736328 142 0.736328Z" fill="#F9F9F9" stroke="url(#paint4_linear_1580_3060)"/>+<path opacity="0.42" d="M184 0.736328C192.56 0.736328 199.5 7.67591 199.5 16.2363C199.5 24.7967 192.56 31.7363 184 31.7363C175.44 31.7363 168.5 24.7967 168.5 16.2363C168.5 7.67591 175.44 0.736328 184 0.736328Z" fill="#F9F9F9" stroke="url(#paint5_linear_1580_3060)"/>+<path opacity="0.46" d="M226 0.736328C234.56 0.736328 241.5 7.67591 241.5 16.2363C241.5 24.7967 234.56 31.7363 226 31.7363C217.44 31.7363 210.5 24.7967 210.5 16.2363C210.5 7.67591 217.44 0.736328 226 0.736328Z" fill="#F9F9F9" stroke="url(#paint6_linear_1580_3060)"/>+<path opacity="0.56" d="M268 0.736328C276.56 0.736328 283.5 7.67591 283.5 16.2363C283.5 24.7967 276.56 31.7363 268 31.7363C259.44 31.7363 252.5 24.7967 252.5 16.2363C252.5 7.67591 259.44 0.736328 268 0.736328Z" fill="#F9F9F9" stroke="url(#paint7_linear_1580_3060)"/>+<path opacity="0.24" d="M310 0.736328C318.56 0.736328 325.5 7.67591 325.5 16.2363C325.5 24.7967 318.56 31.7363 310 31.7363C301.44 31.7363 294.5 24.7967 294.5 16.2363C294.5 7.67591 301.44 0.736328 310 0.736328Z" fill="#F9F9F9" stroke="url(#paint8_linear_1580_3060)"/>+<path opacity="0.56" d="M352 0.736328C360.56 0.736328 367.5 7.67591 367.5 16.2363C367.5 24.7967 360.56 31.7363 352 31.7363C343.44 31.7363 336.5 24.7967 336.5 16.2363C336.5 7.67591 343.44 0.736328 352 0.736328Z" fill="#F9F9F9" stroke="url(#paint9_linear_1580_3060)"/>+<path opacity="0.54" d="M394 0.736328C402.56 0.736328 409.5 7.67591 409.5 16.2363C409.5 24.7967 402.56 31.7363 394 31.7363C385.44 31.7363 378.5 24.7967 378.5 16.2363C378.5 7.67591 385.44 0.736328 394 0.736328Z" fill="#F9F9F9" stroke="url(#paint10_linear_1580_3060)"/>+<path opacity="0.2" d="M436 0.736328C444.56 0.736328 451.5 7.67591 451.5 16.2363C451.5 24.7967 444.56 31.7363 436 31.7363C427.44 31.7363 420.5 24.7967 420.5 16.2363C420.5 7.67591 427.44 0.736328 436 0.736328Z" fill="#F9F9F9" stroke="url(#paint11_linear_1580_3060)"/>+<path opacity="0.32" d="M478 0.736328C486.56 0.736328 493.5 7.67591 493.5 16.2363C493.5 24.7967 486.56 31.7363 478 31.7363C469.44 31.7363 462.5 24.7967 462.5 16.2363C462.5 7.67591 469.44 0.736328 478 0.736328Z" fill="#F9F9F9" stroke="url(#paint12_linear_1580_3060)"/>+<path opacity="0.56" d="M520 0.736328C528.56 0.736328 535.5 7.67591 535.5 16.2363C535.5 24.7967 528.56 31.7363 520 31.7363C511.44 31.7363 504.5 24.7967 504.5 16.2363C504.5 7.67591 511.44 0.736328 520 0.736328Z" fill="#F9F9F9" stroke="url(#paint13_linear_1580_3060)"/>+<path opacity="0.28" d="M562 0.736328C570.56 0.736328 577.5 7.67591 577.5 16.2363C577.5 24.7967 570.56 31.7363 562 31.7363C553.44 31.7363 546.5 24.7967 546.5 16.2363C546.5 7.67591 553.44 0.736328 562 0.736328Z" fill="#F9F9F9" stroke="url(#paint14_linear_1580_3060)"/>+<path opacity="0.44" d="M604 0.736328C612.56 0.736328 619.5 7.67591 619.5 16.2363C619.5 24.7967 612.56 31.7363 604 31.7363C595.44 31.7363 588.5 24.7967 588.5 16.2363C588.5 7.67591 595.44 0.736328 604 0.736328Z" fill="#F9F9F9" stroke="url(#paint15_linear_1580_3060)"/>+<path opacity="0.14" d="M646 0.736328C654.56 0.736328 661.5 7.67591 661.5 16.2363C661.5 24.7967 654.56 31.7363 646 31.7363C637.44 31.7363 630.5 24.7967 630.5 16.2363C630.5 7.67591 637.44 0.736328 646 0.736328Z" fill="#F9F9F9" stroke="url(#paint16_linear_1580_3060)"/>+<path opacity="0.33" d="M688 0.736328C696.56 0.736328 703.5 7.67591 703.5 16.2363C703.5 24.7967 696.56 31.7363 688 31.7363C679.44 31.7363 672.5 24.7967 672.5 16.2363C672.5 7.67591 679.44 0.736328 688 0.736328Z" fill="#F9F9F9" stroke="url(#paint17_linear_1580_3060)"/>+<path opacity="0.19" d="M730 0.736328C738.56 0.736328 745.5 7.67591 745.5 16.2363C745.5 24.7967 738.56 31.7363 730 31.7363C721.44 31.7363 714.5 24.7967 714.5 16.2363C714.5 7.67591 721.44 0.736328 730 0.736328Z" fill="#F9F9F9" stroke="url(#paint18_linear_1580_3060)"/>+<path opacity="0.49" d="M772 0.736328C780.56 0.736328 787.5 7.67591 787.5 16.2363C787.5 24.7967 780.56 31.7363 772 31.7363C763.44 31.7363 756.5 24.7967 756.5 16.2363C756.5 7.67591 763.44 0.736328 772 0.736328Z" fill="#F9F9F9" stroke="url(#paint19_linear_1580_3060)"/>+<path opacity="0.18" d="M814 0.736328C822.56 0.736328 829.5 7.67591 829.5 16.2363C829.5 24.7967 822.56 31.7363 814 31.7363C805.44 31.7363 798.5 24.7967 798.5 16.2363C798.5 7.67591 805.44 0.736328 814 0.736328Z" fill="#F9F9F9" stroke="url(#paint20_linear_1580_3060)"/>+<path opacity="0.53" d="M856 0.736328C864.56 0.736328 871.5 7.67591 871.5 16.2363C871.5 24.7967 864.56 31.7363 856 31.7363C847.44 31.7363 840.5 24.7967 840.5 16.2363C840.5 7.67591 847.44 0.736328 856 0.736328Z" fill="#F9F9F9" stroke="url(#paint21_linear_1580_3060)"/>+<path opacity="0.15" d="M16 42.7363C24.5604 42.7363 31.5 49.6759 31.5 58.2363C31.5 66.7967 24.5604 73.7363 16 73.7363C7.43959 73.7363 0.5 66.7967 0.5 58.2363C0.5 49.6759 7.43959 42.7363 16 42.7363Z" fill="#F9F9F9" stroke="url(#paint22_linear_1580_3060)"/>+<path opacity="0.52" d="M58 42.7363C66.5604 42.7363 73.5 49.6759 73.5 58.2363C73.5 66.7967 66.5604 73.7363 58 73.7363C49.4396 73.7363 42.5 66.7967 42.5 58.2363C42.5 49.6759 49.4396 42.7363 58 42.7363Z" fill="#F9F9F9" stroke="url(#paint23_linear_1580_3060)"/>+<path opacity="0.45" d="M100 42.7363C108.56 42.7363 115.5 49.6759 115.5 58.2363C115.5 66.7967 108.56 73.7363 100 73.7363C91.4396 73.7363 84.5 66.7967 84.5 58.2363C84.5 49.6759 91.4396 42.7363 100 42.7363Z" fill="#F9F9F9" stroke="url(#paint24_linear_1580_3060)"/>+<path opacity="0.27" d="M142 42.7363C150.56 42.7363 157.5 49.6759 157.5 58.2363C157.5 66.7967 150.56 73.7363 142 73.7363C133.44 73.7363 126.5 66.7967 126.5 58.2363C126.5 49.6759 133.44 42.7363 142 42.7363Z" fill="#F9F9F9" stroke="url(#paint25_linear_1580_3060)"/>+<path opacity="0.29" d="M184 42.7363C192.56 42.7363 199.5 49.6759 199.5 58.2363C199.5 66.7967 192.56 73.7363 184 73.7363C175.44 73.7363 168.5 66.7967 168.5 58.2363C168.5 49.6759 175.44 42.7363 184 42.7363Z" fill="#F9F9F9" stroke="url(#paint26_linear_1580_3060)"/>+<path opacity="0.49" d="M226 42.7363C234.56 42.7363 241.5 49.6759 241.5 58.2363C241.5 66.7967 234.56 73.7363 226 73.7363C217.44 73.7363 210.5 66.7967 210.5 58.2363C210.5 49.6759 217.44 42.7363 226 42.7363Z" fill="#F9F9F9" stroke="url(#paint27_linear_1580_3060)"/>+<path opacity="0.19" d="M268 42.7363C276.56 42.7363 283.5 49.6759 283.5 58.2363C283.5 66.7967 276.56 73.7363 268 73.7363C259.44 73.7363 252.5 66.7967 252.5 58.2363C252.5 49.6759 259.44 42.7363 268 42.7363Z" fill="#F9F9F9" stroke="url(#paint28_linear_1580_3060)"/>+<path opacity="0.42" d="M310 42.7363C318.56 42.7363 325.5 49.6759 325.5 58.2363C325.5 66.7967 318.56 73.7363 310 73.7363C301.44 73.7363 294.5 66.7967 294.5 58.2363C294.5 49.6759 301.44 42.7363 310 42.7363Z" fill="#F9F9F9" stroke="url(#paint29_linear_1580_3060)"/>+<path opacity="0.3" d="M352 42.7363C360.56 42.7363 367.5 49.6759 367.5 58.2363C367.5 66.7967 360.56 73.7363 352 73.7363C343.44 73.7363 336.5 66.7967 336.5 58.2363C336.5 49.6759 343.44 42.7363 352 42.7363Z" fill="#F9F9F9" stroke="url(#paint30_linear_1580_3060)"/>+<path opacity="0.33" d="M394 42.7363C402.56 42.7363 409.5 49.6759 409.5 58.2363C409.5 66.7967 402.56 73.7363 394 73.7363C385.44 73.7363 378.5 66.7967 378.5 58.2363C378.5 49.6759 385.44 42.7363 394 42.7363Z" fill="#F9F9F9" stroke="url(#paint31_linear_1580_3060)"/>+<path opacity="0.19" d="M436 42.7363C444.56 42.7363 451.5 49.6759 451.5 58.2363C451.5 66.7967 444.56 73.7363 436 73.7363C427.44 73.7363 420.5 66.7967 420.5 58.2363C420.5 49.6759 427.44 42.7363 436 42.7363Z" fill="#F9F9F9" stroke="url(#paint32_linear_1580_3060)"/>+<path opacity="0.11" d="M478 42.7363C486.56 42.7363 493.5 49.6759 493.5 58.2363C493.5 66.7967 486.56 73.7363 478 73.7363C469.44 73.7363 462.5 66.7967 462.5 58.2363C462.5 49.6759 469.44 42.7363 478 42.7363Z" fill="#F9F9F9" stroke="url(#paint33_linear_1580_3060)"/>+<path opacity="0.15" d="M520 42.7363C528.56 42.7363 535.5 49.6759 535.5 58.2363C535.5 66.7967 528.56 73.7363 520 73.7363C511.44 73.7363 504.5 66.7967 504.5 58.2363C504.5 49.6759 511.44 42.7363 520 42.7363Z" fill="#F9F9F9" stroke="url(#paint34_linear_1580_3060)"/>+<path opacity="0.55" d="M562 42.7363C570.56 42.7363 577.5 49.6759 577.5 58.2363C577.5 66.7967 570.56 73.7363 562 73.7363C553.44 73.7363 546.5 66.7967 546.5 58.2363C546.5 49.6759 553.44 42.7363 562 42.7363Z" fill="#F9F9F9" stroke="url(#paint35_linear_1580_3060)"/>+<path opacity="0.16" d="M604 42.7363C612.56 42.7363 619.5 49.6759 619.5 58.2363C619.5 66.7967 612.56 73.7363 604 73.7363C595.44 73.7363 588.5 66.7967 588.5 58.2363C588.5 49.6759 595.44 42.7363 604 42.7363Z" fill="#F9F9F9" stroke="url(#paint36_linear_1580_3060)"/>+<path opacity="0.37" d="M646 42.7363C654.56 42.7363 661.5 49.6759 661.5 58.2363C661.5 66.7967 654.56 73.7363 646 73.7363C637.44 73.7363 630.5 66.7967 630.5 58.2363C630.5 49.6759 637.44 42.7363 646 42.7363Z" fill="#F9F9F9" stroke="url(#paint37_linear_1580_3060)"/>+<path opacity="0.19" d="M688 42.7363C696.56 42.7363 703.5 49.6759 703.5 58.2363C703.5 66.7967 696.56 73.7363 688 73.7363C679.44 73.7363 672.5 66.7967 672.5 58.2363C672.5 49.6759 679.44 42.7363 688 42.7363Z" fill="#F9F9F9" stroke="url(#paint38_linear_1580_3060)"/>+<path opacity="0.3" d="M730 42.7363C738.56 42.7363 745.5 49.6759 745.5 58.2363C745.5 66.7967 738.56 73.7363 730 73.7363C721.44 73.7363 714.5 66.7967 714.5 58.2363C714.5 49.6759 721.44 42.7363 730 42.7363Z" fill="#F9F9F9" stroke="url(#paint39_linear_1580_3060)"/>+<path opacity="0.48" d="M772 42.7363C780.56 42.7363 787.5 49.6759 787.5 58.2363C787.5 66.7967 780.56 73.7363 772 73.7363C763.44 73.7363 756.5 66.7967 756.5 58.2363C756.5 49.6759 763.44 42.7363 772 42.7363Z" fill="#F9F9F9" stroke="url(#paint40_linear_1580_3060)"/>+<path opacity="0.4" d="M814 42.7363C822.56 42.7363 829.5 49.6759 829.5 58.2363C829.5 66.7967 822.56 73.7363 814 73.7363C805.44 73.7363 798.5 66.7967 798.5 58.2363C798.5 49.6759 805.44 42.7363 814 42.7363Z" fill="#F9F9F9" stroke="url(#paint41_linear_1580_3060)"/>+<path opacity="0.37" d="M856 42.7363C864.56 42.7363 871.5 49.6759 871.5 58.2363C871.5 66.7967 864.56 73.7363 856 73.7363C847.44 73.7363 840.5 66.7967 840.5 58.2363C840.5 49.6759 847.44 42.7363 856 42.7363Z" fill="#F9F9F9" stroke="url(#paint42_linear_1580_3060)"/>+<path opacity="0.18" d="M16 84.7363C24.5604 84.7363 31.5 91.6759 31.5 100.236C31.5 108.797 24.5604 115.736 16 115.736C7.43959 115.736 0.5 108.797 0.5 100.236C0.5 91.6759 7.43959 84.7363 16 84.7363Z" fill="#F9F9F9" stroke="url(#paint43_linear_1580_3060)"/>+<path opacity="0.23" d="M58 84.7363C66.5604 84.7363 73.5 91.6759 73.5 100.236C73.5 108.797 66.5604 115.736 58 115.736C49.4396 115.736 42.5 108.797 42.5 100.236C42.5 91.6759 49.4396 84.7363 58 84.7363Z" fill="#F9F9F9" stroke="url(#paint44_linear_1580_3060)"/>+<path opacity="0.3" d="M100 84.7363C108.56 84.7363 115.5 91.6759 115.5 100.236C115.5 108.797 108.56 115.736 100 115.736C91.4396 115.736 84.5 108.797 84.5 100.236C84.5 91.6759 91.4396 84.7363 100 84.7363Z" fill="#F9F9F9" stroke="url(#paint45_linear_1580_3060)"/>+<path opacity="0.43" d="M142 84.7363C150.56 84.7363 157.5 91.6759 157.5 100.236C157.5 108.797 150.56 115.736 142 115.736C133.44 115.736 126.5 108.797 126.5 100.236C126.5 91.6759 133.44 84.7363 142 84.7363Z" fill="#F9F9F9" stroke="url(#paint46_linear_1580_3060)"/>+<path opacity="0.46" d="M184 84.7363C192.56 84.7363 199.5 91.6759 199.5 100.236C199.5 108.797 192.56 115.736 184 115.736C175.44 115.736 168.5 108.797 168.5 100.236C168.5 91.6759 175.44 84.7363 184 84.7363Z" fill="#F9F9F9" stroke="url(#paint47_linear_1580_3060)"/>+<path opacity="0.29" d="M226 84.7363C234.56 84.7363 241.5 91.6759 241.5 100.236C241.5 108.797 234.56 115.736 226 115.736C217.44 115.736 210.5 108.797 210.5 100.236C210.5 91.6759 217.44 84.7363 226 84.7363Z" fill="#F9F9F9" stroke="url(#paint48_linear_1580_3060)"/>+<path opacity="0.11" d="M268 84.7363C276.56 84.7363 283.5 91.6759 283.5 100.236C283.5 108.797 276.56 115.736 268 115.736C259.44 115.736 252.5 108.797 252.5 100.236C252.5 91.6759 259.44 84.7363 268 84.7363Z" fill="#F9F9F9" stroke="url(#paint49_linear_1580_3060)"/>+<path opacity="0.25" d="M310 84.7363C318.56 84.7363 325.5 91.6759 325.5 100.236C325.5 108.797 318.56 115.736 310 115.736C301.44 115.736 294.5 108.797 294.5 100.236C294.5 91.6759 301.44 84.7363 310 84.7363Z" fill="#F9F9F9" stroke="url(#paint50_linear_1580_3060)"/>+<path opacity="0.52" d="M352 84.7363C360.56 84.7363 367.5 91.6759 367.5 100.236C367.5 108.797 360.56 115.736 352 115.736C343.44 115.736 336.5 108.797 336.5 100.236C336.5 91.6759 343.44 84.7363 352 84.7363Z" fill="#F9F9F9" stroke="url(#paint51_linear_1580_3060)"/>+<path opacity="0.57" d="M394 84.7363C402.56 84.7363 409.5 91.6759 409.5 100.236C409.5 108.797 402.56 115.736 394 115.736C385.44 115.736 378.5 108.797 378.5 100.236C378.5 91.6759 385.44 84.7363 394 84.7363Z" fill="#F9F9F9" stroke="url(#paint52_linear_1580_3060)"/>+<path opacity="0.35" d="M436 84.7363C444.56 84.7363 451.5 91.6759 451.5 100.236C451.5 108.797 444.56 115.736 436 115.736C427.44 115.736 420.5 108.797 420.5 100.236C420.5 91.6759 427.44 84.7363 436 84.7363Z" fill="#F9F9F9" stroke="url(#paint53_linear_1580_3060)"/>+<path opacity="0.49" d="M478 84.7363C486.56 84.7363 493.5 91.6759 493.5 100.236C493.5 108.797 486.56 115.736 478 115.736C469.44 115.736 462.5 108.797 462.5 100.236C462.5 91.6759 469.44 84.7363 478 84.7363Z" fill="#F9F9F9" stroke="url(#paint54_linear_1580_3060)"/>+<path opacity="0.37" d="M520 84.7363C528.56 84.7363 535.5 91.6759 535.5 100.236C535.5 108.797 528.56 115.736 520 115.736C511.44 115.736 504.5 108.797 504.5 100.236C504.5 91.6759 511.44 84.7363 520 84.7363Z" fill="#F9F9F9" stroke="url(#paint55_linear_1580_3060)"/>+<path opacity="0.19" d="M562 84.7363C570.56 84.7363 577.5 91.6759 577.5 100.236C577.5 108.797 570.56 115.736 562 115.736C553.44 115.736 546.5 108.797 546.5 100.236C546.5 91.6759 553.44 84.7363 562 84.7363Z" fill="#F9F9F9" stroke="url(#paint56_linear_1580_3060)"/>+<path opacity="0.56" d="M604 84.7363C612.56 84.7363 619.5 91.6759 619.5 100.236C619.5 108.797 612.56 115.736 604 115.736C595.44 115.736 588.5 108.797 588.5 100.236C588.5 91.6759 595.44 84.7363 604 84.7363Z" fill="#F9F9F9" stroke="url(#paint57_linear_1580_3060)"/>+<path opacity="0.51" d="M646 84.7363C654.56 84.7363 661.5 91.6759 661.5 100.236C661.5 108.797 654.56 115.736 646 115.736C637.44 115.736 630.5 108.797 630.5 100.236C630.5 91.6759 637.44 84.7363 646 84.7363Z" fill="#F9F9F9" stroke="url(#paint58_linear_1580_3060)"/>+<path opacity="0.43" d="M688 84.7363C696.56 84.7363 703.5 91.6759 703.5 100.236C703.5 108.797 696.56 115.736 688 115.736C679.44 115.736 672.5 108.797 672.5 100.236C672.5 91.6759 679.44 84.7363 688 84.7363Z" fill="#F9F9F9" stroke="url(#paint59_linear_1580_3060)"/>+<path opacity="0.5" d="M730 84.7363C738.56 84.7363 745.5 91.6759 745.5 100.236C745.5 108.797 738.56 115.736 730 115.736C721.44 115.736 714.5 108.797 714.5 100.236C714.5 91.6759 721.44 84.7363 730 84.7363Z" fill="#F9F9F9" stroke="url(#paint60_linear_1580_3060)"/>+<path opacity="0.15" d="M772 84.7363C780.56 84.7363 787.5 91.6759 787.5 100.236C787.5 108.797 780.56 115.736 772 115.736C763.44 115.736 756.5 108.797 756.5 100.236C756.5 91.6759 763.44 84.7363 772 84.7363Z" fill="#F9F9F9" stroke="url(#paint61_linear_1580_3060)"/>+<path opacity="0.3" d="M814 84.7363C822.56 84.7363 829.5 91.6759 829.5 100.236C829.5 108.797 822.56 115.736 814 115.736C805.44 115.736 798.5 108.797 798.5 100.236C798.5 91.6759 805.44 84.7363 814 84.7363Z" fill="#F9F9F9" stroke="url(#paint62_linear_1580_3060)"/>+<path opacity="0.44" d="M856 84.7363C864.56 84.7363 871.5 91.6759 871.5 100.236C871.5 108.797 864.56 115.736 856 115.736C847.44 115.736 840.5 108.797 840.5 100.236C840.5 91.6759 847.44 84.7363 856 84.7363Z" fill="#F9F9F9" stroke="url(#paint63_linear_1580_3060)"/>+<path opacity="0.59" d="M16 126.736C24.5604 126.736 31.5 133.676 31.5 142.236C31.5 150.797 24.5604 157.736 16 157.736C7.43959 157.736 0.5 150.797 0.5 142.236C0.5 133.676 7.43959 126.736 16 126.736Z" fill="#F9F9F9" stroke="url(#paint64_linear_1580_3060)"/>+<path opacity="0.23" d="M58 126.736C66.5604 126.736 73.5 133.676 73.5 142.236C73.5 150.797 66.5604 157.736 58 157.736C49.4396 157.736 42.5 150.797 42.5 142.236C42.5 133.676 49.4396 126.736 58 126.736Z" fill="#F9F9F9" stroke="url(#paint65_linear_1580_3060)"/>+<path opacity="0.24" d="M100 126.736C108.56 126.736 115.5 133.676 115.5 142.236C115.5 150.797 108.56 157.736 100 157.736C91.4396 157.736 84.5 150.797 84.5 142.236C84.5 133.676 91.4396 126.736 100 126.736Z" fill="#F9F9F9" stroke="url(#paint66_linear_1580_3060)"/>+<path opacity="0.6" d="M142 126.736C150.56 126.736 157.5 133.676 157.5 142.236C157.5 150.797 150.56 157.736 142 157.736C133.44 157.736 126.5 150.797 126.5 142.236C126.5 133.676 133.44 126.736 142 126.736Z" fill="#F9F9F9" stroke="url(#paint67_linear_1580_3060)"/>+<path opacity="0.22" d="M184 126.736C192.56 126.736 199.5 133.676 199.5 142.236C199.5 150.797 192.56 157.736 184 157.736C175.44 157.736 168.5 150.797 168.5 142.236C168.5 133.676 175.44 126.736 184 126.736Z" fill="#F9F9F9" stroke="url(#paint68_linear_1580_3060)"/>+<path opacity="0.55" d="M226 126.736C234.56 126.736 241.5 133.676 241.5 142.236C241.5 150.797 234.56 157.736 226 157.736C217.44 157.736 210.5 150.797 210.5 142.236C210.5 133.676 217.44 126.736 226 126.736Z" fill="#F9F9F9" stroke="url(#paint69_linear_1580_3060)"/>+<path opacity="0.41" d="M268 126.736C276.56 126.736 283.5 133.676 283.5 142.236C283.5 150.797 276.56 157.736 268 157.736C259.44 157.736 252.5 150.797 252.5 142.236C252.5 133.676 259.44 126.736 268 126.736Z" fill="#F9F9F9" stroke="url(#paint70_linear_1580_3060)"/>+<path opacity="0.11" d="M310 126.736C318.56 126.736 325.5 133.676 325.5 142.236C325.5 150.797 318.56 157.736 310 157.736C301.44 157.736 294.5 150.797 294.5 142.236C294.5 133.676 301.44 126.736 310 126.736Z" fill="#F9F9F9" stroke="url(#paint71_linear_1580_3060)"/>+<path opacity="0.34" d="M352 126.736C360.56 126.736 367.5 133.676 367.5 142.236C367.5 150.797 360.56 157.736 352 157.736C343.44 157.736 336.5 150.797 336.5 142.236C336.5 133.676 343.44 126.736 352 126.736Z" fill="#F9F9F9" stroke="url(#paint72_linear_1580_3060)"/>+<path opacity="0.54" d="M394 126.736C402.56 126.736 409.5 133.676 409.5 142.236C409.5 150.797 402.56 157.736 394 157.736C385.44 157.736 378.5 150.797 378.5 142.236C378.5 133.676 385.44 126.736 394 126.736Z" fill="#F9F9F9" stroke="url(#paint73_linear_1580_3060)"/>+<path opacity="0.19" d="M436 126.736C444.56 126.736 451.5 133.676 451.5 142.236C451.5 150.797 444.56 157.736 436 157.736C427.44 157.736 420.5 150.797 420.5 142.236C420.5 133.676 427.44 126.736 436 126.736Z" fill="#F9F9F9" stroke="url(#paint74_linear_1580_3060)"/>+<path opacity="0.35" d="M478 126.736C486.56 126.736 493.5 133.676 493.5 142.236C493.5 150.797 486.56 157.736 478 157.736C469.44 157.736 462.5 150.797 462.5 142.236C462.5 133.676 469.44 126.736 478 126.736Z" fill="#F9F9F9" stroke="url(#paint75_linear_1580_3060)"/>+<path opacity="0.28" d="M520 126.736C528.56 126.736 535.5 133.676 535.5 142.236C535.5 150.797 528.56 157.736 520 157.736C511.44 157.736 504.5 150.797 504.5 142.236C504.5 133.676 511.44 126.736 520 126.736Z" fill="#F9F9F9" stroke="url(#paint76_linear_1580_3060)"/>+<path opacity="0.12" d="M562 126.736C570.56 126.736 577.5 133.676 577.5 142.236C577.5 150.797 570.56 157.736 562 157.736C553.44 157.736 546.5 150.797 546.5 142.236C546.5 133.676 553.44 126.736 562 126.736Z" fill="#F9F9F9" stroke="url(#paint77_linear_1580_3060)"/>+<path opacity="0.37" d="M604 126.736C612.56 126.736 619.5 133.676 619.5 142.236C619.5 150.797 612.56 157.736 604 157.736C595.44 157.736 588.5 150.797 588.5 142.236C588.5 133.676 595.44 126.736 604 126.736Z" fill="#F9F9F9" stroke="url(#paint78_linear_1580_3060)"/>+<path opacity="0.36" d="M646 126.736C654.56 126.736 661.5 133.676 661.5 142.236C661.5 150.797 654.56 157.736 646 157.736C637.44 157.736 630.5 150.797 630.5 142.236C630.5 133.676 637.44 126.736 646 126.736Z" fill="#F9F9F9" stroke="url(#paint79_linear_1580_3060)"/>+<path opacity="0.57" d="M688 126.736C696.56 126.736 703.5 133.676 703.5 142.236C703.5 150.797 696.56 157.736 688 157.736C679.44 157.736 672.5 150.797 672.5 142.236C672.5 133.676 679.44 126.736 688 126.736Z" fill="#F9F9F9" stroke="url(#paint80_linear_1580_3060)"/>+<path opacity="0.45" d="M730 126.736C738.56 126.736 745.5 133.676 745.5 142.236C745.5 150.797 738.56 157.736 730 157.736C721.44 157.736 714.5 150.797 714.5 142.236C714.5 133.676 721.44 126.736 730 126.736Z" fill="#F9F9F9" stroke="url(#paint81_linear_1580_3060)"/>+<path opacity="0.1" d="M772 126.736C780.56 126.736 787.5 133.676 787.5 142.236C787.5 150.797 780.56 157.736 772 157.736C763.44 157.736 756.5 150.797 756.5 142.236C756.5 133.676 763.44 126.736 772 126.736Z" fill="#F9F9F9" stroke="url(#paint82_linear_1580_3060)"/>+<path opacity="0.33" d="M814 126.736C822.56 126.736 829.5 133.676 829.5 142.236C829.5 150.797 822.56 157.736 814 157.736C805.44 157.736 798.5 150.797 798.5 142.236C798.5 133.676 805.44 126.736 814 126.736Z" fill="#F9F9F9" stroke="url(#paint83_linear_1580_3060)"/>+<path opacity="0.4" d="M856 126.736C864.56 126.736 871.5 133.676 871.5 142.236C871.5 150.797 864.56 157.736 856 157.736C847.44 157.736 840.5 150.797 840.5 142.236C840.5 133.676 847.44 126.736 856 126.736Z" fill="#F9F9F9" stroke="url(#paint84_linear_1580_3060)"/>+<path opacity="0.19" d="M16 168.736C24.5604 168.736 31.5 175.676 31.5 184.236C31.5 192.797 24.5604 199.736 16 199.736C7.43959 199.736 0.5 192.797 0.5 184.236C0.5 175.676 7.43959 168.736 16 168.736Z" fill="#F9F9F9" stroke="url(#paint85_linear_1580_3060)"/>+<path opacity="0.42" d="M58 168.736C66.5604 168.736 73.5 175.676 73.5 184.236C73.5 192.797 66.5604 199.736 58 199.736C49.4396 199.736 42.5 192.797 42.5 184.236C42.5 175.676 49.4396 168.736 58 168.736Z" fill="#F9F9F9" stroke="url(#paint86_linear_1580_3060)"/>+<path opacity="0.49" d="M100 168.736C108.56 168.736 115.5 175.676 115.5 184.236C115.5 192.797 108.56 199.736 100 199.736C91.4396 199.736 84.5 192.797 84.5 184.236C84.5 175.676 91.4396 168.736 100 168.736Z" fill="#F9F9F9" stroke="url(#paint87_linear_1580_3060)"/>+<path opacity="0.47" d="M142 168.736C150.56 168.736 157.5 175.676 157.5 184.236C157.5 192.797 150.56 199.736 142 199.736C133.44 199.736 126.5 192.797 126.5 184.236C126.5 175.676 133.44 168.736 142 168.736Z" fill="#F9F9F9" stroke="url(#paint88_linear_1580_3060)"/>+<path opacity="0.42" d="M184 168.736C192.56 168.736 199.5 175.676 199.5 184.236C199.5 192.797 192.56 199.736 184 199.736C175.44 199.736 168.5 192.797 168.5 184.236C168.5 175.676 175.44 168.736 184 168.736Z" fill="#F9F9F9" stroke="url(#paint89_linear_1580_3060)"/>+<path opacity="0.26" d="M226 168.736C234.56 168.736 241.5 175.676 241.5 184.236C241.5 192.797 234.56 199.736 226 199.736C217.44 199.736 210.5 192.797 210.5 184.236C210.5 175.676 217.44 168.736 226 168.736Z" fill="#F9F9F9" stroke="url(#paint90_linear_1580_3060)"/>+<path opacity="0.53" d="M268 168.736C276.56 168.736 283.5 175.676 283.5 184.236C283.5 192.797 276.56 199.736 268 199.736C259.44 199.736 252.5 192.797 252.5 184.236C252.5 175.676 259.44 168.736 268 168.736Z" fill="#F9F9F9" stroke="url(#paint91_linear_1580_3060)"/>+<path opacity="0.58" d="M310 168.736C318.56 168.736 325.5 175.676 325.5 184.236C325.5 192.797 318.56 199.736 310 199.736C301.44 199.736 294.5 192.797 294.5 184.236C294.5 175.676 301.44 168.736 310 168.736Z" fill="#F9F9F9" stroke="url(#paint92_linear_1580_3060)"/>+<path opacity="0.35" d="M352 168.736C360.56 168.736 367.5 175.676 367.5 184.236C367.5 192.797 360.56 199.736 352 199.736C343.44 199.736 336.5 192.797 336.5 184.236C336.5 175.676 343.44 168.736 352 168.736Z" fill="#F9F9F9" stroke="url(#paint93_linear_1580_3060)"/>+<path opacity="0.55" d="M394 168.736C402.56 168.736 409.5 175.676 409.5 184.236C409.5 192.797 402.56 199.736 394 199.736C385.44 199.736 378.5 192.797 378.5 184.236C378.5 175.676 385.44 168.736 394 168.736Z" fill="#F9F9F9" stroke="url(#paint94_linear_1580_3060)"/>+<path opacity="0.2" d="M436 168.736C444.56 168.736 451.5 175.676 451.5 184.236C451.5 192.797 444.56 199.736 436 199.736C427.44 199.736 420.5 192.797 420.5 184.236C420.5 175.676 427.44 168.736 436 168.736Z" fill="#F9F9F9" stroke="url(#paint95_linear_1580_3060)"/>+<path opacity="0.12" d="M478 168.736C486.56 168.736 493.5 175.676 493.5 184.236C493.5 192.797 486.56 199.736 478 199.736C469.44 199.736 462.5 192.797 462.5 184.236C462.5 175.676 469.44 168.736 478 168.736Z" fill="#F9F9F9" stroke="url(#paint96_linear_1580_3060)"/>+<path opacity="0.52" d="M520 168.736C528.56 168.736 535.5 175.676 535.5 184.236C535.5 192.797 528.56 199.736 520 199.736C511.44 199.736 504.5 192.797 504.5 184.236C504.5 175.676 511.44 168.736 520 168.736Z" fill="#F9F9F9" stroke="url(#paint97_linear_1580_3060)"/>+<path opacity="0.27" d="M562 168.736C570.56 168.736 577.5 175.676 577.5 184.236C577.5 192.797 570.56 199.736 562 199.736C553.44 199.736 546.5 192.797 546.5 184.236C546.5 175.676 553.44 168.736 562 168.736Z" fill="#F9F9F9" stroke="url(#paint98_linear_1580_3060)"/>+<path opacity="0.58" d="M604 168.736C612.56 168.736 619.5 175.676 619.5 184.236C619.5 192.797 612.56 199.736 604 199.736C595.44 199.736 588.5 192.797 588.5 184.236C588.5 175.676 595.44 168.736 604 168.736Z" fill="#F9F9F9" stroke="url(#paint99_linear_1580_3060)"/>+<path opacity="0.47" d="M646 168.736C654.56 168.736 661.5 175.676 661.5 184.236C661.5 192.797 654.56 199.736 646 199.736C637.44 199.736 630.5 192.797 630.5 184.236C630.5 175.676 637.44 168.736 646 168.736Z" fill="#F9F9F9" stroke="url(#paint100_linear_1580_3060)"/>+<path opacity="0.21" d="M688 168.736C696.56 168.736 703.5 175.676 703.5 184.236C703.5 192.797 696.56 199.736 688 199.736C679.44 199.736 672.5 192.797 672.5 184.236C672.5 175.676 679.44 168.736 688 168.736Z" fill="#F9F9F9" stroke="url(#paint101_linear_1580_3060)"/>+<path opacity="0.1" d="M730 168.736C738.56 168.736 745.5 175.676 745.5 184.236C745.5 192.797 738.56 199.736 730 199.736C721.44 199.736 714.5 192.797 714.5 184.236C714.5 175.676 721.44 168.736 730 168.736Z" fill="#F9F9F9" stroke="url(#paint102_linear_1580_3060)"/>+<path opacity="0.41" d="M772 168.736C780.56 168.736 787.5 175.676 787.5 184.236C787.5 192.797 780.56 199.736 772 199.736C763.44 199.736 756.5 192.797 756.5 184.236C756.5 175.676 763.44 168.736 772 168.736Z" fill="#F9F9F9" stroke="url(#paint103_linear_1580_3060)"/>+<path opacity="0.34" d="M814 168.736C822.56 168.736 829.5 175.676 829.5 184.236C829.5 192.797 822.56 199.736 814 199.736C805.44 199.736 798.5 192.797 798.5 184.236C798.5 175.676 805.44 168.736 814 168.736Z" fill="#F9F9F9" stroke="url(#paint104_linear_1580_3060)"/>+<path opacity="0.5" d="M856 168.736C864.56 168.736 871.5 175.676 871.5 184.236C871.5 192.797 864.56 199.736 856 199.736C847.44 199.736 840.5 192.797 840.5 184.236C840.5 175.676 847.44 168.736 856 168.736Z" fill="#F9F9F9" stroke="url(#paint105_linear_1580_3060)"/>+<path opacity="0.23" d="M16 210.736C24.5604 210.736 31.5 217.676 31.5 226.236C31.5 234.797 24.5604 241.736 16 241.736C7.43959 241.736 0.5 234.797 0.5 226.236C0.5 217.676 7.43959 210.736 16 210.736Z" fill="#F9F9F9" stroke="url(#paint106_linear_1580_3060)"/>+<path opacity="0.15" d="M58 210.736C66.5604 210.736 73.5 217.676 73.5 226.236C73.5 234.797 66.5604 241.736 58 241.736C49.4396 241.736 42.5 234.797 42.5 226.236C42.5 217.676 49.4396 210.736 58 210.736Z" fill="#F9F9F9" stroke="url(#paint107_linear_1580_3060)"/>+<path opacity="0.19" d="M100 210.736C108.56 210.736 115.5 217.676 115.5 226.236C115.5 234.797 108.56 241.736 100 241.736C91.4396 241.736 84.5 234.797 84.5 226.236C84.5 217.676 91.4396 210.736 100 210.736Z" fill="#F9F9F9" stroke="url(#paint108_linear_1580_3060)"/>+<path opacity="0.23" d="M142 210.736C150.56 210.736 157.5 217.676 157.5 226.236C157.5 234.797 150.56 241.736 142 241.736C133.44 241.736 126.5 234.797 126.5 226.236C126.5 217.676 133.44 210.736 142 210.736Z" fill="#F9F9F9" stroke="url(#paint109_linear_1580_3060)"/>+<path opacity="0.35" d="M184 210.736C192.56 210.736 199.5 217.676 199.5 226.236C199.5 234.797 192.56 241.736 184 241.736C175.44 241.736 168.5 234.797 168.5 226.236C168.5 217.676 175.44 210.736 184 210.736Z" fill="#F9F9F9" stroke="url(#paint110_linear_1580_3060)"/>+<path opacity="0.15" d="M226 210.736C234.56 210.736 241.5 217.676 241.5 226.236C241.5 234.797 234.56 241.736 226 241.736C217.44 241.736 210.5 234.797 210.5 226.236C210.5 217.676 217.44 210.736 226 210.736Z" fill="#F9F9F9" stroke="url(#paint111_linear_1580_3060)"/>+<path opacity="0.34" d="M268 210.736C276.56 210.736 283.5 217.676 283.5 226.236C283.5 234.797 276.56 241.736 268 241.736C259.44 241.736 252.5 234.797 252.5 226.236C252.5 217.676 259.44 210.736 268 210.736Z" fill="#F9F9F9" stroke="url(#paint112_linear_1580_3060)"/>+<path opacity="0.17" d="M310 210.736C318.56 210.736 325.5 217.676 325.5 226.236C325.5 234.797 318.56 241.736 310 241.736C301.44 241.736 294.5 234.797 294.5 226.236C294.5 217.676 301.44 210.736 310 210.736Z" fill="#F9F9F9" stroke="url(#paint113_linear_1580_3060)"/>+<path opacity="0.53" d="M352 210.736C360.56 210.736 367.5 217.676 367.5 226.236C367.5 234.797 360.56 241.736 352 241.736C343.44 241.736 336.5 234.797 336.5 226.236C336.5 217.676 343.44 210.736 352 210.736Z" fill="#F9F9F9" stroke="url(#paint114_linear_1580_3060)"/>+<path opacity="0.34" d="M394 210.736C402.56 210.736 409.5 217.676 409.5 226.236C409.5 234.797 402.56 241.736 394 241.736C385.44 241.736 378.5 234.797 378.5 226.236C378.5 217.676 385.44 210.736 394 210.736Z" fill="#F9F9F9" stroke="url(#paint115_linear_1580_3060)"/>+<path opacity="0.24" d="M436 210.736C444.56 210.736 451.5 217.676 451.5 226.236C451.5 234.797 444.56 241.736 436 241.736C427.44 241.736 420.5 234.797 420.5 226.236C420.5 217.676 427.44 210.736 436 210.736Z" fill="#F9F9F9" stroke="url(#paint116_linear_1580_3060)"/>+<path opacity="0.14" d="M478 210.736C486.56 210.736 493.5 217.676 493.5 226.236C493.5 234.797 486.56 241.736 478 241.736C469.44 241.736 462.5 234.797 462.5 226.236C462.5 217.676 469.44 210.736 478 210.736Z" fill="#F9F9F9" stroke="url(#paint117_linear_1580_3060)"/>+<path opacity="0.4" d="M520 210.736C528.56 210.736 535.5 217.676 535.5 226.236C535.5 234.797 528.56 241.736 520 241.736C511.44 241.736 504.5 234.797 504.5 226.236C504.5 217.676 511.44 210.736 520 210.736Z" fill="#F9F9F9" stroke="url(#paint118_linear_1580_3060)"/>+<path opacity="0.45" d="M562 210.736C570.56 210.736 577.5 217.676 577.5 226.236C577.5 234.797 570.56 241.736 562 241.736C553.44 241.736 546.5 234.797 546.5 226.236C546.5 217.676 553.44 210.736 562 210.736Z" fill="#F9F9F9" stroke="url(#paint119_linear_1580_3060)"/>+<path opacity="0.17" d="M604 210.736C612.56 210.736 619.5 217.676 619.5 226.236C619.5 234.797 612.56 241.736 604 241.736C595.44 241.736 588.5 234.797 588.5 226.236C588.5 217.676 595.44 210.736 604 210.736Z" fill="#F9F9F9" stroke="url(#paint120_linear_1580_3060)"/>+<path opacity="0.12" d="M646 210.736C654.56 210.736 661.5 217.676 661.5 226.236C661.5 234.797 654.56 241.736 646 241.736C637.44 241.736 630.5 234.797 630.5 226.236C630.5 217.676 637.44 210.736 646 210.736Z" fill="#F9F9F9" stroke="url(#paint121_linear_1580_3060)"/>+<path opacity="0.2" d="M688 210.736C696.56 210.736 703.5 217.676 703.5 226.236C703.5 234.797 696.56 241.736 688 241.736C679.44 241.736 672.5 234.797 672.5 226.236C672.5 217.676 679.44 210.736 688 210.736Z" fill="#F9F9F9" stroke="url(#paint122_linear_1580_3060)"/>+<path opacity="0.47" d="M730 210.736C738.56 210.736 745.5 217.676 745.5 226.236C745.5 234.797 738.56 241.736 730 241.736C721.44 241.736 714.5 234.797 714.5 226.236C714.5 217.676 721.44 210.736 730 210.736Z" fill="#F9F9F9" stroke="url(#paint123_linear_1580_3060)"/>+<path opacity="0.6" d="M772 210.736C780.56 210.736 787.5 217.676 787.5 226.236C787.5 234.797 780.56 241.736 772 241.736C763.44 241.736 756.5 234.797 756.5 226.236C756.5 217.676 763.44 210.736 772 210.736Z" fill="#F9F9F9" stroke="url(#paint124_linear_1580_3060)"/>+<path opacity="0.32" d="M814 210.736C822.56 210.736 829.5 217.676 829.5 226.236C829.5 234.797 822.56 241.736 814 241.736C805.44 241.736 798.5 234.797 798.5 226.236C798.5 217.676 805.44 210.736 814 210.736Z" fill="#F9F9F9" stroke="url(#paint125_linear_1580_3060)"/>+<path opacity="0.48" d="M856 210.736C864.56 210.736 871.5 217.676 871.5 226.236C871.5 234.797 864.56 241.736 856 241.736C847.44 241.736 840.5 234.797 840.5 226.236C840.5 217.676 847.44 210.736 856 210.736Z" fill="#F9F9F9" stroke="url(#paint126_linear_1580_3060)"/>+<path opacity="0.12" d="M16 252.736C24.5604 252.736 31.5 259.676 31.5 268.236C31.5 276.797 24.5604 283.736 16 283.736C7.43959 283.736 0.5 276.797 0.5 268.236C0.5 259.676 7.43959 252.736 16 252.736Z" fill="#F9F9F9" stroke="url(#paint127_linear_1580_3060)"/>+<path opacity="0.42" d="M58 252.736C66.5604 252.736 73.5 259.676 73.5 268.236C73.5 276.797 66.5604 283.736 58 283.736C49.4396 283.736 42.5 276.797 42.5 268.236C42.5 259.676 49.4396 252.736 58 252.736Z" fill="#F9F9F9" stroke="url(#paint128_linear_1580_3060)"/>+<path opacity="0.27" d="M100 252.736C108.56 252.736 115.5 259.676 115.5 268.236C115.5 276.797 108.56 283.736 100 283.736C91.4396 283.736 84.5 276.797 84.5 268.236C84.5 259.676 91.4396 252.736 100 252.736Z" fill="#F9F9F9" stroke="url(#paint129_linear_1580_3060)"/>+<path opacity="0.31" d="M142 252.736C150.56 252.736 157.5 259.676 157.5 268.236C157.5 276.797 150.56 283.736 142 283.736C133.44 283.736 126.5 276.797 126.5 268.236C126.5 259.676 133.44 252.736 142 252.736Z" fill="#F9F9F9" stroke="url(#paint130_linear_1580_3060)"/>+<path opacity="0.5" d="M184 252.736C192.56 252.736 199.5 259.676 199.5 268.236C199.5 276.797 192.56 283.736 184 283.736C175.44 283.736 168.5 276.797 168.5 268.236C168.5 259.676 175.44 252.736 184 252.736Z" fill="#F9F9F9" stroke="url(#paint131_linear_1580_3060)"/>+<path opacity="0.22" d="M226 252.736C234.56 252.736 241.5 259.676 241.5 268.236C241.5 276.797 234.56 283.736 226 283.736C217.44 283.736 210.5 276.797 210.5 268.236C210.5 259.676 217.44 252.736 226 252.736Z" fill="#F9F9F9" stroke="url(#paint132_linear_1580_3060)"/>+<path opacity="0.25" d="M268 252.736C276.56 252.736 283.5 259.676 283.5 268.236C283.5 276.797 276.56 283.736 268 283.736C259.44 283.736 252.5 276.797 252.5 268.236C252.5 259.676 259.44 252.736 268 252.736Z" fill="#F9F9F9" stroke="url(#paint133_linear_1580_3060)"/>+<path opacity="0.2" d="M310 252.736C318.56 252.736 325.5 259.676 325.5 268.236C325.5 276.797 318.56 283.736 310 283.736C301.44 283.736 294.5 276.797 294.5 268.236C294.5 259.676 301.44 252.736 310 252.736Z" fill="#F9F9F9" stroke="url(#paint134_linear_1580_3060)"/>+<path opacity="0.17" d="M352 252.736C360.56 252.736 367.5 259.676 367.5 268.236C367.5 276.797 360.56 283.736 352 283.736C343.44 283.736 336.5 276.797 336.5 268.236C336.5 259.676 343.44 252.736 352 252.736Z" fill="#F9F9F9" stroke="url(#paint135_linear_1580_3060)"/>+<path opacity="0.19" d="M394 252.736C402.56 252.736 409.5 259.676 409.5 268.236C409.5 276.797 402.56 283.736 394 283.736C385.44 283.736 378.5 276.797 378.5 268.236C378.5 259.676 385.44 252.736 394 252.736Z" fill="#F9F9F9" stroke="url(#paint136_linear_1580_3060)"/>+<path opacity="0.57" d="M436 252.736C444.56 252.736 451.5 259.676 451.5 268.236C451.5 276.797 444.56 283.736 436 283.736C427.44 283.736 420.5 276.797 420.5 268.236C420.5 259.676 427.44 252.736 436 252.736Z" fill="#F9F9F9" stroke="url(#paint137_linear_1580_3060)"/>+<path opacity="0.32" d="M478 252.736C486.56 252.736 493.5 259.676 493.5 268.236C493.5 276.797 486.56 283.736 478 283.736C469.44 283.736 462.5 276.797 462.5 268.236C462.5 259.676 469.44 252.736 478 252.736Z" fill="#F9F9F9" stroke="url(#paint138_linear_1580_3060)"/>+<path opacity="0.56" d="M520 252.736C528.56 252.736 535.5 259.676 535.5 268.236C535.5 276.797 528.56 283.736 520 283.736C511.44 283.736 504.5 276.797 504.5 268.236C504.5 259.676 511.44 252.736 520 252.736Z" fill="#F9F9F9" stroke="url(#paint139_linear_1580_3060)"/>+<path opacity="0.36" d="M562 252.736C570.56 252.736 577.5 259.676 577.5 268.236C577.5 276.797 570.56 283.736 562 283.736C553.44 283.736 546.5 276.797 546.5 268.236C546.5 259.676 553.44 252.736 562 252.736Z" fill="#F9F9F9" stroke="url(#paint140_linear_1580_3060)"/>+<path opacity="0.6" d="M604 252.736C612.56 252.736 619.5 259.676 619.5 268.236C619.5 276.797 612.56 283.736 604 283.736C595.44 283.736 588.5 276.797 588.5 268.236C588.5 259.676 595.44 252.736 604 252.736Z" fill="#F9F9F9" stroke="url(#paint141_linear_1580_3060)"/>+<path opacity="0.23" d="M646 252.736C654.56 252.736 661.5 259.676 661.5 268.236C661.5 276.797 654.56 283.736 646 283.736C637.44 283.736 630.5 276.797 630.5 268.236C630.5 259.676 637.44 252.736 646 252.736Z" fill="#F9F9F9" stroke="url(#paint142_linear_1580_3060)"/>+<path opacity="0.31" d="M688 252.736C696.56 252.736 703.5 259.676 703.5 268.236C703.5 276.797 696.56 283.736 688 283.736C679.44 283.736 672.5 276.797 672.5 268.236C672.5 259.676 679.44 252.736 688 252.736Z" fill="#F9F9F9" stroke="url(#paint143_linear_1580_3060)"/>+<path opacity="0.23" d="M730 252.736C738.56 252.736 745.5 259.676 745.5 268.236C745.5 276.797 738.56 283.736 730 283.736C721.44 283.736 714.5 276.797 714.5 268.236C714.5 259.676 721.44 252.736 730 252.736Z" fill="#F9F9F9" stroke="url(#paint144_linear_1580_3060)"/>+<path opacity="0.5" d="M772 252.736C780.56 252.736 787.5 259.676 787.5 268.236C787.5 276.797 780.56 283.736 772 283.736C763.44 283.736 756.5 276.797 756.5 268.236C756.5 259.676 763.44 252.736 772 252.736Z" fill="#F9F9F9" stroke="url(#paint145_linear_1580_3060)"/>+<path opacity="0.52" d="M814 252.736C822.56 252.736 829.5 259.676 829.5 268.236C829.5 276.797 822.56 283.736 814 283.736C805.44 283.736 798.5 276.797 798.5 268.236C798.5 259.676 805.44 252.736 814 252.736Z" fill="#F9F9F9" stroke="url(#paint146_linear_1580_3060)"/>+<path opacity="0.23" d="M856 252.736C864.56 252.736 871.5 259.676 871.5 268.236C871.5 276.797 864.56 283.736 856 283.736C847.44 283.736 840.5 276.797 840.5 268.236C840.5 259.676 847.44 252.736 856 252.736Z" fill="#F9F9F9" stroke="url(#paint147_linear_1580_3060)"/>+</g>+<defs>+<radialGradient id="paint0_radial_1580_3060" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(866.5 277.306) rotate(-162.506) scale(894.889 1681.04)">+<stop stop-color="#D9D9D9"/>+<stop offset="0.328924" stop-color="#CBCBCB" stop-opacity="0"/>+<stop offset="0.835591" stop-color="#BDBDBD" stop-opacity="0"/>+<stop offset="1" stop-color="#737373"/>+</radialGradient>+<linearGradient id="paint1_linear_1580_3060" x1="7.5" y1="1.73633" x2="21.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint2_linear_1580_3060" x1="49.5" y1="1.73633" x2="63.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint3_linear_1580_3060" x1="91.5" y1="1.73633" x2="105.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint4_linear_1580_3060" x1="133.5" y1="1.73633" x2="147.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint5_linear_1580_3060" x1="175.5" y1="1.73633" x2="189.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint6_linear_1580_3060" x1="217.5" y1="1.73633" x2="231.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint7_linear_1580_3060" x1="259.5" y1="1.73633" x2="273.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint8_linear_1580_3060" x1="301.5" y1="1.73633" x2="315.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint9_linear_1580_3060" x1="343.5" y1="1.73633" x2="357.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint10_linear_1580_3060" x1="385.5" y1="1.73633" x2="399.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint11_linear_1580_3060" x1="427.5" y1="1.73633" x2="441.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint12_linear_1580_3060" x1="469.5" y1="1.73633" x2="483.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint13_linear_1580_3060" x1="511.5" y1="1.73633" x2="525.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint14_linear_1580_3060" x1="553.5" y1="1.73633" x2="567.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint15_linear_1580_3060" x1="595.5" y1="1.73633" x2="609.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint16_linear_1580_3060" x1="637.5" y1="1.73633" x2="651.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint17_linear_1580_3060" x1="679.5" y1="1.73633" x2="693.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint18_linear_1580_3060" x1="721.5" y1="1.73633" x2="735.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint19_linear_1580_3060" x1="763.5" y1="1.73633" x2="777.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint20_linear_1580_3060" x1="805.5" y1="1.73633" x2="819.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint21_linear_1580_3060" x1="847.5" y1="1.73633" x2="861.5" y2="21.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint22_linear_1580_3060" x1="7.5" y1="43.7363" x2="21.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint23_linear_1580_3060" x1="49.5" y1="43.7363" x2="63.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint24_linear_1580_3060" x1="91.5" y1="43.7363" x2="105.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint25_linear_1580_3060" x1="133.5" y1="43.7363" x2="147.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint26_linear_1580_3060" x1="175.5" y1="43.7363" x2="189.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint27_linear_1580_3060" x1="217.5" y1="43.7363" x2="231.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint28_linear_1580_3060" x1="259.5" y1="43.7363" x2="273.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint29_linear_1580_3060" x1="301.5" y1="43.7363" x2="315.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint30_linear_1580_3060" x1="343.5" y1="43.7363" x2="357.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint31_linear_1580_3060" x1="385.5" y1="43.7363" x2="399.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint32_linear_1580_3060" x1="427.5" y1="43.7363" x2="441.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint33_linear_1580_3060" x1="469.5" y1="43.7363" x2="483.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint34_linear_1580_3060" x1="511.5" y1="43.7363" x2="525.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint35_linear_1580_3060" x1="553.5" y1="43.7363" x2="567.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint36_linear_1580_3060" x1="595.5" y1="43.7363" x2="609.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint37_linear_1580_3060" x1="637.5" y1="43.7363" x2="651.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint38_linear_1580_3060" x1="679.5" y1="43.7363" x2="693.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint39_linear_1580_3060" x1="721.5" y1="43.7363" x2="735.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint40_linear_1580_3060" x1="763.5" y1="43.7363" x2="777.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint41_linear_1580_3060" x1="805.5" y1="43.7363" x2="819.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint42_linear_1580_3060" x1="847.5" y1="43.7363" x2="861.5" y2="63.2363" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint43_linear_1580_3060" x1="7.5" y1="85.7363" x2="21.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint44_linear_1580_3060" x1="49.5" y1="85.7363" x2="63.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint45_linear_1580_3060" x1="91.5" y1="85.7363" x2="105.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint46_linear_1580_3060" x1="133.5" y1="85.7363" x2="147.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint47_linear_1580_3060" x1="175.5" y1="85.7363" x2="189.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint48_linear_1580_3060" x1="217.5" y1="85.7363" x2="231.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint49_linear_1580_3060" x1="259.5" y1="85.7363" x2="273.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint50_linear_1580_3060" x1="301.5" y1="85.7363" x2="315.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint51_linear_1580_3060" x1="343.5" y1="85.7363" x2="357.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint52_linear_1580_3060" x1="385.5" y1="85.7363" x2="399.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint53_linear_1580_3060" x1="427.5" y1="85.7363" x2="441.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint54_linear_1580_3060" x1="469.5" y1="85.7363" x2="483.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint55_linear_1580_3060" x1="511.5" y1="85.7363" x2="525.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint56_linear_1580_3060" x1="553.5" y1="85.7363" x2="567.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint57_linear_1580_3060" x1="595.5" y1="85.7363" x2="609.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint58_linear_1580_3060" x1="637.5" y1="85.7363" x2="651.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint59_linear_1580_3060" x1="679.5" y1="85.7363" x2="693.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint60_linear_1580_3060" x1="721.5" y1="85.7363" x2="735.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint61_linear_1580_3060" x1="763.5" y1="85.7363" x2="777.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint62_linear_1580_3060" x1="805.5" y1="85.7363" x2="819.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint63_linear_1580_3060" x1="847.5" y1="85.7363" x2="861.5" y2="105.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint64_linear_1580_3060" x1="7.5" y1="127.736" x2="21.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint65_linear_1580_3060" x1="49.5" y1="127.736" x2="63.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint66_linear_1580_3060" x1="91.5" y1="127.736" x2="105.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint67_linear_1580_3060" x1="133.5" y1="127.736" x2="147.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint68_linear_1580_3060" x1="175.5" y1="127.736" x2="189.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint69_linear_1580_3060" x1="217.5" y1="127.736" x2="231.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint70_linear_1580_3060" x1="259.5" y1="127.736" x2="273.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint71_linear_1580_3060" x1="301.5" y1="127.736" x2="315.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint72_linear_1580_3060" x1="343.5" y1="127.736" x2="357.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint73_linear_1580_3060" x1="385.5" y1="127.736" x2="399.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint74_linear_1580_3060" x1="427.5" y1="127.736" x2="441.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint75_linear_1580_3060" x1="469.5" y1="127.736" x2="483.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint76_linear_1580_3060" x1="511.5" y1="127.736" x2="525.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint77_linear_1580_3060" x1="553.5" y1="127.736" x2="567.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint78_linear_1580_3060" x1="595.5" y1="127.736" x2="609.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint79_linear_1580_3060" x1="637.5" y1="127.736" x2="651.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint80_linear_1580_3060" x1="679.5" y1="127.736" x2="693.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint81_linear_1580_3060" x1="721.5" y1="127.736" x2="735.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint82_linear_1580_3060" x1="763.5" y1="127.736" x2="777.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint83_linear_1580_3060" x1="805.5" y1="127.736" x2="819.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint84_linear_1580_3060" x1="847.5" y1="127.736" x2="861.5" y2="147.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint85_linear_1580_3060" x1="7.5" y1="169.736" x2="21.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint86_linear_1580_3060" x1="49.5" y1="169.736" x2="63.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint87_linear_1580_3060" x1="91.5" y1="169.736" x2="105.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint88_linear_1580_3060" x1="133.5" y1="169.736" x2="147.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint89_linear_1580_3060" x1="175.5" y1="169.736" x2="189.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint90_linear_1580_3060" x1="217.5" y1="169.736" x2="231.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint91_linear_1580_3060" x1="259.5" y1="169.736" x2="273.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint92_linear_1580_3060" x1="301.5" y1="169.736" x2="315.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint93_linear_1580_3060" x1="343.5" y1="169.736" x2="357.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint94_linear_1580_3060" x1="385.5" y1="169.736" x2="399.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint95_linear_1580_3060" x1="427.5" y1="169.736" x2="441.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint96_linear_1580_3060" x1="469.5" y1="169.736" x2="483.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint97_linear_1580_3060" x1="511.5" y1="169.736" x2="525.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint98_linear_1580_3060" x1="553.5" y1="169.736" x2="567.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint99_linear_1580_3060" x1="595.5" y1="169.736" x2="609.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint100_linear_1580_3060" x1="637.5" y1="169.736" x2="651.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint101_linear_1580_3060" x1="679.5" y1="169.736" x2="693.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint102_linear_1580_3060" x1="721.5" y1="169.736" x2="735.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint103_linear_1580_3060" x1="763.5" y1="169.736" x2="777.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint104_linear_1580_3060" x1="805.5" y1="169.736" x2="819.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint105_linear_1580_3060" x1="847.5" y1="169.736" x2="861.5" y2="189.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint106_linear_1580_3060" x1="7.5" y1="211.736" x2="21.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint107_linear_1580_3060" x1="49.5" y1="211.736" x2="63.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint108_linear_1580_3060" x1="91.5" y1="211.736" x2="105.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint109_linear_1580_3060" x1="133.5" y1="211.736" x2="147.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint110_linear_1580_3060" x1="175.5" y1="211.736" x2="189.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint111_linear_1580_3060" x1="217.5" y1="211.736" x2="231.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint112_linear_1580_3060" x1="259.5" y1="211.736" x2="273.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint113_linear_1580_3060" x1="301.5" y1="211.736" x2="315.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint114_linear_1580_3060" x1="343.5" y1="211.736" x2="357.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint115_linear_1580_3060" x1="385.5" y1="211.736" x2="399.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint116_linear_1580_3060" x1="427.5" y1="211.736" x2="441.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint117_linear_1580_3060" x1="469.5" y1="211.736" x2="483.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint118_linear_1580_3060" x1="511.5" y1="211.736" x2="525.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint119_linear_1580_3060" x1="553.5" y1="211.736" x2="567.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint120_linear_1580_3060" x1="595.5" y1="211.736" x2="609.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint121_linear_1580_3060" x1="637.5" y1="211.736" x2="651.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint122_linear_1580_3060" x1="679.5" y1="211.736" x2="693.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint123_linear_1580_3060" x1="721.5" y1="211.736" x2="735.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint124_linear_1580_3060" x1="763.5" y1="211.736" x2="777.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint125_linear_1580_3060" x1="805.5" y1="211.736" x2="819.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint126_linear_1580_3060" x1="847.5" y1="211.736" x2="861.5" y2="231.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint127_linear_1580_3060" x1="7.5" y1="253.736" x2="21.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint128_linear_1580_3060" x1="49.5" y1="253.736" x2="63.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint129_linear_1580_3060" x1="91.5" y1="253.736" x2="105.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint130_linear_1580_3060" x1="133.5" y1="253.736" x2="147.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint131_linear_1580_3060" x1="175.5" y1="253.736" x2="189.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint132_linear_1580_3060" x1="217.5" y1="253.736" x2="231.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint133_linear_1580_3060" x1="259.5" y1="253.736" x2="273.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint134_linear_1580_3060" x1="301.5" y1="253.736" x2="315.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint135_linear_1580_3060" x1="343.5" y1="253.736" x2="357.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint136_linear_1580_3060" x1="385.5" y1="253.736" x2="399.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint137_linear_1580_3060" x1="427.5" y1="253.736" x2="441.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint138_linear_1580_3060" x1="469.5" y1="253.736" x2="483.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint139_linear_1580_3060" x1="511.5" y1="253.736" x2="525.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint140_linear_1580_3060" x1="553.5" y1="253.736" x2="567.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint141_linear_1580_3060" x1="595.5" y1="253.736" x2="609.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint142_linear_1580_3060" x1="637.5" y1="253.736" x2="651.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint143_linear_1580_3060" x1="679.5" y1="253.736" x2="693.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint144_linear_1580_3060" x1="721.5" y1="253.736" x2="735.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint145_linear_1580_3060" x1="763.5" y1="253.736" x2="777.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint146_linear_1580_3060" x1="805.5" y1="253.736" x2="819.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+<linearGradient id="paint147_linear_1580_3060" x1="847.5" y1="253.736" x2="861.5" y2="273.236" gradientUnits="userSpaceOnUse">+<stop stop-color="#C3C3C3"/>+<stop offset="1" stop-color="#666666" stop-opacity="0"/>+</linearGradient>+</defs>+</svg>diff --git a/apps/web/public/illustrations/everyone.svg b/apps/web/public/illustrations/everyone.svgnew file mode 100644index 000000000..00c97dfc8--- /dev/null+++ b/apps/web/public/illustrations/everyone.svg@@ -0,0 +1,38 @@+<svg width="440" height="295" viewBox="0 0 440 295" fill="none" xmlns="http://www.w3.org/2000/svg">+<rect x="0.5" y="117.5" width="53" height="53" rx="26.5" fill="#F9F9F9"/>+<rect x="0.5" y="117.5" width="53" height="53" rx="26.5" stroke="#CECECE"/>+<path opacity="0.65" d="M31.125 143.25C31.125 144.066 30.8831 144.863 30.4298 145.542C29.9766 146.22 29.3323 146.749 28.5786 147.061C27.8248 147.373 26.9954 147.455 26.1953 147.296C25.3951 147.137 24.6601 146.744 24.0832 146.167C23.5063 145.59 23.1134 144.855 22.9543 144.055C22.7951 143.255 22.8768 142.425 23.189 141.671C23.5012 140.918 24.0299 140.273 24.7083 139.82C25.3866 139.367 26.1842 139.125 27 139.125C28.0936 139.126 29.1421 139.561 29.9154 140.335C30.6888 141.108 31.1238 142.156 31.125 143.25ZM36.75 144C36.75 145.928 36.1782 147.813 35.1068 149.417C34.0355 151.02 32.5127 152.27 30.7312 153.008C28.9496 153.746 26.9892 153.939 25.0979 153.563C23.2066 153.186 21.4693 152.258 20.1057 150.894C18.7422 149.531 17.8136 147.793 17.4373 145.902C17.0611 144.011 17.2542 142.05 17.9922 140.269C18.7301 138.487 19.9798 136.965 21.5832 135.893C23.1866 134.822 25.0716 134.25 27 134.25C29.585 134.253 32.0634 135.281 33.8913 137.109C35.7192 138.937 36.7473 141.415 36.75 144ZM35.25 144C35.2488 142.89 35.0237 141.791 34.5881 140.769C34.1525 139.748 33.5154 138.825 32.7148 138.055C31.9143 137.286 30.9668 136.685 29.929 136.291C28.8911 135.896 27.7843 135.714 26.6747 135.757C22.2591 135.927 18.7378 139.605 18.75 144.023C18.7542 146.035 19.4961 147.975 20.835 149.476C21.3803 148.685 22.0729 148.007 22.875 147.478C22.9434 147.433 23.0247 147.411 23.1065 147.417C23.1882 147.422 23.266 147.454 23.3278 147.508C24.347 148.39 25.6496 148.875 26.9972 148.875C28.3448 148.875 29.6473 148.39 30.6666 147.508C30.7284 147.454 30.8061 147.422 30.8879 147.417C30.9697 147.411 31.051 147.433 31.1194 147.478C31.9225 148.006 32.6161 148.685 33.1622 149.476C34.5077 147.969 35.251 146.02 35.25 144Z" fill="#4785FF"/>+<rect x="270.5" y="223.5" width="70" height="70" rx="35" fill="#F9F9F9"/>+<rect x="270.5" y="223.5" width="70" height="70" rx="35" stroke="#CECECE"/>+<path opacity="0.99" d="M309.625 257.75C309.625 258.566 309.383 259.363 308.93 260.042C308.477 260.72 307.832 261.249 307.079 261.561C306.325 261.873 305.495 261.955 304.695 261.796C303.895 261.637 303.16 261.244 302.583 260.667C302.006 260.09 301.613 259.355 301.454 258.555C301.295 257.755 301.377 256.925 301.689 256.171C302.001 255.418 302.53 254.773 303.208 254.32C303.887 253.867 304.684 253.625 305.5 253.625C306.594 253.626 307.642 254.061 308.415 254.835C309.189 255.608 309.624 256.656 309.625 257.75ZM315.25 258.5C315.25 260.428 314.678 262.313 313.607 263.917C312.535 265.52 311.013 266.77 309.231 267.508C307.45 268.246 305.489 268.439 303.598 268.063C301.707 267.686 299.969 266.758 298.606 265.394C297.242 264.031 296.314 262.293 295.937 260.402C295.561 258.511 295.754 256.55 296.492 254.769C297.23 252.987 298.48 251.465 300.083 250.393C301.687 249.322 303.572 248.75 305.5 248.75C308.085 248.753 310.563 249.781 312.391 251.609C314.219 253.437 315.247 255.915 315.25 258.5ZM313.75 258.5C313.749 257.39 313.524 256.291 313.088 255.269C312.652 254.248 312.015 253.325 311.215 252.555C310.414 251.786 309.467 251.185 308.429 250.791C307.391 250.396 306.284 250.214 305.175 250.257C300.759 250.427 297.238 254.105 297.25 258.523C297.254 260.535 297.996 262.475 299.335 263.976C299.88 263.185 300.573 262.507 301.375 261.978C301.443 261.933 301.525 261.911 301.606 261.917C301.688 261.922 301.766 261.954 301.828 262.008C302.847 262.89 304.15 263.375 305.497 263.375C306.845 263.375 308.147 262.89 309.167 262.008C309.228 261.954 309.306 261.922 309.388 261.917C309.47 261.911 309.551 261.933 309.619 261.978C310.422 262.506 311.116 263.185 311.662 263.976C313.008 262.469 313.751 260.52 313.75 258.5Z" fill="#4785FF"/>+<rect x="62" y="10" width="50" height="50" rx="25" fill="#F9F9F9"/>+<rect x="62" y="10" width="50" height="50" rx="25" stroke="#CECECE"/>+<path opacity="0.38" d="M91.125 34.25C91.125 35.0658 90.8831 35.8634 90.4298 36.5417C89.9766 37.2201 89.3323 37.7488 88.5786 38.061C87.8248 38.3732 86.9954 38.4549 86.1953 38.2957C85.3951 38.1366 84.6601 37.7437 84.0832 37.1668C83.5063 36.5899 83.1134 35.8549 82.9543 35.0547C82.7951 34.2546 82.8768 33.4252 83.189 32.6714C83.5012 31.9177 84.0299 31.2734 84.7083 30.8202C85.3866 30.3669 86.1842 30.125 87 30.125C88.0936 30.1262 89.1421 30.5612 89.9154 31.3346C90.6888 32.1079 91.1238 33.1564 91.125 34.25ZM96.75 35C96.75 36.9284 96.1782 38.8134 95.1068 40.4168C94.0355 42.0202 92.5127 43.2699 90.7312 44.0078C88.9496 44.7458 86.9892 44.9389 85.0979 44.5627C83.2066 44.1865 81.4693 43.2579 80.1057 41.8943C78.7422 40.5307 77.8136 38.7934 77.4373 36.9021C77.0611 35.0108 77.2542 33.0504 77.9922 31.2688C78.7301 29.4873 79.9798 27.9645 81.5832 26.8932C83.1866 25.8218 85.0716 25.25 87 25.25C89.585 25.2527 92.0634 26.2808 93.8913 28.1087C95.7192 29.9366 96.7473 32.415 96.75 35ZM95.25 35C95.2488 33.8896 95.0237 32.7908 94.5881 31.7693C94.1525 30.7479 93.5154 29.8248 92.7148 29.0553C91.9143 28.2857 90.9668 27.6855 89.929 27.2905C88.8911 26.8956 87.7843 26.714 86.6747 26.7566C82.2591 26.9272 78.7378 30.605 78.75 35.0234C78.7542 37.0349 79.4961 38.9749 80.835 40.4759C81.3803 39.6851 82.0729 39.0068 82.875 38.4781C82.9434 38.433 83.0247 38.4114 83.1065 38.4169C83.1882 38.4223 83.266 38.4543 83.3278 38.5081C84.347 39.3897 85.6496 39.8749 86.9972 39.8749C88.3448 39.8749 89.6473 39.3897 90.6666 38.5081C90.7284 38.4543 90.8061 38.4223 90.8879 38.4169C90.9697 38.4114 91.051 38.433 91.1194 38.4781C91.9225 39.0065 92.6161 39.6848 93.1622 40.4759C94.5077 38.9694 95.251 37.0199 95.25 35Z" fill="#4785FF"/>+<rect x="261.5" y="96.5" width="76" height="76" rx="38" fill="#F9F9F9"/>+<rect x="261.5" y="96.5" width="76" height="76" rx="38" stroke="#CECECE"/>+<path d="M304.577 133.577C304.577 134.581 304.279 135.563 303.721 136.398C303.163 137.232 302.371 137.883 301.443 138.267C300.515 138.652 299.494 138.752 298.51 138.556C297.525 138.36 296.62 137.877 295.91 137.167C295.2 136.457 294.717 135.552 294.521 134.567C294.325 133.583 294.425 132.562 294.81 131.634C295.194 130.706 295.845 129.913 296.679 129.356C297.514 128.798 298.496 128.5 299.5 128.5C300.846 128.502 302.136 129.037 303.088 129.989C304.04 130.94 304.575 132.231 304.577 133.577ZM311.5 134.5C311.5 136.873 310.796 139.193 309.478 141.167C308.159 143.14 306.285 144.678 304.092 145.587C301.899 146.495 299.487 146.732 297.159 146.269C294.831 145.806 292.693 144.664 291.015 142.985C289.336 141.307 288.194 139.169 287.731 136.841C287.268 134.513 287.505 132.101 288.413 129.908C289.322 127.715 290.86 125.841 292.833 124.522C294.807 123.204 297.127 122.5 299.5 122.5C302.682 122.503 305.732 123.769 307.982 126.018C310.231 128.268 311.497 131.318 311.5 134.5ZM309.654 134.5C309.652 133.133 309.375 131.781 308.839 130.524C308.303 129.267 307.519 128.131 306.534 127.183C305.548 126.236 304.382 125.498 303.105 125.011C301.828 124.525 300.465 124.302 299.1 124.354C293.665 124.564 289.331 129.091 289.346 134.529C289.351 137.004 290.264 139.392 291.912 141.24C292.583 140.266 293.436 139.431 294.423 138.781C294.507 138.725 294.607 138.699 294.708 138.705C294.809 138.712 294.904 138.751 294.98 138.818C296.235 139.903 297.838 140.5 299.497 140.5C301.155 140.5 302.758 139.903 304.013 138.818C304.089 138.751 304.184 138.712 304.285 138.705C304.386 138.699 304.486 138.725 304.57 138.781C305.558 139.431 306.412 140.266 307.084 141.24C308.74 139.385 309.655 136.986 309.654 134.5Z" fill="#4785FF"/>+<rect x="138.5" y="235.5" width="59" height="59" rx="29.5" fill="#F9F9F9"/>+<rect x="138.5" y="235.5" width="59" height="59" rx="29.5" stroke="#CECECE"/>+<path opacity="0.59" d="M172.125 264.25C172.125 265.066 171.883 265.863 171.43 266.542C170.977 267.22 170.332 267.749 169.579 268.061C168.825 268.373 167.995 268.455 167.195 268.296C166.395 268.137 165.66 267.744 165.083 267.167C164.506 266.59 164.113 265.855 163.954 265.055C163.795 264.255 163.877 263.425 164.189 262.671C164.501 261.918 165.03 261.273 165.708 260.82C166.387 260.367 167.184 260.125 168 260.125C169.094 260.126 170.142 260.561 170.915 261.335C171.689 262.108 172.124 263.156 172.125 264.25ZM177.75 265C177.75 266.928 177.178 268.813 176.107 270.417C175.035 272.02 173.513 273.27 171.731 274.008C169.95 274.746 167.989 274.939 166.098 274.563C164.207 274.186 162.469 273.258 161.106 271.894C159.742 270.531 158.814 268.793 158.437 266.902C158.061 265.011 158.254 263.05 158.992 261.269C159.73 259.487 160.98 257.965 162.583 256.893C164.187 255.822 166.072 255.25 168 255.25C170.585 255.253 173.063 256.281 174.891 258.109C176.719 259.937 177.747 262.415 177.75 265ZM176.25 265C176.249 263.89 176.024 262.791 175.588 261.769C175.152 260.748 174.515 259.825 173.715 259.055C172.914 258.286 171.967 257.685 170.929 257.291C169.891 256.896 168.784 256.714 167.675 256.757C163.259 256.927 159.738 260.605 159.75 265.023C159.754 267.035 160.496 268.975 161.835 270.476C162.38 269.685 163.073 269.007 163.875 268.478C163.943 268.433 164.025 268.411 164.106 268.417C164.188 268.422 164.266 268.454 164.328 268.508C165.347 269.39 166.65 269.875 167.997 269.875C169.345 269.875 170.647 269.39 171.667 268.508C171.728 268.454 171.806 268.422 171.888 268.417C171.97 268.411 172.051 268.433 172.119 268.478C172.922 269.006 173.616 269.685 174.162 270.476C175.508 268.969 176.251 267.02 176.25 265Z" fill="#4785FF"/>+<rect x="101" y="143" width="61" height="61" rx="30.5" fill="#F9F9F9"/>+<rect x="101" y="143" width="61" height="61" rx="30.5" stroke="#CECECE"/>+<path opacity="0.79" d="M135.625 172.75C135.625 173.566 135.383 174.363 134.93 175.042C134.477 175.72 133.832 176.249 133.079 176.561C132.325 176.873 131.495 176.955 130.695 176.796C129.895 176.637 129.16 176.244 128.583 175.667C128.006 175.09 127.613 174.355 127.454 173.555C127.295 172.755 127.377 171.925 127.689 171.171C128.001 170.418 128.53 169.773 129.208 169.32C129.887 168.867 130.684 168.625 131.5 168.625C132.594 168.626 133.642 169.061 134.415 169.835C135.189 170.608 135.624 171.656 135.625 172.75ZM141.25 173.5C141.25 175.428 140.678 177.313 139.607 178.917C138.535 180.52 137.013 181.77 135.231 182.508C133.45 183.246 131.489 183.439 129.598 183.063C127.707 182.686 125.969 181.758 124.606 180.394C123.242 179.031 122.314 177.293 121.937 175.402C121.561 173.511 121.754 171.55 122.492 169.769C123.23 167.987 124.48 166.465 126.083 165.393C127.687 164.322 129.572 163.75 131.5 163.75C134.085 163.753 136.563 164.781 138.391 166.609C140.219 168.437 141.247 170.915 141.25 173.5ZM139.75 173.5C139.749 172.39 139.524 171.291 139.088 170.269C138.652 169.248 138.015 168.325 137.215 167.555C136.414 166.786 135.467 166.185 134.429 165.791C133.391 165.396 132.284 165.214 131.175 165.257C126.759 165.427 123.238 169.105 123.25 173.523C123.254 175.535 123.996 177.475 125.335 178.976C125.88 178.185 126.573 177.507 127.375 176.978C127.443 176.933 127.525 176.911 127.606 176.917C127.688 176.922 127.766 176.954 127.828 177.008C128.847 177.89 130.15 178.375 131.497 178.375C132.845 178.375 134.147 177.89 135.167 177.008C135.228 176.954 135.306 176.922 135.388 176.917C135.47 176.911 135.551 176.933 135.619 176.978C136.422 177.506 137.116 178.185 137.662 178.976C139.008 177.469 139.751 175.52 139.75 173.5Z" fill="#4785FF"/>+<rect x="33" y="212" width="56" height="56" rx="28" fill="#F9F9F9"/>+<rect x="33" y="212" width="56" height="56" rx="28" stroke="#CECECE"/>+<path opacity="0.51" d="M65.125 239.25C65.125 240.066 64.8831 240.863 64.4298 241.542C63.9766 242.22 63.3323 242.749 62.5786 243.061C61.8248 243.373 60.9954 243.455 60.1953 243.296C59.3951 243.137 58.6601 242.744 58.0832 242.167C57.5063 241.59 57.1134 240.855 56.9543 240.055C56.7951 239.255 56.8768 238.425 57.189 237.671C57.5012 236.918 58.0299 236.273 58.7083 235.82C59.3866 235.367 60.1842 235.125 61 235.125C62.0936 235.126 63.1421 235.561 63.9154 236.335C64.6888 237.108 65.1238 238.156 65.125 239.25ZM70.75 240C70.75 241.928 70.1782 243.813 69.1068 245.417C68.0355 247.02 66.5127 248.27 64.7312 249.008C62.9496 249.746 60.9892 249.939 59.0979 249.563C57.2066 249.186 55.4693 248.258 54.1057 246.894C52.7422 245.531 51.8136 243.793 51.4373 241.902C51.0611 240.011 51.2542 238.05 51.9922 236.269C52.7301 234.487 53.9798 232.965 55.5832 231.893C57.1866 230.822 59.0716 230.25 61 230.25C63.585 230.253 66.0634 231.281 67.8913 233.109C69.7192 234.937 70.7473 237.415 70.75 240ZM69.25 240C69.2488 238.89 69.0237 237.791 68.5881 236.769C68.1525 235.748 67.5154 234.825 66.7148 234.055C65.9143 233.286 64.9668 232.685 63.929 232.291C62.8911 231.896 61.7843 231.714 60.6747 231.757C56.2591 231.927 52.7378 235.605 52.75 240.023C52.7542 242.035 53.4961 243.975 54.835 245.476C55.3803 244.685 56.0729 244.007 56.875 243.478C56.9434 243.433 57.0247 243.411 57.1065 243.417C57.1882 243.422 57.266 243.454 57.3278 243.508C58.347 244.39 59.6496 244.875 60.9972 244.875C62.3448 244.875 63.6473 244.39 64.6666 243.508C64.7284 243.454 64.8061 243.422 64.8879 243.417C64.9697 243.411 65.051 243.433 65.1194 243.478C65.9225 244.006 66.6161 244.685 67.1622 245.476C68.5077 243.969 69.251 242.02 69.25 240Z" fill="#4785FF"/>+<rect x="373" y="165" width="66" height="66" rx="33" fill="#F9F9F9"/>+<rect x="373" y="165" width="66" height="66" rx="33" stroke="#CECECE"/>+<path opacity="0.76" d="M410.125 197.25C410.125 198.066 409.883 198.863 409.43 199.542C408.977 200.22 408.332 200.749 407.579 201.061C406.825 201.373 405.995 201.455 405.195 201.296C404.395 201.137 403.66 200.744 403.083 200.167C402.506 199.59 402.113 198.855 401.954 198.055C401.795 197.255 401.877 196.425 402.189 195.671C402.501 194.918 403.03 194.273 403.708 193.82C404.387 193.367 405.184 193.125 406 193.125C407.094 193.126 408.142 193.561 408.915 194.335C409.689 195.108 410.124 196.156 410.125 197.25ZM415.75 198C415.75 199.928 415.178 201.813 414.107 203.417C413.035 205.02 411.513 206.27 409.731 207.008C407.95 207.746 405.989 207.939 404.098 207.563C402.207 207.186 400.469 206.258 399.106 204.894C397.742 203.531 396.814 201.793 396.437 199.902C396.061 198.011 396.254 196.05 396.992 194.269C397.73 192.487 398.98 190.965 400.583 189.893C402.187 188.822 404.072 188.25 406 188.25C408.585 188.253 411.063 189.281 412.891 191.109C414.719 192.937 415.747 195.415 415.75 198ZM414.25 198C414.249 196.89 414.024 195.791 413.588 194.769C413.152 193.748 412.515 192.825 411.715 192.055C410.914 191.286 409.967 190.685 408.929 190.291C407.891 189.896 406.784 189.714 405.675 189.757C401.259 189.927 397.738 193.605 397.75 198.023C397.754 200.035 398.496 201.975 399.835 203.476C400.38 202.685 401.073 202.007 401.875 201.478C401.943 201.433 402.025 201.411 402.106 201.417C402.188 201.422 402.266 201.454 402.328 201.508C403.347 202.39 404.65 202.875 405.997 202.875C407.345 202.875 408.647 202.39 409.667 201.508C409.728 201.454 409.806 201.422 409.888 201.417C409.97 201.411 410.051 201.433 410.119 201.478C410.922 202.006 411.616 202.685 412.162 203.476C413.508 201.969 414.251 200.02 414.25 198Z" fill="#4785FF"/>+<rect x="356.5" y="43.5" width="73" height="73" rx="36.5" fill="#F9F9F9"/>+<rect x="356.5" y="43.5" width="73" height="73" rx="36.5" stroke="#CECECE"/>+<path opacity="0.75" d="M397.125 79.25C397.125 80.0658 396.883 80.8634 396.43 81.5417C395.977 82.2201 395.332 82.7488 394.579 83.061C393.825 83.3732 392.995 83.4549 392.195 83.2957C391.395 83.1366 390.66 82.7437 390.083 82.1668C389.506 81.5899 389.113 80.8549 388.954 80.0547C388.795 79.2546 388.877 78.4252 389.189 77.6714C389.501 76.9177 390.03 76.2734 390.708 75.8202C391.387 75.3669 392.184 75.125 393 75.125C394.094 75.1262 395.142 75.5612 395.915 76.3346C396.689 77.1079 397.124 78.1564 397.125 79.25ZM402.75 80C402.75 81.9284 402.178 83.8134 401.107 85.4168C400.035 87.0202 398.513 88.2699 396.731 89.0078C394.95 89.7458 392.989 89.9389 391.098 89.5627C389.207 89.1865 387.469 88.2579 386.106 86.8943C384.742 85.5307 383.814 83.7934 383.437 81.9021C383.061 80.0108 383.254 78.0504 383.992 76.2688C384.73 74.4873 385.98 72.9645 387.583 71.8932C389.187 70.8218 391.072 70.25 393 70.25C395.585 70.2527 398.063 71.2808 399.891 73.1087C401.719 74.9366 402.747 77.415 402.75 80ZM401.25 80C401.249 78.8896 401.024 77.7908 400.588 76.7693C400.152 75.7479 399.515 74.8248 398.715 74.0553C397.914 73.2857 396.967 72.6855 395.929 72.2905C394.891 71.8956 393.784 71.714 392.675 71.7566C388.259 71.9272 384.738 75.605 384.75 80.0234C384.754 82.0349 385.496 83.9749 386.835 85.4759C387.38 84.6851 388.073 84.0068 388.875 83.4781C388.943 83.433 389.025 83.4114 389.106 83.4169C389.188 83.4223 389.266 83.4543 389.328 83.5081C390.347 84.3897 391.65 84.8749 392.997 84.8749C394.345 84.8749 395.647 84.3897 396.667 83.5081C396.728 83.4543 396.806 83.4223 396.888 83.4169C396.97 83.4114 397.051 83.433 397.119 83.4781C397.922 84.0065 398.616 84.6848 399.162 85.4759C400.508 83.9694 401.251 82.0199 401.25 80Z" fill="#4785FF"/>+<rect x="130.5" y="44.5" width="87" height="87" rx="43.5" fill="#F9F9F9"/>+<rect x="130.5" y="44.5" width="87" height="87" rx="43.5" stroke="#CECECE"/>+<path opacity="0.43" d="M181.192 86.6923C181.192 88.1148 180.77 89.5054 179.98 90.6881C179.19 91.8709 178.067 92.7928 176.752 93.3371C175.438 93.8815 173.992 94.0239 172.597 93.7464C171.202 93.4689 169.92 92.7839 168.914 91.778C167.908 90.7722 167.223 89.4906 166.946 88.0955C166.668 86.7003 166.811 85.2541 167.355 83.9399C167.9 82.6257 168.821 81.5024 170.004 80.7121C171.187 79.9218 172.578 79.5 174 79.5C175.907 79.5022 177.735 80.2606 179.083 81.609C180.432 82.9573 181.19 84.7854 181.192 86.6923ZM191 88C191 91.3623 190.003 94.6491 188.135 97.4447C186.267 100.24 183.612 102.419 180.506 103.706C177.399 104.993 173.981 105.329 170.683 104.673C167.386 104.017 164.357 102.398 161.979 100.021C159.602 97.6433 157.983 94.6142 157.327 91.3165C156.671 88.0189 157.007 84.6007 158.294 81.4944C159.581 78.388 161.76 75.733 164.555 73.865C167.351 71.997 170.638 71 174 71C178.507 71.0048 182.828 72.7974 186.016 75.9844C189.203 79.1715 190.995 83.4928 191 88ZM188.385 88C188.383 86.0638 187.99 84.148 187.23 82.367C186.471 80.5861 185.36 78.9766 183.964 77.6348C182.568 76.293 180.916 75.2465 179.107 74.5578C177.297 73.8692 175.368 73.5525 173.433 73.6268C165.734 73.9243 159.594 80.3369 159.615 88.0409C159.623 91.548 160.916 94.9306 163.251 97.5478C164.202 96.1688 165.409 94.9861 166.808 94.0644C166.927 93.9857 167.069 93.9481 167.211 93.9576C167.354 93.967 167.489 94.0229 167.597 94.1167C169.374 95.6538 171.645 96.4998 173.995 96.4998C176.345 96.4998 178.616 95.6538 180.393 94.1167C180.501 94.0229 180.636 93.967 180.779 93.9576C180.922 93.9481 181.063 93.9857 181.183 94.0644C182.583 94.9856 183.792 96.1684 184.744 97.5478C187.09 94.921 188.386 91.5219 188.385 88Z" fill="#4785FF"/>+<rect x="237" y="1" width="68" height="68" rx="34" fill="#F9F9F9"/>+<rect x="237" y="1" width="68" height="68" rx="34" stroke="#CECECE"/>+<path opacity="0.54" d="M275.125 34.25C275.125 35.0658 274.883 35.8634 274.43 36.5417C273.977 37.2201 273.332 37.7488 272.579 38.061C271.825 38.3732 270.995 38.4549 270.195 38.2957C269.395 38.1366 268.66 37.7437 268.083 37.1668C267.506 36.5899 267.113 35.8549 266.954 35.0547C266.795 34.2546 266.877 33.4252 267.189 32.6714C267.501 31.9177 268.03 31.2734 268.708 30.8202C269.387 30.3669 270.184 30.125 271 30.125C272.094 30.1262 273.142 30.5612 273.915 31.3346C274.689 32.1079 275.124 33.1564 275.125 34.25ZM280.75 35C280.75 36.9284 280.178 38.8134 279.107 40.4168C278.035 42.0202 276.513 43.2699 274.731 44.0078C272.95 44.7458 270.989 44.9389 269.098 44.5627C267.207 44.1865 265.469 43.2579 264.106 41.8943C262.742 40.5307 261.814 38.7934 261.437 36.9021C261.061 35.0108 261.254 33.0504 261.992 31.2688C262.73 29.4873 263.98 27.9645 265.583 26.8932C267.187 25.8218 269.072 25.25 271 25.25C273.585 25.2527 276.063 26.2808 277.891 28.1087C279.719 29.9366 280.747 32.415 280.75 35ZM279.25 35C279.249 33.8896 279.024 32.7908 278.588 31.7693C278.152 30.7479 277.515 29.8248 276.715 29.0553C275.914 28.2857 274.967 27.6855 273.929 27.2905C272.891 26.8956 271.784 26.714 270.675 26.7566C266.259 26.9272 262.738 30.605 262.75 35.0234C262.754 37.0349 263.496 38.9749 264.835 40.4759C265.38 39.6851 266.073 39.0068 266.875 38.4781C266.943 38.433 267.025 38.4114 267.106 38.4169C267.188 38.4223 267.266 38.4543 267.328 38.5081C268.347 39.3897 269.65 39.8749 270.997 39.8749C272.345 39.8749 273.647 39.3897 274.667 38.5081C274.728 38.4543 274.806 38.4223 274.888 38.4169C274.97 38.4114 275.051 38.433 275.119 38.4781C275.922 39.0065 276.616 39.6848 277.162 40.4759C278.508 38.9694 279.251 37.0199 279.25 35Z" fill="#4785FF"/>+<rect x="199.5" y="164.5" width="67" height="67" rx="33.5" fill="#F9F9F9"/>+<rect x="199.5" y="164.5" width="67" height="67" rx="33.5" stroke="#CECECE"/>+<path opacity="0.5" d="M237.125 197.25C237.125 198.066 236.883 198.863 236.43 199.542C235.977 200.22 235.332 200.749 234.579 201.061C233.825 201.373 232.995 201.455 232.195 201.296C231.395 201.137 230.66 200.744 230.083 200.167C229.506 199.59 229.113 198.855 228.954 198.055C228.795 197.255 228.877 196.425 229.189 195.671C229.501 194.918 230.03 194.273 230.708 193.82C231.387 193.367 232.184 193.125 233 193.125C234.094 193.126 235.142 193.561 235.915 194.335C236.689 195.108 237.124 196.156 237.125 197.25ZM242.75 198C242.75 199.928 242.178 201.813 241.107 203.417C240.035 205.02 238.513 206.27 236.731 207.008C234.95 207.746 232.989 207.939 231.098 207.563C229.207 207.186 227.469 206.258 226.106 204.894C224.742 203.531 223.814 201.793 223.437 199.902C223.061 198.011 223.254 196.05 223.992 194.269C224.73 192.487 225.98 190.965 227.583 189.893C229.187 188.822 231.072 188.25 233 188.25C235.585 188.253 238.063 189.281 239.891 191.109C241.719 192.937 242.747 195.415 242.75 198ZM241.25 198C241.249 196.89 241.024 195.791 240.588 194.769C240.152 193.748 239.515 192.825 238.715 192.055C237.914 191.286 236.967 190.685 235.929 190.291C234.891 189.896 233.784 189.714 232.675 189.757C228.259 189.927 224.738 193.605 224.75 198.023C224.754 200.035 225.496 201.975 226.835 203.476C227.38 202.685 228.073 202.007 228.875 201.478C228.943 201.433 229.025 201.411 229.106 201.417C229.188 201.422 229.266 201.454 229.328 201.508C230.347 202.39 231.65 202.875 232.997 202.875C234.345 202.875 235.647 202.39 236.667 201.508C236.728 201.454 236.806 201.422 236.888 201.417C236.97 201.411 237.051 201.433 237.119 201.478C237.922 202.006 238.616 202.685 239.162 203.476C240.508 201.969 241.251 200.02 241.25 198Z" fill="#4785FF"/>+</svg>diff --git a/apps/web/public/illustrations/multiplatbg.webp b/apps/web/public/illustrations/multiplatbg.webpindex a8f78bd2f..fefe93459 100644Binary files a/apps/web/public/illustrations/multiplatbg.webp and b/apps/web/public/illustrations/multiplatbg.webp differdiff --git a/apps/web/public/illustrations/multiplatmain.webp b/apps/web/public/illustrations/multiplatmain.webpindex 7e59effe8..929379a5c 100644Binary files a/apps/web/public/illustrations/multiplatmain.webp and b/apps/web/public/illustrations/multiplatmain.webp differdiff --git a/apps/web/public/illustrations/platformsupport.svg b/apps/web/public/illustrations/platformsupport.svgnew file mode 100644index 000000000..15d9349ef--- /dev/null+++ b/apps/web/public/illustrations/platformsupport.svg@@ -0,0 +1,57 @@+<svg width="442" height="194" viewBox="0 0 442 194" fill="none" xmlns="http://www.w3.org/2000/svg">+<g filter="url(#filter0_dd_1634_2316)">+<path d="M312.196 48.333L260.299 123.543C258.805 125.708 256.344 127 253.714 127H18.3494C11.4842 127 7.80784 118.921 12.3174 113.745L76.7742 39.7592C78.1036 38.2333 80.0283 37.3574 82.0521 37.3574H306.435C312.076 37.3574 315.4 43.6895 312.196 48.333Z" fill="#FAFAFA"/>+<path d="M312.196 48.333L260.299 123.543C258.805 125.708 256.344 127 253.714 127H18.3494C11.4842 127 7.80784 118.921 12.3174 113.745L76.7742 39.7592C78.1036 38.2333 80.0283 37.3574 82.0521 37.3574H306.435C312.076 37.3574 315.4 43.6895 312.196 48.333Z" stroke="#CBCBCB"/>+</g>+<path d="M80.4116 1H306.824C312.771 1 316.639 7.25862 313.979 12.5778L260.327 119.877C258.972 122.587 256.202 124.299 253.172 124.299H19.2034C13.0634 124.299 9.21216 117.668 12.2545 112.335L73.4627 5.03604C74.8863 2.54054 77.5386 1 80.4116 1Z" fill="#FAFAFA" stroke="#CBCBCB"/>+<g clip-path="url(#clip0_1634_2316)">+<path d="M170.794 63.4918C171.527 61.0621 173.227 59.2797 175.941 58.0329C175.202 56.1946 173.56 55.1276 171.053 54.8202C168.681 54.5256 165.548 55.9617 164.577 55.9179C163.55 55.8718 161.597 54.462 159.75 54.3789C155.914 54.2667 150.969 56.97 149.165 62.8409C148.632 64.5751 148.409 66.3813 148.498 68.2598C148.627 70.7283 149.957 76.8274 153.285 76.8765C155.022 76.9143 156.592 75.824 158.836 75.925C161.012 76.0229 161.776 77.2584 163.699 77.3449C167.039 77.4482 171.563 72.1626 173.146 69.7644C169.31 67.5318 170.756 63.6176 170.794 63.4918ZM170.263 52.4495C172.79 50.389 173.219 48.4287 173.38 47.7247C171.702 47.7432 169.488 48.6501 168.024 49.8257C166.424 51.0823 165.22 52.6723 164.809 54.5058C166.555 54.7185 168.456 53.9049 170.263 52.4495Z" fill="#2F2F2F"/>+</g>+<g filter="url(#filter1_dd_1634_2316)">+<path d="M434.427 110.333L382.529 185.543C381.036 187.708 378.574 189 375.945 189H140.58C133.715 189 130.038 180.921 134.548 175.745L199.005 101.759C200.334 100.233 202.259 99.3574 204.283 99.3574H428.665C434.307 99.3574 437.631 105.689 434.427 110.333Z" fill="#FDFDFD"/>+<path d="M434.427 110.333L382.529 185.543C381.036 187.708 378.574 189 375.945 189H140.58C133.715 189 130.038 180.921 134.548 175.745L199.005 101.759C200.334 100.233 202.259 99.3574 204.283 99.3574H428.665C434.307 99.3574 437.631 105.689 434.427 110.333Z" stroke="#CBCBCB"/>+</g>+<path d="M202.642 63H429.054C435.001 63 438.869 69.2586 436.209 74.5778L382.558 181.877C381.203 184.587 378.432 186.299 375.402 186.299H141.434C135.294 186.299 131.443 179.668 134.485 174.335L195.693 67.036C197.117 64.5405 199.769 63 202.642 63Z" fill="#FDFDFD" stroke="#CBCBCB"/>+<g clip-path="url(#clip1_1634_2316)">+<path d="M272.943 110.918L288.587 111.266L283.505 123.301L267.862 122.954L272.943 110.918Z" fill="#B1B1B1"/>+<path d="M290.15 111.301L305.794 111.648L300.712 123.684L285.069 123.337L290.15 111.301Z" fill="#B1B1B1"/>+<path d="M267.354 124.157L282.997 124.505L277.915 136.541L262.272 136.193L267.354 124.157Z" fill="#B1B1B1"/>+<path d="M284.561 124.54L300.204 124.888L295.122 136.923L279.479 136.576L284.561 124.54Z" fill="#B1B1B1"/>+</g>+<defs>+<filter id="filter0_dd_1634_2316" x="9.83203" y="36.8574" width="304.115" height="94.6426" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feOffset dy="4"/>+<feComposite in2="hardAlpha" operator="out"/>+<feColorMatrix type="matrix" values="0 0 0 0 0.663649 0 0 0 0 0.663649 0 0 0 0 0.663649 0 0 0 1 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2316"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feOffset dy="3"/>+<feComposite in2="hardAlpha" operator="out"/>+<feColorMatrix type="matrix" values="0 0 0 0 0.869554 0 0 0 0 0.869554 0 0 0 0 0.869554 0 0 0 1 0"/>+<feBlend mode="normal" in2="effect1_dropShadow_1634_2316" result="effect2_dropShadow_1634_2316"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_1634_2316" result="shape"/>+</filter>+<filter id="filter1_dd_1634_2316" x="132.062" y="98.8574" width="304.115" height="94.6426" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feOffset dy="4"/>+<feComposite in2="hardAlpha" operator="out"/>+<feColorMatrix type="matrix" values="0 0 0 0 0.663649 0 0 0 0 0.663649 0 0 0 0 0.663649 0 0 0 1 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2316"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feOffset dy="3"/>+<feComposite in2="hardAlpha" operator="out"/>+<feColorMatrix type="matrix" values="0 0 0 0 0.869554 0 0 0 0 0.869554 0 0 0 0 0.869554 0 0 0 1 0"/>+<feBlend mode="normal" in2="effect1_dropShadow_1634_2316" result="effect2_dropShadow_1634_2316"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_1634_2316" result="shape"/>+</filter>+<clipPath id="clip0_1634_2316">+<rect width="26.3003" height="35.4534" fill="white" transform="matrix(0.99899 0.0449369 -0.293823 0.95586 154.455 44.7256)"/>+</clipPath>+<clipPath id="clip1_1634_2316">+<rect width="35.9882" height="30.0486" fill="white" transform="matrix(0.999753 0.0222167 -0.388972 0.92125 271.887 109.68)"/>+</clipPath>+</defs>+</svg>diff --git a/apps/web/public/illustrations/privacy.webp b/apps/web/public/illustrations/privacy.webpindex 4038cc8c4..048b6eb71 100644Binary files a/apps/web/public/illustrations/privacy.webp and b/apps/web/public/illustrations/privacy.webp differdiff --git a/apps/web/public/illustrations/privacyfirst.svg b/apps/web/public/illustrations/privacyfirst.svgnew file mode 100644index 000000000..279e9fc00--- /dev/null+++ b/apps/web/public/illustrations/privacyfirst.svg@@ -0,0 +1,426 @@+<svg width="527" height="348" viewBox="0 0 527 348" fill="none" xmlns="http://www.w3.org/2000/svg">+<mask id="mask0_1634_2315" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="527" height="348">+<rect width="527" height="348" rx="20" fill="url(#paint0_linear_1634_2315)"/>+</mask>+<g mask="url(#mask0_1634_2315)">+<g opacity="0.8">+<g filter="url(#filter0_d_1634_2315)">+<rect x="19.5" y="34" width="68" height="68" rx="34" fill="white"/>+<rect x="20" y="34.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+<g clip-path="url(#clip0_1634_2315)">+<path d="M53.6452 85.1382C62.987 85.1382 70.56 77.6003 70.56 68.302C70.56 59.0037 62.987 51.4658 53.6452 51.4658C44.3035 51.4658 36.7305 59.0037 36.7305 68.302C36.7305 77.6003 44.3035 85.1382 53.6452 85.1382Z" fill="#4785FF"/>+<path d="M53.6438 81.8537C61.2338 81.8537 67.3869 75.6515 67.3869 68.0007C67.3869 60.3497 61.2338 54.1475 53.6438 54.1475C46.0535 54.1475 39.9004 60.3498 39.9004 68.0007C39.9004 75.6515 46.0536 81.8537 53.6438 81.8537Z" fill="#ADC9FF"/>+<path d="M53.6439 78.6562C59.4825 78.6562 64.2157 73.8851 64.2157 67.9999C64.2157 62.1147 59.4825 57.3437 53.6439 57.3437C47.8053 57.3437 43.0723 62.1147 43.0723 67.9999C43.0723 73.8851 47.8053 78.6562 53.6439 78.6562Z" fill="white"/>+</g>+</g>+<g filter="url(#filter1_d_1634_2315)">+<rect x="103.5" y="34" width="68" height="68" rx="34" fill="white"/>+<rect x="104" y="34.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+<g clip-path="url(#clip1_1634_2315)">+<path d="M137.645 85.1382C146.987 85.1382 154.56 77.6003 154.56 68.302C154.56 59.0037 146.987 51.4658 137.645 51.4658C128.304 51.4658 120.73 59.0037 120.73 68.302C120.73 77.6003 128.304 85.1382 137.645 85.1382Z" fill="#4785FF"/>+<path d="M137.644 81.8537C145.234 81.8537 151.387 75.6515 151.387 68.0007C151.387 60.3497 145.234 54.1475 137.644 54.1475C130.053 54.1475 123.9 60.3498 123.9 68.0007C123.9 75.6515 130.054 81.8537 137.644 81.8537Z" fill="#ADC9FF"/>+<path d="M137.644 78.6562C143.482 78.6562 148.216 73.8851 148.216 67.9999C148.216 62.1147 143.482 57.3437 137.644 57.3437C131.805 57.3437 127.072 62.1147 127.072 67.9999C127.072 73.8851 131.805 78.6562 137.644 78.6562Z" fill="white"/>+</g>+</g>+<g filter="url(#filter2_d_1634_2315)">+<rect x="187.5" y="34" width="68" height="68" rx="34" fill="white"/>+<rect x="188" y="34.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter3_d_1634_2315)">+<rect x="271.5" y="34" width="68" height="68" rx="34" fill="white"/>+<rect x="272" y="34.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+<g clip-path="url(#clip2_1634_2315)">+<path d="M305.645 85.1382C314.987 85.1382 322.56 77.6003 322.56 68.302C322.56 59.0037 314.987 51.4658 305.645 51.4658C296.304 51.4658 288.73 59.0037 288.73 68.302C288.73 77.6003 296.304 85.1382 305.645 85.1382Z" fill="#4785FF"/>+<path d="M305.644 81.8537C313.234 81.8537 319.387 75.6515 319.387 68.0007C319.387 60.3497 313.234 54.1475 305.644 54.1475C298.053 54.1475 291.9 60.3498 291.9 68.0007C291.9 75.6515 298.054 81.8537 305.644 81.8537Z" fill="#ADC9FF"/>+<path d="M305.644 78.6562C311.482 78.6562 316.216 73.8851 316.216 67.9999C316.216 62.1147 311.482 57.3437 305.644 57.3437C299.805 57.3437 295.072 62.1147 295.072 67.9999C295.072 73.8851 299.805 78.6562 305.644 78.6562Z" fill="white"/>+</g>+</g>+<g filter="url(#filter4_d_1634_2315)">+<rect x="355.5" y="34" width="68" height="68" rx="34" fill="white"/>+<rect x="356" y="34.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter5_d_1634_2315)">+<rect x="439.5" y="34" width="68" height="68" rx="34" fill="white"/>+<rect x="440" y="34.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+<g clip-path="url(#clip3_1634_2315)">+<path d="M473.645 85.1382C482.987 85.1382 490.56 77.6003 490.56 68.302C490.56 59.0037 482.987 51.4658 473.645 51.4658C464.304 51.4658 456.73 59.0037 456.73 68.302C456.73 77.6003 464.304 85.1382 473.645 85.1382Z" fill="#4785FF"/>+<path d="M473.644 81.8537C481.234 81.8537 487.387 75.6515 487.387 68.0007C487.387 60.3497 481.234 54.1475 473.644 54.1475C466.053 54.1475 459.9 60.3498 459.9 68.0007C459.9 75.6515 466.054 81.8537 473.644 81.8537Z" fill="#ADC9FF"/>+<path d="M473.644 78.6562C479.482 78.6562 484.216 73.8851 484.216 67.9999C484.216 62.1147 479.482 57.3437 473.644 57.3437C467.805 57.3437 463.072 62.1147 463.072 67.9999C463.072 73.8851 467.805 78.6562 473.644 78.6562Z" fill="white"/>+</g>+</g>+<g filter="url(#filter6_d_1634_2315)">+<rect x="19.5" y="118" width="68" height="68" rx="34" fill="white"/>+<rect x="20" y="118.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter7_d_1634_2315)">+<rect x="103.5" y="118" width="68" height="68" rx="34" fill="white"/>+<rect x="104" y="118.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+<g opacity="0.5" clip-path="url(#clip4_1634_2315)">+<path d="M137.645 169.138C146.987 169.138 154.56 161.6 154.56 152.302C154.56 143.004 146.987 135.466 137.645 135.466C128.304 135.466 120.73 143.004 120.73 152.302C120.73 161.6 128.304 169.138 137.645 169.138Z" fill="#4785FF"/>+<path d="M137.644 165.854C145.234 165.854 151.387 159.651 151.387 152.001C151.387 144.35 145.234 138.147 137.644 138.147C130.053 138.147 123.9 144.35 123.9 152.001C123.9 159.651 130.054 165.854 137.644 165.854Z" fill="#ADC9FF"/>+<path d="M137.644 162.656C143.482 162.656 148.216 157.885 148.216 152C148.216 146.115 143.482 141.344 137.644 141.344C131.805 141.344 127.072 146.115 127.072 152C127.072 157.885 131.805 162.656 137.644 162.656Z" fill="white"/>+</g>+</g>+<g filter="url(#filter8_d_1634_2315)">+<rect x="187.5" y="118" width="68" height="68" rx="34" fill="white"/>+<rect x="188" y="118.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter9_d_1634_2315)">+<rect x="271.5" y="118" width="68" height="68" rx="34" fill="white"/>+<rect x="272" y="118.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter10_d_1634_2315)">+<rect x="355.5" y="118" width="68" height="68" rx="34" fill="white"/>+<rect x="356" y="118.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter11_d_1634_2315)">+<rect x="439.5" y="118" width="68" height="68" rx="34" fill="white"/>+<rect x="440" y="118.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter12_d_1634_2315)">+<rect x="19.5" y="202" width="68" height="68" rx="34" fill="white"/>+<rect x="20" y="202.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter13_d_1634_2315)">+<rect x="103.5" y="202" width="68" height="68" rx="34" fill="white"/>+<rect x="104" y="202.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter14_d_1634_2315)">+<rect x="187.5" y="202" width="68" height="68" rx="34" fill="white"/>+<rect x="188" y="202.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter15_d_1634_2315)">+<rect x="271.5" y="202" width="68" height="68" rx="34" fill="white"/>+<rect x="272" y="202.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter16_d_1634_2315)">+<rect x="355.5" y="202" width="68" height="68" rx="34" fill="white"/>+<rect x="356" y="202.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter17_d_1634_2315)">+<rect x="439.5" y="202" width="68" height="68" rx="34" fill="white"/>+<rect x="440" y="202.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter18_d_1634_2315)">+<rect x="19.5" y="286" width="68" height="68" rx="34" fill="white"/>+<rect x="20" y="286.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter19_d_1634_2315)">+<rect x="103.5" y="286" width="68" height="68" rx="34" fill="white"/>+<rect x="104" y="286.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+<g clip-path="url(#clip5_1634_2315)">+<path d="M137.645 337.138C146.987 337.138 154.56 329.6 154.56 320.302C154.56 311.004 146.987 303.466 137.645 303.466C128.304 303.466 120.73 311.004 120.73 320.302C120.73 329.6 128.304 337.138 137.645 337.138Z" fill="#4785FF"/>+<path d="M137.644 333.854C145.234 333.854 151.387 327.651 151.387 320.001C151.387 312.35 145.234 306.147 137.644 306.147C130.053 306.147 123.9 312.35 123.9 320.001C123.9 327.651 130.054 333.854 137.644 333.854Z" fill="#ADC9FF"/>+<path d="M137.644 330.656C143.482 330.656 148.216 325.885 148.216 320C148.216 314.115 143.482 309.344 137.644 309.344C131.805 309.344 127.072 314.115 127.072 320C127.072 325.885 131.805 330.656 137.644 330.656Z" fill="white"/>+</g>+</g>+<g filter="url(#filter20_d_1634_2315)">+<rect x="187.5" y="286" width="68" height="68" rx="34" fill="white"/>+<rect x="188" y="286.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter21_d_1634_2315)">+<rect x="271.5" y="286" width="68" height="68" rx="34" fill="white"/>+<rect x="272" y="286.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter22_d_1634_2315)">+<rect x="355.5" y="286" width="68" height="68" rx="34" fill="white"/>+<rect x="356" y="286.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+<g clip-path="url(#clip6_1634_2315)">+<path d="M389.645 337.138C398.987 337.138 406.56 329.6 406.56 320.302C406.56 311.004 398.987 303.466 389.645 303.466C380.304 303.466 372.73 311.004 372.73 320.302C372.73 329.6 380.304 337.138 389.645 337.138Z" fill="#4785FF"/>+<path d="M389.644 333.854C397.234 333.854 403.387 327.651 403.387 320.001C403.387 312.35 397.234 306.147 389.644 306.147C382.053 306.147 375.9 312.35 375.9 320.001C375.9 327.651 382.054 333.854 389.644 333.854Z" fill="#ADC9FF"/>+<path d="M389.644 330.656C395.482 330.656 400.216 325.885 400.216 320C400.216 314.115 395.482 309.344 389.644 309.344C383.805 309.344 379.072 314.115 379.072 320C379.072 325.885 383.805 330.656 389.644 330.656Z" fill="white"/>+</g>+</g>+<g filter="url(#filter23_d_1634_2315)">+<rect x="439.5" y="286" width="68" height="68" rx="34" fill="white"/>+<rect x="440" y="286.5" width="67" height="67" rx="33.5" stroke="#EBEBEB"/>+</g>+</g>+</g>+<g filter="url(#filter24_d_1634_2315)">+<rect x="234.559" y="85" width="57.9476" height="119.2" rx="28.9738" stroke="#C5C5C5" stroke-width="14"/>+<path d="M197 135.863H330.063C340.833 135.863 349.563 144.594 349.563 155.363V248.565C349.563 259.335 340.833 268.065 330.063 268.065H197C186.23 268.065 177.5 259.335 177.5 248.565V155.363C177.5 144.594 186.23 135.863 197 135.863Z" fill="#FDFDFD" stroke="#C5C5C5"/>+<mask id="path-73-inside-1_1634_2315" fill="white">+<path d="M263.952 163.476C275.839 163.476 285.476 173.113 285.476 185C285.475 193.958 280.003 201.636 272.219 204.877V232.189C272.219 236.76 268.514 240.465 263.943 240.465C259.373 240.465 255.668 236.76 255.668 232.189V204.87C247.893 201.625 242.428 193.951 242.428 185C242.428 173.113 252.065 163.476 263.952 163.476Z"/>+</mask>+<path d="M263.952 163.476C275.839 163.476 285.476 173.113 285.476 185C285.475 193.958 280.003 201.636 272.219 204.877V232.189C272.219 236.76 268.514 240.465 263.943 240.465C259.373 240.465 255.668 236.76 255.668 232.189V204.87C247.893 201.625 242.428 193.951 242.428 185C242.428 173.113 252.065 163.476 263.952 163.476Z" fill="white"/>+<path d="M263.952 163.476L263.952 162.476H263.952V163.476ZM285.476 185L286.476 185V185H285.476ZM272.219 204.877L271.834 203.954L271.219 204.21V204.877H272.219ZM272.219 232.189H273.219H272.219ZM263.943 240.465L263.943 241.465H263.943V240.465ZM255.668 232.189H254.668H255.668ZM255.668 204.87H256.668V204.204L256.053 203.947L255.668 204.87ZM242.428 185H241.428V185L242.428 185ZM263.952 163.476L263.952 164.476C275.287 164.476 284.476 173.665 284.476 185H285.476H286.476C286.476 172.56 276.392 162.476 263.952 162.476L263.952 163.476ZM285.476 185L284.476 185C284.475 193.54 279.259 200.862 271.834 203.954L272.219 204.877L272.603 205.8C280.747 202.409 286.475 194.376 286.476 185L285.476 185ZM272.219 204.877H271.219V232.189H272.219H273.219V204.877H272.219ZM272.219 232.189H271.219C271.219 236.208 267.962 239.465 263.943 239.465V240.465V241.465C269.066 241.465 273.219 237.312 273.219 232.189H272.219ZM263.943 240.465L263.943 239.465C259.925 239.465 256.668 236.208 256.668 232.189H255.668H254.668C254.668 237.312 258.821 241.465 263.943 241.465L263.943 240.465ZM255.668 232.189H256.668V204.87H255.668H254.668V232.189H255.668ZM255.668 204.87L256.053 203.947C248.637 200.852 243.428 193.534 243.428 185L242.428 185L241.428 185C241.428 194.369 247.149 202.398 255.283 205.793L255.668 204.87ZM242.428 185H243.428C243.428 173.665 252.617 164.476 263.952 164.476V163.476V162.476C251.512 162.476 241.428 172.56 241.428 185H242.428Z" fill="#C5C5C5" mask="url(#path-73-inside-1_1634_2315)"/>+</g>+<defs>+<filter id="filter0_d_1634_2315" x="17.5" y="34" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter1_d_1634_2315" x="101.5" y="34" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter2_d_1634_2315" x="185.5" y="34" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter3_d_1634_2315" x="269.5" y="34" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter4_d_1634_2315" x="353.5" y="34" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter5_d_1634_2315" x="437.5" y="34" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter6_d_1634_2315" x="17.5" y="118" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter7_d_1634_2315" x="101.5" y="118" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter8_d_1634_2315" x="185.5" y="118" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter9_d_1634_2315" x="269.5" y="118" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter10_d_1634_2315" x="353.5" y="118" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter11_d_1634_2315" x="437.5" y="118" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter12_d_1634_2315" x="17.5" y="202" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter13_d_1634_2315" x="101.5" y="202" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter14_d_1634_2315" x="185.5" y="202" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter15_d_1634_2315" x="269.5" y="202" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter16_d_1634_2315" x="353.5" y="202" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter17_d_1634_2315" x="437.5" y="202" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter18_d_1634_2315" x="17.5" y="286" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter19_d_1634_2315" x="101.5" y="286" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter20_d_1634_2315" x="185.5" y="286" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter21_d_1634_2315" x="269.5" y="286" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter22_d_1634_2315" x="353.5" y="286" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter23_d_1634_2315" x="437.5" y="286" width="72" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1634_2315"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<filter id="filter24_d_1634_2315" x="141.5" y="46.5" width="244.062" height="261.565" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feOffset dy="4"/>+<feGaussianBlur stdDeviation="17.75"/>+<feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1634_2315"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1634_2315" result="shape"/>+</filter>+<linearGradient id="paint0_linear_1634_2315" x1="258.596" y1="24" x2="255.231" y2="331.992" gradientUnits="userSpaceOnUse">+<stop stop-opacity="0"/>+<stop offset="0.530668" stop-color="white"/>+<stop offset="1" stop-opacity="0"/>+</linearGradient>+<clipPath id="clip0_1634_2315">+<rect width="42" height="44" fill="white" transform="translate(32.5 46)"/>+</clipPath>+<clipPath id="clip1_1634_2315">+<rect width="42" height="44" fill="white" transform="translate(116.5 46)"/>+</clipPath>+<clipPath id="clip2_1634_2315">+<rect width="42" height="44" fill="white" transform="translate(284.5 46)"/>+</clipPath>+<clipPath id="clip3_1634_2315">+<rect width="42" height="44" fill="white" transform="translate(452.5 46)"/>+</clipPath>+<clipPath id="clip4_1634_2315">+<rect width="42" height="44" fill="white" transform="translate(116.5 130)"/>+</clipPath>+<clipPath id="clip5_1634_2315">+<rect width="42" height="44" fill="white" transform="translate(116.5 298)"/>+</clipPath>+<clipPath id="clip6_1634_2315">+<rect width="42" height="44" fill="white" transform="translate(368.5 298)"/>+</clipPath>+</defs>+</svg>diff --git a/apps/web/public/illustrations/smallcloud.webp b/apps/web/public/illustrations/smallcloud.webpindex 3cb5a6f75..646a5fd1b 100644Binary files a/apps/web/public/illustrations/smallcloud.webp and b/apps/web/public/illustrations/smallcloud.webp differdiff --git a/apps/web/public/illustrations/smallcloudthree.webp b/apps/web/public/illustrations/smallcloudthree.webpindex 52be36556..54594c839 100644Binary files a/apps/web/public/illustrations/smallcloudthree.webp and b/apps/web/public/illustrations/smallcloudthree.webp differdiff --git a/apps/web/public/illustrations/smallcloudtwo.webp b/apps/web/public/illustrations/smallcloudtwo.webpindex 9b67e89d3..db374806b 100644Binary files a/apps/web/public/illustrations/smallcloudtwo.webp and b/apps/web/public/illustrations/smallcloudtwo.webp differdiff --git a/apps/web/public/illustrations/storageoptions.svg b/apps/web/public/illustrations/storageoptions.svgnew file mode 100644index 000000000..4ca01c7fe--- /dev/null+++ b/apps/web/public/illustrations/storageoptions.svg@@ -0,0 +1,47 @@+<svg width="365" height="226" viewBox="0 0 365 226" fill="none" xmlns="http://www.w3.org/2000/svg">+<path d="M249.137 47.7466L228.178 90.2136C227.051 92.4961 226.857 95.1272 227.635 97.5506C228.666 100.758 231.27 103.211 234.533 104.048L307.019 122.638C311.6 123.813 316.377 121.618 318.47 117.377L327.454 99.1748C329.898 94.2223 327.865 88.226 322.912 85.7818L311.914 80.3535L286.524 67.8229C284.096 66.6244 282.257 64.4923 281.429 61.9141L279.143 54.7984C278.315 52.2202 276.476 50.0881 274.048 48.8897L262.53 43.205C257.577 40.7608 251.581 42.7941 249.137 47.7466Z" fill="#82B6FF"/>+<g clip-path="url(#clip0_1558_2367)">+<path d="M280.164 82.1181C294.054 82.1181 305.314 70.9103 305.314 57.0849C305.314 43.2596 294.054 32.0518 280.164 32.0518C266.274 32.0518 255.014 43.2596 255.014 57.0849C255.014 70.9103 266.274 82.1181 280.164 82.1181Z" fill="#4785FF"/>+<path d="M280.163 77.424C291.448 77.424 300.597 68.3178 300.597 57.0847C300.597 45.8514 291.448 36.7451 280.163 36.7451C268.877 36.7451 259.729 45.8516 259.729 57.0847C259.729 68.3178 268.877 77.424 280.163 77.424Z" fill="#ADC9FF"/>+<path d="M280.164 72.73C288.845 72.73 295.883 65.7249 295.883 57.0841C295.883 48.4432 288.845 41.4385 280.164 41.4385C271.483 41.4385 264.445 48.4432 264.445 57.0841C264.445 65.7249 271.483 72.73 280.164 72.73Z" fill="white"/>+</g>+<g clip-path="url(#clip1_1558_2367)">+<path d="M295.236 114.42C309.126 114.42 320.386 103.212 320.386 89.3867C320.386 75.5613 309.126 64.3535 295.236 64.3535C281.346 64.3535 270.086 75.5613 270.086 89.3867C270.086 103.212 281.346 114.42 295.236 114.42Z" fill="#4785FF"/>+<path d="M295.235 109.726C306.521 109.726 315.67 100.62 315.67 89.3865C315.67 78.1532 306.521 69.0469 295.235 69.0469C283.95 69.0469 274.801 78.1533 274.801 89.3865C274.801 100.62 283.95 109.726 295.235 109.726Z" fill="#ADC9FF"/>+<path d="M295.236 105.032C303.917 105.032 310.955 98.0266 310.955 89.3858C310.955 80.745 303.917 73.7402 295.236 73.7402C286.555 73.7402 279.518 80.745 279.518 89.3858C279.518 98.0266 286.555 105.032 295.236 105.032Z" fill="white"/>+</g>+<rect x="245.078" y="55.9746" width="92.9902" height="62.313" rx="10" transform="rotate(26.268 245.078 55.9746)" fill="#B2D2FF"/>+<path d="M24.9983 79.143L40.7112 120.848C41.5649 123.114 43.2666 124.959 45.4562 125.993C48.3541 127.362 51.7515 127.147 54.4535 125.423L114.144 87.3551C118.131 84.8121 119.792 79.8236 118.124 75.3981L111.627 58.152C109.68 52.9838 103.911 50.3726 98.7432 52.3198L88.2791 56.2622L63.2657 65.6863C60.7316 66.641 57.9187 66.5272 55.47 65.3709L49.4132 62.5108C46.9645 61.3544 44.1516 61.2406 41.6175 62.1954L30.8305 66.2595C25.6623 68.2067 23.0512 73.9748 24.9983 79.143Z" fill="#82B6FF"/>+<g clip-path="url(#clip2_1558_2367)">+<path d="M66.9645 96.1162C80.8543 96.1162 92.1145 84.9083 92.1145 71.083C92.1145 57.2576 80.8543 46.0498 66.9645 46.0498C53.0746 46.0498 41.8145 57.2576 41.8145 71.083C41.8145 84.9083 53.0746 96.1162 66.9645 96.1162Z" fill="#4785FF"/>+<path d="M66.9638 91.4221C78.2493 91.4221 87.3981 82.3158 87.3981 71.0828C87.3981 59.8495 78.2493 50.7432 66.9638 50.7432C55.6781 50.7432 46.5293 59.8496 46.5293 71.0828C46.5293 82.3158 55.6782 91.4221 66.9638 91.4221Z" fill="#ADC9FF"/>+<path d="M66.9647 86.728C75.6458 86.728 82.6836 79.7229 82.6836 71.0821C82.6836 62.4413 75.6458 55.4365 66.9647 55.4365C58.2835 55.4365 51.2461 62.4413 51.2461 71.0821C51.2461 79.7229 58.2835 86.728 66.9647 86.728Z" fill="white"/>+</g>+<rect x="27.9023" y="86.8545" width="88.4664" height="59.2816" rx="10" transform="rotate(-20.6444 27.9023 86.8545)" fill="#B2D2FF"/>+<mask id="path-14-inside-1_1558_2367" fill="white">+<path d="M193.443 40.9355C219.31 40.9355 240.28 61.9046 240.28 87.7715C240.28 113.638 219.31 134.608 193.443 134.608C190.308 134.608 187.246 134.296 184.283 133.709C175.094 144.641 161.321 151.593 145.922 151.593C118.255 151.593 95.8262 129.163 95.8262 101.496C95.8263 73.8291 118.255 51.4005 145.922 51.4004C151.258 51.4004 156.4 52.235 161.223 53.7803C169.618 45.8194 180.96 40.9356 193.443 40.9355Z"/>+</mask>+<path d="M193.443 40.9355C219.31 40.9355 240.28 61.9046 240.28 87.7715C240.28 113.638 219.31 134.608 193.443 134.608C190.308 134.608 187.246 134.296 184.283 133.709C175.094 144.641 161.321 151.593 145.922 151.593C118.255 151.593 95.8262 129.163 95.8262 101.496C95.8263 73.8291 118.255 51.4005 145.922 51.4004C151.258 51.4004 156.4 52.235 161.223 53.7803C169.618 45.8194 180.96 40.9356 193.443 40.9355Z" fill="white"/>+<path d="M193.443 40.9355V39.9355H193.443L193.443 40.9355ZM240.28 87.7715H241.28V87.7715L240.28 87.7715ZM193.443 134.608L193.443 135.608H193.443V134.608ZM184.283 133.709L184.478 132.728L183.898 132.613L183.518 133.066L184.283 133.709ZM145.922 151.593L145.922 152.593H145.922V151.593ZM95.8262 101.496L94.8262 101.496V101.496H95.8262ZM145.922 51.4004V50.4004H145.922L145.922 51.4004ZM161.223 53.7803L160.918 54.7326L161.481 54.9132L161.911 54.5059L161.223 53.7803ZM193.443 40.9355V41.9355C218.758 41.9355 239.28 62.457 239.28 87.7715L240.28 87.7715L241.28 87.7715C241.28 61.3523 219.862 39.9355 193.443 39.9355V40.9355ZM240.28 87.7715H239.28C239.28 113.086 218.758 133.608 193.443 133.608V134.608V135.608C219.863 135.608 241.28 114.191 241.28 87.7715H240.28ZM193.443 134.608L193.443 133.608C190.375 133.608 187.377 133.303 184.478 132.728L184.283 133.709L184.089 134.69C187.114 135.29 190.242 135.608 193.443 135.608L193.443 134.608ZM184.283 133.709L183.518 133.066C174.51 143.781 161.013 150.593 145.922 150.593V151.593V152.593C161.629 152.593 175.677 145.501 185.049 134.352L184.283 133.709ZM145.922 151.593L145.922 150.593C118.807 150.593 96.8262 128.611 96.8262 101.496H95.8262H94.8262C94.8262 129.716 117.702 152.593 145.922 152.593L145.922 151.593ZM95.8262 101.496L96.8262 101.496C96.8263 74.3813 118.807 52.4005 145.922 52.4004L145.922 51.4004L145.922 50.4004C117.703 50.4005 94.8263 73.2768 94.8262 101.496L95.8262 101.496ZM145.922 51.4004V52.4004C151.153 52.4004 156.192 53.2185 160.918 54.7326L161.223 53.7803L161.528 52.828C156.607 51.2514 151.363 50.4004 145.922 50.4004V51.4004ZM161.223 53.7803L161.911 54.5059C170.128 46.7142 181.226 41.9356 193.443 41.9355L193.443 40.9355L193.443 39.9355C180.694 39.9356 169.108 44.9247 160.535 53.0546L161.223 53.7803Z" fill="#C5C5C5" mask="url(#path-14-inside-1_1558_2367)"/>+<mask id="path-16-inside-2_1558_2367" fill="white">+<path d="M97.6172 225.885C123.484 225.885 144.454 204.916 144.454 179.049C144.454 160.965 134.203 145.277 119.197 137.473C119.404 136.009 119.514 134.514 119.514 132.993C119.514 115.451 105.293 101.231 87.751 101.23C76.3116 101.23 66.2863 107.279 60.6943 116.352C57.278 115.616 53.7321 115.228 50.0957 115.228C22.4286 115.228 0 137.656 0 165.323C2.68011e-05 192.99 22.4286 215.419 50.0957 215.419C55.4319 215.419 60.5734 214.584 65.3965 213.039C73.792 221 85.1339 225.885 97.6172 225.885Z"/>+</mask>+<path d="M97.6172 225.885C123.484 225.885 144.454 204.916 144.454 179.049C144.454 160.965 134.203 145.277 119.197 137.473C119.404 136.009 119.514 134.514 119.514 132.993C119.514 115.451 105.293 101.231 87.751 101.23C76.3116 101.23 66.2863 107.279 60.6943 116.352C57.278 115.616 53.7321 115.228 50.0957 115.228C22.4286 115.228 0 137.656 0 165.323C2.68011e-05 192.99 22.4286 215.419 50.0957 215.419C55.4319 215.419 60.5734 214.584 65.3965 213.039C73.792 221 85.1339 225.885 97.6172 225.885Z" fill="#F7F7F7"/>+<path d="M97.6172 225.885V226.885H97.6172L97.6172 225.885ZM144.454 179.049H145.454V179.049L144.454 179.049ZM119.197 137.473L118.736 138.36L118.108 138.033L118.207 137.333L119.197 137.473ZM119.514 132.993L120.514 132.993V132.993H119.514ZM87.751 101.23V100.23H87.751L87.751 101.23ZM60.6943 116.352L61.5456 116.876L61.1747 117.478L60.4838 117.329L60.6943 116.352ZM50.0957 115.228L50.0957 114.228H50.0957V115.228ZM0 165.323H-1H0ZM50.0957 215.419V216.419H50.0957L50.0957 215.419ZM65.3965 213.039L65.0914 212.087L65.6551 211.906L66.0846 212.313L65.3965 213.039ZM97.6172 225.885V224.885C122.932 224.885 143.454 204.363 143.454 179.049L144.454 179.049L145.454 179.049C145.454 205.468 124.036 226.885 97.6172 226.885V225.885ZM144.454 179.049H143.454C143.454 161.353 133.424 145.999 118.736 138.36L119.197 137.473L119.659 136.585C134.983 144.556 145.454 160.577 145.454 179.049H144.454ZM119.197 137.473L118.207 137.333C118.407 135.914 118.514 134.465 118.514 132.993H119.514H120.514C120.514 134.562 120.4 136.104 120.187 137.612L119.197 137.473ZM119.514 132.993L118.514 132.993C118.514 116.004 104.741 102.231 87.751 102.23L87.751 101.23L87.751 100.23C105.845 100.231 120.514 114.899 120.514 132.993L119.514 132.993ZM87.751 101.23V102.23C76.673 102.23 66.9632 108.087 61.5456 116.876L60.6943 116.352L59.8431 115.827C65.6094 106.472 75.9501 100.23 87.751 100.23V101.23ZM60.6943 116.352L60.4838 117.329C57.136 116.608 53.6607 116.228 50.0957 116.228V115.228V114.228C53.8034 114.228 57.4199 114.623 60.9049 115.374L60.6943 116.352ZM50.0957 115.228L50.0957 116.228C22.9809 116.228 1 138.208 1 165.323H0H-1C-1 137.104 21.8763 114.228 50.0957 114.228L50.0957 115.228ZM0 165.323H1C1.00003 192.438 22.9809 214.419 50.0957 214.419L50.0957 215.419L50.0957 216.419C21.8763 216.419 -0.999973 193.543 -1 165.323H0ZM50.0957 215.419V214.419C55.3271 214.419 60.3657 213.601 65.0914 212.087L65.3965 213.039L65.7016 213.991C60.7811 215.568 55.5367 216.419 50.0957 216.419V215.419ZM65.3965 213.039L66.0846 212.313C74.3018 220.105 85.4001 224.885 97.6172 224.885L97.6172 225.885L97.6172 226.885C84.8678 226.885 73.2822 221.895 64.7084 213.765L65.3965 213.039Z" fill="#C5C5C5" mask="url(#path-16-inside-2_1558_2367)"/>+<mask id="path-18-inside-3_1558_2367" fill="white">+<path d="M236.67 84.0029C259.338 84.003 279.514 94.6748 292.448 111.268C299.202 107.875 306.829 105.963 314.902 105.963C342.569 105.963 364.999 128.391 364.999 156.059C364.999 183.726 342.57 206.155 314.902 206.155C306.201 206.155 298.019 203.935 290.889 200.033C277.923 215.519 258.447 225.369 236.67 225.369C220.151 225.369 204.955 219.703 192.921 210.207C185.002 215.45 175.509 218.508 165.301 218.508C137.634 218.508 115.205 196.078 115.205 168.411C115.205 140.744 137.634 118.316 165.301 118.315C168.776 118.315 172.168 118.669 175.443 119.343C187.665 98.2164 210.508 84.0029 236.67 84.0029Z"/>+</mask>+<path d="M236.67 84.0029C259.338 84.003 279.514 94.6748 292.448 111.268C299.202 107.875 306.829 105.963 314.902 105.963C342.569 105.963 364.999 128.391 364.999 156.059C364.999 183.726 342.57 206.155 314.902 206.155C306.201 206.155 298.019 203.935 290.889 200.033C277.923 215.519 258.447 225.369 236.67 225.369C220.151 225.369 204.955 219.703 192.921 210.207C185.002 215.45 175.509 218.508 165.301 218.508C137.634 218.508 115.205 196.078 115.205 168.411C115.205 140.744 137.634 118.316 165.301 118.315C168.776 118.315 172.168 118.669 175.443 119.343C187.665 98.2164 210.508 84.0029 236.67 84.0029Z" fill="#FCFCFC"/>+<path d="M236.67 84.0029V83.0029V84.0029ZM292.448 111.268L291.66 111.882L292.164 112.529L292.897 112.161L292.448 111.268ZM314.902 105.963V104.963V105.963ZM364.999 156.059H365.999V156.059L364.999 156.059ZM314.902 206.155V207.155V206.155ZM290.889 200.033L291.369 199.156L290.649 198.762L290.122 199.391L290.889 200.033ZM236.67 225.369V226.369V225.369ZM192.921 210.207L193.54 209.422L192.972 208.974L192.369 209.373L192.921 210.207ZM165.301 218.508L165.301 219.508H165.301V218.508ZM115.205 168.411L114.205 168.411V168.411H115.205ZM165.301 118.315V117.315H165.301L165.301 118.315ZM175.443 119.343L175.242 120.322L175.948 120.467L176.309 119.844L175.443 119.343ZM236.67 84.0029V85.0029C259.017 85.003 278.906 95.5221 291.66 111.882L292.448 111.268L293.237 110.653C280.121 93.8274 259.66 83.003 236.67 83.0029V84.0029ZM292.448 111.268L292.897 112.161C299.515 108.837 306.988 106.963 314.902 106.963V105.963V104.963C306.669 104.963 298.89 106.913 291.999 110.374L292.448 111.268ZM314.902 105.963V106.963C342.017 106.963 363.999 128.944 363.999 156.059L364.999 156.059L365.999 156.059C365.999 127.839 343.122 104.963 314.902 104.963V105.963ZM364.999 156.059H363.999C363.999 183.174 342.017 205.155 314.902 205.155V206.155V207.155C343.122 207.155 365.999 184.278 365.999 156.059H364.999ZM314.902 206.155V205.155C306.373 205.155 298.356 202.98 291.369 199.156L290.889 200.033L290.409 200.91C297.682 204.891 306.029 207.155 314.902 207.155V206.155ZM290.889 200.033L290.122 199.391C277.338 214.66 258.139 224.369 236.67 224.369V225.369V226.369C258.756 226.369 278.508 216.379 291.655 200.675L290.889 200.033ZM236.67 225.369V224.369C220.383 224.369 205.404 218.783 193.54 209.422L192.921 210.207L192.301 210.992C204.506 220.622 219.918 226.369 236.67 226.369V225.369ZM192.921 210.207L192.369 209.373C184.609 214.512 175.307 217.508 165.301 217.508V218.508V219.508C175.712 219.508 185.396 216.389 193.473 211.041L192.921 210.207ZM165.301 218.508L165.301 217.508C138.186 217.508 116.205 195.526 116.205 168.411H115.205H114.205C114.205 196.631 137.081 219.508 165.301 219.508L165.301 218.508ZM115.205 168.411L116.205 168.411C116.205 141.296 138.186 119.316 165.301 119.315L165.301 118.315L165.301 117.315C137.081 117.316 114.205 140.192 114.205 168.411L115.205 168.411ZM165.301 118.315V119.315C168.707 119.315 172.032 119.662 175.242 120.322L175.443 119.343L175.645 118.363C172.303 117.676 168.844 117.315 165.301 117.315V118.315ZM175.443 119.343L176.309 119.844C188.359 99.0135 210.879 85.0029 236.67 85.0029V84.0029V83.0029C210.136 83.0029 186.971 97.4194 174.578 118.842L175.443 119.343Z" fill="#C5C5C5" mask="url(#path-18-inside-3_1558_2367)"/>+<defs>+<clipPath id="clip0_1558_2367">+<rect width="62.4484" height="64.6018" fill="white" transform="translate(248.725 24.7832)"/>+</clipPath>+<clipPath id="clip1_1558_2367">+<rect width="62.4484" height="64.6018" fill="white" transform="translate(263.797 57.085)"/>+</clipPath>+<clipPath id="clip2_1558_2367">+<rect width="62.4484" height="64.6018" fill="white" transform="translate(35.5254 38.7812)"/>+</clipPath>+</defs>+</svg>diff --git a/apps/web/public/illustrations/teamcollab.svg b/apps/web/public/illustrations/teamcollab.svgnew file mode 100644index 000000000..2e2c3908f--- /dev/null+++ b/apps/web/public/illustrations/teamcollab.svg@@ -0,0 +1,133 @@+<svg width="591" height="348" viewBox="0 0 591 348" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">+<mask id="mask0_1555_2409" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="591" height="348">+<rect width="591" height="348" rx="20" fill="url(#paint0_linear_1555_2409)"/>+</mask>+<g mask="url(#mask0_1555_2409)">+<path d="M161 132.5H219C229.77 132.5 238.5 141.23 238.5 152V210C238.5 220.77 229.77 229.5 219 229.5H161C150.23 229.5 141.5 220.77 141.5 210V152C141.5 141.23 150.23 132.5 161 132.5Z" fill="#F9F9F9"/>+<path d="M161 132.5H219C229.77 132.5 238.5 141.23 238.5 152V210C238.5 220.77 229.77 229.5 219 229.5H161C150.23 229.5 141.5 220.77 141.5 210V152C141.5 141.23 150.23 132.5 161 132.5Z" stroke="#75E480"/>+<rect x="170" y="161" width="40" height="40" fill="url(#pattern0_1555_2409)"/>+<path d="M271 132.5H329C339.77 132.5 348.5 141.23 348.5 152V210C348.5 220.77 339.77 229.5 329 229.5H271C260.23 229.5 251.5 220.77 251.5 210V152C251.5 141.23 260.23 132.5 271 132.5Z" fill="#F9F9F9"/>+<path d="M271 132.5H329C339.77 132.5 348.5 141.23 348.5 152V210C348.5 220.77 339.77 229.5 329 229.5H271C260.23 229.5 251.5 220.77 251.5 210V152C251.5 141.23 260.23 132.5 271 132.5Z" stroke="#CECECE"/>+<rect x="280" y="161" width="40" height="40" rx="20" fill="url(#pattern1_1555_2409)"/>+<path d="M381 132.5H439C449.77 132.5 458.5 141.23 458.5 152V210C458.5 220.77 449.77 229.5 439 229.5H381C370.23 229.5 361.5 220.77 361.5 210V152C361.5 141.23 370.23 132.5 381 132.5Z" fill="#F9F9F9"/>+<path d="M381 132.5H439C449.77 132.5 458.5 141.23 458.5 152V210C458.5 220.77 449.77 229.5 439 229.5H381C370.23 229.5 361.5 220.77 361.5 210V152C361.5 141.23 370.23 132.5 381 132.5Z" stroke="#75E480"/>+<rect x="390" y="161" width="40" height="40" rx="20" fill="url(#pattern2_1555_2409)"/>+<g filter="url(#filter0_d_1555_2409)">+<path d="M138 263C138 251.954 146.954 243 158 243H216C227.046 243 236 251.954 236 263V321C236 332.046 227.046 341 216 341H158C146.954 341 138 332.046 138 321V263Z" fill="white"/>+<path d="M158 243.5H216C226.77 243.5 235.5 252.23 235.5 263V321C235.5 331.77 226.77 340.5 216 340.5H158C147.23 340.5 138.5 331.77 138.5 321V263C138.5 252.23 147.23 243.5 158 243.5Z" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter1_d_1555_2409)">+<path d="M248 263C248 251.954 256.954 243 268 243H326C337.046 243 346 251.954 346 263V321C346 332.046 337.046 341 326 341H268C256.954 341 248 332.046 248 321V263Z" fill="white"/>+<path d="M268 243.5H326C336.77 243.5 345.5 252.23 345.5 263V321C345.5 331.77 336.77 340.5 326 340.5H268C257.23 340.5 248.5 331.77 248.5 321V263C248.5 252.23 257.23 243.5 268 243.5Z" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter2_d_1555_2409)">+<path d="M358 263C358 251.954 366.954 243 378 243H436C447.046 243 456 251.954 456 263V321C456 332.046 447.046 341 436 341H378C366.954 341 358 332.046 358 321V263Z" fill="white"/>+<path d="M378 243.5H436C446.77 243.5 455.5 252.23 455.5 263V321C455.5 331.77 446.77 340.5 436 340.5H378C367.23 340.5 358.5 331.77 358.5 321V263C358.5 252.23 367.23 243.5 378 243.5Z" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter3_d_1555_2409)">+<path d="M30 263C30 251.954 38.9543 243 50 243H108C119.046 243 128 251.954 128 263V321C128 332.046 119.046 341 108 341H50C38.9543 341 30 332.046 30 321V263Z" fill="white"/>+<path d="M50 243.5H108C118.77 243.5 127.5 252.23 127.5 263V321C127.5 331.77 118.77 340.5 108 340.5H50C39.2304 340.5 30.5 331.77 30.5 321V263C30.5 252.23 39.2304 243.5 50 243.5Z" stroke="#EBEBEB"/>+</g>+<g filter="url(#filter4_d_1555_2409)">+<path d="M469 263C469 251.954 477.954 243 489 243H547C558.046 243 567 251.954 567 263V321C567 332.046 558.046 341 547 341H489C477.954 341 469 332.046 469 321V263Z" fill="white"/>+<path d="M489 243.5H547C557.77 243.5 566.5 252.23 566.5 263V321C566.5 331.77 557.77 340.5 547 340.5H489C478.23 340.5 469.5 331.77 469.5 321V263C469.5 252.23 478.23 243.5 489 243.5Z" stroke="#EBEBEB"/>+</g>+<path d="M50 132.5H108C118.77 132.5 127.5 141.23 127.5 152V210C127.5 220.77 118.77 229.5 108 229.5H50C39.2304 229.5 30.5 220.77 30.5 210V152C30.5 141.23 39.2304 132.5 50 132.5Z" fill="#F9F9F9"/>+<path d="M50 132.5H108C118.77 132.5 127.5 141.23 127.5 152V210C127.5 220.77 118.77 229.5 108 229.5H50C39.2304 229.5 30.5 220.77 30.5 210V152C30.5 141.23 39.2304 132.5 50 132.5Z" stroke="#CECECE"/>+<rect x="59" y="161" width="40" height="40" rx="20" fill="url(#pattern3_1555_2409)"/>+<path d="M492 132.5H550C560.77 132.5 569.5 141.23 569.5 152V210C569.5 220.77 560.77 229.5 550 229.5H492C481.23 229.5 472.5 220.77 472.5 210V152C472.5 141.23 481.23 132.5 492 132.5Z" fill="#F9F9F9"/>+<path d="M492 132.5H550C560.77 132.5 569.5 141.23 569.5 152V210C569.5 220.77 560.77 229.5 550 229.5H492C481.23 229.5 472.5 220.77 472.5 210V152C472.5 141.23 481.23 132.5 492 132.5Z" stroke="#CECECE"/>+<rect x="501" y="161" width="40" height="40" rx="20" fill="url(#pattern4_1555_2409)"/>+<path d="M492 22.5H550C560.77 22.5 569.5 31.2304 569.5 42V100C569.5 110.77 560.77 119.5 550 119.5H492C481.23 119.5 472.5 110.77 472.5 100V42C472.5 31.2304 481.23 22.5 492 22.5Z" fill="white"/>+<path d="M492 22.5H550C560.77 22.5 569.5 31.2304 569.5 42V100C569.5 110.77 560.77 119.5 550 119.5H492C481.23 119.5 472.5 110.77 472.5 100V42C472.5 31.2304 481.23 22.5 492 22.5Z" stroke="#EBEBEB"/>+<path d="M381 22.5H439C449.77 22.5 458.5 31.2304 458.5 42V100C458.5 110.77 449.77 119.5 439 119.5H381C370.23 119.5 361.5 110.77 361.5 100V42C361.5 31.2304 370.23 22.5 381 22.5Z" fill="white"/>+<path d="M381 22.5H439C449.77 22.5 458.5 31.2304 458.5 42V100C458.5 110.77 449.77 119.5 439 119.5H381C370.23 119.5 361.5 110.77 361.5 100V42C361.5 31.2304 370.23 22.5 381 22.5Z" stroke="#EBEBEB"/>+<path d="M271 22.5H329C339.77 22.5 348.5 31.2304 348.5 42V100C348.5 110.77 339.77 119.5 329 119.5H271C260.23 119.5 251.5 110.77 251.5 100V42C251.5 31.2304 260.23 22.5 271 22.5Z" fill="white"/>+<path d="M271 22.5H329C339.77 22.5 348.5 31.2304 348.5 42V100C348.5 110.77 339.77 119.5 329 119.5H271C260.23 119.5 251.5 110.77 251.5 100V42C251.5 31.2304 260.23 22.5 271 22.5Z" stroke="#EBEBEB"/>+<path d="M161 22.5H219C229.77 22.5 238.5 31.2304 238.5 42V100C238.5 110.77 229.77 119.5 219 119.5H161C150.23 119.5 141.5 110.77 141.5 100V42C141.5 31.2304 150.23 22.5 161 22.5Z" fill="white"/>+<path d="M161 22.5H219C229.77 22.5 238.5 31.2304 238.5 42V100C238.5 110.77 229.77 119.5 219 119.5H161C150.23 119.5 141.5 110.77 141.5 100V42C141.5 31.2304 150.23 22.5 161 22.5Z" stroke="#EBEBEB"/>+<path d="M50 22.5H108C118.77 22.5 127.5 31.2304 127.5 42V100C127.5 110.77 118.77 119.5 108 119.5H50C39.2304 119.5 30.5 110.77 30.5 100V42C30.5 31.2304 39.2304 22.5 50 22.5Z" fill="white"/>+<path d="M50 22.5H108C118.77 22.5 127.5 31.2304 127.5 42V100C127.5 110.77 118.77 119.5 108 119.5H50C39.2304 119.5 30.5 110.77 30.5 100V42C30.5 31.2304 39.2304 22.5 50 22.5Z" stroke="#EBEBEB"/>+<rect x="223" y="128" width="20" height="20" rx="10" fill="#75E480"/>+<path d="M237.83 135.444L231.678 141.337C231.624 141.389 231.561 141.43 231.49 141.458C231.42 141.486 231.345 141.5 231.269 141.5C231.193 141.5 231.118 141.486 231.048 141.458C230.978 141.43 230.914 141.389 230.861 141.337L228.169 138.759C228.116 138.708 228.073 138.647 228.044 138.579C228.015 138.512 228 138.44 228 138.368C228 138.295 228.015 138.223 228.044 138.156C228.073 138.089 228.116 138.028 228.169 137.976C228.223 137.925 228.287 137.884 228.357 137.856C228.427 137.829 228.502 137.814 228.578 137.814C228.654 137.814 228.729 137.829 228.799 137.856C228.869 137.884 228.933 137.925 228.986 137.976L231.27 140.164L237.014 134.662C237.122 134.558 237.269 134.5 237.422 134.5C237.575 134.5 237.722 134.558 237.831 134.662C237.939 134.766 238 134.907 238 135.053C238 135.2 237.939 135.341 237.831 135.445L237.83 135.444Z" fill="white"/>+<rect x="443" y="128" width="20" height="20" rx="10" fill="#75E480"/>+<path d="M457.83 135.444L451.678 141.337C451.624 141.389 451.561 141.43 451.49 141.458C451.42 141.486 451.345 141.5 451.269 141.5C451.193 141.5 451.118 141.486 451.048 141.458C450.978 141.43 450.914 141.389 450.861 141.337L448.169 138.759C448.116 138.708 448.073 138.647 448.044 138.579C448.015 138.512 448 138.44 448 138.368C448 138.295 448.015 138.223 448.044 138.156C448.073 138.089 448.116 138.028 448.169 137.976C448.223 137.925 448.287 137.884 448.357 137.856C448.427 137.829 448.502 137.814 448.578 137.814C448.654 137.814 448.729 137.829 448.799 137.856C448.869 137.884 448.933 137.925 448.986 137.976L451.27 140.164L457.014 134.662C457.122 134.558 457.269 134.5 457.422 134.5C457.575 134.5 457.722 134.558 457.831 134.662C457.939 134.766 458 134.907 458 135.053C458 135.2 457.939 135.341 457.831 135.445L457.83 135.444Z" fill="white"/>+</g>+<defs>+<pattern id="pattern0_1555_2409" patternContentUnits="objectBoundingBox" width="1" height="1">+<use xlink:href="#image0_1555_2409" transform="scale(0.00666667)"/>+</pattern>+<pattern id="pattern1_1555_2409" patternContentUnits="objectBoundingBox" width="1" height="1">+<use xlink:href="#image1_1555_2409" transform="scale(0.00666667)"/>+</pattern>+<pattern id="pattern2_1555_2409" patternContentUnits="objectBoundingBox" width="1" height="1">+<use xlink:href="#image2_1555_2409" transform="scale(0.00666667)"/>+</pattern>+<filter id="filter0_d_1555_2409" x="136" y="243" width="102" height="128" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1555_2409"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1555_2409"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1555_2409" result="shape"/>+</filter>+<filter id="filter1_d_1555_2409" x="246" y="243" width="102" height="128" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1555_2409"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1555_2409"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1555_2409" result="shape"/>+</filter>+<filter id="filter2_d_1555_2409" x="356" y="243" width="102" height="128" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1555_2409"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1555_2409"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1555_2409" result="shape"/>+</filter>+<filter id="filter3_d_1555_2409" x="28" y="243" width="102" height="128" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1555_2409"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1555_2409"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1555_2409" result="shape"/>+</filter>+<filter id="filter4_d_1555_2409" x="467" y="243" width="102" height="128" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feMorphology radius="38" operator="erode" in="SourceAlpha" result="effect1_dropShadow_1555_2409"/>+<feOffset dy="28"/>+<feGaussianBlur stdDeviation="20"/>+<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1555_2409"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1555_2409" result="shape"/>+</filter>+<pattern id="pattern3_1555_2409" patternContentUnits="objectBoundingBox" width="1" height="1">+<use xlink:href="#image3_1555_2409" transform="scale(0.00666667)"/>+</pattern>+<pattern id="pattern4_1555_2409" patternContentUnits="objectBoundingBox" width="1" height="1">+<use xlink:href="#image4_1555_2409" transform="scale(0.00666667)"/>+</pattern>+<linearGradient id="paint0_linear_1555_2409" x1="290" y1="24" x2="287" y2="332" gradientUnits="userSpaceOnUse">+<stop stop-opacity="0"/>+<stop offset="0.530668" stop-color="white"/>+<stop offset="1" stop-opacity="0"/>+</linearGradient>+<image id="image0_1555_2409" width="150" height="150" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAlqADAAQAAAABAAAAlgAAAAAXS0ggAAAhJElEQVR4Ae1dC5QVxZmu7nvnDjPDDMwLGB4zKBhGRRSB3YjxgZGgbiQqYvb4WDSrgcSzyZrEzeMkJ7rJScySE09yokHjiSFRTyJiXMyqLMTxsUESQBRFQQFhhgGGeTLDvO7c7t7v6zs93Bnu7fvqe2/12DWn5/ajuuqvv77+66+//qpSxMcsXF53n78yVFUkAsEyoatTDKFONQxjmlCMakWIKYahTBTCKFOEUmIIUQT25OPw41AHWaXjN4SjH/G7DWF0CqG0KYrRhPiNwlDqFUVpUIR+WKh6owgG2pr9R7tfWXQf3/nYBPBmdIfb6x4f0672VAY05UxDUWoNQz8HoJkBAFUDTJUovQWePJynyw9gSwzg6MfRDZA1A3D1AN9+RVHfUwxjT9BnHCjVC5t/u+iOPsQZtSFdRkrHmOVPP+0LjWst9/mMWboi5imKWAAiz8UxDUcxDgIoF4GA68LRgGO3YYhtqiF2aJqy13+ivHXdTTdpuSAqU3mOCmARTP3jmyb6/b65KNBlYNZCiI5ZOC/FuS9TzEszXQ00toPGvUhnC85fDYW0nfkdE5tGA8hcDazr6h4cr2qBudBplhiKWITC1KKSKJXcVi7gSnTh3x7FEHXQ+TbqvuDO5xbd04H7rgxuqwBB5Xu8XlXjE9piqNNL0aQsQCHKwX3XlSUGYlAk0YomfJvQxQZN+DZ1qEcPuU35d01loLkLaOXHZyvCdwMqZCkU71n4DcSonNFyO4gOAJvKDYbQnvW1TngXzWTQDYWTHlhXv/CL/IIC/1woujfjS74WTK3GYXX93cBjJ2ikiaMelfU8OiRP9faGdr54zVfY85Q2SAusL25/JK+9U5sDMK0whHI9bEtTwEVp6c1SDYMdSqMijD+BEWtLS3y7Hp2/kr1N6YJ8FQUD07LXHpmp6Pq/QNm4BRybjkM+OnNblQCYOAg97ElDVX+3/tKV+wQMZrklaXjuUlXY8pceK9MDwRuFIVYBSnNAqqymguFczN2VBl7tAq/WqMHAM+uuurMtd6QMz1kKYLGnV6FNuEj4jHsgsJaAxMLhZHpXcTjQA4G1UWjKgy2+42/I0IPMObCWbv71RL868AUQsgrMo2LuhdQ5gOEjsSak5/1mw5V3NaWeTPpv5gxY9913n/ruJZWfhGL+bYjyxSgKB3u9kD4H+tE8boKC/+PZrzdvBZ/Zo8x6yAmwltc9NBZeBbfAwvwNlHhm1kv98chwH0YkfgoviyfXLbr7ZLaLnHVgLd/0SLXuD90Lw98KFJbDL17IHAe6YEheq4b8q9ctXlmfuWxOTzmrwFpWt2a+Yug/gB7Aps/r8Z1eH5m4o6GSNxmK+r31i1Ztz0QG0dLMCrDofaCXN18DW8sPQQTNCF7IPgd2CcP4rtpa+UI2vCcyDqzwkIzvVsVQvg9e0ifKC7njQIOhGPf39mpPZHpIKKPN0W0bVxcpgfy7YTi/H7yclDt+ejkPcmAcvGcvDviUgXm3LHp71xObMjYclDGJdcsLvyjpz/d9De7AX0OhPCVdLmx3wU36Z/n92s+evOYr8Nl3PmQEWOj5jTN82jehpH8VJHtWdOfrzYkUe1D5P1c030/QYzzhRIKRaTjufkJJ5YEqksXSnhfyw2ddsc6cptJRYFGnMps/T1I5XU+ZSs8EF+uMdedkJo4Bi72/Xn/hlwZ1Kq/5c7KWMptWIeuMdcc6dCorR4BFO1VBge9WEPgtEOYp6k7VTvbSKWbdsQ5Zl05k6wiwaPwctFNxUoMX3MmBctahach2gP60e4U3bH5ogaIqj4EWz6LuQIVIkMQuQzfufPbKu7elQ0taEosDyqqq/KcHqnSqQLp357BOWbfpUJYysOj6Qi+FwQHldGjw3pWMA6xT1i3rOFXSUgIWnfToTzXo+uKIspdqAbz3MsIBH+uWdcy6TiWHlF4yPT/DTnpeDzAVrrvjnWI6YrKuUyE3aWDRR91QTbOC5/mZCsfd9c5M1jXrPFmykwIWbRyc+ACfas6k8cLHgQOoa9Z5svatpIBllLUshH1iJfg5KtdMgNKKb8YQOmbK6oYuNBzhc+ue9XvqGZoLvDGqQ4B1zrpPppQJ27Gu3/zLclVVH0XiXJRjVAQTSAAGgw/TivN9eaLQHxDFeWNECY4if74owHVA9eG5aoJswNBEX2hAdIf6RdcAjz5xMtQn+rQBEdLDE2KQFCYeJcxat/DyWUyKvSvRSbFcWzOhAFAtQ8SrEooscSQLTCpqfyyAM6GgWNQUlYuaseVicuF4UZE/1gTWGIDMr6pCBaDUCJBYEi0EaRbUQgBVv2jr7xbHek+I+u5WcfBkqzjac0J0DvSaQGM+oyRcZc5SF4LCJW5IqNTLXl1zFrj0R/B3btwUJY3AJouhKC9fTB9bIWaPnyxqx1eJqYWlJpDyIJXSDWw+u0NBgKxTfNjZJN5uaxDvdjSKfgBwVARD7MTX9vn1l636MF554gLLnP4uJnwf9fIdJJaUThYv82w8p47EZm7CmBJxQfk0Mb98uphRMgFgys94c3USzeTj+7aIV47tyXhe2eAl8tDByh+1iOP3x5vGH7cprDQmnA/N4WYk6ipQUUJhwqaYWlQqFk6YKS6qPFNMgXRi85atMBZ6WuWYlI3X2SIzmXxUsPXmSjHhOby0w+5FW2ChixkwRMsKJHCmXSIyPQs3eIaoQIV+auJZ4vJJs0xA5ULXoWK/58QxzLqCMh+3bZCJi7a0nInirAA23rFbXdAWWFply4VYdek622wkekgple/ziwvLa8Q/TZ0jzho3UfihfOcq7O9qFh91tZiS044GdghM8DESECg7BgGs6/TKlqdA7dZY5YrJdUorLs+IF10xF5C61KTCceLWGReJVbWXi7OhmOcSVLSBvdl6yDRFxAIKpSuPsf4xZo+0Ej1UmjasjkasSpPg/jRigxiJRUtsiVXRch4KfW2sF2W5z4qhOeCCsqli+RnzxaySSTARxKrKxKgmKAZ0zezN9esh85zAZboEK6ViQMWB31jgbek7Kd5pxw4oIDAaOZRSBb4AmuuZ4mLogJVjik3zxP6u42LTkffMJjQxanMTi9hQKlrWIveoulZUYAGJPt1ovR4LStTkhuzEcmXlsIIvgx61rOZCs3ISe3N4LIKoI9gjGns6xOHuNvO3pf+k6Az2moZPPteRFxspv+ITY/x+04BaBptXVcE4MQ0dBHYMynFN0DHQzEDbViyQk+7rqueKa6edP/QO32Nn46ySieKxD14Xb7c3mHnyvoShRjeU64GVt6JN2Y8KrIHy9uk+xaC0Su/TzyA3CKpCfPGfRcV8dtoc00qeTHaUSpQqe04cNSUL9SGCqQ92KA1ihn+WthMpcSiBwoEnigkcgqk0UAT7WLk4B/YxNmcvNe4WQUg7Kw3rLf5S+p09rkp8ZvI5w0BlxaGhdmn1BeKjky2moTVaGlbcHP6CLONaYOVx0LB/JB1RgWUuzh/e5WFkfCmuqYOMhR1qWc08sWTK7KiVE4tQSp+DqLCtzQegA9WbUsUyYNI8wS8pLGWif1OnQHbqeR8MoEcg7Xj8veUjE0y0zMcCBNM/r3SqKAkUxCJTzCiuhBQcL0509EZtSmO+mN0HtYNYiQ8sbiMC2pbig42pmGWX9uG5UZLQer58+nwTVIlazCmhDmG45eWje8Q2VH4LhmEIUFZyrOZqeM6xrwgxgpKB0ogq+SnYmbeH/WN+JYExw+6NvKDUox2M5ZW44QhAwV0KzPxh5PYsp0ks7k1jqOY2IiPLmvNrsjhfzROfQzPxGUiqREHVDv2pDoD6y9H3zeEWatSmdBoEQ7YLRvC1Ath2gVLwBHS8WFLP7t1sPkNRFqh6gEN9dZH5DjM30A0VDF+Cr60iMpIs5xyaWQy95Jqp55l6TDy6WIG7O46IX77/svjjR9vMweFI6RLv/Uw9J10cR2yFThcrvA/dr7GnfUgSxoqX6/vECjEz0oV5GLDeXFg+ibto5ZrYaPmzSZhfMV1cVzPX7KZHixN5j3oTJRRBtRO6FJvCdJu8yPTTOScd+zqPiw31b0M5H74fJqUynz1Xv9N0zeGHIHsgZoidSDqHNYWD+/3VRkaQ4Zxf+BnFFeKm6QvQ+4o/e5+uLBvq3xIvHn7XrBxZABXJSyr3G4/sFk19nbBjzRATYbZgx4JeEa8c2ysauiGtbDW1yNRyew7w1xI7oOKIRcnQB2HaripafowH91oPZfilpKJl+q5PXGKO/cWjiX5QbPb+Ap1qIEZ3P14a2XzOj4bmChpLKVV7tKDQ4TBodQaySUuaea1WWyq+bdm0TkmsScfKRMi/MM3EHX+dX+0lGEz+h8oz4qbNQd8/HNgmNqMJZCW54YunNKWkCuo9ZvlIswtBRdoXCmJIiGZeDOlYRtBfi/Z9Fm/KEvg107Pz6qmzTQu7HV10Df4T9BLqVWFQ2cWW75kJKJc0fdG4R+wQQ9azIWCZG3OH91C2nuX8l00Ee4EcLrELBNLmI++LjY3vihB80ofad7uXvGeOcgA8LyWGrERNYN1e9/gYSGTu9p6+f66Vcpq/lFYcUP4kHPTiBXbd/xvSipMc3ND8xSuPS5/TGrSAWCL9JrDa1Z5KnJ8rS4HY5eZkhsurZonxcXqBTfAvX3/oTdPg6FLdRBa2O0HHuYNYEqbyHtCUM+F+LI3fFYdaZsIv/YIye5JCUHrZ/H0AL810TQoEs+kH5bZ2FIRDUsgiqacRS2BlgwksrOZWC64WOwFZJ9LgUA191ONJK1qnX2v6YMilJdW8CaoizB+k52klXF947YbAZr8r1Cu2txwSHLaS4JvgyoBU4F/1cxaOYejnAPN5MjCTutXkwhJxfhxp1Qt7z//CIa6tvyd9aYU8F8Cqf+cnLoU9SQo2JFwV7LiUBnaIZw5ul+GDyCOWiCm1MlRVBOTPSLgkGY5IsT67dAos0fYrRO9uP2KOtzF+uoFpcHqY20DFcnOG9iRY7TmxVoZALBFTqggEy7BdblqrtzlVIDZBVNrPh68SGRYrcBzw/47vEycxxd2pXqBbmr9YPJHlvoklYAoLEqhT4AkohTcDlWdKqjPh5GYXDmEq+274kzshrezy8Z6lwAFiCZjCZAt1Kl6XZlbljOIJtgPNlCxvtTYMKqsOtIMp8M57xZYD3D13Kma2GuzT59tGzdJDmgyoL/jRK4wVOG2dExWo5DsZPIg6xs18YgozpwzqV1J0hejJ8D4c8+hCzLG/sFvu8AIfhvNbA2bSON0McuJDtPyG5y7nFe15EtGeR0z58aVOwbcvxQdLRXxX+2HxX+++ZK4CU40B6JqiMpgfSs0p8xwz2AGbDaWWU0q7CRUwgHMAd7UdNqeQOSsLMwvGbnRg/gYffom8OfjNT1GWvfzwX1F0qdxlqMSzckkh599xUsEETOjMw5y+AyebzaWCMvElMB+3mRwoaTuDfTJJLH5JW2B5N+BDk4lqYvqpBY75WRTRV6kNvuGtmAPIEPkstdRjv9UFJ0EebgunuCUL5UYZmkKlRHbRT8ZRemU6yFdBmS5xZtInpmBuEI7uU5cZUr1U3cQBYormbSlMDW5inEdrXA7kE1in/N7jxvcieBxIiAN+Aiv2oFxCaXiRPA6cxoEsLsh5Wt7ejdHMATaDcB71pJbslRw5hBXuIYe7yVnoLKfCGp3A4iLknp6VCvuy9A5nK3E9eo6lch35Xgx3BXnAxsfdMPgnmakkRED14zBnVmSJT7bZ0KbGoZt0fdhtM8nAQ03HPjsZquArJtWKZdPnmc58ffCc7QG46IvGpQSOYzIJl2Zq4AIiGShXikn2c6ywG5U5LsUEHH2NAzk12DVicdXZWOC/QLZhiphlpbRoxhoMXIuhua/LMenBj2wMpBXdtC3/f+7xMzLwI1y7/43wZJCRD3NwTUz5UZmdGCiZnIP8T8uSXqOfrqrFzOfzTnsm+w1ud9KB9az+3PC2gyNkWGQO+/1wzXq7YOdmZPdepp4RUzA1KG2ZyiDZdLn6cQkklRsDfc65a5iTY090OSvLLzLXN43FE0r545CSBLY8QWmDFDWa5CHI3ZSw6XI6TIPbEKVWrBDUNHEMu43RI0SWQExxrLARBMlDlUyk5Lim2MRxaW67/X+4wg6X/Xaw/U231IR4o4rdyuuR0kC6qXnvO8sBSqBSrKp8FmaE2wWCiuuZhm1bdjGz9gyuv0o9mkKlAVnS5CBJkKjTnCRHSLlT1LMJ4TID3KDALhzA+vQ9MDtIZMfqJ6ZUReiHQXjsVVbtSuXwM+7+QNuMGwMt49zO1yldh56z8zDln/MsYwXOr9zbeQxuyRJpMsASMeUXqt6IlfywRZVRFasA2bpPBnHZ7HzoFuxhScUuGyaE7Vhd5uYBTogsgnRacam5yYBNtqZudYC7i9lFyvYzQ2kRPq3RL4KBNsWn1aMSc248IoO49cije1+TZsp4ovXCyQx2u1Ekmg7j+eAbcFHljLj2q/ewKAqX9Ka7tiwBPcJ6Ysrf7D/aXW5UYssKOYgjFawgLC4hC68SooN0O8FBSqszMDvpIqykbKc3sdnltnUcK5Rp+At2tf0twJTKvX0VRX0PfJGqZ2hVlFt+E0JfnEhs+rlV3acxpMWJu3ZhHyQ7l+6WSFiR3AFiiZgynfwUw9iDm112BfGeZZ4DVPzPw0o73L/QTvpx5tIbWBSFNiw7qZZ5ik/LoWsQS2E/rKDPOIAoNDt4IUccIKi4Gebnpl0gxtnsCkbyqLBz5zIJQ8MglsLAKtULuTb3bgkJ/ViQxCaQPlfXYt9F7ndoFyitXjm2J6y028o1u1Qy9mz3IJbCwPrtojv68MFsQ3ZaxrL0Eo7JAQ6+X45dYq+AbhVPEefymH9v/ihmWjl8QGvRNmKJNJg6lnliiB34ctpzSFhKWbMJYU+KhxsDqeYylXTkK8Q6qHaBOhX3BwqvN2qnhdmlkplnxA4GnndYqQ+5JCuB0B4l5N+LB1IswmYRGOuX7iLc6LsUi9FyzQV6VnLMLAhrtEx2nVj08z5BNRdOfLfNuMjcTzpe3L9CYX+7rV7K8gHme4khqwxDwBLHJrWJipYteHCx9VDWX4KKiu5Vk2djpeNqUQxll5sHsJl4sfEdU7mV63sezkkCivTNx5DNipkLRVWhvWmBb+/HVnP/07ALH1AobnPJ+DkIW0wMDWY81BRy1yYU+FXch0epvIGgKsPG3nfMvNjckJtLHXGrOVbOFfA+XTXrciw1WeHYmJ3TnLAk7WXQqf4VO5pxY/F4oQNLba8/tEMc6e2QFVSdxI618xfLMwQsXoRC2k5EGBJnvCdboN2Gdh5uihlN0eUm3Usmn2saGmWjnXogPWSpT90OScWlmeIFLlP0Z0gqmhcks1kNkU7MEDtDN3AyDFgXbmk9pmAcODKCTOcogNkt53Lddqsq146rMicfOOVpkC4PSAebvlnjJpkS9frquWE35jgJE4h1R/di943d5uZTcaLn7DExQ+xEEjAMWNjXF2UxNqICWyIjyXNOhd0Xt/dU4M8z3U0IxFwGNnsEVTkmQ3wOYPr3c64U/4h9FxPZJJ3vbm3eb24MIJm/1TCWEivEDLET+eCU8j54V/cFd/pE/jaU6+rIiDKcsylg0xBvB3jqJCdDGO6w0eAt8wR7kDbRki42wWxKKKRLXZDbqCyC7jcTq0HbuRhHZkRQbW85KJ7Yv9Usa7QmPzJ+Ls9RzG0aMDOShmESiw+fW3RPB+ZdbsBpcGRkGa4JrG1gOidtRgsEDPeW4VSsWJBhRU0tKjWV/EI40hEIfI9/qQS+x/d5BOBLxs07l047X3x99hIo6J8StWgCEwUV0/gbDKCPf4hOFiajygwq8Ar7DIsNJmZGMO40icXnmvBt8hn6Xjj/5dxHawS9uMQCt60HYSgsM+cfRhoVOdyxtfkANsV8D5Ucfdo5K+5s6GB3zboUe03nwzTRbC7v/SG686zIbhghB7CZJqKZQIsOTgIQTyDqqOsV+jj3r1iw43Bu6WRzn0XOBbTTA08vFzpPoP/1pg/FH7CnNSe+Sg4qFmEPsRKtLFGBlddaelAvb6XUmo3DyZYiGg1J3SMxXKr72fo3xUEs2z2/osace0eX5nfaGk295ATWEY0OCKw7DonCPaarMa2KgfP22Fyx6Wzq7RJHejrEURzH+7vECUg9SkZuWs7xClY0jbIFsJCzd1cxpgg+6eNNkwF903kvUclkZh7xj/5VVNI3YMJrJ/J1AaggqJXniZWIYgydxgTN8pcfngdt7BnEnD4UW6ITS5eh/xKbHzq89ethl7JYoKK0YjP1zfOuhr9T7E2gmDalB7cBHkC6Gs7pj8906d3J1ZsJIII0Vl7JsIpgfhabedKyzqbeiTSTyT/FuAehR9247oovDw3jRKYTVWKZEVoq3lEqWp4Hk/8t8gVZzvlFUPEmANgEMsSrEEoBWurj2Y+YNkGTh52MC2JvkmHmmc4/goj2qecO7RT7uo6bGl68MqSTn5PvgkfPC2AkVpqnKe9WRFhRg9g8+ilcS++nZYLMIjzGLxVsLqyxoOKMnDcz7Cxwd43f7XtDrNnzivgAnqAMLIdLQgOxQYzEoje2xMIbvuaKN42KludklVqxChXtPpXxs8dXieloCnMV2MRyvfotaPJehk/V4e52s4PgAn1qGMvwATynAhvDbo64iCmxGI+INBT1dzilh6mrA3tw1KvybebpZaqA1O24KfoLh3eJn+7eKJ488DdRfzK8Fotbmr4I3hwAK9faSSvGtZVYjNAqjr1VoUx4Crz5Di5tgcj4Moed0Gc+UTLJtCuNzcuPq5OlWxb2KOuxtyL1KNrWGrE4GvVBSii3SalBXugg/almcRxrNdmHhJr1Za+uOQta8h9RE3Ptk5P7KZsirtzC5pDjjbRncQnGYoDMiTWmOLeQZoMjWP3lgxPHxDvY/o52MpotKLVcCqZTlWqInWDU59dfturDUzejnyUELL6KzZy+iJ8HcRTy2q2B4KLyzEomyLijK3cYoxmiCi4sFXAc5Kp5bDJpUuC6V3QdtgI7AbRpaTBFcIo7l2zkpNGjWJyDzRu3xOM5vT3NHbnwqgubO6u4kb89uLhn/RVffjTyZqzzuE2h9aKu6+tVVV2C6xuse278JUQsD1MaRbs6+8Q+WN257inBVATjJ5ep5BR/NpfcDSwP6yjwOaUOmzIaaGmQJXh4UErxHm1pDIhqgsn1EsoszdC/l4iBoas4J6c+xTgR+fjGzQ9fYqji9zitSSC666JQmpkDOeYJZVN0acMnYcYNyiIgKSlGmvm46t8hRRe3PXPll19PlOqklHGlrWILmP0IEo9pv0g0YxnjERyECCUNm0CO9YXPrXvh3/D98DOnvSMk5EuQdc66T4a2pICFLqYW0vN+A95vTCYTL66LOYC6Zp2z7pMpRVLAYsIbrryrSdGNB3C6L5mMvLiu5MA+1jXrPFnqkwYWM5j9evNWNAE/xam33kOyHHdP/C7WMes6FZJT1jmX1z00Fn2gH8N14kvIOINDtakUy3snTQ5o8MX7FaTOt9ctujul1R5TklgkmhmqIf9qIDOqo1eaBfNezyEHWKes21RBRdJTllhWuW/Y/NACRVUew/Uc657362oO7DJ0485nr7yba3mkHFKWWFaOJgGG8V1cS+9eY9Hs/cbkQAOGJb6bLqiYetrAMhNprXzBUIz7cd7Kay+4kgOtrEMVdekE9Y4AizaO3l7tCRD0ExxeT9GJmsluGlyJ7wHWYbL2qlhkOgIsJv7iNV/pLxzofhgE/gyXHLD0gjs40MM6Kwj1/Ip16BTJjpoJdj2xaWDuP1/1puZXuer9PByxV793qgReOulwoAe9t5/n92urn7j6aymZFWJlnnavMFrCyzc9Ms7wad/EGNNX8dzVbjbRyjdK7pmgUjTfT9YtXsldnhwNjjWFkVSR0Py+0AMQsatx39O5Ipkjxzl1qtWso0yAikXMiMSyeHfbxtVFvf7CLxmK8i3cK7fue7855UArQPUAdarfL7m3O1OUZBRYJPrqF36RX1Dgu1UxlO/jclqmCuKlmxAHGmhSYO/PSUU9Ws4ZBxYzXf700z69vPkauFb+EJeehT5aTWT+3i4aP2mncsqkYEdyVoBlEbCsbs18xdB/AKV+Me452iO18vB+T+OAhkrehGl831u/aNX2055m6EZWgcUyoMdYrftD98IrYgUuizNULi/ZMAe64KWw1hxQXryyPptMyTqwWDi63GCezC2YLfMNXM7MZoE/Rnntoz8VpoA8mY6XQqr8yklz9N7aF4I3nbFgZ3N1IUSzMhF90xoUIOEZQ6kW9mPyHrZ5FS8pwvj67NeOb3j4jv9wzJqeDP9yIrEiCVy6+dcT/erAF0DIKtyvjnzmnSfNAW5ouoY+6qm4Eyedm80LOQcWabu87j5/hTbhIuEz7jEMhXMXPWu9TaVFedSDnU03Ck15sMV3/A3uFxglTlZvSQEsq8TLX3qsTA8Eb4QoX4XmkWaJnDTVFj0u+MWalmIXeLVGDQaeWXfVnW2y0CwVsEymQGQte+2RmVhObwV6NDfj3nQc8tFpEpuzf2jxxEH0rJ/C2pVr11+6ch9shLwnTZC2wr64/ZG89k5tDri1AvOOr8cM5SngmrT0ZqlGwQ6lEYr5n8CItaUlvl2Pzl8ZXh8zSwQkmo30FRUeEvLPxZZlN4Or16JgVPAzMnieKNNyEI+LQtSjsp7nSnq9vaGdmR6SSbeM0gPLKiCGhQJa+fHZWF6Wi5IsRTM5C78B6/ko/Q2iuduLsm3A+jbP+lonvIvhGFcsb+AaYFnAYQ9yvF5V4xPaYsitpVgAZgEKQc8J15XFKtOIXxRJtGL5iG1cnJ/rqHeoRw/J0NMbQaftpasr47q6B8erWmAuLMxLDEUsQmFqUVoOE7mtXMCS6MK/PdzwCCMSG7n1TLQdH2xrU6KHbquAqKyj90T/+KaJfr9vLgp0GSItRCXNwnkpzmU1WXB/yHbQyKaOq/i8yq3Z8jsmNmXD+yAqIx28OSqAFckPgiw0rrXc5zNmQdGdhyZlAZ6fi4O+YJRmufLDZ++N3rQNOHajvdvGPZQ1TdnrP1HeOhrAhHINhVEHrKGSDZ7cXvf4mHa1pzKgKWfCk7XWMPRzsAbWDJjLqtEBqES0Ihz5OAi4dPkBwSMIII7PdUPxboZ5CcMsxn5FUd+D5+aeoM84UKoXNlu7vSPeqAzpMtJ1TKHyXxmqKhKBYJnQ1SnwspgKnWYaQFYNZkwB4CbCZlYG8JUAJRboOEBumTjY9eeQST/idwM0ncBjGwDUhPiNAFM9dL4GeBUcFqreKIKBtmb/0W63Kd/pVuz/A0uQCwDxD87KAAAAAElFTkSuQmCC"/>+<image id="image1_1555_2409" width="150" height="150" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAlqADAAQAAAABAAAAlgAAAAAXS0ggAAASHElEQVR4Ae2da2wdxRXHd/Z1r68d2zEJFAgBQmgc8RCQBgh2opYkDRCoBISiEoe3qn4pUqWqb6r2Q/sFQcuj0FTth6oNlFaCSpAqDY+mhJf4AElJQICAFtKGAI7jt+8+Zvo/s77Xe21fk+Tanp2bGYjv3r2zuzPnN+fMObO7M+zedcIySWcJ2DoX3pSdJGAQat8ODEKDUHsJaF8Bo4UGofYS0L4CRgsNQu0loH0FjBYahNpLQPsKGC00CLWXgPYVMFpoEGovAe0rYLTQINReAtpXwGihQai9BLSvgNFCg1B7CWhfAaOFBqH2EtC+AkYLDULtJaB9BYwWGoTaS0D7ChgtNAi1l4D2FTBaaBBqLwHtK2C00CDUXgLaV8BooUGovQS0r4DRQoNQewloXwGjhQah9hLQvgJGC7VH6OpTA4GUtdIypl4HMocQlFglKGYJLiArlvMZII77dTTvzMNNritQmnLxmBWFKNyEEpczzMpGthBCOtzmTNiMUJGsGGQWc7vB6Yn37+/e4zpFm9tCOMLCDylpzoqw6HpMcCewRZ4KaLMF+QubraaIpu+ZvGnNQrmyhZAqLGxIyiYJcZIXt92c08Ne3/Lyt9/u2cFYJM2pUykyiDaeLaAM6BwLBRCudcI3Ln2sqWG5CDnDbkUpWwghBugfVMyhbs+JeGznWTd7Z8vO775zaDtzoX85yI6JkQniGgd1wu/TswOlQhkaYqtoscAR/bHTK3DlcHrOfnRnyRZC1IGBocUBMeaQldUj3v/9C99599CzrmtFMbNFZNsRE25ln4hDsAN/ZzwJEcd2v+CwEbAUBYc3uLFaglbmECb9DfQP/Prct/74zzvfPfikY1tx7KGPtEGXs8iKJmE1U51j2UKiiTCLORZHb03GglkuE44Nd0ZpyhxCaBPauZOzeq3/bNnx43d6HnddtHyyk8IO0RPmcoU5eR+dJBS2JDqpfzOhhKkr4Gqc84GBIY5OEIqHYopeYQ+i77bicr5SiWbxUzFCzkb9z8QMonXbPLJ8t9d57w/P3/F2z99cx40i6Byaepxs33LzLb964L5PP/3EhW2d6URoKGhAWJPL5T744MOLV6zo7++zmGsJlAq9tqs8WJ15KUwpZbKN0v+k/o8JhA+u5/bZ7z+88/tvH3zKhdGCp0kuO30kqSGftx3WdlzbbCAsXRT6Z9t269zWtOcJq4rIZyaUv3TZw/pUjpDiBzh55L8g4spZA+y9R176wZsH/2q7Ycypwxk3KgMvBzWDTJFkFaEpMyTG5MxSC+UVSlc8LMnOWibFCKX9JP8z4lwURD/b98gL39rbvc3xQur/uMOtYBwfW3aB0AmkkphmritKzsyS1pJWwdKl1X+WpaCsKLCfEZQqz/v9d7a8/L3Xu5+wnRBOH/hBvfhMaZiy+k77hVVroWAcw2m+GHb/98hzP3njk0eZ68Yc8R/MZQBXhyo8Tg2nXQZHdsKZ0/gjK0c5t1KELGasKFhhwH/3zy/e+cYnjzmuFUfwXFhMQ6AYBy2X8yg35Gjc2LFTWMLqOWGoUA6UKpGVQTgmT0gG2tYw5B78y0s/3HXgcZfidxhPuA/kp9SMj640BbN0QY4o57gDlX9VqoVwYyzWE72958BWyw0QUdiwq9MED5KN43hwcLAsYrg/jY2Nk0KFCg4MDKQVETkdB+1Jg6QUIQ24QONCxjyLI1iGjZqeAWN4/wC2e/fu1atXI3wEtmKxuHDhwp07d7a2tgJVGWSy3dPT09HRsX//ft/3cSx2bt++fdmyZWgE2QepEiH6ushBPJ+zeYNl9cE1nUYVhPqEYXjo0CHQQgKYgwcPpvUsrV9A1d3d3dvbC/BJ8CeHhNJZsrutNKhA4EDOATpBDHjGFpxTchmmzV8AOZwdVJCSjWockLOcBxvEXB5bLX+m9qvUQoyIInTnGMSGSOC9kCElR2Z6E7Qq4VFNBZPLJb8iM9L0FmCmz6ZUC2n8GBVMDzNOix8600LL1vkVI5RWc9osZ7ZEO1ulUY1wtupZx9cxCLWHaxAahNpLQPsKGC00CLWXgPYVMFqoPUKVozMzLbxkUIaG1+TI59QD1siD8iAPjpp6HGemi32k569nhMlQGf4mSDDqXY0N9mOkG7LD3/JRRypKVfnrGWFTU9Py5csT5QuCYMGCBdUU0fM85Dxw4AA2gBOpUCiUkGDIFONH5XuHmRsCrE+EieVsb29/5ZVXSiToM1GyxGYm+xNj29LSsnXr1nRO6CIyy5zjmI37mj5IzXZ9IoQsky4NGBJIiXTT2+PkDTM7UUehjumbTunx+HGHK/xazwgnIqkmaKBNTOhkjOneUwmkOPxzVrvWtO83QcWYSCfjN/pr4uMMDg4Vi8HYAbSl/jaLQVhJZLJv8FKhfHi+5tZbbxsaGnDwlBbdnU6S+q7RICyxqPIZReTU9PcPXHPNhhdffN7zfDzgyliD5eOlLFvgR/nWR5WjZ2O3QTiVlOENua7X19e/fv36HTue9f0cNDK2fMcbxrsepzQtn5c7M8TLx6WucqpzzdhvBmFV0aL/g/0cGBi89tprd+58zve9KEJHiBexWBSECxvP27Tipy3OiYg+1HaIBuHkCBFjwH7Cf7nm6g3PPPM0ni+lxxIpxMBbPMWTGi+5eeVvTvSXiWLM8P6c0mQQTiJ+6B8eIMaT4FdfffVTT2/z/XwUBhQi2nm8snNS40U3dtx/vL88HEFviBd9Fae6jQs/S66Q/KTag5f48eaxPTw8smHDhqee2p7zC0E4jMDQZm4cR/PnLL2t857jnQuCkWG8KC5iCFCxGmiBsKKhJ0Mk+IuhkxSn9HYSiU+ULPLQ+Cf1Z5SAMJ2HblBEcRFv9I+MBNddd922bdt8zxdhAOOJ2YLiKDip6fxNHQ+d4F4UjmCmixyFFjYMa3n4NFWcWdzUAmGFPBLvjzqlCj+wQqWAqeLH0RNAw/BYMN1Oqjhj6ovv5YeGhq+//qtbtz6J/i8EP4YZU+ZGUff8wtIbV/76JP/8cAiRBLBVPUnqfLOxqQVCCKusNzRUDcHgzgPHq/hjaUyg4Od57kQvA/wg+hBv8GNmhtEDk9PSF2i1zeyRYripq+vJJ8EP/ifmtMA+B/xOaDivq+Ohk50LxUDkYBKqseuq39IFIQmZ3HeLbXn4kaef/gfis7Tw5JxRtAMaFkXho4/+6fwLzpXMxl5zgVa9+uqrt9/+9cHBYcfGTaVxppjevujv793333/DlwnDSOqrHUfhvHz7jas2L/QvFMOhi1kc0ABKTSBdBlXbuiBM2j3MoN3d/XF390fV5AWE6NKGhui1QtntUUboE/i99tquyy+/4uOPDyR5qpyBIRZEW0EeZnmI4z+XP6er80HJL7AdHmLeoCzxQy20QFiWNgnPQd8EH4K6u/J+4KKd2AHHEVoIW1f+LeG3e/e/rriC+OVyDbKHQ5ugGK+Ujc5Fh9PrVRH2OsyJ4rA1v6Src/OpTctEP/TPC4UVudyJMaaWvnbpHIo+tUBInR8S+jCwGmdCk59Kr0Rhkl7AGwWD/BhPyeX811/fs27dugMHPoKGFYvDpUPKn5Id8RMUpmNiIvCLgvm5s7o6Np9WuDgcRP/nJPYza/xQh7HWWq6Q1htQTiSygvIVUfDbs2cv9E/yQ2A32hom1BE9K5wcTJ6JF1Xn8Dho9Rd3dT50RgviB/ifcuJFqXiZ0r+kFvWGMM2mUGjYu/eNtWvX7tv3IewnAvP0r3Ib1QeZZCJMuDfEPhaH2rylN3X+blHjyhjz5GVg9u0Jxa7YUWcIR++qY4QTtdyz543166/86KP9juPhXfuKeo9+KWkWlIve83V5FLd4p3V1PLh4zio+FLgM01XKPJMdnJF9WvSFhysr6FDiheLZtX379q1du0by8yfTv/I5Sfmk6fUQhLR5Z27q2Lx4zhf5YIjwPcpY/FAudHqjrrQQHSHiAdf1d+3addlll4MfRqin4EezE8nELAQSVpN3+kbwa+3gg5FruVz4kVPKkZZZxrbrSgsTXxSqeMcd3+zv74dlDEPYz1FOo7DIg4PzQjsRHGCuRbignIct7qJNl9zX3vKlYCBGTBJL/cNUAFk3o/XnkQIMAkHcJwI/GMZydJ/SHMAb7QJpHgWWFzyY4yzctPLuJW2XBnL8k9yb0Syp47K6WVeGNC1k8Et/LW2XNRJLKeAuA6zl4Bz75I2X3NvefCXvs/BoUymnNp8ZKXHZXJU3jlKCUDukKvyScyZzmOCxJVfwYpNzKvzPs+ZdBf/Fw57M+58T5ZKJvhDmjJ5poAgssXJlXZlYYHIgEydy4m/pPRSDywA/tRPtg86MDwxzYxLbOfYZN1x819lzvxL1BbYbhJhETMOkuNCQqMDtI0GPFeHtokTERyvGpAXIRkDBBUBXawpYc2Y475x4w8W/OOf4y6PeyGNeyP3IjTM4fvaZ0lCJEF5DxKycVVjUvHKEfQDP3hKF2AJOdGOJRQUD3Fx1OAvQdzkCG4W+8K3eoX0yw1hvR/omPLz3gjnzhIVHlYrz8osLecyYh3t7yakwwBoLK4elsmwrcuL5q8+7/dx5VwX93HEZjX/iMhkbv/5MeEkGdu+6ak31MM9QQzY8z0cz6YVFB458LFc4cHzc56k4JcHB6iL4FUOYXkPz39+854m3fgSziy6vlBGHeILRo/K+6wUhWzrvspu+cHfObpZ9m0vxH+klnsL2qNmwIZc3erwFjzRRYKF5UqmFEDweh3YiJ8/n0oyWmNoS60GMvck3KlooDS0rAhUUIQV1XmJvK0QPDYOyIZAIwnDJ3DUbL7mnKT4NEwwzWlBCGlg0AZpqUQ5TO43CQsAYMNvXHB8VXyVCqH+IAtAbCjCoUDbaCrGATgUdfIMC0WzdcCUjJygyueYW8oyZD0FzjuJ+ehAtOe6qrhUPNIcLi5i0HUNkyINZauXZmY0lXmBsYWmxgJ4P4GgMlZfSEqhKhEQNq1Mw6pywlBwW0oGO+DQukk706gIgulhYBjoY5rwYk5eWh8ZGc+LlsjAIz2z70sYVvwQ/i4c56J+cKpNyyDPSuxFoC/Q/+lT5Y+WV0lfVaFsxQqw3CTeECZ+g2HiCE88mSdM3dj/dimlhK87wxCbHsDMevU08z+TRP3J8EOKF4fCiti93dd7fGi0ScREWkpZRosd0E0rYEBFlhFWNaZEhdKwMa5/hVNonxQhlRyUnIoWocc+cNFB2V1L0kgCpDKdJZ/ENagqh020/ZqEbAxT0drgRMfL5uVd8beXPWuLFPMSaXWgLCbkyHrQIgi8HFIkfnbku+KFKqhGOEzURGkvyR5K3REsEJGHoH/zPEcR9eKgwjqLT5665YdXPm612XsQqlYSaXBfZCMrnSl2HNlNfy1l03VCN8GjkBkbkh8CFBb8zWlZt6ry3lbfzYeEhQkCcQPcf6grS1EKqaPVTZ83Cr3K8BQi5i/dRYn5a85qujt8eJ9qtYeyBakl3hVaGrCc1+wzB64KQrKhM2AAeLw7ZGc2rbu58YJ51pgiKWFJC+poIK1EjBJzl/KXj6vdTC4SEjVQMGMh+4iM8taUTT+jOd5bwcAg9ulwm3Y5pGWeypTCxSfb6BTdWs6wjhM9CY2/JKmooLO7jxvYpubVdq+5qc8/CE4KIH2gpT6mbiQICshziOVZsafbdGcTi1M5ohA3DN4E4OX/u2Z2r25xzogHu0RqkGAsY739KoGPttL63so6QVAnkEIhTCMl40T57wRqOoGLQ9uCSku+Jf9K41jeo6rXLOkKUnOJw2E88lEu+ChPFPLYADfzIhaG1Yo/plPW+kBDS6A1uLNl4Wp47tC4seSx2hEGbkv9JunjMpswjLA2Jws3EGFuMNWIxVk13N1xOXgw0EIAx5Ebu6rGZMm9IoXHkyqDjAyBbRAWyoPK/kv2EfaVbSMcmPxKKXjUndpOkSXdOkq8ud2mGsC4Z1Fgpg7BGAao/3CBUz6DGEhiENQpQ/eEGoXoGNZbAIKxRgOoPNwjVM6ixBAZhjQJUf7hBqJ5BjSUwCGsUoPrDDUL1DGosgUFYowDVH24QqmdQYwkMwhoFqP5wg1A9gxpLYBDWKED1hxuE6hnUWAKDsEYBqj/cIFTPoMYSGIQ1ClD94QahegY1lsAgrFGA6g83CNUzqLEEBmGNAlR/uEGonkGNJTAIaxSg+sMNQvUMaiyBQVijANUf/n94kev/FcjdugAAAABJRU5ErkJggg=="/>+<image id="image2_1555_2409" width="150" height="150" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAYAAAA8AXHiAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAlqADAAQAAAABAAAAlgAAAAAXS0ggAAAVXUlEQVR4Ae2d+bcUxRXHb6OCiKBgkFUEEUUU0KiIxj2oWU62k+VfyZ+RvyG/JJ6Tk5zExGiMGkTUKIo77ggCD9QIKu4Lle+n+jW8efBeVc90T/fM1D0M83q6u7r71rdu3bpbZ8d+91tniRIHKubAjIrbS80lDngOJGAlINTCgQSsWtiaGk3AShiohQMJWLWwNTWagJUwUAsHErBqYWtqNAErYaAWDiRg1cLW1GgCVsJALRxIwKqFranRBKyEgVo4kIBVC1tTowlYCQO1cCABqxa2pkYTsBIGauFAAlYtbE2NJmAlDNTCgQSsWtiaGk3AShiohQMJWLWwNTWagJUwUAsHErBqYWtqNAErYaAWDiRg1cLW1GgCVsJALRxIwKqFranR00eKBW5SmYqMp/f/jRQb+vGwwwksAFSAaIaE8mmn6XOG2el63EzbYIn9335j9o0+fB/7Vr+N4yzjgAS4XgA4PMAqwAR4zpprtmCh2XmLLJuv77nnms2eYzZzltkMgQxyxwSqr82+/Nzs06NmHx02d/g9sw/0+fiw2Rf6nTZnJJDlDCv3/+ADC4BkAsu5C8yWX2TZhWvMzl9udvY8SShJqRKUASSAduR/ZmN7zL3zhtmh/QLZp2pFAPOSrESDI3zo4AILQDG9LV5p2dorzVZemkumXjqfc888y2zJCv/JNl5v9v5Bc2+8aPbWy2YffpBDpZdrjAjYBg9YfnqSnrR0lWUb1PGrBKhZs+vpLiSeQJYtvsBsw2Zzr+w02/VMPlWiqyWakgODBSyk1DnnWXblDWaXfTfXm6Z8tAp3IKHO1XU3bzFbs97cs9vNXnve7Ouv0vQ4BZsHA1iFlFq9Pu/chUumeJyafwZg31ls2e0/N1uxxtyTD0nZfzeB6xRsbz+wANWsMy27+mazK7/n/z7Fc/T3p9PEtks3WiaAu8ful/61q7/XH4CrtVtRAFRzz5GE+IXZtbe1A1QTO3XB+Zbd8asc8NjLuN9EngPtlVh0EnoN086Fl7S3u7SKzG78gVaTs83t2JrbxtKq0doJLEB1zgLLtvzS7ILVvYEKhf/LL8w+/yy3UWEUpX2ms1kymGJemKUPhtVuidXjtbfKzDXD3FPSu7Dkj7jlvgdudtsLgfPo9DlzLbvtZ92Dio7Fin5ARs6De/X3+2affaJV3Jdy3QhoEFIFQEjS2Nz5ZtKXsmWrzBbJuDrnbA7wh0X/B1DRA78SiHc+OvLTYsuAJVCdMdOyG+6SfWptdJ8eP5BO3fuGuVefleVcgPpcFnOA5DGi/yZPUV8JaAAON86e18w995im3++YXXSZZZds1Apwkc4poYZK6mWbbjf3yUdmrz538vWO3+jw/9EyYKnzsXavk42qDOFABlDPChgH3j5hXwJIKNVTUQG04vtbtfO/Q/rI2o4h9NIrZYTd7HW9qZo46XdWsBoY7kO5hQ7tKwfMkxob3B+m4XqfHwpdSPqUNysUjuKYW/jkY3Pb7jV33x+91PH6DWAqwBLTxsRjOA8ppXbtmW3m7vm9pI8koNebJh44zd/oh9ffqWlWjm+m9hGkdgAL5isiIbtui77RbyLp3QM5oJBUKOjTSafIJo8f5gEmkMkA6h78i+xV/5IzWguAWGIlu35T7NFDd1w7gAVbL7/WbNnKeAbve8vc/Xeb6dtLp24lVOiKtPuNXDdSyN3Df1OIjSRZDOk878ReuHQkpVbzwEJaETfF6I4Fx/7dkiJ/1mpP7pQqpdSUgBG4oNeeM7f17/miIP9l+v8VB5ZtlI5WZmqfvsWB2ds8sBjZ6672dqsorjE1bb1HISxSjsus2KIaDxwE8BVC4x5/IDeEBg73uy++QiaMZZJa42aOmHOG4JhmgYW0IsLzkg1xrJSO47bfpxipsf6DauIdvvy02UtPTfxl6r8VueoHzohJrWaBRXcwoufJQBlB7oUnzd5+tVlQcZ9aIbqnH8nNCRH37W1yck+N0gqxOWAhrRjNq9fFdI3Zu/vNnn+8HZ3DlPjxh+ZkjvBx86EnIOaeVSLPPCLULLBwnyi+KUiynrsX/mt2VBbtWAU/2GiPB7BoQHrKMBtDGaHTM2fGHDoUxzQHLJT2FRfHJTy8J2lFzFNbQFV0vVxCDn0Lx3aIMDvMWzAyUqs5YMn1YUsuDHWH3+9ef1FLfPn02gYsUsNwISnhIkgYfs9ndTga02EzwIK5KOzz5fANETl/e1/XUerE1pHuiZWqHNhBQkJjdmjb4AjeeHcHNAcsRV/6kJXQfWNaIO2qrR3CICkc36FnWaBoiZK5jqEm27q/GWAhfLBfRRg43cF3cpdKWzkI4I8o3otQmRApzJr4/VGYDhsC1gzLFAEQJMJh0F/aoJYgmbCeE99VBAuyMiRtH3AxZYeINH9MD5xHe7QzpBb500O8qGU/0ZaKEg0SgXhHj6jjgkdWf4AHkjof0DB9eVBI4jAgpB9mAIRnIDQGKcR2iIiPv/PXqhOhqV1p/E5xX/b+IV83wkeeMoIipHjoMm3Y3xCwVGuBzggREaEU5+gXsgowEf9+tkBEuDJZ0AuldGM5Z2WnCNeu9T1AKoe7//BUXI9QHMKocayzCEBCM6A4ls+AUv+BBTPxm8UosV/LPhRjI+qV+UxHSIpztFJdpsIiGDMBFOCiBFJdBHCQhMTa6+MzvKVTOkVR2B6thD/T9OrBNXgA6z+w6CQ/GiPUO3Qs9JC6+AqgKCyySPUZlIBqK9fm4GpqOqIGhUDtDcfvjeXehjdfVhCjpFpT99TloGoQWBFokXCrhbzUFLCXSjqtv858YRHSwNpCSHRJzAxrvQDvHd77dueK/oBMj80Aq8kOBFQyzGZXfc8nS/i8wibvZ7prMw3LeZ3hU5Wv1BcjIatoAKTX6AALQKGUK/YrI10fA+2gENJU9wzA3KP3ScGX0bjlkms0gAWoSIK97vuKrb8mbuHQNtABJKSXkmvdI3/PM5JaDK4IDbptHC55PyjoxNTf9RvlLG4eTFBNfGTVVs3u/JXXvSb+3La/h1tiIalQgqlWg55SJZHcSuE1bG3ULcXeRgoaafzkIBbWefQhpuAzZKEnnR+jKh8s9t0ud+fMs+zWn+YOCQrAtVByDS+wkFSLBKo7ZOmOCSacDnSYPT6V0kwCB8kc+AZVZdm7cTBwAibKehfmEdoC1FDR6bhxWO1hGCayQ0DPKHiyZIUMrwJaWZKxNrvlJ+aw9e3edeI6Zdup6fjhBBadOl+1qyiB1C2okEgACYs4uYu4X8iORkodBw29It3HW078fye6qQBU8QsSjA/n47A+sEd2KsXwUzZccf++VgRhRJPPK84/1Td64y0/Noch9dA7OlfgbQkNH7DodHxyN/0ot56XZTTulP1KhqWoB+EwOJcBBB0+8VO23eJ4D5xxMHonu1Z4VGamVoQWFtkVm/Kpsjg+9K0iJjyrLzEA8MsAM9R2D/uHD1gatd5GpYoxpQgJte/N8cIiu6U7SbIUQGIaC9L41OePmyS9pju3kDJMrU/82/sLs813qMbpxfEgob79NbfIFPHPE7rddNfsw77hAhZ61QXqECrWlBm5Hx/JrdsU/0AJ9/pQDJjGewjdyTuntY3EBKRII76PT5vjEm+qTi3ud0xTpAqcZJtu8yXAo3yqtIkZhSmbevQFWKe6Vh9+Hy5gzaQI7k3lynRruvMjnYBCBE2UdJrQMwDnsqvkQJYln3VaoUcBUOlSjhAZohd42wVTFYCbjgCF6nq57ff7BUO2WbY3QBsinv2aW1VoTs/hrfM8THM0PMCiQ1Ui20usWH5qdPtaDLw7p9tRLiD61d0UJcJ997JiVDER9/Bf85SxEHiRXsd0zk6VUbJjeUmkmGiQJSvMeEvHzu2xHKjtuBLyvrZ7qKZhKgFSsC2mA7ji7lfMPaSO7gVUSCsiEoixmo6wYxHLVSoESOBiaqdEEx/+DpEA6ZV/gg6LKTh0Tk37hwNYMJ3OXboyjk3vqa7Wtn9IimjZ362k8lcSsDARkC8YIkwCHsRlpigdKz3NPb3VD4TQJfx+fKCrL9efurcGaUiAJQ4uXxWnW8lS7rT68gVvewKVrknfAeaYaNjDMqp+9qmAXAZYap/jSTF74sHcKKufpiWk1qUqsuLDgJoD13AAS1NNFpn86jOqyVMM6TnT9t74TrllMvS6CHLUnqCAWzfEAFBEg3v+ibgpjjguImCPJWB1w+78HK/nyE3ClBQiWb3dKzIpoEz3Sky/vgOXh1tCtxrb2/vshDlE03iQ0DcJr65i8AQvduoDhkNiIfZnSzkOEYmvVcUySYpkl6zPlfeY6+ISKjsNTmyXc1lZ8mq7GP2JOHr40pASPwTAkriXDSdqNYhNCftSLx1MZ9NZLBao7RVDchFVY1sSuKhw89GR8FX1+j1fsz4GhOHWSh8x+MBCjcDyHSP2CW+JWbaH2Khr+Vj5mFxCpl/AgJ2tV2JAyEvgfZihtlhQLFwcJdxCTXWzf/CBJV7nb6CP6DhionqVVt4Qe3FuiIzhODrRwX0CPjdaAWF+wHUTMcVl5wlYvT5vl7c8+MDCD0NEQozxkSxmps1upwc6kyxonMR+OR/guo53BOKRvpXH1gROiNgNPtHXmNJDxPNinG2AhgBY4hrBdrw3J0QUIjlfS/FuluGACn8c7/nBdRJDvD7FvySzImnlr6m28DnG1JsnUvV0/IzoC/2lwQcWoh7d6YgU8xBhdyLeyTt1SzAbULGEv35L/BSItHp5Rx7UV+V0RFtI6JgiJOhZPGuJRw2xMHb/4AOLJ6WK8cG9cc+Mu+OKa3WsOiiGUPZn87LLH+pNqjfELRJol/thGqyDiJBASoeILO+GpsJmJuAQQ7rZrxBiz+yQ7oOV/vo7tDgUYKgf+q2Ml6dy7SClIOLmkVSk38dKHkkU9/S28doLNYxd7i1Gp2SlzIq5ARoOYAEM9BlCib0DNsBJgS+7+cfe7eGrMfMmemLR/ZwhSUaEBK8N5sUG6xRAR8G0MrRLgN0jE8OpAFumnemOjQX5dG3UuG84gAWDsBcpbjyjnnpM6Ay6BzHmhDBjjdfLMJ10tYxVIwkOuGu6edPq2J48GpXo0bo6n3a9nhhARhHFGjisjt3DAyzEPjXXMUaukaslligjhCNZH3VXb0SIM3HnRz+sV1pRuC405fMk+ESZ6hugGhSABp6iuKTy+3xlFjq236SXmXtQje2tF1ToV0hVTAkhYrXMFN/ziAld6OT9wwUsdBq9Ltc9+XCccnsyP7r7RcZKt12SSm8Gq236O35nAhY6XwywMEmQ0NoAsoYLWDAf/YMcPd5zE0pcON5ZPfxB4sOj9+YrzB6aiT5VuPL6HyHRIcLpXuaVw6H2SuwfHh1r4kNj19qxVRgTyL57U5wyP/H82L+VKe2nP29djz2px+OkX2VEy0aQY7XL1Akf+kzDCSwYySrxvw9510e2SSlUMVNHLPOxgSkK1b8QEydzvzoOkJwr/9/SleE7pUAJJpj+Y8rf23ACi0ejs5kKn1clPKWwZ5tuz1PDei1Wq+nFhwhjXMX6Xaet6iT4CFgXrc2Lipy0b9IPTIMENjaErOEF1kQ+k5T6zz9442lGxjAljWLsQEUbSCh1kntTyjkRnCRGQP0EFdJKVZyztVfl1w79f2DPOPCbEVmjASwAQB0rWcQd+hA1s1bKkLp4RV4lGUUY10cxpSHpcPQSRUASwzuyj+1/O7dP0aHFcfzdTyIZFcNtiOTucSSMMCBiAiBD7XWxfzSA5RmjkQsgvpJtR4X6PePx/qN7qZCZL4qG0xZQoZ+QB0hoCnFPhRW9KUD5xI1llsXWpOAlBL6sUTPSCnaPELCKYSdmF9GcSCVAJHfOSVSAiO+GRr2/J6bAWfJtbt4Slxirkxz2NOLT+jlVT2LgCAJrEgcATgGiSbtasanFBiWKbLV8mjFE8RFeOtCQ0l7copSPRO3kgCQVgN94g2xxN0ZLH/fKM8ri0Wqw4cGSJFYbUcX0h6NZgYV+CoyJ1uA5iNLYRd5h85SA1XwfdN6Bj1idY/4lByjrsaBiJfjMo+Ov4Wt+IkrA6uzW5raQUkxfqkHhpRRxZWWms9dfGHeCNw8qmNgcsGBkiGCs/g01IaF4SCJW112dx+Nj/ihDFMd96uE8oqMMGMtco+Sx/QcWQMFWxCdE2JjINqb0YUOx26FbLLW/GExeOulMEmjPU9lwwqnXbPDgKiWluLh447bfpywleQMaNC9M5kP/gcXoJEaIWlEhoki+7De+HifBe0XHhM5r234vefXc6EtErPoXCMjguXSV3EvL4qJBT/VMBDY+/oB3iLcJVNxqA8DSVckwOayQjgsVEhyi1ev03j4xnyW0nzZCJ7RwP8ACVER+KpXMl5dk1dcLoawT0EjuYgupx6fr8okkeZwcw9kGrXqC0QbqlHmaDvkkyjmApAJUO7UKLHS0lvGmmSUEI3hsr38vTcv40f7bQafapohVTAteTxUvW0jNAUvx2I78u0HVm5roTAXuuQf+ZPbiU62VVAVbmpkKi6vzvhry+iLreBanjdw3aVxyLLsnH9LqTw7zFq3+puqL5oDFdPi5xPpj/7KMVZJeNpRoEgeQ5kgpdCkiFnwqVzOTzKQ7C242ByxujZFHupbe2OBfVikjYSJxAEARsYpDGd/fUVXxg1cMxgGhZoEFk2CWMpjd/XfnFV0oyjpADKy0nzHDYEVHOr350om67gMw9U3mQ/PAKsB1cK+5exWXTj0FXBvzJb0GkKGTGTztNpKJQENeuDm2R1Gtb3gJbl9gPNaAG+AB1g5geXBJ1BMOvOM/Kq8opV6vtc2Wr/YuD1+nYNBdOtibkEikvZOhzFTHW8FI0eJdhWT8ADSiW4dgQLUHWB5cYipEZeCXduQ1zXkpNz61oCE1P7W1/5PYQFYy7iwKdRBHD5B4ZCRT8WntA5S7sXYBq7j3gsl+qtAIjynkWpzb9u9ieiuese332+X9tRNYHQ/DaO74IW0MAAcGwygyAIxMt9jJgQSsTn6krYo4kIBVESNTM50cSMDq5EfaqogDCVgVMTI108mBBKxOfqStijiQgFURI1MznRxIwOrkR9qqiAMJWBUxMjXTyYEErE5+pK2KOJCAVREjUzOdHEjA6uRH2qqIAwlYFTEyNdPJgQSsTn6krYo4kIBVESNTM50cSMDq5EfaqogDCVgVMTI108mBBKxOfqStijiQgFURI1MznRxIwOrkR9qqiAMJWBUxMjXTyYEErE5+pK2KOJCAVREjUzOdHEjA6uRH2qqIAwlYFTEyNdPJgQSsTn6krYo4QIq9iiMkShyolgP/B5gLNbbACuOYAAAAAElFTkSuQmCC"/>+<image id="image3_1555_2409" width="150" height="150" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAlqADAAQAAAABAAAAlgAAAAAXS0ggAAAIf0lEQVR4Ae2dW09cVRTHOzMN04FC7WVoLZRbC/Sm0oI1muLlo+iDtxdNTEzbVG21T34GL4mXB6OJfdCY+KIJrW3Tqk0bhIIUZiAGUGBaYAarA67h0NOxU4Y9c85ae62ZNU87h3PW5f/ba50DZ7Mn0Lavc51+JCsQlBy8xp5RQBGKnweKUBGKV0B8AlqFilC8AuIT0CpUhOIVEJ+AVqEiFK+A+AS0ChWheAXEJ6BVqAjFKyA+Aa1CRSheAfEJaBUqQvEKiE9Aq1ARildAfAJahYpQvALiE9AqVITiFRCfgFahIhSvgPgEtAoVoXgFxCegVagIxSsgPgGtQvEI14vPwNcElpaWFhcXwWTg7sdX8yjGFOE9WQFedfXGlpbmTTXVf/41FYuNzs/PL6MMBgL3TuM2UoQrRBYXl4483vnKyy889ujBDRs2zM7O9fXd6Dl/4eKlK8M3R+aTSbYsA/qP2sAQ6u+Zp4+efudYXd3O7CKDvjqTSPT29p87f+ESsByOOSyDQUbPEIrwLr9Tx+t2PpzNL3ucYTmT6P2tr+fcMsuRWDKZgrrkwLLcEa7UX15+97Gcnklcv97b0/PTpcs/x2LxVGrBLsuyRlgov/tYTk1NXwOW5y5cvHh5eCQG1oBl9jk04/JF6IVfNhvosRMTk1+f/eaDjz6BhyB6iqGt0f/dwLODK+GxX/xAImBWVVUVrd02PT0zMPA7vWiMnqzIkveRH8QM1uCOGI+PPXGkq7Y2CkVJlojjqOwQ+s4vHh+NxUfT6fTmzQ/tbW9VhLgzGIkf/FkA4oZfMA7s31tRUYGbQ471MqpCVH4gLNRfY1NDbXSbQzRHaqwD5YIQm5+DcFNNTWvrbqCJhetBdssCIQE/R1srvbT0EZLxcwqxqakRnkvB6YMKBuVYiSOk5OcgrKmpbsv0UrpPKSMk5udAg1568MC+cDhMxrBkEVrhB9gyz6WNDdsJe2lpIrTFz0EIr/7b21u1CotXwCI/J2jopfv37yXrpaVWhdb5OYXY0FC/fXstBFP8TDS+sqQQcuDnIKyprm5v22NMwdOJpYOQCT+HBryBIuulJYKQFT+nEBt21UUzfy9F76WlgJAbPwdhJBKB9aieWqTZxeIRMuQHykMjvXPnH1jlZkbB01myEfLkB0CCwcDw8Mj4xCT8guGJj8HF6A4MYijyFMb8guPjk99+9/3CwkKRuRVymVSEnPnBgrbPPv9iaGiYZjWbSIT8+fX1D9Dwg3KVh1AEP4JboNtrhSGUwG+Qkp+wKpTAbwCeRd36oBmIqUIh/CzoacFlEXNTAj/q/unKKAChBH4W+qcYhEL42awEm77debTaQAI/a/3TFY0vQgn8bPZP7giF8GNRACyCcCeUM5DAz37/dEVjh1ACPxb9kylCIfx4zXtG0Ujgx6h/sqtCCfx49U9eCIXwY9SxXH4wsB+WBH4c+6dL0TJCCfyY9k8WCIXwszzLXVSrDazFJ4Ef6/7pErWDUAI/7v3TJkIh/OxMbheM+YA6UAn8ZPRPlzEpQgn8xPRPCwiF8COd0y4GLwOiiGFbssz+5cb7J+dPCWaDs/+g993OYM2ns36+r19Y/3QlokAIind1dpx6+1ie/cvdgNYc4PCT1z9dodARwj4sG6uqXnrx+fp6H7YfRuOHroOruO8D9NCh1zU3Nx7qeMR76Dj8pPZPV090hLAf0pYtmysrK12XxQ1w+Anun66M6Ahha87Mv2l52/0fjR96+q7QeAMB39mEw8+0f8K9HAKAPdPh2ZX+X15MwHNHiMMP+qdR/YF3uAt0dR4Khyt+vXptbOwPwwtNpPfrHNYIrfPbVV/31sk3u7ufCgWD8EVq7555/8ovV2Hsl/q+2OEVTXZKOPxM+yd4B36nT5147tnu9aEQ3M5hN6cz753sOtyRxt8NKFuHNcdMEeLwM33+dPl1H30yW8E9u1sYUuSIEI2fUbKr8XNYMqRolFX2TMQe4/AruH/eV3/ZWXOjyAshDj+v/TObnzNmRZERQjR+Rjnm75+cKRqll5uA70dw+PnZP3NTZlKLLBDi8PO/f/KkaB8hGj+j1ArtnwwpGuWZG7dfR3D44fbP3NztdlSbCHH4UfRPVhStIUTjZ5SR9/7Jh6JRwrnhejyCw4+6f+aKYKWjWkCIw89O/8xDEdLM/SnGEWqEaPyMEoFXt877hzx/P/OuslOLnYc7vK+RNAnGKHMTQybn4PAz7Z8QYSQcfv21V1H5OToAxRPH39ixoxZe+pso4+UcIoSwRycOP9P+CRpBANHaaFfXIS96mV/b1ranpbkJnJpfUtyZ6AgBXjKVWlj4e3R0LBYf89hb4NVrKBS6u/4a+BUQP1ybTCYTiVvFKVXoVbdv3Z6ans4s/UL+hLZGfVihmydIyGFubr6yKpJOw+tuuBl5+qRSqf4bg19+dXZwcKggfhDhMsLU7OwsfMsnfJULxJEJyO8PLJaCRGcSiQ8//vSHH3vyKOPXjwJt+zr9srWaHRCrMhKB1dzwlX5F3xlgMoOd2bk5KEGoaS+zu7FxFzzUFDoDVssu9zjkODE+OTR089/0In4RrqNACEk6pZebbRFHvEsPhbccDxRmEf7XuiSzcHZdMBDwHudanlZ+TrSCDYrGS90YJmN4Gpm4hvF4PK2AxwGPnvRyJAUUIZKwdGYVIZ3WSJ4UIZKwdGYVIZ3WSJ4UIZKwdGYVIZ3WSJ4UIZKwdGYVIZ3WSJ4UIZKwdGYVIZ3WSJ4UIZKwdGYVIZ3WSJ4UIZKwdGYVIZ3WSJ4UIZKwdGYVIZ3WSJ4UIZKwdGYVIZ3WSJ4UIZKwdGYVIZ3WSJ4UIZKwdGYVIZ3WSJ4UIZKwdGYVIZ3WSJ4UIZKwdGYVIZ3WSJ4UIZKwdGYVIZ3WSJ4UIZKwdGYVIZ3WSJ7+A5qNm+BUbIThAAAAAElFTkSuQmCC"/>+<image id="image4_1555_2409" width="150" height="150" preserveAspectRatio="none" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAlqADAAQAAAABAAAAlgAAAAAXS0ggAAANNklEQVR4Ae1deWwU1xmfY2d3fQDG2FzmCsFgoEAI4UqacCRNCLS0NKGFREoahaip1KZKK1WgVGqqNqVSI7V/pklIpSZN2iqR0pSGVgiaktCUK9zB2NynuYzBx6535+hvPGi9rO2tZzz2ex/9RpY1O/bMvu/3e7/vvfe9975RB3+9QeGDMgIa5cJz2V0EmELy9YApZArJI0DeAFYhU0geAfIGsAqZQvIIkDeAVcgUkkeAvAGsQqaQPALkDWAVMoXkESBvAKuQKSSPAHkDWIVMIXkEyBvAKmQKySNA3gBWIVNIHgHyBrAKmULyCJA3gFXIFJJHgLwBrEKmkDwC5A1gFTKF5BEgbwCrkCkkjwB5A1iFTCF5BMgbwCokT2GEvAUdDHAcxf1R3N+ZQ1XbP6q4qiq4orln5I9bhEIbnNkuK1FD6VegDh2klvVXBxRrg/qr/QvVeFTVNSVtOs1Jp77R/bnW5NTVO1euOy2tjmndoBO3UzxoUwidgbyIrlSUauMqtDvH618Yo48arA0bpPYrVCM6fnKlBsJMy0mbyqVrzplL9rHz9q4a8/MT9rE6u6nF1S3IpnWoRJOW2G2aKy9RZ1bpC+4wZle5zBXE1ABKAqkNTc6B49bH+81/7TUPn7ESrS7xAR4lhHt6FII8XVcqK7Qlc4xFs4yqkRr8ZCjYQYOQ5qcHzfe3prceMOFvSRBJiUL4TGAKzlYsjH55jlFRpmm94/TQQO6qsd7elNq4y4RAJXetZCiE+NDCrVwYfez+6KghfdGXTKacTw6Yr61PwcGmrdw2NRTdh/IQAhTCv6FXsnB65PuPxGdU6r2kvK7QhAr/9M/Uq+tTJy/acspRdgotWxkyUP3O0tjjD0QHFofT5nXFVlfXUYf2HLV+9cfk5j2m143q6j+FXNeLJq4W8sXd+VLgNXWsvnZVwTfmRQtjYvhDOdE1HVaqzZtmgMuDJ62UKVdnVV4KgRec58vPFsyqisjQvy+Mq3Mn66X91D1HrOakRCzKS+FX7zHWPlMwdpjeHb32zf8gVjDt9gg6U/Cr15odGSoWDO+dXnmPEX3kPuOlpwswbOjxk0J+ADpTS2YbqF6S8CcjhfCfi2cbLz4RH1wirPHLQzuK9+G29Htb0jiR5JArRor+y71TIj/9VnzwQOn0B8JA2wf/Tv/4jUTdVTdwI8khEVLgr3KE9pMn44h2SoJOdjHA318/beOvXiL+UEJZwAJAJcXqmsfi026XqP+SodDT3wvrEpii6uPYQqYMXZ3I4kjhl558KIqwdVcF9XsdoCdSTmOLc71FSaHlctzgOKYyBhSpxXHV8GM37m3Xnyx1vh0PP6a03xXyGUIw90zWn1kSNXqsQMwcnb1s7z5ifVZr1p6xcQ4KMdmLWXyoB3MaZQPUscO0qlH67In6+BE6pJ/fGFd/8J9S6s8ruXgKgREiZ99dFhvSsy4MotLbDlmA++N95rnLdjLtGgh+snv/YPJ4nbK92tK1NOQ4abS+aFbk4VnGaMTNO6NSfv5cG4VP+aIX88SDUYzio0GrE5S387D5u7+nNu82rza5I+7udBdBD2avELnGdP+KBdHl84yhpTd5yRv8of8pWf/FE1/mt2AKAdPQUvXNNUWBezGXGpx1G1rf3Ji60NbR71RMGWs7PUEdQjM5c4L+/KPxedMi3nQECf155ggOsGF8jCnAFfOjwbp5h05Za15LvL05jaAlnhCAP6Dg3XXqooNVF5jVmjxGNyKq5O1fdl0M6ryynxH0HDUdE0nfnB+FCAIcO6qt1a8n9h21ApOX/aUQH1Zd/OIPSci6apT287eS7vj9Js+a/e8SnYukEE3RvKmRiaODELjjsPXDVxKfn0THJDQ00YK2ppXfrm+NGmpzQq7xex4jhVEIF1oUV7CEKUAv5shZG6PscPnzMIJTRecIg5BgPjkP0L33p/DqsM8yuuG0Cv2uCb7rEGZ5fvlOcndtmPrLKTsh/lByYRTiu++dGvE7HYHm851NKcwVkGilcmpGL30URmFhTEF8xK9V1aetdRtSWIvNRwYBMRSiIzOiXMPi+Uw5unOCVgrjvxMXbJZgNlxiKMQWFgQqsWcluyj/87z2rLVhOwswFycxFKK/ML1Sx7xBbnHyft640zx7ye5O8CzvY261P4qhEHM9iCz7whIdUYRA4YH5yEHAH445Nwf7iF4l9OeXwhN1ds0ZiyXYEXMRFCruBP3gEn9fvf+4ha1GtEZsHeHujSv+cAylBFAhdt4Wxf01hFAheqR8dERAAIUoREFM8TVBj1DO6Ys2uOejIwJiKERc1NfsRGvauXyNCexIn3tFDIUa1jn48aPYiYK1TL5u6dzcW/GqGApvRSSF2SSGQhvtmh+/CMeLcYivW4Qh2udfLIZCOEbT9mFrzHDzyPi44f/pX8VQmEwppp9gJ+LaCItzW9hpzRRAIZi43uwmYuq0QF1dvG2YhrVJfHREQASFioLVnheu+vGkijLlNneHLTeHclCoKolW5+QFfxSOGapVjtA5zC0FhSgEpt1P+aQQ6+ex9Z7D3LJQCH+InSsYrXcsUJ4rD86IVJSpLMQciAS0hSiBqilIQXjFZ8wMG5EWzwlt91oOEHQ/iqEQ/hCJJA+e8Df1gLDq4/dHMdHIQsyucGIoRAlaWpVt1f4oxF0TR+lPLQphG2I2BNTPhVEI4LAREBsYfCGIMSWEiM3AmH7iw0NAGIUIuGAhxc4aP0GatiK7W/JXxu8Yp2NvcC8dtEafwihExBM7yrAuO8C6XiTGeOnp+MTRWugsgjzEgLCigBCLwiiEgNCp+WiPicR0AcSExGwvf7sAIZsQPSpoQ3b2VUtia1fFsWuOSqdJ5BZRNGyNCaW4AFvUguTDQuB7VpWOBRlYVgP0exgEh6CRSeEHy+Pf+1psemVkeJm2vdpsaunpYwPUTr+3iKTQK+u5K87dkyM5+9y7aUZ5iZtjEtKpPWs3JXKTI3TzIdAxGmakaf/ZUwWP3heNtWX6Hj9SrxikbT9MgEXBFHqzFsB6wXQj2GZPtFtzJ0WQLbglqZyvdxIpl7juKBLChauEM0e6hGeXxpC1CLlPM7s18IQJYNHTIiqHxJOVgin0hIKcyVPGaGOHB5xMAu7I+fWlGZEZ4yPxKGay0FFy30ThjlduHrPgE2iD7EBJ/yJ1+jh91eLY6pXxh+4y8F4LrzCZ3zdYhBYPmU0yJSDNlNA7EZzxwisE2qEvTtFffb6w59nzkAcd+y4QgMULRLAZGKmDsJIfFzOpg8oHqJj0QIhgziQ3ddDAfrnM5QAEyr3UeV5GjZy/yvBRCgoBBKr8c8tiP1oRD2teF34SU1rXWhxQmEq7aoSjRnZopCkqLvCdwOsvbQkQ5WRRCkcKCoF49WkbzRKUEUrVRp1A7hG8v6lsgIa8UkMHatgCAM1hGZXfRrfdo6KPKl+7KAuFgAmv2UEemZlVkR5m8gqlBuQ8BMVz+6hSjjRkoRCQASYs2T5eZ2OMgQneHBCFf2zXIkYaMmlRIgo9FrEg4/wVZ+7kiN99M33A8Q0WyzSkfJOHRbko9FisOWNfarARQpOTReRaudLoIHdRH1Sa7nyFyBhpnvK9uyX9whsJ5KTM8z9C/oQx5d+2pT/YKlF6delUmCEGHVTIccpYHV3KzEWxJxicvLUp9eLvk3D1mTiO2CLh2+WlEP2ZY+fsnTXWyHKtq5SvfQkf3hr76/daf/Nua0OzRPxJTSEKh+4Dwp5b9pmgE+PFsF416Zd4jFn3HrXwboM/f5SGEGVbCClLdCYPrEAQIZsHZkSeWxZHqhO/A/M8T+7OnxDc8V5+h5RFffzV3Ske/ocAhZ4l6EfgFZR4/yR+4Foh0N4+kOx76wHr9Q9b4QawFUs28WXMJ0MhSuzNDVWN1JfPN5bebWDKt5dgRXD1s1r3RbD/2Mkvgs1UlfBOIEc4NCyf+cpc4+HZxvgKPRYN5+nw2Oiz/OeQ+f4n6S37zfrr/DrmcIDt/CnenB9WuMycEMFeC8y5j8RL0aP+tvB7j0YuFLztFUt4sChyy14TyRaxxhX67gNf3bltPq9ScqQdTYNu4F2R/2RIqYbXpN9ZqWMcOaJMGz5I61ekYBMNFoDnOFvMTXp5fy82OAgdYF/AjsPmoZPuCV4tgzkpDPh6v53taErwK7QpzNgNIpFdEbqBU0VYDhSWl7jv9sGWRKQpwnIYEJm2nJak09CsXG20ITus2cGmDmzNwfw+biQku4zV3onvvMo590vy0ZVa2zwj+Lja6NRftyCo7EUX+HvmoyuyNj/pCTSsSWZRUNwiFGbDB0lRacayix34XJbwY2AD+EamkHwdYAqZQvIIkDeAVcgUkkeAvAGsQqaQPALkDWAVMoXkESBvAKuQKSSPAHkDWIVMIXkEyBvAKmQKySNA3gBWIVNIHgHyBrAKmULyCJA3gFXIFJJHgLwBrEKmkDwC5A1gFTKF5BEgbwCrkCkkjwB5A1iFTCF5BMgbwCpkCskjQN4AViFTSB4B8gawCslT+F9Yw5JGthPhDQAAAABJRU5ErkJggg=="/>+</defs>+</svg>diff --git a/apps/web/public/illustrations/unlimitedrecordingbg.webp b/apps/web/public/illustrations/unlimitedrecordingbg.webpindex 5553622b3..505c0ed42 100644Binary files a/apps/web/public/illustrations/unlimitedrecordingbg.webp and b/apps/web/public/illustrations/unlimitedrecordingbg.webp differdiff --git a/apps/web/public/illustrations/video-capture.webp b/apps/web/public/illustrations/video-capture.webpindex 43dc0f2d2..b0d30e9e4 100644Binary files a/apps/web/public/illustrations/video-capture.webp and b/apps/web/public/illustrations/video-capture.webp differdiff --git a/apps/web/public/illustrations/videocapture.svg b/apps/web/public/illustrations/videocapture.svgnew file mode 100644index 000000000..e03c6ca13--- /dev/null+++ b/apps/web/public/illustrations/videocapture.svg@@ -0,0 +1,66 @@+<svg width="422" height="242" viewBox="0 0 422 242" fill="none" xmlns="http://www.w3.org/2000/svg">+<g filter="url(#filter0_dd_1594_2317)">+<rect x="1" y="1" width="420" height="236" rx="14" fill="#FAFAFA" shape-rendering="crispEdges"/>+<rect x="1" y="1" width="420" height="236" rx="14" stroke="#CBCBCB" shape-rendering="crispEdges"/>+<rect x="11" y="11" width="400" height="215" rx="12" fill="#EAEAEA" stroke="#C6C6C6"/>+<path d="M27.5 58V33C27.5 29.6863 30.1863 27 33.5 27H59" stroke="#4785FF"/>+<path d="M27.5 179V204C27.5 207.314 30.1863 210 33.5 210H59" stroke="#4785FF"/>+<path d="M394.5 58V33C394.5 29.6863 391.814 27 388.5 27H363" stroke="#4785FF"/>+<path d="M394.5 179V204C394.5 207.314 391.814 210 388.5 210H363" stroke="#4785FF"/>+<g filter="url(#filter1_d_1594_2317)">+<rect x="152" y="181" width="118" height="25" rx="8" fill="white" shape-rendering="crispEdges"/>+<rect x="160" y="185" width="17" height="17" rx="8.5" fill="#FF9999"/>+<rect x="166" y="191" width="5" height="5" fill="white"/>+<path d="M184.792 198.18C182.452 198.18 181.456 196.212 181.456 193.86C181.456 191.508 182.452 189.528 184.792 189.528C187.132 189.528 188.128 191.508 188.128 193.86C188.128 196.212 187.132 198.18 184.792 198.18ZM184.792 196.992C186.256 196.992 186.736 195.588 186.736 193.86C186.736 192.132 186.256 190.716 184.792 190.716C183.328 190.716 182.836 192.132 182.836 193.86C182.836 195.588 183.328 196.992 184.792 196.992ZM189.901 194.412C189.457 194.412 189.121 194.112 189.121 193.632C189.121 193.164 189.457 192.852 189.901 192.852C190.333 192.852 190.669 193.164 190.669 193.632C190.669 194.112 190.333 194.412 189.901 194.412ZM189.901 198.096C189.457 198.096 189.121 197.796 189.121 197.316C189.121 196.848 189.457 196.536 189.901 196.536C190.333 196.536 190.669 196.848 190.669 197.316C190.669 197.796 190.333 198.096 189.901 198.096ZM195.022 198.18C192.682 198.18 191.686 196.212 191.686 193.86C191.686 191.508 192.682 189.528 195.022 189.528C197.362 189.528 198.358 191.508 198.358 193.86C198.358 196.212 197.362 198.18 195.022 198.18ZM195.022 196.992C196.486 196.992 196.966 195.588 196.966 193.86C196.966 192.132 196.486 190.716 195.022 190.716C193.558 190.716 193.066 192.132 193.066 193.86C193.066 195.588 193.558 196.992 195.022 196.992ZM204.405 198H203.013V196.116H199.089V194.82L203.013 189.708H204.405V194.94H205.569V196.116H204.405V198ZM203.013 191.436L200.325 194.94H203.013V191.436Z" fill="black"/>+<rect x="222" y="185" width="17" height="17" rx="8.5" fill="#4C4C4C"/>+<path d="M233 191.417V195.583C233 195.694 232.952 195.8 232.867 195.878C232.782 195.956 232.666 196 232.545 196H231.409C231.289 196 231.173 195.956 231.088 195.878C231.002 195.8 230.955 195.694 230.955 195.583V191.417C230.955 191.306 231.002 191.2 231.088 191.122C231.173 191.044 231.289 191 231.409 191H232.545C232.666 191 232.782 191.044 232.867 191.122C232.952 191.2 233 191.306 233 191.417ZM229.591 191H228.455C228.334 191 228.218 191.044 228.133 191.122C228.048 191.2 228 191.306 228 191.417V195.583C228 195.694 228.048 195.8 228.133 195.878C228.218 195.956 228.334 196 228.455 196H229.591C229.711 196 229.827 195.956 229.912 195.878C229.998 195.8 230.045 195.694 230.045 195.583V191.417C230.045 191.306 229.998 191.2 229.912 191.122C229.827 191.044 229.711 191 229.591 191Z" fill="white"/>+<path d="M262 188.249V191.75C262 191.904 261.939 192.053 261.831 192.162C261.723 192.271 261.576 192.333 261.423 192.333H257.962C257.847 192.333 257.736 192.299 257.641 192.235C257.546 192.171 257.472 192.08 257.428 191.973C257.385 191.866 257.373 191.749 257.395 191.636C257.418 191.522 257.473 191.418 257.553 191.337L258.779 190.097L258.019 189.394L258.001 189.376C257.199 188.566 256.178 188.012 255.067 187.784C253.956 187.557 252.803 187.665 251.753 188.096C250.702 188.527 249.8 189.262 249.16 190.208C248.52 191.155 248.17 192.271 248.154 193.417C248.137 194.563 248.455 195.689 249.068 196.654C249.68 197.618 250.56 198.379 251.598 198.841C252.636 199.303 253.785 199.445 254.902 199.251C256.02 199.056 257.055 198.532 257.88 197.746C257.935 197.693 258 197.652 258.071 197.625C258.142 197.597 258.217 197.584 258.293 197.586C258.369 197.589 258.443 197.606 258.512 197.637C258.582 197.668 258.644 197.713 258.696 197.769C258.748 197.824 258.789 197.89 258.816 197.962C258.843 198.033 258.856 198.109 258.854 198.186C258.852 198.263 258.835 198.338 258.804 198.408C258.773 198.478 258.728 198.541 258.673 198.594C257.391 199.822 255.69 200.505 253.923 200.5H253.828C252.694 200.484 251.582 200.187 250.588 199.635C249.594 199.082 248.75 198.292 248.129 197.332C247.509 196.373 247.13 195.274 247.028 194.132C246.926 192.99 247.103 191.84 247.543 190.783C247.983 189.727 248.673 188.795 249.552 188.071C250.432 187.348 251.473 186.853 252.586 186.632C253.699 186.41 254.848 186.469 255.933 186.802C257.018 187.135 258.006 187.732 258.809 188.541L259.597 189.27L261.015 187.834C261.096 187.752 261.199 187.696 261.311 187.674C261.423 187.651 261.54 187.663 261.645 187.708C261.751 187.752 261.841 187.828 261.904 187.924C261.967 188.02 262.001 188.134 262 188.249Z" fill="#4C4C4C"/>+</g>+<rect x="252.5" y="53.5" width="114" height="50" rx="11.5" fill="white"/>+<rect x="252.5" y="53.5" width="114" height="50" rx="11.5" stroke="#CECECE"/>+<rect x="259.5" y="61.5" width="100" height="4" rx="2" fill="#F1F1F1"/>+<rect x="259.5" y="71.5" width="59" height="4" rx="2" fill="#F0F0F0"/>+<rect x="259.5" y="81.5" width="84" height="4" rx="2" fill="#F7F7F7"/>+<rect x="259.5" y="91.5" width="100" height="4" rx="2" fill="#EAEAEA"/>+<rect x="252.5" y="108.5" width="114" height="50" rx="11.5" fill="white"/>+<rect x="252.5" y="108.5" width="114" height="50" rx="11.5" stroke="#CECECE"/>+<rect x="259.5" y="116.5" width="100" height="4" rx="2" fill="#F4F4F4"/>+<rect x="259.5" y="126.5" width="71" height="4" rx="2" fill="#F0F0F0"/>+<rect x="259.5" y="136.5" width="44" height="4" rx="2" fill="#D3D3D3"/>+<rect x="259.5" y="146.5" width="76" height="4" rx="2" fill="#F6F6F6"/>+<rect x="54.5" y="53.5" width="193" height="105" rx="11.5" fill="#FAFAFA" stroke="#CECECE"/>+<circle cx="85.5" cy="84.5" r="15" fill="white" stroke="#E3E3E3"/>+<circle cx="129.166" cy="84.5" r="15" fill="white" stroke="#E3E3E3"/>+<circle cx="172.834" cy="84.5" r="15" fill="white" stroke="#E3E3E3"/>+<circle cx="216.5" cy="84.5" r="15" fill="white" stroke="#E3E3E3"/>+<rect x="70" y="110" width="162" height="4" rx="2" fill="#E6E6E6"/>+<rect x="70" y="120" width="135" height="4" rx="2" fill="#F0F0F0"/>+<rect x="70" y="130" width="99" height="4" rx="2" fill="#D3D3D3"/>+<rect x="70" y="140" width="142" height="4" rx="2" fill="#DFDFDF"/>+</g>+<defs>+<filter id="filter0_dd_1594_2317" x="0.5" y="0.5" width="421" height="241" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feOffset dy="4"/>+<feComposite in2="hardAlpha" operator="out"/>+<feColorMatrix type="matrix" values="0 0 0 0 0.810002 0 0 0 0 0.810002 0 0 0 0 0.810002 0 0 0 1 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1594_2317"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feOffset dy="2"/>+<feComposite in2="hardAlpha" operator="out"/>+<feColorMatrix type="matrix" values="0 0 0 0 0.899959 0 0 0 0 0.899959 0 0 0 0 0.899959 0 0 0 1 0"/>+<feBlend mode="normal" in2="effect1_dropShadow_1594_2317" result="effect2_dropShadow_1594_2317"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_1594_2317" result="shape"/>+</filter>+<filter id="filter1_d_1594_2317" x="152" y="181" width="118" height="27" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">+<feFlood flood-opacity="0" result="BackgroundImageFix"/>+<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>+<feOffset dy="2"/>+<feComposite in2="hardAlpha" operator="out"/>+<feColorMatrix type="matrix" values="0 0 0 0 0.840783 0 0 0 0 0.840783 0 0 0 0 0.840783 0 0 0 1 0"/>+<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1594_2317"/>+<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1594_2317" result="shape"/>+</filter>+</defs>+</svg>diff --git a/apps/web/public/illustrations/videopreview.jpg b/apps/web/public/illustrations/videopreview.jpgnew file mode 100644index 000000000..6d7a90a30Binary files /dev/null and b/apps/web/public/illustrations/videopreview.jpg differdiff --git a/apps/web/public/illustrations/windows-bg.jpg b/apps/web/public/illustrations/windows-bg.jpgindex 6cefb186d..255eed099 100644Binary files a/apps/web/public/illustrations/windows-bg.jpg and b/apps/web/public/illustrations/windows-bg.jpg differdiff --git a/apps/web/public/logos/google.svg b/apps/web/public/logos/google.svgnew file mode 100644index 000000000..3ffa2aabb--- /dev/null+++ b/apps/web/public/logos/google.svg@@ -0,0 +1,2 @@+<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->+<svg width="800px" height="800px" viewBox="-3 0 262 262" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"><path d="M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027" fill="#4285F4"/><path d="M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1" fill="#34A853"/><path d="M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782" fill="#FBBC05"/><path d="M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251" fill="#EB4335"/></svg>\ No newline at end of filediff --git a/apps/web/public/rive/bento.riv b/apps/web/public/rive/bento.rivnew file mode 100644index 000000000..3c0a0d894Binary files /dev/null and b/apps/web/public/rive/bento.riv differdiff --git a/apps/web/public/rive/pricing.riv b/apps/web/public/rive/pricing.rivindex 78c4c6f46..2fce1a0cb 100644Binary files a/apps/web/public/rive/pricing.riv and b/apps/web/public/rive/pricing.riv differdiff --git a/bun.lock b/bun.locknew file mode 100644index 000000000..14815c0f0--- /dev/null+++ b/bun.lock@@ -0,0 +1,62 @@+{+ "lockfileVersion": 1,+ "workspaces": {+ "": {+ "name": "cap",+ "devDependencies": {+ "@clack/prompts": "^0.10.0",+ "dotenv-cli": "latest",+ "prettier": "^2.5.1",+ "turbo": "^2.3.4",+ "typescript": "^5.7.2",+ },+ },+ },+ "packages": {+ "@clack/core": ["@clack/[email protected]", "", { "dependencies": { "picocolors": "^1.0.0", "sisteransi": "^1.0.5" } }, "sha512-NYQfcEy8MWIxrT5Fj8nIVchfRFA26yYKJcvBS7WlUIlw2OmQOY9DhGGXMovyI5J5PpxrCPGkgUi207EBrjpBvg=="],++ "@clack/prompts": ["@clack/[email protected]", "", { "dependencies": { "@clack/core": "0.4.2", "picocolors": "^1.0.0", "sisteransi": "^1.0.5" } }, "sha512-Q0T02vx8ZM9XSv9/Yde0jTmmBQufZhPJfYAg2XrrrxWWaZgq1rr8nU8Hv710BQ1dhoP8rtY7YUdpGej2Qza/cw=="],++ "cross-spawn": ["[email protected]", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="],++ "dotenv": ["[email protected]", "", {}, "sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg=="],++ "dotenv-cli": ["[email protected]", "", { "dependencies": { "cross-spawn": "^7.0.6", "dotenv": "^16.3.0", "dotenv-expand": "^10.0.0", "minimist": "^1.2.6" }, "bin": { "dotenv": "cli.js" } }, "sha512-aLqYbK7xKOiTMIRf1lDPbI+Y+Ip/wo5k3eyp6ePysVaSqbyxjyK3dK35BTxG+rmd7djf5q2UPs4noPNH+cj0Qw=="],++ "dotenv-expand": ["[email protected]", "", {}, "sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A=="],++ "isexe": ["[email protected]", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="],++ "minimist": ["[email protected]", "", {}, "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="],++ "path-key": ["[email protected]", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="],++ "picocolors": ["[email protected]", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="],++ "prettier": ["[email protected]", "", { "bin": { "prettier": "bin-prettier.js" } }, "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q=="],++ "shebang-command": ["[email protected]", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="],++ "shebang-regex": ["[email protected]", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="],++ "sisteransi": ["[email protected]", "", {}, "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg=="],++ "turbo": ["[email protected]", "", { "optionalDependencies": { "turbo-darwin-64": "2.5.3", "turbo-darwin-arm64": "2.5.3", "turbo-linux-64": "2.5.3", "turbo-linux-arm64": "2.5.3", "turbo-windows-64": "2.5.3", "turbo-windows-arm64": "2.5.3" }, "bin": { "turbo": "bin/turbo" } }, "sha512-iHuaNcq5GZZnr3XDZNuu2LSyCzAOPwDuo5Qt+q64DfsTP1i3T2bKfxJhni2ZQxsvAoxRbuUK5QetJki4qc5aYA=="],++ "turbo-darwin-64": ["[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-YSItEVBUIvAGPUDpAB9etEmSqZI3T6BHrkBkeSErvICXn3dfqXUfeLx35LfptLDEbrzFUdwYFNmt8QXOwe9yaw=="],++ "turbo-darwin-arm64": ["[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-5PefrwHd42UiZX7YA9m1LPW6x9YJBDErXmsegCkVp+GjmWrADfEOxpFrGQNonH3ZMj77WZB2PVE5Aw3gA+IOhg=="],++ "turbo-linux-64": ["[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-M9xigFgawn5ofTmRzvjjLj3Lqc05O8VHKuOlWNUlnHPUltFquyEeSkpQNkE/vpPdOR14AzxqHbhhxtfS4qvb1w=="],++ "turbo-linux-arm64": ["[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-auJRbYZ8SGJVqvzTikpg1bsRAsiI9Tk0/SDkA5Xgg0GdiHDH/BOzv1ZjDE2mjmlrO/obr19Dw+39OlMhwLffrw=="],++ "turbo-windows-64": ["[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-arLQYohuHtIEKkmQSCU9vtrKUg+/1TTstWB9VYRSsz+khvg81eX6LYHtXJfH/dK7Ho6ck+JaEh5G+QrE1jEmCQ=="],++ "turbo-windows-arm64": ["[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-3JPn66HAynJ0gtr6H+hjY4VHpu1RPKcEwGATvGUTmLmYSYBQieVlnGDRMMoYN066YfyPqnNGCfhYbXfH92Cm0g=="],++ "typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ=="],++ "which": ["[email protected]", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="],+ }+}diff --git a/packages/database/migrations/0002_zippy_rocket_raccoon.sql b/packages/database/migrations/0002_zippy_rocket_raccoon.sqlnew file mode 100644index 000000000..dee9b47ff--- /dev/null+++ b/packages/database/migrations/0002_zippy_rocket_raccoon.sql@@ -0,0 +1,42 @@+CREATE TABLE `space_members` (+ `id` varchar(15) NOT NULL,+ `spaceId` varchar(15) NOT NULL,+ `userId` varchar(15) NOT NULL,+ `role` varchar(255) NOT NULL,+ `createdAt` timestamp NOT NULL DEFAULT (now()),+ `updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,+ CONSTRAINT `space_members_id` PRIMARY KEY(`id`),+ CONSTRAINT `space_members_id_unique` UNIQUE(`id`)+);+--> statement-breakpoint+CREATE TABLE `space_videos` (+ `id` varchar(15) NOT NULL,+ `spaceId` varchar(15) NOT NULL,+ `videoId` varchar(15) NOT NULL,+ `addedById` varchar(15) NOT NULL,+ `addedAt` timestamp NOT NULL DEFAULT (now()),+ CONSTRAINT `space_videos_id` PRIMARY KEY(`id`),+ CONSTRAINT `space_videos_id_unique` UNIQUE(`id`)+);+--> statement-breakpoint+CREATE TABLE `spaces` (+ `id` varchar(15) NOT NULL,+ `name` varchar(255) NOT NULL,+ `organizationId` varchar(15) NOT NULL,+ `createdById` varchar(15) NOT NULL,+ `description` varchar(1000),+ `createdAt` timestamp NOT NULL DEFAULT (now()),+ `updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,+ CONSTRAINT `spaces_id` PRIMARY KEY(`id`),+ CONSTRAINT `spaces_id_unique` UNIQUE(`id`)+);+--> statement-breakpoint+CREATE INDEX `space_id_idx` ON `space_members` (`spaceId`);--> statement-breakpoint+CREATE INDEX `user_id_idx` ON `space_members` (`userId`);--> statement-breakpoint+CREATE INDEX `space_id_user_id_idx` ON `space_members` (`spaceId`,`userId`);--> statement-breakpoint+CREATE INDEX `space_id_idx` ON `space_videos` (`spaceId`);--> statement-breakpoint+CREATE INDEX `video_id_idx` ON `space_videos` (`videoId`);--> statement-breakpoint+CREATE INDEX `added_by_id_idx` ON `space_videos` (`addedById`);--> statement-breakpoint+CREATE INDEX `space_id_video_id_idx` ON `space_videos` (`spaceId`,`videoId`);--> statement-breakpoint+CREATE INDEX `organization_id_idx` ON `spaces` (`organizationId`);--> statement-breakpoint+CREATE INDEX `created_by_id_idx` ON `spaces` (`createdById`);\ No newline at end of filediff --git a/packages/database/migrations/0003_fat_krista_starr.sql b/packages/database/migrations/0003_fat_krista_starr.sqlnew file mode 100644index 000000000..d33d1d99b--- /dev/null+++ b/packages/database/migrations/0003_fat_krista_starr.sql@@ -0,0 +1 @@+ALTER TABLE `organizations` ADD `iconUrl` varchar(1024);\ No newline at end of filediff --git a/packages/database/migrations/0006_melted_paibok.sql b/packages/database/migrations/0006_melted_paibok.sqlnew file mode 100644index 000000000..dee9b47ff--- /dev/null+++ b/packages/database/migrations/0006_melted_paibok.sql@@ -0,0 +1,42 @@+CREATE TABLE `space_members` (+ `id` varchar(15) NOT NULL,+ `spaceId` varchar(15) NOT NULL,+ `userId` varchar(15) NOT NULL,+ `role` varchar(255) NOT NULL,+ `createdAt` timestamp NOT NULL DEFAULT (now()),+ `updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,+ CONSTRAINT `space_members_id` PRIMARY KEY(`id`),+ CONSTRAINT `space_members_id_unique` UNIQUE(`id`)+);+--> statement-breakpoint+CREATE TABLE `space_videos` (+ `id` varchar(15) NOT NULL,+ `spaceId` varchar(15) NOT NULL,+ `videoId` varchar(15) NOT NULL,+ `addedById` varchar(15) NOT NULL,+ `addedAt` timestamp NOT NULL DEFAULT (now()),+ CONSTRAINT `space_videos_id` PRIMARY KEY(`id`),+ CONSTRAINT `space_videos_id_unique` UNIQUE(`id`)+);+--> statement-breakpoint+CREATE TABLE `spaces` (+ `id` varchar(15) NOT NULL,+ `name` varchar(255) NOT NULL,+ `organizationId` varchar(15) NOT NULL,+ `createdById` varchar(15) NOT NULL,+ `description` varchar(1000),+ `createdAt` timestamp NOT NULL DEFAULT (now()),+ `updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,+ CONSTRAINT `spaces_id` PRIMARY KEY(`id`),+ CONSTRAINT `spaces_id_unique` UNIQUE(`id`)+);+--> statement-breakpoint+CREATE INDEX `space_id_idx` ON `space_members` (`spaceId`);--> statement-breakpoint+CREATE INDEX `user_id_idx` ON `space_members` (`userId`);--> statement-breakpoint+CREATE INDEX `space_id_user_id_idx` ON `space_members` (`spaceId`,`userId`);--> statement-breakpoint+CREATE INDEX `space_id_idx` ON `space_videos` (`spaceId`);--> statement-breakpoint+CREATE INDEX `video_id_idx` ON `space_videos` (`videoId`);--> statement-breakpoint+CREATE INDEX `added_by_id_idx` ON `space_videos` (`addedById`);--> statement-breakpoint+CREATE INDEX `space_id_video_id_idx` ON `space_videos` (`spaceId`,`videoId`);--> statement-breakpoint+CREATE INDEX `organization_id_idx` ON `spaces` (`organizationId`);--> statement-breakpoint+CREATE INDEX `created_by_id_idx` ON `spaces` (`createdById`);\ No newline at end of filediff --git a/packages/database/migrations/0007_outgoing_tiger_shark.sql b/packages/database/migrations/0007_outgoing_tiger_shark.sqlnew file mode 100644index 000000000..76cd31d95--- /dev/null+++ b/packages/database/migrations/0007_outgoing_tiger_shark.sql@@ -0,0 +1 @@+ALTER TABLE `spaces` ADD `iconUrl` varchar(255);\ No newline at end of filediff --git a/packages/database/migrations/0008_absent_skaar.sql b/packages/database/migrations/0008_absent_skaar.sqlnew file mode 100644index 000000000..10f1c4cf3--- /dev/null+++ b/packages/database/migrations/0008_absent_skaar.sql@@ -0,0 +1 @@+ALTER TABLE `spaces` ADD `role` varchar(255) NOT NULL;\ No newline at end of filediff --git a/packages/database/migrations/0009_messy_shen.sql b/packages/database/migrations/0009_messy_shen.sqlnew file mode 100644index 000000000..634cb889e--- /dev/null+++ b/packages/database/migrations/0009_messy_shen.sql@@ -0,0 +1 @@+ALTER TABLE `spaces` MODIFY COLUMN `role` varchar(255) NOT NULL DEFAULT 'Owner';\ No newline at end of filediff --git a/packages/database/migrations/0010_lean_terror.sql b/packages/database/migrations/0010_lean_terror.sqlnew file mode 100644index 000000000..57a58de13--- /dev/null+++ b/packages/database/migrations/0010_lean_terror.sql@@ -0,0 +1,2 @@+ALTER TABLE `spaces` ADD `primary` boolean DEFAULT false NOT NULL;--> statement-breakpoint+ALTER TABLE `spaces` ADD `privacy` varchar(255) DEFAULT 'Private' NOT NULL;\ No newline at end of filediff --git a/packages/database/migrations/0011_deep_multiple_man.sql b/packages/database/migrations/0011_deep_multiple_man.sqlnew file mode 100644index 000000000..6b5ef19d6--- /dev/null+++ b/packages/database/migrations/0011_deep_multiple_man.sql@@ -0,0 +1,2 @@+ALTER TABLE `space_members` DROP COLUMN `role`;--> statement-breakpoint+ALTER TABLE `spaces` DROP COLUMN `role`;\ No newline at end of filediff --git a/packages/database/migrations/0012_add_role_to_space_members.sql b/packages/database/migrations/0012_add_role_to_space_members.sqlnew file mode 100644index 000000000..035c83c6d--- /dev/null+++ b/packages/database/migrations/0012_add_role_to_space_members.sql@@ -0,0 +1 @@+ALTER TABLE `space_members` ADD COLUMN `role` varchar(255) NOT NULL DEFAULT 'member';diff --git a/packages/database/migrations/0012_first_power_man.sql b/packages/database/migrations/0012_first_power_man.sqlnew file mode 100644index 000000000..e1525b07c--- /dev/null+++ b/packages/database/migrations/0012_first_power_man.sql@@ -0,0 +1 @@+ALTER TABLE `space_members` ADD `role` varchar(255) DEFAULT 'member' NOT NULL;\ No newline at end of filediff --git a/packages/database/migrations/meta/0002_snapshot.json b/packages/database/migrations/meta/0002_snapshot.jsonnew file mode 100644index 000000000..318f7535d--- /dev/null+++ b/packages/database/migrations/meta/0002_snapshot.json@@ -0,0 +1,1552 @@+{+ "version": "5",+ "dialect": "mysql",+ "id": "7fa85e98-38f6-4126-bb02-8edc9b64801d",+ "prevId": "94acb4a1-1de9-4bcf-bb06-5aeae407cd92",+ "tables": {+ "accounts": {+ "name": "accounts",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "providerAccountId": {+ "name": "providerAccountId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "access_token": {+ "name": "access_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "expires_in": {+ "name": "expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "id_token": {+ "name": "id_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token": {+ "name": "refresh_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token_expires_in": {+ "name": "refresh_token_expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "scope": {+ "name": "scope",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "token_type": {+ "name": "token_type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "tempColumn": {+ "name": "tempColumn",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "provider_account_id_idx": {+ "name": "provider_account_id_idx",+ "columns": [+ "providerAccountId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "accounts_id": {+ "name": "accounts_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "accounts_id_unique": {+ "name": "accounts_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "comments": {+ "name": "comments",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(6)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "timestamp": {+ "name": "timestamp",+ "type": "float",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "authorId": {+ "name": "authorId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "parentCommentId": {+ "name": "parentCommentId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "author_id_idx": {+ "name": "author_id_idx",+ "columns": [+ "authorId"+ ],+ "isUnique": false+ },+ "parent_comment_id_idx": {+ "name": "parent_comment_id_idx",+ "columns": [+ "parentCommentId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "comments_id": {+ "name": "comments_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "comments_id_unique": {+ "name": "comments_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_invites": {+ "name": "organization_invites",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedEmail": {+ "name": "invitedEmail",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedByUserId": {+ "name": "invitedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "status": {+ "name": "status",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'pending'"+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "expiresAt": {+ "name": "expiresAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "invited_email_idx": {+ "name": "invited_email_idx",+ "columns": [+ "invitedEmail"+ ],+ "isUnique": false+ },+ "invited_by_user_id_idx": {+ "name": "invited_by_user_id_idx",+ "columns": [+ "invitedByUserId"+ ],+ "isUnique": false+ },+ "status_idx": {+ "name": "status_idx",+ "columns": [+ "status"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_invites_id": {+ "name": "organization_invites_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_invites_id_unique": {+ "name": "organization_invites_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_members": {+ "name": "organization_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "user_id_organization_id_idx": {+ "name": "user_id_organization_id_idx",+ "columns": [+ "userId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_members_id": {+ "name": "organization_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_members_id_unique": {+ "name": "organization_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organizations": {+ "name": "organizations",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "allowedEmailDomain": {+ "name": "allowedEmailDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customDomain": {+ "name": "customDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "domainVerified": {+ "name": "domainVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "workosOrganizationId": {+ "name": "workosOrganizationId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "workosConnectionId": {+ "name": "workosConnectionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "custom_domain_idx": {+ "name": "custom_domain_idx",+ "columns": [+ "customDomain"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organizations_id": {+ "name": "organizations_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organizations_id_unique": {+ "name": "organizations_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "s3_buckets": {+ "name": "s3_buckets",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "region": {+ "name": "region",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "endpoint": {+ "name": "endpoint",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucketName": {+ "name": "bucketName",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "accessKeyId": {+ "name": "accessKeyId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "secretAccessKey": {+ "name": "secretAccessKey",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('aws')"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "s3_buckets_id": {+ "name": "s3_buckets_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "s3_buckets_id_unique": {+ "name": "s3_buckets_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "sessions": {+ "name": "sessions",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sessionToken": {+ "name": "sessionToken",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "session_token_idx": {+ "name": "session_token_idx",+ "columns": [+ "sessionToken"+ ],+ "isUnique": true+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "sessions_id": {+ "name": "sessions_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "sessions_id_unique": {+ "name": "sessions_id_unique",+ "columns": [+ "id"+ ]+ },+ "sessions_sessionToken_unique": {+ "name": "sessions_sessionToken_unique",+ "columns": [+ "sessionToken"+ ]+ }+ },+ "checkConstraint": {}+ },+ "shared_videos": {+ "name": "shared_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedByUserId": {+ "name": "sharedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedAt": {+ "name": "sharedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "shared_by_user_id_idx": {+ "name": "shared_by_user_id_idx",+ "columns": [+ "sharedByUserId"+ ],+ "isUnique": false+ },+ "video_id_organization_id_idx": {+ "name": "video_id_organization_id_idx",+ "columns": [+ "videoId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "shared_videos_id": {+ "name": "shared_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "shared_videos_id_unique": {+ "name": "shared_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_members": {+ "name": "space_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "space_id_user_id_idx": {+ "name": "space_id_user_id_idx",+ "columns": [+ "spaceId",+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_members_id": {+ "name": "space_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_members_id_unique": {+ "name": "space_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_videos": {+ "name": "space_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedById": {+ "name": "addedById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedAt": {+ "name": "addedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "added_by_id_idx": {+ "name": "added_by_id_idx",+ "columns": [+ "addedById"+ ],+ "isUnique": false+ },+ "space_id_video_id_idx": {+ "name": "space_id_video_id_idx",+ "columns": [+ "spaceId",+ "videoId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_videos_id": {+ "name": "space_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_videos_id_unique": {+ "name": "space_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "spaces": {+ "name": "spaces",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdById": {+ "name": "createdById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "varchar(1000)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "created_by_id_idx": {+ "name": "created_by_id_idx",+ "columns": [+ "createdById"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "spaces_id": {+ "name": "spaces_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "spaces_id_unique": {+ "name": "spaces_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "users": {+ "name": "users",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "lastName": {+ "name": "lastName",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "emailVerified": {+ "name": "emailVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "image": {+ "name": "image",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeCustomerId": {+ "name": "stripeCustomerId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionId": {+ "name": "stripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "thirdPartyStripeSubscriptionId": {+ "name": "thirdPartyStripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionStatus": {+ "name": "stripeSubscriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionPriceId": {+ "name": "stripeSubscriptionPriceId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "activeOrganizationId": {+ "name": "activeOrganizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "onboarding_completed_at": {+ "name": "onboarding_completed_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customBucket": {+ "name": "customBucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "inviteQuota": {+ "name": "inviteQuota",+ "type": "int",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": 1+ }+ },+ "indexes": {+ "email_idx": {+ "name": "email_idx",+ "columns": [+ "email"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "users_id": {+ "name": "users_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "users_id_unique": {+ "name": "users_id_unique",+ "columns": [+ "id"+ ]+ },+ "users_email_unique": {+ "name": "users_email_unique",+ "columns": [+ "email"+ ]+ }+ },+ "checkConstraint": {}+ },+ "verification_tokens": {+ "name": "verification_tokens",+ "columns": {+ "identifier": {+ "name": "identifier",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "token": {+ "name": "token",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "verification_tokens_identifier": {+ "name": "verification_tokens_identifier",+ "columns": [+ "identifier"+ ]+ }+ },+ "uniqueConstraints": {+ "verification_tokens_token_unique": {+ "name": "verification_tokens_token_unique",+ "columns": [+ "token"+ ]+ }+ },+ "checkConstraint": {}+ },+ "videos": {+ "name": "videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'My Video'"+ },+ "awsRegion": {+ "name": "awsRegion",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "awsBucket": {+ "name": "awsBucket",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucket": {+ "name": "bucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "public": {+ "name": "public",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": true+ },+ "videoStartTime": {+ "name": "videoStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "audioStartTime": {+ "name": "audioStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "xStreamInfo": {+ "name": "xStreamInfo",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobId": {+ "name": "jobId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobStatus": {+ "name": "jobStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "isScreenshot": {+ "name": "isScreenshot",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "skipProcessing": {+ "name": "skipProcessing",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "transcriptionStatus": {+ "name": "transcriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "source": {+ "name": "source",+ "type": "json",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('{\"type\":\"MediaConvert\"}')"+ }+ },+ "indexes": {+ "id_idx": {+ "name": "id_idx",+ "columns": [+ "id"+ ],+ "isUnique": false+ },+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "is_public_idx": {+ "name": "is_public_idx",+ "columns": [+ "public"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "videos_id": {+ "name": "videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "videos_id_unique": {+ "name": "videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ }+ },+ "views": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ },+ "internal": {+ "tables": {},+ "indexes": {}+ }+}\ No newline at end of filediff --git a/packages/database/migrations/meta/0006_snapshot.json b/packages/database/migrations/meta/0006_snapshot.jsonnew file mode 100644index 000000000..80cdb7469--- /dev/null+++ b/packages/database/migrations/meta/0006_snapshot.json@@ -0,0 +1,1612 @@+{+ "version": "5",+ "dialect": "mysql",+ "id": "a6babd87-22c7-4473-952d-69fc012355aa",+ "prevId": "db818ca1-e79f-4d6b-9c28-4d29eb8771ab",+ "tables": {+ "accounts": {+ "name": "accounts",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "providerAccountId": {+ "name": "providerAccountId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "access_token": {+ "name": "access_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "expires_in": {+ "name": "expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "id_token": {+ "name": "id_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token": {+ "name": "refresh_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token_expires_in": {+ "name": "refresh_token_expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "scope": {+ "name": "scope",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "token_type": {+ "name": "token_type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "tempColumn": {+ "name": "tempColumn",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "provider_account_id_idx": {+ "name": "provider_account_id_idx",+ "columns": [+ "providerAccountId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "accounts_id": {+ "name": "accounts_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "accounts_id_unique": {+ "name": "accounts_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "auth_api_keys": {+ "name": "auth_api_keys",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(36)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "auth_api_keys_id": {+ "name": "auth_api_keys_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "auth_api_keys_id_unique": {+ "name": "auth_api_keys_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "comments": {+ "name": "comments",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(6)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "timestamp": {+ "name": "timestamp",+ "type": "float",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "authorId": {+ "name": "authorId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "parentCommentId": {+ "name": "parentCommentId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "author_id_idx": {+ "name": "author_id_idx",+ "columns": [+ "authorId"+ ],+ "isUnique": false+ },+ "parent_comment_id_idx": {+ "name": "parent_comment_id_idx",+ "columns": [+ "parentCommentId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "comments_id": {+ "name": "comments_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "comments_id_unique": {+ "name": "comments_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_invites": {+ "name": "organization_invites",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedEmail": {+ "name": "invitedEmail",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedByUserId": {+ "name": "invitedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "status": {+ "name": "status",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'pending'"+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "expiresAt": {+ "name": "expiresAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "invited_email_idx": {+ "name": "invited_email_idx",+ "columns": [+ "invitedEmail"+ ],+ "isUnique": false+ },+ "invited_by_user_id_idx": {+ "name": "invited_by_user_id_idx",+ "columns": [+ "invitedByUserId"+ ],+ "isUnique": false+ },+ "status_idx": {+ "name": "status_idx",+ "columns": [+ "status"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_invites_id": {+ "name": "organization_invites_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_invites_id_unique": {+ "name": "organization_invites_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_members": {+ "name": "organization_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "user_id_organization_id_idx": {+ "name": "user_id_organization_id_idx",+ "columns": [+ "userId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_members_id": {+ "name": "organization_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_members_id_unique": {+ "name": "organization_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organizations": {+ "name": "organizations",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "allowedEmailDomain": {+ "name": "allowedEmailDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customDomain": {+ "name": "customDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "domainVerified": {+ "name": "domainVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "iconUrl": {+ "name": "iconUrl",+ "type": "varchar(1024)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "workosOrganizationId": {+ "name": "workosOrganizationId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "workosConnectionId": {+ "name": "workosConnectionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "custom_domain_idx": {+ "name": "custom_domain_idx",+ "columns": [+ "customDomain"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organizations_id": {+ "name": "organizations_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organizations_id_unique": {+ "name": "organizations_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "s3_buckets": {+ "name": "s3_buckets",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "region": {+ "name": "region",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "endpoint": {+ "name": "endpoint",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucketName": {+ "name": "bucketName",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "accessKeyId": {+ "name": "accessKeyId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "secretAccessKey": {+ "name": "secretAccessKey",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('aws')"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "s3_buckets_id": {+ "name": "s3_buckets_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "s3_buckets_id_unique": {+ "name": "s3_buckets_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "sessions": {+ "name": "sessions",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sessionToken": {+ "name": "sessionToken",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "session_token_idx": {+ "name": "session_token_idx",+ "columns": [+ "sessionToken"+ ],+ "isUnique": true+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "sessions_id": {+ "name": "sessions_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "sessions_id_unique": {+ "name": "sessions_id_unique",+ "columns": [+ "id"+ ]+ },+ "sessions_sessionToken_unique": {+ "name": "sessions_sessionToken_unique",+ "columns": [+ "sessionToken"+ ]+ }+ },+ "checkConstraint": {}+ },+ "shared_videos": {+ "name": "shared_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedByUserId": {+ "name": "sharedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedAt": {+ "name": "sharedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "shared_by_user_id_idx": {+ "name": "shared_by_user_id_idx",+ "columns": [+ "sharedByUserId"+ ],+ "isUnique": false+ },+ "video_id_organization_id_idx": {+ "name": "video_id_organization_id_idx",+ "columns": [+ "videoId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "shared_videos_id": {+ "name": "shared_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "shared_videos_id_unique": {+ "name": "shared_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_members": {+ "name": "space_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "space_id_user_id_idx": {+ "name": "space_id_user_id_idx",+ "columns": [+ "spaceId",+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_members_id": {+ "name": "space_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_members_id_unique": {+ "name": "space_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_videos": {+ "name": "space_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedById": {+ "name": "addedById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedAt": {+ "name": "addedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "added_by_id_idx": {+ "name": "added_by_id_idx",+ "columns": [+ "addedById"+ ],+ "isUnique": false+ },+ "space_id_video_id_idx": {+ "name": "space_id_video_id_idx",+ "columns": [+ "spaceId",+ "videoId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_videos_id": {+ "name": "space_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_videos_id_unique": {+ "name": "space_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "spaces": {+ "name": "spaces",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdById": {+ "name": "createdById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "varchar(1000)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "created_by_id_idx": {+ "name": "created_by_id_idx",+ "columns": [+ "createdById"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "spaces_id": {+ "name": "spaces_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "spaces_id_unique": {+ "name": "spaces_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "users": {+ "name": "users",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "lastName": {+ "name": "lastName",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "emailVerified": {+ "name": "emailVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "image": {+ "name": "image",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeCustomerId": {+ "name": "stripeCustomerId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionId": {+ "name": "stripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "thirdPartyStripeSubscriptionId": {+ "name": "thirdPartyStripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionStatus": {+ "name": "stripeSubscriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionPriceId": {+ "name": "stripeSubscriptionPriceId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "activeOrganizationId": {+ "name": "activeOrganizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "onboarding_completed_at": {+ "name": "onboarding_completed_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customBucket": {+ "name": "customBucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "inviteQuota": {+ "name": "inviteQuota",+ "type": "int",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": 1+ }+ },+ "indexes": {+ "email_idx": {+ "name": "email_idx",+ "columns": [+ "email"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "users_id": {+ "name": "users_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "users_id_unique": {+ "name": "users_id_unique",+ "columns": [+ "id"+ ]+ },+ "users_email_unique": {+ "name": "users_email_unique",+ "columns": [+ "email"+ ]+ }+ },+ "checkConstraint": {}+ },+ "verification_tokens": {+ "name": "verification_tokens",+ "columns": {+ "identifier": {+ "name": "identifier",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "token": {+ "name": "token",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "verification_tokens_identifier": {+ "name": "verification_tokens_identifier",+ "columns": [+ "identifier"+ ]+ }+ },+ "uniqueConstraints": {+ "verification_tokens_token_unique": {+ "name": "verification_tokens_token_unique",+ "columns": [+ "token"+ ]+ }+ },+ "checkConstraint": {}+ },+ "videos": {+ "name": "videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'My Video'"+ },+ "awsRegion": {+ "name": "awsRegion",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "awsBucket": {+ "name": "awsBucket",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucket": {+ "name": "bucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "public": {+ "name": "public",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": true+ },+ "password": {+ "name": "password",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "videoStartTime": {+ "name": "videoStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "audioStartTime": {+ "name": "audioStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "xStreamInfo": {+ "name": "xStreamInfo",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobId": {+ "name": "jobId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobStatus": {+ "name": "jobStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "isScreenshot": {+ "name": "isScreenshot",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "skipProcessing": {+ "name": "skipProcessing",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "transcriptionStatus": {+ "name": "transcriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "source": {+ "name": "source",+ "type": "json",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('{\"type\":\"MediaConvert\"}')"+ }+ },+ "indexes": {+ "id_idx": {+ "name": "id_idx",+ "columns": [+ "id"+ ],+ "isUnique": false+ },+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "is_public_idx": {+ "name": "is_public_idx",+ "columns": [+ "public"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "videos_id": {+ "name": "videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "videos_id_unique": {+ "name": "videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ }+ },+ "views": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ },+ "internal": {+ "tables": {},+ "indexes": {}+ }+}\ No newline at end of filediff --git a/packages/database/migrations/meta/0007_snapshot.json b/packages/database/migrations/meta/0007_snapshot.jsonnew file mode 100644index 000000000..a397c84b3--- /dev/null+++ b/packages/database/migrations/meta/0007_snapshot.json@@ -0,0 +1,1619 @@+{+ "version": "5",+ "dialect": "mysql",+ "id": "484d301f-5437-4d42-a0e7-0ca6d2f26de3",+ "prevId": "a6babd87-22c7-4473-952d-69fc012355aa",+ "tables": {+ "accounts": {+ "name": "accounts",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "providerAccountId": {+ "name": "providerAccountId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "access_token": {+ "name": "access_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "expires_in": {+ "name": "expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "id_token": {+ "name": "id_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token": {+ "name": "refresh_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token_expires_in": {+ "name": "refresh_token_expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "scope": {+ "name": "scope",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "token_type": {+ "name": "token_type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "tempColumn": {+ "name": "tempColumn",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "provider_account_id_idx": {+ "name": "provider_account_id_idx",+ "columns": [+ "providerAccountId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "accounts_id": {+ "name": "accounts_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "accounts_id_unique": {+ "name": "accounts_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "auth_api_keys": {+ "name": "auth_api_keys",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(36)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "auth_api_keys_id": {+ "name": "auth_api_keys_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "auth_api_keys_id_unique": {+ "name": "auth_api_keys_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "comments": {+ "name": "comments",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(6)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "timestamp": {+ "name": "timestamp",+ "type": "float",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "authorId": {+ "name": "authorId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "parentCommentId": {+ "name": "parentCommentId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "author_id_idx": {+ "name": "author_id_idx",+ "columns": [+ "authorId"+ ],+ "isUnique": false+ },+ "parent_comment_id_idx": {+ "name": "parent_comment_id_idx",+ "columns": [+ "parentCommentId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "comments_id": {+ "name": "comments_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "comments_id_unique": {+ "name": "comments_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_invites": {+ "name": "organization_invites",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedEmail": {+ "name": "invitedEmail",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedByUserId": {+ "name": "invitedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "status": {+ "name": "status",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'pending'"+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "expiresAt": {+ "name": "expiresAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "invited_email_idx": {+ "name": "invited_email_idx",+ "columns": [+ "invitedEmail"+ ],+ "isUnique": false+ },+ "invited_by_user_id_idx": {+ "name": "invited_by_user_id_idx",+ "columns": [+ "invitedByUserId"+ ],+ "isUnique": false+ },+ "status_idx": {+ "name": "status_idx",+ "columns": [+ "status"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_invites_id": {+ "name": "organization_invites_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_invites_id_unique": {+ "name": "organization_invites_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_members": {+ "name": "organization_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "user_id_organization_id_idx": {+ "name": "user_id_organization_id_idx",+ "columns": [+ "userId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_members_id": {+ "name": "organization_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_members_id_unique": {+ "name": "organization_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organizations": {+ "name": "organizations",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "allowedEmailDomain": {+ "name": "allowedEmailDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customDomain": {+ "name": "customDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "domainVerified": {+ "name": "domainVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "iconUrl": {+ "name": "iconUrl",+ "type": "varchar(1024)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "workosOrganizationId": {+ "name": "workosOrganizationId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "workosConnectionId": {+ "name": "workosConnectionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "custom_domain_idx": {+ "name": "custom_domain_idx",+ "columns": [+ "customDomain"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organizations_id": {+ "name": "organizations_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organizations_id_unique": {+ "name": "organizations_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "s3_buckets": {+ "name": "s3_buckets",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "region": {+ "name": "region",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "endpoint": {+ "name": "endpoint",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucketName": {+ "name": "bucketName",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "accessKeyId": {+ "name": "accessKeyId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "secretAccessKey": {+ "name": "secretAccessKey",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('aws')"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "s3_buckets_id": {+ "name": "s3_buckets_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "s3_buckets_id_unique": {+ "name": "s3_buckets_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "sessions": {+ "name": "sessions",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sessionToken": {+ "name": "sessionToken",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "session_token_idx": {+ "name": "session_token_idx",+ "columns": [+ "sessionToken"+ ],+ "isUnique": true+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "sessions_id": {+ "name": "sessions_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "sessions_id_unique": {+ "name": "sessions_id_unique",+ "columns": [+ "id"+ ]+ },+ "sessions_sessionToken_unique": {+ "name": "sessions_sessionToken_unique",+ "columns": [+ "sessionToken"+ ]+ }+ },+ "checkConstraint": {}+ },+ "shared_videos": {+ "name": "shared_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedByUserId": {+ "name": "sharedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedAt": {+ "name": "sharedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "shared_by_user_id_idx": {+ "name": "shared_by_user_id_idx",+ "columns": [+ "sharedByUserId"+ ],+ "isUnique": false+ },+ "video_id_organization_id_idx": {+ "name": "video_id_organization_id_idx",+ "columns": [+ "videoId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "shared_videos_id": {+ "name": "shared_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "shared_videos_id_unique": {+ "name": "shared_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_members": {+ "name": "space_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "space_id_user_id_idx": {+ "name": "space_id_user_id_idx",+ "columns": [+ "spaceId",+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_members_id": {+ "name": "space_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_members_id_unique": {+ "name": "space_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_videos": {+ "name": "space_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedById": {+ "name": "addedById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedAt": {+ "name": "addedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "added_by_id_idx": {+ "name": "added_by_id_idx",+ "columns": [+ "addedById"+ ],+ "isUnique": false+ },+ "space_id_video_id_idx": {+ "name": "space_id_video_id_idx",+ "columns": [+ "spaceId",+ "videoId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_videos_id": {+ "name": "space_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_videos_id_unique": {+ "name": "space_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "spaces": {+ "name": "spaces",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdById": {+ "name": "createdById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "iconUrl": {+ "name": "iconUrl",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "varchar(1000)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "created_by_id_idx": {+ "name": "created_by_id_idx",+ "columns": [+ "createdById"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "spaces_id": {+ "name": "spaces_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "spaces_id_unique": {+ "name": "spaces_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "users": {+ "name": "users",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "lastName": {+ "name": "lastName",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "emailVerified": {+ "name": "emailVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "image": {+ "name": "image",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeCustomerId": {+ "name": "stripeCustomerId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionId": {+ "name": "stripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "thirdPartyStripeSubscriptionId": {+ "name": "thirdPartyStripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionStatus": {+ "name": "stripeSubscriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionPriceId": {+ "name": "stripeSubscriptionPriceId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "activeOrganizationId": {+ "name": "activeOrganizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "onboarding_completed_at": {+ "name": "onboarding_completed_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customBucket": {+ "name": "customBucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "inviteQuota": {+ "name": "inviteQuota",+ "type": "int",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": 1+ }+ },+ "indexes": {+ "email_idx": {+ "name": "email_idx",+ "columns": [+ "email"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "users_id": {+ "name": "users_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "users_id_unique": {+ "name": "users_id_unique",+ "columns": [+ "id"+ ]+ },+ "users_email_unique": {+ "name": "users_email_unique",+ "columns": [+ "email"+ ]+ }+ },+ "checkConstraint": {}+ },+ "verification_tokens": {+ "name": "verification_tokens",+ "columns": {+ "identifier": {+ "name": "identifier",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "token": {+ "name": "token",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "verification_tokens_identifier": {+ "name": "verification_tokens_identifier",+ "columns": [+ "identifier"+ ]+ }+ },+ "uniqueConstraints": {+ "verification_tokens_token_unique": {+ "name": "verification_tokens_token_unique",+ "columns": [+ "token"+ ]+ }+ },+ "checkConstraint": {}+ },+ "videos": {+ "name": "videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'My Video'"+ },+ "awsRegion": {+ "name": "awsRegion",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "awsBucket": {+ "name": "awsBucket",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucket": {+ "name": "bucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "public": {+ "name": "public",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": true+ },+ "password": {+ "name": "password",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "videoStartTime": {+ "name": "videoStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "audioStartTime": {+ "name": "audioStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "xStreamInfo": {+ "name": "xStreamInfo",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobId": {+ "name": "jobId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobStatus": {+ "name": "jobStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "isScreenshot": {+ "name": "isScreenshot",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "skipProcessing": {+ "name": "skipProcessing",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "transcriptionStatus": {+ "name": "transcriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "source": {+ "name": "source",+ "type": "json",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('{\"type\":\"MediaConvert\"}')"+ }+ },+ "indexes": {+ "id_idx": {+ "name": "id_idx",+ "columns": [+ "id"+ ],+ "isUnique": false+ },+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "is_public_idx": {+ "name": "is_public_idx",+ "columns": [+ "public"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "videos_id": {+ "name": "videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "videos_id_unique": {+ "name": "videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ }+ },+ "views": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ },+ "internal": {+ "tables": {},+ "indexes": {}+ }+}\ No newline at end of filediff --git a/packages/database/migrations/meta/0008_snapshot.json b/packages/database/migrations/meta/0008_snapshot.jsonnew file mode 100644index 000000000..6f70727af--- /dev/null+++ b/packages/database/migrations/meta/0008_snapshot.json@@ -0,0 +1,1626 @@+{+ "version": "5",+ "dialect": "mysql",+ "id": "492287c1-7233-446f-8d67-4580a97390f5",+ "prevId": "484d301f-5437-4d42-a0e7-0ca6d2f26de3",+ "tables": {+ "accounts": {+ "name": "accounts",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "providerAccountId": {+ "name": "providerAccountId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "access_token": {+ "name": "access_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "expires_in": {+ "name": "expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "id_token": {+ "name": "id_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token": {+ "name": "refresh_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token_expires_in": {+ "name": "refresh_token_expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "scope": {+ "name": "scope",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "token_type": {+ "name": "token_type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "tempColumn": {+ "name": "tempColumn",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "provider_account_id_idx": {+ "name": "provider_account_id_idx",+ "columns": [+ "providerAccountId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "accounts_id": {+ "name": "accounts_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "accounts_id_unique": {+ "name": "accounts_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "auth_api_keys": {+ "name": "auth_api_keys",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(36)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "auth_api_keys_id": {+ "name": "auth_api_keys_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "auth_api_keys_id_unique": {+ "name": "auth_api_keys_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "comments": {+ "name": "comments",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(6)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "timestamp": {+ "name": "timestamp",+ "type": "float",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "authorId": {+ "name": "authorId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "parentCommentId": {+ "name": "parentCommentId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "author_id_idx": {+ "name": "author_id_idx",+ "columns": [+ "authorId"+ ],+ "isUnique": false+ },+ "parent_comment_id_idx": {+ "name": "parent_comment_id_idx",+ "columns": [+ "parentCommentId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "comments_id": {+ "name": "comments_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "comments_id_unique": {+ "name": "comments_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_invites": {+ "name": "organization_invites",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedEmail": {+ "name": "invitedEmail",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedByUserId": {+ "name": "invitedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "status": {+ "name": "status",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'pending'"+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "expiresAt": {+ "name": "expiresAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "invited_email_idx": {+ "name": "invited_email_idx",+ "columns": [+ "invitedEmail"+ ],+ "isUnique": false+ },+ "invited_by_user_id_idx": {+ "name": "invited_by_user_id_idx",+ "columns": [+ "invitedByUserId"+ ],+ "isUnique": false+ },+ "status_idx": {+ "name": "status_idx",+ "columns": [+ "status"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_invites_id": {+ "name": "organization_invites_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_invites_id_unique": {+ "name": "organization_invites_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_members": {+ "name": "organization_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "user_id_organization_id_idx": {+ "name": "user_id_organization_id_idx",+ "columns": [+ "userId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_members_id": {+ "name": "organization_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_members_id_unique": {+ "name": "organization_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organizations": {+ "name": "organizations",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "allowedEmailDomain": {+ "name": "allowedEmailDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customDomain": {+ "name": "customDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "domainVerified": {+ "name": "domainVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "iconUrl": {+ "name": "iconUrl",+ "type": "varchar(1024)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "workosOrganizationId": {+ "name": "workosOrganizationId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "workosConnectionId": {+ "name": "workosConnectionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "custom_domain_idx": {+ "name": "custom_domain_idx",+ "columns": [+ "customDomain"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organizations_id": {+ "name": "organizations_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organizations_id_unique": {+ "name": "organizations_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "s3_buckets": {+ "name": "s3_buckets",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "region": {+ "name": "region",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "endpoint": {+ "name": "endpoint",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucketName": {+ "name": "bucketName",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "accessKeyId": {+ "name": "accessKeyId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "secretAccessKey": {+ "name": "secretAccessKey",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('aws')"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "s3_buckets_id": {+ "name": "s3_buckets_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "s3_buckets_id_unique": {+ "name": "s3_buckets_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "sessions": {+ "name": "sessions",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sessionToken": {+ "name": "sessionToken",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "session_token_idx": {+ "name": "session_token_idx",+ "columns": [+ "sessionToken"+ ],+ "isUnique": true+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "sessions_id": {+ "name": "sessions_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "sessions_id_unique": {+ "name": "sessions_id_unique",+ "columns": [+ "id"+ ]+ },+ "sessions_sessionToken_unique": {+ "name": "sessions_sessionToken_unique",+ "columns": [+ "sessionToken"+ ]+ }+ },+ "checkConstraint": {}+ },+ "shared_videos": {+ "name": "shared_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedByUserId": {+ "name": "sharedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedAt": {+ "name": "sharedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "shared_by_user_id_idx": {+ "name": "shared_by_user_id_idx",+ "columns": [+ "sharedByUserId"+ ],+ "isUnique": false+ },+ "video_id_organization_id_idx": {+ "name": "video_id_organization_id_idx",+ "columns": [+ "videoId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "shared_videos_id": {+ "name": "shared_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "shared_videos_id_unique": {+ "name": "shared_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_members": {+ "name": "space_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "space_id_user_id_idx": {+ "name": "space_id_user_id_idx",+ "columns": [+ "spaceId",+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_members_id": {+ "name": "space_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_members_id_unique": {+ "name": "space_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_videos": {+ "name": "space_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedById": {+ "name": "addedById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedAt": {+ "name": "addedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "added_by_id_idx": {+ "name": "added_by_id_idx",+ "columns": [+ "addedById"+ ],+ "isUnique": false+ },+ "space_id_video_id_idx": {+ "name": "space_id_video_id_idx",+ "columns": [+ "spaceId",+ "videoId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_videos_id": {+ "name": "space_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_videos_id_unique": {+ "name": "space_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "spaces": {+ "name": "spaces",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdById": {+ "name": "createdById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "iconUrl": {+ "name": "iconUrl",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "varchar(1000)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "created_by_id_idx": {+ "name": "created_by_id_idx",+ "columns": [+ "createdById"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "spaces_id": {+ "name": "spaces_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "spaces_id_unique": {+ "name": "spaces_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "users": {+ "name": "users",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "lastName": {+ "name": "lastName",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "emailVerified": {+ "name": "emailVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "image": {+ "name": "image",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeCustomerId": {+ "name": "stripeCustomerId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionId": {+ "name": "stripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "thirdPartyStripeSubscriptionId": {+ "name": "thirdPartyStripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionStatus": {+ "name": "stripeSubscriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionPriceId": {+ "name": "stripeSubscriptionPriceId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "activeOrganizationId": {+ "name": "activeOrganizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "onboarding_completed_at": {+ "name": "onboarding_completed_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customBucket": {+ "name": "customBucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "inviteQuota": {+ "name": "inviteQuota",+ "type": "int",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": 1+ }+ },+ "indexes": {+ "email_idx": {+ "name": "email_idx",+ "columns": [+ "email"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "users_id": {+ "name": "users_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "users_id_unique": {+ "name": "users_id_unique",+ "columns": [+ "id"+ ]+ },+ "users_email_unique": {+ "name": "users_email_unique",+ "columns": [+ "email"+ ]+ }+ },+ "checkConstraint": {}+ },+ "verification_tokens": {+ "name": "verification_tokens",+ "columns": {+ "identifier": {+ "name": "identifier",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "token": {+ "name": "token",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "verification_tokens_identifier": {+ "name": "verification_tokens_identifier",+ "columns": [+ "identifier"+ ]+ }+ },+ "uniqueConstraints": {+ "verification_tokens_token_unique": {+ "name": "verification_tokens_token_unique",+ "columns": [+ "token"+ ]+ }+ },+ "checkConstraint": {}+ },+ "videos": {+ "name": "videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'My Video'"+ },+ "awsRegion": {+ "name": "awsRegion",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "awsBucket": {+ "name": "awsBucket",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucket": {+ "name": "bucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "public": {+ "name": "public",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": true+ },+ "password": {+ "name": "password",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "videoStartTime": {+ "name": "videoStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "audioStartTime": {+ "name": "audioStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "xStreamInfo": {+ "name": "xStreamInfo",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobId": {+ "name": "jobId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobStatus": {+ "name": "jobStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "isScreenshot": {+ "name": "isScreenshot",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "skipProcessing": {+ "name": "skipProcessing",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "transcriptionStatus": {+ "name": "transcriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "source": {+ "name": "source",+ "type": "json",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('{\"type\":\"MediaConvert\"}')"+ }+ },+ "indexes": {+ "id_idx": {+ "name": "id_idx",+ "columns": [+ "id"+ ],+ "isUnique": false+ },+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "is_public_idx": {+ "name": "is_public_idx",+ "columns": [+ "public"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "videos_id": {+ "name": "videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "videos_id_unique": {+ "name": "videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ }+ },+ "views": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ },+ "internal": {+ "tables": {},+ "indexes": {}+ }+}\ No newline at end of filediff --git a/packages/database/migrations/meta/0009_snapshot.json b/packages/database/migrations/meta/0009_snapshot.jsonnew file mode 100644index 000000000..9e6e3618c--- /dev/null+++ b/packages/database/migrations/meta/0009_snapshot.json@@ -0,0 +1,1627 @@+{+ "version": "5",+ "dialect": "mysql",+ "id": "f5b17f91-ed40-43e2-853c-5c5f09e34525",+ "prevId": "492287c1-7233-446f-8d67-4580a97390f5",+ "tables": {+ "accounts": {+ "name": "accounts",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "providerAccountId": {+ "name": "providerAccountId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "access_token": {+ "name": "access_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "expires_in": {+ "name": "expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "id_token": {+ "name": "id_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token": {+ "name": "refresh_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token_expires_in": {+ "name": "refresh_token_expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "scope": {+ "name": "scope",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "token_type": {+ "name": "token_type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "tempColumn": {+ "name": "tempColumn",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "provider_account_id_idx": {+ "name": "provider_account_id_idx",+ "columns": [+ "providerAccountId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "accounts_id": {+ "name": "accounts_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "accounts_id_unique": {+ "name": "accounts_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "auth_api_keys": {+ "name": "auth_api_keys",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(36)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "auth_api_keys_id": {+ "name": "auth_api_keys_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "auth_api_keys_id_unique": {+ "name": "auth_api_keys_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "comments": {+ "name": "comments",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(6)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "timestamp": {+ "name": "timestamp",+ "type": "float",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "authorId": {+ "name": "authorId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "parentCommentId": {+ "name": "parentCommentId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "author_id_idx": {+ "name": "author_id_idx",+ "columns": [+ "authorId"+ ],+ "isUnique": false+ },+ "parent_comment_id_idx": {+ "name": "parent_comment_id_idx",+ "columns": [+ "parentCommentId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "comments_id": {+ "name": "comments_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "comments_id_unique": {+ "name": "comments_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_invites": {+ "name": "organization_invites",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedEmail": {+ "name": "invitedEmail",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedByUserId": {+ "name": "invitedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "status": {+ "name": "status",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'pending'"+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "expiresAt": {+ "name": "expiresAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "invited_email_idx": {+ "name": "invited_email_idx",+ "columns": [+ "invitedEmail"+ ],+ "isUnique": false+ },+ "invited_by_user_id_idx": {+ "name": "invited_by_user_id_idx",+ "columns": [+ "invitedByUserId"+ ],+ "isUnique": false+ },+ "status_idx": {+ "name": "status_idx",+ "columns": [+ "status"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_invites_id": {+ "name": "organization_invites_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_invites_id_unique": {+ "name": "organization_invites_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_members": {+ "name": "organization_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "user_id_organization_id_idx": {+ "name": "user_id_organization_id_idx",+ "columns": [+ "userId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_members_id": {+ "name": "organization_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_members_id_unique": {+ "name": "organization_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organizations": {+ "name": "organizations",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "allowedEmailDomain": {+ "name": "allowedEmailDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customDomain": {+ "name": "customDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "domainVerified": {+ "name": "domainVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "iconUrl": {+ "name": "iconUrl",+ "type": "varchar(1024)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "workosOrganizationId": {+ "name": "workosOrganizationId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "workosConnectionId": {+ "name": "workosConnectionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "custom_domain_idx": {+ "name": "custom_domain_idx",+ "columns": [+ "customDomain"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organizations_id": {+ "name": "organizations_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organizations_id_unique": {+ "name": "organizations_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "s3_buckets": {+ "name": "s3_buckets",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "region": {+ "name": "region",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "endpoint": {+ "name": "endpoint",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucketName": {+ "name": "bucketName",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "accessKeyId": {+ "name": "accessKeyId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "secretAccessKey": {+ "name": "secretAccessKey",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('aws')"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "s3_buckets_id": {+ "name": "s3_buckets_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "s3_buckets_id_unique": {+ "name": "s3_buckets_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "sessions": {+ "name": "sessions",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sessionToken": {+ "name": "sessionToken",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "session_token_idx": {+ "name": "session_token_idx",+ "columns": [+ "sessionToken"+ ],+ "isUnique": true+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "sessions_id": {+ "name": "sessions_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "sessions_id_unique": {+ "name": "sessions_id_unique",+ "columns": [+ "id"+ ]+ },+ "sessions_sessionToken_unique": {+ "name": "sessions_sessionToken_unique",+ "columns": [+ "sessionToken"+ ]+ }+ },+ "checkConstraint": {}+ },+ "shared_videos": {+ "name": "shared_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedByUserId": {+ "name": "sharedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedAt": {+ "name": "sharedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "shared_by_user_id_idx": {+ "name": "shared_by_user_id_idx",+ "columns": [+ "sharedByUserId"+ ],+ "isUnique": false+ },+ "video_id_organization_id_idx": {+ "name": "video_id_organization_id_idx",+ "columns": [+ "videoId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "shared_videos_id": {+ "name": "shared_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "shared_videos_id_unique": {+ "name": "shared_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_members": {+ "name": "space_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "space_id_user_id_idx": {+ "name": "space_id_user_id_idx",+ "columns": [+ "spaceId",+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_members_id": {+ "name": "space_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_members_id_unique": {+ "name": "space_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_videos": {+ "name": "space_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedById": {+ "name": "addedById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedAt": {+ "name": "addedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "added_by_id_idx": {+ "name": "added_by_id_idx",+ "columns": [+ "addedById"+ ],+ "isUnique": false+ },+ "space_id_video_id_idx": {+ "name": "space_id_video_id_idx",+ "columns": [+ "spaceId",+ "videoId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_videos_id": {+ "name": "space_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_videos_id_unique": {+ "name": "space_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "spaces": {+ "name": "spaces",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdById": {+ "name": "createdById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "iconUrl": {+ "name": "iconUrl",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'Owner'"+ },+ "description": {+ "name": "description",+ "type": "varchar(1000)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "created_by_id_idx": {+ "name": "created_by_id_idx",+ "columns": [+ "createdById"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "spaces_id": {+ "name": "spaces_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "spaces_id_unique": {+ "name": "spaces_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "users": {+ "name": "users",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "lastName": {+ "name": "lastName",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "emailVerified": {+ "name": "emailVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "image": {+ "name": "image",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeCustomerId": {+ "name": "stripeCustomerId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionId": {+ "name": "stripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "thirdPartyStripeSubscriptionId": {+ "name": "thirdPartyStripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionStatus": {+ "name": "stripeSubscriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionPriceId": {+ "name": "stripeSubscriptionPriceId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "activeOrganizationId": {+ "name": "activeOrganizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "onboarding_completed_at": {+ "name": "onboarding_completed_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customBucket": {+ "name": "customBucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "inviteQuota": {+ "name": "inviteQuota",+ "type": "int",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": 1+ }+ },+ "indexes": {+ "email_idx": {+ "name": "email_idx",+ "columns": [+ "email"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "users_id": {+ "name": "users_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "users_id_unique": {+ "name": "users_id_unique",+ "columns": [+ "id"+ ]+ },+ "users_email_unique": {+ "name": "users_email_unique",+ "columns": [+ "email"+ ]+ }+ },+ "checkConstraint": {}+ },+ "verification_tokens": {+ "name": "verification_tokens",+ "columns": {+ "identifier": {+ "name": "identifier",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "token": {+ "name": "token",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "verification_tokens_identifier": {+ "name": "verification_tokens_identifier",+ "columns": [+ "identifier"+ ]+ }+ },+ "uniqueConstraints": {+ "verification_tokens_token_unique": {+ "name": "verification_tokens_token_unique",+ "columns": [+ "token"+ ]+ }+ },+ "checkConstraint": {}+ },+ "videos": {+ "name": "videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'My Video'"+ },+ "awsRegion": {+ "name": "awsRegion",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "awsBucket": {+ "name": "awsBucket",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucket": {+ "name": "bucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "public": {+ "name": "public",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": true+ },+ "password": {+ "name": "password",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "videoStartTime": {+ "name": "videoStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "audioStartTime": {+ "name": "audioStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "xStreamInfo": {+ "name": "xStreamInfo",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobId": {+ "name": "jobId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobStatus": {+ "name": "jobStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "isScreenshot": {+ "name": "isScreenshot",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "skipProcessing": {+ "name": "skipProcessing",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "transcriptionStatus": {+ "name": "transcriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "source": {+ "name": "source",+ "type": "json",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('{\"type\":\"MediaConvert\"}')"+ }+ },+ "indexes": {+ "id_idx": {+ "name": "id_idx",+ "columns": [+ "id"+ ],+ "isUnique": false+ },+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "is_public_idx": {+ "name": "is_public_idx",+ "columns": [+ "public"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "videos_id": {+ "name": "videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "videos_id_unique": {+ "name": "videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ }+ },+ "views": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ },+ "internal": {+ "tables": {},+ "indexes": {}+ }+}\ No newline at end of filediff --git a/packages/database/migrations/meta/0010_snapshot.json b/packages/database/migrations/meta/0010_snapshot.jsonnew file mode 100644index 000000000..d7b1dc24f--- /dev/null+++ b/packages/database/migrations/meta/0010_snapshot.json@@ -0,0 +1,1643 @@+{+ "version": "5",+ "dialect": "mysql",+ "id": "39a2ea97-168f-4276-a6c1-431fed67aa33",+ "prevId": "f5b17f91-ed40-43e2-853c-5c5f09e34525",+ "tables": {+ "accounts": {+ "name": "accounts",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "providerAccountId": {+ "name": "providerAccountId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "access_token": {+ "name": "access_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "expires_in": {+ "name": "expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "id_token": {+ "name": "id_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token": {+ "name": "refresh_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token_expires_in": {+ "name": "refresh_token_expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "scope": {+ "name": "scope",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "token_type": {+ "name": "token_type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "tempColumn": {+ "name": "tempColumn",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "provider_account_id_idx": {+ "name": "provider_account_id_idx",+ "columns": [+ "providerAccountId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "accounts_id": {+ "name": "accounts_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "accounts_id_unique": {+ "name": "accounts_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "auth_api_keys": {+ "name": "auth_api_keys",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(36)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "auth_api_keys_id": {+ "name": "auth_api_keys_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "auth_api_keys_id_unique": {+ "name": "auth_api_keys_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "comments": {+ "name": "comments",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(6)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "timestamp": {+ "name": "timestamp",+ "type": "float",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "authorId": {+ "name": "authorId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "parentCommentId": {+ "name": "parentCommentId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "author_id_idx": {+ "name": "author_id_idx",+ "columns": [+ "authorId"+ ],+ "isUnique": false+ },+ "parent_comment_id_idx": {+ "name": "parent_comment_id_idx",+ "columns": [+ "parentCommentId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "comments_id": {+ "name": "comments_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "comments_id_unique": {+ "name": "comments_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_invites": {+ "name": "organization_invites",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedEmail": {+ "name": "invitedEmail",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedByUserId": {+ "name": "invitedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "status": {+ "name": "status",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'pending'"+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "expiresAt": {+ "name": "expiresAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "invited_email_idx": {+ "name": "invited_email_idx",+ "columns": [+ "invitedEmail"+ ],+ "isUnique": false+ },+ "invited_by_user_id_idx": {+ "name": "invited_by_user_id_idx",+ "columns": [+ "invitedByUserId"+ ],+ "isUnique": false+ },+ "status_idx": {+ "name": "status_idx",+ "columns": [+ "status"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_invites_id": {+ "name": "organization_invites_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_invites_id_unique": {+ "name": "organization_invites_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_members": {+ "name": "organization_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "user_id_organization_id_idx": {+ "name": "user_id_organization_id_idx",+ "columns": [+ "userId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_members_id": {+ "name": "organization_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_members_id_unique": {+ "name": "organization_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organizations": {+ "name": "organizations",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "allowedEmailDomain": {+ "name": "allowedEmailDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customDomain": {+ "name": "customDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "domainVerified": {+ "name": "domainVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "iconUrl": {+ "name": "iconUrl",+ "type": "varchar(1024)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "workosOrganizationId": {+ "name": "workosOrganizationId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "workosConnectionId": {+ "name": "workosConnectionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "custom_domain_idx": {+ "name": "custom_domain_idx",+ "columns": [+ "customDomain"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organizations_id": {+ "name": "organizations_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organizations_id_unique": {+ "name": "organizations_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "s3_buckets": {+ "name": "s3_buckets",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "region": {+ "name": "region",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "endpoint": {+ "name": "endpoint",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucketName": {+ "name": "bucketName",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "accessKeyId": {+ "name": "accessKeyId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "secretAccessKey": {+ "name": "secretAccessKey",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('aws')"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "s3_buckets_id": {+ "name": "s3_buckets_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "s3_buckets_id_unique": {+ "name": "s3_buckets_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "sessions": {+ "name": "sessions",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sessionToken": {+ "name": "sessionToken",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "session_token_idx": {+ "name": "session_token_idx",+ "columns": [+ "sessionToken"+ ],+ "isUnique": true+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "sessions_id": {+ "name": "sessions_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "sessions_id_unique": {+ "name": "sessions_id_unique",+ "columns": [+ "id"+ ]+ },+ "sessions_sessionToken_unique": {+ "name": "sessions_sessionToken_unique",+ "columns": [+ "sessionToken"+ ]+ }+ },+ "checkConstraint": {}+ },+ "shared_videos": {+ "name": "shared_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedByUserId": {+ "name": "sharedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedAt": {+ "name": "sharedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "shared_by_user_id_idx": {+ "name": "shared_by_user_id_idx",+ "columns": [+ "sharedByUserId"+ ],+ "isUnique": false+ },+ "video_id_organization_id_idx": {+ "name": "video_id_organization_id_idx",+ "columns": [+ "videoId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "shared_videos_id": {+ "name": "shared_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "shared_videos_id_unique": {+ "name": "shared_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_members": {+ "name": "space_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "space_id_user_id_idx": {+ "name": "space_id_user_id_idx",+ "columns": [+ "spaceId",+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_members_id": {+ "name": "space_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_members_id_unique": {+ "name": "space_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_videos": {+ "name": "space_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedById": {+ "name": "addedById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedAt": {+ "name": "addedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "added_by_id_idx": {+ "name": "added_by_id_idx",+ "columns": [+ "addedById"+ ],+ "isUnique": false+ },+ "space_id_video_id_idx": {+ "name": "space_id_video_id_idx",+ "columns": [+ "spaceId",+ "videoId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_videos_id": {+ "name": "space_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_videos_id_unique": {+ "name": "space_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "spaces": {+ "name": "spaces",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "primary": {+ "name": "primary",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdById": {+ "name": "createdById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "iconUrl": {+ "name": "iconUrl",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'Owner'"+ },+ "description": {+ "name": "description",+ "type": "varchar(1000)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "privacy": {+ "name": "privacy",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'Private'"+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "created_by_id_idx": {+ "name": "created_by_id_idx",+ "columns": [+ "createdById"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "spaces_id": {+ "name": "spaces_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "spaces_id_unique": {+ "name": "spaces_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "users": {+ "name": "users",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "lastName": {+ "name": "lastName",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "emailVerified": {+ "name": "emailVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "image": {+ "name": "image",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeCustomerId": {+ "name": "stripeCustomerId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionId": {+ "name": "stripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "thirdPartyStripeSubscriptionId": {+ "name": "thirdPartyStripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionStatus": {+ "name": "stripeSubscriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionPriceId": {+ "name": "stripeSubscriptionPriceId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "activeOrganizationId": {+ "name": "activeOrganizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "onboarding_completed_at": {+ "name": "onboarding_completed_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customBucket": {+ "name": "customBucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "inviteQuota": {+ "name": "inviteQuota",+ "type": "int",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": 1+ }+ },+ "indexes": {+ "email_idx": {+ "name": "email_idx",+ "columns": [+ "email"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "users_id": {+ "name": "users_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "users_id_unique": {+ "name": "users_id_unique",+ "columns": [+ "id"+ ]+ },+ "users_email_unique": {+ "name": "users_email_unique",+ "columns": [+ "email"+ ]+ }+ },+ "checkConstraint": {}+ },+ "verification_tokens": {+ "name": "verification_tokens",+ "columns": {+ "identifier": {+ "name": "identifier",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "token": {+ "name": "token",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "verification_tokens_identifier": {+ "name": "verification_tokens_identifier",+ "columns": [+ "identifier"+ ]+ }+ },+ "uniqueConstraints": {+ "verification_tokens_token_unique": {+ "name": "verification_tokens_token_unique",+ "columns": [+ "token"+ ]+ }+ },+ "checkConstraint": {}+ },+ "videos": {+ "name": "videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'My Video'"+ },+ "awsRegion": {+ "name": "awsRegion",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "awsBucket": {+ "name": "awsBucket",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucket": {+ "name": "bucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "public": {+ "name": "public",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": true+ },+ "password": {+ "name": "password",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "videoStartTime": {+ "name": "videoStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "audioStartTime": {+ "name": "audioStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "xStreamInfo": {+ "name": "xStreamInfo",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobId": {+ "name": "jobId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobStatus": {+ "name": "jobStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "isScreenshot": {+ "name": "isScreenshot",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "skipProcessing": {+ "name": "skipProcessing",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "transcriptionStatus": {+ "name": "transcriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "source": {+ "name": "source",+ "type": "json",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('{\"type\":\"MediaConvert\"}')"+ }+ },+ "indexes": {+ "id_idx": {+ "name": "id_idx",+ "columns": [+ "id"+ ],+ "isUnique": false+ },+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "is_public_idx": {+ "name": "is_public_idx",+ "columns": [+ "public"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "videos_id": {+ "name": "videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "videos_id_unique": {+ "name": "videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ }+ },+ "views": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ },+ "internal": {+ "tables": {},+ "indexes": {}+ }+}\ No newline at end of filediff --git a/packages/database/migrations/meta/0011_snapshot.json b/packages/database/migrations/meta/0011_snapshot.jsonnew file mode 100644index 000000000..bfed1fc0c--- /dev/null+++ b/packages/database/migrations/meta/0011_snapshot.json@@ -0,0 +1,1628 @@+{+ "version": "5",+ "dialect": "mysql",+ "id": "b959019d-7dc8-461a-977a-e3b80e73391f",+ "prevId": "39a2ea97-168f-4276-a6c1-431fed67aa33",+ "tables": {+ "accounts": {+ "name": "accounts",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "providerAccountId": {+ "name": "providerAccountId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "access_token": {+ "name": "access_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "expires_in": {+ "name": "expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "id_token": {+ "name": "id_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token": {+ "name": "refresh_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token_expires_in": {+ "name": "refresh_token_expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "scope": {+ "name": "scope",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "token_type": {+ "name": "token_type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "tempColumn": {+ "name": "tempColumn",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "provider_account_id_idx": {+ "name": "provider_account_id_idx",+ "columns": [+ "providerAccountId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "accounts_id": {+ "name": "accounts_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "accounts_id_unique": {+ "name": "accounts_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "auth_api_keys": {+ "name": "auth_api_keys",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(36)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "auth_api_keys_id": {+ "name": "auth_api_keys_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "auth_api_keys_id_unique": {+ "name": "auth_api_keys_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "comments": {+ "name": "comments",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(6)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "timestamp": {+ "name": "timestamp",+ "type": "float",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "authorId": {+ "name": "authorId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "parentCommentId": {+ "name": "parentCommentId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "author_id_idx": {+ "name": "author_id_idx",+ "columns": [+ "authorId"+ ],+ "isUnique": false+ },+ "parent_comment_id_idx": {+ "name": "parent_comment_id_idx",+ "columns": [+ "parentCommentId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "comments_id": {+ "name": "comments_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "comments_id_unique": {+ "name": "comments_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_invites": {+ "name": "organization_invites",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedEmail": {+ "name": "invitedEmail",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedByUserId": {+ "name": "invitedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "status": {+ "name": "status",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'pending'"+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "expiresAt": {+ "name": "expiresAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "invited_email_idx": {+ "name": "invited_email_idx",+ "columns": [+ "invitedEmail"+ ],+ "isUnique": false+ },+ "invited_by_user_id_idx": {+ "name": "invited_by_user_id_idx",+ "columns": [+ "invitedByUserId"+ ],+ "isUnique": false+ },+ "status_idx": {+ "name": "status_idx",+ "columns": [+ "status"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_invites_id": {+ "name": "organization_invites_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_invites_id_unique": {+ "name": "organization_invites_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_members": {+ "name": "organization_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "user_id_organization_id_idx": {+ "name": "user_id_organization_id_idx",+ "columns": [+ "userId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_members_id": {+ "name": "organization_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_members_id_unique": {+ "name": "organization_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organizations": {+ "name": "organizations",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "allowedEmailDomain": {+ "name": "allowedEmailDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customDomain": {+ "name": "customDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "domainVerified": {+ "name": "domainVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "iconUrl": {+ "name": "iconUrl",+ "type": "varchar(1024)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "workosOrganizationId": {+ "name": "workosOrganizationId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "workosConnectionId": {+ "name": "workosConnectionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "custom_domain_idx": {+ "name": "custom_domain_idx",+ "columns": [+ "customDomain"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organizations_id": {+ "name": "organizations_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organizations_id_unique": {+ "name": "organizations_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "s3_buckets": {+ "name": "s3_buckets",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "region": {+ "name": "region",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "endpoint": {+ "name": "endpoint",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucketName": {+ "name": "bucketName",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "accessKeyId": {+ "name": "accessKeyId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "secretAccessKey": {+ "name": "secretAccessKey",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('aws')"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "s3_buckets_id": {+ "name": "s3_buckets_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "s3_buckets_id_unique": {+ "name": "s3_buckets_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "sessions": {+ "name": "sessions",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sessionToken": {+ "name": "sessionToken",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "session_token_idx": {+ "name": "session_token_idx",+ "columns": [+ "sessionToken"+ ],+ "isUnique": true+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "sessions_id": {+ "name": "sessions_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "sessions_id_unique": {+ "name": "sessions_id_unique",+ "columns": [+ "id"+ ]+ },+ "sessions_sessionToken_unique": {+ "name": "sessions_sessionToken_unique",+ "columns": [+ "sessionToken"+ ]+ }+ },+ "checkConstraint": {}+ },+ "shared_videos": {+ "name": "shared_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedByUserId": {+ "name": "sharedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedAt": {+ "name": "sharedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "shared_by_user_id_idx": {+ "name": "shared_by_user_id_idx",+ "columns": [+ "sharedByUserId"+ ],+ "isUnique": false+ },+ "video_id_organization_id_idx": {+ "name": "video_id_organization_id_idx",+ "columns": [+ "videoId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "shared_videos_id": {+ "name": "shared_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "shared_videos_id_unique": {+ "name": "shared_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_members": {+ "name": "space_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "space_id_user_id_idx": {+ "name": "space_id_user_id_idx",+ "columns": [+ "spaceId",+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_members_id": {+ "name": "space_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_members_id_unique": {+ "name": "space_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_videos": {+ "name": "space_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedById": {+ "name": "addedById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedAt": {+ "name": "addedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "added_by_id_idx": {+ "name": "added_by_id_idx",+ "columns": [+ "addedById"+ ],+ "isUnique": false+ },+ "space_id_video_id_idx": {+ "name": "space_id_video_id_idx",+ "columns": [+ "spaceId",+ "videoId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_videos_id": {+ "name": "space_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_videos_id_unique": {+ "name": "space_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "spaces": {+ "name": "spaces",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "primary": {+ "name": "primary",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdById": {+ "name": "createdById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "iconUrl": {+ "name": "iconUrl",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "varchar(1000)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "privacy": {+ "name": "privacy",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'Private'"+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "created_by_id_idx": {+ "name": "created_by_id_idx",+ "columns": [+ "createdById"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "spaces_id": {+ "name": "spaces_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "spaces_id_unique": {+ "name": "spaces_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "users": {+ "name": "users",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "lastName": {+ "name": "lastName",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "emailVerified": {+ "name": "emailVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "image": {+ "name": "image",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeCustomerId": {+ "name": "stripeCustomerId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionId": {+ "name": "stripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "thirdPartyStripeSubscriptionId": {+ "name": "thirdPartyStripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionStatus": {+ "name": "stripeSubscriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionPriceId": {+ "name": "stripeSubscriptionPriceId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "activeOrganizationId": {+ "name": "activeOrganizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "onboarding_completed_at": {+ "name": "onboarding_completed_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customBucket": {+ "name": "customBucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "inviteQuota": {+ "name": "inviteQuota",+ "type": "int",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": 1+ }+ },+ "indexes": {+ "email_idx": {+ "name": "email_idx",+ "columns": [+ "email"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "users_id": {+ "name": "users_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "users_id_unique": {+ "name": "users_id_unique",+ "columns": [+ "id"+ ]+ },+ "users_email_unique": {+ "name": "users_email_unique",+ "columns": [+ "email"+ ]+ }+ },+ "checkConstraint": {}+ },+ "verification_tokens": {+ "name": "verification_tokens",+ "columns": {+ "identifier": {+ "name": "identifier",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "token": {+ "name": "token",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "verification_tokens_identifier": {+ "name": "verification_tokens_identifier",+ "columns": [+ "identifier"+ ]+ }+ },+ "uniqueConstraints": {+ "verification_tokens_token_unique": {+ "name": "verification_tokens_token_unique",+ "columns": [+ "token"+ ]+ }+ },+ "checkConstraint": {}+ },+ "videos": {+ "name": "videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'My Video'"+ },+ "awsRegion": {+ "name": "awsRegion",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "awsBucket": {+ "name": "awsBucket",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucket": {+ "name": "bucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "public": {+ "name": "public",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": true+ },+ "password": {+ "name": "password",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "videoStartTime": {+ "name": "videoStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "audioStartTime": {+ "name": "audioStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "xStreamInfo": {+ "name": "xStreamInfo",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobId": {+ "name": "jobId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobStatus": {+ "name": "jobStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "isScreenshot": {+ "name": "isScreenshot",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "skipProcessing": {+ "name": "skipProcessing",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "transcriptionStatus": {+ "name": "transcriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "source": {+ "name": "source",+ "type": "json",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('{\"type\":\"MediaConvert\"}')"+ }+ },+ "indexes": {+ "id_idx": {+ "name": "id_idx",+ "columns": [+ "id"+ ],+ "isUnique": false+ },+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "is_public_idx": {+ "name": "is_public_idx",+ "columns": [+ "public"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "videos_id": {+ "name": "videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "videos_id_unique": {+ "name": "videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ }+ },+ "views": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ },+ "internal": {+ "tables": {},+ "indexes": {}+ }+}\ No newline at end of filediff --git a/packages/database/migrations/meta/0012_snapshot.json b/packages/database/migrations/meta/0012_snapshot.jsonnew file mode 100644index 000000000..8de7c6972--- /dev/null+++ b/packages/database/migrations/meta/0012_snapshot.json@@ -0,0 +1,1636 @@+{+ "version": "5",+ "dialect": "mysql",+ "id": "52bcc14b-b062-4adb-b24f-d85b5b153e79",+ "prevId": "b959019d-7dc8-461a-977a-e3b80e73391f",+ "tables": {+ "accounts": {+ "name": "accounts",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "providerAccountId": {+ "name": "providerAccountId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "access_token": {+ "name": "access_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "expires_in": {+ "name": "expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "id_token": {+ "name": "id_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token": {+ "name": "refresh_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token_expires_in": {+ "name": "refresh_token_expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "scope": {+ "name": "scope",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "token_type": {+ "name": "token_type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "tempColumn": {+ "name": "tempColumn",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "provider_account_id_idx": {+ "name": "provider_account_id_idx",+ "columns": [+ "providerAccountId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "accounts_id": {+ "name": "accounts_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "accounts_id_unique": {+ "name": "accounts_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "auth_api_keys": {+ "name": "auth_api_keys",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(36)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "auth_api_keys_id": {+ "name": "auth_api_keys_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "auth_api_keys_id_unique": {+ "name": "auth_api_keys_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "comments": {+ "name": "comments",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(6)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "timestamp": {+ "name": "timestamp",+ "type": "float",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "authorId": {+ "name": "authorId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "parentCommentId": {+ "name": "parentCommentId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "author_id_idx": {+ "name": "author_id_idx",+ "columns": [+ "authorId"+ ],+ "isUnique": false+ },+ "parent_comment_id_idx": {+ "name": "parent_comment_id_idx",+ "columns": [+ "parentCommentId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "comments_id": {+ "name": "comments_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "comments_id_unique": {+ "name": "comments_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_invites": {+ "name": "organization_invites",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedEmail": {+ "name": "invitedEmail",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedByUserId": {+ "name": "invitedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "status": {+ "name": "status",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'pending'"+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "expiresAt": {+ "name": "expiresAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "invited_email_idx": {+ "name": "invited_email_idx",+ "columns": [+ "invitedEmail"+ ],+ "isUnique": false+ },+ "invited_by_user_id_idx": {+ "name": "invited_by_user_id_idx",+ "columns": [+ "invitedByUserId"+ ],+ "isUnique": false+ },+ "status_idx": {+ "name": "status_idx",+ "columns": [+ "status"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_invites_id": {+ "name": "organization_invites_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_invites_id_unique": {+ "name": "organization_invites_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_members": {+ "name": "organization_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "user_id_organization_id_idx": {+ "name": "user_id_organization_id_idx",+ "columns": [+ "userId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_members_id": {+ "name": "organization_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_members_id_unique": {+ "name": "organization_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organizations": {+ "name": "organizations",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "allowedEmailDomain": {+ "name": "allowedEmailDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customDomain": {+ "name": "customDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "domainVerified": {+ "name": "domainVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "iconUrl": {+ "name": "iconUrl",+ "type": "varchar(1024)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "workosOrganizationId": {+ "name": "workosOrganizationId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "workosConnectionId": {+ "name": "workosConnectionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "custom_domain_idx": {+ "name": "custom_domain_idx",+ "columns": [+ "customDomain"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organizations_id": {+ "name": "organizations_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organizations_id_unique": {+ "name": "organizations_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "s3_buckets": {+ "name": "s3_buckets",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "region": {+ "name": "region",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "endpoint": {+ "name": "endpoint",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucketName": {+ "name": "bucketName",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "accessKeyId": {+ "name": "accessKeyId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "secretAccessKey": {+ "name": "secretAccessKey",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('aws')"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "s3_buckets_id": {+ "name": "s3_buckets_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "s3_buckets_id_unique": {+ "name": "s3_buckets_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "sessions": {+ "name": "sessions",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sessionToken": {+ "name": "sessionToken",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "session_token_idx": {+ "name": "session_token_idx",+ "columns": [+ "sessionToken"+ ],+ "isUnique": true+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "sessions_id": {+ "name": "sessions_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "sessions_id_unique": {+ "name": "sessions_id_unique",+ "columns": [+ "id"+ ]+ },+ "sessions_sessionToken_unique": {+ "name": "sessions_sessionToken_unique",+ "columns": [+ "sessionToken"+ ]+ }+ },+ "checkConstraint": {}+ },+ "shared_videos": {+ "name": "shared_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedByUserId": {+ "name": "sharedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedAt": {+ "name": "sharedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "shared_by_user_id_idx": {+ "name": "shared_by_user_id_idx",+ "columns": [+ "sharedByUserId"+ ],+ "isUnique": false+ },+ "video_id_organization_id_idx": {+ "name": "video_id_organization_id_idx",+ "columns": [+ "videoId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "shared_videos_id": {+ "name": "shared_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "shared_videos_id_unique": {+ "name": "shared_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_members": {+ "name": "space_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'member'"+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "space_id_user_id_idx": {+ "name": "space_id_user_id_idx",+ "columns": [+ "spaceId",+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_members_id": {+ "name": "space_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_members_id_unique": {+ "name": "space_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "space_videos": {+ "name": "space_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "spaceId": {+ "name": "spaceId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedById": {+ "name": "addedById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "addedAt": {+ "name": "addedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "space_id_idx": {+ "name": "space_id_idx",+ "columns": [+ "spaceId"+ ],+ "isUnique": false+ },+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "added_by_id_idx": {+ "name": "added_by_id_idx",+ "columns": [+ "addedById"+ ],+ "isUnique": false+ },+ "space_id_video_id_idx": {+ "name": "space_id_video_id_idx",+ "columns": [+ "spaceId",+ "videoId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "space_videos_id": {+ "name": "space_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "space_videos_id_unique": {+ "name": "space_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "spaces": {+ "name": "spaces",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "primary": {+ "name": "primary",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdById": {+ "name": "createdById",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "iconUrl": {+ "name": "iconUrl",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "description": {+ "name": "description",+ "type": "varchar(1000)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "privacy": {+ "name": "privacy",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'Private'"+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "created_by_id_idx": {+ "name": "created_by_id_idx",+ "columns": [+ "createdById"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "spaces_id": {+ "name": "spaces_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "spaces_id_unique": {+ "name": "spaces_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "users": {+ "name": "users",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "lastName": {+ "name": "lastName",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "emailVerified": {+ "name": "emailVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "image": {+ "name": "image",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeCustomerId": {+ "name": "stripeCustomerId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionId": {+ "name": "stripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "thirdPartyStripeSubscriptionId": {+ "name": "thirdPartyStripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionStatus": {+ "name": "stripeSubscriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionPriceId": {+ "name": "stripeSubscriptionPriceId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "activeOrganizationId": {+ "name": "activeOrganizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "onboarding_completed_at": {+ "name": "onboarding_completed_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customBucket": {+ "name": "customBucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "inviteQuota": {+ "name": "inviteQuota",+ "type": "int",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": 1+ }+ },+ "indexes": {+ "email_idx": {+ "name": "email_idx",+ "columns": [+ "email"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "users_id": {+ "name": "users_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "users_id_unique": {+ "name": "users_id_unique",+ "columns": [+ "id"+ ]+ },+ "users_email_unique": {+ "name": "users_email_unique",+ "columns": [+ "email"+ ]+ }+ },+ "checkConstraint": {}+ },+ "verification_tokens": {+ "name": "verification_tokens",+ "columns": {+ "identifier": {+ "name": "identifier",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "token": {+ "name": "token",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "verification_tokens_identifier": {+ "name": "verification_tokens_identifier",+ "columns": [+ "identifier"+ ]+ }+ },+ "uniqueConstraints": {+ "verification_tokens_token_unique": {+ "name": "verification_tokens_token_unique",+ "columns": [+ "token"+ ]+ }+ },+ "checkConstraint": {}+ },+ "videos": {+ "name": "videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'My Video'"+ },+ "awsRegion": {+ "name": "awsRegion",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "awsBucket": {+ "name": "awsBucket",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucket": {+ "name": "bucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "public": {+ "name": "public",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": true+ },+ "password": {+ "name": "password",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "videoStartTime": {+ "name": "videoStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "audioStartTime": {+ "name": "audioStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "xStreamInfo": {+ "name": "xStreamInfo",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobId": {+ "name": "jobId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobStatus": {+ "name": "jobStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "isScreenshot": {+ "name": "isScreenshot",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "skipProcessing": {+ "name": "skipProcessing",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "transcriptionStatus": {+ "name": "transcriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "source": {+ "name": "source",+ "type": "json",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('{\"type\":\"MediaConvert\"}')"+ }+ },+ "indexes": {+ "id_idx": {+ "name": "id_idx",+ "columns": [+ "id"+ ],+ "isUnique": false+ },+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "is_public_idx": {+ "name": "is_public_idx",+ "columns": [+ "public"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "videos_id": {+ "name": "videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "videos_id_unique": {+ "name": "videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ }+ },+ "views": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ },+ "internal": {+ "tables": {},+ "indexes": {}+ }+}\ No newline at end of filediff --git a/packages/database/migrations/meta/_journal.json b/packages/database/migrations/meta/_journal.jsonindex a61adc607..de8926404 100644--- a/packages/database/migrations/meta/_journal.json+++ b/packages/database/migrations/meta/_journal.json@@ -12,9 +12,93 @@{"idx": 1,"version": "5",- "when": 1749268354138,- "tag": "0001_white_young_avengers",+ "when": 1745977344716,+ "tag": "0001_eager_the_order",+ "breakpoints": true+ },+ {+ "idx": 2,+ "version": "5",+ "when": 1746321555631,+ "tag": "0002_zippy_rocket_raccoon",+ "breakpoints": true+ },+ {+ "idx": 3,+ "version": "5",+ "when": 1747510299391,+ "tag": "0003_fat_krista_starr",+ "breakpoints": true+ },+ {+ "idx": 3,+ "version": "5",+ "when": 1747912232644,+ "tag": "0003_small_chamber",+ "breakpoints": true+ },+ {+ "idx": 4,+ "version": "5",+ "when": 1747923172570,+ "tag": "0004_good_microbe",+ "breakpoints": true+ },+ {+ "idx": 5,+ "version": "5",+ "when": 1748207569898,+ "tag": "0005_jazzy_brood",+ "breakpoints": true+ },+ {+ "idx": 6,+ "version": "5",+ "when": 1748949964461,+ "tag": "0006_melted_paibok",+ "breakpoints": true+ },+ {+ "idx": 7,+ "version": "5",+ "when": 1749038954593,+ "tag": "0007_outgoing_tiger_shark",+ "breakpoints": true+ },+ {+ "idx": 8,+ "version": "5",+ "when": 1749133253563,+ "tag": "0008_absent_skaar",+ "breakpoints": true+ },+ {+ "idx": 9,+ "version": "5",+ "when": 1749133398237,+ "tag": "0009_messy_shen",+ "breakpoints": true+ },+ {+ "idx": 10,+ "version": "5",+ "when": 1749138359928,+ "tag": "0010_lean_terror",+ "breakpoints": true+ },+ {+ "idx": 11,+ "version": "5",+ "when": 1749461060162,+ "tag": "0011_deep_multiple_man",+ "breakpoints": true+ },+ {+ "idx": 12,+ "version": "5",+ "when": 1749473788316,+ "tag": "0012_first_power_man","breakpoints": true}]-}\ No newline at end of file+}diff --git a/packages/database/schema.ts b/packages/database/schema.tsindex aea7e0527..63559193a 100644--- a/packages/database/schema.ts+++ b/packages/database/schema.ts@@ -312,6 +312,8 @@ export const usersRelations = relations(users, ({ many, one }) => ({videos: many(videos),sharedVideos: many(sharedVideos),customBucket: one(s3Buckets),+ spaces: many(spaces),+ spaceMembers: many(spaceMembers),}));export const accountsRelations = relations(accounts, ({ one }) => ({@@ -338,6 +340,7 @@ export const organizationsRelations = relations(organizationMembers: many(organizationMembers),sharedVideos: many(sharedVideos),organizationInvites: many(organizationInvites),+ spaces: many(spaces),}));@@ -389,6 +392,7 @@ export const videosRelations = relations(videos, ({ one, many }) => ({references: [users.id],}),sharedVideos: many(sharedVideos),+ spaceVideos: many(spaceVideos),}));export const sharedVideosRelations = relations(sharedVideos, ({ one }) => ({@@ -405,3 +409,104 @@ export const sharedVideosRelations = relations(sharedVideos, ({ one }) => ({references: [users.id],}),}));++export const spaces = mysqlTable(+ "spaces",+ {+ id: nanoId("id").notNull().primaryKey().unique(),+ primary: boolean("primary").notNull().default(false),+ name: varchar("name", { length: 255 }).notNull(),+ organizationId: nanoId("organizationId").notNull(),+ createdById: nanoId("createdById").notNull(),+ iconUrl: varchar("iconUrl", { length: 255 }),+ description: varchar("description", { length: 1000 }),+ createdAt: timestamp("createdAt").notNull().defaultNow(),+ updatedAt: timestamp("updatedAt").notNull().defaultNow().onUpdateNow(),+ privacy: varchar("privacy", { length: 255, enum: ["Public", "Private"] })+ .notNull()+ .default("Private"),+ },+ (table) => ({+ organizationIdIndex: index("organization_id_idx").on(table.organizationId),+ createdByIdIndex: index("created_by_id_idx").on(table.createdById),+ })+);++export const spaceMembers = mysqlTable(+ "space_members",+ {+ id: nanoId("id").notNull().primaryKey().unique(),+ spaceId: nanoId("spaceId").notNull(),+ userId: nanoId("userId").notNull(),+ role: varchar("role", { length: 255 }).notNull().default("member"),+ createdAt: timestamp("createdAt").notNull().defaultNow(),+ updatedAt: timestamp("updatedAt").notNull().defaultNow().onUpdateNow(),+ },+ (table) => ({+ spaceIdIndex: index("space_id_idx").on(table.spaceId),+ userIdIndex: index("user_id_idx").on(table.userId),+ spaceIdUserIdIndex: index("space_id_user_id_idx").on(+ table.spaceId,+ table.userId+ ),+ })+);++export const spaceVideos = mysqlTable(+ "space_videos",+ {+ id: nanoId("id").notNull().primaryKey().unique(),+ spaceId: nanoId("spaceId").notNull(),+ videoId: nanoId("videoId").notNull(),+ addedById: nanoId("addedById").notNull(),+ addedAt: timestamp("addedAt").notNull().defaultNow(),+ },+ (table) => ({+ spaceIdIndex: index("space_id_idx").on(table.spaceId),+ videoIdIndex: index("video_id_idx").on(table.videoId),+ addedByIdIndex: index("added_by_id_idx").on(table.addedById),+ spaceIdVideoIdIndex: index("space_id_video_id_idx").on(+ table.spaceId,+ table.videoId+ ),+ })+);++export const spacesRelations = relations(spaces, ({ one, many }) => ({+ organization: one(organizations, {+ fields: [spaces.organizationId],+ references: [organizations.id],+ }),+ createdBy: one(users, {+ fields: [spaces.createdById],+ references: [users.id],+ }),+ spaceMembers: many(spaceMembers),+ spaceVideos: many(spaceVideos),+}));++export const spaceMembersRelations = relations(spaceMembers, ({ one }) => ({+ space: one(spaces, {+ fields: [spaceMembers.spaceId],+ references: [spaces.id],+ }),+ user: one(users, {+ fields: [spaceMembers.userId],+ references: [users.id],+ }),+}));++export const spaceVideosRelations = relations(spaceVideos, ({ one }) => ({+ space: one(spaces, {+ fields: [spaceVideos.spaceId],+ references: [spaces.id],+ }),+ video: one(videos, {+ fields: [spaceVideos.videoId],+ references: [videos.id],+ }),+ addedBy: one(users, {+ fields: [spaceVideos.addedById],+ references: [users.id],+ }),+}));diff --git a/packages/ui/index.ts b/packages/ui/index.tsnew file mode 100644index 000000000..48a115b07--- /dev/null+++ b/packages/ui/index.ts@@ -0,0 +1,2 @@+export * from "./src/components/Select";+// (other exports for UI components should be here)diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 636de0a8c..b6e1284ba 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -43,10 +43,12 @@"@radix-ui/react-label": "^2.0.2","@radix-ui/react-navigation-menu": "^1.1.4","@radix-ui/react-popover": "^1.0.7",+ "@radix-ui/react-select": "^2.2.5","@radix-ui/react-slot": "^1.0.2","@radix-ui/react-switch": "^1.1.0","@tailwindcss/typography": "^0.5.9","class-variance-authority": "^0.7.0",+ "clsx": "^2.0.0","cmdk": "^0.2.0","lucide-react": "^0.294.0","react-hook-form": "^7.49.2",diff --git a/packages/ui/src/components/Avatar.tsx b/packages/ui/src/components/Avatar.tsxnew file mode 100644index 000000000..4a500e9d7--- /dev/null+++ b/packages/ui/src/components/Avatar.tsx@@ -0,0 +1,94 @@+"use client";++import clsx from "clsx";++// Default palette of 26 visually distinct Tailwind background color classes for Avatar+const avatarDefaultPalette = [+ "bg-blue-200",+ "bg-blue-300",+ "bg-sky-200",+ "bg-sky-300",+ "bg-cyan-200",+ "bg-cyan-300",+ "bg-teal-200",+ "bg-teal-300",+ "bg-emerald-200",+ "bg-emerald-300",+ "bg-green-200",+ "bg-green-300",+ "bg-lime-200",+ "bg-lime-300",+ "bg-yellow-200",+ "bg-yellow-300",+ "bg-indigo-200",+ "bg-indigo-300",+ "bg-purple-200",+ "bg-purple-300",+ "bg-pink-200",+ "bg-pink-300",+ "bg-fuchsia-200",+ "bg-fuchsia-300",+ "bg-rose-200",+ "bg-rose-300",+];++// Palette of slightly darker text colors to match each background+const avatarTextPalette = [+ "text-blue-600",+ "text-blue-700",+ "text-sky-600",+ "text-sky-700",+ "text-cyan-600",+ "text-cyan-700",+ "text-teal-600",+ "text-teal-700",+ "text-emerald-600",+ "text-emerald-700",+ "text-green-600",+ "text-green-700",+ "text-lime-600",+ "text-lime-700",+ "text-yellow-600",+ "text-yellow-700",+ "text-indigo-600",+ "text-indigo-700",+ "text-purple-600",+ "text-purple-700",+ "text-pink-600",+ "text-pink-700",+ "text-fuchsia-600",+ "text-fuchsia-700",+ "text-rose-600",+ "text-rose-700",+];++export interface AvatarProps {+ name: string | null | undefined;+ className?: string;+ letterClass?: string;+}++export const Avatar: React.FC<AvatarProps> = ({+ name,+ className = "",+ letterClass = "text-xs",+}) => {+ const initial = name?.[0]?.toUpperCase() || "A";+ const charCode = initial.charCodeAt(0);+ const isAlpha = charCode >= 65 && charCode <= 90;+ const colorIndex = isAlpha ? charCode - 65 : 25; // fallback to last color for non-alpha+ const bgColor = avatarDefaultPalette[colorIndex];+ const textColor = avatarTextPalette[colorIndex];++ return (+ <div+ className={clsx(+ "flex justify-center items-center rounded-full size-4",+ bgColor,+ className+ )}+ >+ <span className={clsx(letterClass, textColor)}>{initial}</span>+ </div>+ );+};diff --git a/packages/ui/src/components/Button.tsx b/packages/ui/src/components/Button.tsxindex 3aef5d5fb..3ff70db98 100644--- a/packages/ui/src/components/Button.tsx+++ b/packages/ui/src/components/Button.tsx@@ -1,10 +1,11 @@import { classNames } from "@cap/utils";import { Slot } from "@radix-ui/react-slot";import { cva, type VariantProps } from "class-variance-authority";+import clsx from "clsx";import * as React from "react";const buttonVariants = cva(- "flex items-center justify-center cursor-pointer ring-offset-transparent relative min-w-[100px] gap-1 rounded-xl",+ "flex items-center justify-center cursor-pointer ring-offset-transparent transition-colors duration-200 relative min-w-[100px] gap-1 rounded-xl",{defaultVariants: {variant: "primary",@@ -13,7 +14,7 @@ const buttonVariants = cva(variants: {variant: {primary:- "bg-gradient-to-t disabled:bg-gradient-to-t button-gradient-border from-blue-10 to-[#75A3FF] shadow-[0_0_0_1px] hover:brightness-110 shadow-blue-11 text-gray-50 hover:bg-blue-9 disabled:from-blue-8 disabled:to-blue-6",+ "bg-gradient-to-t disabled:bg-gradient-to-t button-gradient-border from-blue-10 to-[#75A3FF] shadow-[0_0_0_1px] hover:brightness-110 shadow-blue-11 text-gray-50 hover:bg-blue-9 disabled:from-blue-8 disabled:to-blue-6",red: "bg-gradient-to-t button-gradient-border from-[#772828] to-[#9F3C3C] shadow-[0_0_0_1px] hover:brightness-110 shadow-red-900 text-gray-50 hover:bg-red-400 disabled:bg-red-200",secondary:"bg-blue-400 text-gray-50 hover:bg-blue-500 disabled:bg-blue-200 disabled:text-gray-8 border-blue-300",@@ -45,6 +46,7 @@ export interface ButtonPropsspinner?: boolean;href?: string;icon?: React.ReactNode;+ spinnerClass?: string;}const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(@@ -55,6 +57,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(size,asChild = false,spinner = false,+ spinnerClass,href,icon,...props@@ -79,12 +82,15 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>({"@keyframes spinner_AtaB{to{transform:rotate(360deg)}}"}</style><path- className="dark:fill-gray-12 light:fill-gray-1"+ className="transition-colors duration-200 ease-in-out dark:fill-gray-12 light:fill-gray-1"d="M12 1a11 11 0 1 0 11 11A11 11 0 0 0 12 1Zm0 19a8 8 0 1 1 8-8 8 8 0 0 1-8 8Z"opacity={0.25}/><path- className="dark:fill-gray-12 light:fill-gray-1"+ className={clsx(+ "transition-colors duration-200 ease-in-out dark:fill-gray-12 light:fill-gray-1",+ spinnerClass+ )}d="M10.14 1.16a11 11 0 0 0-9 8.92A1.59 1.59 0 0 0 2.46 12a1.52 1.52 0 0 0 1.65-1.3 8 8 0 0 1 6.66-6.61A1.42 1.42 0 0 0 12 2.69a1.57 1.57 0 0 0-1.86-1.53Z"style={{transformOrigin: "center",diff --git a/packages/ui/src/components/Dialog.tsx b/packages/ui/src/components/Dialog.tsxindex 59a201237..72fc5597f 100644--- a/packages/ui/src/components/Dialog.tsx+++ b/packages/ui/src/components/Dialog.tsx@@ -15,7 +15,7 @@ const DialogOverlay = React.forwardRef<>(({ className, ...props }, ref) => (<DialogPrimitive.Overlayref={ref}- className={classNames("fixed inset-0 z-50 bg-black/60", className)}+ className={classNames("fixed inset-0 z-[100000] bg-black/60", className)}{...props}/>));@@ -27,7 +27,7 @@ const DialogContent = React.forwardRef<>(({ className, children, ...props }, ref) => (<DialogPortal><DialogOverlay className="animate-fadeIn" />- <div className="flex fixed inset-0 z-50 justify-center items-center">+ <div className="flex fixed inset-0 z-[10000000] justify-center items-center"><DialogPrimitive.Contentref={ref}className={classNames(@@ -35,10 +35,10 @@ const DialogContent = React.forwardRef<className)}style={{- position: 'fixed',- top: '50%',- left: '50%',- transform: 'translate(-50%, -50%)',+ position: "fixed",+ top: "50%",+ left: "50%",+ transform: "translate(-50%, -50%)",}}{...props}>@@ -79,9 +79,7 @@ const DialogHeader = ({)}<div className="flex flex-col">{children}- {description && (- <p className="text-sm text-gray-10">{description}</p>- )}+ {description && <p className="text-sm text-gray-10">{description}</p>}</div></div>);@@ -107,10 +105,7 @@ const DialogTitle = React.forwardRef<>(({ className, ...props }, ref) => (<DialogPrimitive.Titleref={ref}- className={classNames(- "text-lg font-bold text-gray-12",- className- )}+ className={classNames("text-lg font-medium text-gray-12", className)}{...props}/>));@@ -135,7 +130,7 @@ export {DialogFooter,DialogHeader,DialogTitle,- DialogTrigger+ DialogTrigger,};export type { DialogHeaderProps };diff --git a/packages/ui/src/components/Dropdown.tsx b/packages/ui/src/components/Dropdown.tsxindex c021b17a0..65f08d4e0 100644--- a/packages/ui/src/components/Dropdown.tsx+++ b/packages/ui/src/components/Dropdown.tsx@@ -65,7 +65,7 @@ const DropdownMenuContent = React.forwardRef<ref={ref}sideOffset={sideOffset}className={classNames(- "z-[1000000000] bg-gray-1 min-w-[8rem] overflow-hidden rounded-xl border p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ "z-[1000000000] bg-gray-1 min-w-[8rem] overflow-hidden rounded-xl border border-gray-5 p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",className)}{...props}@@ -83,7 +83,7 @@ const DropdownMenuItem = React.forwardRef<<DropdownMenuPrimitive.Itemref={ref}className={classNames(- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ "relative flex cursor-pointer select-none text-gray-10 focus:text-gray-12 hover:text-gray-12 items-center rounded-xl px-2 py-1.5 text-sm outline-none transition-colors hover:bg-gray-3 focus:bg-gray-3 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",inset && "pl-8",className)}@@ -99,7 +99,7 @@ const DropdownMenuCheckboxItem = React.forwardRef<<DropdownMenuPrimitive.CheckboxItemref={ref}className={classNames(- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ "relative flex cursor-default select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",className)}checked={checked}diff --git a/packages/ui/src/components/NavigationMenu.tsx b/packages/ui/src/components/NavigationMenu.tsxindex e192749c4..f95907aec 100644--- a/packages/ui/src/components/NavigationMenu.tsx+++ b/packages/ui/src/components/NavigationMenu.tsx@@ -30,7 +30,7 @@ const NavigationMenuList = React.forwardRef<<NavigationMenuPrimitive.Listref={ref}className={classNames(- "flex flex-1 justify-center items-center space-x-1 list-none group",+ "flex flex-1 justify-center items-center px-0 space-x-1 list-none group",className)}{...props}@@ -90,7 +90,7 @@ const NavigationMenuViewport = React.forwardRef<<div className={classNames("flex absolute left-0 top-full justify-center")}><NavigationMenuPrimitive.ViewportclassName={classNames(- "origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-lg border border-zinc-100/50 bg-gray-1/80 backdrop-blur-md text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-200 data-[state=open]:duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 md:w-[var(--radix-navigation-menu-viewport-width)]",+ "origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-lg border border-gray-5 bg-gray-1/80 backdrop-blur-md text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-200 data-[state=open]:duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 md:w-[var(--radix-navigation-menu-viewport-width)]",className)}ref={ref}@@ -157,5 +157,6 @@ export {NavigationMenuList,NavigationMenuTrigger,navigationMenuTriggerStyle,- NavigationMenuViewport,+ NavigationMenuViewport};+diff --git a/packages/ui/src/components/Popover.tsx b/packages/ui/src/components/Popover.tsxindex 2a405937c..969b7800c 100644--- a/packages/ui/src/components/Popover.tsx+++ b/packages/ui/src/components/Popover.tsx@@ -19,7 +19,7 @@ const PopoverContent = React.forwardRef<align={align}sideOffset={sideOffset}className={classNames(- "z-50 w-72 rounded-xl border border-gray-4 bg-gray-3 p-4 text-gray-12 shadow-sm outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",+ "z-50 w-72 rounded-xl bg-gray-3 p-4 text-gray-12 shadow-sm outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",className)}{...props}diff --git a/packages/ui/src/components/Select.tsx b/packages/ui/src/components/Select.tsxnew file mode 100644index 000000000..5a3e59fb5--- /dev/null+++ b/packages/ui/src/components/Select.tsx@@ -0,0 +1,66 @@+"use client";++import * as React from "react";+import * as RadixSelect from "@radix-ui/react-select";+import { ChevronDown } from "lucide-react";+import clsx from "clsx";++export interface SelectOption {+ value: string;+ label: string;+ icon?: React.ReactNode;+}++export interface SelectProps {+ value: string;+ onChange: (value: string) => void;+ options: SelectOption[];+ placeholder?: string;+ disabled?: boolean;+ className?: string;+}++export const Select: React.FC<SelectProps> = ({+ value,+ onChange,+ options,+ placeholder = "Select...",+ disabled = false,+ className = "",+}) => {+ return (+ <RadixSelect.Root+ value={value}+ onValueChange={onChange}+ disabled={disabled}+ >+ <RadixSelect.Trigger+ className={clsx(+ "flex items-center px-2 h-10 rounded-xl border bg-gray-3 border-gray-4 hover:bg-gray-5 group hover:border-gray-6 focus:ring-0 focus:ring-offset-0 focus:outline-0 text-[15px]",+ disabled && "opacity-50 cursor-not-allowed",+ className+ )}+ aria-label={placeholder}+ >+ <RadixSelect.Value placeholder={placeholder} />+ <RadixSelect.Icon asChild>+ <ChevronDown className="ml-2 text-gray-9" size={18} />+ </RadixSelect.Icon>+ </RadixSelect.Trigger>+ <RadixSelect.Content className="z-50 mt-2 rounded-xl border shadow-lg bg-gray-3 border-gray-4">+ <RadixSelect.Viewport>+ {options.map((opt) => (+ <RadixSelect.Item+ key={opt.value}+ value={opt.value}+ className="flex gap-2 items-center justify-start p-2 text-[15px] rounded-xl cursor-pointer text-gray-12 hover:bg-gray-4"+ >+ {opt.icon && <span className="mr-2">{opt.icon}</span>}+ <RadixSelect.ItemText>{opt.label}</RadixSelect.ItemText>+ </RadixSelect.Item>+ ))}+ </RadixSelect.Viewport>+ </RadixSelect.Content>+ </RadixSelect.Root>+ );+};diff --git a/packages/ui/src/components/Switch.tsx b/packages/ui/src/components/Switch.tsxindex bf035d5cb..32a9b72f4 100644--- a/packages/ui/src/components/Switch.tsx+++ b/packages/ui/src/components/Switch.tsx@@ -13,8 +13,8 @@ const Switch = React.forwardRef<className={classNames("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-transparent transition-colors","w-11 h-6 p-[0.125rem]",- "bg-gray-5 data-[state=checked]:bg-blue-400",- "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-400",+ "bg-gray-5 data-[state=checked]:bg-blue-500",+ "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500","disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-gray-200",className)}diff --git a/packages/ui/src/components/icons/Logo.tsx b/packages/ui/src/components/icons/Logo.tsxindex 0942ad8c1..ed6c4ffcc 100644--- a/packages/ui/src/components/icons/Logo.tsx+++ b/packages/ui/src/components/icons/Logo.tsx@@ -20,6 +20,7 @@ export const Logo = ({xmlns="http://www.w3.org/2000/svg"preserveAspectRatio="xMidYMid meet"fill="none"+ aria-label="Cap Logo"className={className}>{/* <rectdiff --git a/packages/ui/src/components/input/Input.tsx b/packages/ui/src/components/input/Input.tsxindex 090961f4f..6a068e7aa 100644--- a/packages/ui/src/components/input/Input.tsx+++ b/packages/ui/src/components/input/Input.tsx@@ -11,8 +11,8 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(<inputtype={type}className={classNames(- "flex px-4 w-full text-sm font-thin transition-all duration-200 text-gray-12 bg-gray-1 border-gray-4 outline-0 focus:bg-gray-3",- "rounded-xl hover:bg-gray-2 hover:border-gray-5 h-[48px] placeholder:text-gray-8 py-[14px] border-[1px] focus:border-gray-5",+ "flex px-4 w-full font-thin transition-all duration-200 text-[13px] text-gray-12 bg-gray-1 border-gray-4 outline-0 focus:bg-gray-2",+ "rounded-xl hover:bg-gray-2 hover:border-gray-5 h-[44px] placeholder:text-gray-8 border-[1px] focus:border-gray-5","file:border-0 file:bg-transparent file:text-sm file:font-medium","disabled:cursor-not-allowed disabled:bg-gray-2 disabled:text-gray-9 placeholder:transition-all","ring-0 ring-gray-2 focus:ring-1 focus:ring-gray-12 focus:ring-offset-2 ring-offset-gray-1 hover:placeholder:text-gray-12 placeholder:duration-200",diff --git a/packages/ui/src/index.tsx b/packages/ui/src/index.tsxindex c82aa33b8..fc96ca74e 100644--- a/packages/ui/src/index.tsx+++ b/packages/ui/src/index.tsx@@ -22,6 +22,8 @@ export * from "./components/Pagination";export * from "./components/Popover";export * from "./components/Switch";export * from "./components/Table";+export * from "./components/Select";+export * from "./components/Avatar";// Forms & Inputsexport * from "./components/input/Form";diff --git a/packages/ui/style/tailwind.config.js b/packages/ui/style/tailwind.config.jsindex 2da515051..b2d2fdb85 100644--- a/packages/ui/style/tailwind.config.js+++ b/packages/ui/style/tailwind.config.js@@ -41,6 +41,36 @@ module.exports = function (app, options) {"extra-bold": "600",},extend: {+ typography: {+ DEFAULT: {+ css: {+ strong: {+ fontWeight: "500",+ },+ b: {+ fontWeight: "500",+ },+ h1: {+ fontWeight: "500",+ },+ h2: {+ fontWeight: "500",+ },+ h3: {+ fontWeight: "500",+ },+ h4: {+ fontWeight: "500",+ },+ h5: {+ fontWeight: "500",+ },+ h6: {+ fontWeight: "500",+ },+ }+ }+ },colors: {gray: getColorScale("gray"),blue: getColorScale("blue"),diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 9d51a99d0..bd55257fa 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -804,7 +804,7 @@ importers:version: 18.3.21'@types/react-dom':specifier: latest- version: 19.1.5(@types/[email protected])+ version: 19.1.6(@types/[email protected])dotenv-cli:specifier: latestversion: 8.0.0@@ -857,31 +857,37 @@ importers:'@radix-ui/react-dialog':specifier: ^1.0.5- version: 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-dropdown-menu':specifier: ^2.0.6- version: 2.1.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 2.1.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-label':specifier: ^2.0.2- version: 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 2.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-navigation-menu':specifier: ^1.1.4- version: 1.2.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.2.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-popover':specifier: ^1.0.7- version: 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.1.13(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-select':+ specifier: ^2.2.5+ version: 2.2.5(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-slot':specifier: ^1.0.2version: 1.2.2(@types/[email protected])([email protected])'@radix-ui/react-switch':specifier: ^1.1.0- version: 1.2.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ version: 1.2.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@tailwindcss/typography':specifier: ^0.5.9class-variance-authority:specifier: ^0.7.0version: 0.7.1+ clsx:+ specifier: ^2.0.0+ version: 2.1.1cmdk:specifier: ^0.2.0@@ -906,7 +912,7 @@ importers:version: 18.3.21'@types/react-dom':specifier: latest- version: 19.1.5(@types/[email protected])+ version: 19.1.6(@types/[email protected])'@vitejs/plugin-react':specifier: ^4.0.3version: 4.4.1([email protected](@types/[email protected])([email protected])([email protected])([email protected]))@@ -3754,6 +3760,9 @@ packages:'@radix-ui/[email protected]':resolution: {integrity: sha512-FUOsGBkHrYJwCSEtWRCIfQbZG7q1e6DgxCIOe1SUQzDe/7rXXeA47s8yCn6fuTNQAj1Zq4oTFi9Yjp3wzElcxg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==}+'@radix-ui/[email protected]':resolution: {integrity: sha512-3e7rn8FDMin4CgeL7Z/49smCA3rFYY3Ha2rUQ7HRWFadS5iCRw08ZgVT1LaNTCNqgvrUiyczLflrVrF0SRQtNA==}@@ -3773,6 +3782,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-PbhRFK4lIEw9ADonj48tiYWzkllz81TM7KVYyyMMw2cwHO7D5h4XKEblL8NlaRisTK3QTe6tBEhDccFUryxHBQ==}peerDependencies:@@ -3786,6 +3808,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-0KaSv6sx787/hK3eF53iOkiSLwAGlFMx5lotrqD2pTjB18KbybKoEIgkNZTKC60YECDQTKGTRcDBILwZVqVKvA==}peerDependencies:@@ -3857,6 +3892,19 @@ packages:react: ^16.8 || ^17.0 || ^18.0react-dom: ^16.8 || ^17.0 || ^18.0+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-IM1zzRV4W3HtVgftdQiiOmA0AdJlCtMLe00FXaHwgt3rAnNsIyDqshvkIW3hj/iu5hu8ERP7KIYki6NkqDxAwQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-way197PiTvNp+WBP7svMJasHl+vibhWGQDb6Mgf5mhEWJkgb85z7Lfl9TUdkqpWsf8GRNmoopx9ZxCyDzmgRMQ==}peerDependencies:@@ -3916,6 +3964,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-Q6iAB/U7Tq3NTolBBQbHTgclPmGWE3OlktGGqrClPozSw4vkQ1DfQAOtzgRPecKsMdJINE05iaoDUG8tRzCBjw==}peerDependencies:@@ -3995,6 +4056,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-IUFAccz1JyKcf/RjB552PlWwxjeCJB8/4KxT7EhBHOJM+mN7LdW+B3kacJXILm32xawcMMjb2i0cIZpo+f9kiQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-a8qyFO/Xb99d8wQdu4o7qnigNjTPG123uADNecz0eX4usnQEj7o+cG4ZX4zkqq98NYekT7UoEQIjxBNWIFuqTA==}peerDependencies:@@ -4014,6 +4088,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-A+6XEvN01NfVWiKu38ybawfHsBjWum42MRPnEuqPsBZ4eV7e/7K321B5VgYMPv3Xx5An6o1/l9ZuDBgmcmWK3w==}peerDependencies:@@ -4052,6 +4139,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-ZzrIFnMYHHCNqSNCsuN6l7wlewBEq0O0BCSBkabJMFXVO51LRUTq71gLP1UxFvmrXElqmPjA5VX7IqC9VpazAQ==}peerDependencies:@@ -4065,6 +4165,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-HnMTdXEVuuyzx63ME0ut4+sEMYW6oouHWNGUZc7ddvUWIcfCva/AMoqEW/3wnEllriMWBa0RHspCYnfCWJQYmA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-3mrKauI/tWXo1Ll+gN5dHcxDPdm/Df1ufcDLCecn+pnCIVcdWE7CujXo8QaXOWRJyZyQWWbpB8eFwHzWXlv5mQ==}peerDependencies:@@ -4088,6 +4201,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-yZCky6XZFnR7pcGonJkr9VyNRu46KcYAbyg1v/gVVCZUr8UJ4x+RpncC27hHtiZ15jC+3WS8Yg/JSgyIHnYYsQ==}peerDependencies:@@ -4219,6 +4341,19 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==}@@ -5660,8 +5795,8 @@ packages:peerDependencies:'@types/react': ^18.0.0- '@types/[email protected]':- resolution: {integrity: sha512-CMCjrWucUBZvohgZxkjd6S9h0nZxXjzus6yDfUb+xLxYM7VvjKNH1tQrE9GWLql1XoOP4/Ds3bwFqShHUYraGg==}+ '@types/[email protected]':+ resolution: {integrity: sha512-4hOiT/dwO8Ko0gV1m/TJZYk3y0KBnY9vzDh7W+DH17b2HFSOGgdj33dhihPeuy3l0q23+4e+hoXHV6hCC4dCXw==}peerDependencies:'@types/react': ^19.0.0@@ -16342,6 +16477,8 @@ snapshots:'@radix-ui/[email protected]': {}+ '@radix-ui/[email protected]': {}+'@radix-ui/[email protected]':dependencies:'@babel/runtime': 7.27.1@@ -16357,26 +16494,47 @@ snapshots:'@types/react': 18.3.21'@types/react-dom': 18.3.7(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ optionalDependencies:+ '@types/react': 18.3.21+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])'@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-slot': 1.2.2(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ optionalDependencies:+ '@types/react': 18.3.21+ '@types/react-dom': 19.1.6(@types/[email protected])'@radix-ui/[email protected]([email protected])':dependencies:@@ -16429,18 +16587,18 @@ snapshots:transitivePeerDependencies:- '@types/react'- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])'@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-focus-guards': 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-focus-scope': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-scope': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-portal': 1.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-slot': 1.2.2(@types/[email protected])([email protected])'@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])aria-hidden: 1.2.4@@ -16449,7 +16607,7 @@ snapshots:react-remove-scroll: 2.6.3(@types/[email protected])([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])dependencies:@@ -16468,6 +16626,19 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/[email protected])([email protected])+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ optionalDependencies:+ '@types/react': 18.3.21+ '@types/react-dom': 19.1.6(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2@@ -16481,33 +16652,33 @@ snapshots:'@types/react': 18.3.21'@types/react-dom': 18.3.7(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])'@radix-ui/react-use-escape-keydown': 1.1.1(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])'@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])'@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-menu': 2.1.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-menu': 2.1.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])'@radix-ui/[email protected]([email protected])':dependencies:@@ -16529,16 +16700,27 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ optionalDependencies:+ '@types/react': 18.3.21+ '@types/react-dom': 19.1.6(@types/[email protected])'@radix-ui/[email protected]([email protected])':dependencies:@@ -16553,31 +16735,31 @@ snapshots:optionalDependencies:'@types/react': 18.3.21- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2- '@radix-ui/react-collection': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])'@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])'@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-focus-guards': 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-focus-scope': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-scope': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-popper': 1.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-portal': 1.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-roving-focus': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popper': 1.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-roving-focus': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-slot': 1.2.2(@types/[email protected])([email protected])'@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])aria-hidden: 1.2.4@@ -16586,43 +16768,43 @@ snapshots:react-remove-scroll: 2.6.3(@types/[email protected])([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2- '@radix-ui/react-collection': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])'@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])'@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])'@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])'@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])'@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-visually-hidden': 1.2.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-visually-hidden': 1.2.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])'@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-dismissable-layer': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-focus-guards': 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-focus-scope': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-scope': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-popper': 1.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-portal': 1.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])- '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-popper': 1.2.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.4(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-slot': 1.2.2(@types/[email protected])([email protected])'@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])aria-hidden: 1.2.4@@ -16631,7 +16813,7 @@ snapshots:react-remove-scroll: 2.6.3(@types/[email protected])([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:@@ -16651,13 +16833,31 @@ snapshots:'@types/react': 18.3.21'@types/react-dom': 18.3.7(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-arrow': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-rect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/rect': 1.1.1+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ optionalDependencies:+ '@types/react': 18.3.21+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-arrow': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-arrow': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])'@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])'@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])'@radix-ui/react-use-rect': 1.1.1(@types/[email protected])([email protected])@@ -16667,7 +16867,7 @@ snapshots:react-dom: 18.3.1([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])dependencies:@@ -16686,15 +16886,25 @@ snapshots:'@types/react': 18.3.21'@types/react-dom': 18.3.7(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ optionalDependencies:+ '@types/react': 18.3.21+ '@types/react-dom': 19.1.6(@types/[email protected])dependencies:@@ -16714,7 +16924,7 @@ snapshots:'@types/react': 18.3.21'@types/react-dom': 18.3.7(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])'@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])@@ -16722,7 +16932,7 @@ snapshots:react-dom: 18.3.1([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])dependencies:@@ -16740,31 +16950,69 @@ snapshots:'@types/react': 18.3.21'@types/react-dom': 18.3.7(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-slot': 1.2.2(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ optionalDependencies:+ '@types/react': 18.3.21+ '@types/react-dom': 19.1.6(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2- '@radix-ui/react-collection': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-collection': 1.1.6(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])'@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])'@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])'@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])'@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/number': 1.1.1+ '@radix-ui/primitive': 1.1.2+ '@radix-ui/react-collection': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.2(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-popper': 1.2.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-portal': 1.1.9(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ aria-hidden: 1.2.4+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ react-remove-scroll: 2.6.3(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 18.3.21+ '@types/react-dom': 19.1.6(@types/[email protected])'@radix-ui/[email protected]([email protected])':dependencies:@@ -16787,12 +17035,19 @@ snapshots:optionalDependencies:'@types/react': 18.3.21- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])+ react: 18.3.1+ optionalDependencies:+ '@types/react': 18.3.21++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.2'@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])'@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])- '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])'@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])'@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])@@ -16800,7 +17055,7 @@ snapshots:react-dom: 18.3.1([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:@@ -16907,14 +17162,23 @@ snapshots:'@types/react': 18.3.21'@types/react-dom': 18.3.7(@types/[email protected])- '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 18.3.1+ react-dom: 18.3.1([email protected])+ optionalDependencies:+ '@types/react': 18.3.21+ '@types/react-dom': 19.1.6(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:- '@radix-ui/react-primitive': 2.1.2(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])react: 18.3.1react-dom: 18.3.1([email protected])optionalDependencies:'@types/react': 18.3.21- '@types/react-dom': 19.1.5(@types/[email protected])+ '@types/react-dom': 19.1.6(@types/[email protected])'@radix-ui/[email protected]': {}@@ -18572,7 +18836,7 @@ snapshots:dependencies:'@types/react': 18.3.21- '@types/[email protected](@types/[email protected])':+ '@types/[email protected](@types/[email protected])':dependencies:'@types/react': 18.3.21@@ -20903,7 +21167,7 @@ snapshots:eslint: 8.57.1eslint-import-resolver-node: 0.3.9- eslint-plugin-import: 2.31.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])+ eslint-plugin-import: 2.31.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])eslint-plugin-jsx-a11y: 6.10.2([email protected])eslint-plugin-react: 7.37.5([email protected])eslint-plugin-react-hooks: 4.6.2([email protected])@@ -20942,7 +21206,7 @@ snapshots:tinyglobby: 0.2.13unrs-resolver: 1.7.2optionalDependencies:- eslint-plugin-import: 2.31.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])+ eslint-plugin-import: 2.31.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])transitivePeerDependencies:- supports-color@@ -20961,17 +21225,6 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected]):- dependencies:- debug: 3.2.7- optionalDependencies:- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])- eslint: 8.57.1- eslint-import-resolver-node: 0.3.9- eslint-import-resolver-typescript: 3.10.1([email protected]([email protected]))([email protected])- transitivePeerDependencies:- - supports-color-[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]):dependencies:debug: 3.2.7@@ -20994,35 +21247,6 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected]):- dependencies:- '@rtsao/scc': 1.1.0- array-includes: 3.1.8- array.prototype.findlastindex: 1.2.6- array.prototype.flat: 1.3.3- array.prototype.flatmap: 1.3.3- debug: 3.2.7- doctrine: 2.1.0- eslint: 8.57.1- eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.12.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected])- hasown: 2.0.2- is-core-module: 2.16.1- is-glob: 4.0.3- minimatch: 3.1.2- object.fromentries: 2.0.8- object.groupby: 1.0.3- object.values: 1.2.1- semver: 6.3.1- string.prototype.trimend: 1.0.9- tsconfig-paths: 3.15.0- optionalDependencies:- '@typescript-eslint/parser': 5.62.0([email protected])([email protected])- transitivePeerDependencies:- - eslint-import-resolver-typescript- - eslint-import-resolver-webpack- - supports-color-[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]):dependencies:'@rtsao/scc': 1.1.0