PageSourceSearch

https://drophighlight.com/assets/IntegrationSettings-yvIj_r6N.js

js drophighlight.com collected 2026-09-30 06:37:15 UTC 21,031 bytes, 1 lines download raw bytes

1import{a as Q,r as d,L as me,s as h,J as n,j as e,C as q,l as U,R as f,h as ce,i as xe,M as he,k as fe,o as x,B as l,aa as b,Q as ue,U as pe,V as ge,W as je,Y as Ne,Z as be,_ as ve,$ as ye,t as we}from"./index-P0N1Je5T.js";import{u as De,H as ke}from"./hiddenSettings-kUQZxvLp.js";import{I as _}from"./input-1tKBwIjz.js";import{L as C}from"./label-CoHN_xq2.js";import{A as S,a as T}from"./alert-BjIlbniu.js";import{C as X}from"./circle-x-C-UIuONs.js";import{I as _e}from"./info-Bc8MGwTj.js";import{T as Ce}from"./trash-2-Dwmr_5Bh.js";import{A as G}from"./activity-Bq-KAipD.js";import{C as Se}from"./circle-alert-CrhXFnHf.js";import{C as W}from"./circle-check-CYFFE5P4.js";import{P as Te}from"./plus-CwcvmBx0.js";import{C as J}from"./clock-CxwmHBif.js";import{P as Ee}from"./PageHeader-zjaF7toz.js";import{P as Ae}from"./plug-BoT8Uhtl.js";import{S as Pe}from"./save-BIgwChhU.js";const O=(s,m)=>{const c=(s||"").toLowerCase().trim(),u=m.toLowerCase();return!c||c==="@"||c===u?{prefix:"@",fqdn:m}:c.endsWith(`.${u}`)?{prefix:s.slice(0,s.length-m.length-1),fqdn:s}:{prefix:s,fqdn:`${s}.${m}`}},Ie=()=>{const{t:s}=Q(),[m,c]=d.useState(""),[u,g]=d.useState("highlights"),[E,A]=d.useState(!1),[j,P]=d.useState(!1),[Y,I]=d.useState(!1),[i,v]=d.useState(null),[Z,K]=d.useState(!0);d.useState(!1),d.useState(!1);const[ee,y]=d.useState(!1),[L,z]=d.useState(!1),[F,w]=d.useState(!1),[$,B]=d.useState(""),[D,M]=d.useState(!1),se=/^[a-z0-9][a-z0-9.-]{0,29}$/,ae=async()=>{if(!i)return;const a=$.trim().toLowerCase();if(!se.test(a)){n.error(s("admin.emailDomain.prefixInvalid"));return}M(!0);try{const{error:r}=await h.from("company_email_domains").update({from_email_prefix:a}).eq("id",i.id);if(r)throw r;v({...i,from_email_prefix:a}),w(!1),n.success(s("admin.emailDomain.prefixUpdated"))}catch(r){console.error("Error updating from_email_prefix:",r),n.error(s("admin.emailDomain.prefixUpdateError"))}finally{M(!1)}},p=async()=>{try{const{data:{session:a}}=await h.auth.getSession();if(!a)return;const t=await fetch("https://atnuwxpdfodxpvhxgayj.supabase.co/functions/v1/manage-company-domain",{method:"GET",headers:{Authorization:`Bearer ${a.access_token}`,"Content-Type":"application/json"}});if(t.ok){const o=await t.json();v(o.domain||null)}}catch(a){console.error("Error fetching domain:",a)}finally{K(!1)}};d.useEffect(()=>{p()},[]),d.useEffect(()=>{const a=me(h.channel("domain-status-realtime").on("postgres_changes",{event:"UPDATE",schema:"public",table:"company_email_domains"},r=>{const t=r.new;r.old.status!==t.status&&(t.status==="verified"?n.success(s("admin.emailDomain.verified"),{description:s("admin.emailDomain.domainVerifiedToast")}):t.status==="failed"&&n.error(s("admin.emailDomain.failed"),{description:s("admin.emailDomain.domainFailedToast")}),p())}));return()=>{a&&h.removeChannel(a)}},[]);const ie=async()=>{if(!m.trim()){n.error("Please enter a domain");return}A(!0);try{const{data:{session:a}}=await h.auth.getSession();if(!a)throw new Error("Not authenticated");const t=await fetch("https://atnuwxpdfodxpvhxgayj.supabase.co/functions/v1/manage-company-domain",{method:"POST",headers:{Authorization:`Bearer ${a.access_token}`,"Content-Type":"application/json"},body:JSON.stringify({domain:m.trim(),from_email_prefix:u})}),o=await t.json();if(!t.ok){n.error(o.error||"Failed to add domain");return}n.success("Domain registered! Configure the DNS records below."),c(""),await p()}catch(a){n.error(a.message||"Error adding domain")}finally{A(!1)}},R=async()=>{P(!0);try{const{data:{session:a}}=await h.auth.getSession();if(!a)throw new Error("Not authenticated");const o=await(await fetch("https://atnuwxpdfodxpvhxgayj.supabase.co/functions/v1/manage-company-domain?action=verify",{method:"GET",headers:{Authorization:`Bearer ${a.access_token}`,"Content-Type":"application/json"}})).json();o.status==="verified"?n.success(s("admin.emailDomain.verifySuccess")):o.status==="failed"?n.error(s("admin.emailDomain.verifyFailed")):n.info(s("admin.emailDomain.verifyStillPending"),{description:s("admin.emailDomain.verifyStillPendingDesc"),duration:8e3}),await p()}catch(a){n.error(a.message||"Error verifying domain")}finally{P(!1)}},te=async()=>{y(!1),I(!0);try{const{data:{session:a}}=await h.auth.getSession();if(!a)throw new Error("Not authenticated");(await fetch("https://atnuwxpdfodxpvhxgayj.supabase.co/functions/v1/manage-company-domain",{method:"DELETE",headers:{Authorization:`Bearer ${a.access_token}`,"Content-Type":"application/json"}})).ok&&(n.success("Domain removed."),v(null))}catch(a){n.error(a.message||"Error removing domain")}finally{I(!1)}},ne=async()=>{z(!0);try{const{data:{session:a}}=await h.auth.getSession();if(!a)throw new Error("Not authenticated");const t=await fetch("https://atnuwxpdfodxpvhxgayj.supabase.co/functions/v1/manage-company-domain?action=setup_tracking_subdomain",{method:"GET",headers:{Authorization:`Bearer ${a.access_token}`,"Content-Type":"application/json"}}),o=await t.json();if(!t.ok){n.error(o.error||"Failed to configure branded tracking");return}o.configured?n.success("Branded tracking configured",{description:`Add the new CNAME (${o.cname_host}) at your DNS provider, then click Verify DNS to activate.`,duration:12e3}):n.warning("Tracking subdomain set, but Resend did not return a CNAME record yet. Try Verify DNS in a minute."),await p()}
1catch(a){n.error(a.message||"Error configuring branded tracking")}finally{z(!1)}},N=a=>{navigator.clipboard.writeText(a),n.success(s("admin.emailDomain.copied"))},re=a=>{switch(a){case"verified":return e.jsxs(x,{variant:"secondary",className:"bg-green-50 text-green-700 border border-green-200",children:[e.jsx(W,{className:"h-3 w-3 mr-1"}),s("admin.emailDomain.verified")]});case"dns_pending":return e.jsxs(x,{variant:"secondary",className:"bg-orange-50 text-orange-700 border border-orange-200",children:[e.jsx(J,{className:"h-3 w-3 mr-1"}),s("admin.emailDomain.dnsPending")]});case"failed":return e.jsxs(x,{variant:"secondary",className:"bg-red-50 text-red-700 border border-red-200",children:[e.jsx(X,{className:"h-3 w-3 mr-1"}),s("admin.emailDomain.failed")]});default:return e.jsxs(x,{variant:"secondary",className:"bg-muted text-muted-foreground",children:[e.jsx(J,{className:"h-3 w-3 mr-1"}),s("admin.emailDomain.pending")]})}};if(Z)return e.jsx(q,{children:e.jsx(U,{className:"py-8",children:e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(f,{className:"h-5 w-5 animate-spin text-muted-foreground"})})})});const V=i!=null&&i.dns_records?[...i.dns_records].sort((a,r)=>{const t={TXT:0,CNAME:1,MX:2};return(t[a.type]??1)-(t[r.type]??1)}):[];return e.jsxs(e.Fragment,{children:[e.jsxs(q,{children:[e.jsxs(ce,{children:[e.jsxs(xe,{className:"flex items-center gap-2",children:[e.jsx(he,{className:"h-5 w-5"}),s("admin.emailDomain.title")]}),e.jsx(fe,{children:s("admin.emailDomain.description")})]}),e.jsx(U,{className:"space-y-6",children:i?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center justify-between p-4 border rounded-lg bg-muted/20 gap-4",children:[e.jsxs("div",{className:"flex items-center gap-3 flex-wrap min-w-0",children:[e.jsx("span",{className:"font-mono text-sm font-semibold truncate",title:i.domain,children:i.domain}),e.jsx("span",{className:"shrink-0",children:re(i.status)}),i.status==="verified"&&(i.tracking_status==="failed"||!!i.tracking_subdomain&&i.tracking_subdomain_status!=="verified")&&e.jsxs(x,{variant:"outline",className:"border-destructive/30 text-destructive bg-destructive/5",children:[e.jsx(X,{className:"h-3 w-3 mr-1"}),"Tracking inactive"]}),i.status==="dns_pending"&&e.jsxs("p",{className:"text-xs text-muted-foreground flex items-center gap-1",children:[e.jsx(_e,{className:"h-3.5 w-3.5 shrink-0"}),s("admin.emailDomain.dnsPropagationNote")]})]}),e.jsxs("div",{className:"flex gap-2",children:[(i.status!=="verified"||i.tracking_status==="failed"||!!i.tracking_subdomain&&i.tracking_subdomain_status!=="verified")&&e.jsxs(l,{variant:"outline",size:"sm",onClick:R,disabled:j,children:[j?e.jsx(f,{className:"h-4 w-4 animate-spin"}):e.jsx(f,{className:"h-4 w-4"}),e.jsx("span",{className:"ml-1",children:i.status==="verified"?"Re-check tracking":s("admin.emailDomain.verifyDns")})]}),e.jsx(l,{variant:"outline",size:"sm",onClick:()=>y(!0),disabled:Y,className:"text-destructive hover:text-destructive",children:e.jsx(Ce,{className:"h-4 w-4"})})]})]}),i.status==="verified"&&!i.tracking_subdomain&&e.jsxs(S,{children:[e.jsx(G,{className:"h-4 w-4"}),e.jsxs(T,{className:"text-xs space-y-2",children:[e.jsxs("div",{children:[e.jsx("strong",{children:"Ative o tracking com sua marca."})," Hoje os links dos seus emails são reescritos como"," ",e.jsx("span",{className:"font-mono",children:"click.resend.com/…"}),". Configure um subdomínio próprio (",e.jsxs("span",{className:"font-mono",children:["links.",i.domain]}),") para melhorar deliverability e remover a menção à Resend nos previews."]}),e.jsxs(l,{size:"sm",variant:"outline",onClick:ne,disabled:L,children:[L?e.jsx(f,{className:"h-4 w-4 mr-2 animate-spin"}):e.jsx(G,{className:"h-4 w-4 mr-2"}),"Configurar agora"]})]})]}),V.length>0&&i.status!=="verified"&&e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm border rounded-lg overflow-hidden",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-muted/50",children:[e.jsx("th",{className:"text-left px-3 py-2 font-medium",children:"Type"}),e.jsx("th",{className:"text-left px-3 py-2 font-medium",children:s("admin.emailDomain.hostPrefixLabel")}),e.jsx("th",{className:"text-left px-3 py-2 font-medium",children:"Value"}),e.jsx("th",{className:"px-3 py-2 w-10"})]})}),e.jsx("tbody",{children:V.map((a,r)=>
1{const t=a.type==="MX",o=String(a.name||"").toLowerCase(),oe=String(a.record||"").toLowerCase(),H=a.type==="CNAME"&&!o.includes("_domainkey")&&!o.startsWith("send.")&&(oe==="tracking"||o.startsWith("links.")||o.includes("track")),de=s(t?"admin.emailDomain.locationSendSubdomain":"admin.emailDomain.locationRootDomain"),le=t?"bg-orange-50 text-orange-700 border-orange-200":"bg-blue-50 text-blue-700 border-blue-200";return e.jsx(e.Fragment,{children:e.jsxs("tr",{className:`border-t ${H?"bg-indigo-50/40":""}`,children:[e.jsx("td",{className:"px-3 py-2",children:e.jsx(x,{variant:"outline",className:"font-mono text-xs",children:a.type})}),e.jsx("td",{className:"px-3 py-2 font-mono text-xs max-w-[280px]",children:(()=>{const{prefix:k}=O(a.name,i.domain);return e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"truncate font-semibold",title:k,children:k}),e.jsx(l,{variant:"ghost",size:"sm",onClick:()=>N(k),className:"h-7 w-7 p-0 shrink-0",title:s("admin.emailDomain.hostPrefixHint"),children:e.jsx(b,{className:"h-3 w-3"})})]}),e.jsxs("div",{className:"flex flex-wrap gap-1",children:[e.jsx(x,{variant:"outline",className:`text-[10px] px-1.5 py-0 font-medium border w-fit ${le}`,children:de}),H&&e.jsx(x,{variant:"outline",className:"text-[10px] px-1.5 py-0 font-medium border w-fit bg-indigo-50 text-indigo-700 border-indigo-200",children:"Branded links — required"})]})]})})()}),e.jsx("td",{className:"px-3 py-2 font-mono text-xs max-w-[300px] truncate",title:a.value,children:a.value}),e.jsx("td",{className:"px-3 py-2",children:e.jsx(l,{variant:"ghost",size:"sm",onClick:()=>N(a.value),className:"h-7 w-7 p-0",children:e.jsx(b,{className:"h-3 w-3"})})})]},r)})})})]})}),e.jsx("h3",{className:"text-base font-semibold mt-2",children:"Step-by-step instructions"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-muted/30 border border-border/50",children:[e.jsx("div",{className:"flex items-center justify-center h-6 w-6 rounded-full bg-primary text-primary-foreground text-xs font-bold shrink-0 mt-0.5",children:"1"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:s("admin.emailDomain.step1Title")}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s("admin.emailDomain.step1Desc")})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-muted/30 border border-border/50",children:[e.jsx("div",{className:"flex items-center justify-center h-6 w-6 rounded-full bg-primary text-primary-foreground text-xs font-bold shrink-0 mt-0.5",children:"2"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:s("admin.emailDomain.step2Title")}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s("admin.emailDomain.step2Desc")})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-muted/30 border border-border/50",children:[e.jsx("div",{className:"flex items-center justify-center h-6 w-6 rounded-full bg-primary text-primary-foreground text-xs font-bold shrink-0 mt-0.5",children:"3"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:s("admin.emailDomain.step3Title")}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s("admin.emailDomain.step3Desc")})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-muted/30 border border-border/50",children:[e.jsx("div",{className:"flex items-center justify-center h-6 w-6 rounded-full bg-primary text-primary-foreground text-xs font-bold shrink-0 mt-0.5",children:"4"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:s("admin.emailDomain.step4Title")}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s("admin.emailDomain.step4Desc")})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg bg-muted/30 border border-border/50",children:[e.jsx("div",{className:"flex items-center justify-center h-6 w-6 rounded-full bg-primary text-primary-foreground text-xs font-bold shrink-0 mt-0.5",children:"5"}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium text-sm",children:s("admin.emailDomain.step5Title")}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:s("admin.emailDomain.step5Desc")})]})]})]})]}),i.status==="verified"&&i.tracking_subdomain&&i.tracking_subdomain_status!=="verified"&&i.tracking_cname_host&&e.jsxs("div",{className:"space-y-3",children:[e.jsxs(S,{className:"bg-muted/50 border-border",children:[e.jsx(Se,{className:"h-4 w-4 text-muted-foreground"}),e.jsxs(T,{className:"text-foreground text-xs",children:[e.jsx("strong",{children:"Domain partially verified."})," Add the CNAME"," ",e.jsxs("span",{className:"font-mono",children:[i.tracking_subdomain,".",i.domain]})," ","to your DNS to enable branded link tracking. Without it, email links will continue going through"," ",e.jsx("span",{className:"font-mono",children:"click.resend.com/…"}),". After adding it, click ",e.jsx("strong",{children:"Verify DNS"}),"."]})]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm border rounded-lg overflow-hidden",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-muted/50",children:[e.jsx("th",{className:"text-left px-3 py-2 font-medium",children:"Type"}),e.jsx("th",{className:"text-left px-3 py-2 font-medium",children:s("admin.emailDomain.hostPrefixLabel")}),e.jsx("th",{className:"text-left px-3 py-2 font-medium",children:"Value"}),e.jsx("th",{className:"px-3 py-2 w-10"})]})}),e.jsx("tbody",{children:e.jsxs("tr",{className:"border-t bg-indigo-50/40",children:[e.jsx("td",{className:"px-3 py-2",children:e.jsx(x,{variant:"outline",className:"font-mono text-xs",children:"CNAME"})}),e.jsx("td",{className:"px-3 py-2 font-mono text-xs",children:(()=>{const{prefix:a}=O(i.tracking_cname_host,i.domain);return e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("span",{className:"font-semibold",children:a}),e.jsx(l,{variant:"ghost",size:"sm",onClick:()=>N(a),className:"h-7 w-7 p-0 shrink-0",children:e.jsx(b,{className:"h-3 w-3"})})]}),e.jsx(x,{variant:"outline",className:"text-[10px] px-1.5 py-0 font-medium border w-fit bg-indigo-50 text-indigo-700 border-indigo-200",children:"Branded links — required"})]})})()}),e.jsx("td",{className:"px-3 py-2 font-mono text-xs max-w-[300px] truncate",title:i.tracking_cname_value||"",children:i.tracking_cname_value}),e.jsx("td",{className:"px-3 py-2",children:e.jsx(l,{variant:"ghost",size:"sm",onClick:()=>N(i.tracking_cname_value||""),className:"h-7 w-7 p-0",children:e.jsx(b,{className:"h-3 w-3"})})})]})})]})}),e.jsxs(l,{variant:"outline",size:"sm",onClick:R,disabled:j,children:[j?e.jsx(f,{className:"h-4 w-4 mr-2 animate-spin"}):e.jsx(f,{className:"h-4 w-4 mr-2"}),s("admin.emailDomain.verifyDns")]})]}),i.status==="verified"&&(!i.tracking_subdomain||i.tracking_subdomain_status==="verified")&&e.jsxs(S,{className:"bg-green-50 dark:bg-green-950 border-green-200 dark:border-green-800",children:[e.jsx(W,{className:"h-4 w-4 text-green-600"}),e.jsxs(T,{className:"text-green-800 dark:text-green-200",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs("span",{children:[s("admin.emailDomain.domainVerified")," ",e.jsxs("strong",{children:[i.from_email_prefix,"@",i.domain]}),"."]}),!F&&e.jsx(l,{variant:"link",size:"sm",className:"h-auto p-0 text-green-900 dark:text-green-100 underline",onClick:()=>{B(i.from_email_prefix||""),w(!0)},children:s("admin.emailDomain.editPrefix")})]}),F&&e.jsxs("div",{className:"mt-3 space-y-2",children:[e.jsx(C,{htmlFor:"edit_email_prefix",className:"text-green-900 dark:text-green-100",children:s("admin.emailDomain.fromPrefix")}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx(_,{id:"edit_email_prefix",value:$,onChange:a=>B(a.target.value.toLowerCase()),placeholder:"highlights",className:"max-w-[200px] bg-background"}),e.jsxs("span",{className:"text-sm",children:["@",i.domain]}),e.jsxs(l,{size:"sm",onClick:ae,disabled:D,children:[D&&e.jsx(f,{className:"h-4 w-4 mr-2 animate-spin"}),s("admin.emailDomain.savePrefix")]}),e.jsx(l,{size:"sm",variant:"ghost",onClick:()=>w(!1),disabled:D,children:s("admin.content.form.cancel")})]}),e.jsx("p",{className:"text-xs text-green-800/80 dark:text-green-200/80",children:s("admin.emailDomain.prefixHint")})]})]})]})]}):e.jsx(e.Fragment,{children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(C,{htmlFor:"email_domain",children:s("admin.emailDomain.domain")}),e.jsx(_,{id:"email_domain",value:m,onChange:a=>c(a.target.value),placeholder:s("admin.emailDomain.domainPlaceholder")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(C,{htmlFor:"email_prefix",children:s("admin.emailDomain.fromPrefix")}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(_,{id:"email_prefix",value:u,onChange:a=>g(a.target.value),placeholder:"highlights",className:"max-w-[200px]"}),e.jsxs("span",{className:"text-sm text-muted-foreground",children:["@",m||s("admin.emailDomain.domainExample")]})]})]}),e.jsxs(l,{onClick:ie,disabled:E||!m.trim(),children:[E?e.jsx(f,{className:"h-4 w-4 mr-2 animate-spin"}):e.jsx(Te,{className:"h-4 w-4 mr-2"}),s("admin.emailDomain.addDomain")]})]})})})]}),e.jsx(ue,{open:ee,onOpenChange:y,children:e.jsxs(pe,{children:[e.jsxs(ge,{children:[e.jsx(je,{children:s("admin.emailDomain.removeDomain")}),e.jsxs(Ne,{children:[s("admin.emailDomain.removeDomainConfirm"),i&&e.jsxs(e.Fragment,{children:[e.jsx("br",{}),e.jsx("strong",{children:i.domain})]})]})]}),e.jsxs(be,{children:[e.jsx(ve,{children:s("admin.content.form.cancel")}),e.jsx(ye,{onClick:te,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:s("admin.content.form.confirm")})]})]})})]})},Qe=()=>{const{t:s}=Q(),{formData:m,loading:c,handleInputChange:u,handleSubmit:g}=De();return m?e.jsxs("div",{className:"space-y-6",children:[e.jsx(Ee,{title:s("admin.settings.integrations"),subtitle:s("admin.settings.integrationsDescription")}),e.jsx(Ie,{}),e.jsxs("form",{onSubmit:g,className:"space-y-6",children:[!ke.googleAnalytics,e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[e.jsxs(l,{type:"button",variant:"outline",onClick:()=>
1window.history.back(),disabled:c,className:"w-full",children:[e.jsx(we,{className:"h-4 w-4 mr-2"}),s("admin.settings.cancel")]}),e.jsx(l,{type:"submit",disabled:c,className:"w-full",children:c?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"animate-spin rounded-full h-4 w-4 border-b-2 border-white mr-2"}),s("admin.settings.saving")]}):e.jsxs(e.Fragment,{children:[e.jsx(Pe,{className:"h-4 w-4 mr-2"}),s("admin.settings.save")]})})]})]})]}):e.jsx("div",{className:"flex items-center justify-center py-12",children:e.jsxs("div",{className:"text-center",children:[e.jsx(Ae,{className:"h-16 w-16 mx-auto text-muted-foreground mb-4"}),e.jsx("h2",{className:"text-2xl font-semibold mb-2",children:s("admin.settings.companyNotFound")}),e.jsx("p",{className:"text-muted-foreground",children:s("admin.settings.couldNotLoad")})]})})};export{Qe as IntegrationSettings};

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.