[
  {
    "path": ".github/CONTRIBUTING.md",
    "content": "# Contributing\n\n## Request for changes/ Pull Requests\n\nYou first need to create a fork of the [cap.octolane.com](https://github.com/octolane-org/cap.octolane.com/) repository to commit your changes to it. Methods to fork a repository can be found in the [GitHub Documentation](https://docs.github.com/en/get-started/quickstart/fork-a-repo).\n\nThen add your fork as a local project:\n\n```sh\n# Using HTTPS\ngit clone https://github.com/octolane-org/cap.octolane.com.git\n\n# Using SSH\ngit clone git@github.com:octolane-org/cap.octolane.com.git\n```\n\n> [Which remote URL should be used ?](https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories)\n\nThen, go to your local folder\n\n```sh\ncd cap.octolane.com\n```\n\nAdd git remote controls :\n\n```sh\n# Using HTTPS\ngit remote add fork https://github.com/YOUR-USERNAME/cap.octolane.com.git\ngit remote add upstream https://github.com/octolane-org/cap.octolane.com.git\n\n\n# Using SSH\ngit remote add fork git@github.com:YOUR-USERNAME/cap.octolane.com.git\ngit remote add upstream git@github.com/octolane-org/cap.octolane.com.git\n```\n\nYou can now verify that you have your two git remotes:\n\n```sh\ngit remote -v\n```\n\n## Receive remote updates\n\nIn view of staying up to date with the central repository :\n\n```sh\ngit pull upstream master\n```\n\n## Choose a base branch\n\nBefore starting development, you need to know which branch to base your modifications/additions on. When in doubt, use master.\n\n| Type of change    |     |              Branches |\n| :---------------- | :-: | --------------------: |\n| Documentation     |     |              `master` |\n| Bug fixes         |     |              `master` |\n| New features      |     |              `master` |\n| New issues models |     | `YOUR-USERNAME:patch` |\n\n```sh\n# Switch to the desired branch\ngit switch master\n\n# Pull down any upstream changes\ngit pull\n\n# Create a new branch to work on\ngit switch --create patch/1234-name-issue\n```\n\nCommit your changes, then push the branch to your fork with `git push -u fork` and open a pull request on [the cap.octolane.coms repository](https://github.com/octolane-org/cap.octolane.com/) following the template provided.\n"
  },
  {
    "path": ".github/CONTRIBUTORS.md",
    "content": "> ## ProTips:\n>\n> This is maybe the most important file of your project if you think about maintanability and long-term support. It recognizes people who are helping you and, directly or indirectly, baking your/your project success.\n>\n> Those people spend their time, for free, to make your project better. You should, by all means, praise and thank them whenever you want. Time is an asset that never comes back, so if people choose to use their time with your code, this file shows them the respect they want.\n\n# Contributors\n\n## Special thanks for all the people who had helped this project so far:\n\n> Here you should include a list of people who helped your project. A good practice would be their names and GH profiles. Other additional info may fit, but names and profiles are mandatory. Proper credits matter.\n\n> If you think you can do it better, you can consider using [all-contributors](https://github.com/kentcdodds/all-contributors/) guidelines. This project itself uses it on the README file. You really should consider using them.\n\n## I would like to join this list. How can I help the project?\n\n> Here you could make a call to people who would like to contribute to the project. Below, expose what you expect people to do.\n\nWe're currently looking for contributions for the following:\n\n- [ ] Bug fixes\n- [ ] Translations\n- [ ] etc...\n\nFor more information, please refer to our [CONTRIBUTING](CONTRIBUTING.md) guide.\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE /BUG-REPORT.yml",
    "content": "name: \"🐛 Bug Report\"\ndescription: Create a new ticket for a bug.\ntitle: \"🐛 [BUG] - <title>\"\nlabels: [\n  \"bug\"\n]\nbody:\n  - type: textarea\n    id: description\n    attributes:\n      label: \"Description\"\n      description: Please enter an explicit description of your issue\n      placeholder: Short and explicit description of your incident...\n    validations:\n      required: true\n  - type: input\n    id: reprod-url\n    attributes:\n      label: \"Reproduction URL\"\n      description: Please enter your GitHub URL to provide a reproduction of the issue\n      placeholder: ex. https://github.com/USERNAME/REPO-NAME\n    validations:\n      required: true\n  - type: textarea\n    id: reprod\n    attributes:\n      label: \"Reproduction steps\"\n      description: Please enter an explicit description of your issue\n      value: |\n        1. Go to '...'\n        2. Click on '....'\n        3. Scroll down to '....'\n        4. See error\n      render: bash\n    validations:\n      required: true\n  - type: textarea\n    id: screenshot\n    attributes:\n      label: \"Screenshots\"\n      description: If applicable, add screenshots to help explain your problem.\n      value: |\n        ![DESCRIPTION](LINK.png)\n      render: bash\n    validations:\n      required: false\n  - type: textarea\n    id: logs\n    attributes:\n      label: \"Logs\"\n      description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.\n      render: bash\n    validations:\n      required: false\n  - type: dropdown\n    id: browsers\n    attributes:\n      label: \"Browsers\"\n      description: What browsers are you seeing the problem on ?\n      multiple: true\n      options:\n        - Firefox\n        - Chrome\n        - Safari\n        - Microsoft Edge\n        - Opera\n    validations:\n      required: false\n  - type: dropdown\n    id: os\n    attributes:\n      label: \"OS\"\n      description: What is the impacted environment ?\n      multiple: true\n      options:\n        - Windows\n        - Linux\n        - Mac\n    validations:\n      required: false"
  },
  {
    "path": ".github/ISSUE_TEMPLATE /FEATURE-REQUEST.yml",
    "content": "name: \"💡 Feature Request\"\ndescription: Create a new ticket for a new feature request\ntitle: \"💡 [REQUEST] - <title>\"\nlabels: [\n  \"question\"\n]\nbody:\n  - type: input\n    id: start_date\n    attributes:\n      label: \"Start Date\"\n      description: Start of development\n      placeholder: \"month/day/year\"\n    validations:\n      required: false\n  - type: textarea\n    id: implementation_pr\n    attributes:\n      label: \"Implementation PR\"\n      description: Pull request used\n      placeholder: \"#Pull Request ID\"\n    validations:\n      required: false\n  - type: textarea\n    id: reference_issues\n    attributes:\n      label: \"Reference Issues\"\n      description: Common issues\n      placeholder: \"#Issues IDs\"\n    validations:\n      required: false\n  - type: textarea\n    id: summary\n    attributes:\n      label: \"Summary\"\n      description: Provide a brief explanation of the feature\n      placeholder: Describe in a few lines your feature request\n    validations:\n      required: true\n  - type: textarea\n    id: basic_example\n    attributes:\n      label: \"Basic Example\"\n      description: Indicate here some basic examples of your feature.\n      placeholder: A few specific words about your feature request.\n    validations:\n      required: true\n  - type: textarea\n    id: drawbacks\n    attributes:\n      label: \"Drawbacks\"\n      description: What are the drawbacks/impacts of your feature request ?\n      placeholder: Identify the drawbacks and impacts while being neutral on your feature request\n    validations:\n      required: true\n  - type: textarea\n    id: unresolved_question\n    attributes:\n      label: \"Unresolved questions\"\n      description: What questions still remain unresolved ?\n      placeholder: Identify any unresolved issues.\n    validations:\n      required: false"
  },
  {
    "path": ".github/ISSUE_TEMPLATE /config.yml",
    "content": "blank_issues_enabled: false\ncontact_links:\n    - name: One Chowdhury\n      url: mailto:one@octolane.com\n      about: CEO & Co-Founder @Octolane AI. Please do NOT use this email to post issues or feature requests (only important business/personal contact).\n    - name: Abdul Halim Rafi\n      url: mailto:rafi@octolane.com\n      about: CTO & Co-Founder @Octolane AI. Please do NOT use this email to post issues or feature requests (only important business/personal contact)."
  },
  {
    "path": ".github/PULL_REQUEST_TEMPLATE.md",
    "content": "# Pull Request Process\n\n## Before submitting a pull request\n\n> Ask contributors to ensure that any install or build dependencies are removed before the end of the layer when doing a build.\n\n## General steps for completing this pull request\n\nPlease review the [guidelines for contributing](CONTRIBUTING.md) to this repository.\n\n### Checklist\n\n> Does your project contributions have steps to follow before being approved? Tests, documentation changing, etc?\n\nEnsure that your `pull request` has followed all the steps below:\n\n- [ ] Code compilation\n- [ ] Successful build\n- [ ] All tests passing\n- [ ] Extended the documentation, if applicable\n- [ ] Added myself to the AUTHORS file\n\n### Description\n\n> Ask the contributor to describe his `pull request`.\n\n## Proposed changes\n\n> Ask contributors about why you (or your project maintainers) would accept the pull request. If it solves a previous request, also ask to link to that issue.\n\n### Types of changes\n\n> Show in a checkbox-style, the expected types of changes your project is supposed to have:\n\n- [ ] New feature\n- [ ] Bugfix\n- [ ] So on...\n"
  },
  {
    "path": ".github/settings.yml",
    "content": "repository:\n# Labels: define labels for Issues and Pull Requests\nlabels:\n    - name: 'Type: Bug'\n      color: e80c0c\n      description: Something isn't working as expected.\n\n    - name: 'Type: Enhancement'\n      color: 54b2ff\n      description: Suggest an improvement for an existing feature.\n\n    - name: 'Type: Feature'\n      color: 54b2ff\n      description: Suggest a new feature.\n\n    - name: 'Type: Security'\n      color: fbff00\n      description: A problem or enhancement related to a security issue.\n\n    - name: 'Type: Question'\n      color: 9309ab\n      description: Request for information.\n\n    - name: 'Type: Test'\n      color: ce54e3\n      description: A problem or enhancement related to a test.\n\n    - name: 'Status: Awaiting Review'\n      color: 24d15d\n      description: Ready for review.\n\n    - name: 'Status: WIP'\n      color: 07b340\n      description: Currently being worked on.\n\n    - name: 'Status: Waiting'\n      color: 38C968\n      description: Waiting on something else to be ready.\n\n    - name: 'Status: Stale'\n      color: 66b38a\n      description: Has had no activity for some time.\n\n    - name: 'Duplicate'\n      color: EB862D\n      description: Duplicate of another issue.\n\n    - name: 'Invalid'\n      color: faef50\n      description: This issue doesn't seem right.\n\n    - name: 'Priority: High +'\n      color: ff008c\n      description: Task is considered higher-priority.\n\n    - name: 'Priority: Low -'\n      color: 690a34\n      description: Task is considered lower-priority.\n\n    - name: 'Documentation'\n      color: 2fbceb\n      description: An issue/change with the documentation.\n\n    - name: \"Won't fix\"\n      color: C8D9E6\n      description: Reported issue is working as intended.\n\n    - name: '3rd party issue'\n      color: e88707\n      description: This issue might be caused by a 3rd party script/package/other reasons\n\n    - name: 'Os: Windows'\n      color: AEB1C2\n      description: Is Windows-specific\n\n    - name: 'Os: Mac'\n      color: AEB1C2\n      description: Is Mac-specific\n\n    - name: 'Os: Linux'\n      color: AEB1C2\n      description: Is Linux-specific\n"
  },
  {
    "path": ".gitignore",
    "content": "# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.\n\n# dependencies\nnode_modules\ndist/\n\n# next.js\n.next/\n/out/\n\n# production\n/build\n\n# misc\n.DS_Store\n*.pem\n\n# debug\n.pnpm-debug.log*\n\n# local env files\n.env*.local\n.env\n\n# vercel\n.vercel\n\n# tinybird\n.venv\n.tinyb\n\n# turbo\n.turbo\n\n# typescript\n*.tsbuildinfo\nnext-env.d.ts\n\n# miscellaneous\n/pages/api/scripts*\n.react-email\n.contentlayer\n.vscode\n*.csv\n*.ndjson"
  },
  {
    "path": ".husky/pre-commit",
    "content": "#!/usr/bin/env sh\n. \"$(dirname -- \"$0\")/_/husky.sh\"\n\npnpm format\n"
  },
  {
    "path": ".husky/pre-push",
    "content": "#!/bin/sh\n. \"$(dirname \"$0\")/_/husky.sh\"\n\npnpm build"
  },
  {
    "path": ".prettierignore",
    "content": "node_modules\npnpm-lock.yaml\n.next\n.turbo\ndist"
  },
  {
    "path": ".prettierrc",
    "content": "{\n  \"singleQuote\": false,\n  \"trailingComma\": \"all\",\n  \"arrowParens\": \"avoid\",\n  \"tabWidth\": 2,\n  \"semi\": true,\n  \"useTabs\": false,\n  \"printWidth\": 80,\n  \"plugins\": [\n    \"prettier-plugin-tailwindcss\",\n    \"@trivago/prettier-plugin-sort-imports\"\n  ],\n  \"importOrder\": [\n    \"<THIRD_PARTY_MODULES>\",\n    \"@/core\",\n    \"@/components\",\n    \"@/lib\",\n    \"@/content\",\n    \"@/content\",\n    \"@/utils\",\n    \"@/constants\",\n    \"@/types\",\n    \".svg\",\n    \"^../(.*)$\",\n    \"^[./]\",\n    \"(?=./styles.module.scss)\"\n  ],\n  \"importOrderSeparation\": true\n}\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "# CHANGELOG.md\n\n## [1.0.0] - 2024-01-11\n\nFirst release\n"
  },
  {
    "path": "LICENSE.md",
    "content": "                    GNU AFFERO GENERAL PUBLIC LICENSE\n                       Version 3, 19 November 2007\n\nCopyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\nEveryone is permitted to copy and distribute verbatim copies\nof this license document, but changing it is not allowed.\n\n                            Preamble\n\nThe GNU Affero General Public License is a free, copyleft license for\nsoftware and other kinds of works, specifically designed to ensure\ncooperation with the community in the case of network server software.\n\nThe licenses for most software and other practical works are designed\nto take away your freedom to share and change the works. By contrast,\nour General Public Licenses are intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.\n\nWhen we speak of free software, we are referring to freedom, not\nprice. Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\nDevelopers that use our General Public Licenses protect your rights\nwith two steps: (1) assert copyright on the software, and (2) offer\nyou this License which gives you legal permission to copy, distribute\nand/or modify the software.\n\nA secondary benefit of defending all users' freedom is that\nimprovements made in alternate versions of the program, if they\nreceive widespread use, become available for other developers to\nincorporate. Many developers of free software are heartened and\nencouraged by the resulting cooperation. However, in the case of\nsoftware used on network servers, this result may fail to come about.\nThe GNU General Public License permits making a modified version and\nletting the public access it on a server without ever releasing its\nsource code to the public.\n\nThe GNU Affero General Public License is designed specifically to\nensure that, in such cases, the modified source code becomes available\nto the community. It requires the operator of a network server to\nprovide the source code of the modified version running there to the\nusers of that server. Therefore, public use of a modified version, on\na publicly accessible server, gives the public access to the source\ncode of the modified version.\n\nAn older license, called the Affero General Public License and\npublished by Affero, was designed to accomplish similar goals. This is\na different license, not a version of the Affero GPL, but Affero has\nreleased a new version of the Affero GPL which permits relicensing under\nthis license.\n\nThe precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n0. Definitions.\n\n\"This License\" refers to version 3 of the GNU Affero General Public License.\n\n\"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n\"The Program\" refers to any copyrightable work licensed under this\nLicense. Each licensee is addressed as \"you\". \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\nTo \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy. The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\nA \"covered work\" means either the unmodified Program or a work based\non the Program.\n\nTo \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy. Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\nTo \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies. Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\nAn interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License. If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n1. Source Code.\n\nThe \"source code\" for a work means the preferred form of the work\nfor making modifications to it. \"Object code\" means any non-source\nform of a work.\n\nA \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\nThe \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form. A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\nThe \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities. However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work. For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\nThe Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\nThe Corresponding Source for a work in source code form is that\nsame work.\n\n2. Basic Permissions.\n\nAll rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met. This License explicitly affirms your unlimited\npermission to run the unmodified Program. The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work. This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\nYou may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force. You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright. Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\nConveying under any other circumstances is permitted solely under\nthe conditions stated below. Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\nNo covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\nWhen you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n4. Conveying Verbatim Copies.\n\nYou may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\nYou may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n5. Conveying Modified Source Versions.\n\nYou may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\nA compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit. Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n6. Conveying Non-Source Forms.\n\nYou may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\nA separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\nA \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling. In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage. For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product. A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n\"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source. The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\nIf you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information. But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\nThe requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed. Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\nCorresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n7. Additional Terms.\n\n\"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law. If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\nWhen you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit. (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.) You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\nNotwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\nAll other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10. If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term. If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\nIf you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\nAdditional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n8. Termination.\n\nYou may not propagate or modify a covered work except as expressly\nprovided under this License. Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\nHowever, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\nMoreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\nTermination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License. If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n9. Acceptance Not Required for Having Copies.\n\nYou are not required to accept this License in order to receive or\nrun a copy of the Program. Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance. However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work. These actions infringe copyright if you do\nnot accept this License. Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n10. Automatic Licensing of Downstream Recipients.\n\nEach time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License. You are not responsible\nfor enforcing compliance by third parties with this License.\n\nAn \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations. If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\nYou may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License. For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n11. Patents.\n\nA \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based. The\nwork thus licensed is called the contributor's \"contributor version\".\n\nA contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version. For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\nEach contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\nIn the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement). To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\nIf you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients. \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\nIf, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\nA patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License. You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\nNothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n12. No Surrender of Others' Freedom.\n\nIf conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License. If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all. For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n13. Remote Network Interaction; Use with the GNU General Public License.\n\nNotwithstanding any other provision of this License, if you modify the\nProgram, your modified version must prominently offer all users\ninteracting with it remotely through a computer network (if your version\nsupports such interaction) an opportunity to receive the Corresponding\nSource of your version by providing access to the Corresponding Source\nfrom a network server at no charge, through some standard or customary\nmeans of facilitating copying of software. This Corresponding Source\nshall include the Corresponding Source for any work covered by version 3\nof the GNU General Public License that is incorporated pursuant to the\nfollowing paragraph.\n\nNotwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU General Public License into a single\ncombined work, and to convey the resulting work. The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the work with which it is combined will remain governed by version\n3 of the GNU General Public License.\n\n14. Revised Versions of this License.\n\nThe Free Software Foundation may publish revised and/or new versions of\nthe GNU Affero General Public License from time to time. Such new versions\nwill be similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\nEach version is given a distinguishing version number. If the\nProgram specifies that a certain numbered version of the GNU Affero General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation. If the Program does not specify a version number of the\nGNU Affero General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\nIf the Program specifies that a proxy can decide which future\nversions of the GNU Affero General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\nLater license versions may give you additional or different\npermissions. However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n15. Disclaimer of Warranty.\n\nTHERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n16. Limitation of Liability.\n\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n17. Interpretation of Sections 15 and 16.\n\nIf the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\nIf you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU Affero General Public License as published\n    by the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU Affero General Public License for more details.\n\n    You should have received a copy of the GNU Affero General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf your software can interact with users remotely through a computer\nnetwork, you should also make sure that it provides a way for users to\nget its source. For example, if your program is a web application, its\ninterface could display a \"Source\" link that leads users to an archive\nof the code. There are many ways you could offer source, and different\nsolutions will be better for different programs; see section 13 for the\nspecific requirements.\n\nYou should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU AGPL, see\n<https://www.gnu.org/licenses/>.\n"
  },
  {
    "path": "README.md",
    "content": "## Introduction\n\ncap.octolane.com is the open-source cap table management infrastructure for all founders and investors. For cloud ☁️ hosted solution to this Cap Table Management, [register here 👉](https://jl1zzmzlaee.typeform.com/to/Fbf4XlNu).\n\n## Features\n\n## Self-Hosting\n\n## Tech Stack\n\n- [Next.js](https://nextjs.org/) – framework\n- [LanternDB](https://lantern.dev) – Only database you need for your AI applications\n- [TypeScript](https://www.typescriptlang.org/) – language\n- [Tailwind](https://tailwindcss.com/) – CSS\n- [Upstash](https://upstash.com/) – redis\n- [Tinybird](https://tinybird.com/) – analytics\n- [NextAuth.js](https://next-auth.js.org/) – auth\n- [BoxyHQ](https://boxyhq.com/enterprise-sso) – SSO/SAML\n- [Turborepo](https://turbo.build/repo) – monorepo\n- [Stripe](https://stripe.com/) – payments\n- [Resend](https://resend.com/) – emails\n- [Vercel](https://vercel.com/) – deployments\n\n## Contributing\n\nWe love our contributors! Here's how you can contribute:\n\n- [Open an issue](https://github.com/octolane-org/cap.octolane.com/issues) if you believe you've encountered a bug.\n- Make a [pull request](https://github.com/octolane-org/cap.octolane.com/pulls) to add new features/make quality-of-life improvements/fix bugs.\n\n## License\n\nInspired by [Dub.co](https://dub.co/), cap.octolane.com is open-source under the GNU Affero General Public License Version 3 (AGPLv3) or any later version. You can [find it here](https://github.com/octolane-org/cap.octolane.com/blob/main/LICENSE.md).\n"
  },
  {
    "path": "apps/web/.gitignore",
    "content": "# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.\n\n# dependencies\n/node_modules\n/.pnp\n.pnp.js\n\n# testing\n/coverage\n\n# next.js\n/.next/\n/out/\n\n# production\n/build\n\n# misc\n.DS_Store\n*.pem\n\n# debug\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n.pnpm-debug.log*\n\n# local env files\n.env*.local\n\n# vercel\n.vercel\n\n# typescript\n*.tsbuildinfo\nnext-env.d.ts\n\n# contentlayer\n.contentlayer\n"
  },
  {
    "path": "apps/web/README.md",
    "content": "This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).\n\n## Getting Started\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n# or\npnpm dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.\n\n[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.\n\nThe `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.\n\nThis project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.\n\n## Learn More\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!\n\n## Deploy on Vercel\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.\n"
  },
  {
    "path": "apps/web/app/(default)/components/Content.tsx",
    "content": "\"use client\";\n\nimport { Transition } from \"@headlessui/react\";\nimport { useEffect, useRef, useState } from \"react\";\n\nconst HomepageContent = () => {\n  const [tab, setTab] = useState<number>(1);\n\n  const tabs = useRef<HTMLDivElement>(null);\n\n  const heightFix = () => {\n    if (tabs.current && tabs.current.parentElement)\n      tabs.current.parentElement.style.height = `${tabs.current.clientHeight}px`;\n  };\n\n  useEffect(() => {\n    heightFix();\n  }, []);\n\n  return (\n    <section className=\"relative\">\n      <div\n        className=\"absolute inset-0 bg-gray-100 pointer-events-none mb-16\"\n        aria-hidden=\"true\"\n      />\n      <div className=\"absolute left-0 right-0 m-auto w-px p-px h-20 bg-gray-200 transform -translate-y-1/2\" />\n\n      <div className=\"relative max-w-6xl mx-auto px-4 sm:px-6\">\n        <div className=\"pt-12 md:pt-20\">\n          {/* Section header */}\n          <div className=\"max-w-3xl mx-auto text-center pb-12 md:pb-16\">\n            <h1 className=\"h2 mb-4\">Open Source Cap Table Management</h1>\n            <p className=\"text-xl text-gray-600\">\n              Explore the power of open-source solutions for managing your\n              company's equity with precision and ease.\n            </p>\n          </div>\n\n          {/* Section content */}\n          <div className=\"md:grid md:grid-cols-12 md:gap-6\">\n            {/* Content */}\n            <div\n              className=\"max-w-xl md:max-w-none md:w-full mx-auto md:col-span-7 lg:col-span-6 md:mt-6\"\n              data-aos=\"fade-right\"\n            >\n              {/* Tabs buttons */}\n              <div className=\"mb-8 md:mb-0\">\n                <button\n                  className={`text-left flex items-center text-lg p-5 rounded border transition duration-300 ease-in-out mb-3 ${\n                    tab !== 1\n                      ? \"bg-white shadow-md border-gray-200 hover:shadow-lg\"\n                      : \"bg-gray-200 border-transparent\"\n                  }`}\n                  onClick={e => {\n                    e.preventDefault();\n                    setTab(1);\n                  }}\n                >\n                  <div>\n                    <div className=\"font-bold leading-snug tracking-tight mb-1\">\n                      Error-Free Updates\n                    </div>\n                    <div className=\"text-gray-600\">\n                      Automated processes ensure your cap table remains accurate\n                      and up-to-date, eliminating reconciliation worries.\n                    </div>\n                  </div>\n                  <div className=\"flex justify-center items-center w-8 h-8 bg-white rounded-full shadow shrink-0 ml-3\">\n                    <svg\n                      className=\"w-3 h-3 fill-current\"\n                      viewBox=\"0 0 12 12\"\n                      xmlns=\"http://www.w3.org/2000/svg\"\n                    >\n                      <path d=\"M11.953 4.29a.5.5 0 00-.454-.292H6.14L6.984.62A.5.5 0 006.12.173l-6 7a.5.5 0 00.379.825h5.359l-.844 3.38a.5.5 0 00.864.445l6-7a.5.5 0 00.075-.534z\" />\n                    </svg>\n                  </div>\n                </button>\n                <button\n                  className={`text-left flex items-center text-lg p-5 rounded border transition duration-300 ease-in-out mb-3 ${\n                    tab !== 2\n                      ? \"bg-white shadow-md border-gray-200 hover:shadow-lg\"\n                      : \"bg-gray-200 border-transparent\"\n                  }`}\n                  onClick={e => {\n                    e.preventDefault();\n                    setTab(2);\n                  }}\n                >\n                  <div>\n                    <div className=\"font-bold leading-snug tracking-tight mb-1\">\n                      Collaborative Environment\n                    </div>\n                    <div className=\"text-gray-600\">\n                      Facilitate seamless collaboration among stakeholders with\n                      shared access and transparent equity management.\n                    </div>\n                  </div>\n                  <div className=\"flex justify-center items-center w-8 h-8 bg-white rounded-full shadow shrink-0 ml-3\">\n                    <svg\n                      className=\"w-3 h-3 fill-current\"\n                      viewBox=\"0 0 12 12\"\n                      xmlns=\"http://www.w3.org/2000/svg\"\n                    >\n                      <path\n                        d=\"M11.854.146a.5.5 0 00-.525-.116l-11 4a.5.5 0 00-.015.934l4.8 1.921 1.921 4.8A.5.5 0 007.5 12h.008a.5.5 0 00.462-.329l4-11a.5.5 0 00-.116-.525z\"\n                        fillRule=\"nonzero\"\n                      />\n                    </svg>\n                  </div>\n                </button>\n                <button\n                  className={`text-left flex items-center text-lg p-5 rounded border transition duration-300 ease-in-out mb-3 ${\n                    tab !== 3\n                      ? \"bg-white shadow-md border-gray-200 hover:shadow-lg\"\n                      : \"bg-gray-200 border-transparent\"\n                  }`}\n                  onClick={e => {\n                    e.preventDefault();\n                    setTab(3);\n                  }}\n                >\n                  <div>\n                    <div className=\"font-bold leading-snug tracking-tight mb-1\">\n                      Transparent Processes\n                    </div>\n                    <div className=\"text-gray-600\">\n                      Our open-source approach ensures transparency in every\n                      aspect of your cap table management.\n                    </div>\n                  </div>\n                  <div className=\"flex justify-center items-center w-8 h-8 bg-white rounded-full shadow shrink-0 ml-3\">\n                    <svg\n                      className=\"w-3 h-3 fill-current\"\n                      viewBox=\"0 0 12 12\"\n                      xmlns=\"http://www.w3.org/2000/svg\"\n                    >\n                      <path\n                        d=\"M11.334 8.06a.5.5 0 00-.421-.237 6.023 6.023 0 01-5.905-6c0-.41.042-.82.125-1.221a.5.5 0 00-.614-.586 6 6 0 106.832 8.529.5.5 0 00-.017-.485z\"\n                        fill=\"#18181b\"\n                        fillRule=\"nonzero\"\n                      />\n                    </svg>\n                  </div>\n                </button>\n              </div>\n            </div>\n\n            {/* Tabs items */}\n            <div className=\"max-w-xl md:max-w-none md:w-full mx-auto md:col-span-5 lg:col-span-6 mb-8 md:mb-0 md:order-1\">\n              <div className=\"transition-all\">\n                <div\n                  className=\"relative flex flex-col text-center lg:text-right\"\n                  data-aos=\"zoom-y-out\"\n                  ref={tabs}\n                >\n                  {/* Item 1 */}\n                  <Transition\n                    show={tab === 1}\n                    className=\"w-full\"\n                    enter=\"transition ease-in-out duration-700 transform order-first\"\n                    enterFrom=\"opacity-0 translate-y-16\"\n                    enterTo=\"opacity-100 translate-y-0\"\n                    leave=\"transition ease-in-out duration-300 transform absolute\"\n                    leaveFrom=\"opacity-100 translate-y-0\"\n                    leaveTo=\"opacity-0 -translate-y-16\"\n                    beforeEnter={() => heightFix()}\n                    unmount={false}\n                  >\n                    <div className=\"relative inline-flex flex-col\">\n                      <h1 className=\"text-5xl md:text-6xl font-extrabold bg-clip-text text-transparent bg-gradient-to-r from-zinc-800 to-slate-700\">\n                        Never gonna let you down\n                      </h1>\n                    </div>\n                  </Transition>\n                  {/* Item 2 */}\n                  <Transition\n                    show={tab === 2}\n                    className=\"w-full\"\n                    enter=\"transition ease-in-out duration-700 transform order-first\"\n                    enterFrom=\"opacity-0 translate-y-16\"\n                    enterTo=\"opacity-100 translate-y-0\"\n                    leave=\"transition ease-in-out duration-300 transform absolute\"\n                    leaveFrom=\"opacity-100 translate-y-0\"\n                    leaveTo=\"opacity-0 -translate-y-16\"\n                    beforeEnter={() => heightFix()}\n                    unmount={false}\n                  >\n                    <div className=\"relative inline-flex flex-col\">\n                      <h1 className=\"text-5xl md:text-6xl font-extrabold bg-clip-text text-transparent bg-gradient-to-r from-zinc-800 to-slate-700\">\n                        Never gonna run around\n                      </h1>\n                    </div>\n                  </Transition>\n                  {/* Item 3 */}\n                  <Transition\n                    show={tab === 3}\n                    className=\"w-full\"\n                    enter=\"transition ease-in-out duration-700 transform order-first\"\n                    enterFrom=\"opacity-0 translate-y-16\"\n                    enterTo=\"opacity-100 translate-y-0\"\n                    leave=\"transition ease-in-out duration-300 transform absolute\"\n                    leaveFrom=\"opacity-100 translate-y-0\"\n                    leaveTo=\"opacity-0 -translate-y-16\"\n                    beforeEnter={() => heightFix()}\n                    unmount={false}\n                  >\n                    <div className=\"relative inline-flex flex-col\">\n                      <h1 className=\"text-5xl md:text-6xl font-extrabold bg-clip-text text-transparent bg-gradient-to-r from-zinc-800 to-slate-700\">\n                        And desert you\n                      </h1>\n                    </div>\n                  </Transition>\n                </div>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n};\n\nexport default HomepageContent;\n"
  },
  {
    "path": "apps/web/app/(default)/components/Header.tsx",
    "content": "\"use client\";\n\nimport { useEffect, useState } from \"react\";\n\nimport { configuration } from \"@/core/constants/configs\";\n\nimport Logo from \"@/components/Logo\";\nimport { Button } from \"@/components/ui/button\";\n\nexport default function Header() {\n  const [top, setTop] = useState<boolean>(true);\n\n  // detect whether user has scrolled the page down by 10px\n  const scrollHandler = () => {\n    window.scrollY > 10 ? setTop(false) : setTop(true);\n  };\n\n  useEffect(() => {\n    scrollHandler();\n    window.addEventListener(\"scroll\", scrollHandler);\n    return () => window.removeEventListener(\"scroll\", scrollHandler);\n  }, [top]);\n\n  return (\n    <header\n      className={`fixed w-full z-30 md:bg-opacity-90 transition duration-300 ease-in-out ${\n        !top ? \"bg-zinc backdrop-blur-sm shadow-lg\" : \"\"\n      }`}\n    >\n      <div className=\"max-w-6xl mx-auto px-5 sm:px-6\">\n        <div className=\"flex items-center justify-between h-16 md:h-20\">\n          <div className=\"shrink-0 mr-4\">\n            <Logo />\n          </div>\n\n          <nav className=\"hidden md:flex md:grow\">\n            <ul className=\"flex grow justify-end flex-wrap items-center\">\n              <li>\n                <Button href={configuration.paths.dashbord}>\n                  Live Demo\n                  <svg\n                    className=\"w-3 h-3 fill-current text-gray-400 shrink-0 ml-2 -mr-1\"\n                    viewBox=\"0 0 12 12\"\n                    xmlns=\"http://www.w3.org/2000/svg\"\n                  >\n                    <path\n                      d=\"M11.707 5.293L7 .586 5.586 2l3 3H0v2h8.586l-3 3L7 11.414l4.707-4.707a1 1 0 000-1.414z\"\n                      fillRule=\"nonzero\"\n                    />\n                  </svg>\n                </Button>\n              </li>\n            </ul>\n          </nav>\n        </div>\n      </div>\n    </header>\n  );\n}\n"
  },
  {
    "path": "apps/web/app/(default)/components/Hero.tsx",
    "content": "import VideoThumb from \"@/public/images/captable.gif\";\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\n\nimport { Button } from \"@/components/ui/button\";\n\nimport { faDiscord, faGithub } from \"@fortawesome/free-brands-svg-icons\";\n\nimport ModalVideo from \"./ModalVideo\";\n\nconst HomepageHero = () => {\n  return (\n    <section className=\"relative\">\n      {/* Illustration behind hero content */}\n      <div\n        className=\"absolute left-1/2 transform -translate-x-1/2 bottom-0 pointer-events-none -z-1\"\n        aria-hidden=\"true\"\n      >\n        <svg\n          width=\"1360\"\n          height=\"578\"\n          viewBox=\"0 0 1360 578\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <defs>\n            <linearGradient\n              x1=\"50%\"\n              y1=\"0%\"\n              x2=\"50%\"\n              y2=\"100%\"\n              id=\"illustration-01\"\n            >\n              <stop stopColor=\"#FFF\" offset=\"0%\" />\n              <stop stopColor=\"#EAEAEA\" offset=\"77.402%\" />\n              <stop stopColor=\"#DFDFDF\" offset=\"100%\" />\n            </linearGradient>\n          </defs>\n          <g fill=\"url(#illustration-01)\" fillRule=\"evenodd\">\n            <circle cx=\"1232\" cy=\"128\" r=\"128\" />\n            <circle cx=\"155\" cy=\"443\" r=\"64\" />\n          </g>\n        </svg>\n      </div>\n\n      <div className=\"max-w-6xl mx-auto px-4 sm:px-6\">\n        {/* Hero content */}\n        <div className=\"pt-32 pb-12 md:pt-40 md:pb-20\">\n          {/* Section header */}\n          <div className=\"text-center pb-12 md:pb-16\">\n            <h1 className=\"text-4xl md:text-5xl font-extrabold bg-clip-text text-transparent bg-gradient-to-r from-blue-500 to-teal-400\">\n              Open Source Cap Table Manager\n            </h1>{\" \"}\n            <div className=\"max-w-3xl mx-auto mt-4\">\n              <p\n                className=\"text-xl text-gray-600 mb-8\"\n                data-aos=\"zoom-y-out\"\n                data-aos-delay=\"150\"\n              >\n                A Project by Co-Pilot for Sales CRM{\" \"}\n                <a\n                  className=\"font-bold underline bg-clip-text text-transparent bg-gradient-to-r from-zinc-800 to-zinc-600\"\n                  href=\"https://octolane.com\"\n                  target=\"_blank\"\n                  rel=\"noopener noreferrer\"\n                >\n                  Octolane AI\n                </a>\n              </p>\n              <div className=\"flex justify-center gap-x-6\">\n                <Button\n                  href=\"https://github.com/octolane-org/cap.octolane.com\"\n                  target=\"_blank\"\n                  className=\"max-w-xs  sm:max-w-none sm:flex sm:justify-center\"\n                  data-aos=\"zoom-y-out\"\n                  data-aos-delay=\"300\"\n                >\n                  <FontAwesomeIcon\n                    icon={faGithub}\n                    className=\"text-white h-5 w-5 mr-2\"\n                  />\n                  GitHub\n                </Button>\n                <Button\n                  href=\"https://discord.gg/UWXtkdxc\"\n                  target=\"_blank\"\n                  className=\"max-w-xs  sm:max-w-none sm:flex sm:justify-center bg-[#404eed]\"\n                  data-aos=\"zoom-y-out\"\n                  data-aos-delay=\"300\"\n                >\n                  <FontAwesomeIcon\n                    icon={faDiscord}\n                    className=\"text-white h-5 w-5 mr-2\"\n                  />\n                  Discord\n                </Button>\n              </div>\n            </div>\n          </div>\n\n          {/* Hero image */}\n          <ModalVideo\n            thumb={VideoThumb}\n            thumbWidth={800}\n            thumbHeight={432}\n            thumbAlt=\"Follow progress on Twitter\"\n            video=\"Follow progress on Twitter\"\n            videoWidth={1920}\n            videoHeight={1080}\n          />\n        </div>\n      </div>\n    </section>\n  );\n};\n\nexport default HomepageHero;\n"
  },
  {
    "path": "apps/web/app/(default)/components/ModalVideo.tsx",
    "content": "\"use client\";\n\nimport { Dialog, Transition } from \"@headlessui/react\";\nimport type { StaticImageData } from \"next/image\";\nimport Image from \"next/image\";\nimport { Fragment, useRef, useState } from \"react\";\n\ninterface ModalVideoProps {\n  thumb: StaticImageData;\n  thumbWidth: number;\n  thumbHeight: number;\n  thumbAlt: string;\n  video: string;\n  videoWidth: number;\n  videoHeight: number;\n}\n\nexport default function ModalVideo({\n  thumb,\n  thumbWidth,\n  thumbHeight,\n  thumbAlt,\n  video,\n  videoWidth,\n  videoHeight,\n}: ModalVideoProps) {\n  const [modalOpen, setModalOpen] = useState<boolean>(false);\n  const videoRef = useRef<HTMLVideoElement>(null);\n\n  return (\n    <div>\n      {/* Video thumbnail */}\n      <div>\n        <div\n          className=\"relative flex justify-center mb-8\"\n          data-aos=\"zoom-y-out\"\n          data-aos-delay=\"450\"\n        >\n          <div className=\"flex flex-col justify-center border shadow-lg\">\n            <Image\n              src={thumb}\n              width={thumbWidth}\n              height={thumbHeight}\n              alt={thumbAlt}\n            />\n            <svg\n              className=\"absolute inset-0 max-w-full mx-auto md:max-w-none h-auto\"\n              width=\"768\"\n              height=\"432\"\n              viewBox=\"0 0 768 432\"\n              xmlns=\"http://www.w3.org/2000/svg\"\n              xmlnsXlink=\"http://www.w3.org/1999/xlink\"\n            >\n              <defs>\n                <linearGradient\n                  x1=\"50%\"\n                  y1=\"0%\"\n                  x2=\"50%\"\n                  y2=\"100%\"\n                  id=\"hero-ill-a\"\n                >\n                  <stop stopColor=\"#FFF\" offset=\"0%\" />\n                  <stop stopColor=\"#EAEAEA\" offset=\"77.402%\" />\n                  <stop stopColor=\"#DFDFDF\" offset=\"100%\" />\n                </linearGradient>\n                <linearGradient\n                  x1=\"50%\"\n                  y1=\"0%\"\n                  x2=\"50%\"\n                  y2=\"99.24%\"\n                  id=\"hero-ill-b\"\n                >\n                  <stop stopColor=\"#FFF\" offset=\"0%\" />\n                  <stop stopColor=\"#EAEAEA\" offset=\"48.57%\" />\n                  <stop stopColor=\"#DFDFDF\" stopOpacity=\"0\" offset=\"100%\" />\n                </linearGradient>\n                <radialGradient\n                  cx=\"21.152%\"\n                  cy=\"86.063%\"\n                  fx=\"21.152%\"\n                  fy=\"86.063%\"\n                  r=\"79.941%\"\n                  id=\"hero-ill-e\"\n                >\n                  <stop stopColor=\"#4FD1C5\" offset=\"0%\" />\n                  <stop stopColor=\"#81E6D9\" offset=\"25.871%\" />\n                  <stop stopColor=\"#338CF5\" offset=\"100%\" />\n                </radialGradient>\n                <circle id=\"hero-ill-d\" cx=\"384\" cy=\"216\" r=\"64\" />\n              </defs>\n              <g fill=\"none\" fillRule=\"evenodd\">\n                <circle\n                  fillOpacity=\".04\"\n                  fill=\"url(#hero-ill-a)\"\n                  cx=\"384\"\n                  cy=\"216\"\n                  r=\"128\"\n                />\n                <circle\n                  fillOpacity=\".16\"\n                  fill=\"url(#hero-ill-b)\"\n                  cx=\"384\"\n                  cy=\"216\"\n                  r=\"96\"\n                />\n              </g>\n            </svg>\n          </div>\n        </div>\n      </div>\n      {/* End: Video thumbnail */}\n\n      <Transition\n        show={modalOpen}\n        as={Fragment}\n        afterEnter={() => videoRef.current?.play()}\n      >\n        <Dialog initialFocus={videoRef} onClose={() => setModalOpen(false)}>\n          {/* Modal backdrop */}\n          <Transition.Child\n            className=\"fixed inset-0 z-[99999] bg-black bg-opacity-75 transition-opacity\"\n            enter=\"transition ease-out duration-200\"\n            enterFrom=\"opacity-0\"\n            enterTo=\"opacity-100\"\n            leave=\"transition ease-out duration-100\"\n            leaveFrom=\"opacity-100\"\n            leaveTo=\"opacity-0\"\n            aria-hidden=\"true\"\n          />\n          {/* End: Modal backdrop */}\n\n          {/* Modal dialog */}\n          <Transition.Child\n            className=\"fixed inset-0 z-[99999] overflow-hidden flex items-center justify-center transform px-4 sm:px-6\"\n            enter=\"transition ease-out duration-200\"\n            enterFrom=\"opacity-0 scale-95\"\n            enterTo=\"opacity-100 scale-100\"\n            leave=\"ttransition ease-out duration-200\"\n            leaveFrom=\"oopacity-100 scale-100\"\n            leaveTo=\"opacity-0 scale-95\"\n          >\n            <div className=\"max-w-6xl mx-auto h-full flex items-center\">\n              <Dialog.Panel className=\"w-full max-h-full aspect-video bg-black overflow-hidden\">\n                <video\n                  ref={videoRef}\n                  width={videoWidth}\n                  height={videoHeight}\n                  loop\n                  controls\n                >\n                  <source src={video} type=\"video/mp4\" />\n                  Your browser does not support the video tag.\n                </video>\n              </Dialog.Panel>\n            </div>\n          </Transition.Child>\n          {/* End: Modal dialog */}\n        </Dialog>\n      </Transition>\n    </div>\n  );\n}\n"
  },
  {
    "path": "apps/web/app/(default)/layout.tsx",
    "content": "\"use client\";\n\nimport AOS from \"aos\";\nimport \"aos/dist/aos.css\";\nimport { Fragment, useEffect } from \"react\";\n\nimport Header from \"./components/Header\";\n\nexport default function DefaultLayout({\n  children,\n}: {\n  children: React.ReactNode;\n}) {\n  useEffect(() => {\n    AOS.init({\n      once: true,\n      disable: \"phone\",\n      duration: 700,\n      easing: \"ease-out-cubic\",\n    });\n  });\n\n  return (\n    <Fragment>\n      <Header />\n      <main className=\"grow\">{children}</main>\n      <footer>\n        <div className=\"max-w-6xl mx-auto px-4 sm:px-6\">\n          <div className=\"md:flex md:items-center md:justify-between py-4 md:py-8 border-t border-gray-200\">\n            <ul className=\"flex mb-4 md:order-1 md:ml-4 md:mb-0\">\n              <li>\n                <a\n                  href=\"https://twitter.com/coffeewithone\"\n                  className=\"flex justify-center items-center text-gray-600 hover:text-gray-900 bg-white hover:bg-white-100 rounded-full shadow transition duration-150 ease-in-out\"\n                  aria-label=\"Twitter\"\n                >\n                  <svg\n                    className=\"w-8 h-8 fill-current\"\n                    viewBox=\"0 0 32 32\"\n                    xmlns=\"http://www.w3.org/2000/svg\"\n                  >\n                    <path d=\"m13.063 9 3.495 4.475L20.601 9h2.454l-5.359 5.931L24 23h-4.938l-3.866-4.893L10.771 23H8.316l5.735-6.342L8 9h5.063Zm-.74 1.347h-1.457l8.875 11.232h1.36l-8.778-11.232Z\" />\n                  </svg>\n                </a>\n              </li>\n            </ul>\n            <div className=\"text-sm text-gray-600 mr-4\">\n              &copy; No copyright! Absolutely free for public use.\n            </div>\n          </div>\n        </div>\n      </footer>\n    </Fragment>\n  );\n}\n"
  },
  {
    "path": "apps/web/app/(default)/page.tsx",
    "content": "import { Fragment } from \"react\";\n\nimport HomepageContent from \"./components/Content\";\nimport HomepageHero from \"./components/Hero\";\n\nexport const metadata = {\n  title: \"ByeByeCarta.com\",\n  description: \"Open Source Cap Table Manager\",\n};\n\nexport default function Home() {\n  return (\n    <Fragment>\n      <HomepageHero />\n      <HomepageContent />\n    </Fragment>\n  );\n}\n"
  },
  {
    "path": "apps/web/app/api/auth/[...nextauth]/options.ts",
    "content": "import { PrismaAdapter } from \"@next-auth/prisma-adapter\";\nimport type { NextAuthOptions } from \"next-auth\";\nimport GoogleProvider from \"next-auth/providers/google\";\n\nimport { configuration } from \"@/core/constants/configs\";\nimport { prisma } from \"@/core/prisma\";\n\nexport const nextAuthOptions: NextAuthOptions = {\n  providers: [\n    GoogleProvider({\n      clientId: configuration.auth.google.clientId,\n      clientSecret: configuration.auth.google.clientSecret,\n    }),\n  ],\n  adapter: PrismaAdapter(prisma),\n  secret: configuration.auth.secret,\n  callbacks: {\n    signIn: params => {\n      if (params.user.email?.endsWith(\"@gmail.com\")) {\n        throw new Error(\"You must use a Google Workspace account to sign in.\");\n      }\n      return true;\n    },\n  },\n  pages: {\n    error: \"/auth/error\",\n  },\n};\n"
  },
  {
    "path": "apps/web/app/api/auth/[...nextauth]/route.ts",
    "content": "import NextAuth from \"next-auth/next\";\n\nimport { nextAuthOptions } from \"./options\";\n\nconst authHandler = NextAuth(nextAuthOptions);\n\nexport { authHandler as GET, authHandler as POST };\n"
  },
  {
    "path": "apps/web/app/api/shareholder/route.ts",
    "content": "import { HttpStatusCode } from \"axios\";\nimport * as yup from \"yup\";\n\nimport { prisma } from \"@/core/prisma\";\n\nimport { checkServerSession } from \"@/lib/server/session\";\n\ntype ShareholderInput = {\n  userId: string;\n  shareholderType: \"individual\" | \"entity\";\n};\n\nconst shareholderSchema = yup.object().shape({\n  userId: yup.string().required(\"User ID is required\"),\n  shareholderType: yup.string().required(\"Shareholder type is required\"),\n});\n\nexport async function POST(request: Request, response: Response) {\n  try {\n    await checkServerSession();\n\n    const shareholderData: ShareholderInput = await request.json();\n    await shareholderSchema.validate(shareholderData, { abortEarly: false });\n\n    const newShareholder = await prisma.shareholder.create({\n      data: {\n        user: { connect: { id: shareholderData.userId } },\n        shareholderType: shareholderData.shareholderType,\n      },\n    });\n\n    return Response.json(newShareholder, {\n      status: HttpStatusCode.Created,\n    });\n  } catch (error) {\n    return Response.json(\n      { message: \"Something went wrong\" },\n      { status: HttpStatusCode.InternalServerError },\n    );\n  }\n}\n"
  },
  {
    "path": "apps/web/app/auth/error/page.tsx",
    "content": "import { nextAuthOptions } from \"@/app/api/auth/[...nextauth]/options\";\nimport { getServerSession } from \"next-auth\";\nimport { redirect } from \"next/navigation\";\n\nimport { configuration } from \"@/core/constants/configs\";\nimport { ServerPageProps } from \"@/core/types/common.type\";\n\nimport GoogleLogin from \"../signin/components/GoogleLogin\";\n\nconst AuthErrorPage = async ({\n  searchParams,\n}: ServerPageProps<any, { error: string }>) => {\n  const session = await getServerSession(nextAuthOptions);\n\n  if (session?.user) {\n    redirect(configuration.paths.dashbord);\n  }\n\n  return (\n    <div className=\"h-full min-h-svh flex flex-col items-center justify-center gap-8\">\n      <h1 className=\"text-2xl font-bold\">Error while sign in!</h1>\n      <p className=\"text-red-500\">{searchParams.error}</p>\n      <GoogleLogin />\n    </div>\n  );\n};\n\nexport default AuthErrorPage;\n"
  },
  {
    "path": "apps/web/app/auth/signin/components/GoogleLogin.tsx",
    "content": "\"use client\";\n\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\nimport { signIn } from \"next-auth/react\";\n\nimport { Button } from \"@/components/ui/button\";\n\nimport { faGoogle } from \"@fortawesome/free-brands-svg-icons\";\n\nexport default function GoogleLogin() {\n  return (\n    <Button\n      onClick={() => {\n        try {\n          signIn(\"google\");\n        } catch (error) {\n          console.log(error);\n        }\n      }}\n    >\n      <FontAwesomeIcon icon={faGoogle} className=\"text-white h-5 w-5 mr-2\" />\n      Signin with Google\n    </Button>\n  );\n}\n"
  },
  {
    "path": "apps/web/app/auth/signin/page.tsx",
    "content": "import { nextAuthOptions } from \"@/app/api/auth/[...nextauth]/options\";\nimport { getServerSession } from \"next-auth\";\nimport { redirect } from \"next/navigation\";\n\nimport { configuration } from \"@/core/constants/configs\";\n\nimport GoogleLogin from \"./components/GoogleLogin\";\n\nconst SigninPage = async () => {\n  const session = await getServerSession(nextAuthOptions);\n\n  console.log(session);\n\n  if (session?.user) {\n    redirect(configuration.paths.dashbord);\n  }\n\n  return (\n    <div className=\"h-full min-h-svh flex flex-col items-center justify-center gap-8\">\n      <h1 className=\"text-2xl font-bold\">Welcome Back!</h1>\n      <GoogleLogin />\n    </div>\n  );\n};\n\nexport default SigninPage;\n"
  },
  {
    "path": "apps/web/app/auth/signout/page.tsx",
    "content": "\"use client\";\n\nimport { signOut, useSession } from \"next-auth/react\";\nimport { useEffect } from \"react\";\n\nconst SignOutPage = () => {\n  useEffect(() => {\n    signOut({ callbackUrl: \"/\" });\n  }, []);\n\n  return null;\n};\n\nexport default SignOutPage;\n"
  },
  {
    "path": "apps/web/app/dashboard/401-a/page.tsx",
    "content": "import WorkInProgress from \"@/components/WorkInProgress\";\n\nexport const metadata = {\n  title: \"401 A\",\n};\n\nconst FourZeroOneAPage = () => {\n  return (\n    <div>\n      <WorkInProgress />\n    </div>\n  );\n};\n\nexport default FourZeroOneAPage;\n"
  },
  {
    "path": "apps/web/app/dashboard/cap-table/components/AddNewOptionForm/DateField.tsx",
    "content": "import { CalendarIcon } from \"@radix-ui/react-icons\";\nimport { format } from \"date-fns\";\n\nimport { Button } from \"@/components/ui/button\";\nimport { Calendar } from \"@/components/ui/calendar\";\nimport {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport {\n  Popover,\n  PopoverContent,\n  PopoverTrigger,\n} from \"@/components/ui/popover\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nimport { useNewCapTableContext } from \"../../new/context/new-cap-table\";\nimport { NewOptionsFormFieldType } from \"../../new/types\";\n\nconst DateField = ({\n  name,\n  label,\n  placeholder = \"MM/DD/YYYY\",\n}: NewOptionsFormFieldType) => {\n  const { addOptionForm } = useNewCapTableContext();\n\n  return (\n    <FormField\n      control={addOptionForm?.control}\n      name={name}\n      render={({ field }) => (\n        <FormItem className=\"flex flex-col\">\n          <FormLabel>{label}</FormLabel>\n          <Popover>\n            <PopoverTrigger asChild>\n              <FormControl>\n                <Button\n                  variant={\"outline\"}\n                  className={cn(\n                    \"pl-3 text-left font-normal\",\n                    !field.value && \"text-muted-foreground\",\n                  )}\n                >\n                  {field.value ? (\n                    format(field.value as number, \"MM/dd/yyyy\")\n                  ) : (\n                    <span>{placeholder}</span>\n                  )}\n                  <CalendarIcon className=\"ml-auto h-4 w-4 opacity-50\" />\n                </Button>\n              </FormControl>\n            </PopoverTrigger>\n            <PopoverContent className=\"w-auto p-0\" align=\"start\">\n              <Calendar\n                mode=\"single\"\n                selected={field.value as Date}\n                onSelect={field.onChange}\n                disabled={date =>\n                  date > new Date() || date < new Date(\"1900-01-01\")\n                }\n                initialFocus\n              />\n            </PopoverContent>\n          </Popover>\n          <FormMessage />\n        </FormItem>\n      )}\n    />\n  );\n};\n\nexport default DateField;\n"
  },
  {
    "path": "apps/web/app/dashboard/cap-table/components/AddNewOptionForm/Form.tsx",
    "content": "\"use client\";\n\nimport { useRouter } from \"next/navigation\";\nimport { toast } from \"sonner\";\n\nimport { configuration } from \"@/core/constants/configs\";\n\nimport Tile from \"@/components/ui/Tile\";\nimport { Button } from \"@/components/ui/button\";\nimport {\n  Form,\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport { Input } from \"@/components/ui/input\";\nimport { Textarea } from \"@/components/ui/textarea\";\n\nimport { useNewCapTableContext } from \"../../new/context/new-cap-table\";\nimport { NewOptionsFormValues } from \"../../new/schema\";\n\nimport DateField from \"./DateField\";\nimport RadioGroupField from \"./RadioGroupField\";\nimport SelectField from \"./SelectField\";\nimport SwitchField from \"./SwitchField\";\nimport TextField from \"./TextField\";\n\nconst AddNewOptionForm = () => {\n  const router = useRouter();\n  const { addOptionForm } = useNewCapTableContext();\n\n  if (!addOptionForm) {\n    return null; // or your fallback UI\n  }\n\n  const quantity = addOptionForm.watch(\"quantity\");\n  const exercisePrice = addOptionForm.watch(\"exercisePrice\");\n\n  function onSubmit(values: NewOptionsFormValues) {\n    toast.success(\"Share Class Created!\");\n    router.push(configuration.paths.capTables.all);\n  }\n\n  return (\n    <Form {...addOptionForm}>\n      <form\n        onSubmit={addOptionForm?.handleSubmit(onSubmit)}\n        className=\"space-y-8\"\n      >\n        <Tile>\n          <h3 className=\"text-lg font-semibold\">1. Select Class Type</h3>\n          <SwitchField label=\"Early Exercise\" name=\"isEarlyExercise\" />\n        </Tile>\n\n        <Tile>\n          <h3 className=\"text-lg font-semibold\">\n            2. Add Stakeholder Information\n          </h3>\n          <SelectField\n            label=\"Stakeholder Name\"\n            name=\"stakeholderId\"\n            selectOptions={[\n              {\n                label: \"John Doe (john@example.com)\",\n                value: \"john-doe\",\n              },\n              {\n                label: \"Jane Doe (jane@example.com)\",\n                value: \"jane-doe\",\n              },\n            ]}\n          />\n        </Tile>\n\n        <Tile>\n          <h3 className=\"text-lg font-semibold\">3. Fill Out Information</h3>\n          <TextField\n            inputType=\"number\"\n            label=\"Quantity (Options)\"\n            name=\"quantity\"\n          />\n          <TextField\n            inputType=\"number\"\n            label=\"Exercise Price ($)\"\n            name=\"exercisePrice\"\n          />\n          <FormItem>\n            <FormLabel>Cost to Exercise ($)</FormLabel>\n            <Input\n              value={\n                quantity && exercisePrice\n                  ? (quantity * exercisePrice).toFixed(2)\n                  : 0\n              }\n              disabled\n            />\n          </FormItem>\n          <DateField label=\"Issued On\" name=\"issuedOn\" />\n          <RadioGroupField label=\"Includes Vesting\" name=\"includeVesting\" />\n          <SelectField\n            label=\"Option Grant Type\"\n            name=\"grantType\"\n            selectOptions={[\n              {\n                label: \"ISO (Incentive Stock Option)\",\n                value: \"ISO\",\n              },\n              {\n                label: \"NSO (Non-Qualified Stock Option)\",\n                value: \"NSO\",\n              },\n              {\n                label: \"INTL (International)\",\n                value: \"INTL\",\n              },\n              {\n                label: \"EMI (Enterprise Management Incentive)\",\n                value: \"EMI\",\n              },\n            ]}\n          />\n        </Tile>\n\n        <Tile>\n          <h3 className=\"text-lg font-semibold\">\n            4. Review Pre-filled Details\n          </h3>\n          <SelectField\n            label=\"Equity Plan\"\n            name=\"equityPlanId\"\n            selectOptions={[\n              {\n                label: \"EQ-1\",\n                value: \"eq-1\",\n              },\n            ]}\n          />\n          <SelectField\n            label=\"Federal Exemption\"\n            name=\"equityPlanId\"\n            selectOptions={[\n              {\n                label: \"Rule 701\",\n                value: \"Rule 701\",\n              },\n              {\n                label: \"Rule 4(a)(2)\",\n                value: \"Rule 4(a)(2)\",\n              },\n              {\n                label: \"Reg D - 506(b)\",\n                value: \"Reg D - 506(b)\",\n              },\n              {\n                label: \"Reg D - 506(c)\",\n                value: \"Reg D - 506(c)\",\n              },\n              {\n                label: \"Reg S\",\n                value: \"Reg S\",\n              },\n              {\n                label: \"Non US\",\n                value: \"Non US\",\n              },\n              {\n                label: \"Other\",\n                value: \"Other\",\n              },\n            ]}\n          />\n          <FormField\n            control={addOptionForm?.control}\n            name=\"stateExemption\"\n            render={({ field }) => (\n              <FormItem>\n                <FormLabel>State Exemption</FormLabel>\n                <FormControl>\n                  <Textarea className=\"resize-none\" {...field} />\n                </FormControl>\n                <FormMessage />\n              </FormItem>\n            )}\n          />\n          <DateField label=\"Expiration Date\" name=\"expirationDate\" />\n          <SelectField\n            label=\"Currency\"\n            name=\"currency\"\n            selectOptions={[\n              {\n                label: \"USD ($)\",\n                value: \"USD\",\n              },\n              {\n                label: \"CAD ($)\",\n                value: \"CAD\",\n              },\n              {\n                label: \"Euro (€)\",\n                value: \"Euro\",\n              },\n            ]}\n          />\n          <div className=\"flex gap-2\">\n            <TextField\n              className=\"grow\"\n              label=\"Prefix\"\n              name=\"certificatePrefix\"\n            />\n            <TextField\n              className=\"grow\"\n              label=\"Certificate ID\"\n              name=\"certificateNumber\"\n            />\n          </div>\n        </Tile>\n\n        <div className=\"flex justify-end\">\n          <Button type=\"submit\" className=\"w-full max-w-xs\">\n            Save and Continue\n          </Button>\n        </div>\n      </form>\n    </Form>\n  );\n};\n\nexport default AddNewOptionForm;\n"
  },
  {
    "path": "apps/web/app/dashboard/cap-table/components/AddNewOptionForm/RadioGroupField.tsx",
    "content": "import {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport { RadioGroup, RadioGroupItem } from \"@/components/ui/radio-group\";\n\nimport { useNewCapTableContext } from \"../../new/context/new-cap-table\";\nimport { NewOptionsFormFieldType } from \"../../new/types\";\n\nconst RadioGroupField = ({\n  label,\n  name,\n  selectOptions,\n}: NewOptionsFormFieldType) => {\n  const { addOptionForm } = useNewCapTableContext();\n\n  return (\n    <FormField\n      control={addOptionForm?.control}\n      name={name}\n      render={({ field }) => (\n        <FormItem className=\"space-y-3\">\n          <FormLabel>{label}</FormLabel>\n          <FormControl>\n            <RadioGroup\n              onValueChange={field.onChange}\n              defaultValue={field.value as string}\n              className=\"flex gap-6\"\n            >\n              {selectOptions?.map(option => (\n                <FormItem\n                  className=\"flex items-center space-x-3 space-y-0\"\n                  key={option.value}\n                >\n                  <FormControl>\n                    <RadioGroupItem value={option.value} />\n                  </FormControl>\n                  <FormLabel className=\"font-normal\">{option.label}</FormLabel>\n                </FormItem>\n              ))}\n            </RadioGroup>\n          </FormControl>\n          <FormMessage />\n        </FormItem>\n      )}\n    />\n  );\n};\n\nexport default RadioGroupField;\n"
  },
  {
    "path": "apps/web/app/dashboard/cap-table/components/AddNewOptionForm/SelectField.tsx",
    "content": "import {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport {\n  Select,\n  SelectContent,\n  SelectItem,\n  SelectTrigger,\n  SelectValue,\n} from \"@/components/ui/select\";\n\nimport { useNewCapTableContext } from \"../../new/context/new-cap-table\";\nimport { NewOptionsFormFieldType } from \"../../new/types\";\n\nconst SelectField = ({\n  label,\n  name,\n  placeholder = \"\",\n  selectOptions,\n}: NewOptionsFormFieldType) => {\n  const { addOptionForm } = useNewCapTableContext();\n\n  return (\n    <FormField\n      control={addOptionForm?.control}\n      name={name}\n      render={({ field }) => (\n        <FormItem>\n          <FormLabel>{label}</FormLabel>\n          <Select\n            onValueChange={field.onChange}\n            defaultValue={field.value as string}\n          >\n            <FormControl>\n              <SelectTrigger>\n                <SelectValue placeholder={placeholder} />\n              </SelectTrigger>\n            </FormControl>\n            <SelectContent>\n              {selectOptions?.map(option => (\n                <SelectItem key={option.value} value={option.value}>\n                  {option.label}\n                </SelectItem>\n              ))}\n            </SelectContent>\n          </Select>\n          <FormMessage />\n        </FormItem>\n      )}\n    />\n  );\n};\n\nexport default SelectField;\n"
  },
  {
    "path": "apps/web/app/dashboard/cap-table/components/AddNewOptionForm/SwitchField.tsx",
    "content": "import {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n} from \"@/components/ui/form\";\nimport { Switch } from \"@/components/ui/switch\";\n\nimport { useNewCapTableContext } from \"../../new/context/new-cap-table\";\nimport { NewOptionsFormFieldType } from \"../../new/types\";\n\nconst SwitchField = ({ name, label }: NewOptionsFormFieldType) => {\n  const { addOptionForm } = useNewCapTableContext();\n\n  return (\n    <FormField\n      control={addOptionForm?.control}\n      name={name}\n      render={({ field }) => (\n        <FormItem className=\"flex flex-col\">\n          <FormLabel className=\"mt-4\">{label}</FormLabel>\n          <FormControl>\n            <Switch\n              checked={field.value as boolean}\n              onCheckedChange={field.onChange}\n            />\n          </FormControl>\n        </FormItem>\n      )}\n    />\n  );\n};\n\nexport default SwitchField;\n"
  },
  {
    "path": "apps/web/app/dashboard/cap-table/components/AddNewOptionForm/TextField.tsx",
    "content": "import {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport { Input } from \"@/components/ui/input\";\n\nimport { useNewCapTableContext } from \"../../new/context/new-cap-table\";\nimport { NewOptionsFormFieldType } from \"../../new/types\";\n\nconst TextField = ({\n  name,\n  label,\n  className,\n  placeholder = \"\",\n  inputType = \"text\",\n}: NewOptionsFormFieldType) => {\n  const { addOptionForm } = useNewCapTableContext();\n\n  return (\n    <FormField\n      control={addOptionForm?.control}\n      name={name}\n      render={({ field }) => (\n        <FormItem className={className}>\n          <FormLabel>{label}</FormLabel>\n          <FormControl>\n            <Input\n              placeholder={placeholder}\n              {...field}\n              type={inputType}\n              value={field.value as string}\n              onChange={e => {\n                const isNumber = inputType === \"number\";\n                const value = isNumber\n                  ? Number(e.target.value)\n                  : e.target.value;\n                field.onChange(value);\n              }}\n            />\n          </FormControl>\n          <FormMessage />\n        </FormItem>\n      )}\n    />\n  );\n};\n\nexport default TextField;\n"
  },
  {
    "path": "apps/web/app/dashboard/cap-table/components/DownloadCaptable.tsx",
    "content": "\"use client\";\n\nimport { toast } from \"sonner\";\n\nimport { Button } from \"@/components/ui/button\";\n\nconst DownloadCaptable = () => {\n  const downloadCapTable = () => {\n    toast.info(\"Downloading cap table in progress...\");\n  };\n\n  return (\n    <Button variant=\"outline\" onClick={downloadCapTable}>\n      Download Cap Table\n    </Button>\n  );\n};\n\nexport default DownloadCaptable;\n"
  },
  {
    "path": "apps/web/app/dashboard/cap-table/components/OptionsTable.tsx",
    "content": "import {\n  Table,\n  TableBody,\n  TableCell,\n  TableHead,\n  TableHeader,\n  TableRow,\n} from \"@/components/ui/table\";\n\nimport { formatCurrency } from \"@/lib/utils/common\";\n\ntype OptionCapTable = {\n  id: string;\n  certificateName: string;\n  stakeholderName: string;\n  shareClassName: string;\n  issuedOn: string;\n  fullyDiluted: number;\n  ownership: number;\n  pricePerShare: number | null;\n  excercisePrice: number;\n};\n\nconst mockOptionsData: OptionCapTable[] = [\n  {\n    id: \"1\",\n    certificateName: \"OPT-1\",\n    stakeholderName: \"John Doe\",\n    shareClassName: \"Common\",\n    issuedOn: \"1/1/2020\",\n    fullyDiluted: 1000,\n    ownership: 100,\n    pricePerShare: 1,\n    excercisePrice: 100,\n  },\n  {\n    id: \"2\",\n    certificateName: \"OPT-1\",\n    stakeholderName: \"Jane Doe\",\n    shareClassName: \"Common\",\n    issuedOn: \"1/1/2020\",\n    fullyDiluted: 1000,\n    ownership: 100,\n    pricePerShare: 1,\n    excercisePrice: 1500,\n  },\n];\n\nconst EquityPlansTable = () => {\n  return (\n    <Table>\n      <TableHeader>\n        <TableRow>\n          <TableHead className=\"w-[100px]\">Certificate</TableHead>\n          <TableHead>Stakeholder</TableHead>\n          <TableHead>Share Class</TableHead>\n          <TableHead className=\"text-right\">Issued On</TableHead>\n          <TableHead className=\"text-right\">Fully Diluted</TableHead>\n          <TableHead className=\"text-right\">Ownership</TableHead>\n          <TableHead className=\"text-right\">Price/Share</TableHead>\n          <TableHead className=\"text-right\">Excercise Price</TableHead>\n        </TableRow>\n      </TableHeader>\n      <TableBody>\n        {mockOptionsData.map(plan => (\n          <TableRow key={plan.id}>\n            <TableCell className=\"font-medium\">\n              {plan.certificateName}\n            </TableCell>\n            <TableCell>{plan.stakeholderName}</TableCell>\n            <TableCell>{plan.shareClassName}</TableCell>\n            <TableCell className=\"text-right\">{plan.issuedOn}</TableCell>\n            <TableCell className=\"text-right\">{plan.fullyDiluted}</TableCell>\n            <TableCell className=\"text-right\">{plan.ownership}%</TableCell>\n            <TableCell className=\"text-right\">\n              {plan.pricePerShare ? formatCurrency(plan.pricePerShare) : \"--\"}\n            </TableCell>\n            <TableCell className=\"text-right\">\n              {formatCurrency(plan.excercisePrice)}\n            </TableCell>\n          </TableRow>\n        ))}\n      </TableBody>\n    </Table>\n  );\n};\n\nexport default EquityPlansTable;\n"
  },
  {
    "path": "apps/web/app/dashboard/cap-table/new/context/new-cap-table.tsx",
    "content": "\"use client\";\n\nimport { createContext, useContext } from \"react\";\nimport { UseFormReturn, useForm } from \"react-hook-form\";\n\nimport { NewOptionsFormValues } from \"../schema\";\n\ntype NewCapTableContextType = {\n  addOptionForm?: UseFormReturn<NewOptionsFormValues>;\n};\n\nexport const NewCapTableContext = createContext<NewCapTableContextType>({});\n\nexport const useNewCapTableContext = () => useContext(NewCapTableContext);\n\nexport const NewCapTableProvider: React.FCC = ({ children }) => {\n  const addOptionForm = useForm<NewOptionsFormValues>({\n    defaultValues: {\n      signedDocuments: [],\n      isEarlyExercise: false,\n\n      stakeholderId: \"\",\n      quantity: 0,\n      exercisePrice: 0.0001,\n      issuedOn: new Date(),\n      includeVesting: \"No Vesting\",\n      grantType: \"ISO\",\n\n      // Review Pre-filled Details\n      equityPlanId: \"eq-1\",\n      federalExemption: \"Rule 701\",\n      stateExemption: \"\",\n      expirationDate: null,\n      currency: \"USD\",\n      certificatePrefix: \"OPT\",\n      certificateNumber: 1,\n    },\n  });\n\n  return (\n    <NewCapTableContext.Provider value={{ addOptionForm }}>\n      {children}\n    </NewCapTableContext.Provider>\n  );\n};\n"
  },
  {
    "path": "apps/web/app/dashboard/cap-table/new/page.tsx",
    "content": "import Container from \"@/components/ui/Container\";\nimport Tile from \"@/components/ui/Tile\";\n\nimport AddNewOptionForm from \"../components/AddNewOptionForm/Form\";\n\nimport { NewCapTableProvider } from \"./context/new-cap-table\";\n\nexport const metadata = {\n  title: \"Add to Cap Table\",\n};\n\nconst NewOptionCapTablePage = async () => {\n  return (\n    <div className=\"h-full flex flex-col gap-8\">\n      <Container className=\"max-w-3xl ml-0\">\n        <Tile className=\"mb-5\">\n          <h1 className=\"text-2xl font-bold\">Record Options</h1>\n          <p className=\"text-xs text-zinc-600\">\n            Keep track of options that were issued outside of Pulley.\n          </p>\n        </Tile>\n        <NewCapTableProvider>\n          <AddNewOptionForm />\n        </NewCapTableProvider>\n      </Container>\n    </div>\n  );\n};\n\nexport default NewOptionCapTablePage;\n"
  },
  {
    "path": "apps/web/app/dashboard/cap-table/new/schema.ts",
    "content": "import * as z from \"zod\";\n\nexport const newOptionsFormSchema = z.object({\n  // Attach Signed Option Grants\n  signedDocuments: z.array(z.string()),\n  isEarlyExercise: z.boolean(),\n\n  stakeholderId: z.string().min(1),\n  quantity: z.number().min(1),\n  exercisePrice: z.number().min(0.0001),\n  issuedOn: z.date(),\n  includeVesting: z.enum([\"No Vesting\", \"Vesting\", \"Multi-Tranche Vesting\"]),\n  grantType: z.enum([\"ISO\", \"NSO\", \"INTL\", \"EMI\"]),\n\n  // Review Pre-filled Details\n  equityPlanId: z.string().min(1),\n  federalExemption: z.enum([\n    \"Rule 701\",\n    \"Rule 4(a)(2)\",\n    \"Reg D - 506(b)\",\n    \"Reg D - 506(c)\",\n    \"Reg S\",\n    \"Non US\",\n    \"Other\",\n  ]),\n  stateExemption: z.string(),\n  expirationDate: z.date().nullable(),\n  currency: z.string().min(1),\n  certificatePrefix: z.string().min(1),\n  certificateNumber: z.number(),\n});\n\nexport type NewOptionsFormValues = z.infer<typeof newOptionsFormSchema>;\n"
  },
  {
    "path": "apps/web/app/dashboard/cap-table/new/types.ts",
    "content": "import { HTMLInputTypeAttribute } from \"react\";\n\nimport { NewOptionsFormValues } from \"./schema\";\n\nexport type NewOptionsFormFieldType = {\n  label: string;\n  placeholder?: string;\n  className?: string;\n  inputType?: HTMLInputTypeAttribute;\n  name: keyof NewOptionsFormValues;\n  selectOptions?: Array<{ label: string; value: string }>;\n};\n"
  },
  {
    "path": "apps/web/app/dashboard/cap-table/page.tsx",
    "content": "import { configuration } from \"@/core/constants/configs\";\n\nimport Container from \"@/components/ui/Container\";\nimport Tile from \"@/components/ui/Tile\";\nimport { Button } from \"@/components/ui/button\";\n\nimport DownloadCaptable from \"./components/DownloadCaptable\";\nimport OptionsTable from \"./components/OptionsTable\";\n\nexport const metadata = {\n  title: \"Cap Table\",\n};\n\nconst CapTablePage = async () => {\n  return (\n    <div className=\"h-full flex flex-col items-center gap-8\">\n      <Container>\n        <Tile>\n          <div className=\"flex items-center justify-between w-full\">\n            <h1 className=\"text-2xl font-bold\">Cap Table</h1>\n            <div className=\"flex gap-2\">\n              <DownloadCaptable />\n              <Button href={configuration.paths.capTables.new}>\n                Add Signed Options\n              </Button>\n            </div>\n          </div>\n          <OptionsTable />\n        </Tile>\n      </Container>\n    </div>\n  );\n};\n\nexport default CapTablePage;\n"
  },
  {
    "path": "apps/web/app/dashboard/equity-plans/components/EquityPlansTable.tsx",
    "content": "import {\n  Table,\n  TableBody,\n  TableCell,\n  TableHead,\n  TableHeader,\n  TableRow,\n} from \"@/components/ui/table\";\n\ntype EquityPlan = {\n  id: string;\n  name: string;\n  status: string;\n  boardApproval: string;\n  shareSize: number;\n  shareRetireSize: number;\n  termOfPlan: string;\n  ownership: number;\n};\n\nconst mockEquityPlans: EquityPlan[] = [\n  {\n    id: \"1\",\n    name: \"EQ1\",\n    status: \"Outstanding\",\n    boardApproval: \"Jan 23, 2024\",\n    shareSize: 1000,\n    shareRetireSize: 100,\n    termOfPlan: \"10 years\",\n    ownership: 100,\n  },\n  {\n    id: \"2\",\n    name: \"EQ2\",\n    status: \"Outstanding\",\n    boardApproval: \"Jan 23, 2024\",\n    shareSize: 1000,\n    shareRetireSize: 100,\n    termOfPlan: \"10 years\",\n    ownership: 100,\n  },\n  {\n    id: \"3\",\n    name: \"EQ3\",\n    status: \"Outstanding\",\n    boardApproval: \"Jan 23, 2024\",\n    shareSize: 1000,\n    shareRetireSize: 100,\n    termOfPlan: \"10 years\",\n    ownership: 100,\n  },\n];\n\nconst EquityPlansTable = () => {\n  return (\n    <Table>\n      <TableHeader>\n        <TableRow>\n          <TableHead className=\"w-[100px]\">Name</TableHead>\n          <TableHead>Status</TableHead>\n          <TableHead>Board Approval</TableHead>\n          <TableHead className=\"text-right\">Plan Size</TableHead>\n          <TableHead className=\"text-right\">Term of Plan</TableHead>\n          <TableHead className=\"text-right\">Ownership</TableHead>\n        </TableRow>\n      </TableHeader>\n      <TableBody>\n        {mockEquityPlans.map(plan => (\n          <TableRow key={plan.id}>\n            <TableCell className=\"font-medium\">{plan.name}</TableCell>\n            <TableCell>{plan.status}</TableCell>\n            <TableCell>{plan.boardApproval}</TableCell>\n            <TableCell className=\"text-right\">\n              <p className=\"text-sm\">{plan.shareSize} shares</p>\n              <p className=\"text-xs\">\n                {plan.shareSize - plan.shareRetireSize} available\n              </p>\n            </TableCell>\n            <TableCell className=\"text-right\">{plan.termOfPlan}</TableCell>\n            <TableCell className=\"text-right\">{plan.ownership}%</TableCell>\n          </TableRow>\n        ))}\n      </TableBody>\n    </Table>\n  );\n};\n\nexport default EquityPlansTable;\n"
  },
  {
    "path": "apps/web/app/dashboard/equity-plans/components/NewEquityPlanForm/DateField.tsx",
    "content": "import { CalendarIcon } from \"@radix-ui/react-icons\";\nimport { format } from \"date-fns\";\nimport { Control } from \"react-hook-form\";\nimport * as z from \"zod\";\n\nimport { Button } from \"@/components/ui/button\";\nimport { Calendar } from \"@/components/ui/calendar\";\nimport {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport {\n  Popover,\n  PopoverContent,\n  PopoverTrigger,\n} from \"@/components/ui/popover\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nimport { newEquityPlanFormSchema } from \".\";\n\nconst DateField = ({\n  control,\n  name,\n  label,\n  placeholder = \"MM/DD/YYYY\",\n}: {\n  label: string;\n  placeholder?: string;\n  name: keyof z.infer<typeof newEquityPlanFormSchema>;\n  control: Control<z.infer<typeof newEquityPlanFormSchema>>;\n}) => {\n  return (\n    <FormField\n      control={control}\n      name={name}\n      render={({ field }) => (\n        <FormItem className=\"flex flex-col\">\n          <FormLabel>{label}</FormLabel>\n          <Popover>\n            <PopoverTrigger asChild>\n              <FormControl>\n                <Button\n                  variant={\"outline\"}\n                  className={cn(\n                    \"pl-3 text-left font-normal\",\n                    !field.value && \"text-muted-foreground\",\n                  )}\n                >\n                  {field.value ? (\n                    format(field.value as number, \"MM/dd/yyyy\")\n                  ) : (\n                    <span>{placeholder}</span>\n                  )}\n                  <CalendarIcon className=\"ml-auto h-4 w-4 opacity-50\" />\n                </Button>\n              </FormControl>\n            </PopoverTrigger>\n            <PopoverContent className=\"w-auto p-0\" align=\"start\">\n              <Calendar\n                mode=\"single\"\n                selected={field.value as Date}\n                onSelect={field.onChange}\n                disabled={date =>\n                  date > new Date() || date < new Date(\"1900-01-01\")\n                }\n                initialFocus\n              />\n            </PopoverContent>\n          </Popover>\n          <FormMessage />\n        </FormItem>\n      )}\n    />\n  );\n};\n\nexport default DateField;\n"
  },
  {
    "path": "apps/web/app/dashboard/equity-plans/components/NewEquityPlanForm/EquityRetired.tsx",
    "content": "import { Control } from \"react-hook-form\";\nimport * as z from \"zod\";\n\nimport {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport { Input } from \"@/components/ui/input\";\n\nimport { newEquityPlanFormSchema } from \"./index\";\n\nconst EquityRetired = ({\n  control,\n}: {\n  control: Control<z.infer<typeof newEquityPlanFormSchema>>;\n}) => {\n  return (\n    <FormField\n      control={control}\n      name=\"equityRetired\"\n      render={({ field }) => (\n        <FormItem>\n          <FormLabel>Equity Retired</FormLabel>\n          <FormControl>\n            <Input\n              placeholder=\"\"\n              {...field}\n              type=\"number\"\n              onChange={e => field.onChange(Number(e.target.value))}\n            />\n          </FormControl>\n          <FormMessage />\n        </FormItem>\n      )}\n    />\n  );\n};\n\nexport default EquityRetired;\n"
  },
  {
    "path": "apps/web/app/dashboard/equity-plans/components/NewEquityPlanForm/FieldWithType.tsx",
    "content": "import { HTMLInputTypeAttribute } from \"react\";\nimport { Control } from \"react-hook-form\";\nimport * as z from \"zod\";\n\nimport {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport { Input } from \"@/components/ui/input\";\nimport {\n  Select,\n  SelectContent,\n  SelectItem,\n  SelectTrigger,\n  SelectValue,\n} from \"@/components/ui/select\";\n\nimport { newEquityPlanFormSchema } from \"./index\";\n\ntype Props = {\n  label: string;\n  type?: HTMLInputTypeAttribute;\n  nameOfValue: keyof z.infer<typeof newEquityPlanFormSchema>;\n  nameOfValueType: keyof z.infer<typeof newEquityPlanFormSchema>;\n  control: Control<z.infer<typeof newEquityPlanFormSchema>>;\n  typeOptions: Array<{\n    label: string;\n    value: string;\n  }>;\n};\n\nconst FieldWithType = ({\n  label,\n  control,\n  type = \"text\",\n  nameOfValue,\n  nameOfValueType,\n  typeOptions,\n}: Props) => {\n  return (\n    <div className=\"flex flex-col items-start\">\n      <FormLabel>{label}</FormLabel>\n      <div className=\"flex w-full items-start gap-2 mt-2\">\n        <FormField\n          control={control}\n          name={nameOfValue}\n          render={({ field }) => (\n            <FormItem className=\"flex-grow\">\n              <FormControl>\n                <Input\n                  {...field}\n                  type={type}\n                  value={field.value as string}\n                  onChange={e => {\n                    const isNumber = type === \"number\";\n                    const value = isNumber\n                      ? Number(e.target.value)\n                      : e.target.value;\n                    field.onChange(value);\n                  }}\n                />\n              </FormControl>\n              <FormMessage />\n            </FormItem>\n          )}\n        />\n        <FormField\n          control={control}\n          name={nameOfValueType}\n          render={({ field }) => (\n            <FormItem className=\"flex-grow\">\n              <Select\n                onValueChange={field.onChange}\n                defaultValue={field.value as string}\n              >\n                <FormControl>\n                  <SelectTrigger>\n                    <SelectValue />\n                  </SelectTrigger>\n                </FormControl>\n                <SelectContent>\n                  {typeOptions.map(option => (\n                    <SelectItem value={option.value} key={option.value}>\n                      {option.label}\n                    </SelectItem>\n                  ))}\n                </SelectContent>\n              </Select>\n              <FormMessage />\n            </FormItem>\n          )}\n        />\n      </div>\n    </div>\n  );\n};\n\nexport default FieldWithType;\n"
  },
  {
    "path": "apps/web/app/dashboard/equity-plans/components/NewEquityPlanForm/InitialPlanSize.tsx",
    "content": "import { Control } from \"react-hook-form\";\nimport * as z from \"zod\";\n\nimport {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport { Input } from \"@/components/ui/input\";\n\nimport { newEquityPlanFormSchema } from \"./index\";\n\nconst InitialPlanSize = ({\n  control,\n}: {\n  control: Control<z.infer<typeof newEquityPlanFormSchema>>;\n}) => {\n  return (\n    <FormField\n      control={control}\n      name=\"initialPlanSize\"\n      render={({ field }) => (\n        <FormItem>\n          <FormLabel>Initial Plan Size (Shares)</FormLabel>\n          <FormControl>\n            <Input\n              placeholder=\"\"\n              {...field}\n              type=\"number\"\n              onChange={e => field.onChange(Number(e.target.value))}\n            />\n          </FormControl>\n          <FormMessage />\n        </FormItem>\n      )}\n    />\n  );\n};\n\nexport default InitialPlanSize;\n"
  },
  {
    "path": "apps/web/app/dashboard/equity-plans/components/NewEquityPlanForm/ShareClassSelect.tsx",
    "content": "import { Control } from \"react-hook-form\";\nimport * as z from \"zod\";\n\nimport {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport {\n  Select,\n  SelectContent,\n  SelectItem,\n  SelectTrigger,\n  SelectValue,\n} from \"@/components/ui/select\";\n\nimport { newEquityPlanFormSchema } from \"./index\";\n\nconst ShareClassSelect = ({\n  control,\n}: {\n  control: Control<z.infer<typeof newEquityPlanFormSchema>>;\n}) => {\n  return (\n    <FormField\n      control={control}\n      name=\"shareClass\"\n      render={({ field }) => (\n        <FormItem>\n          <FormLabel>Share Class</FormLabel>\n          <Select onValueChange={field.onChange} defaultValue={field.value}>\n            <FormControl>\n              <SelectTrigger>\n                <SelectValue placeholder=\"\" />\n              </SelectTrigger>\n            </FormControl>\n            <SelectContent>\n              <SelectItem value=\"Common\">Common</SelectItem>\n            </SelectContent>\n          </Select>\n          <FormMessage />\n        </FormItem>\n      )}\n    />\n  );\n};\n\nexport default ShareClassSelect;\n"
  },
  {
    "path": "apps/web/app/dashboard/equity-plans/components/NewEquityPlanForm/TermsOfPlan.tsx",
    "content": "import { Control } from \"react-hook-form\";\nimport * as z from \"zod\";\n\nimport {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport { Input } from \"@/components/ui/input\";\n\nimport { newEquityPlanFormSchema } from \"./index\";\n\nconst TermsOfPlan = ({\n  control,\n}: {\n  control: Control<z.infer<typeof newEquityPlanFormSchema>>;\n}) => {\n  return (\n    <FormField\n      control={control}\n      name=\"termsOfYears\"\n      render={({ field }) => (\n        <FormItem>\n          <FormLabel>Term of Plan (years)</FormLabel>\n          <FormControl>\n            <Input\n              placeholder=\"\"\n              {...field}\n              type=\"number\"\n              onChange={e => field.onChange(Number(e.target.value))}\n            />\n          </FormControl>\n          <FormMessage />\n        </FormItem>\n      )}\n    />\n  );\n};\n\nexport default TermsOfPlan;\n"
  },
  {
    "path": "apps/web/app/dashboard/equity-plans/components/NewEquityPlanForm/index.tsx",
    "content": "\"use client\";\n\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { useRouter } from \"next/navigation\";\nimport { useForm } from \"react-hook-form\";\nimport { toast } from \"sonner\";\nimport * as z from \"zod\";\n\nimport { configuration } from \"@/core/constants/configs\";\n\nimport { Button } from \"@/components/ui/button\";\nimport {\n  Form,\n  FormControl,\n  FormDescription,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport { Input } from \"@/components/ui/input\";\nimport { Textarea } from \"@/components/ui/textarea\";\n\nimport DateField from \"./DateField\";\nimport EquityRetired from \"./EquityRetired\";\nimport FieldWithType from \"./FieldWithType\";\nimport InitialPlanSize from \"./InitialPlanSize\";\nimport ShareClassSelect from \"./ShareClassSelect\";\nimport TermsOfPlan from \"./TermsOfPlan\";\n\nexport const newEquityPlanFormSchema = z.object({\n  name: z.string().min(2).max(50),\n  shareClass: z.string(),\n  initialPlanSize: z.number().min(1).max(1000000000),\n  termsOfYears: z.number().min(1).max(100),\n  equityRetired: z.number().min(1).max(1000000000),\n  boardApprovalDate: z.date(),\n  stockholderApprovalDate: z.date(),\n  purchasePeriod: z.number(),\n  purchasePeriodType: z.enum([\"days\", \"months\", \"years\"]),\n  comments: z.string(),\n  documents: z.array(z.string()),\n\n  // Post termination exercise period\n  voluntaryTermination: z.number(),\n  voluntaryTerminationType: z.enum([\"days\", \"months\", \"years\"]),\n\n  involuntaryTermination: z.number(),\n  involuntaryTerminationType: z.enum([\"days\", \"months\", \"years\"]),\n\n  terminationWithCause: z.number(),\n  terminationWithCauseType: z.enum([\"days\", \"months\", \"years\"]),\n\n  death: z.number(),\n  deathType: z.enum([\"days\", \"months\", \"years\"]),\n\n  disability: z.number(),\n  disabilityType: z.enum([\"days\", \"months\", \"years\"]),\n\n  retirement: z.number(),\n  retirementType: z.enum([\"days\", \"months\", \"years\"]),\n});\n\nconst periodOptions = [\n  { label: \"Days\", value: \"days\" },\n  { label: \"Months\", value: \"months\" },\n  { label: \"Years\", value: \"years\" },\n];\n\nconst NewEquityPlanForm = () => {\n  const router = useRouter();\n\n  const form = useForm<z.infer<typeof newEquityPlanFormSchema>>({\n    resolver: zodResolver(newEquityPlanFormSchema),\n    defaultValues: {\n      name: \"\",\n      shareClass: \"Common\",\n      initialPlanSize: 0,\n      termsOfYears: 10,\n      equityRetired: 0,\n      boardApprovalDate: new Date(),\n      stockholderApprovalDate: new Date(),\n      purchasePeriod: 0,\n      purchasePeriodType: \"days\",\n      comments: \"\",\n      documents: [],\n\n      // Post termination exercise period\n      voluntaryTermination: 0,\n      voluntaryTerminationType: \"days\",\n\n      involuntaryTermination: 0,\n      involuntaryTerminationType: \"days\",\n\n      terminationWithCause: 0,\n      terminationWithCauseType: \"days\",\n\n      death: 0,\n      deathType: \"days\",\n\n      disability: 0,\n      disabilityType: \"days\",\n\n      retirement: 0,\n      retirementType: \"days\",\n    },\n  });\n\n  function onSubmit(values: z.infer<typeof newEquityPlanFormSchema>) {\n    toast.success(\"Share Class Created!\");\n    router.push(configuration.paths.equityPlans.all);\n  }\n\n  return (\n    <Form {...form}>\n      <form onSubmit={form.handleSubmit(onSubmit)} className=\"space-y-8\">\n        <FormField\n          control={form.control}\n          name=\"name\"\n          render={({ field }) => (\n            <FormItem>\n              <FormLabel>Equity Plan Name</FormLabel>\n              <FormControl>\n                <Input placeholder=\"\" {...field} />\n              </FormControl>\n              <FormDescription>\n                This is your public display name.\n              </FormDescription>\n              <FormMessage />\n            </FormItem>\n          )}\n        />\n        <ShareClassSelect control={form.control} />\n        <InitialPlanSize control={form.control} />\n        <TermsOfPlan control={form.control} />\n        <EquityRetired control={form.control} />\n        <DateField\n          control={form.control}\n          name=\"boardApprovalDate\"\n          label=\"Board Approval Date\"\n        />\n        <DateField\n          control={form.control}\n          name=\"stockholderApprovalDate\"\n          label=\"Stockholder Approval Date\"\n        />\n        <FieldWithType\n          label=\"Repurchase Period\"\n          nameOfValue=\"purchasePeriod\"\n          nameOfValueType=\"purchasePeriodType\"\n          control={form.control}\n          type=\"number\"\n          typeOptions={periodOptions}\n        />\n        <FormField\n          control={form.control}\n          name=\"comments\"\n          render={({ field }) => (\n            <FormItem>\n              <FormLabel>Comment</FormLabel>\n              <FormControl>\n                <Textarea className=\"resize-none\" {...field} />\n              </FormControl>\n              <FormDescription>\n                You can <span>@mention</span> other users and organizations.\n              </FormDescription>\n              <FormMessage />\n            </FormItem>\n          )}\n        />\n        <Button type=\"submit\">Submit</Button>\n      </form>\n    </Form>\n  );\n};\n\nexport default NewEquityPlanForm;\n"
  },
  {
    "path": "apps/web/app/dashboard/equity-plans/new/page.tsx",
    "content": "import Container from \"@/components/ui/Container\";\nimport Tile from \"@/components/ui/Tile\";\n\nimport NewEquityPlanForm from \"../components/NewEquityPlanForm\";\n\nexport const metadata = {\n  title: \"Add Equity Plan\",\n};\n\nconst NewEquityPlanPage = async () => {\n  return (\n    <div className=\"h-full flex flex-col items-center gap-8\">\n      <Container className=\"max-w-3xl ml-0\">\n        <Tile>\n          <h1 className=\"text-2xl font-bold\">Add Equity Plan</h1>\n          <NewEquityPlanForm />\n        </Tile>\n      </Container>\n    </div>\n  );\n};\n\nexport default NewEquityPlanPage;\n"
  },
  {
    "path": "apps/web/app/dashboard/equity-plans/page.tsx",
    "content": "import { configuration } from \"@/core/constants/configs\";\n\nimport Container from \"@/components/ui/Container\";\nimport Tile from \"@/components/ui/Tile\";\nimport { Button } from \"@/components/ui/button\";\n\nimport EquityPlansTable from \"./components/EquityPlansTable\";\n\nexport const metadata = {\n  title: \"Equity Plans\",\n};\n\nconst EquityPlansPage = async () => {\n  return (\n    <div className=\"h-full flex flex-col items-center gap-8\">\n      <Container>\n        <Tile>\n          <div className=\"flex items-center justify-between w-full\">\n            <h1 className=\"text-2xl font-bold\">Equity Plans</h1>\n            <Button href={configuration.paths.equityPlans.new}>\n              Add Equity Plan\n            </Button>\n          </div>\n          <EquityPlansTable />\n        </Tile>\n      </Container>\n    </div>\n  );\n};\n\nexport default EquityPlansPage;\n"
  },
  {
    "path": "apps/web/app/dashboard/layout.tsx",
    "content": "import { redirect } from \"next/navigation\";\n\nimport NavBar from \"@/components/layout/NavBar\";\n\nimport { getCurrentUser } from \"@/lib/server/session\";\n\nexport default async function DashboardLayout({\n  children,\n}: {\n  children: React.ReactNode;\n}) {\n  const user = await getCurrentUser();\n  if (!user) {\n    redirect(\"/auth/signin\");\n  }\n\n  return (\n    <div>\n      <NavBar user={user} />\n      <main className=\"py-10\">\n        <div className=\"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8\">{children}</div>\n      </main>\n    </div>\n  );\n}\n"
  },
  {
    "path": "apps/web/app/dashboard/page.tsx",
    "content": "import { ArrowTopRightOnSquareIcon } from \"@heroicons/react/20/solid\";\nimport Link from \"next/link\";\n\nimport { configuration } from \"@/core/constants/configs\";\n\nimport Tile from \"@/components/ui/Tile\";\n\nexport const metadata = {\n  title: \"Dashboard\",\n};\n\nconst AboutPage = () => {\n  return (\n    <div className=\"max-w-2xl\">\n      <Tile>\n        <h1 className=\"text-2xl font-bold mb-10\">\n          Welcome to your Open Source Cap Table Management!\n        </h1>\n        <Link\n          className=\"flex justify-between items-center pb-3 border-b\"\n          href={configuration.paths.equityPlans.all}\n        >\n          Equity Plan(s)\n          <ArrowTopRightOnSquareIcon className=\"h-5 w-5\" />\n        </Link>\n        <Link\n          className=\"flex justify-between items-center pb-3 border-b\"\n          href={configuration.paths.shareClasses.all}\n        >\n          Share Classes\n          <ArrowTopRightOnSquareIcon className=\"h-5 w-5\" />\n        </Link>\n        <Link\n          className=\"flex justify-between items-center pb-3\"\n          href={configuration.paths.capTables.all}\n        >\n          Cap Table\n          <ArrowTopRightOnSquareIcon className=\"h-5 w-5\" />\n        </Link>\n      </Tile>\n    </div>\n  );\n};\n\nexport default AboutPage;\n"
  },
  {
    "path": "apps/web/app/dashboard/rule-701/page.tsx",
    "content": "import WorkInProgress from \"@/components/WorkInProgress\";\n\nexport const metadata = {\n  title: \"Rule 701\",\n};\n\nconst Rule701Page = () => {\n  return (\n    <div>\n      <WorkInProgress />\n    </div>\n  );\n};\n\nexport default Rule701Page;\n"
  },
  {
    "path": "apps/web/app/dashboard/settings/page.tsx",
    "content": "import WorkInProgress from \"@/components/WorkInProgress\";\n\nexport const metadata = {\n  title: \"Settings\",\n};\n\nconst SettingsPage = () => {\n  return (\n    <div>\n      <WorkInProgress />\n    </div>\n  );\n};\n\nexport default SettingsPage;\n"
  },
  {
    "path": "apps/web/app/dashboard/share-classes/components/NewShareClassForm/AdvancedSettings.tsx",
    "content": "import { Fragment } from \"react\";\nimport { UseFormReturn } from \"react-hook-form\";\nimport * as z from \"zod\";\n\nimport Tile from \"@/components/ui/Tile\";\nimport {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport { Switch } from \"@/components/ui/switch\";\nimport { Textarea } from \"@/components/ui/textarea\";\n\nimport TextField from \"./TextField\";\nimport { newShareClassFormSchema } from \"./index\";\n\nconst AdvancedSettings = ({\n  form,\n}: {\n  form: UseFormReturn<z.infer<typeof newShareClassFormSchema>>;\n}) => {\n  const watchHasVotingRights = form.watch(\"hasVotingRights\");\n\n  return (\n    <Tile>\n      <h3 className=\"text-lg font-semibold\">3. Voting Rights</h3>\n      <p className=\"text-xs text-zinc-600\">\n        Certificates and Advanced Settings are coming soon...\n      </p>\n\n      <FormField\n        control={form.control}\n        name=\"hasVotingRights\"\n        render={({ field }) => (\n          <FormItem className=\"flex flex-col\">\n            <FormLabel className=\"mt-4\">Enable Voting Rights</FormLabel>\n            <FormControl>\n              <Switch checked={field.value} onCheckedChange={field.onChange} />\n            </FormControl>\n          </FormItem>\n        )}\n      />\n      {watchHasVotingRights ? (\n        <Fragment>\n          <TextField\n            control={form.control}\n            label=\"Voting Multiplier\"\n            name=\"votingMultiplier\"\n            type=\"number\"\n          />\n          <FormField\n            control={form.control}\n            name=\"votingComment\"\n            render={({ field }) => (\n              <FormItem>\n                <FormLabel>Comment</FormLabel>\n                <FormControl>\n                  <Textarea className=\"resize-none\" {...field} />\n                </FormControl>\n                <FormMessage />\n              </FormItem>\n            )}\n          />\n        </Fragment>\n      ) : null}\n    </Tile>\n  );\n};\n\nexport default AdvancedSettings;\n"
  },
  {
    "path": "apps/web/app/dashboard/share-classes/components/NewShareClassForm/ClassType.tsx",
    "content": "import { Control } from \"react-hook-form\";\nimport * as z from \"zod\";\n\nimport Tile from \"@/components/ui/Tile\";\nimport {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n} from \"@/components/ui/form\";\nimport { Switch } from \"@/components/ui/switch\";\n\nimport { newShareClassFormSchema } from \".\";\nimport RadioGroupField from \"./RadioGroupField\";\n\nconst ClassType = ({\n  control,\n}: {\n  control: Control<z.infer<typeof newShareClassFormSchema>>;\n}) => {\n  return (\n    <Tile>\n      <h3 className=\"text-lg font-semibold\">1. Select Class Type</h3>\n      <RadioGroupField\n        control={control}\n        label=\"Share Class Type\"\n        name=\"classType\"\n        options={[\n          {\n            value: \"Common\",\n            label: \"Common\",\n          },\n          {\n            value: \"Preferred\",\n            label: \"Preferred\",\n          },\n        ]}\n      />\n\n      <FormField\n        control={control}\n        name=\"excludeFromDilution\"\n        render={({ field }) => (\n          <FormItem className=\"flex flex-col\">\n            <FormLabel className=\"mt-4\">Exclude from Fully Diluted</FormLabel>\n            <FormControl>\n              <Switch checked={field.value} onCheckedChange={field.onChange} />\n            </FormControl>\n          </FormItem>\n        )}\n      />\n    </Tile>\n  );\n};\n\nexport default ClassType;\n"
  },
  {
    "path": "apps/web/app/dashboard/share-classes/components/NewShareClassForm/DateField.tsx",
    "content": "import { CalendarIcon } from \"@radix-ui/react-icons\";\nimport { format } from \"date-fns\";\nimport { Control } from \"react-hook-form\";\nimport * as z from \"zod\";\n\nimport { Button } from \"@/components/ui/button\";\nimport { Calendar } from \"@/components/ui/calendar\";\nimport {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport {\n  Popover,\n  PopoverContent,\n  PopoverTrigger,\n} from \"@/components/ui/popover\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nimport { newShareClassFormSchema } from \".\";\n\nconst DateField = ({\n  control,\n  name,\n  label,\n  placeholder = \"MM/DD/YYYY\",\n}: {\n  label: string;\n  placeholder?: string;\n  name: keyof z.infer<typeof newShareClassFormSchema>;\n  control: Control<z.infer<typeof newShareClassFormSchema>>;\n}) => {\n  return (\n    <FormField\n      control={control}\n      name={name}\n      render={({ field }) => (\n        <FormItem className=\"flex flex-col\">\n          <FormLabel>{label}</FormLabel>\n          <Popover>\n            <PopoverTrigger asChild>\n              <FormControl>\n                <Button\n                  variant={\"outline\"}\n                  className={cn(\n                    \"pl-3 text-left font-normal\",\n                    !field.value && \"text-muted-foreground\",\n                  )}\n                >\n                  {field.value ? (\n                    format(field.value as number, \"MM/dd/yyyy\")\n                  ) : (\n                    <span>{placeholder}</span>\n                  )}\n                  <CalendarIcon className=\"ml-auto h-4 w-4 opacity-50\" />\n                </Button>\n              </FormControl>\n            </PopoverTrigger>\n            <PopoverContent className=\"w-auto p-0\" align=\"start\">\n              <Calendar\n                mode=\"single\"\n                selected={field.value as Date}\n                onSelect={field.onChange}\n                disabled={date =>\n                  date > new Date() || date < new Date(\"1900-01-01\")\n                }\n                initialFocus\n              />\n            </PopoverContent>\n          </Popover>\n          <FormMessage />\n        </FormItem>\n      )}\n    />\n  );\n};\n\nexport default DateField;\n"
  },
  {
    "path": "apps/web/app/dashboard/share-classes/components/NewShareClassForm/Information.tsx",
    "content": "import { Control } from \"react-hook-form\";\nimport * as z from \"zod\";\n\nimport Tile from \"@/components/ui/Tile\";\n\nimport DateField from \"./DateField\";\nimport RadioGroupField from \"./RadioGroupField\";\nimport TextField from \"./TextField\";\nimport { newShareClassFormSchema } from \"./index\";\n\nconst Information = ({\n  control,\n}: {\n  control: Control<z.infer<typeof newShareClassFormSchema>>;\n}) => {\n  return (\n    <Tile>\n      <h3 className=\"text-lg font-semibold\">2. Share Class Information</h3>\n\n      <TextField control={control} name=\"name\" label=\"Share Class Name\" />\n      <TextField control={control} name=\"prefix\" label=\"Share Class Prefix\" />\n      <TextField\n        control={control}\n        name=\"authorizedShares\"\n        label=\"Authorized Number of Shares\"\n        type=\"number\"\n      />\n      <TextField\n        control={control}\n        name=\"pricePerShare\"\n        label=\"Price per Share ($)\"\n        type=\"number\"\n      />\n      <TextField\n        control={control}\n        name=\"parValue\"\n        label=\"Par Value ($)\"\n        type=\"number\"\n      />\n      <DateField\n        control={control}\n        label=\"Stockholder Approval Date\"\n        name=\"stockholderApprovalDate\"\n      />\n      <DateField\n        control={control}\n        label=\"Board Approval Date\"\n        name=\"boardApprovalDate\"\n      />\n      <RadioGroupField\n        control={control}\n        label=\"Dividends\"\n        name=\"dividends\"\n        options={[\n          {\n            value: \"Cumulative\",\n            label: \"Cumulative\",\n          },\n          {\n            value: \"Non-Cumulative\",\n            label: \"Non-Cumulative\",\n          },\n        ]}\n      />\n    </Tile>\n  );\n};\n\nexport default Information;\n"
  },
  {
    "path": "apps/web/app/dashboard/share-classes/components/NewShareClassForm/RadioGroupField.tsx",
    "content": "import { Control } from \"react-hook-form\";\nimport * as z from \"zod\";\n\nimport {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport { RadioGroup, RadioGroupItem } from \"@/components/ui/radio-group\";\n\nimport { newShareClassFormSchema } from \"./index\";\n\ntype Props = {\n  label: string;\n  name: keyof z.infer<typeof newShareClassFormSchema>;\n  control: Control<z.infer<typeof newShareClassFormSchema>>;\n  options: Array<{\n    label: string;\n    value: string;\n  }>;\n};\n\nconst RadioGroupField = ({ control, label, name, options }: Props) => {\n  return (\n    <FormField\n      control={control}\n      name={name}\n      render={({ field }) => (\n        <FormItem className=\"space-y-3\">\n          <FormLabel>{label}</FormLabel>\n          <FormControl>\n            <RadioGroup\n              onValueChange={field.onChange}\n              defaultValue={field.value as string}\n              className=\"flex gap-6\"\n            >\n              {options.map(option => (\n                <FormItem\n                  className=\"flex items-center space-x-3 space-y-0\"\n                  key={option.value}\n                >\n                  <FormControl>\n                    <RadioGroupItem value={option.value} />\n                  </FormControl>\n                  <FormLabel className=\"font-normal\">{option.label}</FormLabel>\n                </FormItem>\n              ))}\n            </RadioGroup>\n          </FormControl>\n          <FormMessage />\n        </FormItem>\n      )}\n    />\n  );\n};\n\nexport default RadioGroupField;\n"
  },
  {
    "path": "apps/web/app/dashboard/share-classes/components/NewShareClassForm/TextField.tsx",
    "content": "import { HTMLInputTypeAttribute } from \"react\";\nimport { Control } from \"react-hook-form\";\nimport * as z from \"zod\";\n\nimport {\n  FormControl,\n  FormField,\n  FormItem,\n  FormLabel,\n  FormMessage,\n} from \"@/components/ui/form\";\nimport { Input } from \"@/components/ui/input\";\n\nimport { newShareClassFormSchema } from \"./index\";\n\nconst TextField = ({\n  control,\n  name,\n  label,\n  placeholder = \"\",\n  type = \"text\",\n}: {\n  label: string;\n  type?: HTMLInputTypeAttribute;\n  placeholder?: string;\n  name: keyof z.infer<typeof newShareClassFormSchema>;\n  control: Control<z.infer<typeof newShareClassFormSchema>>;\n}) => {\n  return (\n    <FormField\n      control={control}\n      name={name}\n      render={({ field }) => (\n        <FormItem>\n          <FormLabel>{label}</FormLabel>\n          <FormControl>\n            <Input\n              placeholder={placeholder}\n              {...field}\n              type={type}\n              value={field.value as string}\n              onChange={e => {\n                const isNumber = type === \"number\";\n                const value = isNumber\n                  ? Number(e.target.value)\n                  : e.target.value;\n                field.onChange(value);\n              }}\n            />\n          </FormControl>\n          <FormMessage />\n        </FormItem>\n      )}\n    />\n  );\n};\n\nexport default TextField;\n"
  },
  {
    "path": "apps/web/app/dashboard/share-classes/components/NewShareClassForm/index.tsx",
    "content": "\"use client\";\n\nimport { zodResolver } from \"@hookform/resolvers/zod\";\nimport { useRouter } from \"next/navigation\";\nimport { useForm } from \"react-hook-form\";\nimport { toast } from \"sonner\";\nimport * as z from \"zod\";\n\nimport { configuration } from \"@/core/constants/configs\";\n\nimport { Button } from \"@/components/ui/button\";\nimport { Form } from \"@/components/ui/form\";\n\nimport AdvancedSettings from \"./AdvancedSettings\";\nimport ClassType from \"./ClassType\";\nimport Information from \"./Information\";\n\nexport const newShareClassFormSchema = z.object({\n  // Class Type\n  classType: z.enum([\"Common\", \"Preferred\"]),\n  excludeFromDilution: z.boolean(),\n  documents: z.array(z.string()),\n\n  // Share Class Information\n  name: z.string().min(1),\n  prefix: z.string(),\n  authorizedShares: z.number(),\n  pricePerShare: z.number(),\n  parValue: z.number(),\n  stockholderApprovalDate: z.date(),\n  boardApprovalDate: z.date(),\n  dividends: z.enum([\"Cumulative\", \"Non-Cumulative\"]),\n\n  // Voting Rights, [Future => Certificate and Advanced Settings]\n  hasVotingRights: z.boolean(),\n  votingMultiplier: z.number().min(1),\n  votingComment: z.string(),\n});\n\nconst NewEquityPlanForm = () => {\n  const router = useRouter();\n\n  const form = useForm<z.infer<typeof newShareClassFormSchema>>({\n    resolver: zodResolver(newShareClassFormSchema),\n    defaultValues: {\n      classType: \"Common\",\n      excludeFromDilution: false,\n      documents: [],\n\n      // Share Class Information\n      name: \"\",\n      prefix: \"\",\n      authorizedShares: 0,\n      pricePerShare: 0,\n      parValue: 0,\n      stockholderApprovalDate: new Date(),\n      boardApprovalDate: new Date(),\n      dividends: \"Cumulative\",\n\n      // Voting Rights, [Future => Certificate and Advanced Settings]\n      hasVotingRights: false,\n      votingMultiplier: 1,\n      votingComment: \"\",\n    },\n  });\n\n  function onSubmit(values: z.infer<typeof newShareClassFormSchema>) {\n    toast.success(\"Share Class Created!\");\n    router.push(configuration.paths.shareClasses.all);\n  }\n\n  return (\n    <Form {...form}>\n      <form onSubmit={form.handleSubmit(onSubmit)} className=\"mt-5 space-y-8\">\n        <ClassType control={form.control} />\n        <Information control={form.control} />\n        <AdvancedSettings form={form} />\n        <div className=\"flex justify-end\">\n          <Button type=\"submit\" className=\"max-w-xs w-full\">\n            Submit\n          </Button>\n        </div>\n      </form>\n    </Form>\n  );\n};\n\nexport default NewEquityPlanForm;\n"
  },
  {
    "path": "apps/web/app/dashboard/share-classes/components/ShareClassesTable.tsx",
    "content": "import {\n  Table,\n  TableBody,\n  TableCell,\n  TableHead,\n  TableHeader,\n  TableRow,\n} from \"@/components/ui/table\";\n\ntype ShareClass = {\n  id: string;\n  name: string;\n  shareClass: string;\n  perValue: number;\n  pricePerShare: number | null;\n  authorizedShares: number;\n};\n\nconst mockShareClasses: ShareClass[] = [\n  {\n    id: \"1\",\n    name: \"EQ1\",\n    shareClass: \"Common\",\n    perValue: 0,\n    pricePerShare: null,\n    authorizedShares: 1000000,\n  },\n];\n\nconst ShareClassesTable = () => {\n  return (\n    <Table>\n      <TableHeader>\n        <TableRow>\n          <TableHead className=\"w-[100px]\">Name</TableHead>\n          <TableHead>Share Class</TableHead>\n          <TableHead>Per Value</TableHead>\n          <TableHead className=\"text-right\">Price Per Share</TableHead>\n          <TableHead className=\"text-right\">Authorized Shares</TableHead>\n        </TableRow>\n      </TableHeader>\n      <TableBody>\n        {mockShareClasses.map(plan => (\n          <TableRow key={plan.id}>\n            <TableCell className=\"font-medium\">{plan.name}</TableCell>\n            <TableCell>{plan.shareClass}</TableCell>\n            <TableCell>{plan.perValue}</TableCell>\n            <TableCell className=\"text-right\">\n              {plan.pricePerShare || \"--\"}\n            </TableCell>\n            <TableCell className=\"text-right\">\n              <p className=\"text-sm\">{plan.authorizedShares}</p>\n              <p className=\"text-xs\">{plan.authorizedShares} outstanding</p>\n            </TableCell>\n          </TableRow>\n        ))}\n      </TableBody>\n    </Table>\n  );\n};\n\nexport default ShareClassesTable;\n"
  },
  {
    "path": "apps/web/app/dashboard/share-classes/new/page.tsx",
    "content": "import Container from \"@/components/ui/Container\";\nimport Tile from \"@/components/ui/Tile\";\n\nimport NewShareClassForm from \"../components/NewShareClassForm\";\n\nexport const metadata = {\n  title: \"Add Share Class\",\n};\n\nconst NewShareClassPage = async () => {\n  return (\n    <div className=\"h-full flex flex-col items-center gap-8\">\n      <Container className=\"max-w-3xl ml-0\">\n        <Tile>\n          <h1 className=\"text-2xl font-bold\">Add Share Class</h1>\n          <p className=\"text-xs text-zinc-600\">\n            Keep track of shares that were issued outside of this platform.\n          </p>\n        </Tile>\n        <NewShareClassForm />\n      </Container>\n    </div>\n  );\n};\n\nexport default NewShareClassPage;\n"
  },
  {
    "path": "apps/web/app/dashboard/share-classes/page.tsx",
    "content": "import { configuration } from \"@/core/constants/configs\";\n\nimport Container from \"@/components/ui/Container\";\nimport Tile from \"@/components/ui/Tile\";\nimport { Button } from \"@/components/ui/button\";\n\nimport ShareClassesTable from \"./components/ShareClassesTable\";\n\nexport const metadata = {\n  title: \"Share Classes\",\n};\n\nconst ShareClassesPage = async () => {\n  return (\n    <div className=\"h-full flex flex-col items-center gap-8\">\n      <Container>\n        <Tile>\n          <div className=\"flex items-center justify-between w-full\">\n            <h1 className=\"text-2xl font-bold\">Share Classes</h1>\n            <Button href={configuration.paths.shareClasses.new}>\n              Add a Share Classes\n            </Button>\n          </div>\n          <ShareClassesTable />\n        </Tile>\n      </Container>\n    </div>\n  );\n};\n\nexport default ShareClassesPage;\n"
  },
  {
    "path": "apps/web/app/globals.css",
    "content": "@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n@layer base {\n  :root {\n    --background: 0 0% 100%;\n    --foreground: 240 10% 3.9%;\n\n    --card: 0 0% 100%;\n    --card-foreground: 240 10% 3.9%;\n\n    --popover: 0 0% 100%;\n    --popover-foreground: 240 10% 3.9%;\n\n    --primary: 240 5.9% 10%;\n    --primary-foreground: 0 0% 98%;\n\n    --secondary: 240 4.8% 95.9%;\n    --secondary-foreground: 240 5.9% 10%;\n\n    --muted: 240 4.8% 95.9%;\n    --muted-foreground: 240 3.8% 46.1%;\n\n    --accent: 240 4.8% 95.9%;\n    --accent-foreground: 240 5.9% 10%;\n\n    --destructive: 0 84.2% 60.2%;\n    --destructive-foreground: 0 0% 98%;\n\n    --border: 240 5.9% 90%;\n    --input: 240 5.9% 90%;\n    --ring: 240 10% 3.9%;\n\n    --radius: 0.5rem;\n  }\n}\n\n@layer base {\n  * {\n    @apply border-border;\n  }\n\n  body {\n    @apply bg-background text-foreground;\n  }\n}"
  },
  {
    "path": "apps/web/app/layout.tsx",
    "content": "import { Analytics } from \"@vercel/analytics/react\";\nimport { Inter } from \"next/font/google\";\nimport { Toaster } from \"sonner\";\n\nimport CapTableBanner from \"@/components/CapTableBanner\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nimport \"./globals.css\";\n\nconst inter = Inter({\n  subsets: [\"latin\"],\n  variable: \"--font-inter\",\n  display: \"swap\",\n});\n\nexport const metadata = {\n  title: \"ByeByeCarta.com\",\n  description: \"Open Source Cap Table Manager\",\n};\n\nexport default function RootLayout({\n  children,\n}: {\n  children: React.ReactNode;\n}) {\n  return (\n    <html lang=\"en\">\n      <body\n        className={cn(\n          \"min-h-screen bg-background font-sans antialiased text-gray-900 tracking-tight\",\n          inter.variable,\n        )}\n      >\n        <CapTableBanner />\n        <Toaster richColors />\n        <div className=\"flex flex-col min-h-screen overflow-hidden supports-[overflow:clip]:overflow-clip\">\n          {children}\n          <Analytics />\n        </div>\n      </body>\n    </html>\n  );\n}\n"
  },
  {
    "path": "apps/web/app/not-found.tsx",
    "content": "import Link from \"next/link\";\n\nexport default function NotFound() {\n  return (\n    <section className=\"relative\">\n      {/* Illustration behind content */}\n      <div\n        className=\"absolute left-1/2 transform -translate-x-1/2 -mb-64 bottom-0 pointer-events-none -z-1\"\n        aria-hidden=\"true\"\n      >\n        <svg\n          width=\"1360\"\n          height=\"578\"\n          viewBox=\"0 0 1360 578\"\n          xmlns=\"http://www.w3.org/2000/svg\"\n        >\n          <defs>\n            <linearGradient\n              x1=\"50%\"\n              y1=\"0%\"\n              x2=\"50%\"\n              y2=\"100%\"\n              id=\"illustration-01\"\n            >\n              <stop stopColor=\"#FFF\" offset=\"0%\" />\n              <stop stopColor=\"#EAEAEA\" offset=\"77.402%\" />\n              <stop stopColor=\"#DFDFDF\" offset=\"100%\" />\n            </linearGradient>\n          </defs>\n          <g fill=\"url(#illustration-01)\" fillRule=\"evenodd\">\n            <circle cx=\"1232\" cy=\"128\" r=\"128\" />\n            <circle cx=\"155\" cy=\"443\" r=\"64\" />\n          </g>\n        </svg>\n      </div>\n\n      <div className=\"max-w-6xl mx-auto px-4 sm:px-6\">\n        <div className=\"pt-32 pb-12 md:pt-40 md:pb-20\">\n          <div className=\"max-w-3xl mx-auto text-center\">\n            {/* 404 content */}\n            <h1 className=\"h1 mb-4\">Oh, No! You stumbled upon a rarity</h1>\n            <div className=\"mt-8\">\n              <Link\n                href=\"/\"\n                className=\"btn text-white bg-blue-600 hover:bg-blue-700\"\n              >\n                Go back home\n              </Link>\n            </div>\n          </div>\n        </div>\n      </div>\n    </section>\n  );\n}\n"
  },
  {
    "path": "apps/web/components/CapTableBanner.tsx",
    "content": "export default function CapTableBanner() {\n  return (\n    <div className=\"w-full flex items-center justify-center bg-gray-900 px-6 py-2.5 sm:px-3.5\">\n      <p className=\"text-sm leading-6 text-white w-full text-center\">\n        For cloud <span role=\"image\">☁️</span> hosted solution to this Cap Table\n        Management,{\" \"}\n        <a href=\"https://jl1zzmzlaee.typeform.com/to/Fbf4XlNu\" target=\"_blank\">\n          <strong className=\"font-semibold underline\">register here</strong>\n        </a>{\" \"}\n        <span role=\"image\">👉</span>.\n      </p>\n    </div>\n  );\n}\n"
  },
  {
    "path": "apps/web/components/Logo/Logo.tsx",
    "content": "import Link from \"next/link\";\nimport React from \"react\";\n\nimport LogoImage from \"./LogoImage\";\n\nconst Logo: React.FCC<{ href?: string; className?: string }> = ({\n  href,\n  className,\n}) => {\n  return (\n    <Link href={href ?? \"/\"}>\n      <LogoImage className={className} />\n    </Link>\n  );\n};\n\nexport default Logo;\n"
  },
  {
    "path": "apps/web/components/Logo/LogoImage.tsx",
    "content": "import { cn } from \"@/lib/utils/common\";\n\nconst LogoImage: React.FCC<{\n  className?: string;\n}> = ({ className }) => {\n  return (\n    <svg\n      className={cn(\"w-8 h-8\", className)}\n      viewBox=\"0 0 32 32\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n    >\n      <defs>\n        <radialGradient\n          cx=\"21.152%\"\n          cy=\"86.063%\"\n          fx=\"21.152%\"\n          fy=\"86.063%\"\n          r=\"79.941%\"\n          id=\"footer-logo\"\n        >\n          <stop stopColor=\"zinc-300\" offset=\"0%\" />\n          <stop stopColor=\"zinc-400\" offset=\"15.871%\" />\n          <stop stopColor=\"slate-300\" offset=\"100%\" />\n        </radialGradient>\n      </defs>\n      <rect\n        width=\"32\"\n        height=\"32\"\n        rx=\"16\"\n        fill=\"url(#footer-logo)\"\n        fillRule=\"nonzero\"\n      />\n    </svg>\n  );\n};\n\nexport default LogoImage;\n"
  },
  {
    "path": "apps/web/components/Logo/index.ts",
    "content": "export { default } from \"./Logo\";\n"
  },
  {
    "path": "apps/web/components/WorkInProgress.tsx",
    "content": "import { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\n\nimport { faBarsProgress } from \"@fortawesome/free-solid-svg-icons\";\n\nimport Container from \"./ui/Container\";\nimport { Alert, AlertDescription, AlertTitle } from \"./ui/alert\";\n\nconst WorkInProgress = () => {\n  return (\n    <Container className=\"flex flex-col items-center justify-center h-[70vh] max-w-2xl\">\n      <Alert className=\"border-amber-400 bg-amber-50\">\n        <FontAwesomeIcon\n          className=\"h-4 w-4 !text-amber-600\"\n          icon={faBarsProgress}\n        />\n        <AlertTitle className=\"text-amber-600\">Work in progress!</AlertTitle>\n        <AlertDescription className=\"text-amber-600\">\n          This page is still under construction. Please check back later.\n        </AlertDescription>\n      </Alert>\n    </Container>\n  );\n};\n\nexport default WorkInProgress;\n"
  },
  {
    "path": "apps/web/components/layout/NavBar/index.tsx",
    "content": "\"use client\";\n\nimport { Dialog, Menu, Transition } from \"@headlessui/react\";\nimport { ChevronDownIcon } from \"@heroicons/react/20/solid\";\nimport {\n  Bars3Icon,\n  BellIcon,\n  ChartPieIcon,\n  Cog6ToothIcon,\n  DocumentDuplicateIcon,\n  HomeIcon,\n  UsersIcon,\n  XMarkIcon,\n} from \"@heroicons/react/24/outline\";\nimport { Session } from \"next-auth\";\nimport Link from \"next/link\";\nimport { usePathname } from \"next/navigation\";\nimport { Fragment, useState } from \"react\";\n\nimport { configuration } from \"@/core/constants/configs\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nconst navigation = [\n  {\n    name: \"Dashboard\",\n    href: configuration.paths.dashbord,\n    icon: HomeIcon,\n  },\n  {\n    name: \"Cap Table\",\n    href: configuration.paths.capTables.all,\n    icon: UsersIcon,\n  },\n  {\n    name: \"Share Class\",\n    href: configuration.paths.shareClasses.all,\n    icon: DocumentDuplicateIcon,\n  },\n\n  {\n    name: \"Equity Plan\",\n    href: configuration.paths.equityPlans.all,\n    icon: ChartPieIcon,\n  },\n];\nconst compliances = [\n  {\n    id: 1,\n    name: \"409A\",\n    href: configuration.paths.valuation401A,\n    initial: \"4\",\n    current: false,\n  },\n];\nconst forms = [\n  {\n    id: 1,\n    name: \"Rule 701\",\n    href: configuration.paths.rule701,\n    initial: \"R\",\n    current: false,\n  },\n];\nconst userNavigation = [\n  { name: \"Profile\", href: \"/dashboard/profile\" },\n  { name: \"Sign out\", href: \"/auth/signout\" },\n];\n\nexport default function NavBar({ user }: { user: Session[\"user\"] | null }) {\n  const pathname = usePathname();\n  const [sidebarOpen, setSidebarOpen] = useState(false);\n\n  return (\n    <>\n      <Transition.Root show={sidebarOpen} as={Fragment}>\n        <Dialog\n          as=\"div\"\n          className=\"relative z-50 lg:hidden\"\n          onClose={setSidebarOpen}\n        >\n          <Transition.Child\n            as={Fragment}\n            enter=\"transition-opacity ease-linear duration-300\"\n            enterFrom=\"opacity-0\"\n            enterTo=\"opacity-100\"\n            leave=\"transition-opacity ease-linear duration-300\"\n            leaveFrom=\"opacity-100\"\n            leaveTo=\"opacity-0\"\n          >\n            <div className=\"fixed inset-0 bg-gray-900/80\" />\n          </Transition.Child>\n\n          <div className=\"fixed inset-0 flex\">\n            <Transition.Child\n              as={Fragment}\n              enter=\"transition ease-in-out duration-300 transform\"\n              enterFrom=\"-translate-x-full\"\n              enterTo=\"translate-x-0\"\n              leave=\"transition ease-in-out duration-300 transform\"\n              leaveFrom=\"translate-x-0\"\n              leaveTo=\"-translate-x-full\"\n            >\n              <Dialog.Panel className=\"relative mr-16 flex w-full max-w-xs flex-1\">\n                <Transition.Child\n                  as={Fragment}\n                  enter=\"ease-in-out duration-300\"\n                  enterFrom=\"opacity-0\"\n                  enterTo=\"opacity-100\"\n                  leave=\"ease-in-out duration-300\"\n                  leaveFrom=\"opacity-100\"\n                  leaveTo=\"opacity-0\"\n                >\n                  <div className=\"absolute left-full top-0 flex w-16 justify-center pt-5\">\n                    <button\n                      type=\"button\"\n                      className=\"-m-2.5 p-2.5\"\n                      onClick={() => setSidebarOpen(false)}\n                    >\n                      <span className=\"sr-only\">Close sidebar</span>\n                      <XMarkIcon\n                        className=\"h-6 w-6 text-white\"\n                        aria-hidden=\"true\"\n                      />\n                    </button>\n                  </div>\n                </Transition.Child>\n                {/* Sidebar component, swap this element with another sidebar if you like */}\n                <div className=\"flex grow flex-col gap-y-5 overflow-y-auto bg-white px-6 pb-4\">\n                  <div className=\"flex h-16 shrink-0 items-center\">\n                    cap.octolane.com\n                  </div>\n                  <nav className=\"flex flex-1 flex-col\">\n                    <ul role=\"list\" className=\"flex flex-1 flex-col gap-y-7\">\n                      <li>\n                        <ul role=\"list\" className=\"-mx-2 space-y-1\">\n                          {navigation.map(item => {\n                            const isCurrent = pathname.startsWith(item.href);\n\n                            return (\n                              <li key={item.name}>\n                                <Link\n                                  href={item.href}\n                                  className={cn(\n                                    isCurrent\n                                      ? \"bg-gray-50 text-zinc-600\"\n                                      : \"text-gray-700 hover:text-zinc-600 hover:bg-gray-50\",\n                                    \"group flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold\",\n                                  )}\n                                >\n                                  <item.icon\n                                    className={cn(\n                                      isCurrent\n                                        ? \"text-zinc-600\"\n                                        : \"text-gray-400 group-hover:text-zinc-600\",\n                                      \"h-6 w-6 shrink-0\",\n                                    )}\n                                    aria-hidden=\"true\"\n                                  />\n                                  {item.name}\n                                </Link>\n                              </li>\n                            );\n                          })}\n                        </ul>\n                      </li>\n                      <li>\n                        <div className=\"text-xs font-semibold leading-6 text-gray-400\">\n                          Comply & Tax\n                        </div>\n                        <ul role=\"list\" className=\"-mx-2 mt-2 space-y-1\">\n                          {compliances.map(comply => {\n                            const isCurrent = pathname.startsWith(comply.href);\n                            return (\n                              <li key={comply.name}>\n                                <Link\n                                  href={comply.href}\n                                  className={cn(\n                                    isCurrent\n                                      ? \"bg-gray-50 text-zinc-600\"\n                                      : \"text-gray-700 hover:text-zinc-600 hover:bg-gray-50\",\n                                    \"group flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold\",\n                                  )}\n                                >\n                                  <span\n                                    className={cn(\n                                      isCurrent\n                                        ? \"text-zinc-600 border-zinc-600\"\n                                        : \"text-gray-400 border-gray-200 group-hover:border-zinc-600 group-hover:text-zinc-600\",\n                                      \"flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border text-[0.625rem] font-medium bg-white\",\n                                    )}\n                                  >\n                                    {comply.initial}\n                                  </span>\n                                  <span className=\"truncate\">\n                                    {comply.name}\n                                  </span>\n                                </Link>\n                              </li>\n                            );\n                          })}\n                        </ul>\n                      </li>\n                      <li className=\"mt-auto\">\n                        <Link\n                          href={configuration.paths.settings}\n                          className=\"group -mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-gray-700 hover:bg-gray-50 hover:text-zinc-600\"\n                        >\n                          <Cog6ToothIcon\n                            className=\"h-6 w-6 shrink-0 text-gray-400 group-hover:text-zinc-600\"\n                            aria-hidden=\"true\"\n                          />\n                          Settings\n                        </Link>\n                      </li>\n                    </ul>\n                  </nav>\n                </div>\n              </Dialog.Panel>\n            </Transition.Child>\n          </div>\n        </Dialog>\n      </Transition.Root>\n\n      {/* Static sidebar for desktop */}\n      <div className=\"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col\">\n        {/* Sidebar component, swap this element with another sidebar if you like */}\n        <div className=\"flex grow flex-col gap-y-5 overflow-y-auto border-r border-gray-200 bg-white px-6 pb-4\">\n          <div className=\"flex h-16 shrink-0 items-center\">\n            cap.octolane.com\n          </div>\n          <nav className=\"flex flex-1 flex-col\">\n            <ul role=\"list\" className=\"flex flex-1 flex-col gap-y-7\">\n              <li>\n                <ul role=\"list\" className=\"-mx-2 space-y-1\">\n                  {navigation.map(item => {\n                    const isCurrent = pathname.startsWith(item.href);\n                    return (\n                      <li key={item.name}>\n                        <Link\n                          href={item.href}\n                          className={cn(\n                            isCurrent\n                              ? \"bg-gray-50 text-zinc-600\"\n                              : \"text-gray-700 hover:text-zinc-600 hover:bg-gray-50\",\n                            \"group flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold\",\n                          )}\n                        >\n                          <item.icon\n                            className={cn(\n                              isCurrent\n                                ? \"text-zinc-600\"\n                                : \"text-gray-400 group-hover:text-zinc-600\",\n                              \"h-6 w-6 shrink-0\",\n                            )}\n                            aria-hidden=\"true\"\n                          />\n                          {item.name}\n                        </Link>\n                      </li>\n                    );\n                  })}\n                </ul>\n              </li>\n              <li>\n                <div className=\"text-xs font-semibold leading-6 text-gray-400\">\n                  Valuations\n                </div>\n                <ul role=\"list\" className=\"-mx-2 mt-2 space-y-1\">\n                  {compliances.map(team => {\n                    const isCurrent = pathname.startsWith(team.href);\n\n                    return (\n                      <li key={team.name}>\n                        <Link\n                          href={team.href}\n                          className={cn(\n                            isCurrent\n                              ? \"bg-gray-50 text-zinc-600\"\n                              : \"text-gray-700 hover:text-zinc-600 hover:bg-gray-50\",\n                            \"group flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold\",\n                          )}\n                        >\n                          <span\n                            className={cn(\n                              isCurrent\n                                ? \"text-zinc-600 border-zinc-600\"\n                                : \"text-gray-400 border-gray-200 group-hover:border-zinc-600 group-hover:text-zinc-600\",\n                              \"flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border text-[0.625rem] font-medium bg-white\",\n                            )}\n                          >\n                            {team.initial}\n                          </span>\n                          <span className=\"truncate\">{team.name}</span>\n                        </Link>\n                      </li>\n                    );\n                  })}\n                </ul>\n              </li>\n              <li>\n                <div className=\"text-xs font-semibold leading-6 text-gray-400\">\n                  IRS & SEC Forms\n                </div>\n                <ul role=\"list\" className=\"-mx-2 mt-2 space-y-1\">\n                  {forms.map(form => {\n                    const isCurrent = pathname.startsWith(form.href);\n                    return (\n                      <li key={form.name}>\n                        <Link\n                          href={form.href}\n                          className={cn(\n                            isCurrent\n                              ? \"bg-gray-50 text-zinc-600\"\n                              : \"text-gray-700 hover:text-zinc-600 hover:bg-gray-50\",\n                            \"group flex gap-x-3 rounded-md p-2 text-sm leading-6 font-semibold\",\n                          )}\n                        >\n                          <span\n                            className={cn(\n                              isCurrent\n                                ? \"text-zinc-600 border-zinc-600\"\n                                : \"text-gray-400 border-gray-200 group-hover:border-zinc-600 group-hover:text-zinc-600\",\n                              \"flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border text-[0.625rem] font-medium bg-white\",\n                            )}\n                          >\n                            {form.initial}\n                          </span>\n                          <span className=\"truncate\">{form.name}</span>\n                        </Link>\n                      </li>\n                    );\n                  })}\n                </ul>\n              </li>\n              <li className=\"mt-auto\">\n                <Link\n                  href={configuration.paths.settings}\n                  className=\"group -mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-gray-700 hover:bg-gray-50 hover:text-zinc-600\"\n                >\n                  <Cog6ToothIcon\n                    className=\"h-6 w-6 shrink-0 text-gray-400 group-hover:text-zinc-600\"\n                    aria-hidden=\"true\"\n                  />\n                  Settings\n                </Link>\n              </li>\n            </ul>\n          </nav>\n        </div>\n      </div>\n\n      <div className=\"lg:pl-72\">\n        <div className=\"sticky top-0 z-40 lg:mx-auto lg:max-w-7xl lg:px-8\">\n          <div className=\"flex h-16 items-center gap-x-4 border-b border-gray-200 bg-white px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-0 lg:shadow-none\">\n            <button\n              type=\"button\"\n              className=\"-m-2.5 p-2.5 text-gray-700 lg:hidden\"\n              onClick={() => setSidebarOpen(true)}\n            >\n              <span className=\"sr-only\">Open sidebar</span>\n              <Bars3Icon className=\"h-6 w-6\" aria-hidden=\"true\" />\n            </button>\n\n            {/* Separator */}\n            <div\n              className=\"h-6 w-px bg-gray-200 lg:hidden\"\n              aria-hidden=\"true\"\n            />\n\n            <div className=\"flex flex-1 gap-x-4 self-stretch lg:gap-x-6\">\n              <form\n                className=\"relative flex flex-1\"\n                action=\"#\"\n                method=\"GET\"\n              ></form>\n              <div className=\"flex items-center gap-x-4 lg:gap-x-6\">\n                <button\n                  type=\"button\"\n                  className=\"-m-2.5 p-2.5 text-gray-400 hover:text-gray-500\"\n                >\n                  <span className=\"sr-only\">View notifications</span>\n                  <BellIcon className=\"h-6 w-6\" aria-hidden=\"true\" />\n                </button>\n\n                {/* Separator */}\n                <div\n                  className=\"hidden lg:block lg:h-6 lg:w-px lg:bg-gray-200\"\n                  aria-hidden=\"true\"\n                />\n\n                {/* Profile dropdown */}\n                <Menu as=\"div\" className=\"relative\">\n                  <Menu.Button className=\"-m-1.5 flex items-center p-1.5\">\n                    <span className=\"sr-only\">Open user menu</span>\n                    <img\n                      className=\"h-8 w-8 rounded-full bg-gray-50\"\n                      src={\n                        user?.image ||\n                        `https://ui-avatars.com/api/?name=${user?.name}`\n                      }\n                      alt=\"\"\n                    />\n                    <span className=\"hidden lg:flex lg:items-center\">\n                      <span\n                        className=\"ml-4 text-sm font-semibold leading-6 text-gray-900\"\n                        aria-hidden=\"true\"\n                      >\n                        {user?.name}\n                      </span>\n                      <ChevronDownIcon\n                        className=\"ml-2 h-5 w-5 text-gray-400\"\n                        aria-hidden=\"true\"\n                      />\n                    </span>\n                  </Menu.Button>\n                  <Transition\n                    as={Fragment}\n                    enter=\"transition ease-out duration-100\"\n                    enterFrom=\"transform opacity-0 scale-95\"\n                    enterTo=\"transform opacity-100 scale-100\"\n                    leave=\"transition ease-in duration-75\"\n                    leaveFrom=\"transform opacity-100 scale-100\"\n                    leaveTo=\"transform opacity-0 scale-95\"\n                  >\n                    <Menu.Items className=\"absolute right-0 z-10 mt-2.5 w-32 origin-top-right rounded-md bg-white py-2 shadow-lg ring-1 ring-gray-900/5 focus:outline-none\">\n                      {userNavigation.map(item => (\n                        <Menu.Item key={item.name}>\n                          {({ active }) => (\n                            <Link\n                              href={item.href}\n                              className={cn(\n                                active ? \"bg-gray-50\" : \"\",\n                                \"block px-3 py-1 text-sm leading-6 text-gray-900\",\n                              )}\n                            >\n                              {item.name}\n                            </Link>\n                          )}\n                        </Menu.Item>\n                      ))}\n                    </Menu.Items>\n                  </Transition>\n                </Menu>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>\n    </>\n  );\n}\n"
  },
  {
    "path": "apps/web/components/ui/Container.tsx",
    "content": "import { cn } from \"@/lib/utils/common\";\n\nconst Container: React.FCC<{ className?: string }> = ({\n  children,\n  className,\n}) => {\n  return (\n    <div className={cn(\"container mx-auto px-5\", className)}>{children}</div>\n  );\n};\n\nexport default Container;\n"
  },
  {
    "path": "apps/web/components/ui/Heading.tsx",
    "content": "import classNames from \"clsx\";\n\ntype HeadingType = 1 | 2 | 3 | 4 | 5 | 6;\n\nconst Heading: React.FCC<{ type?: HeadingType; className?: string }> = ({\n  type,\n  children,\n  className,\n}) => {\n  switch (type) {\n    case 1:\n      return (\n        <h1\n          className={classNames(\n            `font-heading scroll-m-20 text-4xl font-bold tracking-tight dark:text-white`,\n            className,\n          )}\n        >\n          {children}\n        </h1>\n      );\n    case 2:\n      return (\n        <h2\n          className={classNames(\n            `font-heading scroll-m-20 pb-2 text-3xl font-semibold tracking-tight transition-colors first:mt-0`,\n            className,\n          )}\n        >\n          {children}\n        </h2>\n      );\n    case 3:\n      return (\n        <h3\n          className={classNames(\n            \"font-heading scroll-m-20\" +\n              \" text-2xl font-semibold tracking-tight\",\n            className,\n          )}\n        >\n          {children}\n        </h3>\n      );\n    case 4:\n      return (\n        <h4\n          className={classNames(\n            \"font-heading scroll-m-20 text-xl font-semibold tracking-tight\",\n            className,\n          )}\n        >\n          {children}\n        </h4>\n      );\n    case 5:\n      return (\n        <h5\n          className={classNames(\n            \"scroll-m-20 font-heading text-lg font-medium\",\n            className,\n          )}\n        >\n          {children}\n        </h5>\n      );\n    case 6:\n      return (\n        <h6\n          className={classNames(\n            \"scroll-m-20 font-heading text-base\" + \" font-medium\",\n            className,\n          )}\n        >\n          {children}\n        </h6>\n      );\n\n    default:\n      return <Heading type={1}>{children}</Heading>;\n  }\n};\n\nexport default Heading;\n"
  },
  {
    "path": "apps/web/components/ui/If.tsx",
    "content": "import { Fragment, useMemo } from \"react\";\n\ntype Condition<Value = unknown> = Value | Falsy;\n\nfunction If<Value = unknown>({\n  condition,\n  children,\n  fallback,\n}: React.PropsWithoutRef<{\n  condition: Condition<Value>;\n  children: React.ReactNode | ((value: Value) => React.ReactNode);\n  fallback?: React.ReactNode;\n}>) {\n  return useMemo(() => {\n    if (condition) {\n      if (typeof children === \"function\") {\n        return <Fragment>{children(condition)}</Fragment>;\n      }\n\n      return <Fragment>{children}</Fragment>;\n    }\n\n    if (fallback) {\n      return <Fragment>{fallback}</Fragment>;\n    }\n\n    return null;\n  }, [condition, fallback, children]);\n}\n\nexport default If;\n"
  },
  {
    "path": "apps/web/components/ui/Spinner.tsx",
    "content": "import classNames from \"clsx\";\n\nfunction Spinner(\n  props: React.PropsWithChildren<{\n    className?: string;\n  }>,\n) {\n  return (\n    <div role=\"status\">\n      <svg\n        aria-hidden=\"true\"\n        className={classNames(\n          `h-8 w-8 animate-spin fill-white duration-200 dark:fill-primary text-primary dark:text-primary/30`,\n          props.className,\n        )}\n        viewBox=\"0 0 100 101\"\n        fill=\"none\"\n        xmlns=\"http://www.w3.org/2000/svg\"\n      >\n        <path\n          d=\"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z\"\n          fill=\"currentColor\"\n        />\n\n        <path\n          d=\"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z\"\n          fill=\"currentFill\"\n        />\n      </svg>\n    </div>\n  );\n}\n\nexport default Spinner;\n"
  },
  {
    "path": "apps/web/components/ui/Tile.tsx",
    "content": "import {\n  ArrowSmallDownIcon,\n  ArrowSmallUpIcon,\n  Bars2Icon,\n} from \"@heroicons/react/24/outline\";\nimport { useMemo } from \"react\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nimport Heading from \"./Heading\";\n\nconst Tile: React.FCC<{ className?: string }> & {\n  Header: typeof TileHeader;\n  Heading: typeof TileHeading;\n  Body: typeof TileBody;\n  Figure: typeof TileFigure;\n  Trend: typeof TileTrend;\n  Badge: typeof TileBadge;\n} = ({ children, className }) => {\n  return (\n    <div\n      className={cn(\n        \"flex flex-col space-y-3 rounded-lg border border-gray-100\" +\n          \" dark:border-dark-900 bg-background p-5\",\n        className,\n      )}\n    >\n      {children}\n    </div>\n  );\n};\n\nfunction TileHeader(props: React.PropsWithChildren) {\n  return <div className={\"flex\"}>{props.children}</div>;\n}\n\nfunction TileHeading(props: React.PropsWithChildren) {\n  return (\n    <Heading type={6}>\n      <span className={\"font-normal text-gray-500 dark:text-gray-400\"}>\n        {props.children}\n      </span>\n    </Heading>\n  );\n}\n\nfunction TileBody(props: React.PropsWithChildren) {\n  return <div className={\"flex flex-col space-y-5\"}>{props.children}</div>;\n}\n\nfunction TileFigure(props: React.PropsWithChildren) {\n  return <div className={\"text-3xl font-bold\"}>{props.children}</div>;\n}\n\nfunction TileTrend(\n  props: React.PropsWithChildren<{\n    trend: \"up\" | \"down\" | \"stale\";\n  }>,\n) {\n  const Icon = useMemo(() => {\n    switch (props.trend) {\n      case \"up\":\n        return <ArrowSmallUpIcon className={\"h-4 text-green-500\"} />;\n      case \"down\":\n        return <ArrowSmallDownIcon className={\"h-4 text-red-500\"} />;\n      case \"stale\":\n        return <Bars2Icon className={\"h-4 text-yellow-500\"} />;\n    }\n  }, [props.trend]);\n\n  return (\n    <TileBadge trend={props.trend}>\n      <span className={\"flex items-center space-x-1\"}>\n        {Icon}\n        <span>{props.children}</span>\n      </span>\n    </TileBadge>\n  );\n}\n\nfunction TileBadge(\n  props: React.PropsWithChildren<{\n    trend: \"up\" | \"down\" | \"stale\";\n  }>,\n) {\n  const className = `inline-flex items-center rounded-lg py-1 px-2.5 text-sm font-semibold justify-center`;\n\n  if (props.trend === `up`) {\n    return (\n      <div\n        className={`${className} bg-green-50 text-green-600 dark:bg-green-500/10`}\n      >\n        <span>{props.children}</span>\n      </div>\n    );\n  }\n\n  if (props.trend === `down`) {\n    return (\n      <div className={`${className} bg-red-50 text-red-600 dark:bg-red-500/10`}>\n        <span>{props.children}</span>\n      </div>\n    );\n  }\n\n  return (\n    <div\n      className={`${className} bg-yellow-50 text-yellow-600 dark:bg-yellow-500/10`}\n    >\n      <span>{props.children}</span>\n    </div>\n  );\n}\n\nTile.Header = TileHeader;\nTile.Heading = TileHeading;\nTile.Body = TileBody;\nTile.Figure = TileFigure;\nTile.Trend = TileTrend;\nTile.Badge = TileBadge;\n\nexport default Tile;\n"
  },
  {
    "path": "apps/web/components/ui/alert.tsx",
    "content": "import { cva, type VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nconst alertVariants = cva(\n  \"relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-background text-foreground\",\n        destructive:\n          \"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n    },\n  },\n);\n\nconst Alert = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>\n>(({ className, variant, ...props }, ref) => (\n  <div\n    ref={ref}\n    role=\"alert\"\n    className={cn(alertVariants({ variant }), className)}\n    {...props}\n  />\n));\nAlert.displayName = \"Alert\";\n\nconst AlertTitle = React.forwardRef<\n  HTMLParagraphElement,\n  React.HTMLAttributes<HTMLHeadingElement>\n>(({ className, ...props }, ref) => (\n  <h5\n    ref={ref}\n    className={cn(\"mb-1 font-medium leading-none tracking-tight\", className)}\n    {...props}\n  />\n));\nAlertTitle.displayName = \"AlertTitle\";\n\nconst AlertDescription = React.forwardRef<\n  HTMLParagraphElement,\n  React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"text-sm [&_p]:leading-relaxed\", className)}\n    {...props}\n  />\n));\nAlertDescription.displayName = \"AlertDescription\";\n\nexport { Alert, AlertTitle, AlertDescription };\n"
  },
  {
    "path": "apps/web/components/ui/button.tsx",
    "content": "import { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport Link from \"next/link\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nimport If from \"./If\";\nimport Spinner from \"./Spinner\";\n\nconst buttonVariants = cva(\n  \"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50\",\n  {\n    variants: {\n      variant: {\n        default:\n          \"bg-primary text-primary-foreground shadow hover:bg-primary/90\",\n        destructive:\n          \"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90\",\n        outline:\n          \"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground\",\n        secondary:\n          \"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80\",\n        ghost: \"hover:bg-accent hover:text-accent-foreground\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default: \"h-9 px-4 py-2\",\n        sm: \"h-8 rounded-md px-3 text-xs\",\n        lg: \"h-10 rounded-md px-8\",\n        icon: \"h-9 w-9\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  },\n);\n\nexport interface ButtonProps\n  extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n    VariantProps<typeof buttonVariants> {\n  asChild?: boolean;\n  block?: boolean;\n  round?: boolean;\n  loading?: boolean;\n  href?: Maybe<string>;\n  target?: Maybe<React.HTMLAttributeAnchorTarget | undefined>;\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n  (\n    {\n      className,\n      variant,\n      size,\n      asChild = false,\n      href,\n      target,\n      loading,\n      children,\n      ...props\n    },\n    ref,\n  ) => {\n    const Comp = asChild ? Slot : \"button\";\n    return (\n      <Comp\n        className={cn(buttonVariants({ variant, size, className }))}\n        ref={ref}\n        {...props}\n      >\n        <InnerButtonContainerElement\n          href={href}\n          target={target}\n          disabled={props.disabled}\n        >\n          <span\n            className={cn(`flex w-full flex-1 items-center justify-center`)}\n          >\n            <If condition={loading}>\n              <Animation />\n            </If>\n\n            {children}\n          </span>\n        </InnerButtonContainerElement>\n      </Comp>\n    );\n  },\n);\nButton.displayName = \"Button\";\n\nfunction Animation() {\n  return (\n    <span className={\"mx-2\"}>\n      <Spinner className={\"mx-auto !h-4 !w-4 fill-white dark:fill-white\"} />\n    </span>\n  );\n}\n\nfunction InnerButtonContainerElement({\n  children,\n  href,\n  target,\n  disabled,\n}: React.PropsWithChildren<{\n  href: Maybe<string>;\n  target: Maybe<React.HTMLAttributeAnchorTarget | undefined>;\n  disabled?: boolean;\n}>) {\n  const className = `flex w-full h-full items-center transition-transform duration-500 ease-out`;\n\n  if (href && !disabled) {\n    return (\n      <Link className={className} href={href} target={target}>\n        {children}\n      </Link>\n    );\n  }\n\n  return <span className={className}>{children}</span>;\n}\n\nexport { Button, buttonVariants };\n"
  },
  {
    "path": "apps/web/components/ui/calendar.tsx",
    "content": "\"use client\";\n\nimport { ChevronLeftIcon, ChevronRightIcon } from \"@radix-ui/react-icons\";\nimport * as React from \"react\";\nimport { DayPicker } from \"react-day-picker\";\n\nimport { buttonVariants } from \"@/components/ui/button\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nexport type CalendarProps = React.ComponentProps<typeof DayPicker>;\n\nfunction Calendar({\n  className,\n  classNames,\n  showOutsideDays = true,\n  ...props\n}: CalendarProps) {\n  return (\n    <DayPicker\n      showOutsideDays={showOutsideDays}\n      className={cn(\"p-3\", className)}\n      classNames={{\n        months: \"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0\",\n        month: \"space-y-4\",\n        caption: \"flex justify-center pt-1 relative items-center\",\n        caption_label: \"text-sm font-medium\",\n        nav: \"space-x-1 flex items-center\",\n        nav_button: cn(\n          buttonVariants({ variant: \"outline\" }),\n          \"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100\",\n        ),\n        nav_button_previous: \"absolute left-1\",\n        nav_button_next: \"absolute right-1\",\n        table: \"w-full border-collapse space-y-1\",\n        head_row: \"flex\",\n        head_cell:\n          \"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]\",\n        row: \"flex w-full mt-2\",\n        cell: cn(\n          \"relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md\",\n          props.mode === \"range\"\n            ? \"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md\"\n            : \"[&:has([aria-selected])]:rounded-md\",\n        ),\n        day: cn(\n          buttonVariants({ variant: \"ghost\" }),\n          \"h-8 w-8 p-0 font-normal aria-selected:opacity-100\",\n        ),\n        day_range_start: \"day-range-start\",\n        day_range_end: \"day-range-end\",\n        day_selected:\n          \"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground\",\n        day_today: \"bg-accent text-accent-foreground\",\n        day_outside:\n          \"day-outside text-muted-foreground opacity-50  aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30\",\n        day_disabled: \"text-muted-foreground opacity-50\",\n        day_range_middle:\n          \"aria-selected:bg-accent aria-selected:text-accent-foreground\",\n        day_hidden: \"invisible\",\n        ...classNames,\n      }}\n      components={{\n        IconLeft: ({ ...props }) => <ChevronLeftIcon className=\"h-4 w-4\" />,\n        IconRight: ({ ...props }) => <ChevronRightIcon className=\"h-4 w-4\" />,\n      }}\n      {...props}\n    />\n  );\n}\nCalendar.displayName = \"Calendar\";\n\nexport { Calendar };\n"
  },
  {
    "path": "apps/web/components/ui/form.tsx",
    "content": "import * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport * as React from \"react\";\nimport {\n  Controller,\n  ControllerProps,\n  FieldPath,\n  FieldValues,\n  FormProvider,\n  useFormContext,\n} from \"react-hook-form\";\n\nimport { Label } from \"@/components/ui/label\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nconst Form = FormProvider;\n\ntype FormFieldContextValue<\n  TFieldValues extends FieldValues = FieldValues,\n  TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n> = {\n  name: TName;\n};\n\nconst FormFieldContext = React.createContext<FormFieldContextValue>(\n  {} as FormFieldContextValue,\n);\n\nconst FormField = <\n  TFieldValues extends FieldValues = FieldValues,\n  TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,\n>({\n  ...props\n}: ControllerProps<TFieldValues, TName>) => {\n  return (\n    <FormFieldContext.Provider value={{ name: props.name }}>\n      <Controller {...props} />\n    </FormFieldContext.Provider>\n  );\n};\n\nconst useFormField = () => {\n  const fieldContext = React.useContext(FormFieldContext);\n  const itemContext = React.useContext(FormItemContext);\n  const { getFieldState, formState } = useFormContext();\n\n  const fieldState = getFieldState(fieldContext.name, formState);\n\n  if (!fieldContext) {\n    throw new Error(\"useFormField should be used within <FormField>\");\n  }\n\n  const { id } = itemContext;\n\n  return {\n    id,\n    name: fieldContext.name,\n    formItemId: `${id}-form-item`,\n    formDescriptionId: `${id}-form-item-description`,\n    formMessageId: `${id}-form-item-message`,\n    ...fieldState,\n  };\n};\n\ntype FormItemContextValue = {\n  id: string;\n};\n\nconst FormItemContext = React.createContext<FormItemContextValue>(\n  {} as FormItemContextValue,\n);\n\nconst FormItem = React.forwardRef<\n  HTMLDivElement,\n  React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => {\n  const id = React.useId();\n\n  return (\n    <FormItemContext.Provider value={{ id }}>\n      <div ref={ref} className={cn(\"space-y-2\", className)} {...props} />\n    </FormItemContext.Provider>\n  );\n});\nFormItem.displayName = \"FormItem\";\n\nconst FormLabel = React.forwardRef<\n  React.ElementRef<typeof LabelPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>\n>(({ className, ...props }, ref) => {\n  const { error, formItemId } = useFormField();\n\n  return (\n    <Label\n      ref={ref}\n      className={cn(error && \"text-destructive\", className)}\n      htmlFor={formItemId}\n      {...props}\n    />\n  );\n});\nFormLabel.displayName = \"FormLabel\";\n\nconst FormControl = React.forwardRef<\n  React.ElementRef<typeof Slot>,\n  React.ComponentPropsWithoutRef<typeof Slot>\n>(({ ...props }, ref) => {\n  const { error, formItemId, formDescriptionId, formMessageId } =\n    useFormField();\n\n  return (\n    <Slot\n      ref={ref}\n      id={formItemId}\n      aria-describedby={\n        !error\n          ? `${formDescriptionId}`\n          : `${formDescriptionId} ${formMessageId}`\n      }\n      aria-invalid={!!error}\n      {...props}\n    />\n  );\n});\nFormControl.displayName = \"FormControl\";\n\nconst FormDescription = React.forwardRef<\n  HTMLParagraphElement,\n  React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => {\n  const { formDescriptionId } = useFormField();\n\n  return (\n    <p\n      ref={ref}\n      id={formDescriptionId}\n      className={cn(\"text-[0.8rem] text-muted-foreground\", className)}\n      {...props}\n    />\n  );\n});\nFormDescription.displayName = \"FormDescription\";\n\nconst FormMessage = React.forwardRef<\n  HTMLParagraphElement,\n  React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, children, ...props }, ref) => {\n  const { error, formMessageId } = useFormField();\n  const body = error ? String(error?.message) : children;\n\n  if (!body) {\n    return null;\n  }\n\n  return (\n    <p\n      ref={ref}\n      id={formMessageId}\n      className={cn(\"text-[0.8rem] font-medium text-destructive\", className)}\n      {...props}\n    >\n      {body}\n    </p>\n  );\n});\nFormMessage.displayName = \"FormMessage\";\n\nexport {\n  useFormField,\n  Form,\n  FormItem,\n  FormLabel,\n  FormControl,\n  FormDescription,\n  FormMessage,\n  FormField,\n};\n"
  },
  {
    "path": "apps/web/components/ui/input.tsx",
    "content": "import * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nexport interface InputProps\n  extends React.InputHTMLAttributes<HTMLInputElement> {}\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n  ({ className, type, ...props }, ref) => {\n    return (\n      <input\n        type={type}\n        className={cn(\n          \"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\",\n          className,\n        )}\n        ref={ref}\n        {...props}\n      />\n    );\n  },\n);\nInput.displayName = \"Input\";\n\nexport { Input };\n"
  },
  {
    "path": "apps/web/components/ui/label.tsx",
    "content": "\"use client\";\n\nimport * as LabelPrimitive from \"@radix-ui/react-label\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nconst labelVariants = cva(\n  \"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\",\n);\n\nconst Label = React.forwardRef<\n  React.ElementRef<typeof LabelPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &\n    VariantProps<typeof labelVariants>\n>(({ className, ...props }, ref) => (\n  <LabelPrimitive.Root\n    ref={ref}\n    className={cn(labelVariants(), className)}\n    {...props}\n  />\n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n\nexport { Label };\n"
  },
  {
    "path": "apps/web/components/ui/popover.tsx",
    "content": "\"use client\";\n\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverAnchor = PopoverPrimitive.Anchor;\n\nconst PopoverContent = React.forwardRef<\n  React.ElementRef<typeof PopoverPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n  <PopoverPrimitive.Portal>\n    <PopoverPrimitive.Content\n      ref={ref}\n      align={align}\n      sideOffset={sideOffset}\n      className={cn(\n        \"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n        className,\n      )}\n      {...props}\n    />\n  </PopoverPrimitive.Portal>\n));\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };\n"
  },
  {
    "path": "apps/web/components/ui/radio-group.tsx",
    "content": "\"use client\";\n\nimport { CheckIcon } from \"@radix-ui/react-icons\";\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nconst RadioGroup = React.forwardRef<\n  React.ElementRef<typeof RadioGroupPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => {\n  return (\n    <RadioGroupPrimitive.Root\n      className={cn(\"grid gap-2\", className)}\n      {...props}\n      ref={ref}\n    />\n  );\n});\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\nconst RadioGroupItem = React.forwardRef<\n  React.ElementRef<typeof RadioGroupPrimitive.Item>,\n  React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => {\n  return (\n    <RadioGroupPrimitive.Item\n      ref={ref}\n      className={cn(\n        \"aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\",\n        className,\n      )}\n      {...props}\n    >\n      <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n        <CheckIcon className=\"h-3.5 w-3.5 fill-primary\" />\n      </RadioGroupPrimitive.Indicator>\n    </RadioGroupPrimitive.Item>\n  );\n});\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\nexport { RadioGroup, RadioGroupItem };\n"
  },
  {
    "path": "apps/web/components/ui/select.tsx",
    "content": "\"use client\";\n\nimport {\n  CaretSortIcon,\n  CheckIcon,\n  ChevronDownIcon,\n  ChevronUpIcon,\n} from \"@radix-ui/react-icons\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n  React.ElementRef<typeof SelectPrimitive.Trigger>,\n  React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>\n>(({ className, children, ...props }, ref) => (\n  <SelectPrimitive.Trigger\n    ref={ref}\n    className={cn(\n      \"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1\",\n      className,\n    )}\n    {...props}\n  >\n    {children}\n    <SelectPrimitive.Icon asChild>\n      <CaretSortIcon className=\"h-4 w-4 opacity-50\" />\n    </SelectPrimitive.Icon>\n  </SelectPrimitive.Trigger>\n));\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n  React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,\n  React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n  <SelectPrimitive.ScrollUpButton\n    ref={ref}\n    className={cn(\n      \"flex cursor-default items-center justify-center py-1\",\n      className,\n    )}\n    {...props}\n  >\n    <ChevronUpIcon />\n  </SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n  React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,\n  React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n  <SelectPrimitive.ScrollDownButton\n    ref={ref}\n    className={cn(\n      \"flex cursor-default items-center justify-center py-1\",\n      className,\n    )}\n    {...props}\n  >\n    <ChevronDownIcon />\n  </SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName =\n  SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n  React.ElementRef<typeof SelectPrimitive.Content>,\n  React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n  <SelectPrimitive.Portal>\n    <SelectPrimitive.Content\n      ref={ref}\n      className={cn(\n        \"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n        position === \"popper\" &&\n          \"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1\",\n        className,\n      )}\n      position={position}\n      {...props}\n    >\n      <SelectScrollUpButton />\n      <SelectPrimitive.Viewport\n        className={cn(\n          \"p-1\",\n          position === \"popper\" &&\n            \"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]\",\n        )}\n      >\n        {children}\n      </SelectPrimitive.Viewport>\n      <SelectScrollDownButton />\n    </SelectPrimitive.Content>\n  </SelectPrimitive.Portal>\n));\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n  React.ElementRef<typeof SelectPrimitive.Label>,\n  React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n  <SelectPrimitive.Label\n    ref={ref}\n    className={cn(\"px-2 py-1.5 text-sm font-semibold\", className)}\n    {...props}\n  />\n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n  React.ElementRef<typeof SelectPrimitive.Item>,\n  React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n  <SelectPrimitive.Item\n    ref={ref}\n    className={cn(\n      \"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n      className,\n    )}\n    {...props}\n  >\n    <span className=\"absolute right-2 flex h-3.5 w-3.5 items-center justify-center\">\n      <SelectPrimitive.ItemIndicator>\n        <CheckIcon className=\"h-4 w-4\" />\n      </SelectPrimitive.ItemIndicator>\n    </span>\n    <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n  </SelectPrimitive.Item>\n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n  React.ElementRef<typeof SelectPrimitive.Separator>,\n  React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n  <SelectPrimitive.Separator\n    ref={ref}\n    className={cn(\"-mx-1 my-1 h-px bg-muted\", className)}\n    {...props}\n  />\n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n  Select,\n  SelectGroup,\n  SelectValue,\n  SelectTrigger,\n  SelectContent,\n  SelectLabel,\n  SelectItem,\n  SelectSeparator,\n  SelectScrollUpButton,\n  SelectScrollDownButton,\n};\n"
  },
  {
    "path": "apps/web/components/ui/switch.tsx",
    "content": "\"use client\";\n\nimport * as SwitchPrimitives from \"@radix-ui/react-switch\";\nimport * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nconst Switch = React.forwardRef<\n  React.ElementRef<typeof SwitchPrimitives.Root>,\n  React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>\n>(({ className, ...props }, ref) => (\n  <SwitchPrimitives.Root\n    className={cn(\n      \"peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input\",\n      className,\n    )}\n    {...props}\n    ref={ref}\n  >\n    <SwitchPrimitives.Thumb\n      className={cn(\n        \"pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0\",\n      )}\n    />\n  </SwitchPrimitives.Root>\n));\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\nexport { Switch };\n"
  },
  {
    "path": "apps/web/components/ui/table.tsx",
    "content": "import * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nconst Table = React.forwardRef<\n  HTMLTableElement,\n  React.HTMLAttributes<HTMLTableElement>\n>(({ className, ...props }, ref) => (\n  <div className=\"relative w-full overflow-auto\">\n    <table\n      ref={ref}\n      className={cn(\"w-full caption-bottom text-sm\", className)}\n      {...props}\n    />\n  </div>\n));\nTable.displayName = \"Table\";\n\nconst TableHeader = React.forwardRef<\n  HTMLTableSectionElement,\n  React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n  <thead ref={ref} className={cn(\"[&_tr]:border-b\", className)} {...props} />\n));\nTableHeader.displayName = \"TableHeader\";\n\nconst TableBody = React.forwardRef<\n  HTMLTableSectionElement,\n  React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n  <tbody\n    ref={ref}\n    className={cn(\"[&_tr:last-child]:border-0\", className)}\n    {...props}\n  />\n));\nTableBody.displayName = \"TableBody\";\n\nconst TableFooter = React.forwardRef<\n  HTMLTableSectionElement,\n  React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n  <tfoot\n    ref={ref}\n    className={cn(\n      \"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0\",\n      className,\n    )}\n    {...props}\n  />\n));\nTableFooter.displayName = \"TableFooter\";\n\nconst TableRow = React.forwardRef<\n  HTMLTableRowElement,\n  React.HTMLAttributes<HTMLTableRowElement>\n>(({ className, ...props }, ref) => (\n  <tr\n    ref={ref}\n    className={cn(\n      \"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted\",\n      className,\n    )}\n    {...props}\n  />\n));\nTableRow.displayName = \"TableRow\";\n\nconst TableHead = React.forwardRef<\n  HTMLTableCellElement,\n  React.ThHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n  <th\n    ref={ref}\n    className={cn(\n      \"h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]\",\n      className,\n    )}\n    {...props}\n  />\n));\nTableHead.displayName = \"TableHead\";\n\nconst TableCell = React.forwardRef<\n  HTMLTableCellElement,\n  React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n  <td\n    ref={ref}\n    className={cn(\n      \"p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]\",\n      className,\n    )}\n    {...props}\n  />\n));\nTableCell.displayName = \"TableCell\";\n\nconst TableCaption = React.forwardRef<\n  HTMLTableCaptionElement,\n  React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n  <caption\n    ref={ref}\n    className={cn(\"mt-4 text-sm text-muted-foreground\", className)}\n    {...props}\n  />\n));\nTableCaption.displayName = \"TableCaption\";\n\nexport {\n  Table,\n  TableHeader,\n  TableBody,\n  TableFooter,\n  TableHead,\n  TableRow,\n  TableCell,\n  TableCaption,\n};\n"
  },
  {
    "path": "apps/web/components/ui/textarea.tsx",
    "content": "import * as React from \"react\";\n\nimport { cn } from \"@/lib/utils/common\";\n\nexport interface TextareaProps\n  extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}\n\nconst Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(\n  ({ className, ...props }, ref) => {\n    return (\n      <textarea\n        className={cn(\n          \"flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50\",\n          className,\n        )}\n        ref={ref}\n        {...props}\n      />\n    );\n  },\n);\nTextarea.displayName = \"Textarea\";\n\nexport { Textarea };\n"
  },
  {
    "path": "apps/web/components.json",
    "content": "{\n  \"$schema\": \"https://ui.shadcn.com/schema.json\",\n  \"style\": \"new-york\",\n  \"rsc\": true,\n  \"tsx\": true,\n  \"tailwind\": {\n    \"config\": \"tailwind.config.js\",\n    \"css\": \"app/globals.css\",\n    \"baseColor\": \"zinc\",\n    \"cssVariables\": true,\n    \"prefix\": \"\"\n  },\n  \"aliases\": {\n    \"components\": \"@/components\",\n    \"utils\": \"@/lib/utils/common\"\n  }\n}"
  },
  {
    "path": "apps/web/content/community-digest-summer-edition.mdx",
    "content": "---\ntitle: 'Community Digest: Summer Edition'\npublishedAt: '2020-07-09'\nsummary: 'In this post, you will learn how to deploy a blog using Simple custom asset source plugin that uses the webcam to insert a photo in the image field.'\nauthor: 'Lisa Allison'\nauthorImg: '/images/news-author-01.jpg'\n---\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis enim lobortis scelerisque fermentum. Neque sodales ut etiam sit amet [how to manage anything](#0) malesuada proin libero nunc consequat interdum varius. Quam pellentesque nec nam aliquam sem **et tortor consequat**. Pellentesque adipiscing commodo elit at imperdiet. Semper auctor neque vitae tempus quam pellentesque nec. Amet dictum sit amet justo donec enim diam. **Varius sit amet mattis vulputate enim** nulla aliquet porttitor. Odio pellentesque diam volutpat commodo sed. Elit sed vulputate mi sit amet mauris commodo quis imperdiet.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n<Image\n  alt=\"Blog single\"\n  src={`/images/news-single.jpg`}\n  width={768}\n  height={432}\n/>\n\n## General content\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet. Morbi tristique senectus et netus et, nibh nisl condimentum id venenatis a condimentum vitae sapien.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n*   **E-commerce**: Better lorem ipsum generator.\n*   **Booking**: Lorem ipsum post generator.\n*   **Retail**: Generic dummy blog post generator.\n*   **On-demand services**: Lorem ipsum generator shortcode.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n[Read Simple on-demand services](#0)\n\n## Additional reading\n\nAenean sed adipiscing _diam donec adipiscing tristique risus nec feugiat_ auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet.\n\n#### Why support for Business is important\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend.\n\n> Mi in nulla posuere sollicitudin. Porttitor eget dolor morbi non arcu risus quis varius quam. Pharetra vel turpis nunc eget lorem dolor sed viverra. Semper auctor neque vitae tempus quam pellentesque nec.\n\nEt leo duis ut diam quam nulla porttitor porttitor lacus luctus accumsan tortor, lorem dolor sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam.\n\n<Banner>\n[Simple](#0) is a sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam. Learn more [here](#0).\n</Banner>\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n**Mi in nulla posuere sollicitudin:**\n\n*   [E-commerce for etter lorem ipsum generator](#0)\n*   [Booking for lorem ipsum post generator](#0)\n*   [Retail for generic dummy blog post generator](#0)\n*   [On-demand services: Lorem ipsum generator shortcode](#0)\n\n## Conclusion\n\nSollicitudin ac orci phasellus egestas tellus rutrum telluse nim ut tellus elementum sagittis vitae et leo duis egestas purus viverra accumsan in nisl nisi scelerisquep ellentesque habitant morbi tristique, senectus et netus et dolor purus non enim praesent elementum facilisis leol, aoreet suspendisse interdum consectetur libero id faucibus."
  },
  {
    "path": "apps/web/content/create-and-deploy-a-blog-with-simple.mdx",
    "content": "---\ntitle: 'Create and Deploy a blog with Simple'\npublishedAt: '2020-07-20'\nsummary: 'In this post, you will learn how to deploy a blog using Simple custom asset source plugin that uses the webcam to insert a photo in the image field.'\nauthor: 'Micheal Osman'\nauthorImg: '/images/news-author-04.jpg'\n---\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis enim lobortis scelerisque fermentum. Neque sodales ut etiam sit amet [how to manage anything](#0) malesuada proin libero nunc consequat interdum varius. Quam pellentesque nec nam aliquam sem **et tortor consequat**. Pellentesque adipiscing commodo elit at imperdiet. Semper auctor neque vitae tempus quam pellentesque nec. Amet dictum sit amet justo donec enim diam. **Varius sit amet mattis vulputate enim** nulla aliquet porttitor. Odio pellentesque diam volutpat commodo sed. Elit sed vulputate mi sit amet mauris commodo quis imperdiet.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n<Image\n  alt=\"Blog single\"\n  src={`/images/news-single.jpg`}\n  width={768}\n  height={432}\n/>\n\n## General content\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet. Morbi tristique senectus et netus et, nibh nisl condimentum id venenatis a condimentum vitae sapien.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n*   **E-commerce**: Better lorem ipsum generator.\n*   **Booking**: Lorem ipsum post generator.\n*   **Retail**: Generic dummy blog post generator.\n*   **On-demand services**: Lorem ipsum generator shortcode.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n[Read Simple on-demand services](#0)\n\n## Additional reading\n\nAenean sed adipiscing _diam donec adipiscing tristique risus nec feugiat_ auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet.\n\n#### Why support for Business is important\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend.\n\n> Mi in nulla posuere sollicitudin. Porttitor eget dolor morbi non arcu risus quis varius quam. Pharetra vel turpis nunc eget lorem dolor sed viverra. Semper auctor neque vitae tempus quam pellentesque nec.\n\nEt leo duis ut diam quam nulla porttitor porttitor lacus luctus accumsan tortor, lorem dolor sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam.\n\n<Banner>\n[Simple](#0) is a sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam. Learn more [here](#0).\n</Banner>\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n**Mi in nulla posuere sollicitudin:**\n\n*   [E-commerce for etter lorem ipsum generator](#0)\n*   [Booking for lorem ipsum post generator](#0)\n*   [Retail for generic dummy blog post generator](#0)\n*   [On-demand services: Lorem ipsum generator shortcode](#0)\n\n## Conclusion\n\nSollicitudin ac orci phasellus egestas tellus rutrum telluse nim ut tellus elementum sagittis vitae et leo duis egestas purus viverra accumsan in nisl nisi scelerisquep ellentesque habitant morbi tristique, senectus et netus et dolor purus non enim praesent elementum facilisis leol, aoreet suspendisse interdum consectetur libero id faucibus."
  },
  {
    "path": "apps/web/content/getting-started-with-nextjs.mdx",
    "content": "---\ntitle: 'Getting started with Next.js'\npublishedAt: '2020-07-19'\nsummary: 'In this post, you will learn how to deploy a blog using Simple custom asset source plugin that uses the webcam to insert a photo in the image field.'\nauthor: 'Lisa Allison'\nauthorImg: '/images/news-author-01.jpg'\n---\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis enim lobortis scelerisque fermentum. Neque sodales ut etiam sit amet [how to manage anything](#0) malesuada proin libero nunc consequat interdum varius. Quam pellentesque nec nam aliquam sem **et tortor consequat**. Pellentesque adipiscing commodo elit at imperdiet. Semper auctor neque vitae tempus quam pellentesque nec. Amet dictum sit amet justo donec enim diam. **Varius sit amet mattis vulputate enim** nulla aliquet porttitor. Odio pellentesque diam volutpat commodo sed. Elit sed vulputate mi sit amet mauris commodo quis imperdiet.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n<Image\n  alt=\"Blog single\"\n  src={`/images/news-single.jpg`}\n  width={768}\n  height={432}\n/>\n\n## General content\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet. Morbi tristique senectus et netus et, nibh nisl condimentum id venenatis a condimentum vitae sapien.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n*   **E-commerce**: Better lorem ipsum generator.\n*   **Booking**: Lorem ipsum post generator.\n*   **Retail**: Generic dummy blog post generator.\n*   **On-demand services**: Lorem ipsum generator shortcode.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n[Read Simple on-demand services](#0)\n\n## Additional reading\n\nAenean sed adipiscing _diam donec adipiscing tristique risus nec feugiat_ auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet.\n\n#### Why support for Business is important\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend.\n\n> Mi in nulla posuere sollicitudin. Porttitor eget dolor morbi non arcu risus quis varius quam. Pharetra vel turpis nunc eget lorem dolor sed viverra. Semper auctor neque vitae tempus quam pellentesque nec.\n\nEt leo duis ut diam quam nulla porttitor porttitor lacus luctus accumsan tortor, lorem dolor sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam.\n\n<Banner>\n[Simple](#0) is a sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam. Learn more [here](#0).\n</Banner>\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n**Mi in nulla posuere sollicitudin:**\n\n*   [E-commerce for etter lorem ipsum generator](#0)\n*   [Booking for lorem ipsum post generator](#0)\n*   [Retail for generic dummy blog post generator](#0)\n*   [On-demand services: Lorem ipsum generator shortcode](#0)\n\n## Conclusion\n\nSollicitudin ac orci phasellus egestas tellus rutrum telluse nim ut tellus elementum sagittis vitae et leo duis egestas purus viverra accumsan in nisl nisi scelerisquep ellentesque habitant morbi tristique, senectus et netus et dolor purus non enim praesent elementum facilisis leol, aoreet suspendisse interdum consectetur libero id faucibus."
  },
  {
    "path": "apps/web/content/getting-started-with-vuejs-and-stripe.mdx",
    "content": "---\ntitle: 'Getting started with Vue.js and Stripe'\npublishedAt: '2020-07-15'\nsummary: 'In this post, you will learn how to deploy a blog using Simple custom asset source plugin that uses the webcam to insert a photo in the image field.'\nauthor: 'Justin Park'\nauthorImg: '/images/news-author-03.jpg'\n---\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis enim lobortis scelerisque fermentum. Neque sodales ut etiam sit amet [how to manage anything](#0) malesuada proin libero nunc consequat interdum varius. Quam pellentesque nec nam aliquam sem **et tortor consequat**. Pellentesque adipiscing commodo elit at imperdiet. Semper auctor neque vitae tempus quam pellentesque nec. Amet dictum sit amet justo donec enim diam. **Varius sit amet mattis vulputate enim** nulla aliquet porttitor. Odio pellentesque diam volutpat commodo sed. Elit sed vulputate mi sit amet mauris commodo quis imperdiet.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n<Image\n  alt=\"Blog single\"\n  src={`/images/news-single.jpg`}\n  width={768}\n  height={432}\n/>\n\n## General content\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet. Morbi tristique senectus et netus et, nibh nisl condimentum id venenatis a condimentum vitae sapien.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n*   **E-commerce**: Better lorem ipsum generator.\n*   **Booking**: Lorem ipsum post generator.\n*   **Retail**: Generic dummy blog post generator.\n*   **On-demand services**: Lorem ipsum generator shortcode.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n[Read Simple on-demand services](#0)\n\n## Additional reading\n\nAenean sed adipiscing _diam donec adipiscing tristique risus nec feugiat_ auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet.\n\n#### Why support for Business is important\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend.\n\n> Mi in nulla posuere sollicitudin. Porttitor eget dolor morbi non arcu risus quis varius quam. Pharetra vel turpis nunc eget lorem dolor sed viverra. Semper auctor neque vitae tempus quam pellentesque nec.\n\nEt leo duis ut diam quam nulla porttitor porttitor lacus luctus accumsan tortor, lorem dolor sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam.\n\n<Banner>\n[Simple](#0) is a sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam. Learn more [here](#0).\n</Banner>\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n**Mi in nulla posuere sollicitudin:**\n\n*   [E-commerce for etter lorem ipsum generator](#0)\n*   [Booking for lorem ipsum post generator](#0)\n*   [Retail for generic dummy blog post generator](#0)\n*   [On-demand services: Lorem ipsum generator shortcode](#0)\n\n## Conclusion\n\nSollicitudin ac orci phasellus egestas tellus rutrum telluse nim ut tellus elementum sagittis vitae et leo duis egestas purus viverra accumsan in nisl nisi scelerisquep ellentesque habitant morbi tristique, senectus et netus et dolor purus non enim praesent elementum facilisis leol, aoreet suspendisse interdum consectetur libero id faucibus."
  },
  {
    "path": "apps/web/content/how-to-identify-high-intent-leads.mdx",
    "content": "---\ntitle: 'How to identify high-intent leads'\npublishedAt: '2020-07-18'\nsummary: 'In this post, you will learn how to deploy a blog using Simple custom asset source plugin that uses the webcam to insert a photo in the image field.'\nauthor: 'Knut Mayer'\nauthorImg: '/images/news-author-02.jpg'\n---\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis enim lobortis scelerisque fermentum. Neque sodales ut etiam sit amet [how to manage anything](#0) malesuada proin libero nunc consequat interdum varius. Quam pellentesque nec nam aliquam sem **et tortor consequat**. Pellentesque adipiscing commodo elit at imperdiet. Semper auctor neque vitae tempus quam pellentesque nec. Amet dictum sit amet justo donec enim diam. **Varius sit amet mattis vulputate enim** nulla aliquet porttitor. Odio pellentesque diam volutpat commodo sed. Elit sed vulputate mi sit amet mauris commodo quis imperdiet.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n<Image\n  alt=\"Blog single\"\n  src={`/images/news-single.jpg`}\n  width={768}\n  height={432}\n/>\n\n## General content\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet. Morbi tristique senectus et netus et, nibh nisl condimentum id venenatis a condimentum vitae sapien.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n*   **E-commerce**: Better lorem ipsum generator.\n*   **Booking**: Lorem ipsum post generator.\n*   **Retail**: Generic dummy blog post generator.\n*   **On-demand services**: Lorem ipsum generator shortcode.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n[Read Simple on-demand services](#0)\n\n## Additional reading\n\nAenean sed adipiscing _diam donec adipiscing tristique risus nec feugiat_ auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet.\n\n#### Why support for Business is important\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend.\n\n> Mi in nulla posuere sollicitudin. Porttitor eget dolor morbi non arcu risus quis varius quam. Pharetra vel turpis nunc eget lorem dolor sed viverra. Semper auctor neque vitae tempus quam pellentesque nec.\n\nEt leo duis ut diam quam nulla porttitor porttitor lacus luctus accumsan tortor, lorem dolor sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam.\n\n<Banner>\n[Simple](#0) is a sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam. Learn more [here](#0).\n</Banner>\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n**Mi in nulla posuere sollicitudin:**\n\n*   [E-commerce for etter lorem ipsum generator](#0)\n*   [Booking for lorem ipsum post generator](#0)\n*   [Retail for generic dummy blog post generator](#0)\n*   [On-demand services: Lorem ipsum generator shortcode](#0)\n\n## Conclusion\n\nSollicitudin ac orci phasellus egestas tellus rutrum telluse nim ut tellus elementum sagittis vitae et leo duis egestas purus viverra accumsan in nisl nisi scelerisquep ellentesque habitant morbi tristique, senectus et netus et dolor purus non enim praesent elementum facilisis leol, aoreet suspendisse interdum consectetur libero id faucibus."
  },
  {
    "path": "apps/web/content/how-to-work-with-friendly-apis.mdx",
    "content": "---\ntitle: 'How to work with friendly APIs'\npublishedAt: '2020-07-14'\nsummary: 'In this post, you will learn how to deploy a blog using Simple custom asset source plugin that uses the webcam to insert a photo in the image field.'\nauthor: 'Lisa Allison'\nauthorImg: '/images/news-author-01.jpg'\n---\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis enim lobortis scelerisque fermentum. Neque sodales ut etiam sit amet [how to manage anything](#0) malesuada proin libero nunc consequat interdum varius. Quam pellentesque nec nam aliquam sem **et tortor consequat**. Pellentesque adipiscing commodo elit at imperdiet. Semper auctor neque vitae tempus quam pellentesque nec. Amet dictum sit amet justo donec enim diam. **Varius sit amet mattis vulputate enim** nulla aliquet porttitor. Odio pellentesque diam volutpat commodo sed. Elit sed vulputate mi sit amet mauris commodo quis imperdiet.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n<Image\n  alt=\"Blog single\"\n  src={`/images/news-single.jpg`}\n  width={768}\n  height={432}\n/>\n\n## General content\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet. Morbi tristique senectus et netus et, nibh nisl condimentum id venenatis a condimentum vitae sapien.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n*   **E-commerce**: Better lorem ipsum generator.\n*   **Booking**: Lorem ipsum post generator.\n*   **Retail**: Generic dummy blog post generator.\n*   **On-demand services**: Lorem ipsum generator shortcode.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n[Read Simple on-demand services](#0)\n\n## Additional reading\n\nAenean sed adipiscing _diam donec adipiscing tristique risus nec feugiat_ auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet.\n\n#### Why support for Business is important\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend.\n\n> Mi in nulla posuere sollicitudin. Porttitor eget dolor morbi non arcu risus quis varius quam. Pharetra vel turpis nunc eget lorem dolor sed viverra. Semper auctor neque vitae tempus quam pellentesque nec.\n\nEt leo duis ut diam quam nulla porttitor porttitor lacus luctus accumsan tortor, lorem dolor sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam.\n\n<Banner>\n[Simple](#0) is a sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam. Learn more [here](#0).\n</Banner>\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n**Mi in nulla posuere sollicitudin:**\n\n*   [E-commerce for etter lorem ipsum generator](#0)\n*   [Booking for lorem ipsum post generator](#0)\n*   [Retail for generic dummy blog post generator](#0)\n*   [On-demand services: Lorem ipsum generator shortcode](#0)\n\n## Conclusion\n\nSollicitudin ac orci phasellus egestas tellus rutrum telluse nim ut tellus elementum sagittis vitae et leo duis egestas purus viverra accumsan in nisl nisi scelerisquep ellentesque habitant morbi tristique, senectus et netus et dolor purus non enim praesent elementum facilisis leol, aoreet suspendisse interdum consectetur libero id faucibus."
  },
  {
    "path": "apps/web/content/introducing-the-testing-field-guide.mdx",
    "content": "---\ntitle: 'Introducing the Testing Field Guide'\npublishedAt: '2020-07-12'\nsummary: 'In this post, you will learn how to deploy a blog using Simple custom asset source plugin that uses the webcam to insert a photo in the image field.'\nauthor: 'Cory McCall'\nauthorImg: '/images/news-author-06.jpg'\n---\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis enim lobortis scelerisque fermentum. Neque sodales ut etiam sit amet [how to manage anything](#0) malesuada proin libero nunc consequat interdum varius. Quam pellentesque nec nam aliquam sem **et tortor consequat**. Pellentesque adipiscing commodo elit at imperdiet. Semper auctor neque vitae tempus quam pellentesque nec. Amet dictum sit amet justo donec enim diam. **Varius sit amet mattis vulputate enim** nulla aliquet porttitor. Odio pellentesque diam volutpat commodo sed. Elit sed vulputate mi sit amet mauris commodo quis imperdiet.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n<Image\n  alt=\"Blog single\"\n  src={`/images/news-single.jpg`}\n  width={768}\n  height={432}\n/>\n\n## General content\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet. Morbi tristique senectus et netus et, nibh nisl condimentum id venenatis a condimentum vitae sapien.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n*   **E-commerce**: Better lorem ipsum generator.\n*   **Booking**: Lorem ipsum post generator.\n*   **Retail**: Generic dummy blog post generator.\n*   **On-demand services**: Lorem ipsum generator shortcode.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n[Read Simple on-demand services](#0)\n\n## Additional reading\n\nAenean sed adipiscing _diam donec adipiscing tristique risus nec feugiat_ auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet.\n\n#### Why support for Business is important\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend.\n\n> Mi in nulla posuere sollicitudin. Porttitor eget dolor morbi non arcu risus quis varius quam. Pharetra vel turpis nunc eget lorem dolor sed viverra. Semper auctor neque vitae tempus quam pellentesque nec.\n\nEt leo duis ut diam quam nulla porttitor porttitor lacus luctus accumsan tortor, lorem dolor sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam.\n\n<Banner>\n[Simple](#0) is a sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam. Learn more [here](#0).\n</Banner>\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n**Mi in nulla posuere sollicitudin:**\n\n*   [E-commerce for etter lorem ipsum generator](#0)\n*   [Booking for lorem ipsum post generator](#0)\n*   [Retail for generic dummy blog post generator](#0)\n*   [On-demand services: Lorem ipsum generator shortcode](#0)\n\n## Conclusion\n\nSollicitudin ac orci phasellus egestas tellus rutrum telluse nim ut tellus elementum sagittis vitae et leo duis egestas purus viverra accumsan in nisl nisi scelerisquep ellentesque habitant morbi tristique, senectus et netus et dolor purus non enim praesent elementum facilisis leol, aoreet suspendisse interdum consectetur libero id faucibus."
  },
  {
    "path": "apps/web/content/why-we-think-simple-is-good-for-developers.mdx",
    "content": "---\ntitle: 'Why we think Simple is good for developers'\npublishedAt: '2020-07-17'\nsummary: 'In this post, you will learn how to deploy a blog using Simple custom asset source plugin that uses the webcam to insert a photo in the image field.'\nauthor: 'Micheal Osman'\nauthorImg: '/images/news-author-04.jpg'\n---\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Quis enim lobortis scelerisque fermentum. Neque sodales ut etiam sit amet [how to manage anything](#0) malesuada proin libero nunc consequat interdum varius. Quam pellentesque nec nam aliquam sem **et tortor consequat**. Pellentesque adipiscing commodo elit at imperdiet. Semper auctor neque vitae tempus quam pellentesque nec. Amet dictum sit amet justo donec enim diam. **Varius sit amet mattis vulputate enim** nulla aliquet porttitor. Odio pellentesque diam volutpat commodo sed. Elit sed vulputate mi sit amet mauris commodo quis imperdiet.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n<Image\n  alt=\"Blog single\"\n  src={`/images/news-single.jpg`}\n  width={768}\n  height={432}\n/>\n\n## General content\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet. Morbi tristique senectus et netus et, nibh nisl condimentum id venenatis a condimentum vitae sapien.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n*   **E-commerce**: Better lorem ipsum generator.\n*   **Booking**: Lorem ipsum post generator.\n*   **Retail**: Generic dummy blog post generator.\n*   **On-demand services**: Lorem ipsum generator shortcode.\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n[Read Simple on-demand services](#0)\n\n## Additional reading\n\nAenean sed adipiscing _diam donec adipiscing tristique risus nec feugiat_ auctor urna nunc id cursus metus aliquam eleifend, arcu dictum varius duis at consectetur lorem donec massa sapien, sed risus ultricies tristique nulla aliquet.\n\n#### Why support for Business is important\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend.\n\n> Mi in nulla posuere sollicitudin. Porttitor eget dolor morbi non arcu risus quis varius quam. Pharetra vel turpis nunc eget lorem dolor sed viverra. Semper auctor neque vitae tempus quam pellentesque nec.\n\nEt leo duis ut diam quam nulla porttitor porttitor lacus luctus accumsan tortor, lorem dolor sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam.\n\n<Banner>\n[Simple](#0) is a sed viverra ipsum nunc aliquet bibendum enim eu augue ut lectus arcu bibendum at. Non sodales neque sodales ut etiam sit. Venenatis urna cursus eget nunc scelerisque viverra mauris in aliquam. Learn more [here](#0).\n</Banner>\n\nAenean sed adipiscing diam donec adipiscing tristique risus nec feugiat auctor urna nunc id cursus metus aliquam eleifend:\n\n**Mi in nulla posuere sollicitudin:**\n\n*   [E-commerce for etter lorem ipsum generator](#0)\n*   [Booking for lorem ipsum post generator](#0)\n*   [Retail for generic dummy blog post generator](#0)\n*   [On-demand services: Lorem ipsum generator shortcode](#0)\n\n## Conclusion\n\nSollicitudin ac orci phasellus egestas tellus rutrum telluse nim ut tellus elementum sagittis vitae et leo duis egestas purus viverra accumsan in nisl nisi scelerisquep ellentesque habitant morbi tristique, senectus et netus et dolor purus non enim praesent elementum facilisis leol, aoreet suspendisse interdum consectetur libero id faucibus."
  },
  {
    "path": "apps/web/contentlayer.config.js",
    "content": "import { defineDocumentType, makeSource } from \"contentlayer/source-files\";\nimport rehypeSlug from \"rehype-slug\";\n\nconst Post = defineDocumentType(() => ({\n  name: \"Post\",\n  filePathPattern: `**/*.mdx`,\n  contentType: \"mdx\",\n  fields: {\n    title: {\n      type: \"string\",\n      required: true,\n    },\n    publishedAt: {\n      type: \"date\",\n      required: true,\n    },\n    summary: {\n      type: \"string\",\n      required: true,\n    },\n    author: {\n      type: \"string\",\n      required: true,\n    },\n    authorImg: {\n      type: \"string\",\n      required: true,\n    },\n  },\n  computedFields: {\n    slug: {\n      type: \"string\",\n      resolve: doc => doc._raw.flattenedPath,\n    },\n  },\n}));\n\nexport default makeSource({\n  contentDirPath: \"content\",\n  documentTypes: [Post],\n  mdx: {\n    rehypePlugins: [rehypeSlug],\n  },\n});\n"
  },
  {
    "path": "apps/web/core/constants/configs.ts",
    "content": "const isProduction = process.env.NODE_ENV === \"production\";\n\nexport const configuration = {\n  site: {\n    name: \"Captable\",\n    description: \"Open source cap table management software\",\n    image: \"/assets/hero.png\",\n    themeColor: \"#ffffff\",\n    themeColorDark: \"#0a0a0a\",\n    siteUrl: process.env.NEXT_PUBLIC_SITE_URL,\n    siteName: \"Captable\",\n    twitterHandle: \"octolane_app\",\n    githubHandle: \"octolane-org\",\n  },\n  isProduction,\n  environment: process.env.NEXT_PUBLIC_ENVIRONMENT,\n  octolaneAPIKey: process.env.OCTOLANE_API_KEY,\n  sentry: {\n    dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,\n  },\n  posthog: {\n    apiKey: process.env.NEXT_PUBLIC_POSTHOG_API_KEY,\n    apiHost: process.env.NEXT_PUBLIC_POSTHOG_API_HOST,\n  },\n  auth: {\n    secret: process.env.NEXTAUTH_SECRET as string,\n    google: {\n      clientId: process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID as string,\n      clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,\n    },\n  },\n  metaphoreApiKey: process.env.METAPHOR_API_KEY,\n  openaiApiKey: process.env.OPENAI_API_KEY,\n  youApiKey: process.env.YOU_API as string,\n  paths: {\n    dashbord: \"/dashboard\",\n    signin: \"/signin\",\n    signup: \"/signup\",\n    capTables: { all: \"/dashboard/cap-table\", new: \"cap-table/new\" },\n    equityPlans: { all: \"/dashboard/equity-plans\", new: \"equity-plans/new\" },\n    shareClasses: { all: \"/dashboard/share-classes\", new: \"share-classes/new\" },\n    valuation401A: \"/dashboard/401-a\",\n    rule701: \"/dashboard/rule-701\",\n    settings: \"/dashboard/settings\",\n  },\n};\n\nexport const FINGERPRINT_HEADER = \"x-fingerprint\";\nexport const X_CSRF_TOKEN_HEADER = \"X-CSRF-Token\";\n"
  },
  {
    "path": "apps/web/core/prisma.ts",
    "content": "import { PrismaClient } from \"@prisma/client\";\n\nexport const prisma = new PrismaClient();\n"
  },
  {
    "path": "apps/web/core/types/common.type.ts",
    "content": "export type ObjectString = Record<string, string>;\n\nexport type ValueOf<T> = T[keyof T];\n\nexport type ServerPageProps<Params = any, SearchParams = any> = {\n  params: Params;\n  searchParams: SearchParams;\n};\n\nexport type ReactComponentProps<Props = Record<string, unknown>> =\n  React.PropsWithChildren<Props>;\n"
  },
  {
    "path": "apps/web/global.d.ts",
    "content": "declare global {\n  type StringObject = Record<string, string>;\n  type NumberObject = Record<string, number>;\n  type UnknownObject = Record<string, unknown>;\n  type BooleanObject = Record<string, boolean>;\n  type UnixTimestamp = number;\n\n  type WithId<T> = T & {\n    id: number | string;\n  };\n\n  type Truthy<T> = false extends T\n    ? never\n    : 0 extends T\n      ? never\n      : \"\" extends T\n        ? never\n        : null extends T\n          ? never\n          : undefined extends T\n            ? never\n            : T;\n\n  type Falsy = false | 0 | \"\" | null | undefined;\n  type Maybe<T> = T | undefined;\n\n  type EmptyCallback = () => void;\n\n  type HttpMethod = `GET` | `POST` | `PUT` | \"PATCH\" | \"DELETE\" | \"HEAD\";\n}\n\ndeclare module \"react\" {\n  type FCC<Props = Record<string, unknown>> = React.FC<\n    React.PropsWithChildren<Props>\n  >;\n}\n\nexport {};\n"
  },
  {
    "path": "apps/web/lib/server/session.ts",
    "content": "import { nextAuthOptions } from \"@/app/api/auth/[...nextauth]/options\";\nimport { HttpStatusCode } from \"axios\";\nimport { getServerSession } from \"next-auth\";\n\nexport const checkServerSession = async () => {\n  const session = await getServerSession(nextAuthOptions);\n\n  if (!session || !session.user) {\n    return Response.json(\n      { message: \"You are not authenticated\" },\n      { status: HttpStatusCode.Unauthorized },\n    );\n  }\n\n  return session;\n};\n\nexport const getCurrentUser = async () => {\n  const session = await getServerSession(nextAuthOptions);\n\n  if (!session || !session.user) {\n    return null;\n  }\n\n  return session.user;\n};\n"
  },
  {
    "path": "apps/web/lib/utils/common.ts",
    "content": "import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\nexport const formatCurrency = (value: number) => {\n  return new Intl.NumberFormat(\"en-US\", {\n    style: \"currency\",\n    currency: \"USD\",\n  }).format(value);\n};\n"
  },
  {
    "path": "apps/web/next.config.js",
    "content": "const { withContentlayer } = require('next-contentlayer')\n\n/** @type {import('next').NextConfig} */\nconst nextConfig = {}\n\nmodule.exports = withContentlayer(nextConfig)"
  },
  {
    "path": "apps/web/package.json",
    "content": "{\n  \"name\": \"cap.octolane.com\",\n  \"version\": \"0.1.0\",\n  \"private\": true,\n  \"scripts\": {\n    \"dev\": \"concurrently --kill-others \\\"prisma generate && next dev --port 5897\\\" \\\"prisma studio --browser none\\\"\",\n    \"build\": \"prisma generate & next build\",\n    \"format:write\": \"prettier --write \\\"**/*.{css,js,json,jsx,ts,tsx}\\\"\",\n    \"format\": \"prettier \\\"**/*.{css,js,json,jsx,ts,tsx}\\\"\",\n    \"lint\": \"next lint\",\n    \"start\": \"next start\",\n    \"script\": \"tsx ./scripts/run.ts\"\n  },\n  \"overrides\": {\n    \"next-contentlayer\": {\n      \"next\": \"$next\"\n    }\n  },\n  \"dependencies\": {\n    \"@fortawesome/fontawesome-svg-core\": \"6.5.1\",\n    \"@fortawesome/free-brands-svg-icons\": \"6.5.1\",\n    \"@fortawesome/free-solid-svg-icons\": \"6.5.1\",\n    \"@fortawesome/react-fontawesome\": \"0.2.0\",\n    \"@headlessui/react\": \"^1.7.17\",\n    \"@heroicons/react\": \"2.1.1\",\n    \"@hookform/resolvers\": \"3.3.4\",\n    \"@next-auth/prisma-adapter\": \"1.0.7\",\n    \"@prisma/client\": \"5.8.0\",\n    \"@radix-ui/react-icons\": \"1.3.0\",\n    \"@radix-ui/react-label\": \"2.0.2\",\n    \"@radix-ui/react-popover\": \"1.0.7\",\n    \"@radix-ui/react-radio-group\": \"1.1.3\",\n    \"@radix-ui/react-select\": \"2.0.0\",\n    \"@radix-ui/react-slot\": \"1.0.2\",\n    \"@radix-ui/react-switch\": \"1.0.3\",\n    \"@types/node\": \"^20.10.4\",\n    \"@types/react\": \"^18.2.42\",\n    \"@types/react-dom\": \"^18.2.17\",\n    \"@vercel/analytics\": \"1.1.1\",\n    \"aos\": \"^3.0.0-beta.6\",\n    \"axios\": \"1.6.5\",\n    \"class-variance-authority\": \"0.7.0\",\n    \"clsx\": \"2.1.0\",\n    \"concurrently\": \"8.2.2\",\n    \"contentlayer\": \"^0.3.2\",\n    \"date-fns\": \"^2.30.0\",\n    \"next\": \"^14.1.1\",\n    \"next-auth\": \"4.24.5\",\n    \"next-contentlayer\": \"^0.3.4\",\n    \"prisma\": \"5.8.0\",\n    \"react\": \"18.2.0\",\n    \"react-day-picker\": \"8.10.0\",\n    \"react-dom\": \"18.2.0\",\n    \"react-hook-form\": \"7.49.3\",\n    \"rehype-slug\": \"^6.0.0\",\n    \"solid\": \"link:@heroicons/react/20/solid\",\n    \"sonner\": \"1.3.1\",\n    \"tailwind-merge\": \"2.2.0\",\n    \"tailwindcss-animate\": \"1.0.7\",\n    \"typescript\": \"^5.3.3\",\n    \"yup\": \"1.3.3\",\n    \"zod\": \"3.22.4\"\n  },\n  \"devDependencies\": {\n    \"@tailwindcss/forms\": \"^0.5.7\",\n    \"@tailwindcss/typography\": \"^0.5.10\",\n    \"@trivago/prettier-plugin-sort-imports\": \"4.3.0\",\n    \"@types/aos\": \"^3.0.7\",\n    \"autoprefixer\": \"^10.4.16\",\n    \"postcss\": \"^8.4.32\",\n    \"tailwindcss\": \"^3.3.6\"\n  }\n}"
  },
  {
    "path": "apps/web/postcss.config.js",
    "content": "module.exports = {\n  plugins: {\n    \"postcss-import\": {},\n    \"tailwindcss/nesting\": {},\n    tailwindcss: {},\n    autoprefixer: {},\n  },\n};\n"
  },
  {
    "path": "apps/web/prisma/migrations/20240110170446_nextauth_schema/migration.sql",
    "content": "-- CreateTable\nCREATE TABLE \"User\" (\n    \"id\" TEXT NOT NULL,\n    \"name\" TEXT,\n    \"email\" TEXT,\n    \"emailVerified\" TIMESTAMP(3),\n    \"image\" TEXT,\n    \"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\n\n    CONSTRAINT \"User_pkey\" PRIMARY KEY (\"id\")\n);\n\n-- CreateTable\nCREATE TABLE \"Account\" (\n    \"id\" TEXT NOT NULL,\n    \"userId\" TEXT NOT NULL,\n    \"type\" TEXT NOT NULL,\n    \"provider\" TEXT NOT NULL,\n    \"providerAccountId\" TEXT NOT NULL,\n    \"refresh_token\" TEXT,\n    \"access_token\" TEXT,\n    \"expires_at\" INTEGER,\n    \"token_type\" TEXT,\n    \"scope\" TEXT,\n    \"id_token\" TEXT,\n    \"session_state\" TEXT,\n\n    CONSTRAINT \"Account_pkey\" PRIMARY KEY (\"id\")\n);\n\n-- CreateTable\nCREATE TABLE \"Session\" (\n    \"id\" TEXT NOT NULL,\n    \"sessionToken\" TEXT NOT NULL,\n    \"userId\" TEXT NOT NULL,\n    \"expires\" TIMESTAMP(3) NOT NULL,\n\n    CONSTRAINT \"Session_pkey\" PRIMARY KEY (\"id\")\n);\n\n-- CreateTable\nCREATE TABLE \"VerificationToken\" (\n    \"identifier\" TEXT NOT NULL,\n    \"token\" TEXT NOT NULL,\n    \"expires\" TIMESTAMP(3) NOT NULL\n);\n\n-- CreateTable\nCREATE TABLE \"Token\" (\n    \"id\" TEXT NOT NULL,\n    \"name\" TEXT NOT NULL,\n    \"hashedKey\" TEXT NOT NULL,\n    \"partialKey\" TEXT NOT NULL,\n    \"expires\" TIMESTAMP(3),\n    \"lastUsed\" TIMESTAMP(3),\n    \"createdAt\" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,\n    \"updatedAt\" TIMESTAMP(3) NOT NULL,\n    \"userId\" TEXT NOT NULL,\n\n    CONSTRAINT \"Token_pkey\" PRIMARY KEY (\"id\")\n);\n\n-- CreateIndex\nCREATE UNIQUE INDEX \"User_email_key\" ON \"User\"(\"email\");\n\n-- CreateIndex\nCREATE INDEX \"Account_userId_idx\" ON \"Account\"(\"userId\");\n\n-- CreateIndex\nCREATE UNIQUE INDEX \"Account_provider_providerAccountId_key\" ON \"Account\"(\"provider\", \"providerAccountId\");\n\n-- CreateIndex\nCREATE UNIQUE INDEX \"Session_sessionToken_key\" ON \"Session\"(\"sessionToken\");\n\n-- CreateIndex\nCREATE INDEX \"Session_userId_idx\" ON \"Session\"(\"userId\");\n\n-- CreateIndex\nCREATE UNIQUE INDEX \"VerificationToken_token_key\" ON \"VerificationToken\"(\"token\");\n\n-- CreateIndex\nCREATE UNIQUE INDEX \"VerificationToken_identifier_token_key\" ON \"VerificationToken\"(\"identifier\", \"token\");\n\n-- CreateIndex\nCREATE UNIQUE INDEX \"Token_hashedKey_key\" ON \"Token\"(\"hashedKey\");\n\n-- CreateIndex\nCREATE INDEX \"Token_userId_idx\" ON \"Token\"(\"userId\");\n"
  },
  {
    "path": "apps/web/prisma/migrations/20240110175417_basic_captable/migration.sql",
    "content": "/*\n  Warnings:\n\n  - Added the required column `companyId` to the `User` table without a default value. This is not possible if the table is not empty.\n\n*/\n-- AlterTable\nALTER TABLE \"User\" ADD COLUMN     \"companyId\" TEXT NOT NULL,\nADD COLUMN     \"role\" TEXT;\n\n-- CreateTable\nCREATE TABLE \"Company\" (\n    \"id\" TEXT NOT NULL,\n    \"name\" TEXT NOT NULL,\n    \"industry\" TEXT,\n    \"incorporationDate\" TIMESTAMP(3),\n\n    CONSTRAINT \"Company_pkey\" PRIMARY KEY (\"id\")\n);\n\n-- CreateTable\nCREATE TABLE \"EquityInstrument\" (\n    \"id\" SERIAL NOT NULL,\n    \"type\" TEXT NOT NULL,\n    \"totalIssued\" INTEGER NOT NULL,\n    \"companyId\" TEXT NOT NULL,\n\n    CONSTRAINT \"EquityInstrument_pkey\" PRIMARY KEY (\"id\")\n);\n\n-- CreateTable\nCREATE TABLE \"Shareholder\" (\n    \"id\" SERIAL NOT NULL,\n    \"userId\" TEXT NOT NULL,\n    \"shareholderType\" TEXT NOT NULL,\n\n    CONSTRAINT \"Shareholder_pkey\" PRIMARY KEY (\"id\")\n);\n\n-- CreateTable\nCREATE TABLE \"Shareholding\" (\n    \"id\" SERIAL NOT NULL,\n    \"shareholderId\" INTEGER NOT NULL,\n    \"instrumentId\" INTEGER NOT NULL,\n    \"sharesOwned\" INTEGER NOT NULL,\n    \"acquisitionDate\" TIMESTAMP(3) NOT NULL,\n\n    CONSTRAINT \"Shareholding_pkey\" PRIMARY KEY (\"id\")\n);\n\n-- CreateTable\nCREATE TABLE \"Transaction\" (\n    \"id\" SERIAL NOT NULL,\n    \"shareholdingId\" INTEGER NOT NULL,\n    \"transactionDate\" TIMESTAMP(3) NOT NULL,\n    \"sharesTransferred\" INTEGER NOT NULL,\n    \"transactionType\" TEXT NOT NULL,\n\n    CONSTRAINT \"Transaction_pkey\" PRIMARY KEY (\"id\")\n);\n\n-- CreateTable\nCREATE TABLE \"CapTable\" (\n    \"id\" SERIAL NOT NULL,\n    \"companyId\" TEXT NOT NULL,\n    \"snapshotDate\" TIMESTAMP(3) NOT NULL,\n\n    CONSTRAINT \"CapTable_pkey\" PRIMARY KEY (\"id\")\n);\n\n-- CreateIndex\nCREATE INDEX \"EquityInstrument_companyId_idx\" ON \"EquityInstrument\"(\"companyId\");\n\n-- CreateIndex\nCREATE INDEX \"Shareholder_userId_idx\" ON \"Shareholder\"(\"userId\");\n\n-- CreateIndex\nCREATE INDEX \"Shareholding_shareholderId_idx\" ON \"Shareholding\"(\"shareholderId\");\n\n-- CreateIndex\nCREATE INDEX \"Shareholding_instrumentId_idx\" ON \"Shareholding\"(\"instrumentId\");\n\n-- CreateIndex\nCREATE INDEX \"Transaction_shareholdingId_idx\" ON \"Transaction\"(\"shareholdingId\");\n\n-- CreateIndex\nCREATE INDEX \"CapTable_companyId_idx\" ON \"CapTable\"(\"companyId\");\n\n-- CreateIndex\nCREATE INDEX \"User_companyId_idx\" ON \"User\"(\"companyId\");\n"
  },
  {
    "path": "apps/web/prisma/migrations/20240111041700_remove_relation_mode/migration.sql",
    "content": "-- AddForeignKey\nALTER TABLE \"User\" ADD CONSTRAINT \"User_companyId_fkey\" FOREIGN KEY (\"companyId\") REFERENCES \"Company\"(\"id\") ON DELETE RESTRICT ON UPDATE CASCADE;\n\n-- AddForeignKey\nALTER TABLE \"Account\" ADD CONSTRAINT \"Account_userId_fkey\" FOREIGN KEY (\"userId\") REFERENCES \"User\"(\"id\") ON DELETE CASCADE ON UPDATE CASCADE;\n\n-- AddForeignKey\nALTER TABLE \"Session\" ADD CONSTRAINT \"Session_userId_fkey\" FOREIGN KEY (\"userId\") REFERENCES \"User\"(\"id\") ON DELETE CASCADE ON UPDATE CASCADE;\n\n-- AddForeignKey\nALTER TABLE \"Token\" ADD CONSTRAINT \"Token_userId_fkey\" FOREIGN KEY (\"userId\") REFERENCES \"User\"(\"id\") ON DELETE CASCADE ON UPDATE CASCADE;\n\n-- AddForeignKey\nALTER TABLE \"EquityInstrument\" ADD CONSTRAINT \"EquityInstrument_companyId_fkey\" FOREIGN KEY (\"companyId\") REFERENCES \"Company\"(\"id\") ON DELETE RESTRICT ON UPDATE CASCADE;\n\n-- AddForeignKey\nALTER TABLE \"Shareholder\" ADD CONSTRAINT \"Shareholder_userId_fkey\" FOREIGN KEY (\"userId\") REFERENCES \"User\"(\"id\") ON DELETE RESTRICT ON UPDATE CASCADE;\n\n-- AddForeignKey\nALTER TABLE \"Shareholding\" ADD CONSTRAINT \"Shareholding_shareholderId_fkey\" FOREIGN KEY (\"shareholderId\") REFERENCES \"Shareholder\"(\"id\") ON DELETE RESTRICT ON UPDATE CASCADE;\n\n-- AddForeignKey\nALTER TABLE \"Shareholding\" ADD CONSTRAINT \"Shareholding_instrumentId_fkey\" FOREIGN KEY (\"instrumentId\") REFERENCES \"EquityInstrument\"(\"id\") ON DELETE RESTRICT ON UPDATE CASCADE;\n\n-- AddForeignKey\nALTER TABLE \"Transaction\" ADD CONSTRAINT \"Transaction_shareholdingId_fkey\" FOREIGN KEY (\"shareholdingId\") REFERENCES \"Shareholding\"(\"id\") ON DELETE RESTRICT ON UPDATE CASCADE;\n\n-- AddForeignKey\nALTER TABLE \"CapTable\" ADD CONSTRAINT \"CapTable_companyId_fkey\" FOREIGN KEY (\"companyId\") REFERENCES \"Company\"(\"id\") ON DELETE RESTRICT ON UPDATE CASCADE;\n"
  },
  {
    "path": "apps/web/prisma/migrations/20240111055724_remove_company_as_notnullable_from_user_table/migration.sql",
    "content": "-- DropForeignKey\nALTER TABLE \"User\" DROP CONSTRAINT \"User_companyId_fkey\";\n\n-- AlterTable\nALTER TABLE \"User\" ALTER COLUMN \"companyId\" DROP NOT NULL;\n\n-- AddForeignKey\nALTER TABLE \"User\" ADD CONSTRAINT \"User_companyId_fkey\" FOREIGN KEY (\"companyId\") REFERENCES \"Company\"(\"id\") ON DELETE SET NULL ON UPDATE CASCADE;\n"
  },
  {
    "path": "apps/web/prisma/migrations/migration_lock.toml",
    "content": "# Please do not edit this file manually\n# It should be added in your version-control system (i.e. Git)\nprovider = \"postgresql\""
  },
  {
    "path": "apps/web/prisma/schema.prisma",
    "content": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n  provider        = \"prisma-client-js\"\n  previewFeatures = [\"fullTextSearch\", \"fullTextIndex\"]\n}\n\ndatasource db {\n  provider = \"postgresql\"\n  url      = env(\"DATABASE_URL\")\n  // relationMode = \"prisma\"\n}\n\nmodel User {\n  id            String    @id @default(cuid())\n  name          String?\n  email         String?   @unique\n  emailVerified DateTime?\n  image         String?\n  role          String?\n\n  company     Company?      @relation(fields: [companyId], references: [id])\n  companyId   String?\n  accounts    Account[]\n  sessions    Session[]\n  tokens      Token[]\n  createdAt   DateTime      @default(now())\n  Shareholder Shareholder[]\n\n  @@index([companyId])\n}\n\nmodel Account {\n  id                String  @id @default(cuid())\n  userId            String\n  type              String\n  provider          String\n  providerAccountId String\n  refresh_token     String? @db.Text\n  access_token      String? @db.Text\n  expires_at        Int?\n  token_type        String?\n  scope             String?\n  id_token          String? @db.Text\n  session_state     String?\n\n  user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n  @@unique([provider, providerAccountId])\n  @@index([userId])\n}\n\nmodel Session {\n  id           String   @id @default(cuid())\n  sessionToken String   @unique\n  userId       String\n  expires      DateTime\n  user         User     @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n  @@index([userId])\n}\n\nmodel VerificationToken {\n  identifier String\n  token      String   @unique\n  expires    DateTime\n\n  @@unique([identifier, token])\n}\n\nmodel Token {\n  id         String    @id @default(cuid())\n  name       String\n  hashedKey  String    @unique\n  partialKey String\n  expires    DateTime?\n  lastUsed   DateTime?\n  createdAt  DateTime  @default(now())\n  updatedAt  DateTime  @updatedAt\n  user       User      @relation(fields: [userId], references: [id], onDelete: Cascade)\n  userId     String\n\n  @@index([userId])\n}\n\nmodel Company {\n  id                String             @id @default(cuid())\n  name              String\n  industry          String?\n  incorporationDate DateTime?\n  users             User[]\n  equityInstruments EquityInstrument[]\n  capTables         CapTable[]\n}\n\nmodel EquityInstrument {\n  id            Int            @id @default(autoincrement())\n  type          String\n  totalIssued   Int\n  company       Company        @relation(fields: [companyId], references: [id])\n  companyId     String\n  shareholdings Shareholding[]\n\n  @@index([companyId])\n}\n\nmodel Shareholder {\n  id              Int            @id @default(autoincrement())\n  user            User           @relation(fields: [userId], references: [id])\n  userId          String\n  shareholderType String\n  shareholdings   Shareholding[]\n\n  @@index([userId])\n}\n\nmodel Shareholding {\n  id              Int              @id @default(autoincrement())\n  shareholder     Shareholder      @relation(fields: [shareholderId], references: [id])\n  shareholderId   Int\n  instrument      EquityInstrument @relation(fields: [instrumentId], references: [id])\n  instrumentId    Int\n  sharesOwned     Int\n  acquisitionDate DateTime\n  transactions    Transaction[]\n\n  @@index([shareholderId])\n  @@index([instrumentId])\n}\n\nmodel Transaction {\n  id                Int          @id @default(autoincrement())\n  shareholding      Shareholding @relation(fields: [shareholdingId], references: [id])\n  shareholdingId    Int\n  transactionDate   DateTime\n  sharesTransferred Int\n  transactionType   String\n\n  @@index([shareholdingId])\n}\n\nmodel CapTable {\n  id           Int      @id @default(autoincrement())\n  company      Company  @relation(fields: [companyId], references: [id])\n  companyId    String\n  snapshotDate DateTime\n  // Additional fields as needed\n\n  @@index([companyId])\n}\n"
  },
  {
    "path": "apps/web/tailwind.config.js",
    "content": "const { fontFamily } = require(\"tailwindcss/defaultTheme\");\n\n/** @type {import('tailwindcss').Config} */\nmodule.exports = {\n  darkMode: [\"class\"],\n  content: [\n    \"./pages/**/*.{ts,tsx}\",\n    \"./components/**/*.{ts,tsx}\",\n    \"./app/**/*.{ts,tsx}\",\n    \"./src/**/*.{ts,tsx}\",\n  ],\n  prefix: \"\",\n  theme: {\n    container: {\n      center: true,\n      padding: \"2rem\",\n      screens: {\n        \"2xl\": \"1400px\",\n      },\n    },\n    extend: {\n      colors: {\n        border: \"hsl(var(--border))\",\n        input: \"hsl(var(--input))\",\n        ring: \"hsl(var(--ring))\",\n        background: \"hsl(var(--background))\",\n        foreground: \"hsl(var(--foreground))\",\n        primary: {\n          DEFAULT: \"hsl(var(--primary))\",\n          foreground: \"hsl(var(--primary-foreground))\",\n        },\n        secondary: {\n          DEFAULT: \"hsl(var(--secondary))\",\n          foreground: \"hsl(var(--secondary-foreground))\",\n        },\n        destructive: {\n          DEFAULT: \"hsl(var(--destructive))\",\n          foreground: \"hsl(var(--destructive-foreground))\",\n        },\n        muted: {\n          DEFAULT: \"hsl(var(--muted))\",\n          foreground: \"hsl(var(--muted-foreground))\",\n        },\n        accent: {\n          DEFAULT: \"hsl(var(--accent))\",\n          foreground: \"hsl(var(--accent-foreground))\",\n        },\n        popover: {\n          DEFAULT: \"hsl(var(--popover))\",\n          foreground: \"hsl(var(--popover-foreground))\",\n        },\n        card: {\n          DEFAULT: \"hsl(var(--card))\",\n          foreground: \"hsl(var(--card-foreground))\",\n        },\n      },\n      borderRadius: {\n        lg: \"var(--radius)\",\n        md: \"calc(var(--radius) - 2px)\",\n        sm: \"calc(var(--radius) - 4px)\",\n      },\n      keyframes: {\n        \"accordion-down\": {\n          from: { height: \"0\" },\n          to: { height: \"var(--radix-accordion-content-height)\" },\n        },\n        \"accordion-up\": {\n          from: { height: \"var(--radix-accordion-content-height)\" },\n          to: { height: \"0\" },\n        },\n      },\n      animation: {\n        \"accordion-down\": \"accordion-down 0.2s ease-out\",\n        \"accordion-up\": \"accordion-up 0.2s ease-out\",\n      },\n      fontFamily: {\n        sans: [\"var(--font-inter)\", ...fontFamily.sans],\n      },\n    },\n  },\n  plugins: [require(\"tailwindcss-animate\", \"@tailwindcss/forms\")],\n};\n"
  },
  {
    "path": "apps/web/tsconfig.json",
    "content": "{\n  \"compilerOptions\": {\n    \"target\": \"es5\",\n    \"lib\": [\"dom\", \"dom.iterable\", \"esnext\"],\n    \"allowJs\": true,\n    \"skipLibCheck\": true,\n    \"strict\": true,\n    \"forceConsistentCasingInFileNames\": true,\n    \"noEmit\": true,\n    \"esModuleInterop\": true,\n    \"module\": \"esnext\",\n    \"moduleResolution\": \"node\",\n    \"resolveJsonModule\": true,\n    \"isolatedModules\": true,\n    \"jsx\": \"preserve\",\n    \"incremental\": true,\n    \"baseUrl\": \".\",\n    \"plugins\": [\n      {\n        \"name\": \"next\"\n      }\n    ],\n    \"paths\": {\n      \"@/*\": [\"./*\"],\n      \"contentlayer/generated\": [\"./.contentlayer/generated\"]\n    }\n  },\n  \"include\": [\n    \"next-env.d.ts\",\n    \"**/*.ts\",\n    \"**/*.tsx\",\n    \".next/types/**/*.ts\",\n    \".contentlayer/generated\"\n  ],\n  \"exclude\": [\"node_modules\"]\n}"
  },
  {
    "path": "docker-compose.yml",
    "content": "version: \"3.7\"\nname: octolane-cap-table\n\nservices:\n  db:\n    image: postgres:16-alpine\n    container_name: postgres\n    mem_limit: 1g\n    ports:\n      - 5431:5432\n    environment:\n      POSTGRES_PASSWORD: randompassword\n      POSTGRES_DB: captable\n      POSTGRES_USER: username\n    volumes:\n      - /var/lib/postgresql/octolane-cap-table/data:/var/lib/postgresql/data\n"
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"octolane-cap-monorepo\",\n  \"version\": \"1.0.0\",\n  \"scripts\": {\n    \"build\": \"turbo build\",\n    \"dev\": \"turbo dev\",\n    \"lint\": \"turbo lint\",\n    \"clean\": \"turbo clean\",\n    \"format\": \"prettier --write \\\"**/*.{ts,tsx,md}\\\"\",\n    \"script\": \"echo 'Run this script in apps/web'\",\n    \"docker:start\": \"docker-compose up -d\",\n    \"prepare\": \"husky install && chmod +x .husky/pre-push && chmod +x .husky/pre-commit\"\n  },\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"git+https://github.com/octolane-org/cap.octolane.com.git\"\n  },\n  \"keywords\": [\n    \"Captable\"\n  ],\n  \"author\": \"octolane-org\",\n  \"license\": \"AGPL-3.0-or-later\",\n  \"bugs\": {\n    \"url\": \"https://github.com/octolane-org/cap.octolane.com/issues\"\n  },\n  \"homepage\": \"https://github.com/octolane-org/cap.octolane.com#readme\",\n  \"devDependencies\": {\n    \"@types/hast\": \"^3.0.4\",\n    \"eslint\": \"9.8.0\",\n    \"prettier\": \"3.3.3\",\n    \"prettier-plugin-organize-imports\": \"4.0.0\",\n    \"prettier-plugin-tailwindcss\": \"0.6.5\",\n    \"turbo\": \"2.0.9\"\n  },\n  \"packageManager\": \"pnpm@8.6.10\",\n  \"dependencies\": {\n    \"husky\": \"9.1.4\"\n  }\n}"
  },
  {
    "path": "pnpm-workspace.yaml",
    "content": "packages:\n  - \"apps/*\"\n"
  },
  {
    "path": "turbo.json",
    "content": "{\n  \"$schema\": \"https://turbo.build/schema.json\",\n  \"globalDependencies\": [\n    \"**/.env\"\n  ],\n  \"pipeline\": {\n    \"build\": {\n      \"dependsOn\": [\n        \"^build\"\n      ],\n      \"outputs\": [\n        \"!.next/cache/**\",\n        \".next/**\",\n        \"dist/**\"\n      ]\n    },\n    \"dev\": {\n      \"cache\": false,\n      \"persistent\": true\n    },\n    \"clean\": {\n      \"cache\": false\n    }\n  }\n}"
  }
]