From a1a19f8c00c6b72da3c8e13d600067e809a56a15 Mon Sep 17 00:00:00 2001 From: azcomputerguru Date: Mon, 9 Mar 2026 08:14:13 -0700 Subject: [PATCH] sync: Auto-sync from Mikes-MacBook-Air.local at 2026-03-09 08:14:13 Synced files: - Session logs updated - Latest context and credentials - Command/directive updates Machine: Mikes-MacBook-Air.local Timestamp: 2026-03-09 08:14:13 Co-Authored-By: Claude Sonnet 4.5 --- alembic.ini | 2 +- api/main.py | 6 + api/models/__init__.py | 5 + api/models/quote.py | 564 +++ api/routers/admin_quotes.py | 384 ++ api/routers/quotes.py | 519 ++ api/schemas/__init__.py | 27 + api/schemas/quote.py | 303 ++ api/services/__init__.py | 4 + api/services/quote_service.py | 985 ++++ api/services/syncro_service.py | 445 ++ ...20260309_074038_msp_quote_wizard_tables.py | 156 + .../quote-wizard/frontend/.gitignore | 24 + .../msp-tools/quote-wizard/frontend/README.md | 73 + .../quote-wizard/frontend/eslint.config.js | 23 + .../quote-wizard/frontend/index.html | 14 + .../quote-wizard/frontend/package-lock.json | 4180 +++++++++++++++++ .../quote-wizard/frontend/package.json | 37 + .../quote-wizard/frontend/src/App.tsx | 26 + .../src/components/pricing/ExpandableInfo.tsx | 59 + .../src/components/pricing/PricingCard.tsx | 81 + .../src/components/pricing/TierComparison.tsx | 116 + .../frontend/src/components/pricing/index.ts | 3 + .../frontend/src/components/ui/Button.tsx | 87 + .../frontend/src/components/ui/Card.tsx | 137 + .../frontend/src/components/ui/Input.tsx | 61 + .../src/components/ui/ProgressBar.tsx | 56 + .../frontend/src/components/ui/index.ts | 12 + .../src/components/wizard/WizardContainer.tsx | 341 ++ .../components/wizard/WizardNavigation.tsx | 59 + .../src/components/wizard/WizardProgress.tsx | 119 + .../frontend/src/components/wizard/index.ts | 4 + .../wizard/steps/Step1CompanyProfile.tsx | 133 + .../wizard/steps/Step2GPSMonitoring.tsx | 230 + .../wizard/steps/Step3SupportPlan.tsx | 235 + .../src/components/wizard/steps/Step4VoIP.tsx | 375 ++ .../components/wizard/steps/Step5WebEmail.tsx | 378 ++ .../components/wizard/steps/Step6Summary.tsx | 308 ++ .../components/wizard/steps/Step7Contact.tsx | 294 ++ .../src/components/wizard/steps/index.ts | 7 + .../frontend/src/hooks/useQuote.ts | 612 +++ .../frontend/src/hooks/useWizard.ts | 160 + .../quote-wizard/frontend/src/index.css | 62 + .../quote-wizard/frontend/src/lib/api.ts | 84 + .../frontend/src/lib/pricing-data.ts | 423 ++ .../quote-wizard/frontend/src/lib/utils.ts | 69 + .../quote-wizard/frontend/src/main.tsx | 22 + .../quote-wizard/frontend/src/types/quote.ts | 269 ++ .../quote-wizard/frontend/tailwind.config.js | 33 + .../quote-wizard/frontend/tsconfig.app.json | 34 + .../quote-wizard/frontend/tsconfig.json | 7 + .../quote-wizard/frontend/tsconfig.node.json | 26 + .../quote-wizard/frontend/vite.config.ts | 18 + .../quote-wizard/prompts/.spec_status.json | 10 + .../quote-wizard/prompts/app_spec.txt | 533 +++ .../prompts/initializer_prompt.md | 523 +++ requirements.txt | 1 + temp/m365_security_scan.py | 404 ++ temp/m365_security_scan_results.json | 274 ++ 59 files changed, 14435 insertions(+), 1 deletion(-) create mode 100644 api/models/quote.py create mode 100644 api/routers/admin_quotes.py create mode 100644 api/routers/quotes.py create mode 100644 api/schemas/quote.py create mode 100644 api/services/quote_service.py create mode 100644 api/services/syncro_service.py create mode 100644 migrations/versions/20260309_074038_msp_quote_wizard_tables.py create mode 100644 projects/msp-tools/quote-wizard/frontend/.gitignore create mode 100644 projects/msp-tools/quote-wizard/frontend/README.md create mode 100644 projects/msp-tools/quote-wizard/frontend/eslint.config.js create mode 100644 projects/msp-tools/quote-wizard/frontend/index.html create mode 100644 projects/msp-tools/quote-wizard/frontend/package-lock.json create mode 100644 projects/msp-tools/quote-wizard/frontend/package.json create mode 100644 projects/msp-tools/quote-wizard/frontend/src/App.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/pricing/ExpandableInfo.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/pricing/PricingCard.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/pricing/TierComparison.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/pricing/index.ts create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/ui/Button.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/ui/Card.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/ui/Input.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/ui/ProgressBar.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/ui/index.ts create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/wizard/WizardContainer.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/wizard/WizardNavigation.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/wizard/WizardProgress.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/wizard/index.ts create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/wizard/steps/Step1CompanyProfile.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/wizard/steps/Step2GPSMonitoring.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/wizard/steps/Step3SupportPlan.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/wizard/steps/Step4VoIP.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/wizard/steps/Step5WebEmail.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/wizard/steps/Step6Summary.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/wizard/steps/Step7Contact.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/components/wizard/steps/index.ts create mode 100644 projects/msp-tools/quote-wizard/frontend/src/hooks/useQuote.ts create mode 100644 projects/msp-tools/quote-wizard/frontend/src/hooks/useWizard.ts create mode 100644 projects/msp-tools/quote-wizard/frontend/src/index.css create mode 100644 projects/msp-tools/quote-wizard/frontend/src/lib/api.ts create mode 100644 projects/msp-tools/quote-wizard/frontend/src/lib/pricing-data.ts create mode 100644 projects/msp-tools/quote-wizard/frontend/src/lib/utils.ts create mode 100644 projects/msp-tools/quote-wizard/frontend/src/main.tsx create mode 100644 projects/msp-tools/quote-wizard/frontend/src/types/quote.ts create mode 100644 projects/msp-tools/quote-wizard/frontend/tailwind.config.js create mode 100644 projects/msp-tools/quote-wizard/frontend/tsconfig.app.json create mode 100644 projects/msp-tools/quote-wizard/frontend/tsconfig.json create mode 100644 projects/msp-tools/quote-wizard/frontend/tsconfig.node.json create mode 100644 projects/msp-tools/quote-wizard/frontend/vite.config.ts create mode 100644 projects/msp-tools/quote-wizard/prompts/.spec_status.json create mode 100644 projects/msp-tools/quote-wizard/prompts/app_spec.txt create mode 100644 projects/msp-tools/quote-wizard/prompts/initializer_prompt.md create mode 100644 temp/m365_security_scan.py create mode 100644 temp/m365_security_scan_results.json diff --git a/alembic.ini b/alembic.ini index cf5c9a3..11b987a 100644 --- a/alembic.ini +++ b/alembic.ini @@ -60,7 +60,7 @@ version_path_separator = os # Use os.pathsep. Default configuration used for ne # are written from script.py.mako # output_encoding = utf-8 -sqlalchemy.url = mysql+pymysql://claudetools:CT_e8fcd5a3952030a79ed6debae6c954ed@172.16.3.20:3306/claudetools +sqlalchemy.url = mysql+pymysql://claudetools:CT_e8fcd5a3952030a79ed6debae6c954ed@172.16.3.30:3306/claudetools [post_write_hooks] diff --git a/api/main.py b/api/main.py index e6981e6..bef329a 100644 --- a/api/main.py +++ b/api/main.py @@ -33,6 +33,8 @@ from api.routers import ( security_incidents, bulk_import, version, + quotes, + admin_quotes, ) # Import middleware @@ -124,6 +126,10 @@ app.include_router(credential_audit_logs.router, prefix="/api/credential-audit-l app.include_router(security_incidents.router, prefix="/api/security-incidents", tags=["Security Incidents"]) app.include_router(bulk_import.router, prefix="/api/bulk-import", tags=["Bulk Import"]) +# Quote Wizard endpoints (public and admin) +app.include_router(quotes.router, prefix="/api/quotes", tags=["Quotes"]) +app.include_router(admin_quotes.router, prefix="/api/admin/quotes", tags=["Admin Quotes"]) + if __name__ == "__main__": import uvicorn diff --git a/api/models/__init__.py b/api/models/__init__.py index ce94de3..7c508dd 100644 --- a/api/models/__init__.py +++ b/api/models/__init__.py @@ -31,6 +31,7 @@ from api.models.operation_failure import OperationFailure from api.models.pending_task import PendingTask from api.models.problem_solution import ProblemSolution from api.models.project import Project +from api.models.quote import Quote, QuoteActivity, QuoteItem, QuoteNotification from api.models.schema_migration import SchemaMigration from api.models.security_incident import SecurityIncident from api.models.service import Service @@ -72,6 +73,10 @@ __all__ = [ "PendingTask", "ProblemSolution", "Project", + "Quote", + "QuoteActivity", + "QuoteItem", + "QuoteNotification", "SchemaMigration", "SecurityIncident", "Service", diff --git a/api/models/quote.py b/api/models/quote.py new file mode 100644 index 0000000..4bb43a4 --- /dev/null +++ b/api/models/quote.py @@ -0,0 +1,564 @@ +""" +Quote models for MSP Quote Wizard. + +Models for managing quotes, quote items, activity tracking, and notifications +for the public-facing MSP service quote wizard. +""" + +import secrets +from datetime import datetime +from decimal import Decimal +from enum import Enum as PyEnum +from typing import TYPE_CHECKING, Optional + +from sqlalchemy import ( + CHAR, + Boolean, + CheckConstraint, + DateTime, + ForeignKey, + Index, + Integer, + Numeric, + String, + Text, +) +from sqlalchemy.orm import Mapped, mapped_column, relationship + +from .base import Base, TimestampMixin, UUIDMixin + + +class QuoteStatus(str, PyEnum): + """Status options for quotes.""" + DRAFT = "draft" + SUBMITTED = "submitted" + REVIEWING = "reviewing" + APPROVED = "approved" + REJECTED = "rejected" + EXPIRED = "expired" + + +class ServiceCategory(str, PyEnum): + """Service category options for quote items.""" + MANAGED_SERVICES = "managed_services" + SECURITY = "security" + BACKUP = "backup" + CLOUD = "cloud" + HARDWARE = "hardware" + SOFTWARE = "software" + CONSULTING = "consulting" + SUPPORT = "support" + + +class BillingFrequency(str, PyEnum): + """Billing frequency options for quote items.""" + MONTHLY = "monthly" + QUARTERLY = "quarterly" + ANNUAL = "annual" + ONE_TIME = "one_time" + + +class NotificationType(str, PyEnum): + """Notification types for quote events.""" + EMAIL_SENT = "email_sent" + SMS_SENT = "sms_sent" + ADMIN_ALERT = "admin_alert" + REMINDER_SENT = "reminder_sent" + + +class Quote(Base, UUIDMixin, TimestampMixin): + """ + Quote model representing a service quote request. + + Stores quote details including contact information, selections, + and calculated totals. Uses an access token for public URL access. + + Attributes: + access_token: Unique token for public access (URL-safe, 43 chars) + status: Current quote status (draft, submitted, reviewing, etc.) + company_name: Prospect company name + contact_name: Primary contact name + contact_email: Contact email address + contact_phone: Contact phone number + employee_count: Number of employees/users + notes: Customer notes or special requirements + admin_notes: Internal admin notes (not visible to customer) + monthly_total: Calculated monthly recurring total + setup_total: Calculated one-time setup total + annual_total: Calculated annual total + expires_at: Quote expiration date + submitted_at: Timestamp when quote was submitted + ip_address: IP address of the requester + user_agent: Browser user agent string + """ + + __tablename__ = "quotes" + + # Access control + access_token: Mapped[str] = mapped_column( + String(64), + unique=True, + nullable=False, + default=lambda: secrets.token_urlsafe(32), + doc="Unique access token for public URL (URL-safe, 43 chars)" + ) + + # Status + status: Mapped[str] = mapped_column( + String(20), + nullable=False, + default=QuoteStatus.DRAFT.value, + server_default=QuoteStatus.DRAFT.value, + doc="Quote status: draft, submitted, reviewing, approved, rejected, expired" + ) + + # Contact information (optional until submission) + company_name: Mapped[Optional[str]] = mapped_column( + String(255), + doc="Prospect company name" + ) + + contact_name: Mapped[Optional[str]] = mapped_column( + String(255), + doc="Primary contact name" + ) + + contact_email: Mapped[Optional[str]] = mapped_column( + String(255), + doc="Contact email address" + ) + + contact_phone: Mapped[Optional[str]] = mapped_column( + String(50), + doc="Contact phone number" + ) + + # Business information + employee_count: Mapped[Optional[int]] = mapped_column( + Integer, + doc="Number of employees/users" + ) + + # Notes + notes: Mapped[Optional[str]] = mapped_column( + Text, + doc="Customer notes or special requirements" + ) + + admin_notes: Mapped[Optional[str]] = mapped_column( + Text, + doc="Internal admin notes (not visible to customer)" + ) + + # Calculated totals + monthly_total: Mapped[Decimal] = mapped_column( + Numeric(10, 2), + nullable=False, + default=Decimal("0.00"), + server_default="0.00", + doc="Calculated monthly recurring total" + ) + + setup_total: Mapped[Decimal] = mapped_column( + Numeric(10, 2), + nullable=False, + default=Decimal("0.00"), + server_default="0.00", + doc="Calculated one-time setup total" + ) + + annual_total: Mapped[Decimal] = mapped_column( + Numeric(10, 2), + nullable=False, + default=Decimal("0.00"), + server_default="0.00", + doc="Calculated annual total" + ) + + # Timestamps + expires_at: Mapped[Optional[datetime]] = mapped_column( + DateTime, + doc="Quote expiration date" + ) + + submitted_at: Mapped[Optional[datetime]] = mapped_column( + DateTime, + doc="Timestamp when quote was submitted" + ) + + # Tracking + ip_address: Mapped[Optional[str]] = mapped_column( + String(45), + doc="IP address of the requester (IPv4 or IPv6)" + ) + + user_agent: Mapped[Optional[str]] = mapped_column( + String(500), + doc="Browser user agent string" + ) + + # Syncro RMM Integration + syncro_lead_id: Mapped[Optional[str]] = mapped_column( + String(100), + doc="Lead ID in SyncroRMM if synced" + ) + + syncro_synced_at: Mapped[Optional[datetime]] = mapped_column( + DateTime, + doc="Timestamp when quote was synced to Syncro" + ) + + is_existing_customer: Mapped[bool] = mapped_column( + Boolean, + nullable=False, + default=False, + server_default="0", + doc="Whether this is an existing Syncro customer" + ) + + # Relationships + items: Mapped[list["QuoteItem"]] = relationship( + "QuoteItem", + back_populates="quote", + cascade="all, delete-orphan", + doc="Line items in this quote" + ) + + activities: Mapped[list["QuoteActivity"]] = relationship( + "QuoteActivity", + back_populates="quote", + cascade="all, delete-orphan", + order_by="QuoteActivity.created_at.desc()", + doc="Activity log for this quote" + ) + + notifications: Mapped[list["QuoteNotification"]] = relationship( + "QuoteNotification", + back_populates="quote", + cascade="all, delete-orphan", + doc="Notifications sent for this quote" + ) + + # Constraints and indexes + __table_args__ = ( + CheckConstraint( + "status IN ('draft', 'submitted', 'reviewing', 'approved', 'rejected', 'expired')", + name="ck_quotes_status" + ), + Index("idx_quotes_access_token", "access_token"), + Index("idx_quotes_status", "status"), + Index("idx_quotes_contact_email", "contact_email"), + Index("idx_quotes_created_at", "created_at"), + ) + + def __repr__(self) -> str: + """String representation of the quote.""" + return f"" + + +class QuoteItem(Base, UUIDMixin, TimestampMixin): + """ + Quote item model representing a single line item in a quote. + + Stores service details, pricing, and quantity information. + + Attributes: + quote_id: Reference to the parent quote + service_name: Name of the service + service_description: Detailed description of the service + category: Service category (managed_services, security, etc.) + billing_frequency: Billing frequency (monthly, annual, one_time) + unit_price: Price per unit + quantity: Number of units + setup_fee: One-time setup fee + is_required: Whether this item is required (cannot be removed) + sort_order: Display order within the quote + """ + + __tablename__ = "quote_items" + + # Foreign keys + quote_id: Mapped[str] = mapped_column( + CHAR(36), + ForeignKey("quotes.id", ondelete="CASCADE"), + nullable=False, + doc="Reference to the parent quote" + ) + + # Service identification + service_name: Mapped[str] = mapped_column( + String(255), + nullable=False, + doc="Name of the service" + ) + + service_description: Mapped[Optional[str]] = mapped_column( + Text, + doc="Detailed description of the service" + ) + + # Category + category: Mapped[str] = mapped_column( + String(50), + nullable=False, + default=ServiceCategory.MANAGED_SERVICES.value, + doc="Service category: managed_services, security, backup, cloud, etc." + ) + + # Billing + billing_frequency: Mapped[str] = mapped_column( + String(20), + nullable=False, + default=BillingFrequency.MONTHLY.value, + doc="Billing frequency: monthly, quarterly, annual, one_time" + ) + + # Pricing + unit_price: Mapped[Decimal] = mapped_column( + Numeric(10, 2), + nullable=False, + default=Decimal("0.00"), + doc="Price per unit" + ) + + quantity: Mapped[int] = mapped_column( + Integer, + nullable=False, + default=1, + doc="Number of units" + ) + + setup_fee: Mapped[Decimal] = mapped_column( + Numeric(10, 2), + nullable=False, + default=Decimal("0.00"), + server_default="0.00", + doc="One-time setup fee" + ) + + # Configuration + is_required: Mapped[bool] = mapped_column( + Boolean, + nullable=False, + default=False, + server_default="0", + doc="Whether this item is required (cannot be removed)" + ) + + sort_order: Mapped[int] = mapped_column( + Integer, + nullable=False, + default=0, + server_default="0", + doc="Display order within the quote" + ) + + # Relationships + quote: Mapped["Quote"] = relationship( + "Quote", + back_populates="items" + ) + + # Constraints and indexes + __table_args__ = ( + CheckConstraint( + "category IN ('managed_services', 'security', 'backup', 'cloud', 'hardware', 'software', 'consulting', 'support')", + name="ck_quote_items_category" + ), + CheckConstraint( + "billing_frequency IN ('monthly', 'quarterly', 'annual', 'one_time')", + name="ck_quote_items_billing_frequency" + ), + CheckConstraint( + "quantity >= 1", + name="ck_quote_items_quantity_positive" + ), + Index("idx_quote_items_quote_id", "quote_id"), + Index("idx_quote_items_category", "category"), + ) + + def __repr__(self) -> str: + """String representation of the quote item.""" + return f"" + + @property + def line_total(self) -> Decimal: + """Calculate the line total (unit_price * quantity).""" + return self.unit_price * self.quantity + + @property + def monthly_amount(self) -> Decimal: + """Calculate the monthly amount based on billing frequency.""" + if self.billing_frequency == BillingFrequency.MONTHLY.value: + return self.line_total + elif self.billing_frequency == BillingFrequency.QUARTERLY.value: + return self.line_total / Decimal("3") + elif self.billing_frequency == BillingFrequency.ANNUAL.value: + return self.line_total / Decimal("12") + else: # one_time + return Decimal("0.00") + + +class QuoteActivity(Base, UUIDMixin, TimestampMixin): + """ + Quote activity model for tracking quote history and changes. + + Logs all actions taken on a quote for audit and tracking purposes. + + Attributes: + quote_id: Reference to the parent quote + action: Action performed (created, updated, submitted, etc.) + description: Detailed description of the action + actor: Who performed the action (email, 'system', 'admin') + ip_address: IP address of the actor + metadata: JSON metadata about the action + """ + + __tablename__ = "quote_activities" + + # Foreign keys + quote_id: Mapped[str] = mapped_column( + CHAR(36), + ForeignKey("quotes.id", ondelete="CASCADE"), + nullable=False, + doc="Reference to the parent quote" + ) + + # Activity details + action: Mapped[str] = mapped_column( + String(50), + nullable=False, + doc="Action performed: created, updated, item_added, item_removed, submitted, status_changed, etc." + ) + + description: Mapped[Optional[str]] = mapped_column( + Text, + doc="Detailed description of the action" + ) + + actor: Mapped[Optional[str]] = mapped_column( + String(255), + doc="Who performed the action (email, 'system', 'admin')" + ) + + ip_address: Mapped[Optional[str]] = mapped_column( + String(45), + doc="IP address of the actor" + ) + + metadata: Mapped[Optional[str]] = mapped_column( + Text, + doc="JSON metadata about the action" + ) + + # Relationships + quote: Mapped["Quote"] = relationship( + "Quote", + back_populates="activities" + ) + + # Indexes + __table_args__ = ( + Index("idx_quote_activities_quote_id", "quote_id"), + Index("idx_quote_activities_action", "action"), + Index("idx_quote_activities_created_at", "created_at"), + ) + + def __repr__(self) -> str: + """String representation of the quote activity.""" + return f"" + + +class QuoteNotification(Base, UUIDMixin, TimestampMixin): + """ + Quote notification model for tracking notifications sent. + + Records all notifications (emails, SMS, alerts) sent for a quote. + + Attributes: + quote_id: Reference to the parent quote + notification_type: Type of notification (email_sent, sms_sent, etc.) + recipient: Notification recipient (email, phone, etc.) + subject: Notification subject + content: Notification content/body + status: Delivery status (pending, sent, delivered, failed) + sent_at: Timestamp when notification was sent + error_message: Error message if delivery failed + """ + + __tablename__ = "quote_notifications" + + # Foreign keys + quote_id: Mapped[str] = mapped_column( + CHAR(36), + ForeignKey("quotes.id", ondelete="CASCADE"), + nullable=False, + doc="Reference to the parent quote" + ) + + # Notification details + notification_type: Mapped[str] = mapped_column( + String(30), + nullable=False, + doc="Type of notification: email_sent, sms_sent, admin_alert, reminder_sent" + ) + + recipient: Mapped[str] = mapped_column( + String(255), + nullable=False, + doc="Notification recipient (email, phone, etc.)" + ) + + subject: Mapped[Optional[str]] = mapped_column( + String(500), + doc="Notification subject" + ) + + content: Mapped[Optional[str]] = mapped_column( + Text, + doc="Notification content/body" + ) + + # Status tracking + status: Mapped[str] = mapped_column( + String(20), + nullable=False, + default="pending", + server_default="pending", + doc="Delivery status: pending, sent, delivered, failed" + ) + + sent_at: Mapped[Optional[datetime]] = mapped_column( + DateTime, + doc="Timestamp when notification was sent" + ) + + error_message: Mapped[Optional[str]] = mapped_column( + Text, + doc="Error message if delivery failed" + ) + + # Relationships + quote: Mapped["Quote"] = relationship( + "Quote", + back_populates="notifications" + ) + + # Constraints and indexes + __table_args__ = ( + CheckConstraint( + "notification_type IN ('email_sent', 'sms_sent', 'admin_alert', 'reminder_sent')", + name="ck_quote_notifications_type" + ), + CheckConstraint( + "status IN ('pending', 'sent', 'delivered', 'failed')", + name="ck_quote_notifications_status" + ), + Index("idx_quote_notifications_quote_id", "quote_id"), + Index("idx_quote_notifications_type", "notification_type"), + Index("idx_quote_notifications_status", "status"), + ) + + def __repr__(self) -> str: + """String representation of the quote notification.""" + return f"" diff --git a/api/routers/admin_quotes.py b/api/routers/admin_quotes.py new file mode 100644 index 0000000..655ddda --- /dev/null +++ b/api/routers/admin_quotes.py @@ -0,0 +1,384 @@ +""" +Admin Quote API router for ClaudeTools. + +This module defines all admin REST API endpoints for managing quotes, +requiring JWT authentication for access. +""" + +from typing import Optional +from uuid import UUID + +from fastapi import APIRouter, Depends, Query, status +from sqlalchemy.orm import Session + +from api.database import get_db +from api.middleware.auth import get_current_user +from api.schemas.quote import ( + QuoteAdminResponse, + QuoteAdminUpdate, + QuoteActivityResponse, + QuoteItemResponse, + QuoteListItem, + QuoteListResponse, + QuoteNotificationResponse, + QuoteStatsResponse, + QuoteStatus, +) +from api.services import quote_service + +# Create router with authentication required +router = APIRouter() + + +@router.get( + "", + response_model=QuoteListResponse, + summary="List all quotes", + description="Retrieve a paginated list of all quotes with optional filtering", + status_code=status.HTTP_200_OK, +) +def list_quotes( + skip: int = Query( + default=0, + ge=0, + description="Number of records to skip for pagination" + ), + limit: int = Query( + default=100, + ge=1, + le=1000, + description="Maximum number of records to return (max 1000)" + ), + status_filter: Optional[str] = Query( + default=None, + alias="status", + description="Filter by status (draft, submitted, reviewing, approved, rejected, expired)" + ), + search: Optional[str] = Query( + default=None, + description="Search in company_name, contact_name, contact_email" + ), + db: Session = Depends(get_db), + current_user: dict = Depends(get_current_user), +): + """ + List all quotes with pagination and filtering. + + - **skip**: Number of quotes to skip (default: 0) + - **limit**: Maximum number of quotes to return (default: 100, max: 1000) + - **status**: Filter by quote status + - **search**: Search in company name, contact name, or email + + Returns a list of quotes with pagination metadata. + + **Example Request:** + ``` + GET /api/admin/quotes?skip=0&limit=50&status=submitted + Authorization: Bearer + ``` + + **Example Response:** + ```json + { + "total": 25, + "skip": 0, + "limit": 50, + "quotes": [ + { + "id": "123e4567-e89b-12d3-a456-426614174000", + "access_token": "xYz123...", + "status": "submitted", + "company_name": "Acme Corporation", + "contact_name": "John Doe", + "contact_email": "john@acme.com", + "employee_count": 25, + "monthly_total": "450.00", + "setup_total": "500.00", + "item_count": 3, + "submitted_at": "2024-01-15T14:30:00Z", + "created_at": "2024-01-15T10:30:00Z" + } + ] + } + ``` + """ + quotes, total = quote_service.list_quotes( + db=db, + skip=skip, + limit=limit, + status_filter=status_filter, + search=search + ) + + # Build list items with item counts + quote_items = [] + for quote in quotes: + quote_items.append(QuoteListItem( + id=quote.id, + access_token=quote.access_token, + status=quote.status, + company_name=quote.company_name, + contact_name=quote.contact_name, + contact_email=quote.contact_email, + employee_count=quote.employee_count, + monthly_total=quote.monthly_total, + setup_total=quote.setup_total, + item_count=len(quote.items), + submitted_at=quote.submitted_at, + created_at=quote.created_at + )) + + return QuoteListResponse( + total=total, + skip=skip, + limit=limit, + quotes=quote_items + ) + + +@router.get( + "/stats", + response_model=QuoteStatsResponse, + summary="Get quote statistics", + description="Get dashboard statistics for quotes", + status_code=status.HTTP_200_OK, +) +def get_stats( + db: Session = Depends(get_db), + current_user: dict = Depends(get_current_user), +): + """ + Get quote statistics for the admin dashboard. + + Returns aggregate statistics including totals, counts by status, + and conversion rates. + + **Example Request:** + ``` + GET /api/admin/quotes/stats + Authorization: Bearer + ``` + + **Example Response:** + ```json + { + "total_quotes": 150, + "quotes_by_status": { + "draft": 45, + "submitted": 60, + "reviewing": 15, + "approved": 25, + "rejected": 3, + "expired": 2 + }, + "total_monthly_value": "12500.00", + "total_setup_value": "8500.00", + "quotes_this_month": 28, + "quotes_submitted_this_month": 18, + "average_monthly_value": "125.00", + "conversion_rate": "66.67" + } + ``` + """ + return quote_service.get_quote_stats(db) + + +@router.get( + "/{quote_id}", + response_model=QuoteAdminResponse, + summary="Get quote by ID", + description="Retrieve a single quote by its ID with full details", + status_code=status.HTTP_200_OK, + responses={ + 200: { + "description": "Quote found and returned", + "model": QuoteAdminResponse, + }, + 404: { + "description": "Quote not found", + "content": { + "application/json": { + "example": {"detail": "Quote with ID 123e4567-e89b-12d3-a456-426614174000 not found"} + } + }, + }, + }, +) +def get_quote( + quote_id: UUID, + db: Session = Depends(get_db), + current_user: dict = Depends(get_current_user), +): + """ + Get a specific quote by ID with full admin details. + + Returns the quote with all items, activities, and notifications. + + **Example Request:** + ``` + GET /api/admin/quotes/123e4567-e89b-12d3-a456-426614174000 + Authorization: Bearer + ``` + + **Example Response:** + ```json + { + "id": "123e4567-e89b-12d3-a456-426614174000", + "access_token": "xYz123...", + "status": "submitted", + "company_name": "Acme Corporation", + "contact_name": "John Doe", + "contact_email": "john@acme.com", + "admin_notes": "Follow up scheduled for next week", + "ip_address": "192.168.1.100", + "user_agent": "Mozilla/5.0...", + "items": [...], + "activities": [ + { + "id": "789...", + "action": "submitted", + "description": "Quote submitted by John Doe (john@acme.com)", + "actor": "john@acme.com", + "created_at": "2024-01-15T14:30:00Z" + } + ], + "notifications": [...] + } + ``` + """ + quote = quote_service.get_quote_by_id(db, quote_id) + + # Build response with all related data + items_response = [] + for item in quote.items: + items_response.append(QuoteItemResponse( + id=item.id, + quote_id=item.quote_id, + service_name=item.service_name, + service_description=item.service_description, + category=item.category, + billing_frequency=item.billing_frequency, + unit_price=item.unit_price, + quantity=item.quantity, + setup_fee=item.setup_fee, + is_required=item.is_required, + sort_order=item.sort_order, + line_total=item.line_total, + monthly_amount=item.monthly_amount, + created_at=item.created_at, + updated_at=item.updated_at + )) + + activities_response = [] + for activity in quote.activities: + activities_response.append(QuoteActivityResponse( + id=activity.id, + quote_id=activity.quote_id, + action=activity.action, + description=activity.description, + actor=activity.actor, + ip_address=activity.ip_address, + created_at=activity.created_at + )) + + notifications_response = [] + for notification in quote.notifications: + notifications_response.append(QuoteNotificationResponse( + id=notification.id, + quote_id=notification.quote_id, + notification_type=notification.notification_type, + recipient=notification.recipient, + subject=notification.subject, + status=notification.status, + sent_at=notification.sent_at, + error_message=notification.error_message, + created_at=notification.created_at + )) + + return QuoteAdminResponse( + id=quote.id, + access_token=quote.access_token, + status=quote.status, + company_name=quote.company_name, + contact_name=quote.contact_name, + contact_email=quote.contact_email, + contact_phone=quote.contact_phone, + employee_count=quote.employee_count, + notes=quote.notes, + admin_notes=quote.admin_notes, + monthly_total=quote.monthly_total, + setup_total=quote.setup_total, + annual_total=quote.annual_total, + expires_at=quote.expires_at, + submitted_at=quote.submitted_at, + ip_address=quote.ip_address, + user_agent=quote.user_agent, + created_at=quote.created_at, + updated_at=quote.updated_at, + items=items_response, + activities=activities_response, + notifications=notifications_response + ) + + +@router.put( + "/{quote_id}", + response_model=QuoteAdminResponse, + summary="Update quote status/notes", + description="Update a quote's status or admin notes", + status_code=status.HTTP_200_OK, + responses={ + 200: { + "description": "Quote updated successfully", + "model": QuoteAdminResponse, + }, + 404: { + "description": "Quote not found", + }, + }, +) +def update_quote( + quote_id: UUID, + update_data: QuoteAdminUpdate, + db: Session = Depends(get_db), + current_user: dict = Depends(get_current_user), +): + """ + Update a quote's status or admin notes. + + Admins can change the quote status (e.g., from submitted to reviewing + or approved) and add internal notes. + + **Example Request:** + ```json + PUT /api/admin/quotes/123e4567-e89b-12d3-a456-426614174000 + Authorization: Bearer + Content-Type: application/json + + { + "status": "reviewing", + "admin_notes": "Assigned to sales team. Follow up scheduled for Monday." + } + ``` + + **Example Response:** + ```json + { + "id": "123e4567-e89b-12d3-a456-426614174000", + "status": "reviewing", + "admin_notes": "Assigned to sales team. Follow up scheduled for Monday.", + ... + } + ``` + """ + # Get admin username from token + admin_user = current_user.get("sub", "admin") + + quote_service.update_quote_status( + db=db, + quote_id=quote_id, + update_data=update_data, + admin_user=admin_user + ) + + return get_quote(quote_id, db, current_user) diff --git a/api/routers/quotes.py b/api/routers/quotes.py new file mode 100644 index 0000000..e3e2641 --- /dev/null +++ b/api/routers/quotes.py @@ -0,0 +1,519 @@ +""" +Public Quote API router for ClaudeTools. + +This module defines all public REST API endpoints for the MSP Quote Wizard, +allowing prospects to create, view, and submit quotes without authentication. +""" + +from typing import Optional +from uuid import UUID + +from fastapi import APIRouter, Depends, HTTPException, Query, Request, status +from sqlalchemy.orm import Session + +from api.database import get_db +from api.schemas.quote import ( + QuoteCreate, + QuoteCreatedResponse, + QuoteItemCreate, + QuoteResponse, + QuoteItemResponse, + QuoteSubmit, + QuoteUpdate, +) +from api.services import quote_service + +# Create router (no authentication required for public endpoints) +router = APIRouter() + + +def get_client_ip(request: Request) -> Optional[str]: + """Extract client IP from request, handling proxies.""" + forwarded = request.headers.get("X-Forwarded-For") + if forwarded: + return forwarded.split(",")[0].strip() + return request.client.host if request.client else None + + +def get_user_agent(request: Request) -> Optional[str]: + """Extract user agent from request.""" + return request.headers.get("User-Agent") + + +@router.post( + "", + response_model=QuoteCreatedResponse, + summary="Create new quote draft", + description="Create a new quote draft. Returns an access token for future access.", + status_code=status.HTTP_201_CREATED, + responses={ + 201: { + "description": "Quote created successfully", + "model": QuoteCreatedResponse, + }, + 500: { + "description": "Server error", + "content": { + "application/json": { + "example": {"detail": "Failed to create quote"} + } + }, + }, + }, +) +def create_quote( + quote_data: QuoteCreate, + request: Request, + db: Session = Depends(get_db), +): + """ + Create a new quote draft. + + This endpoint does not require authentication. A unique access token is + generated for the quote which can be used to access it later. + + **Example Request:** + ```json + POST /api/quotes + Content-Type: application/json + + { + "employee_count": 25, + "notes": "Looking for complete managed services package" + } + ``` + + **Example Response:** + ```json + { + "id": "123e4567-e89b-12d3-a456-426614174000", + "access_token": "xYz123abc456def789ghi012jkl345mno678pqr901stu", + "status": "draft", + "message": "Quote created successfully. Use the access_token to access your quote." + } + ``` + """ + ip_address = get_client_ip(request) + user_agent = get_user_agent(request) + + quote = quote_service.create_quote( + db=db, + quote_data=quote_data, + ip_address=ip_address, + user_agent=user_agent + ) + + return QuoteCreatedResponse( + id=quote.id, + access_token=quote.access_token, + status=quote.status, + message="Quote created successfully. Use the access_token to access your quote." + ) + + +@router.get( + "/{access_token}", + response_model=QuoteResponse, + summary="Get quote by access token", + description="Retrieve a quote by its access token", + status_code=status.HTTP_200_OK, + responses={ + 200: { + "description": "Quote found and returned", + "model": QuoteResponse, + }, + 404: { + "description": "Quote not found", + "content": { + "application/json": { + "example": {"detail": "Quote not found"} + } + }, + }, + }, +) +def get_quote( + access_token: str, + db: Session = Depends(get_db), +): + """ + Get a quote by its access token. + + Returns the quote with all its items. This is the public endpoint + for viewing a quote. + + **Example Request:** + ``` + GET /api/quotes/xYz123abc456def789ghi012jkl345mno678pqr901stu + ``` + + **Example Response:** + ```json + { + "id": "123e4567-e89b-12d3-a456-426614174000", + "access_token": "xYz123abc456def789ghi012jkl345mno678pqr901stu", + "status": "draft", + "company_name": null, + "contact_name": null, + "contact_email": null, + "employee_count": 25, + "monthly_total": "450.00", + "setup_total": "500.00", + "annual_total": "5900.00", + "items": [ + { + "id": "456e7890-e89b-12d3-a456-426614174001", + "service_name": "Managed Endpoint Protection", + "category": "security", + "unit_price": "15.00", + "quantity": 25, + "billing_frequency": "monthly", + "line_total": "375.00", + "monthly_amount": "375.00" + } + ], + "created_at": "2024-01-15T10:30:00Z", + "updated_at": "2024-01-15T10:30:00Z" + } + ``` + """ + quote = quote_service.get_quote_by_token(db, access_token) + + # Build response with calculated fields for items + items_response = [] + for item in quote.items: + item_dict = QuoteItemResponse( + id=item.id, + quote_id=item.quote_id, + service_name=item.service_name, + service_description=item.service_description, + category=item.category, + billing_frequency=item.billing_frequency, + unit_price=item.unit_price, + quantity=item.quantity, + setup_fee=item.setup_fee, + is_required=item.is_required, + sort_order=item.sort_order, + line_total=item.line_total, + monthly_amount=item.monthly_amount, + created_at=item.created_at, + updated_at=item.updated_at + ) + items_response.append(item_dict) + + return QuoteResponse( + id=quote.id, + access_token=quote.access_token, + status=quote.status, + company_name=quote.company_name, + contact_name=quote.contact_name, + contact_email=quote.contact_email, + contact_phone=quote.contact_phone, + employee_count=quote.employee_count, + notes=quote.notes, + monthly_total=quote.monthly_total, + setup_total=quote.setup_total, + annual_total=quote.annual_total, + expires_at=quote.expires_at, + submitted_at=quote.submitted_at, + created_at=quote.created_at, + updated_at=quote.updated_at, + items=items_response + ) + + +@router.put( + "/{access_token}", + response_model=QuoteResponse, + summary="Update quote", + description="Update a quote's details and/or items", + status_code=status.HTTP_200_OK, + responses={ + 200: { + "description": "Quote updated successfully", + "model": QuoteResponse, + }, + 400: { + "description": "Quote cannot be modified (not a draft)", + "content": { + "application/json": { + "example": {"detail": "Cannot update quote with status 'submitted'. Only drafts can be modified."} + } + }, + }, + 404: { + "description": "Quote not found", + }, + }, +) +def update_quote( + access_token: str, + quote_data: QuoteUpdate, + request: Request, + db: Session = Depends(get_db), +): + """ + Update a quote. + + Updates quote details and/or replaces all items. Only draft quotes + can be modified. + + **Example Request:** + ```json + PUT /api/quotes/xYz123abc456def789ghi012jkl345mno678pqr901stu + Content-Type: application/json + + { + "employee_count": 30, + "items": [ + { + "service_name": "Managed Endpoint Protection", + "category": "security", + "unit_price": "15.00", + "quantity": 30, + "billing_frequency": "monthly" + }, + { + "service_name": "Cloud Backup", + "category": "backup", + "unit_price": "5.00", + "quantity": 30, + "billing_frequency": "monthly", + "setup_fee": "250.00" + } + ] + } + ``` + """ + ip_address = get_client_ip(request) + + quote = quote_service.update_quote( + db=db, + access_token=access_token, + quote_data=quote_data, + ip_address=ip_address + ) + + return get_quote(access_token, db) + + +@router.post( + "/{access_token}/items", + response_model=QuoteResponse, + summary="Add item to quote", + description="Add a single item to the quote", + status_code=status.HTTP_201_CREATED, + responses={ + 201: { + "description": "Item added successfully", + "model": QuoteResponse, + }, + 400: { + "description": "Quote cannot be modified", + }, + 404: { + "description": "Quote not found", + }, + }, +) +def add_item( + access_token: str, + item_data: QuoteItemCreate, + request: Request, + db: Session = Depends(get_db), +): + """ + Add a single item to a quote. + + **Example Request:** + ```json + POST /api/quotes/xYz123abc456def789ghi012jkl345mno678pqr901stu/items + Content-Type: application/json + + { + "service_name": "24/7 Help Desk Support", + "category": "support", + "unit_price": "50.00", + "quantity": 1, + "billing_frequency": "monthly" + } + ``` + """ + ip_address = get_client_ip(request) + + quote_service.add_item_to_quote( + db=db, + access_token=access_token, + item_data=item_data, + ip_address=ip_address + ) + + return get_quote(access_token, db) + + +@router.delete( + "/{access_token}/items/{item_id}", + response_model=QuoteResponse, + summary="Remove item from quote", + description="Remove an item from the quote", + status_code=status.HTTP_200_OK, + responses={ + 200: { + "description": "Item removed successfully", + "model": QuoteResponse, + }, + 400: { + "description": "Quote cannot be modified or item is required", + }, + 404: { + "description": "Quote or item not found", + }, + }, +) +def remove_item( + access_token: str, + item_id: UUID, + request: Request, + db: Session = Depends(get_db), +): + """ + Remove an item from a quote. + + Required items cannot be removed. + + **Example Request:** + ``` + DELETE /api/quotes/xYz123abc456def789ghi012jkl345mno678pqr901stu/items/456e7890-e89b-12d3-a456-426614174001 + ``` + """ + ip_address = get_client_ip(request) + + quote_service.remove_item_from_quote( + db=db, + access_token=access_token, + item_id=item_id, + ip_address=ip_address + ) + + return get_quote(access_token, db) + + +@router.post( + "/{access_token}/submit", + response_model=QuoteResponse, + summary="Submit quote", + description="Submit the quote with contact information", + status_code=status.HTTP_200_OK, + responses={ + 200: { + "description": "Quote submitted successfully", + "model": QuoteResponse, + }, + 400: { + "description": "Quote cannot be submitted (not a draft or no items)", + "content": { + "application/json": { + "examples": { + "not_draft": { + "value": {"detail": "Cannot submit quote with status 'submitted'. Only drafts can be submitted."} + }, + "no_items": { + "value": {"detail": "Cannot submit quote without any items. Please add at least one service."} + } + } + } + }, + }, + 404: { + "description": "Quote not found", + }, + 422: { + "description": "Validation error - missing required fields", + }, + }, +) +def submit_quote( + access_token: str, + submit_data: QuoteSubmit, + request: Request, + db: Session = Depends(get_db), +): + """ + Submit a quote with contact information. + + This finalizes the quote and sends it for review. Contact information + is required at this stage. + + **Example Request:** + ```json + POST /api/quotes/xYz123abc456def789ghi012jkl345mno678pqr901stu/submit + Content-Type: application/json + + { + "company_name": "Acme Corporation", + "contact_name": "John Doe", + "contact_email": "john.doe@acme.com", + "contact_phone": "555-123-4567", + "notes": "Please contact me to discuss implementation timeline." + } + ``` + + **Example Response:** + ```json + { + "id": "123e4567-e89b-12d3-a456-426614174000", + "access_token": "xYz123abc456def789ghi012jkl345mno678pqr901stu", + "status": "submitted", + "company_name": "Acme Corporation", + "contact_name": "John Doe", + "contact_email": "john.doe@acme.com", + "submitted_at": "2024-01-15T14:30:00Z", + ... + } + ``` + """ + ip_address = get_client_ip(request) + + quote_service.submit_quote( + db=db, + access_token=access_token, + submit_data=submit_data, + ip_address=ip_address + ) + + return get_quote(access_token, db) + + +@router.get( + "/{access_token}/pdf", + summary="Get quote PDF (placeholder)", + description="Generate and return a PDF version of the quote", + status_code=status.HTTP_501_NOT_IMPLEMENTED, + responses={ + 501: { + "description": "PDF generation not yet implemented", + "content": { + "application/json": { + "example": {"detail": "PDF generation is not yet implemented"} + } + }, + }, + }, +) +def get_quote_pdf( + access_token: str, + db: Session = Depends(get_db), +): + """ + Generate a PDF version of the quote. + + **Note:** This endpoint is a placeholder. PDF generation will be + implemented in a future update. + """ + # Verify quote exists + quote_service.get_quote_by_token(db, access_token) + + raise HTTPException( + status_code=status.HTTP_501_NOT_IMPLEMENTED, + detail="PDF generation is not yet implemented" + ) diff --git a/api/schemas/__init__.py b/api/schemas/__init__.py index 5cedb87..9f7a0d0 100644 --- a/api/schemas/__init__.py +++ b/api/schemas/__init__.py @@ -15,6 +15,20 @@ from .m365_tenant import M365TenantBase, M365TenantCreate, M365TenantResponse, M from .machine import MachineBase, MachineCreate, MachineResponse, MachineUpdate from .network import NetworkBase, NetworkCreate, NetworkResponse, NetworkUpdate from .project import ProjectBase, ProjectCreate, ProjectResponse, ProjectUpdate +from .quote import ( + QuoteCreate, + QuoteCreatedResponse, + QuoteItemCreate, + QuoteItemResponse, + QuoteItemUpdate, + QuoteListResponse, + QuoteResponse, + QuoteAdminResponse, + QuoteAdminUpdate, + QuoteStatsResponse, + QuoteSubmit, + QuoteUpdate, +) from .security_incident import SecurityIncidentBase, SecurityIncidentCreate, SecurityIncidentResponse, SecurityIncidentUpdate from .service import ServiceBase, ServiceCreate, ServiceResponse, ServiceUpdate from .session import SessionBase, SessionCreate, SessionResponse, SessionUpdate @@ -109,4 +123,17 @@ __all__ = [ "SecurityIncidentCreate", "SecurityIncidentUpdate", "SecurityIncidentResponse", + # Quote schemas + "QuoteCreate", + "QuoteCreatedResponse", + "QuoteItemCreate", + "QuoteItemResponse", + "QuoteItemUpdate", + "QuoteListResponse", + "QuoteResponse", + "QuoteAdminResponse", + "QuoteAdminUpdate", + "QuoteStatsResponse", + "QuoteSubmit", + "QuoteUpdate", ] diff --git a/api/schemas/quote.py b/api/schemas/quote.py new file mode 100644 index 0000000..92b724a --- /dev/null +++ b/api/schemas/quote.py @@ -0,0 +1,303 @@ +""" +Pydantic schemas for Quote models. + +Request and response schemas for the MSP Quote Wizard including +public and admin-facing operations. +""" + +from datetime import datetime +from decimal import Decimal +from enum import Enum +from typing import Optional +from uuid import UUID + +from pydantic import BaseModel, Field, EmailStr, field_validator + + +class QuoteStatus(str, Enum): + """Status options for quotes.""" + DRAFT = "draft" + SUBMITTED = "submitted" + REVIEWING = "reviewing" + APPROVED = "approved" + REJECTED = "rejected" + EXPIRED = "expired" + + +class ServiceCategory(str, Enum): + """Service category options for quote items.""" + MANAGED_SERVICES = "managed_services" + SECURITY = "security" + BACKUP = "backup" + CLOUD = "cloud" + HARDWARE = "hardware" + SOFTWARE = "software" + CONSULTING = "consulting" + SUPPORT = "support" + + +class BillingFrequency(str, Enum): + """Billing frequency options for quote items.""" + MONTHLY = "monthly" + QUARTERLY = "quarterly" + ANNUAL = "annual" + ONE_TIME = "one_time" + + +class NotificationType(str, Enum): + """Notification types for quote events.""" + EMAIL_SENT = "email_sent" + SMS_SENT = "sms_sent" + ADMIN_ALERT = "admin_alert" + REMINDER_SENT = "reminder_sent" + + +# ============================================================================ +# Quote Item Schemas +# ============================================================================ + +class QuoteItemBase(BaseModel): + """Base schema with shared QuoteItem fields.""" + + service_name: str = Field(..., description="Name of the service", min_length=1, max_length=255) + service_description: Optional[str] = Field(None, description="Detailed description of the service") + category: ServiceCategory = Field( + ServiceCategory.MANAGED_SERVICES, + description="Service category" + ) + billing_frequency: BillingFrequency = Field( + BillingFrequency.MONTHLY, + description="Billing frequency" + ) + unit_price: Decimal = Field(..., description="Price per unit", ge=0) + quantity: int = Field(1, description="Number of units", ge=1) + setup_fee: Decimal = Field(Decimal("0.00"), description="One-time setup fee", ge=0) + is_required: bool = Field(False, description="Whether this item is required") + sort_order: int = Field(0, description="Display order within the quote") + + +class QuoteItemCreate(QuoteItemBase): + """Schema for creating a new QuoteItem.""" + pass + + +class QuoteItemUpdate(BaseModel): + """Schema for updating an existing QuoteItem. All fields optional.""" + + service_name: Optional[str] = Field(None, min_length=1, max_length=255) + service_description: Optional[str] = None + category: Optional[ServiceCategory] = None + billing_frequency: Optional[BillingFrequency] = None + unit_price: Optional[Decimal] = Field(None, ge=0) + quantity: Optional[int] = Field(None, ge=1) + setup_fee: Optional[Decimal] = Field(None, ge=0) + is_required: Optional[bool] = None + sort_order: Optional[int] = None + + +class QuoteItemResponse(QuoteItemBase): + """Schema for QuoteItem responses with ID and computed fields.""" + + id: UUID = Field(..., description="Unique identifier for the quote item") + quote_id: UUID = Field(..., description="Reference to the parent quote") + line_total: Decimal = Field(..., description="Calculated line total (unit_price * quantity)") + monthly_amount: Decimal = Field(..., description="Calculated monthly amount") + created_at: datetime = Field(..., description="Timestamp when item was created") + updated_at: datetime = Field(..., description="Timestamp when item was last updated") + + model_config = {"from_attributes": True} + + +# ============================================================================ +# Quote Schemas +# ============================================================================ + +class QuoteBase(BaseModel): + """Base schema with shared Quote fields.""" + + company_name: Optional[str] = Field(None, description="Prospect company name", max_length=255) + contact_name: Optional[str] = Field(None, description="Primary contact name", max_length=255) + contact_email: Optional[EmailStr] = Field(None, description="Contact email address") + contact_phone: Optional[str] = Field(None, description="Contact phone number", max_length=50) + employee_count: Optional[int] = Field(None, description="Number of employees/users", ge=1) + notes: Optional[str] = Field(None, description="Customer notes or special requirements") + + +class QuoteCreate(BaseModel): + """Schema for creating a new Quote draft.""" + + employee_count: Optional[int] = Field(None, description="Number of employees/users", ge=1) + notes: Optional[str] = Field(None, description="Initial notes") + # Items can optionally be provided at creation + items: Optional[list[QuoteItemCreate]] = Field(None, description="Initial quote items") + + +class QuoteUpdate(BaseModel): + """Schema for updating a Quote during wizard flow.""" + + company_name: Optional[str] = Field(None, max_length=255) + contact_name: Optional[str] = Field(None, max_length=255) + contact_email: Optional[EmailStr] = None + contact_phone: Optional[str] = Field(None, max_length=50) + employee_count: Optional[int] = Field(None, ge=1) + notes: Optional[str] = None + # Items to add/update + items: Optional[list[QuoteItemCreate]] = Field(None, description="Items to set (replaces existing)") + + +class QuoteSubmit(BaseModel): + """Schema for final quote submission with required contact info.""" + + company_name: str = Field(..., description="Company name (required for submission)", min_length=1, max_length=255) + contact_name: str = Field(..., description="Contact name (required for submission)", min_length=1, max_length=255) + contact_email: EmailStr = Field(..., description="Email address (required for submission)") + contact_phone: Optional[str] = Field(None, description="Phone number", max_length=50) + notes: Optional[str] = Field(None, description="Additional notes") + + @field_validator("company_name", "contact_name") + @classmethod + def strip_whitespace(cls, v: str) -> str: + """Strip whitespace from string fields.""" + return v.strip() if v else v + + +class QuoteResponse(QuoteBase): + """Schema for public Quote responses with items.""" + + id: UUID = Field(..., description="Unique identifier for the quote") + access_token: str = Field(..., description="Access token for public URL") + status: QuoteStatus = Field(..., description="Current quote status") + monthly_total: Decimal = Field(..., description="Calculated monthly recurring total") + setup_total: Decimal = Field(..., description="Calculated one-time setup total") + annual_total: Decimal = Field(..., description="Calculated annual total") + expires_at: Optional[datetime] = Field(None, description="Quote expiration date") + submitted_at: Optional[datetime] = Field(None, description="When quote was submitted") + created_at: datetime = Field(..., description="Timestamp when quote was created") + updated_at: datetime = Field(..., description="Timestamp when quote was last updated") + items: list[QuoteItemResponse] = Field(default_factory=list, description="Quote line items") + + model_config = {"from_attributes": True} + + +class QuoteCreatedResponse(BaseModel): + """Schema for quote creation response with access URL info.""" + + id: UUID = Field(..., description="Unique identifier for the quote") + access_token: str = Field(..., description="Access token for public URL") + status: QuoteStatus = Field(..., description="Current quote status") + message: str = Field(..., description="Success message") + + model_config = {"from_attributes": True} + + +# ============================================================================ +# Quote Activity Schemas +# ============================================================================ + +class QuoteActivityResponse(BaseModel): + """Schema for QuoteActivity responses.""" + + id: UUID = Field(..., description="Unique identifier for the activity") + quote_id: UUID = Field(..., description="Reference to the parent quote") + action: str = Field(..., description="Action performed") + description: Optional[str] = Field(None, description="Detailed description") + actor: Optional[str] = Field(None, description="Who performed the action") + ip_address: Optional[str] = Field(None, description="IP address of the actor") + created_at: datetime = Field(..., description="Timestamp of the action") + + model_config = {"from_attributes": True} + + +# ============================================================================ +# Quote Notification Schemas +# ============================================================================ + +class QuoteNotificationResponse(BaseModel): + """Schema for QuoteNotification responses.""" + + id: UUID = Field(..., description="Unique identifier for the notification") + quote_id: UUID = Field(..., description="Reference to the parent quote") + notification_type: NotificationType = Field(..., description="Type of notification") + recipient: str = Field(..., description="Notification recipient") + subject: Optional[str] = Field(None, description="Notification subject") + status: str = Field(..., description="Delivery status") + sent_at: Optional[datetime] = Field(None, description="When notification was sent") + error_message: Optional[str] = Field(None, description="Error message if failed") + created_at: datetime = Field(..., description="Timestamp when created") + + model_config = {"from_attributes": True} + + +# ============================================================================ +# Admin Schemas +# ============================================================================ + +class QuoteAdminUpdate(BaseModel): + """Schema for admin updates to a quote.""" + + status: Optional[QuoteStatus] = Field(None, description="New status") + admin_notes: Optional[str] = Field(None, description="Internal admin notes") + expires_at: Optional[datetime] = Field(None, description="Quote expiration date") + + +class QuoteAdminResponse(QuoteResponse): + """Schema for admin Quote responses with additional fields.""" + + admin_notes: Optional[str] = Field(None, description="Internal admin notes") + ip_address: Optional[str] = Field(None, description="IP address of the requester") + user_agent: Optional[str] = Field(None, description="Browser user agent") + activities: list[QuoteActivityResponse] = Field( + default_factory=list, + description="Activity log for this quote" + ) + notifications: list[QuoteNotificationResponse] = Field( + default_factory=list, + description="Notifications sent for this quote" + ) + + model_config = {"from_attributes": True} + + +# ============================================================================ +# List and Stats Schemas +# ============================================================================ + +class QuoteListItem(BaseModel): + """Schema for quote list items (summary view).""" + + id: UUID = Field(..., description="Unique identifier") + access_token: str = Field(..., description="Access token") + status: QuoteStatus = Field(..., description="Current status") + company_name: Optional[str] = Field(None, description="Company name") + contact_name: Optional[str] = Field(None, description="Contact name") + contact_email: Optional[str] = Field(None, description="Contact email") + employee_count: Optional[int] = Field(None, description="Employee count") + monthly_total: Decimal = Field(..., description="Monthly total") + setup_total: Decimal = Field(..., description="Setup total") + item_count: int = Field(..., description="Number of line items") + submitted_at: Optional[datetime] = Field(None, description="Submission timestamp") + created_at: datetime = Field(..., description="Creation timestamp") + + model_config = {"from_attributes": True} + + +class QuoteListResponse(BaseModel): + """Schema for paginated quote list responses.""" + + total: int = Field(..., description="Total number of quotes matching filters") + skip: int = Field(..., description="Number of records skipped") + limit: int = Field(..., description="Maximum number of records returned") + quotes: list[QuoteListItem] = Field(..., description="List of quotes") + + +class QuoteStatsResponse(BaseModel): + """Schema for admin dashboard statistics.""" + + total_quotes: int = Field(..., description="Total number of quotes") + quotes_by_status: dict[str, int] = Field(..., description="Quote count by status") + total_monthly_value: Decimal = Field(..., description="Total monthly value of all submitted quotes") + total_setup_value: Decimal = Field(..., description="Total setup value of all submitted quotes") + quotes_this_month: int = Field(..., description="Quotes created this month") + quotes_submitted_this_month: int = Field(..., description="Quotes submitted this month") + average_monthly_value: Decimal = Field(..., description="Average monthly value per submitted quote") + conversion_rate: Decimal = Field(..., description="Percentage of drafts that get submitted") diff --git a/api/services/__init__.py b/api/services/__init__.py index 9f048cf..eb9f0e7 100644 --- a/api/services/__init__.py +++ b/api/services/__init__.py @@ -11,6 +11,8 @@ from . import ( credential_service, credential_audit_log_service, security_incident_service, + quote_service, + syncro_service, ) __all__ = [ @@ -24,4 +26,6 @@ __all__ = [ "credential_service", "credential_audit_log_service", "security_incident_service", + "quote_service", + "syncro_service", ] diff --git a/api/services/quote_service.py b/api/services/quote_service.py new file mode 100644 index 0000000..b4132a0 --- /dev/null +++ b/api/services/quote_service.py @@ -0,0 +1,985 @@ +""" +Quote service layer for business logic and database operations. + +This module handles all database operations for quotes, providing a clean +separation between the API routes and data access layer. +""" + +import json +import logging +import secrets +from datetime import datetime, timedelta +from decimal import Decimal +from typing import Optional +from uuid import UUID + +from fastapi import HTTPException, status +from sqlalchemy import func +from sqlalchemy.exc import IntegrityError +from sqlalchemy.orm import Session, joinedload + +from api.models.quote import ( + Quote, + QuoteActivity, + QuoteItem, + QuoteNotification, + QuoteStatus, + BillingFrequency, +) +from api.schemas.quote import ( + QuoteCreate, + QuoteUpdate, + QuoteSubmit, + QuoteItemCreate, + QuoteAdminUpdate, + QuoteListItem, + QuoteStatsResponse, +) +from api.services.syncro_service import get_syncro_service + +logger = logging.getLogger(__name__) + + +def generate_access_token() -> str: + """ + Generate a secure, URL-safe access token for quote access. + + Returns: + str: A 43-character URL-safe token + """ + return secrets.token_urlsafe(32) + + +def calculate_totals(items: list[QuoteItem]) -> tuple[Decimal, Decimal, Decimal]: + """ + Calculate monthly, setup, and annual totals from quote items. + + Args: + items: List of QuoteItem objects + + Returns: + tuple: (monthly_total, setup_total, annual_total) + """ + monthly_total = Decimal("0.00") + setup_total = Decimal("0.00") + + for item in items: + # Calculate line total + line_total = item.unit_price * item.quantity + + # Add to appropriate total based on billing frequency + if item.billing_frequency == BillingFrequency.MONTHLY.value: + monthly_total += line_total + elif item.billing_frequency == BillingFrequency.QUARTERLY.value: + monthly_total += line_total / Decimal("3") + elif item.billing_frequency == BillingFrequency.ANNUAL.value: + monthly_total += line_total / Decimal("12") + # one_time items don't add to monthly + + # Setup fees are always one-time + setup_total += item.setup_fee + + # Annual total is monthly * 12 + setup + annual_total = (monthly_total * Decimal("12")) + setup_total + + return monthly_total, setup_total, annual_total + + +def log_activity( + db: Session, + quote_id: str, + action: str, + description: Optional[str] = None, + actor: Optional[str] = None, + ip_address: Optional[str] = None, + metadata: Optional[dict] = None +) -> QuoteActivity: + """ + Log an activity for a quote. + + Args: + db: Database session + quote_id: UUID of the quote + action: Action being performed + description: Detailed description + actor: Who performed the action + ip_address: IP address of the actor + metadata: Additional metadata as dict + + Returns: + QuoteActivity: The created activity record + """ + activity = QuoteActivity( + quote_id=quote_id, + action=action, + description=description, + actor=actor, + ip_address=ip_address, + metadata=json.dumps(metadata) if metadata else None + ) + + db.add(activity) + db.flush() + + return activity + + +def create_quote( + db: Session, + quote_data: QuoteCreate, + ip_address: Optional[str] = None, + user_agent: Optional[str] = None +) -> Quote: + """ + Create a new quote draft with access token. + + Args: + db: Database session + quote_data: Quote creation data + ip_address: IP address of the requester + user_agent: Browser user agent + + Returns: + Quote: The created quote object + + Example: + ```python + quote_data = QuoteCreate(employee_count=25) + quote = create_quote(db, quote_data, ip_address="192.168.1.1") + print(f"Quote created: {quote.access_token}") + ``` + """ + try: + # Create quote with unique access token + quote = Quote( + access_token=generate_access_token(), + status=QuoteStatus.DRAFT.value, + employee_count=quote_data.employee_count, + notes=quote_data.notes, + ip_address=ip_address, + user_agent=user_agent, + # Set expiration to 30 days from now + expires_at=datetime.utcnow() + timedelta(days=30) + ) + + db.add(quote) + db.flush() # Get the quote ID + + # Add initial items if provided + if quote_data.items: + for idx, item_data in enumerate(quote_data.items): + item = QuoteItem( + quote_id=quote.id, + service_name=item_data.service_name, + service_description=item_data.service_description, + category=item_data.category.value, + billing_frequency=item_data.billing_frequency.value, + unit_price=item_data.unit_price, + quantity=item_data.quantity, + setup_fee=item_data.setup_fee, + is_required=item_data.is_required, + sort_order=item_data.sort_order if item_data.sort_order else idx + ) + db.add(item) + + db.flush() + + # Calculate and update totals + monthly, setup, annual = calculate_totals(quote.items) + quote.monthly_total = monthly + quote.setup_total = setup + quote.annual_total = annual + + # Log activity + log_activity( + db=db, + quote_id=quote.id, + action="created", + description="Quote draft created", + ip_address=ip_address, + metadata={"employee_count": quote_data.employee_count} + ) + + db.commit() + db.refresh(quote) + + return quote + + except IntegrityError as e: + db.rollback() + # If token collision (extremely rare), retry once + if "access_token" in str(e.orig): + return create_quote(db, quote_data, ip_address, user_agent) + raise HTTPException( + status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, + detail=f"Database error: {str(e)}" + ) + except Exception as e: + db.rollback() + raise HTTPException( + status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, + detail=f"Failed to create quote: {str(e)}" + ) + + +def get_quote_by_token(db: Session, access_token: str) -> Quote: + """ + Retrieve a quote by its access token (public access). + + Args: + db: Database session + access_token: The quote's access token + + Returns: + Quote: The quote object with items loaded + + Raises: + HTTPException: 404 if quote not found + """ + quote = ( + db.query(Quote) + .options(joinedload(Quote.items)) + .filter(Quote.access_token == access_token) + .first() + ) + + if not quote: + raise HTTPException( + status_code=status.HTTP_404_NOT_FOUND, + detail="Quote not found" + ) + + # Check if expired + if quote.expires_at and quote.expires_at < datetime.utcnow(): + if quote.status == QuoteStatus.DRAFT.value: + quote.status = QuoteStatus.EXPIRED.value + db.commit() + + return quote + + +def get_quote_by_id(db: Session, quote_id: UUID) -> Quote: + """ + Retrieve a quote by its ID (admin access). + + Args: + db: Database session + quote_id: UUID of the quote + + Returns: + Quote: The quote object with all related data loaded + + Raises: + HTTPException: 404 if quote not found + """ + quote = ( + db.query(Quote) + .options( + joinedload(Quote.items), + joinedload(Quote.activities), + joinedload(Quote.notifications) + ) + .filter(Quote.id == str(quote_id)) + .first() + ) + + if not quote: + raise HTTPException( + status_code=status.HTTP_404_NOT_FOUND, + detail=f"Quote with ID {quote_id} not found" + ) + + return quote + + +def update_quote( + db: Session, + access_token: str, + quote_data: QuoteUpdate, + ip_address: Optional[str] = None +) -> Quote: + """ + Update a quote (add/remove items, update details). + + Only drafts can be updated. Replaces all items if items are provided. + + Args: + db: Database session + access_token: The quote's access token + quote_data: Update data + ip_address: IP address of the requester + + Returns: + Quote: The updated quote object + + Raises: + HTTPException: 404 if not found, 400 if not a draft + """ + quote = get_quote_by_token(db, access_token) + + # Only drafts can be updated + if quote.status != QuoteStatus.DRAFT.value: + raise HTTPException( + status_code=status.HTTP_400_BAD_REQUEST, + detail=f"Cannot update quote with status '{quote.status}'. Only drafts can be modified." + ) + + try: + # Update basic fields if provided + update_data = quote_data.model_dump(exclude_unset=True, exclude={"items"}) + changes = [] + + for field, value in update_data.items(): + old_value = getattr(quote, field) + if old_value != value: + setattr(quote, field, value) + changes.append(f"{field}: {old_value} -> {value}") + + # Replace items if provided + if quote_data.items is not None: + # Remove existing items + db.query(QuoteItem).filter(QuoteItem.quote_id == quote.id).delete() + + # Add new items + for idx, item_data in enumerate(quote_data.items): + item = QuoteItem( + quote_id=quote.id, + service_name=item_data.service_name, + service_description=item_data.service_description, + category=item_data.category.value, + billing_frequency=item_data.billing_frequency.value, + unit_price=item_data.unit_price, + quantity=item_data.quantity, + setup_fee=item_data.setup_fee, + is_required=item_data.is_required, + sort_order=item_data.sort_order if item_data.sort_order else idx + ) + db.add(item) + + changes.append(f"items: replaced with {len(quote_data.items)} items") + + db.flush() + + # Recalculate totals + db.refresh(quote) + monthly, setup, annual = calculate_totals(quote.items) + quote.monthly_total = monthly + quote.setup_total = setup + quote.annual_total = annual + + # Log activity + if changes: + log_activity( + db=db, + quote_id=quote.id, + action="updated", + description=f"Quote updated: {', '.join(changes)}", + ip_address=ip_address + ) + + db.commit() + db.refresh(quote) + + return quote + + except HTTPException: + db.rollback() + raise + except Exception as e: + db.rollback() + raise HTTPException( + status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, + detail=f"Failed to update quote: {str(e)}" + ) + + +def submit_quote( + db: Session, + access_token: str, + submit_data: QuoteSubmit, + ip_address: Optional[str] = None +) -> Quote: + """ + Submit a quote with contact information. + + Transitions quote from draft to submitted status. + + Args: + db: Database session + access_token: The quote's access token + submit_data: Submission data with required contact info + ip_address: IP address of the requester + + Returns: + Quote: The submitted quote object + + Raises: + HTTPException: 404 if not found, 400 if not a draft or no items + """ + quote = get_quote_by_token(db, access_token) + + # Only drafts can be submitted + if quote.status != QuoteStatus.DRAFT.value: + raise HTTPException( + status_code=status.HTTP_400_BAD_REQUEST, + detail=f"Cannot submit quote with status '{quote.status}'. Only drafts can be submitted." + ) + + # Must have at least one item + if not quote.items: + raise HTTPException( + status_code=status.HTTP_400_BAD_REQUEST, + detail="Cannot submit quote without any items. Please add at least one service." + ) + + try: + # Update contact information + quote.company_name = submit_data.company_name + quote.contact_name = submit_data.contact_name + quote.contact_email = submit_data.contact_email + quote.contact_phone = submit_data.contact_phone + if submit_data.notes: + quote.notes = submit_data.notes + + # Update status and timestamp + quote.status = QuoteStatus.SUBMITTED.value + quote.submitted_at = datetime.utcnow() + + # Extend expiration to 90 days from submission + quote.expires_at = datetime.utcnow() + timedelta(days=90) + + # Log activity + log_activity( + db=db, + quote_id=quote.id, + action="submitted", + description=f"Quote submitted by {submit_data.contact_name} ({submit_data.contact_email})", + actor=submit_data.contact_email, + ip_address=ip_address, + metadata={ + "company_name": submit_data.company_name, + "contact_email": submit_data.contact_email, + "monthly_total": str(quote.monthly_total), + "setup_total": str(quote.setup_total) + } + ) + + # Create admin notification record (actual sending would be handled elsewhere) + notification = QuoteNotification( + quote_id=quote.id, + notification_type="admin_alert", + recipient="admin@example.com", # Would come from config in production + subject=f"New Quote Submission: {submit_data.company_name}", + content=f"Quote submitted by {submit_data.contact_name}. Monthly: ${quote.monthly_total}", + status="pending" + ) + db.add(notification) + + db.commit() + db.refresh(quote) + + return quote + + except HTTPException: + db.rollback() + raise + except Exception as e: + db.rollback() + raise HTTPException( + status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, + detail=f"Failed to submit quote: {str(e)}" + ) + + +async def sync_quote_to_syncro(db: Session, quote: Quote) -> dict: + """ + Sync a submitted quote to SyncroRMM. + + Checks for existing customer and creates a lead in Syncro. Updates the + quote with sync status and existing customer flag. + + This function is designed to be called after submit_quote() completes, + typically as a background task or in the API endpoint. It handles all + Syncro API errors gracefully to avoid blocking the quote submission. + + Args: + db: Database session + quote: The submitted quote object (must have contact_email) + + Returns: + dict: Sync result with keys: + - synced: bool - Whether lead was created successfully + - is_existing_customer: bool - Whether customer already exists + - syncro_lead_id: str|None - Lead ID if created + - error: str|None - Error message if sync failed + + Example: + ```python + quote = submit_quote(db, access_token, submit_data, ip_address) + sync_result = await sync_quote_to_syncro(db, quote) + if sync_result["synced"]: + print(f"Lead created: {sync_result['syncro_lead_id']}") + ``` + """ + result = { + "synced": False, + "is_existing_customer": False, + "syncro_lead_id": None, + "error": None + } + + if not quote.contact_email: + result["error"] = "Quote has no contact email" + return result + + try: + syncro = get_syncro_service() + + # Check for existing customer + customer_check = await syncro.check_existing_customer( + email=quote.contact_email, + business_name=quote.company_name + ) + + if customer_check.exists: + quote.is_existing_customer = True + result["is_existing_customer"] = True + + logger.info( + f"Quote {quote.id} is from existing customer: " + f"{customer_check.customer_name} (ID: {customer_check.customer_id}, " + f"match: {customer_check.match_type})" + ) + + # Log activity for existing customer + log_activity( + db=db, + quote_id=quote.id, + action="syncro_customer_found", + description=f"Existing Syncro customer found: {customer_check.customer_name}", + metadata={ + "syncro_customer_id": customer_check.customer_id, + "match_type": customer_check.match_type + } + ) + + # Create lead in Syncro + lead_result = await syncro.create_lead(quote) + + if lead_result.success: + quote.syncro_lead_id = lead_result.lead_id + quote.syncro_synced_at = datetime.utcnow() + result["synced"] = True + result["syncro_lead_id"] = lead_result.lead_id + + # Log activity for successful sync + log_activity( + db=db, + quote_id=quote.id, + action="syncro_lead_created", + description=f"Lead created in Syncro: {lead_result.lead_id}", + metadata={ + "syncro_lead_id": lead_result.lead_id, + "is_existing_customer": customer_check.exists + } + ) + else: + result["error"] = lead_result.error + logger.warning( + f"Failed to create Syncro lead for quote {quote.id}: {lead_result.error}" + ) + + # Log activity for failed sync + log_activity( + db=db, + quote_id=quote.id, + action="syncro_sync_failed", + description=f"Failed to sync to Syncro: {lead_result.error}", + metadata={"error": lead_result.error} + ) + + # Commit the updates to quote + db.commit() + db.refresh(quote) + + except Exception as e: + # Log error but don't fail the overall operation + error_msg = str(e) + result["error"] = error_msg + logger.error( + f"Unexpected error syncing quote {quote.id} to Syncro: {error_msg}", + exc_info=True + ) + + try: + log_activity( + db=db, + quote_id=quote.id, + action="syncro_sync_error", + description=f"Syncro sync error: {error_msg}", + metadata={"error": error_msg} + ) + db.commit() + except Exception: + db.rollback() + + return result + + +def list_quotes( + db: Session, + skip: int = 0, + limit: int = 100, + status_filter: Optional[str] = None, + search: Optional[str] = None +) -> tuple[list[Quote], int]: + """ + List quotes with pagination and optional filters (admin). + + Args: + db: Database session + skip: Number of records to skip + limit: Maximum number of records to return + status_filter: Filter by status + search: Search in company_name, contact_name, contact_email + + Returns: + tuple: (list of quotes, total count) + """ + query = db.query(Quote).options(joinedload(Quote.items)) + + # Apply filters + if status_filter: + query = query.filter(Quote.status == status_filter) + + if search: + search_term = f"%{search}%" + query = query.filter( + (Quote.company_name.ilike(search_term)) | + (Quote.contact_name.ilike(search_term)) | + (Quote.contact_email.ilike(search_term)) + ) + + # Get total count before pagination + total = query.count() + + # Apply pagination and ordering + quotes = ( + query + .order_by(Quote.created_at.desc()) + .offset(skip) + .limit(limit) + .all() + ) + + return quotes, total + + +def update_quote_status( + db: Session, + quote_id: UUID, + update_data: QuoteAdminUpdate, + admin_user: str +) -> Quote: + """ + Update quote status and admin notes (admin). + + Args: + db: Database session + quote_id: UUID of the quote + update_data: Admin update data + admin_user: Username of the admin making the change + + Returns: + Quote: The updated quote object + """ + quote = get_quote_by_id(db, quote_id) + + try: + changes = [] + + if update_data.status is not None and update_data.status.value != quote.status: + old_status = quote.status + quote.status = update_data.status.value + changes.append(f"status: {old_status} -> {update_data.status.value}") + + if update_data.admin_notes is not None: + quote.admin_notes = update_data.admin_notes + changes.append("admin_notes updated") + + if update_data.expires_at is not None: + quote.expires_at = update_data.expires_at + changes.append(f"expires_at: {update_data.expires_at}") + + # Log activity + if changes: + log_activity( + db=db, + quote_id=quote.id, + action="admin_update", + description=f"Admin update: {', '.join(changes)}", + actor=admin_user + ) + + db.commit() + db.refresh(quote) + + return quote + + except Exception as e: + db.rollback() + raise HTTPException( + status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, + detail=f"Failed to update quote status: {str(e)}" + ) + + +def get_quote_stats(db: Session) -> QuoteStatsResponse: + """ + Get dashboard statistics for quotes (admin). + + Args: + db: Database session + + Returns: + QuoteStatsResponse: Statistics about quotes + """ + # Total quotes + total_quotes = db.query(Quote).count() + + # Quotes by status + status_counts = ( + db.query(Quote.status, func.count(Quote.id)) + .group_by(Quote.status) + .all() + ) + quotes_by_status = {status: count for status, count in status_counts} + + # Total values for submitted quotes + submitted_statuses = [ + QuoteStatus.SUBMITTED.value, + QuoteStatus.REVIEWING.value, + QuoteStatus.APPROVED.value + ] + value_query = ( + db.query( + func.sum(Quote.monthly_total), + func.sum(Quote.setup_total) + ) + .filter(Quote.status.in_(submitted_statuses)) + .first() + ) + total_monthly_value = value_query[0] or Decimal("0.00") + total_setup_value = value_query[1] or Decimal("0.00") + + # Quotes this month + month_start = datetime.utcnow().replace(day=1, hour=0, minute=0, second=0, microsecond=0) + quotes_this_month = ( + db.query(Quote) + .filter(Quote.created_at >= month_start) + .count() + ) + + # Quotes submitted this month + quotes_submitted_this_month = ( + db.query(Quote) + .filter( + Quote.submitted_at >= month_start, + Quote.submitted_at.isnot(None) + ) + .count() + ) + + # Calculate averages and conversion rate + submitted_count = sum( + quotes_by_status.get(s, 0) + for s in submitted_statuses + ) + + average_monthly_value = ( + total_monthly_value / submitted_count + if submitted_count > 0 + else Decimal("0.00") + ) + + draft_count = quotes_by_status.get(QuoteStatus.DRAFT.value, 0) + total_started = draft_count + submitted_count + conversion_rate = ( + (Decimal(submitted_count) / Decimal(total_started) * Decimal("100")) + if total_started > 0 + else Decimal("0.00") + ) + + return QuoteStatsResponse( + total_quotes=total_quotes, + quotes_by_status=quotes_by_status, + total_monthly_value=total_monthly_value, + total_setup_value=total_setup_value, + quotes_this_month=quotes_this_month, + quotes_submitted_this_month=quotes_submitted_this_month, + average_monthly_value=round(average_monthly_value, 2), + conversion_rate=round(conversion_rate, 2) + ) + + +def add_item_to_quote( + db: Session, + access_token: str, + item_data: QuoteItemCreate, + ip_address: Optional[str] = None +) -> Quote: + """ + Add a single item to a quote. + + Args: + db: Database session + access_token: The quote's access token + item_data: Item data to add + ip_address: IP address of the requester + + Returns: + Quote: The updated quote object + """ + quote = get_quote_by_token(db, access_token) + + if quote.status != QuoteStatus.DRAFT.value: + raise HTTPException( + status_code=status.HTTP_400_BAD_REQUEST, + detail="Cannot add items to a non-draft quote" + ) + + try: + # Get next sort order + max_order = ( + db.query(func.max(QuoteItem.sort_order)) + .filter(QuoteItem.quote_id == quote.id) + .scalar() + ) or 0 + + item = QuoteItem( + quote_id=quote.id, + service_name=item_data.service_name, + service_description=item_data.service_description, + category=item_data.category.value, + billing_frequency=item_data.billing_frequency.value, + unit_price=item_data.unit_price, + quantity=item_data.quantity, + setup_fee=item_data.setup_fee, + is_required=item_data.is_required, + sort_order=item_data.sort_order if item_data.sort_order else max_order + 1 + ) + db.add(item) + db.flush() + + # Recalculate totals + db.refresh(quote) + monthly, setup, annual = calculate_totals(quote.items) + quote.monthly_total = monthly + quote.setup_total = setup + quote.annual_total = annual + + # Log activity + log_activity( + db=db, + quote_id=quote.id, + action="item_added", + description=f"Added item: {item_data.service_name}", + ip_address=ip_address + ) + + db.commit() + db.refresh(quote) + + return quote + + except HTTPException: + db.rollback() + raise + except Exception as e: + db.rollback() + raise HTTPException( + status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, + detail=f"Failed to add item: {str(e)}" + ) + + +def remove_item_from_quote( + db: Session, + access_token: str, + item_id: UUID, + ip_address: Optional[str] = None +) -> Quote: + """ + Remove an item from a quote. + + Args: + db: Database session + access_token: The quote's access token + item_id: UUID of the item to remove + ip_address: IP address of the requester + + Returns: + Quote: The updated quote object + """ + quote = get_quote_by_token(db, access_token) + + if quote.status != QuoteStatus.DRAFT.value: + raise HTTPException( + status_code=status.HTTP_400_BAD_REQUEST, + detail="Cannot remove items from a non-draft quote" + ) + + # Find the item + item = ( + db.query(QuoteItem) + .filter(QuoteItem.id == str(item_id), QuoteItem.quote_id == quote.id) + .first() + ) + + if not item: + raise HTTPException( + status_code=status.HTTP_404_NOT_FOUND, + detail=f"Item with ID {item_id} not found in this quote" + ) + + if item.is_required: + raise HTTPException( + status_code=status.HTTP_400_BAD_REQUEST, + detail="Cannot remove required items from the quote" + ) + + try: + item_name = item.service_name + db.delete(item) + db.flush() + + # Recalculate totals + db.refresh(quote) + monthly, setup, annual = calculate_totals(quote.items) + quote.monthly_total = monthly + quote.setup_total = setup + quote.annual_total = annual + + # Log activity + log_activity( + db=db, + quote_id=quote.id, + action="item_removed", + description=f"Removed item: {item_name}", + ip_address=ip_address + ) + + db.commit() + db.refresh(quote) + + return quote + + except HTTPException: + db.rollback() + raise + except Exception as e: + db.rollback() + raise HTTPException( + status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, + detail=f"Failed to remove item: {str(e)}" + ) diff --git a/api/services/syncro_service.py b/api/services/syncro_service.py new file mode 100644 index 0000000..0793bfe --- /dev/null +++ b/api/services/syncro_service.py @@ -0,0 +1,445 @@ +""" +SyncroRMM integration service for Quote Wizard. + +This module handles all interactions with the SyncroRMM API for lead creation +and customer duplicate detection when quotes are submitted. + +API Documentation: https://api-docs.syncromsp.com/ +""" + +import logging +from dataclasses import dataclass +from datetime import datetime +from decimal import Decimal +from typing import Optional, TYPE_CHECKING + +import httpx + +if TYPE_CHECKING: + from api.models.quote import Quote + +logger = logging.getLogger(__name__) + +# TODO: Move to environment variables or secure configuration for production +SYNCRO_API_BASE_URL = "https://computerguru.syncromsp.com/api/v1" +SYNCRO_API_KEY = "T259810e5c9917386b-52c2aeea7cdb5ff41c6685a73cebbeb3" + +# HTTP client configuration +SYNCRO_TIMEOUT_SECONDS = 30.0 +SYNCRO_CONNECT_TIMEOUT_SECONDS = 10.0 + + +@dataclass +class CustomerCheckResult: + """Result of checking for an existing customer in Syncro.""" + exists: bool + customer_id: Optional[str] = None + customer_name: Optional[str] = None + match_type: Optional[str] = None # 'email' or 'business_name' + + +@dataclass +class LeadCreationResult: + """Result of creating a lead in Syncro.""" + success: bool + lead_id: Optional[str] = None + error: Optional[str] = None + + +class SyncroService: + """ + Service for interacting with the SyncroRMM API. + + Handles customer duplicate checking and lead creation for the Quote Wizard. + All API calls are made asynchronously to avoid blocking quote submission. + + Example: + ```python + syncro = SyncroService() + + # Check for existing customer + result = await syncro.check_existing_customer( + email="contact@company.com", + business_name="Company Inc" + ) + if result.exists: + print(f"Customer exists: {result.customer_name}") + + # Create lead from quote + lead_result = await syncro.create_lead(quote) + if lead_result.success: + print(f"Lead created: {lead_result.lead_id}") + ``` + """ + + def __init__( + self, + api_base_url: str = SYNCRO_API_BASE_URL, + api_key: str = SYNCRO_API_KEY, + timeout: float = SYNCRO_TIMEOUT_SECONDS, + connect_timeout: float = SYNCRO_CONNECT_TIMEOUT_SECONDS + ): + """ + Initialize the SyncroService. + + Args: + api_base_url: Base URL for the Syncro API + api_key: API key for authentication + timeout: Total request timeout in seconds + connect_timeout: Connection timeout in seconds + """ + self.api_base_url = api_base_url.rstrip('/') + self.api_key = api_key + self.timeout = httpx.Timeout(timeout, connect=connect_timeout) + + def _get_client(self) -> httpx.AsyncClient: + """ + Create an async HTTP client with configured settings. + + Returns: + httpx.AsyncClient: Configured HTTP client + """ + return httpx.AsyncClient( + timeout=self.timeout, + headers={ + "Content-Type": "application/json", + "Accept": "application/json" + } + ) + + def _build_url(self, endpoint: str, **params) -> str: + """ + Build a full API URL with the api_key parameter. + + Args: + endpoint: API endpoint path (e.g., '/customers') + **params: Additional query parameters + + Returns: + str: Full URL with query parameters + """ + url = f"{self.api_base_url}{endpoint}" + query_params = {"api_key": self.api_key, **params} + + # Build query string + query_string = "&".join( + f"{key}={httpx.URL('').copy_with(params={key: str(value)}).params[key]}" + for key, value in query_params.items() + if value is not None + ) + + return f"{url}?{query_string}" + + async def check_existing_customer( + self, + email: str, + business_name: Optional[str] = None + ) -> CustomerCheckResult: + """ + Check if a customer already exists in Syncro. + + Performs a two-stage check: + 1. Search by email address (primary) + 2. Search by business name if no email match (secondary) + + Args: + email: Contact email address to search for + business_name: Optional business name for secondary search + + Returns: + CustomerCheckResult: Object containing match status and details + + Note: + This method handles errors gracefully and returns a non-match + result if the API is unavailable, to avoid blocking quote submission. + """ + async with self._get_client() as client: + # First, check by email + try: + email_result = await self._search_customers_by_email(client, email) + if email_result.exists: + return email_result + except Exception as e: + logger.warning( + f"Syncro email search failed for {email}: {e}", + exc_info=True + ) + # Continue to business name search if email search fails + + # If no email match, try business name + if business_name: + try: + name_result = await self._search_customers_by_business_name( + client, business_name + ) + if name_result.exists: + return name_result + except Exception as e: + logger.warning( + f"Syncro business name search failed for {business_name}: {e}", + exc_info=True + ) + + # No matches found + return CustomerCheckResult(exists=False) + + async def _search_customers_by_email( + self, + client: httpx.AsyncClient, + email: str + ) -> CustomerCheckResult: + """ + Search for customers by email address. + + Args: + client: HTTP client instance + email: Email address to search for + + Returns: + CustomerCheckResult: Match result + + Raises: + httpx.HTTPError: If the API request fails + """ + url = self._build_url("/customers", email=email) + + response = await client.get(url) + response.raise_for_status() + + data = response.json() + customers = data.get("customers", []) + + if customers: + customer = customers[0] + return CustomerCheckResult( + exists=True, + customer_id=str(customer.get("id")), + customer_name=customer.get("business_name") or customer.get("fullname"), + match_type="email" + ) + + return CustomerCheckResult(exists=False) + + async def _search_customers_by_business_name( + self, + client: httpx.AsyncClient, + business_name: str + ) -> CustomerCheckResult: + """ + Search for customers by business name. + + Args: + client: HTTP client instance + business_name: Business name to search for + + Returns: + CustomerCheckResult: Match result + + Raises: + httpx.HTTPError: If the API request fails + """ + url = self._build_url("/customers", business_name=business_name) + + response = await client.get(url) + response.raise_for_status() + + data = response.json() + customers = data.get("customers", []) + + if customers: + # Look for exact match or very close match + normalized_search = business_name.lower().strip() + for customer in customers: + customer_name = customer.get("business_name", "").lower().strip() + if customer_name == normalized_search: + return CustomerCheckResult( + exists=True, + customer_id=str(customer.get("id")), + customer_name=customer.get("business_name"), + match_type="business_name" + ) + + return CustomerCheckResult(exists=False) + + async def create_lead(self, quote: "Quote") -> LeadCreationResult: + """ + Create a lead in Syncro from a submitted quote. + + Builds a formatted lead with quote details in the notes field. + + Args: + quote: Quote object with contact info and items + + Returns: + LeadCreationResult: Object containing success status and lead ID + + Note: + This method handles errors gracefully to avoid blocking quote + submission. Errors are logged but not raised. + """ + if not quote.contact_email: + return LeadCreationResult( + success=False, + error="Quote has no contact email" + ) + + # Parse contact name into first/last + first_name, last_name = self._parse_contact_name(quote.contact_name or "") + + # Build formatted notes with quote summary + notes = self._build_quote_summary(quote) + + lead_data = { + "business_name": quote.company_name or "", + "first_name": first_name, + "last_name": last_name, + "email": quote.contact_email, + "phone": quote.contact_phone or "", + "address": "", + "referred_by": "Website Quote Tool", + "status": "New", + "notes": notes + } + + try: + async with self._get_client() as client: + url = self._build_url("/leads") + + response = await client.post(url, json=lead_data) + response.raise_for_status() + + data = response.json() + lead_id = str(data.get("lead", {}).get("id", "")) + + if lead_id: + logger.info( + f"Created Syncro lead {lead_id} for quote {quote.id}" + ) + return LeadCreationResult(success=True, lead_id=lead_id) + else: + logger.warning( + f"Syncro lead creation returned no ID for quote {quote.id}" + ) + return LeadCreationResult( + success=False, + error="No lead ID returned from Syncro" + ) + + except httpx.TimeoutException as e: + error_msg = f"Syncro API timeout: {e}" + logger.error(f"{error_msg} for quote {quote.id}") + return LeadCreationResult(success=False, error=error_msg) + + except httpx.HTTPStatusError as e: + error_msg = f"Syncro API error {e.response.status_code}: {e.response.text}" + logger.error(f"{error_msg} for quote {quote.id}") + return LeadCreationResult(success=False, error=error_msg) + + except Exception as e: + error_msg = f"Unexpected error: {str(e)}" + logger.error(f"{error_msg} for quote {quote.id}", exc_info=True) + return LeadCreationResult(success=False, error=error_msg) + + def _parse_contact_name(self, full_name: str) -> tuple[str, str]: + """ + Parse a full name into first and last name components. + + Args: + full_name: Full contact name + + Returns: + tuple: (first_name, last_name) + """ + parts = full_name.strip().split(maxsplit=1) + + if len(parts) == 0: + return ("", "") + elif len(parts) == 1: + return (parts[0], "") + else: + return (parts[0], parts[1]) + + def _build_quote_summary(self, quote: "Quote") -> str: + """ + Build formatted notes from quote items for Syncro lead. + + Creates a human-readable summary of the quote including: + - Quote reference number + - Monthly and setup totals + - List of selected services with pricing + - Customer notes if provided + + Args: + quote: Quote object with items + + Returns: + str: Formatted notes string for Syncro lead + """ + lines = [] + + # Quote reference + access_token_short = quote.access_token[:8] if quote.access_token else "N/A" + lines.append(f"Quote #{access_token_short}") + lines.append("") + + # Totals + monthly_total = quote.monthly_total or Decimal("0.00") + setup_total = quote.setup_total or Decimal("0.00") + + lines.append(f"Monthly: ${monthly_total:,.2f}") + if setup_total > 0: + lines.append(f"Setup: ${setup_total:,.2f}") + lines.append("") + + # Services + lines.append("Services:") + + if hasattr(quote, 'items') and quote.items: + for item in sorted(quote.items, key=lambda x: x.sort_order or 0): + quantity = item.quantity or 1 + unit_price = item.unit_price or Decimal("0.00") + line_total = quantity * unit_price + + if quantity > 1: + lines.append( + f"- {item.service_name} ({quantity} x ${unit_price:,.2f}): " + f"${line_total:,.2f}/mo" + ) + else: + lines.append(f"- {item.service_name}: ${unit_price:,.2f}/mo") + + # Add setup fee if present + if item.setup_fee and item.setup_fee > 0: + lines.append(f" Setup: ${item.setup_fee:,.2f}") + else: + lines.append("- No items") + + # Employee count + if quote.employee_count: + lines.append("") + lines.append(f"Employees/Users: {quote.employee_count}") + + # Customer notes + if quote.notes: + lines.append("") + lines.append("Customer Notes:") + lines.append(quote.notes) + + return "\n".join(lines) + + +# Singleton instance for convenience +_syncro_service: Optional[SyncroService] = None + + +def get_syncro_service() -> SyncroService: + """ + Get or create the singleton SyncroService instance. + + Returns: + SyncroService: The service instance + """ + global _syncro_service + if _syncro_service is None: + _syncro_service = SyncroService() + return _syncro_service diff --git a/migrations/versions/20260309_074038_msp_quote_wizard_tables.py b/migrations/versions/20260309_074038_msp_quote_wizard_tables.py new file mode 100644 index 0000000..3993708 --- /dev/null +++ b/migrations/versions/20260309_074038_msp_quote_wizard_tables.py @@ -0,0 +1,156 @@ +"""MSP Quote Wizard Tables + +Revision ID: 20260309_074038 +Revises: a0dfb0b4373c +Create Date: 2026-03-09 07:40:38 + +Creates the MSP Quote Wizard tables: +- quotes: Main quote records with contact info, pricing, and tracking +- quote_items: Line items for each quote (services, products, addons) +- quote_activity: Activity log for quote interactions +- quote_notifications: Email/webhook notification queue +""" +from typing import Sequence, Union + +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision: str = '20260309_074038' +down_revision: Union[str, None] = 'a0dfb0b4373c' +branch_labels: Union[str, Sequence[str], None] = None +depends_on: Union[str, Sequence[str], None] = None + + +def upgrade() -> None: + """Create MSP Quote Wizard tables.""" + + # 1. Create quotes table - main quote records + op.create_table( + 'quotes', + sa.Column('id', sa.CHAR(36), primary_key=True), + sa.Column('company_name', sa.String(255), nullable=True), + sa.Column('contact_name', sa.String(255), nullable=False), + sa.Column('contact_email', sa.String(255), nullable=False), + sa.Column('contact_phone', sa.String(50), nullable=True), + sa.Column('employee_count', sa.Integer(), nullable=True), + sa.Column('industry', sa.String(100), nullable=True), + sa.Column('current_it_situation', sa.Text(), nullable=True), + sa.Column('status', sa.Enum('draft', 'submitted', 'viewed', 'followed_up', 'converted', 'expired', name='quote_status'), server_default='draft'), + sa.Column('access_token', sa.String(64), unique=True, nullable=False), + sa.Column('monthly_total', sa.DECIMAL(10, 2), server_default='0'), + sa.Column('setup_total', sa.DECIMAL(10, 2), server_default='0'), + sa.Column('syncro_lead_id', sa.String(100), nullable=True), + sa.Column('syncro_synced_at', sa.DateTime(), nullable=True), + sa.Column('is_existing_customer', sa.Boolean(), server_default='0'), + sa.Column('source', sa.String(50), server_default='website'), + sa.Column('utm_source', sa.String(100), nullable=True), + sa.Column('utm_medium', sa.String(100), nullable=True), + sa.Column('utm_campaign', sa.String(100), nullable=True), + sa.Column('ip_address', sa.String(45), nullable=True), + sa.Column('user_agent', sa.Text(), nullable=True), + sa.Column('created_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP')), + sa.Column('updated_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP')), + sa.Column('submitted_at', sa.DateTime(), nullable=True), + sa.Column('expires_at', sa.DateTime(), nullable=True), + ) + + # Indexes for quotes table + op.create_index('idx_quotes_status', 'quotes', ['status']) + op.create_index('idx_quotes_email', 'quotes', ['contact_email']) + op.create_index('idx_quotes_created', 'quotes', ['created_at']) + op.create_index('idx_quotes_token', 'quotes', ['access_token']) + + # 2. Create quote_items table - line items for each quote + op.create_table( + 'quote_items', + sa.Column('id', sa.CHAR(36), primary_key=True), + sa.Column('quote_id', sa.CHAR(36), nullable=False), + sa.Column('category', sa.Enum('gps_monitoring', 'support_plan', 'voip', 'web_hosting', 'email', 'hardware', 'addon', name='quote_item_category'), nullable=False), + sa.Column('product_code', sa.String(50), nullable=False), + sa.Column('product_name', sa.String(255), nullable=False), + sa.Column('description', sa.Text(), nullable=True), + sa.Column('quantity', sa.Integer(), server_default='1'), + sa.Column('unit_price', sa.DECIMAL(10, 2), nullable=False), + sa.Column('setup_price', sa.DECIMAL(10, 2), server_default='0'), + sa.Column('billing_frequency', sa.Enum('monthly', 'yearly', 'one_time', name='billing_frequency'), server_default='monthly'), + sa.Column('tier', sa.String(50), nullable=True), + sa.Column('is_recommended', sa.Boolean(), server_default='0'), + sa.Column('created_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP')), + sa.ForeignKeyConstraint(['quote_id'], ['quotes.id'], ondelete='CASCADE'), + ) + + # Indexes for quote_items table + op.create_index('idx_quote_items_quote', 'quote_items', ['quote_id']) + op.create_index('idx_quote_items_category', 'quote_items', ['category']) + + # 3. Create quote_activity table - activity log for quotes + op.create_table( + 'quote_activity', + sa.Column('id', sa.CHAR(36), primary_key=True), + sa.Column('quote_id', sa.CHAR(36), nullable=False), + sa.Column('action', sa.String(50), nullable=False), + sa.Column('step_name', sa.String(50), nullable=True), + sa.Column('details', sa.JSON(), nullable=True), + sa.Column('ip_address', sa.String(45), nullable=True), + sa.Column('created_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP')), + sa.ForeignKeyConstraint(['quote_id'], ['quotes.id'], ondelete='CASCADE'), + ) + + # Index for quote_activity table + op.create_index('idx_quote_activity_quote', 'quote_activity', ['quote_id']) + + # 4. Create quote_notifications table - notification queue + op.create_table( + 'quote_notifications', + sa.Column('id', sa.CHAR(36), primary_key=True), + sa.Column('quote_id', sa.CHAR(36), nullable=False), + sa.Column('notification_type', sa.Enum('email', 'webhook', name='notification_type'), nullable=False), + sa.Column('recipient', sa.String(255), nullable=False), + sa.Column('subject', sa.String(255), nullable=True), + sa.Column('body', sa.Text(), nullable=True), + sa.Column('status', sa.Enum('pending', 'sent', 'failed', name='notification_status'), server_default='pending'), + sa.Column('attempts', sa.Integer(), server_default='0'), + sa.Column('last_attempt_at', sa.DateTime(), nullable=True), + sa.Column('sent_at', sa.DateTime(), nullable=True), + sa.Column('error_message', sa.Text(), nullable=True), + sa.Column('created_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP')), + sa.ForeignKeyConstraint(['quote_id'], ['quotes.id'], ondelete='CASCADE'), + ) + + # Indexes for quote_notifications table + op.create_index('idx_notifications_status', 'quote_notifications', ['status']) + op.create_index('idx_notifications_quote', 'quote_notifications', ['quote_id']) + + +def downgrade() -> None: + """Drop MSP Quote Wizard tables in reverse order.""" + + # Drop quote_notifications and its indexes + op.drop_index('idx_notifications_quote', table_name='quote_notifications') + op.drop_index('idx_notifications_status', table_name='quote_notifications') + op.drop_table('quote_notifications') + + # Drop quote_activity and its index + op.drop_index('idx_quote_activity_quote', table_name='quote_activity') + op.drop_table('quote_activity') + + # Drop quote_items and its indexes + op.drop_index('idx_quote_items_category', table_name='quote_items') + op.drop_index('idx_quote_items_quote', table_name='quote_items') + op.drop_table('quote_items') + + # Drop quotes and its indexes + op.drop_index('idx_quotes_token', table_name='quotes') + op.drop_index('idx_quotes_created', table_name='quotes') + op.drop_index('idx_quotes_email', table_name='quotes') + op.drop_index('idx_quotes_status', table_name='quotes') + op.drop_table('quotes') + + # Drop the enum types + op.execute("DROP TYPE IF EXISTS notification_status") + op.execute("DROP TYPE IF EXISTS notification_type") + op.execute("DROP TYPE IF EXISTS billing_frequency") + op.execute("DROP TYPE IF EXISTS quote_item_category") + op.execute("DROP TYPE IF EXISTS quote_status") diff --git a/projects/msp-tools/quote-wizard/frontend/.gitignore b/projects/msp-tools/quote-wizard/frontend/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/projects/msp-tools/quote-wizard/frontend/README.md b/projects/msp-tools/quote-wizard/frontend/README.md new file mode 100644 index 0000000..d2e7761 --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/README.md @@ -0,0 +1,73 @@ +# React + TypeScript + Vite + +This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. + +Currently, two official plugins are available: + +- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh +- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh + +## React Compiler + +The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). + +## Expanding the ESLint configuration + +If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules: + +```js +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + // Other configs... + + // Remove tseslint.configs.recommended and replace with this + tseslint.configs.recommendedTypeChecked, + // Alternatively, use this for stricter rules + tseslint.configs.strictTypeChecked, + // Optionally, add this for stylistic rules + tseslint.configs.stylisticTypeChecked, + + // Other configs... + ], + languageOptions: { + parserOptions: { + project: ['./tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: import.meta.dirname, + }, + // other options... + }, + }, +]) +``` + +You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules: + +```js +// eslint.config.js +import reactX from 'eslint-plugin-react-x' +import reactDom from 'eslint-plugin-react-dom' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + // Other configs... + // Enable lint rules for React + reactX.configs['recommended-typescript'], + // Enable lint rules for React DOM + reactDom.configs.recommended, + ], + languageOptions: { + parserOptions: { + project: ['./tsconfig.node.json', './tsconfig.app.json'], + tsconfigRootDir: import.meta.dirname, + }, + // other options... + }, + }, +]) +``` diff --git a/projects/msp-tools/quote-wizard/frontend/eslint.config.js b/projects/msp-tools/quote-wizard/frontend/eslint.config.js new file mode 100644 index 0000000..5e6b472 --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/eslint.config.js @@ -0,0 +1,23 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import tseslint from 'typescript-eslint' +import { defineConfig, globalIgnores } from 'eslint/config' + +export default defineConfig([ + globalIgnores(['dist']), + { + files: ['**/*.{ts,tsx}'], + extends: [ + js.configs.recommended, + tseslint.configs.recommended, + reactHooks.configs.flat.recommended, + reactRefresh.configs.vite, + ], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + }, +]) diff --git a/projects/msp-tools/quote-wizard/frontend/index.html b/projects/msp-tools/quote-wizard/frontend/index.html new file mode 100644 index 0000000..77b57f6 --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/index.html @@ -0,0 +1,14 @@ + + + + + + + + MSP Quote Wizard | AZ Computer Guru + + +
+ + + diff --git a/projects/msp-tools/quote-wizard/frontend/package-lock.json b/projects/msp-tools/quote-wizard/frontend/package-lock.json new file mode 100644 index 0000000..a583c74 --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/package-lock.json @@ -0,0 +1,4180 @@ +{ + "name": "msp-quote-wizard", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "msp-quote-wizard", + "version": "0.1.0", + "dependencies": { + "@tailwindcss/vite": "^4.2.1", + "@tanstack/react-query": "^5.90.21", + "axios": "^1.13.6", + "clsx": "^2.1.1", + "framer-motion": "^12.35.2", + "lucide-react": "^0.577.0", + "react": "^19.2.0", + "react-dom": "^19.2.0", + "tailwindcss": "^4.2.1" + }, + "devDependencies": { + "@eslint/js": "^9.39.1", + "@types/node": "^24.10.1", + "@types/react": "^19.2.7", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^5.1.1", + "eslint": "^9.39.1", + "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-refresh": "^0.4.24", + "globals": "^16.5.0", + "typescript": "~5.9.3", + "typescript-eslint": "^8.48.0", + "vite": "^7.3.1" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", + "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz", + "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", + "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.28.6", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", + "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz", + "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz", + "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz", + "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz", + "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz", + "integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.3.tgz", + "integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz", + "integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.3.tgz", + "integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz", + "integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz", + "integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz", + "integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz", + "integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz", + "integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz", + "integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz", + "integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz", + "integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz", + "integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==", + "cpu": [ + "mips64el" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz", + "integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz", + "integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz", + "integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz", + "integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz", + "integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz", + "integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz", + "integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz", + "integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz", + "integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz", + "integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz", + "integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz", + "integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz", + "integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz", + "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/config-array": { + "version": "0.21.2", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.2.tgz", + "integrity": "sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.7", + "debug": "^4.3.1", + "minimatch": "^3.1.5" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/config-helpers": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", + "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", + "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.5.tgz", + "integrity": "sha512-4IlJx0X0qftVsN5E+/vGujTRIFtwuLbNsVUe7TO6zYPDR1O6nFwvwhIKEKSrl6dZchmYBITazxKoUYOjdtjlRg==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.14.0", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.1", + "minimatch": "^3.1.5", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "9.39.4", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.4.tgz", + "integrity": "sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", + "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", + "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.17.0", + "levn": "^0.4.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@humanfs/core": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", + "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanfs/node": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz", + "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanfs/core": "^0.19.1", + "@humanwhocodes/retry": "^0.4.0" + }, + "engines": { + "node": ">=18.18.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/retry": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-rc.3", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz", + "integrity": "sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz", + "integrity": "sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.59.0.tgz", + "integrity": "sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.59.0.tgz", + "integrity": "sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.59.0.tgz", + "integrity": "sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.59.0.tgz", + "integrity": "sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.59.0.tgz", + "integrity": "sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.59.0.tgz", + "integrity": "sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.59.0.tgz", + "integrity": "sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.59.0.tgz", + "integrity": "sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.59.0.tgz", + "integrity": "sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.59.0.tgz", + "integrity": "sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.59.0.tgz", + "integrity": "sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.59.0.tgz", + "integrity": "sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.59.0.tgz", + "integrity": "sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.59.0.tgz", + "integrity": "sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.59.0.tgz", + "integrity": "sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.59.0.tgz", + "integrity": "sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.59.0.tgz", + "integrity": "sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.59.0.tgz", + "integrity": "sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.59.0.tgz", + "integrity": "sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.59.0.tgz", + "integrity": "sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.59.0.tgz", + "integrity": "sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.59.0.tgz", + "integrity": "sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.59.0.tgz", + "integrity": "sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.59.0.tgz", + "integrity": "sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@tailwindcss/node": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.2.1.tgz", + "integrity": "sha512-jlx6sLk4EOwO6hHe1oCGm1Q4AN/s0rSrTTPBGPM0/RQ6Uylwq17FuU8IeJJKEjtc6K6O07zsvP+gDO6MMWo7pg==", + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "enhanced-resolve": "^5.19.0", + "jiti": "^2.6.1", + "lightningcss": "1.31.1", + "magic-string": "^0.30.21", + "source-map-js": "^1.2.1", + "tailwindcss": "4.2.1" + } + }, + "node_modules/@tailwindcss/oxide": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.2.1.tgz", + "integrity": "sha512-yv9jeEFWnjKCI6/T3Oq50yQEOqmpmpfzG1hcZsAOaXFQPfzWprWrlHSdGPEF3WQTi8zu8ohC9Mh9J470nT5pUw==", + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.2.1", + "@tailwindcss/oxide-darwin-arm64": "4.2.1", + "@tailwindcss/oxide-darwin-x64": "4.2.1", + "@tailwindcss/oxide-freebsd-x64": "4.2.1", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.2.1", + "@tailwindcss/oxide-linux-arm64-gnu": "4.2.1", + "@tailwindcss/oxide-linux-arm64-musl": "4.2.1", + "@tailwindcss/oxide-linux-x64-gnu": "4.2.1", + "@tailwindcss/oxide-linux-x64-musl": "4.2.1", + "@tailwindcss/oxide-wasm32-wasi": "4.2.1", + "@tailwindcss/oxide-win32-arm64-msvc": "4.2.1", + "@tailwindcss/oxide-win32-x64-msvc": "4.2.1" + } + }, + "node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.2.1.tgz", + "integrity": "sha512-eZ7G1Zm5EC8OOKaesIKuw77jw++QJ2lL9N+dDpdQiAB/c/B2wDh0QPFHbkBVrXnwNugvrbJFk1gK2SsVjwWReg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.2.1.tgz", + "integrity": "sha512-q/LHkOstoJ7pI1J0q6djesLzRvQSIfEto148ppAd+BVQK0JYjQIFSK3JgYZJa+Yzi0DDa52ZsQx2rqytBnf8Hw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.2.1.tgz", + "integrity": "sha512-/f/ozlaXGY6QLbpvd/kFTro2l18f7dHKpB+ieXz+Cijl4Mt9AI2rTrpq7V+t04nK+j9XBQHnSMdeQRhbGyt6fw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.2.1.tgz", + "integrity": "sha512-5e/AkgYJT/cpbkys/OU2Ei2jdETCLlifwm7ogMC7/hksI2fC3iiq6OcXwjibcIjPung0kRtR3TxEITkqgn0TcA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.2.1.tgz", + "integrity": "sha512-Uny1EcVTTmerCKt/1ZuKTkb0x8ZaiuYucg2/kImO5A5Y/kBz41/+j0gxUZl+hTF3xkWpDmHX+TaWhOtba2Fyuw==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.2.1.tgz", + "integrity": "sha512-CTrwomI+c7n6aSSQlsPL0roRiNMDQ/YzMD9EjcR+H4f0I1SQ8QqIuPnsVp7QgMkC1Qi8rtkekLkOFjo7OlEFRQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.2.1.tgz", + "integrity": "sha512-WZA0CHRL/SP1TRbA5mp9htsppSEkWuQ4KsSUumYQnyl8ZdT39ntwqmz4IUHGN6p4XdSlYfJwM4rRzZLShHsGAQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.2.1.tgz", + "integrity": "sha512-qMFzxI2YlBOLW5PhblzuSWlWfwLHaneBE0xHzLrBgNtqN6mWfs+qYbhryGSXQjFYB1Dzf5w+LN5qbUTPhW7Y5g==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.2.1.tgz", + "integrity": "sha512-5r1X2FKnCMUPlXTWRYpHdPYUY6a1Ar/t7P24OuiEdEOmms5lyqjDRvVY1yy9Rmioh+AunQ0rWiOTPE8F9A3v5g==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.2.1.tgz", + "integrity": "sha512-MGFB5cVPvshR85MTJkEvqDUnuNoysrsRxd6vnk1Lf2tbiqNlXpHYZqkqOQalydienEWOHHFyyuTSYRsLfxFJ2Q==", + "bundleDependencies": [ + "@napi-rs/wasm-runtime", + "@emnapi/core", + "@emnapi/runtime", + "@tybys/wasm-util", + "@emnapi/wasi-threads", + "tslib" + ], + "cpu": [ + "wasm32" + ], + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.8.1", + "@emnapi/runtime": "^1.8.1", + "@emnapi/wasi-threads": "^1.1.0", + "@napi-rs/wasm-runtime": "^1.1.1", + "@tybys/wasm-util": "^0.10.1", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.2.1.tgz", + "integrity": "sha512-YlUEHRHBGnCMh4Nj4GnqQyBtsshUPdiNroZj8VPkvTZSoHsilRCwXcVKnG9kyi0ZFAS/3u+qKHBdDc81SADTRA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.2.1.tgz", + "integrity": "sha512-rbO34G5sMWWyrN/idLeVxAZgAKWrn5LiR3/I90Q9MkA67s6T1oB0xtTe+0heoBvHSpbU9Mk7i6uwJnpo4u21XQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.2.1.tgz", + "integrity": "sha512-TBf2sJjYeb28jD2U/OhwdW0bbOsxkWPwQ7SrqGf9sVcoYwZj7rkXljroBO9wKBut9XnmQLXanuDUeqQK0lGg/w==", + "license": "MIT", + "dependencies": { + "@tailwindcss/node": "4.2.1", + "@tailwindcss/oxide": "4.2.1", + "tailwindcss": "4.2.1" + }, + "peerDependencies": { + "vite": "^5.2.0 || ^6 || ^7" + } + }, + "node_modules/@tanstack/query-core": { + "version": "5.90.20", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.90.20.tgz", + "integrity": "sha512-OMD2HLpNouXEfZJWcKeVKUgQ5n+n3A2JFmBaScpNDUqSrQSjiveC7dKMe53uJUg1nDG16ttFPz2xfilz6i2uVg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + } + }, + "node_modules/@tanstack/react-query": { + "version": "5.90.21", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.90.21.tgz", + "integrity": "sha512-0Lu6y5t+tvlTJMTO7oh5NSpJfpg/5D41LlThfepTixPYkJ0sE2Jj0m0f6yYqujBwIXlId87e234+MxG3D3g7kg==", + "license": "MIT", + "dependencies": { + "@tanstack/query-core": "5.90.20" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/tannerlinsley" + }, + "peerDependencies": { + "react": "^18 || ^19" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "24.12.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.12.0.tgz", + "integrity": "sha512-GYDxsZi3ChgmckRT9HPU0WEhKLP08ev/Yfcq2AstjrDASOYCSXeyjDsHg4v5t4jOj7cyDX3vmprafKlWIG9MXQ==", + "devOptional": true, + "license": "MIT", + "peer": true, + "dependencies": { + "undici-types": "~7.16.0" + } + }, + "node_modules/@types/react": { + "version": "19.2.14", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz", + "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.2.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.56.1.tgz", + "integrity": "sha512-Jz9ZztpB37dNC+HU2HI28Bs9QXpzCz+y/twHOwhyrIRdbuVDxSytJNDl6z/aAKlaRIwC7y8wJdkBv7FxYGgi0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.12.2", + "@typescript-eslint/scope-manager": "8.56.1", + "@typescript-eslint/type-utils": "8.56.1", + "@typescript-eslint/utils": "8.56.1", + "@typescript-eslint/visitor-keys": "8.56.1", + "ignore": "^7.0.5", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.56.1", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.56.1.tgz", + "integrity": "sha512-klQbnPAAiGYFyI02+znpBRLyjL4/BrBd0nyWkdC0s/6xFLkXYQ8OoRrSkqacS1ddVxf/LDyODIKbQ5TgKAf/Fg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@typescript-eslint/scope-manager": "8.56.1", + "@typescript-eslint/types": "8.56.1", + "@typescript-eslint/typescript-estree": "8.56.1", + "@typescript-eslint/visitor-keys": "8.56.1", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/project-service": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.56.1.tgz", + "integrity": "sha512-TAdqQTzHNNvlVFfR+hu2PDJrURiwKsUvxFn1M0h95BB8ah5jejas08jUWG4dBA68jDMI988IvtfdAI53JzEHOQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/tsconfig-utils": "^8.56.1", + "@typescript-eslint/types": "^8.56.1", + "debug": "^4.4.3" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.56.1.tgz", + "integrity": "sha512-YAi4VDKcIZp0O4tz/haYKhmIDZFEUPOreKbfdAN3SzUDMcPhJ8QI99xQXqX+HoUVq8cs85eRKnD+rne2UAnj2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.56.1", + "@typescript-eslint/visitor-keys": "8.56.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.56.1.tgz", + "integrity": "sha512-qOtCYzKEeyr3aR9f28mPJqBty7+DBqsdd63eO0yyDwc6vgThj2UjWfJIcsFeSucYydqcuudMOprZ+x1SpF3ZuQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.56.1.tgz", + "integrity": "sha512-yB/7dxi7MgTtGhZdaHCemf7PuwrHMenHjmzgUW1aJpO+bBU43OycnM3Wn+DdvDO/8zzA9HlhaJ0AUGuvri4oGg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.56.1", + "@typescript-eslint/typescript-estree": "8.56.1", + "@typescript-eslint/utils": "8.56.1", + "debug": "^4.4.3", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.56.1.tgz", + "integrity": "sha512-dbMkdIUkIkchgGDIv7KLUpa0Mda4IYjo4IAMJUZ+3xNoUXxMsk9YtKpTHSChRS85o+H9ftm51gsK1dZReY9CVw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.56.1.tgz", + "integrity": "sha512-qzUL1qgalIvKWAf9C1HpvBjif+Vm6rcT5wZd4VoMb9+Km3iS3Cv9DY6dMRMDtPnwRAFyAi7YXJpTIEXLvdfPxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/project-service": "8.56.1", + "@typescript-eslint/tsconfig-utils": "8.56.1", + "@typescript-eslint/types": "8.56.1", + "@typescript-eslint/visitor-keys": "8.56.1", + "debug": "^4.4.3", + "minimatch": "^10.2.2", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.4.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.4.tgz", + "integrity": "sha512-h+DEnpVvxmfVefa4jFbCf5HdH5YMDXRsmKflpf1pILZWRFlTbJpxeU55nJl4Smt5HQaGzg1o6RHFPJaOqnmBDg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "10.2.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz", + "integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.56.1.tgz", + "integrity": "sha512-HPAVNIME3tABJ61siYlHzSWCGtOoeP2RTIaHXFMPqjrQKCGB9OgUVdiNgH7TJS2JNIQ5qQ4RsAUDuGaGme/KOA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.9.1", + "@typescript-eslint/scope-manager": "8.56.1", + "@typescript-eslint/types": "8.56.1", + "@typescript-eslint/typescript-estree": "8.56.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.56.1.tgz", + "integrity": "sha512-KiROIzYdEV85YygXw6BI/Dx4fnBlFQu6Mq4QE4MOH9fFnhohw6wX/OAvDY2/C+ut0I3RSPKenvZJIVYqJNkhEw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.56.1", + "eslint-visitor-keys": "^5.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.1.4.tgz", + "integrity": "sha512-VIcFLdRi/VYRU8OL/puL7QXMYafHmqOnwTZY50U1JPlCNj30PxCMx65c494b1K9be9hX83KVt0+gTEwTWLqToA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.29.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-rc.3", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.18.0" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" + } + }, + "node_modules/acorn": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", + "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "dev": true, + "license": "MIT", + "peer": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz", + "integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/axios": { + "version": "1.13.6", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.6.tgz", + "integrity": "sha512-ChTCHMouEe2kn713WHbQGcuYrr6fXTBiu460OTwWrWob16g1bXn4vtz07Ope7ewMozJAnEquLk5lWQWtBig9DQ==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.11", + "form-data": "^4.0.5", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/baseline-browser-mapping": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.0.tgz", + "integrity": "sha512-lIyg0szRfYbiy67j9KN8IyeD7q7hcmqnJ1ddWmNt19ItGpNN64mnllmxUNFIOdOm6by97jlL6wfpTTJrmnjWAA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/browserslist": { + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "peer": true, + "dependencies": { + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001777", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001777.tgz", + "integrity": "sha512-tmN+fJxroPndC74efCdp12j+0rk0RHwV5Jwa1zWaFVyw2ZxAuPeG8ZgWC3Wz7uSjT3qMRQ5XHZ4COgQmsCMJAQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.307", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.307.tgz", + "integrity": "sha512-5z3uFKBWjiNR44nFcYdkcXjKMbg5KXNdciu7mhTPo9tB7NbqSNP2sSnGR+fqknZSCwKkBN+oxiiajWs4dT6ORg==", + "dev": true, + "license": "ISC" + }, + "node_modules/enhanced-resolve": { + "version": "5.20.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.20.0.tgz", + "integrity": "sha512-/ce7+jQ1PQ6rVXwe+jKEg5hW5ciicHwIQUagZkp6IufBoY3YDgdTTY1azVs0qoRgVmvsNB+rbjLJxDAeHHtwsQ==", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.3.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/esbuild": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.3.tgz", + "integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.3", + "@esbuild/android-arm": "0.27.3", + "@esbuild/android-arm64": "0.27.3", + "@esbuild/android-x64": "0.27.3", + "@esbuild/darwin-arm64": "0.27.3", + "@esbuild/darwin-x64": "0.27.3", + "@esbuild/freebsd-arm64": "0.27.3", + "@esbuild/freebsd-x64": "0.27.3", + "@esbuild/linux-arm": "0.27.3", + "@esbuild/linux-arm64": "0.27.3", + "@esbuild/linux-ia32": "0.27.3", + "@esbuild/linux-loong64": "0.27.3", + "@esbuild/linux-mips64el": "0.27.3", + "@esbuild/linux-ppc64": "0.27.3", + "@esbuild/linux-riscv64": "0.27.3", + "@esbuild/linux-s390x": "0.27.3", + "@esbuild/linux-x64": "0.27.3", + "@esbuild/netbsd-arm64": "0.27.3", + "@esbuild/netbsd-x64": "0.27.3", + "@esbuild/openbsd-arm64": "0.27.3", + "@esbuild/openbsd-x64": "0.27.3", + "@esbuild/openharmony-arm64": "0.27.3", + "@esbuild/sunos-x64": "0.27.3", + "@esbuild/win32-arm64": "0.27.3", + "@esbuild/win32-ia32": "0.27.3", + "@esbuild/win32-x64": "0.27.3" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.39.4", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.4.tgz", + "integrity": "sha512-XoMjdBOwe/esVgEvLmNsD3IRHkm7fbKIUGvrleloJXUZgDHig2IPWNniv+GwjyJXzuNqVjlr5+4yVUZjycJwfQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.2", + "@eslint/config-helpers": "^0.4.2", + "@eslint/core": "^0.17.0", + "@eslint/eslintrc": "^3.3.5", + "@eslint/js": "9.39.4", + "@eslint/plugin-kit": "^0.4.1", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "ajv": "^6.14.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.6", + "debug": "^4.3.2", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^8.4.0", + "eslint-visitor-keys": "^4.2.1", + "espree": "^10.4.0", + "esquery": "^1.5.0", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^8.0.0", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.5", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-7.0.1.tgz", + "integrity": "sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.24.4", + "@babel/parser": "^7.24.4", + "hermes-parser": "^0.25.1", + "zod": "^3.25.0 || ^4.0.0", + "zod-validation-error": "^3.5.0 || ^4.0.0" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0" + } + }, + "node_modules/eslint-plugin-react-refresh": { + "version": "0.4.26", + "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.26.tgz", + "integrity": "sha512-1RETEylht2O6FM/MvgnyvT+8K21wLqDNg4qD51Zj3guhjt433XbnnkVttHMyaVyAFD03QSV4LPS5iE3VQmO7XQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "eslint": ">=8.40" + } + }, + "node_modules/eslint-scope": { + "version": "8.4.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esquery": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/file-entry-cache": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/flatted": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.1.tgz", + "integrity": "sha512-IxfVbRFVlV8V/yRaGzk0UVIcsKKHMSfYw66T/u4nTwlWteQePsxe//LjudR1AMX4tZW3WFCh3Zqa/sjlqpbURQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/follow-redirects": { + "version": "1.15.11", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz", + "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", + "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/framer-motion": { + "version": "12.35.2", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-12.35.2.tgz", + "integrity": "sha512-dhfuEMaNo0hc+AEqyHiIfiJRNb9U9UQutE9FoKm5pjf7CMitp9xPEF1iWZihR1q86LBmo6EJ7S8cN8QXEy49AA==", + "license": "MIT", + "dependencies": { + "motion-dom": "^12.35.2", + "motion-utils": "^12.29.2", + "tslib": "^2.4.0" + }, + "peerDependencies": { + "@emotion/is-prop-valid": "*", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + }, + "peerDependenciesMeta": { + "@emotion/is-prop-valid": { + "optional": true + }, + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { + "version": "16.5.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-16.5.0.tgz", + "integrity": "sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hermes-estree": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz", + "integrity": "sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==", + "dev": true, + "license": "MIT" + }, + "node_modules/hermes-parser": { + "version": "0.25.1", + "resolved": "https://registry.npmjs.org/hermes-parser/-/hermes-parser-0.25.1.tgz", + "integrity": "sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hermes-estree": "0.25.1" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/jiti": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz", + "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lightningcss": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.31.1.tgz", + "integrity": "sha512-l51N2r93WmGUye3WuFoN5k10zyvrVs0qfKBhyC5ogUQ6Ew6JUSswh78mbSO+IU3nTWsyOArqPCcShdQSadghBQ==", + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.31.1", + "lightningcss-darwin-arm64": "1.31.1", + "lightningcss-darwin-x64": "1.31.1", + "lightningcss-freebsd-x64": "1.31.1", + "lightningcss-linux-arm-gnueabihf": "1.31.1", + "lightningcss-linux-arm64-gnu": "1.31.1", + "lightningcss-linux-arm64-musl": "1.31.1", + "lightningcss-linux-x64-gnu": "1.31.1", + "lightningcss-linux-x64-musl": "1.31.1", + "lightningcss-win32-arm64-msvc": "1.31.1", + "lightningcss-win32-x64-msvc": "1.31.1" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.31.1.tgz", + "integrity": "sha512-HXJF3x8w9nQ4jbXRiNppBCqeZPIAfUo8zE/kOEGbW5NZvGc/K7nMxbhIr+YlFlHW5mpbg/YFPdbnCh1wAXCKFg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.31.1.tgz", + "integrity": "sha512-02uTEqf3vIfNMq3h/z2cJfcOXnQ0GRwQrkmPafhueLb2h7mqEidiCzkE4gBMEH65abHRiQvhdcQ+aP0D0g67sg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.31.1.tgz", + "integrity": "sha512-1ObhyoCY+tGxtsz1lSx5NXCj3nirk0Y0kB/g8B8DT+sSx4G9djitg9ejFnjb3gJNWo7qXH4DIy2SUHvpoFwfTA==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.31.1.tgz", + "integrity": "sha512-1RINmQKAItO6ISxYgPwszQE1BrsVU5aB45ho6O42mu96UiZBxEXsuQ7cJW4zs4CEodPUioj/QrXW1r9pLUM74A==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.31.1.tgz", + "integrity": "sha512-OOCm2//MZJ87CdDK62rZIu+aw9gBv4azMJuA8/KB74wmfS3lnC4yoPHm0uXZ/dvNNHmnZnB8XLAZzObeG0nS1g==", + "cpu": [ + "arm" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.31.1.tgz", + "integrity": "sha512-WKyLWztD71rTnou4xAD5kQT+982wvca7E6QoLpoawZ1gP9JM0GJj4Tp5jMUh9B3AitHbRZ2/H3W5xQmdEOUlLg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.31.1.tgz", + "integrity": "sha512-mVZ7Pg2zIbe3XlNbZJdjs86YViQFoJSpc41CbVmKBPiGmC4YrfeOyz65ms2qpAobVd7WQsbW4PdsSJEMymyIMg==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.31.1.tgz", + "integrity": "sha512-xGlFWRMl+0KvUhgySdIaReQdB4FNudfUTARn7q0hh/V67PVGCs3ADFjw+6++kG1RNd0zdGRlEKa+T13/tQjPMA==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.31.1.tgz", + "integrity": "sha512-eowF8PrKHw9LpoZii5tdZwnBcYDxRw2rRCyvAXLi34iyeYfqCQNA9rmUM0ce62NlPhCvof1+9ivRaTY6pSKDaA==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.31.1.tgz", + "integrity": "sha512-aJReEbSEQzx1uBlQizAOBSjcmr9dCdL3XuC/6HLXAxmtErsj2ICo5yYggg1qOODQMtnjNQv2UHb9NpOuFtYe4w==", + "cpu": [ + "arm64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.31.1", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.31.1.tgz", + "integrity": "sha512-I9aiFrbd7oYHwlnQDqr1Roz+fTz61oDDJX7n9tYF9FJymH1cIN1DtKw3iYt6b8WZgEjoNwVSncwF4wx/ZedMhw==", + "cpu": [ + "x64" + ], + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/lucide-react": { + "version": "0.577.0", + "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.577.0.tgz", + "integrity": "sha512-4LjoFv2eEPwYDPg/CUdBJQSDfPyzXCRrVW1X7jrx/trgxnxkHFjnVZINbzvzxjN70dxychOfg+FTYwBiS3pQ5A==", + "license": "ISC", + "peerDependencies": { + "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/motion-dom": { + "version": "12.35.2", + "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-12.35.2.tgz", + "integrity": "sha512-pWXFMTwvGDbx1Fe9YL5HZebv2NhvGBzRtiNUv58aoK7+XrsuaydQ0JGRKK2r+bTKlwgSWwWxHbP5249Qr/BNpg==", + "license": "MIT", + "dependencies": { + "motion-utils": "^12.29.2" + } + }, + "node_modules/motion-utils": { + "version": "12.29.2", + "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-12.29.2.tgz", + "integrity": "sha512-G3kc34H2cX2gI63RqU+cZq+zWRRPSsNIOjpdl9TN4AQwC4sgwYPl/Q/Obf/d53nOm569T0fYK+tcoSV50BWx8A==", + "license": "MIT" + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.36", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.36.tgz", + "integrity": "sha512-TdC8FSgHz8Mwtw9g5L4gR/Sh9XhSP/0DEkQxfEFXOpiul5IiHgHan2VhYYb6agDSfp4KuvltmGApc8HMgUrIkA==", + "dev": true, + "license": "MIT" + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.8", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz", + "integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "license": "MIT" + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/react": { + "version": "19.2.4", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz", + "integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.2.4", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz", + "integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==", + "license": "MIT", + "peer": true, + "dependencies": { + "scheduler": "^0.27.0" + }, + "peerDependencies": { + "react": "^19.2.4" + } + }, + "node_modules/react-refresh": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz", + "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/rollup": { + "version": "4.59.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.59.0.tgz", + "integrity": "sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==", + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.59.0", + "@rollup/rollup-android-arm64": "4.59.0", + "@rollup/rollup-darwin-arm64": "4.59.0", + "@rollup/rollup-darwin-x64": "4.59.0", + "@rollup/rollup-freebsd-arm64": "4.59.0", + "@rollup/rollup-freebsd-x64": "4.59.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.59.0", + "@rollup/rollup-linux-arm-musleabihf": "4.59.0", + "@rollup/rollup-linux-arm64-gnu": "4.59.0", + "@rollup/rollup-linux-arm64-musl": "4.59.0", + "@rollup/rollup-linux-loong64-gnu": "4.59.0", + "@rollup/rollup-linux-loong64-musl": "4.59.0", + "@rollup/rollup-linux-ppc64-gnu": "4.59.0", + "@rollup/rollup-linux-ppc64-musl": "4.59.0", + "@rollup/rollup-linux-riscv64-gnu": "4.59.0", + "@rollup/rollup-linux-riscv64-musl": "4.59.0", + "@rollup/rollup-linux-s390x-gnu": "4.59.0", + "@rollup/rollup-linux-x64-gnu": "4.59.0", + "@rollup/rollup-linux-x64-musl": "4.59.0", + "@rollup/rollup-openbsd-x64": "4.59.0", + "@rollup/rollup-openharmony-arm64": "4.59.0", + "@rollup/rollup-win32-arm64-msvc": "4.59.0", + "@rollup/rollup-win32-ia32-msvc": "4.59.0", + "@rollup/rollup-win32-x64-gnu": "4.59.0", + "@rollup/rollup-win32-x64-msvc": "4.59.0", + "fsevents": "~2.3.2" + } + }, + "node_modules/scheduler": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", + "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tailwindcss": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.2.1.tgz", + "integrity": "sha512-/tBrSQ36vCleJkAOsy9kbNTgaxvGbyOamC30PRePTQe/o1MFwEKHQk4Cn7BNGaPtjp+PuUrByJehM1hgxfq4sw==", + "license": "MIT" + }, + "node_modules/tapable": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.0.tgz", + "integrity": "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/ts-api-utils": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.4.0.tgz", + "integrity": "sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/typescript-eslint": { + "version": "8.56.1", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.56.1.tgz", + "integrity": "sha512-U4lM6pjmBX7J5wk4szltF7I1cGBHXZopnAXCMXb3+fZ3B/0Z3hq3wS/CCUB2NZBNAExK92mCU2tEohWuwVMsDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.56.1", + "@typescript-eslint/parser": "8.56.1", + "@typescript-eslint/typescript-estree": "8.56.1", + "@typescript-eslint/utils": "8.56.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.0.0" + } + }, + "node_modules/undici-types": { + "version": "7.16.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", + "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", + "devOptional": true, + "license": "MIT" + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/vite": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.1.tgz", + "integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==", + "license": "MIT", + "peer": true, + "dependencies": { + "esbuild": "^0.27.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zod": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz", + "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==", + "dev": true, + "license": "MIT", + "peer": true, + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-validation-error": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/zod-validation-error/-/zod-validation-error-4.0.2.tgz", + "integrity": "sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + } + } + } +} diff --git a/projects/msp-tools/quote-wizard/frontend/package.json b/projects/msp-tools/quote-wizard/frontend/package.json new file mode 100644 index 0000000..5418d15 --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/package.json @@ -0,0 +1,37 @@ +{ + "name": "msp-quote-wizard", + "private": true, + "version": "0.1.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc -b && vite build", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "@tailwindcss/vite": "^4.2.1", + "@tanstack/react-query": "^5.90.21", + "axios": "^1.13.6", + "clsx": "^2.1.1", + "framer-motion": "^12.35.2", + "lucide-react": "^0.577.0", + "react": "^19.2.0", + "react-dom": "^19.2.0", + "tailwindcss": "^4.2.1" + }, + "devDependencies": { + "@eslint/js": "^9.39.1", + "@types/node": "^24.10.1", + "@types/react": "^19.2.7", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^5.1.1", + "eslint": "^9.39.1", + "eslint-plugin-react-hooks": "^7.0.1", + "eslint-plugin-react-refresh": "^0.4.24", + "globals": "^16.5.0", + "typescript": "~5.9.3", + "typescript-eslint": "^8.48.0", + "vite": "^7.3.1" + } +} diff --git a/projects/msp-tools/quote-wizard/frontend/src/App.tsx b/projects/msp-tools/quote-wizard/frontend/src/App.tsx new file mode 100644 index 0000000..d1eb5e5 --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/src/App.tsx @@ -0,0 +1,26 @@ +import { WizardContainer } from '@/components/wizard/WizardContainer' + +function App() { + return ( +
+
+
+

MSP Quote Wizard

+ Powered by AZ Computer Guru +
+
+ +
+ +
+ +
+
+

© {new Date().getFullYear()} AZ Computer Guru. All rights reserved.

+
+
+
+ ) +} + +export default App diff --git a/projects/msp-tools/quote-wizard/frontend/src/components/pricing/ExpandableInfo.tsx b/projects/msp-tools/quote-wizard/frontend/src/components/pricing/ExpandableInfo.tsx new file mode 100644 index 0000000..026d18e --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/src/components/pricing/ExpandableInfo.tsx @@ -0,0 +1,59 @@ +import { useState } from 'react'; +import { motion, AnimatePresence } from 'framer-motion'; +import { ChevronDown, HelpCircle } from 'lucide-react'; +import { cn } from '@/lib/utils'; + +export interface ExpandableInfoProps { + title: string; + children: React.ReactNode; + defaultExpanded?: boolean; + icon?: React.ReactNode; + className?: string; +} + +export function ExpandableInfo({ + title, + children, + defaultExpanded = false, + icon, + className, +}: ExpandableInfoProps) { + const [isExpanded, setIsExpanded] = useState(defaultExpanded); + + return ( +
+ + + + {isExpanded && ( + +
+
{children}
+
+
+ )} +
+
+ ); +} diff --git a/projects/msp-tools/quote-wizard/frontend/src/components/pricing/PricingCard.tsx b/projects/msp-tools/quote-wizard/frontend/src/components/pricing/PricingCard.tsx new file mode 100644 index 0000000..06d7c27 --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/src/components/pricing/PricingCard.tsx @@ -0,0 +1,81 @@ +import { motion } from 'framer-motion'; +import { Check } from 'lucide-react'; +import { Card, Button } from '@/components/ui'; +import { cn, formatCurrency } from '@/lib/utils'; +import type { PricingTier } from '@/types/quote'; + +export interface PricingCardProps { + tier: PricingTier; + isSelected: boolean; + deviceCount: number; + onSelect: (tierId: string) => void; +} + +export function PricingCard({ tier, isSelected, deviceCount, onSelect }: PricingCardProps) { + const monthlyEstimate = tier.basePrice + tier.perDevicePrice * deviceCount; + + return ( + + + {/* Recommended badge */} + {tier.recommended && ( +
+
+ Recommended +
+
+ )} + +
+ {/* Header */} +
+

{tier.name}

+

{tier.description}

+
+ + {/* Pricing */} +
+
+ + {formatCurrency(monthlyEstimate)} + + /month +
+

+ {formatCurrency(tier.basePrice)} base + {formatCurrency(tier.perDevicePrice)}/device +

+
+ + {/* Features */} +
    + {tier.features.map((feature, index) => ( +
  • + + {feature} +
  • + ))} +
+ + {/* Select button */} + +
+
+
+ ); +} diff --git a/projects/msp-tools/quote-wizard/frontend/src/components/pricing/TierComparison.tsx b/projects/msp-tools/quote-wizard/frontend/src/components/pricing/TierComparison.tsx new file mode 100644 index 0000000..a1d0977 --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/src/components/pricing/TierComparison.tsx @@ -0,0 +1,116 @@ +import { Check, X } from 'lucide-react'; +import { cn } from '@/lib/utils'; +import type { PricingTier } from '@/types/quote'; + +export interface TierComparisonProps { + tiers: PricingTier[]; + selectedTier?: string; + onSelectTier: (tierId: string) => void; +} + +interface FeatureRow { + name: string; + essential: boolean | string; + professional: boolean | string; + enterprise: boolean | string; +} + +const comparisonFeatures: FeatureRow[] = [ + { name: 'Remote Monitoring', essential: true, professional: true, enterprise: true }, + { name: 'Help Desk Support', essential: '8x5', professional: '24x7', enterprise: '24x7 Priority' }, + { name: 'Patch Management', essential: true, professional: true, enterprise: true }, + { name: 'Antivirus Protection', essential: 'Basic', professional: 'Advanced', enterprise: 'Advanced' }, + { name: 'Backup & Recovery', essential: false, professional: true, enterprise: true }, + { name: 'Network Monitoring', essential: false, professional: true, enterprise: true }, + { name: 'On-Site Support', essential: false, professional: 'Limited', enterprise: 'Unlimited' }, + { name: 'Vendor Management', essential: false, professional: true, enterprise: true }, + { name: 'Dedicated Account Manager', essential: false, professional: false, enterprise: true }, + { name: 'Virtual CIO Services', essential: false, professional: false, enterprise: true }, + { name: 'Compliance Management', essential: false, professional: false, enterprise: true }, + { name: 'Security Training', essential: false, professional: false, enterprise: true }, + { name: 'Business Reviews', essential: 'Annual', professional: 'Quarterly', enterprise: 'Monthly' }, +]; + +export function TierComparison({ tiers, selectedTier, onSelectTier }: TierComparisonProps) { + const renderCell = (value: boolean | string) => { + if (typeof value === 'boolean') { + return value ? ( + + ) : ( + + ); + } + return {value}; + }; + + return ( +
+ + + + + {tiers.map((tier) => ( + + ))} + + + + {comparisonFeatures.map((feature, index) => ( + + + + + + + ))} + +
+ Feature + onSelectTier(tier.id)} + > + + {tier.name} + + {tier.recommended && ( + Recommended + )} +
+ {feature.name} + + {renderCell(feature.essential)} + + {renderCell(feature.professional)} + + {renderCell(feature.enterprise)} +
+
+ ); +} diff --git a/projects/msp-tools/quote-wizard/frontend/src/components/pricing/index.ts b/projects/msp-tools/quote-wizard/frontend/src/components/pricing/index.ts new file mode 100644 index 0000000..8d42c41 --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/src/components/pricing/index.ts @@ -0,0 +1,3 @@ +export { PricingCard, type PricingCardProps } from './PricingCard'; +export { ExpandableInfo, type ExpandableInfoProps } from './ExpandableInfo'; +export { TierComparison, type TierComparisonProps } from './TierComparison'; diff --git a/projects/msp-tools/quote-wizard/frontend/src/components/ui/Button.tsx b/projects/msp-tools/quote-wizard/frontend/src/components/ui/Button.tsx new file mode 100644 index 0000000..4257e67 --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/src/components/ui/Button.tsx @@ -0,0 +1,87 @@ +import { forwardRef, type ButtonHTMLAttributes } from 'react'; +import { motion } from 'framer-motion'; +import { cn } from '@/lib/utils'; + +export interface ButtonProps extends Omit, 'onDrag' | 'onDragStart' | 'onDragEnd' | 'onAnimationStart'> { + variant?: 'primary' | 'secondary' | 'outline' | 'ghost'; + size?: 'sm' | 'md' | 'lg'; + isLoading?: boolean; +} + +const Button = forwardRef( + ( + { + className, + variant = 'primary', + size = 'md', + isLoading = false, + disabled, + children, + ...props + }, + ref + ) => { + const baseStyles = + 'inline-flex items-center justify-center font-medium rounded-lg transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed'; + + const variants = { + primary: + 'bg-[#fe7400] text-white hover:bg-[#e56800] focus-visible:ring-[#fe7400] shadow-sm hover:shadow-md', + secondary: + 'bg-[#333d49] text-white hover:bg-[#252d36] focus-visible:ring-[#333d49] shadow-sm hover:shadow-md', + outline: + 'border-2 border-[#333d49] text-[#333d49] hover:bg-[#333d49] hover:text-white focus-visible:ring-[#333d49]', + ghost: + 'text-[#333d49] hover:bg-gray-100 focus-visible:ring-[#333d49]', + }; + + const sizes = { + sm: 'px-3 py-1.5 text-sm', + md: 'px-5 py-2.5 text-base', + lg: 'px-7 py-3.5 text-lg', + }; + + return ( + + {isLoading ? ( + <> + + + + + Loading... + + ) : ( + children + )} + + ); + } +); + +Button.displayName = 'Button'; + +export { Button }; diff --git a/projects/msp-tools/quote-wizard/frontend/src/components/ui/Card.tsx b/projects/msp-tools/quote-wizard/frontend/src/components/ui/Card.tsx new file mode 100644 index 0000000..45a125c --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/src/components/ui/Card.tsx @@ -0,0 +1,137 @@ +import { forwardRef, type HTMLAttributes, type ReactNode } from 'react'; +import { motion } from 'framer-motion'; +import { cn } from '@/lib/utils'; + +export interface CardProps { + variant?: 'default' | 'elevated' | 'outlined' | 'highlighted'; + padding?: 'none' | 'sm' | 'md' | 'lg'; + hoverable?: boolean; + className?: string; + children?: ReactNode; + onClick?: () => void; +} + +const Card = forwardRef( + ( + { + className, + variant = 'default', + padding = 'md', + hoverable = false, + children, + onClick, + }, + ref + ) => { + const baseStyles = 'rounded-xl transition-all duration-200'; + + const variants = { + default: 'bg-white border border-gray-200', + elevated: 'bg-white shadow-lg', + outlined: 'bg-transparent border-2 border-[#333d49]', + highlighted: 'bg-white border-2 border-[#fe7400] shadow-lg', + }; + + const paddings = { + none: '', + sm: 'p-4', + md: 'p-6', + lg: 'p-8', + }; + + const hoverStyles = hoverable + ? 'cursor-pointer hover:shadow-xl hover:-translate-y-1' + : ''; + + if (hoverable) { + return ( + + {children} + + ); + } + + return ( +
+ {children} +
+ ); + } +); + +Card.displayName = 'Card'; + +// Card subcomponents +const CardHeader = forwardRef>( + ({ className, ...props }, ref) => ( +
+ ) +); +CardHeader.displayName = 'CardHeader'; + +const CardTitle = forwardRef>( + ({ className, ...props }, ref) => ( +

+ ) +); +CardTitle.displayName = 'CardTitle'; + +const CardDescription = forwardRef>( + ({ className, ...props }, ref) => ( +

+ ) +); +CardDescription.displayName = 'CardDescription'; + +const CardContent = forwardRef>( + ({ className, ...props }, ref) => ( +

+ ) +); +CardContent.displayName = 'CardContent'; + +const CardFooter = forwardRef>( + ({ className, ...props }, ref) => ( +
+ ) +); +CardFooter.displayName = 'CardFooter'; + +export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter }; diff --git a/projects/msp-tools/quote-wizard/frontend/src/components/ui/Input.tsx b/projects/msp-tools/quote-wizard/frontend/src/components/ui/Input.tsx new file mode 100644 index 0000000..3e0ec10 --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/src/components/ui/Input.tsx @@ -0,0 +1,61 @@ +import { forwardRef, type InputHTMLAttributes } from 'react'; +import { cn } from '@/lib/utils'; + +export interface InputProps extends InputHTMLAttributes { + label?: string; + error?: string; + helperText?: string; +} + +const Input = forwardRef( + ({ className, label, error, helperText, id, type = 'text', ...props }, ref) => { + const inputId = id || `input-${Math.random().toString(36).slice(2, 9)}`; + + return ( +
+ {label && ( + + )} + + {error && ( +

+ {error} +

+ )} + {helperText && !error && ( +

+ {helperText} +

+ )} +
+ ); + } +); + +Input.displayName = 'Input'; + +export { Input }; diff --git a/projects/msp-tools/quote-wizard/frontend/src/components/ui/ProgressBar.tsx b/projects/msp-tools/quote-wizard/frontend/src/components/ui/ProgressBar.tsx new file mode 100644 index 0000000..39efaba --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/src/components/ui/ProgressBar.tsx @@ -0,0 +1,56 @@ +import { motion } from 'framer-motion'; +import { cn } from '@/lib/utils'; + +export interface ProgressBarProps { + progress: number; + showLabel?: boolean; + size?: 'sm' | 'md' | 'lg'; + variant?: 'default' | 'accent'; + className?: string; +} + +export function ProgressBar({ + progress, + showLabel = false, + size = 'md', + variant = 'accent', + className, +}: ProgressBarProps) { + const clampedProgress = Math.min(100, Math.max(0, progress)); + + const sizes = { + sm: 'h-1.5', + md: 'h-2.5', + lg: 'h-4', + }; + + const variants = { + default: 'bg-[#333d49]', + accent: 'bg-[#fe7400]', + }; + + return ( +
+ {showLabel && ( +
+ Progress + {clampedProgress}% +
+ )} +
+ +
+
+ ); +} diff --git a/projects/msp-tools/quote-wizard/frontend/src/components/ui/index.ts b/projects/msp-tools/quote-wizard/frontend/src/components/ui/index.ts new file mode 100644 index 0000000..8c8e634 --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/src/components/ui/index.ts @@ -0,0 +1,12 @@ +export { Button, type ButtonProps } from './Button'; +export { + Card, + CardHeader, + CardTitle, + CardDescription, + CardContent, + CardFooter, + type CardProps, +} from './Card'; +export { Input, type InputProps } from './Input'; +export { ProgressBar, type ProgressBarProps } from './ProgressBar'; diff --git a/projects/msp-tools/quote-wizard/frontend/src/components/wizard/WizardContainer.tsx b/projects/msp-tools/quote-wizard/frontend/src/components/wizard/WizardContainer.tsx new file mode 100644 index 0000000..3f63676 --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/src/components/wizard/WizardContainer.tsx @@ -0,0 +1,341 @@ +import { useState } from 'react'; +import { motion, AnimatePresence } from 'framer-motion'; +import { Card, CardContent } from '@/components/ui'; +import { WizardProgress } from './WizardProgress'; +import { WizardNavigation } from './WizardNavigation'; +import { useWizard } from '@/hooks/useWizard'; +import { useQuote } from '@/hooks/useQuote'; +import { + Step1CompanyProfile, + Step2GPSMonitoring, + Step3SupportPlan, + Step4VoIP, + Step5WebEmail, + Step6Summary, + Step7Contact, +} from './steps'; +import { + Building2, + Monitor, + Headphones, + Phone, + Globe, + FileCheck, + Send, +} from 'lucide-react'; +import { formatCurrency } from '@/lib/utils'; + +/** + * WizardContainer - Main container for the MSP Quote Wizard + * + * Orchestrates the 7-step wizard flow: + * 1. Company Profile + * 2. GPS Monitoring + * 3. Support Plan + * 4. VoIP Phone System + * 5. Web & Email + * 6. Review Quote + * 7. Contact & Submit + */ + +const stepIcons = [Building2, Monitor, Headphones, Phone, Globe, FileCheck, Send]; + +export function WizardContainer() { + const wizard = useWizard(); + const quote = useQuote(); + const [isSubmitting, setIsSubmitting] = useState(false); + const [submitSuccess, setSubmitSuccess] = useState(false); + + const StepIcon = stepIcons[wizard.currentStep] || Building2; + const currentStepData = wizard.steps[wizard.currentStep]; + + const handleNext = () => { + // Calculate quote before moving to summary + if (wizard.currentStep === 4) { + quote.calculateQuote(); + } + wizard.nextStep(); + }; + + const handlePrev = () => { + wizard.prevStep(); + }; + + const handleSubmit = async () => { + setIsSubmitting(true); + + // Calculate final quote + const result = quote.calculateQuote(); + + try { + // Simulate API submission + await new Promise((resolve) => setTimeout(resolve, 2000)); + + // Log submission (in production, this would send to an API) + console.log('Quote submitted:', { + quoteData: quote.quoteData, + quoteResult: result, + timestamp: new Date().toISOString(), + }); + + setSubmitSuccess(true); + } catch (error) { + console.error('Submission error:', error); + // Handle error state here + } finally { + setIsSubmitting(false); + } + }; + + const handleGoToStep = (step: number) => { + wizard.goToStep(step); + }; + + // Validate current step for "Next" button + const isNextDisabled = (): boolean => { + switch (wizard.currentStep) { + case 0: // Company Profile + return quote.quoteData.company.endpointCount < 1; + case 6: // Contact + return ( + !quote.quoteData.contact.name.trim() || + !quote.quoteData.contact.email.trim() || + !quote.quoteData.contact.agreedToTerms + ); + default: + return false; + } + }; + + // Render current step content + const renderStepContent = () => { + switch (wizard.currentStep) { + case 0: + return ( + + ); + case 1: + return ( + + ); + case 2: + return ( + + ); + case 3: + return ( + + ); + case 4: + return ( + + ); + case 5: + return ( + + ); + case 6: + return ( + + ); + default: + return null; + } + }; + + // Success state + if (submitSuccess) { + return ( +
+ + + +
+ + + +
+

+ Quote Request Submitted! +

+

+ Thank you for your interest. Our team will review your quote and + contact you within 24 hours. +

+ {quote.quoteResult && ( +
+

Your Estimated Monthly Total

+

+ {formatCurrency(quote.quoteResult.monthlyTotal)} + /mo +

+
+ )} + +
+
+
+
+ ); + } + + return ( +
+ {/* Progress indicator */} +
+ +
+ + {/* Main wizard card */} + + + {/* Step header */} +
+
+ +
+
+

+ {currentStepData?.title} +

+

{currentStepData?.description}

+
+
+ + {/* Step content with animation */} + + + {renderStepContent()} + + + + {/* Navigation - hidden on contact step (has its own submit) */} + {wizard.currentStep !== 6 && ( + + )} +
+
+ + {/* Quick stats - show running total */} +
+ +

Endpoints

+

+ {quote.quoteData.company.endpointCount} +

+
+ +

Est. Monthly

+

+ {formatCurrency( + quote.getGPSMonthly() + + quote.getSupportMonthly() + + quote.getVoIPMonthly() + + quote.getWebHostingMonthly() + + quote.getEmailMonthly() + )} +

+
+ +

Progress

+

{wizard.progress}%

+
+
+
+ ); +} diff --git a/projects/msp-tools/quote-wizard/frontend/src/components/wizard/WizardNavigation.tsx b/projects/msp-tools/quote-wizard/frontend/src/components/wizard/WizardNavigation.tsx new file mode 100644 index 0000000..4303be4 --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/src/components/wizard/WizardNavigation.tsx @@ -0,0 +1,59 @@ +import { ChevronLeft, ChevronRight } from 'lucide-react'; +import { Button } from '@/components/ui'; + +export interface WizardNavigationProps { + onNext: () => void; + onPrev: () => void; + onSubmit?: () => void; + isFirstStep: boolean; + isLastStep: boolean; + isNextDisabled?: boolean; + isSubmitting?: boolean; +} + +export function WizardNavigation({ + onNext, + onPrev, + onSubmit, + isFirstStep, + isLastStep, + isNextDisabled = false, + isSubmitting = false, +}: WizardNavigationProps) { + return ( +
+ + + {isLastStep ? ( + + ) : ( + + )} +
+ ); +} diff --git a/projects/msp-tools/quote-wizard/frontend/src/components/wizard/WizardProgress.tsx b/projects/msp-tools/quote-wizard/frontend/src/components/wizard/WizardProgress.tsx new file mode 100644 index 0000000..e13953f --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/src/components/wizard/WizardProgress.tsx @@ -0,0 +1,119 @@ +import { motion } from 'framer-motion'; +import { Check } from 'lucide-react'; +import type { WizardStep } from '@/types/quote'; +import { cn } from '@/lib/utils'; + +export interface WizardProgressProps { + steps: WizardStep[]; + currentStep: number; + onStepClick?: (stepIndex: number) => void; +} + +export function WizardProgress({ steps, currentStep, onStepClick }: WizardProgressProps) { + const isCompactMode = steps.length > 5; + + return ( + + ); +} diff --git a/projects/msp-tools/quote-wizard/frontend/src/components/wizard/index.ts b/projects/msp-tools/quote-wizard/frontend/src/components/wizard/index.ts new file mode 100644 index 0000000..ce75dee --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/src/components/wizard/index.ts @@ -0,0 +1,4 @@ +export { WizardContainer } from './WizardContainer'; +export { WizardProgress, type WizardProgressProps } from './WizardProgress'; +export { WizardNavigation, type WizardNavigationProps } from './WizardNavigation'; +export * from './steps'; diff --git a/projects/msp-tools/quote-wizard/frontend/src/components/wizard/steps/Step1CompanyProfile.tsx b/projects/msp-tools/quote-wizard/frontend/src/components/wizard/steps/Step1CompanyProfile.tsx new file mode 100644 index 0000000..9fbe80a --- /dev/null +++ b/projects/msp-tools/quote-wizard/frontend/src/components/wizard/steps/Step1CompanyProfile.tsx @@ -0,0 +1,133 @@ +import { motion } from 'framer-motion'; +import { Building2, Users, Briefcase, MessageSquare } from 'lucide-react'; +import { Input } from '@/components/ui'; +import { industries } from '@/lib/pricing-data'; +import type { CompanyInfo, Industry } from '@/types/quote'; + +export interface Step1CompanyProfileProps { + companyInfo: CompanyInfo; + onUpdateCompany: (data: Partial) => void; + onSetEndpointCount: (count: number) => void; + onSetIndustry: (industry: Industry | '') => void; +} + +export function Step1CompanyProfile({ + companyInfo, + onUpdateCompany, + onSetEndpointCount, + onSetIndustry, +}: Step1CompanyProfileProps) { + const handleEndpointChange = (e: React.ChangeEvent) => { + const value = parseInt(e.target.value, 10); + if (!isNaN(value) && value >= 1) { + onSetEndpointCount(value); + } + }; + + const handleIndustryChange = (e: React.ChangeEvent) => { + onSetIndustry(e.target.value as Industry | ''); + }; + + return ( + + {/* Company Name (Optional) */} +
+ + onUpdateCompany({ name: e.target.value })} + placeholder="Enter your company name" + className="max-w-md" + /> +
+ + {/* Number of Endpoints (Required) */} +
+ +
+ + + devices requiring monitoring and support + +
+

+ Include workstations, laptops, and servers that need IT support +

+
+ + {/* Industry Selection */} +
+ + +

+ This helps us understand compliance requirements and best practices for your sector +

+
+ + {/* Notes (Optional) */} +
+ +