PageSourceSearch

https://admin.cartstack.com/build/assets/Index-8R2CIGVJ.js

js cartstack.com collected 2026-09-24 17:45:40 UTC 20,907 bytes, 7 lines download raw bytes

1import{l as M,y as le,e as c,j as e,c as v,b as ie,u as ce,H as de,q as me,r as xe}from"./app-D5Bf_dbH.js";import{U as pe}from"./UserLayout-C9WnFx_O.js";import{B as h}from"./button-BooRjUAf.js";import{ContactsDataTable as he}from"./ContactsDataTable-JNJFGmXJ.js";import{I as ue}from"./input-DqZbbFgj.js";import{S as fe,a as ge,b as je,c as ve,d as Ne}from"./select-Ckvsxj-Q.js";import{S as be,a as ye,d as we,e as Ce}from"./sheet-lU-qfqG8.js";import{D as Se,b as ke,c as Ee,d as De,e as _e,f as Pe}from"./dialog-BgEHdzUT.js";import{D as Ie,a as Te,b as Fe,c as Le}from"./dropdown-menu-DXUwCH2H.js";import{P as Oe}from"./progress-b5XTvlJL.js";import{l as Ve}from"./lodash-BYZ-ITUH.js";import{S as B}from"./spinner-CoXWKYJB.js";import{B as K}from"./badge-BdtyRZeW.js";import{A as Ae,b as Me}from"./avatar-CQYHhkys.js";import{B as Re,R as $e,X as Ue}from"./generateCategoricalChart-DeWRDsMH.js";import{E as Be}from"./ellipsis-vertical-Drq0s-FO.js";import{M as Ke}from"./map-pin-LIHWBcX9.js";import{S as z}from"./send-CgieuYu3.js";import{F as ze,T as He}from"./twitter-5jNuXz5G.js";import{L as Xe}from"./linkedin-bhpZT18U.js";import{A as qe,a as H}from"./AreaChart-VL4C-Zex.js";import{M as Ge}from"./mail-Bw_TZjX-.js";import{S as X}from"./shopping-cart-BYHhTvfT.js";import{U as We}from"./user-CODNnX9U.js";import{B as Ye}from"./badge-check-O9tpUO82.js";import{C as Je}from"./credit-card-BU_LCcMi.js";import{C as Qe}from"./calendar-mhBlMHhK.js";import{S as Ze}from"./search-F-2nffFh.js";import{F as q}from"./file-output-CI2jkyRx.js";import{X as es}from"./x-JT2YrhZw.js";import"./WistiaDialogContext-DEfy83sd.js";import"./index-eCYNzz1C.js";import"./separator-DsWrB1WR.js";import"./index-D4lci4mZ.js";import"./useGlobalShortcuts-C3mPQ3zf.js";import"./react-BPWwdghM.js";import"./chevron-right-Ba0gC1l7.js";import"./createLucideIcon-CyKN5i_O.js";import"./react-icons.esm-CCm293eC.js";import"./index-Cn72dBP_.js";import"./scroll-area-CnV8vZPq.js";import"./index-D17hSi50.js";import"./rotate-ccw-hNqG30TC.js";import"./eye-jUg7xQoe.js";import"./CSLOGO_lghtbg-12-DL8MB5gQ.js";import"./index-B02_DhYT.js";import"./index-DI8WOxmI.js";import"./index-rimmKLID.js";import"./popover-CBJwT1Kl.js";import"./users-jvAb0Hsa.js";import"./lock-_lQojS3k.js";import"./tooltip-CMiJQMfJ.js";import"./index-D2PwZ_9r.js";import"./settings-x0uW8CTG.js";import"./workflow-nfp-eV15.js";import"./circle-x-DJWwu-M6.js";import"./plus-C4zOu0jA.js";import"./life-buoy-CAWDIjwj.js";import"./log-out-Cqz61TM3.js";import"./bell-B-abMZvc.js";import"./circle-help-vR0qTlf_.js";import"./sonner-CJXwkPTZ.js";import"./alert-CGHGpkpD.js";import"./index-DUmWsBsk.js";import"./table-Dn41ev5Z.js";import"./card-CUwjT2hB.js";import"./loader-circle-CNDCpqRX.js";const ss=async t=>M.post(route("api.contacts.export"),t),ts=async t=>M.get(route("api.contacts.export.progress",{exportId:t})),as=async t=>M.delete(route("api.contacts.export.cancel",{exportId:t})),rs=async t=>{const a=await fetch(route("api.contacts.export.download",{exportId:t}),{method:"GET",headers:le()});if(!a.ok){const o=await a.json();throw new Error(o.message||o.error||"Failed to download export")}const l=await a.blob(),n=window.URL.createObjectURL(l),r=document.createElement("a");r.href=n;const u=a.headers.get("Content-Disposition");let m="contacts_export.csv";if(u){const o=u.match(/filename="([^"]+)"/);o&&(m=o[1])}r.download=m,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)},ns={light:"",dark:".dark"},G=c.createContext(null);function W(){const t=c.useContext(G);if(!t)throw new Error("useChart must be used within a <ChartContainer />");return t}const Y=c.forwardRef(({id:t,className:a,children:l,config:n,...r},u)=>{const m=c.useId(),o=`chart-${t||m.replace(/:/g,"")}`;return e.jsx(G.Provider,{value:{config:n},children:e.jsxs("div",{"data-chart":o,ref:u,className:v("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",a),...r,children:[e.jsx(os,{id:o,config:n}),e.jsx($e,{children:l})]})})});Y.displayName="Chart";const os=({id:t,config:a})=>{const l=Object.entries(a).filter(([n,r])=>r.theme||r.color);return l.length?e.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(ns).map(([n,r])=>`
2${r} [data-chart=${t}] {
3${l.map(([u,m])=>{const o=m.theme?.[n]||m.color;return o?`  --color-${u}: ${o};`:null}).join(`
4`)}
5}
6`).join(`
7`)}}):null},ls=Re,J=c.forwardRef(({active:t,payload:a,className:l,indicator:n="dot",hideLabel:r=!1,hideIndicator:u=!1,label:m,labelFormatter:o,labelClassName:y,formatter:N,color:I,nameKey:T,labelKey:E},F)=>{const{config:x}=W(),D=c.useMemo(()=>
7{if(r||!a?.length)return null;const[d]=a,S=`${E||d.dataKey||d.name||"value"}`,f=A(x,d,S),g=!E&&typeof m=="string"?x[m]?.label||m:f?.label;return o?e.jsx("div",{className:v("font-medium",y),children:o(g,a)}):g?e.jsx("div",{className:v("font-medium",y),children:g}):null},[m,o,a,r,y,x,E]);if(!t||!a?.length)return null;const C=a.length===1&&n!=="dot";return e.jsxs("div",{ref:F,className:v("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",l),children:[C?null:D,e.jsx("div",{className:"grid gap-1.5",children:a.map((d,S)=>{const f=`${T||d.name||d.dataKey||"value"}`,g=A(x,d,f),b=I||d.payload.fill||d.color;return e.jsx("div",{className:v("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",n==="dot"&&"items-center"),children:N&&d?.value!==void 0&&d.name?N(d.value,d.name,d,S,d.payload):e.jsxs(e.Fragment,{children:[g?.icon?e.jsx(g.icon,{}):!u&&e.jsx("div",{className:v("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":n==="dot","w-1":n==="line","w-0 border-[1.5px] border-dashed bg-transparent":n==="dashed","my-0.5":C&&n==="dashed"}),style:{"--color-bg":b,"--color-border":b}}),e.jsxs("div",{className:v("flex flex-1 justify-between leading-none",C?"items-end":"items-center"),children:[e.jsxs("div",{className:"grid gap-1.5",children:[C?D:null,e.jsx("span",{className:"text-muted-foreground",children:g?.label||d.name})]}),d.value&&e.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:d.value.toLocaleString()})]})]})},d.dataKey)})})]})});J.displayName="ChartTooltip";const is=c.forwardRef(({className:t,hideIcon:a=!1,payload:l,verticalAlign:n="bottom",nameKey:r},u)=>{const{config:m}=W();return l?.length?e.jsx("div",{ref:u,className:v("flex items-center justify-center gap-4",n==="top"?"pb-3":"pt-3",t),children:l.map(o=>{const y=`${r||o.dataKey||"value"}`,N=A(m,o,y);return e.jsxs("div",{className:v("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[N?.icon&&!a?e.jsx(N.icon,{}):e.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:o.color}}),N?.label]},o.value)})}):null});is.displayName="ChartLegend";function A(t,a,l){if(typeof a!="object"||a===null)return;const n="payload"in a&&typeof a.payload=="object"&&a.payload!==null?a.payload:void 0;let r=l;return l in a&&typeof a[l]=="string"?r=a[l]:n&&l in n&&typeof n[l]=="string"&&(r=n[l]),r in t?t[r]:t[l]}const cs=[{day:"Mon",value1:30,value2:20},{day:"Tues",value1:40,value2:30},{day:"Wed",value1:45,value2:35},{day:"Thurs",value1:50,value2:40},{day:"Fri",value1:35,value2:25}],ds={value1:{label:"Value 1",color:"#8884d8"},value2:{label:"Value 2",color:"#82ca9d"}},Ct=({data:t})=>{const{props:a}=ie(),l=()=>a.impersonation?.selectedSiteId?a.impersonation.selectedSiteId:a.auth.current_site_id,n=c.useMemo(()=>Ve.debounce(s=>s(),500),[]),{data:r,setData:u}=ce({search:t.filters.searchEmail||"",filter_option:t.filters.filterOption||"all",page:t.pagination.currentPage,per_page:t.pagination.perPage}),[m,o]=c.useState(!1),[y,N]=c.useState(t.filters.searchEmail||""),[I,T]=c.useState(!1),[E,F]=c.useState(null),[x,D]=c.useState(null),[C,d]=c.useState(!1),[S,f]=c.useState(!1),[g,b]=c.useState(0),[p,j]=c.useState("idle"),[_,L]=c.useState(null),[R,w]=c.useState(null),P=c.useCallback(()=>{document.body.style.pointerEvents="",document.body.style.overflow=""},[]);c.useEffect(()=>()=>{P()},[P]);const O=s=>{o(!0),xe.visit(route("auth.contacts.index"),{data:s,preserveState:!0,preserveScroll:!0,onFinish:()=>o(!1)})},Q=s=>{const i={...r,filter_option:s,page:1};u(i),n(()=>O(i))},Z=s=>{N(s.target.value);const i={...r,search:s.target.value,page:1};u(i),n(()=>O(i))},$=s=>{const i={...r,page:s};u(i),O(i)},ee=()=>{j("confirming"),f(!0),b(0),w(null)},U=async()=>{j("processing"),b(0);try{const s=await ss({searchEmail:r.search,filterOption:r.filter_option,siteId:Number(l())});s.success?(L(s.export_id),await se(s.export_id)):(w(s.message||"Failed to start export"),j("error"))}catch(s){w(s instanceof Error?s.message:"Failed to start export"),j("error")}},se=async s=>{const i=async()=>{try{const k=await ts(s);if(k.success){const{progress:oe,status:V}=k.data;
7b(oe),V==="completed"?j("completed"):V==="cancelled"?(j("idle"),f(!1)):V==="processing"&&setTimeout(i,1e3)}}catch{w("Failed to check export progress"),j("error")}};setTimeout(i,500)},te=async()=>{if(_)try{await as(_)}catch(s){console.error("Failed to cancel export:",s)}j("idle"),f(!1),L(null),b(0),w(null)},ae=async()=>{if(_)try{await rs(_),j("idle"),f(!1),L(null),b(0),w(null)}catch(s){w(s instanceof Error?s.message:"Failed to download export"),j("error")}},re=s=>{s||(T(!1),P(),setTimeout(()=>{F(null),D(null),P()},500))},ne=c.useMemo(()=>[{accessorKey:"EmailAddress",header:"Visitor",cell:({row:s})=>{const i=s.getValue("EmailAddress"),k=i&&i.length>0?i[0].toUpperCase():"?";return e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsx("div",{className:"flex-shrink-0 h-9 w-9 rounded-full bg-blue-100 flex items-center justify-center text-blue-600",children:k}),e.jsx("div",{className:"truncate max-w-[120px] sm:max-w-[200px] md:max-w-full",children:e.jsx("p",{className:"truncate text-sm font-medium text-gray-700",children:i})})]})}},{accessorKey:"CreateDate",header:"Created",cell:({row:s})=>{const i=s.getValue("CreateDate");return e.jsx("span",{className:"text-gray-600",children:i||"-"})}},{id:"actions",cell:({row:s})=>e.jsx("div",{className:"flex justify-end",children:e.jsxs(Ie,{children:[e.jsx(Te,{asChild:!0,children:e.jsx(h,{variant:"ghost",className:"h-8 w-8 p-0",children:e.jsx(Be,{className:"h-4 w-4"})})}),e.jsx(Fe,{align:"end",children:e.jsx(Le,{disabled:!0,onSelect:i=>i.preventDefault(),className:"opacity-50 pointer-events-none",children:"View Details (Coming Soon)"})})]})})}],[]);return e.jsxs(pe,{children:[e.jsx(de,{title:"Contacts"}),e.jsx(be,{open:I,onOpenChange:re,children:e.jsxs(ye,{className:"sm:max-w-md md:max-w-2xl overflow-y-auto",side:"right",children:[e.jsx(we,{className:"sr-only",children:"Contact Details"}),e.jsx(Ce,{className:"sr-only",children:"View detailed information about this contact"}),C?e.jsx("div",{className:"flex justify-center items-center h-64",children:e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx(B,{className:"size-8"}),e.jsx("p",{className:"text-gray-500",children:"Loading details..."})]})}):x&&e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start space-x-4 pb-6 border-b pr-8",children:[e.jsx("div",{className:"flex-none",children:e.jsx(Ae,{className:"h-12 w-12 rounded-full bg-blue-100 text-blue-600",children:e.jsx(Me,{className:"text-lg",children:x.contact.emailAddress[0].toUpperCase()})})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center space-x-2 mb-1",children:[e.jsx("span",{className:"font-medium text-sm",children:x.contact.emailAddress}),e.jsx(K,{variant:"outline",className:"bg-green-100 text-green-800 text-xs font-normal",children:"Offer Optin"})]}),e.jsxs("div",{className:"flex items-center text-gray-600 text-sm",children:[e.jsx(Ke,{className:"h-4 w-4 mr-1"}),e.jsx("span",{className:"text-sm",children:"Vancouver, British Columbia, Canada"})]})]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx("a",{href:`mailto:${x.contact.emailAddress}`,children:e.jsxs(h,{variant:"outline",className:"flex items-center bg-white",children:[e.jsx(z,{className:"h-4 w-4 mr-2"}),"Send Email"]})}),x.socialProfiles?.facebook&&e.jsx("a",{href:x.socialProfiles.facebook,target:"_blank",rel:"noopener noreferrer",children:e.jsx(h,{variant:"outline",size:"icon",className:"bg-gray-50",children:e.jsx(ze,{className:"h-4 w-4"})})}),x.socialProfiles?.linkedin&&e.jsx("a",{href:x.socialProfiles.linkedin,target:"_blank",rel:"noopener noreferrer",children:e.jsx(h,{variant:"outline",size:"icon",className:"bg-gray-50",children:e.jsx(Xe,{className:"h-4 w-4"})})}),x.socialProfiles?.twitter&&e.jsx("a",{href:x.socialProfiles.twitter,target:"_blank",rel:"noopener noreferrer",children:e.jsx(h,{variant:"outline",size:"icon",className:"bg-gray-50",children:e.jsx(He,{className:"h-4 w-4"})})})]})]}),e.jsx("div",{className:"bg-gray-50 rounded-lg p-6",children:e.jsxs("div",{className:"flex",children:[e.jsxs("div",{className:"space-y-3 flex-1 max-w-[150px]",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Conversion score"}),e.jsx("p",{className:"text-2xl font-semibold",children:"8.9"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Total Visits"}),e.jsx("p",{className:"text-2xl font-semibold",children:"3"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-gray-600",children:"Revenue"}),e.jsx("p",{className:"text-2xl font-semibold",children:"$123.45"})]})]}),e.jsx("div",{className:"flex-1 py-2",children:e.jsx("div",{className:"h-[180px] w-full",children:e.jsx(Y,{config:ds,children:e.jsxs(qe,{data:cs,margin:{left:20,right:20,bottom:30,top:12}
7,children:[e.jsx(Ue,{dataKey:"day",tickLine:!1,axisLine:!1,tickMargin:8,tick:{fontSize:12,fill:"#6b7280"},interval:0}),e.jsx(ls,{cursor:!1,content:e.jsx(J,{indicator:"dot"})}),e.jsx(H,{type:"monotone",dataKey:"value1",stackId:"1",stroke:"#8884d8",fill:"#8884d8",fillOpacity:.2}),e.jsx(H,{type:"monotone",dataKey:"value2",stackId:"1",stroke:"#82ca9d",fill:"#82ca9d",fillOpacity:.2})]})})})})]})}),e.jsxs("div",{className:"space-y-4 pb-6 border-b",children:[e.jsx("h4",{className:"text-base font-semibold",children:"Recent Activity"}),e.jsx("div",{className:"space-y-4",children:x.activity.map((s,i)=>e.jsxs("div",{className:"flex items-start space-x-4 bg-gray-50 p-4 rounded-lg",children:[e.jsxs("div",{className:"flex-shrink-0",children:[s.type==="email_opened"&&e.jsx(Ge,{className:"h-5 w-5 text-blue-500"}),s.type==="cart_abandoned"&&e.jsx(X,{className:"h-5 w-5 text-orange-500"}),s.type==="email_sent"&&e.jsx(z,{className:"h-5 w-5 text-green-500"})]}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:s.details}),e.jsx("p",{className:"text-sm text-gray-500",children:me(s.date)})]})]},i))})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("h4",{className:"text-base font-semibold",children:"Send Details"}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(X,{className:"h-5 w-5 text-gray-500"}),e.jsx("span",{className:"text-gray-700 text-sm",children:"Cart ID"})]}),e.jsx("span",{className:"font-medium text-sm",children:"295993080"})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(We,{className:"h-5 w-5 text-gray-500"}),e.jsx("span",{className:"text-gray-700 text-sm",children:"Email Address"})]}),e.jsx("span",{className:"font-medium text-sm",children:"[email protected]"})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ye,{className:"h-5 w-5 text-gray-500"}),e.jsx("span",{className:"text-gray-700 text-sm",children:"Validation Score"})]}),e.jsx(K,{variant:"outline",className:"bg-green-50 text-green-700 border-green-200",children:"Good"})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Je,{className:"h-5 w-5 text-gray-500"}),e.jsx("span",{className:"text-gray-700 text-sm",children:"Cart Total"})]}),e.jsx("span",{className:"font-medium text-sm",children:"$606.53"})]}),e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Qe,{className:"h-5 w-5 text-gray-500"}),e.jsx("span",{className:"text-gray-700 text-sm",children:"Send Date"})]}),e.jsx("span",{className:"font-medium text-sm",children:"01/23/25 at 11:43 am"})]})]})]})]})]})}),e.jsxs("div",{className:"container mx-auto py-4",children:[e.jsxs("div",{className:"flex justify-between items-center mb-6",children:[e.jsx("h1",{className:"centra-bold text-page-heading mb-0",children:"Contacts"}),e.jsxs("div",{className:"flex items-center space-x-3",children:[e.jsxs(fe,{onValueChange:Q,defaultValue:r.filter_option,children:[e.jsx(ge,{className:"w-[180px] bg-white",children:e.jsx(je,{placeholder:"All Contacts"})}),e.jsx(ve,{children:e.jsx(Ne,{value:"all",children:"All Contacts"})})]}),e.jsxs("div",{className:"relative",children:[e.jsx(Ze,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-500 h-4 w-4"}),e.jsx(ue,{type:"text",placeholder:"Search contacts...",value:y,onChange:Z,className:"pl-10 w-[250px] bg-white"})]}),e.jsxs(h,{onClick:ee,children:[e.jsx(q,{className:"h-4 w-4 mr-2"}),"Export"]})]})]}),m?e.jsx("div",{className:"flex justify-center items-center h-64",children:e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx(B,{className:"size-8"}),e.jsx("p",{className:"text-gray-500",children:"Loading contacts..."})]})}):e.jsx(he,{columns:ne,data:t.data.data,pagination:e.jsxs("div",{className:"flex items-center justify-between px-2",children:[e.jsxs("span",{className:"text-sm text-gray-600",children:["Page ",t.pagination.currentPage," of ",t.pagination.lastPage]}),e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(h,{variant:"outline",onClick:()=>$(t.pagination.currentPage-1),disabled:t.pagination.currentPage<=1,children:"Previous"}),e.jsx(h,{variant:"outline",onClick:()=>$(t.pagination.currentPage+1),disabled:t.pagination.currentPage>=t.pagination.lastPage,children:"Next"})]})]})})]}),e.jsx(Se,{open:S,onOpenChange:f,children:e.jsxs(ke,{className:"sm:max-w-[425px]",children:[e.jsxs(Ee,{children:[e.jsxs(De,{children:[p==="confirming"&&"Export Contacts",p==="processing"&&"Exporting Contacts",p==="completed"&&"Export Complete",p==="error"&&"Export Failed"]}),e.jsxs(_e,{children:[p==="confirming"&&"This will export all contacts matching your current search and filter criteria to a CSV file.",p==="processing"&&"Please wait while we prepare your contacts export...",p==="completed"&&"Your contacts have been successfully exported. Click download to save the file.",p==="error"&&"There was an error exporting your contacts. Please try again."]})]}),e.jsxs("div",{className:"py-4",children:[p==="processing"&&e.jsxs("div",{className:"space-y-3",children:[e.jsx(Oe,{value:g,className:"w-full"}),e.jsx("p",{className:"text-sm text-gray-600 text-center",children:g<100?`${Math.round(g)}% complete`:"Finalizing..."})]}),p==="error"&&R&&e.jsx("div",{className:"p-3 bg-red-50 border border-red-200 rounded-md",children:e.jsx("p",{className:"text-sm text-red-700",children:R})}),p==="completed"&&e.jsx("div",{className:"p-3 bg-green-50 border border-green-200 rounded-md",children:e.jsx("p",{className:"text-sm text-green-700",children:"Export completed successfully!"})})]}),e.jsxs(Pe,{children:[p==="confirming"&&e.jsxs(e.Fragment,{children:[e.jsx(h,{variant:"outline",onClick:()=>f(!1),children:"Cancel"}),e.jsx(h,{onClick:U,children:"Export CSV"})]}),p==="processing"&&e.jsxs(h,{variant:"outline",onClick:te,children:[e.jsx(es,{className:"h-4 w-4 mr-2"}),"Cancel Export"]}),p==="completed"&&e.jsxs(e.Fragment,{children:[e.jsx(h,{variant:"outline",onClick:()=>f(!1),children:"Close"}),e.jsxs(h,{onClick:ae,children:[e.jsx(q,{className:"h-4 w-4 mr-2"}),"Download CSV"]})]}),p==="error"&&e.jsxs(e.Fragment,{children:[e.jsx(h,{variant:"outline",onClick:()=>f(!1),children:"Close"}),e.jsx(h,{onClick:U,children:"Try Again"})]})]})]})})]})};export{Ct 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.