1import{k as e,M as i,U as o,i as m}from"./app-C23pyaid.js";import{D as s}from"./DashboardLayout-C7ZUhX3E.js";import{C as l,c as n,d as p,a as c}from"./card-BRGtWTV3.js";import"./input-4R0coVUt.js";import"./label-DMHYcBFO.js";import"./textarea-HRzz29yX.js";import"./select-D6o2QSeN.js";import"./switch-B4a_P8cM.js";import"./checkbox-DCNHYWu8.js";import{F as d}from"./FormBuilder-DS-MMKAr.js";import"./app-sidebar-IQ8kf7v7.js";import"./button-BJDSJoXt.js";import{A as h}from"./arrow-left-C4b2GcAr.js";/* empty css */import"./createLucideIcon-DtkNhD0y.js";import"./FacebookCookieManager-B-UAeGDV.js";import"./FacebookPixel-BCntTdvu.js";import"./index-FSFl0VXl.js";import"./utils-DvGlLt9s.js";import"./proxy-4aWI02cb.js";import"./x-DpaqY1h0.js";import"./triangle-alert-2vXudR_f.js";import"./info-auHup_nQ.js";import"./circle-alert-C_gfljDL.js";import"./useCompanyNotifications-sZAYcoRP.js";import"./phone-Cx-YTElW.js";import"./GoogleAnalytics-DI5OpeSs.js";import"./index-D5RZUrgt.js";import"./loader-circle-DPj1_t_3.js";import"./user-h93OoGTe.js";import"./webCall-B8ioDy5-.js";import"./index-BqXUTREf.js";import"./index-D8b57Ql5.js";import"./chevron-down-BNwpSXGF.js";import"./check-Bcca0OH5.js";import"./chevron-up-DwQ6dZaz.js";import"./index-yCbMbx6L.js";import"./index-Dh4i1-J3.js";import"./PremiumIndicator-CJKijEH_.js";import"./crown-BzO6vmj8.js";import"./index-BFDhkdEZ.js";import"./intercom-7ryrOXJ7.js";import"./chevron-right-D7qsCfhd.js";import"./Logo--fg2BGnt.js";import"./useAppTheme-DhGyT_BZ.js";import"./hook-Ctp552oP.js";import"./arrow-right-DmEoEHy2.js";import"./mail-CxvMrt8f.js";function le({countries:t,classifications:a}){const r={title:"Company Details",fields:[{name:"company_name",label:"Company Name",type:"text",placeholder:"e.g. Bright Sparks Electrical",required:!0},{name:"user_name",label:"Owner Name",type:"text",placeholder:"e.g. Jane Smith",required:!0},{name:"user_email",label:"Owner Email",type:"email",placeholder:"e.g. [email protected]",required:!0,description:"The welcome email with the generated password is sent to this address."},{name:"country",label:"Country",type:"select",placeholder:"Select country",options:t,required:!0},{name:"website",label:"Website",type:"text",placeholder:"e.g. https://business.com (optional)"},{name:"trial_days",label:"Trial Length (days)",type:"text",placeholder:"Default: 7 days",description:"Optional â 1 to 45 days. Applied a few minutes after creation, once the Paddle trial subscription exists."},{name:"classification",label:"Classification",type:"select",placeholder:"None â regular customer",options:a,description:"Affiliate and influencer accounts are tagged in Intercom, flagged as do-not-contact, and any open Pipedrive deals are marked lost shortly after creation."}],submitLabel:"Create Company",cancelLabel:"Cancel"};return e.jsxs(s,{title:"Create Company",metaDescription:"Create a new company account",children:[e.jsx(i,{title:"Create Company"}),e.jsx("div",{className:"py-8",children:e.jsxs("div",{className:"mx-auto max-w-3xl px-4 sm:px-6 lg:px-8",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(o,{href:"/admin/companies",className:"inline-flex items-center text-sm text-gray-500 hover:text-gray-700",children:[e.jsx(h,{className:"mr-1 h-4 w-4"}),"Back to Companies"]})}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h1",{className:"text-3xl font-bold tracking-tight text-gray-900",children:"Create New Company"}),e.jsx("p",{className:"mt-2 text-gray-500",children:"Creates the company with a trial and an owner user, and emails them their login details â the same flow as a normal sign-up."})]}),e.jsxs(l,{className:"border-0 shadow-lg",children:[e.jsx(n,{className:"border-b bg-gray-50/50",children:e.jsx(p,{children:"Company Details"})}),e.jsx(c,{className:"p-6",children:e.jsx(d,{schema:r,route:"/admin/companies",method:"post",onCancel:()=>m.get("/admin/companies"),hideTitle:!0})})]})]})})]})}export{le as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.