PageSourceSearch

https://callkarma.ai/assets/FreeAnalysisPage-CAXYaOPk.js

js callkarma.ai collected 2026-10-05 14:09:37 UTC 25,790 bytes, 15 lines download raw bytes

1import{c as H,r as c,a as p,b as P,j as e,B as $,X as Y,d as Z,e as Q,R as ee,H as se,m as v,I as C,F as ae,v as K}from"./index-BFuMcAQN.js";import{C as te}from"./circle-check-big-j68hr3yf.js";import{C as le}from"./circle-alert-CNcFvu1a.js";import{T as re}from"./textarea-Ca0KHqEP.js";import{S as D,a as V,b as G,c as I,d as h}from"./select-BtEsx6-X.js";import{C as B}from"./checkbox-CVGVh_Vs.js";import{i as ie}from"./types-BN7Y7d_z.js";import{s as ne}from"./siteAnalytics-C2jRSjtQ.js";import{u as oe,M as de}from"./meta-tags-tDqJG-K2.js";import"./index-DaN40KFW.js";import"./check-CeErdwWi.js";/**
2 * @license lucide-react v0.453.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const ce=H("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
7 * @license lucide-react v0.453.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const me=H("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);function ue({onFilesUploaded:T,companyName:t,maxFiles:g=10,maxFileSize:y=50}){const[r,m]=c.useState([]),[_,f]=c.useState(!1),[b,j]=c.useState(!1),q=s=>{const a=["audio/mpeg","audio/mp3","audio/wav","audio/m4a","audio/aac","audio/ogg"],l=[".mp3",".wav",".m4a",".aac",".ogg"],u=s.name.toLowerCase().substring(s.name.lastIndexOf("."));return!a.includes(s.type)&&!l.includes(u)?{valid:!1,error:"Only audio files are supported. Please use: MP3, WAV, M4A, AAC, or OGG files"}:s.size>y*1024*1024?{valid:!1,error:`File size exceeds ${y}MB limit`}:{valid:!0}},i=c.useCallback(s=>{const a=Array.from(s);if(p("file_selection","engagement","free_analysis",a.length),P("files_selected",{file_count:a.length,total_size:a.reduce((o,x)=>o+x.size,0),file_types:a.map(o=>o.type).filter((o,x,F)=>F.indexOf(o)===x),company:t}),r.length+a.length>g){p("file_validation_error","error","max_files_exceeded"),alert(`Maximum ${g} files allowed`);return}const l=[];let u=!1;a.forEach(o=>{const x=q(o);x.valid?l.push({file:o,id:Math.random().toString(36),progress:0,status:"pending"}):(p("file_validation_error","error",x.error),alert(`${o.name}: ${x.error}`),u=!0)}),!u&&l.length>0&&(m(o=>[...o,...l]),p("files_added","engagement","valid_files",l.length))},[r.length,g,y,t]),E=c.useCallback(s=>{s.preventDefault(),f(!1),s.dataTransfer.files&&i(s.dataTransfer.files)},[i]),U=c.useCallback(s=>{s.target.files&&i(s.target.files)},[i]),A=s=>{m(a=>a.filter(l=>l.id!==s))},M=async()=>{if(!(r.length===0||!t)){p("file_upload_start","conversion","free_analysis"),P("upload_initiated",{file_count:r.length,total_size:r.reduce((s,a)=>s+a.file.size,0),company:t}),j(!0);try{const s=r.map(n=>({fileName:n.file.name,fileType:n.file.type,fileSize:n.file.size})),a=await fetch("/api/upload/presigned-urls",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({companyName:t,files:s})});if(!a.ok)throw new Error("Failed to get upload URLs");const{uploadPath:l,presignedUrls:u}=await a.json(),o=r.map(async(n,R)=>{const J=u[R].uploadUrl;try{m(N=>N.map(w=>w.id===n.id?{...w,status:"uploading",progress:0}:w));const d=new XMLHttpRequest;return await new Promise((N,w)=>{d.upload.addEventListener("progress",k=>{if(k.lengthComputable){const S=Math.round(k.loaded/k.total*100);m(X=>X.map(z=>z.id===n.id?{...z,progress:S}:z))}}),d.addEventListener("load",()=>{d.status>=200&&d.status<300?(m(k=>k.map(S=>S.id===n.id?{...S,status:"completed",progress:100}:S)),N()):w(new Error(`Upload failed: ${d.statusText}`))}),d.addEventListener("error",()=>{w(new Error("Upload failed due to network error"))}),d.open("PUT",J),d.setRequestHeader("Content-Type",n.file.type),d.send(n.file)}),{fileName:n.file.name,fileSize:n.file.size,fileType:n.file.type}}catch(d){throw m(W=>W.map(N=>N.id===n.id?{...N,status:"error",error:d instanceof Error?d.message:"Upload failed"}:N)),d}}),x=await Promise.all(o),F=await fetch("/api/upload/process",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({uploadPath:l,uploadedFiles:x})});if(!F.ok)throw new Error("Failed to process uploaded files");const{files:L}=await F.json();p("file_upload_complete","conversion","free_analysis_success"),P("upload_completed",{file_count:L.length,total_size:r.reduce((n,R)=>n+R.file.size,0),company:t,success:!0}),T(L)}catch(s){console.error("Upload error:",s),p("file_upload_error","error","free_analysis_failed"),P("upload_failed",{file_count:r.length,company:t,error:s 
11instanceof Error?s.message:"Unknown error",success:!1}),alert("Upload failed. Please try again.")}finally{j(!1)}}},O=s=>{if(s===0)return"0 Bytes";const a=1024,l=["Bytes","KB","MB","GB"],u=Math.floor(Math.log(s)/Math.log(a));return parseFloat((s/Math.pow(a,u)).toFixed(2))+" "+l[u]};return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:`
12          border-2 border-dashed rounded-lg p-8 text-center transition-colors
13          ${_?"border-blue-500 bg-blue-50":"border-gray-300"}
14          ${b?"pointer-events-none opacity-50":"cursor-pointer hover:border-blue-400"}
15        `,onDrop:E,onDragOver:s=>{s.preventDefault(),f(!0)},onDragLeave:()=>f(!1),onClick:()=>{var s;return(s=document.getElementById("file-input"))==null?void 0:s.click()},role:"button",tabIndex:0,"aria-label":"Click to select call recording files or drag and drop files here",onKeyDown:s=>{var a;(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),(a=document.getElementById("file-input"))==null||a.click())},children:[e.jsx(me,{className:"mx-auto h-12 w-12 text-gray-400 mb-4"}),e.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-2",children:"Upload Call Recordings & Files"}),e.jsx("p",{className:"text-gray-600 mb-4",children:"Drag and drop files here, or click to browse"}),e.jsxs("p",{className:"text-sm text-gray-500",children:["Supports: MP3, WAV, M4A, AAC, OGG audio files • Max ",y,"MB per file • Up to ",g," files"]}),e.jsx("input",{id:"file-input",type:"file",multiple:!0,accept:".mp3,.wav,.m4a,.aac,.ogg,audio/*",onChange:U,className:"hidden","aria-label":"Select call recording files for upload"})]}),r.length>0&&e.jsxs("div",{className:"space-y-2",children:[e.jsxs("h3",{className:"font-medium text-gray-900",children:["Selected Files (",r.length,")"]}),r.map(s=>e.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-50 rounded-lg",children:[e.jsxs("div",{className:"flex items-center space-x-3 flex-1",children:[e.jsx(ce,{className:"h-5 w-5 text-gray-400"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900 truncate",children:s.file.name}),e.jsx("p",{className:"text-xs text-gray-500",children:O(s.file.size)})]}),s.status==="pending"&&e.jsx("span",{className:"text-xs text-gray-500",children:"Ready"}),s.status==="uploading"&&e.jsxs("div",{className:"text-xs text-blue-600 min-w-0",children:[e.jsxs("div",{className:"flex items-center space-x-2 mb-1",children:[e.jsx("div",{className:"animate-spin h-4 w-4 border-2 border-blue-600 border-t-transparent rounded-full"}),e.jsxs("span",{children:["Uploading... ",s.progress,"%"]})]}),e.jsx("div",{className:"w-24 bg-gray-200 rounded-full h-2",children:e.jsx("div",{className:"bg-blue-600 h-2 rounded-full transition-all duration-300",style:{width:`${s.progress}%`}})})]}),s.status==="completed"&&e.jsx(te,{className:"h-5 w-5 text-green-600"}),s.status==="error"&&e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(le,{className:"h-5 w-5 text-red-600"}),e.jsx("span",{className:"text-xs text-red-600",children:s.error})]})]}),s.status!=="uploading"&&e.jsx($,{variant:"ghost",size:"sm",onClick:()=>A(s.id),className:"ml-2","aria-label":`Remove file ${s.file.name}`,children:e.jsx(Y,{className:"h-4 w-4"})})]},s.id)),r.length>0&&r.some(s=>s.status==="pending")&&e.jsx($,{size:"lg",onClick:M,disabled:b||r.length===0,className:"w-full mt-4","aria-label":b?"Uploading files to Call Karma":"Upload selected files to Call Karma for analysis",children:b?"Uploading Files...":"Upload Files"})]})]})}function Ce(){Z();const{toast:T}=Q();ee.useEffect(()=>{oe(de.freeAnalysis)},[]);const[t,g]=c.useState({companyName:"",industry:"",firstName:"",lastName:"",email:"",phone:"",jobTitle:"",phoneSystemProvider:"",currentCallVolume:"",specificConcerns:"",analysisGoals:[],agreeToTerms:!1,requestContact:!0}),[y,r]=c.useState([]),[m,_]=c.useState(!1),[f,b]=c.useState("idle"),[j,q]=c.useState(""),i=(s,a)=>{if(g(l=>({...l,[s]:a})),s==="email"&&typeof a=="string"){const l=K(a);q(l.error||"")}},E=s=>{g(a=>({...a,analysisGoals:a.analysisGoals.includes(s)?a.analysisGoals.filter(l=>l!==s):[...a.analysisGoals,s]}))},U=s=>{r(s)},A=async s=>{if(s.preventDefault(),y.length===0){T({title:"Call Recordings Required",description:"Please upload at least one call recording before submitting the form. Scroll up to the 'Upload Call Recordings' section.",variant:"destructive"});return}const a=K(t.email);
15if(!a.valid){q(a.error||""),T({title:"Work Email Required",description:"Please use your work email",variant:"destructive"});return}_(!0),b("idle");try{const l={...t,uploadedFiles:y,submissionType:"free-analysis",submissionTimestamp:new Date().toISOString()};if((await fetch("https://hook.us2.make.com/02teznw8xnt3trbvojbsnoknrb3fc4l0",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)})).ok)b("success"),ne.trackConversionIntent("free_analysis_complete","form_submission",t.industry),p("form_submit","conversion","free_analysis_form",1),p("lead_generated","conversion",t.industry,1),g({companyName:"",industry:"",firstName:"",lastName:"",email:"",phone:"",jobTitle:"",phoneSystemProvider:"",currentCallVolume:"",specificConcerns:"",analysisGoals:[],agreeToTerms:!1,requestContact:!0}),r([]);else throw new Error("Submission failed")}catch(l){console.error("Form submission error:",l),b("error")}finally{_(!1)}},M=["RingCentral","8x8","Vonage","Cisco","Microsoft Teams","Zoom Phone","Dialpad","Nextiva","Avaya","Mitel","3CX","FreePBX","Asterisk","Other","Not Sure"],O=["Improve sales conversion rates","Enhance customer service quality","Reduce response times","Identify training opportunities","Monitor compliance and quality","Analyze customer satisfaction","Track competitive insights","Optimize call handling processes"];return e.jsxs("div",{className:"min-h-screen bg-white",children:[e.jsx(se,{}),e.jsxs("main",{className:"pt-20",children:[e.jsx("section",{className:"py-16 bg-gradient-to-br from-blue-50 to-indigo-100",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"lg:grid lg:grid-cols-2 lg:gap-12 lg:items-center",children:[e.jsxs(v.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},children:[e.jsxs("h1",{className:"text-4xl lg:text-6xl font-bold text-gray-900 leading-tight",children:["Free Call Analysis"," ",e.jsx("span",{className:"text-primary",children:"Worth $500"})]}),e.jsx("p",{className:"mt-6 text-xl font-medium text-gray-600 leading-relaxed",children:"See exactly what your calls reveal about missed opportunities, customer satisfaction, and team performance. No commitment required."}),e.jsxs("div",{className:"mt-8 space-y-4",children:[e.jsxs("div",{className:"flex items-start space-x-4",children:[e.jsx("div",{className:"flex-shrink-0 w-8 h-8 bg-primary text-white rounded-full flex items-center justify-center font-bold",children:"1"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900",children:"Upload Your Calls"}),e.jsx("p",{className:"text-gray-600",children:"Share 3-5 recent call recordings (any format)"})]})]}),e.jsxs("div",{className:"flex items-start space-x-4",children:[e.jsx("div",{className:"flex-shrink-0 w-8 h-8 bg-primary text-white rounded-full flex items-center justify-center font-bold",children:"2"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900",children:"We Analyze Everything"}),e.jsx("p",{className:"text-gray-600",children:"AI reviews tone, opportunities, and performance patterns"})]})]}),e.jsxs("div",{className:"flex items-start space-x-4",children:[e.jsx("div",{className:"flex-shrink-0 w-8 h-8 bg-primary text-white rounded-full flex items-center justify-center font-bold",children:"3"}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-semibold text-gray-900",children:"Get Your Report"}),e.jsx("p",{className:"text-gray-600",children:"Sample of daily insights our customers receive for all calls (starting at $149/month)"})]})]})]}),e.jsxs("div",{className:"mt-8 flex flex-wrap gap-6 text-sm text-gray-600",children:[e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("i",{className:"fas fa-check-circle text-green-500"}),e.jsx("span",{children:"100% confidential analysis"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("i",{className:"fas fa-check-circle text-green-500"}),e.jsx("span",{children:"No sales pressure"})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("i",{className:"fas fa-check-circle text-green-500"}),e.jsx("span",{children:"Professional insights guaranteed"})]})]})]}),e.jsx(v.div,{initial:{opacity:0,scale:.8}
15,animate:{opacity:1,scale:1},transition:{duration:.6,delay:.2},className:"mt-12 lg:mt-0",children:e.jsx("div",{className:"relative mx-auto w-96 h-[500px]",children:e.jsxs("div",{className:"w-full h-full bg-white rounded-2xl shadow-2xl border border-gray-200 overflow-hidden",children:[e.jsx("div",{className:"bg-gradient-to-r from-blue-500 to-blue-600 px-6 py-4 text-white",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("i",{className:"fas fa-chart-bar text-lg"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:"Call Analysis Report"}),e.jsx("div",{className:"text-xs text-blue-100",children:"Your Company Name"})]})]}),e.jsx("div",{className:"text-xs text-blue-100",children:"Call Karma"})]})}),e.jsxs("div",{className:"p-6 space-y-6 h-96 overflow-y-auto",children:[e.jsxs("div",{className:"bg-red-50 border-l-4 border-red-400 p-4 rounded",children:[e.jsxs("div",{className:"flex items-center mb-2",children:[e.jsx("i",{className:"fas fa-exclamation-triangle text-red-500 mr-2"}),e.jsx("h3",{className:"font-semibold text-red-800",children:"Missed Opportunity"})]}),e.jsx("p",{className:"text-red-700 text-sm",children:"Customer expressed budget concerns but wasn't offered payment plan options"})]}),e.jsxs("div",{className:"bg-green-50 border-l-4 border-green-400 p-4 rounded",children:[e.jsxs("div",{className:"flex items-center mb-2",children:[e.jsx("i",{className:"fas fa-thumbs-up text-green-500 mr-2"}),e.jsx("h3",{className:"font-semibold text-green-800",children:"Excellent Performance"})]}),e.jsx("p",{className:"text-green-700 text-sm",children:"Agent demonstrated strong product knowledge and built excellent rapport"})]}),e.jsxs("div",{className:"bg-amber-50 border-l-4 border-amber-400 p-4 rounded",children:[e.jsxs("div",{className:"flex items-center mb-2",children:[e.jsx("i",{className:"fas fa-lightbulb text-amber-500 mr-2"}),e.jsx("h3",{className:"font-semibold text-amber-800",children:"Recommendation"})]}),e.jsx("p",{className:"text-amber-700 text-sm",children:"Implement follow-up sequence for price-sensitive prospects"})]}),e.jsxs("div",{className:"text-center pt-4",children:[e.jsx("div",{className:"text-3xl font-bold text-primary",children:"87"}),e.jsx("div",{className:"text-sm text-gray-600",children:"Overall Call Score"})]})]})]})})})]})})}),e.jsx("section",{className:"py-16",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("form",{onSubmit:A,className:"space-y-8",children:[e.jsxs(v.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6},viewport:{once:!0},className:"bg-white p-8 rounded-lg shadow-lg",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Company Information"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Company Name *"}),e.jsx(C,{type:"text",value:t.companyName,onChange:s=>i("companyName",s.target.value),required:!0,placeholder:"Your Company Inc.",className:"w-full","aria-label":"Company name","aria-required":"true"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Industry *"}),e.jsxs(D,{value:t.industry,onValueChange:s=>i("industry",s),children:[e.jsx(V,{"aria-label":"Select your industry","aria-required":"true",children:e.jsx(G,{placeholder:"Select your industry"})}),e.jsxs(I,{children:[ie.map(s=>e.jsx(h,{value:s.id,children:s.name},s.id)),e.jsx(h,{value:"other",children:"Other"})]})]})]})]})]}),e.jsxs(v.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.2},viewport:{once:!0},className:"bg-white p-8 rounded-lg shadow-lg",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Contact Information"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"First Name *"}),e.jsx(C,{type:"text",value:t.firstName,onChange:s=>i("firstName",s.target.value),required:!0,placeholder:"John",className:"w-full","aria-label":"First name","aria-required":"true"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Last Name *"}),e.jsx(C,{type:"text",value:t.lastName,onChange:s=>i("lastName",s.target.value),required:!0,placeholder:"Smith",className:"w-full","aria-label":"Last name","aria-required":"true"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Work Email Address *"}),e.jsx(C,{type:"email",value:t.email,onChange:s=>i("email",s.target.value),required:!0,placeholder:"[email protected]",className:`w-full ${j?"border-red-500":""}`,"aria-label":"Work email address","aria-required":"true","aria-invalid":!!j,"aria-describedby":j?"email-error-free-analysis":void 0}),j&&e.jsx("p",{id:"email-error-free-analysis",className:"text-red-600 text-sm mt-1",role:"alert",children:j})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Phone Number *"}),e.jsx(C,{type:"tel",value:t.phone,onChange:s=>i("phone",s.target.value),required:!0,placeholder:"+1 (555) 123-4567",className:"w-full","aria-label":"Phone number","aria-required":"true"})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Job Title *"}),e.jsx(C,{type:"text",value:t.jobTitle,onChange:s=>i("jobTitle",s.target.value),required:!0,placeholder:"CEO, Sales Manager, Operations Director, etc.",className:"w-full","aria-label":"Job title","aria-required":"true"})]}),e.jsx("div",{className:"flex items-end pb-2",children:e.jsxs("div",{className:"flex items-start space-x-2",children:[e.jsx(B,{id:"requestContact",checked:t.requestContact,onCheckedChange:s=>i("requestContact",s),"aria-label":"Request contact from Call Karma team"}),e.jsx("label",{htmlFor:"requestContact",className:"text-sm text-gray-700",children:"Please connect with me to discu
15ss Call Karma"})]})})]})]}),e.jsxs(v.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.4},viewport:{once:!0},className:"bg-white p-8 rounded-lg shadow-lg",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Upload Call Recordings"}),e.jsxs("p",{className:"text-gray-600 mb-6",children:["Upload sample call recordings for analysis. Our AI will analyze these files to provide personalized insights.",e.jsx("span",{className:"block mt-2 text-sm font-medium text-blue-600",children:"Please upload your files first, then complete the form below."})]}),e.jsx(ue,{onFilesUploaded:U,companyName:t.companyName,maxFiles:10,maxFileSize:50})]}),e.jsxs(v.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.6},viewport:{once:!0},className:"bg-white p-8 rounded-lg shadow-lg",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Phone System Details"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Phone System Provider *"}),e.jsxs(D,{value:t.phoneSystemProvider,onValueChange:s=>i("phoneSystemProvider",s),children:[e.jsx(V,{"aria-label":"Select your phone system provider","aria-required":"true",children:e.jsx(G,{placeholder:"Select your phone system"})}),e.jsx(I,{children:M.map(s=>e.jsx(h,{value:s,children:s},s))})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Daily Call Volume *"}),e.jsxs(D,{value:t.currentCallVolume,onValueChange:s=>i("currentCallVolume",s),children:[e.jsx(V,{"aria-label":"Select your daily call volume","aria-required":"true",children:e.jsx(G,{placeholder:"Select call volume"})}),e.jsxs(I,{children:[e.jsx(h,{value:"1-25",children:"1-25 calls per day"}),e.jsx(h,{value:"26-50",children:"26-50 calls per day"}),e.jsx(h,{value:"51-100",children:"51-100 calls per day"}),e.jsx(h,{value:"101-200",children:"101-200 calls per day"}),e.jsx(h,{value:"201-500",children:"201-500 calls per day"}),e.jsx(h,{value:"500+",children:"500+ calls per day"})]})]})]})]})]}),e.jsxs(v.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:.8},viewport:{once:!0},className:"bg-white p-8 rounded-lg shadow-lg",children:[e.jsx("h2",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Analysis Goals"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"What would you like to achieve? (Select all that apply)"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:O.map(s=>e.jsxs("div",{className:"flex items-start space-x-2",children:[e.jsx(B,{id:s,checked:t.analysisGoals.includes(s),onCheckedChange:()=>E(s)}),e.jsx("label",{htmlFor:s,className:"text-sm text-gray-700",children:s})]},s))})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Specific Concerns or Questions"}),e.jsx(re,{value:t.specificConcerns,onChange:s=>i("specificConcerns",s.target.value),rows:4,placeholder:"Tell us about any specific challenges you're facing with your calls, what you hope to learn from the analysis, or particular areas you'd like us to focus on...",className:"w-full","aria-label":"Specific concerns or focus areas for analysis"})]})]})]}),e.jsx(v.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{duration:.6,delay:1},viewport:{once:!0},className:"bg-white p-8 rounded-lg shadow-lg",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start space-x-2",children:[e.jsx(B,{id:"agreeToTerms",checked:t.agreeToTerms,onCheckedChange:s=>i("agreeToTerms",s),required:!0,"aria-label":"Agree to terms and conditions for call analysis","aria-required":"true"}),e.jsx("label",{htmlFor:"agreeToTerms",className:"text-sm text-gray-700",children:"I agree to the Terms of Service and Privacy Policy, and I confirm that I have authority to submit call recordings for analysis. I understand that Call Karma will not store the recordings after the analysis is complete. *"})]}),y.length===0&&f!=="success"&&e.jsxs("div",{className:"mb-6 p-4 bg-amber-50 border border-amber-200 rounded-lg",children:[e.jsx("p",{className:"text-amber-700 font-medium text-center",children:"⚠️ Remember to upload your call recordings above before submitting!"}),e.jsx("p",{className:"text-amber-600 text-sm text-center mt-1",children:'Scroll up to "Upload Call Recordings" section and click "Upload Files"'})]}),e.jsxs("div",{className:"text-center",children:[e.jsx($,{type:"submit",size:"lg",disabled:!t.agreeToTerms||m,className:"bg-blue-600 hover:bg-blue-700 text-white font-semibold !px-12 py-4 text-lg shadow-lg hover:shadow-xl transition-all transform hover:scale-105 disabled:opacity-50 disabled:cursor-not-allowed","aria-label":m?"Submitting free call analysis request":"Submit request for free call analysis",children:m?"Submitting Analysis Request...":"Request Free Analysis"}),f==="success"&&e.jsxs("div",{className:"mt-6 p-4 bg-green-50 border border-green-200 rounded-lg",children:[e.jsx("p",{className:"text-green-700 font-medium",children:"Analysis request submitted successfully!"}),e.jsx("p",{className:"text-green-600 text-sm",children:"Our team will analyze your files and send you a detailed report within 2-3 business days."})]}),f==="error"&&e.jsxs("div",{className:"mt-6 p-4 bg-red-50 border border-red-200 rounded-lg",children:[e.jsx("p",{className:"text-red-700 font-medium",children:"Failed to submit analysis request"}),e.jsx("p",{className:"text-red-600 text-sm",children:"Please try again or c
15ontact us directly at [email protected]"})]}),f!=="success"&&e.jsx("p",{className:"text-sm text-gray-500 mt-4",children:"Our team will analyze your submissions and send you a detailed report within 2-3 business days"})]})]})})]})})})]}),e.jsx(ae,{})]})}export{Ce 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.