PageSourceSearch

https://app.campaignhq.co/_next/static/chunks/pages/channels/email/email-services/[id]-5aa92697970d7a5d.js

js campaignhq.co collected 2026-09-24 09:43:15 UTC 57,815 bytes, 25 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1059],{7077:function(e,s,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/channels/email/email-services/[id]",function(){return r(15881)}])},18655:function(e,s){"use strict";s.Z=[{name:"Africa (Cape Town)",value:"af-south-1"},{name:"Asia Pacific (Hong Kong)",value:"ap-east-1"},{name:"Asia Pacific (Hyderabad)",value:"ap-south-2"},{name:"Asia Pacific (Jakarta)",value:"ap-southeast-3"},{name:"Asia Pacific (Malaysia)",value:"ap-southeast-5"},{name:"Asia Pacific (Melbourne)",value:"ap-southeast-4"},{name:"Asia Pacific (Mumbai)",value:"ap-south-1"},{name:"Asia Pacific (Osaka)",value:"ap-northeast-3"},{name:"Asia Pacific (Seoul)",value:"ap-northeast-2"},{name:"Asia Pacific (Singapore)",value:"ap-southeast-1"},{name:"Asia Pacific (Sydney)",value:"ap-southeast-2"},{name:"Asia Pacific (Thailand)",value:"ap-southeast-7"},{name:"Asia Pacific (Tokyo)",value:"ap-northeast-1"},{name:"Canada (Central)",value:"ca-central-1"},{name:"Canada West (Calgary)",value:"ca-west-1"},{name:"Europe (Frankfurt)",value:"eu-central-1"},{name:"Europe (Ireland)",value:"eu-west-1"},{name:"Europe (London)",value:"eu-west-2"},{name:"Europe (Milan)",value:"eu-south-1"},{name:"Europe (Paris)",value:"eu-west-3"},{name:"Europe (Spain)",value:"eu-south-2"},{name:"Europe (Stockholm)",value:"eu-north-1"},{name:"Europe (Zurich)",value:"eu-central-2"},{name:"Israel (Tel Aviv)",value:"il-central-1"},{name:"Mexico (Central)",value:"mx-central-1"},{name:"Middle East (Bahrain)",value:"me-south-1"},{name:"Middle East (UAE)",value:"me-central-1"},{name:"South America (S\xe3o Paulo)",value:"sa-east-1"},{name:"US East (N. Virginia)",value:"us-east-1"},{name:"US East (Ohio)",value:"us-east-2"},{name:"US West (N. California)",value:"us-west-1"},{name:"US West (Oregon)",value:"us-west-2"}]},15881:function(e,s,r){"use strict";r.r(s),r.d(s,{default:function(){return EmailService}});var t=r(85893),i=r(94892),a=r(11163),n=r(67294),o=r(88894),l=r(7658),d=r(17524);let c=n.forwardRef(function({title:e,titleId:s,...r},t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":s},r),e?n.createElement("title",{id:s},e):null,n.createElement("path",{d:"M4.632 3.533A2 2 0 0 1 6.577 2h6.846a2 2 0 0 1 1.945 1.533l1.976 8.234A3.489 3.489 0 0 0 16 11.5H4c-.476 0-.93.095-1.344.267l1.976-8.234Z"}),n.createElement("path",{fillRule:"evenodd",d:"M4 13a2 2 0 1 0 0 4h12a2 2 0 1 0 0-4H4Zm11.24 2a.75.75 0 0 1 .75-.75H16a.75.75 0 0 1 .75.75v.01a.75.75 0 0 1-.75.75h-.01a.75.75 0 0 1-.75-.75V15Zm-2.25-.75a.75.75 0 0 0-.75.75v.01c0 .414.336.75.75.75H13a.75.75 0 0 0 .75-.75V15a.75.75 0 0 0-.75-.75h-.01Z",clipRule:"evenodd"}))});var m=r(41664),x=r.n(m),u=r(18655),h=r(5447),g=r(29921),f=r(39145);function EmailService(){let e=(0,a.useRouter)(),{id:s}=e.query,[r,m]=(0,n.useState)(null),[h,p]=(0,n.useState)(null),[b,v]=(0,n.useState)(!1),[j,y]=(0,n.useState)(""),[N,w]=(0,n.useState)(!1),[k,C]=(0,n.useState)(""),[L,S]=(0,n.useState)(!1),[A,M]=(0,n.useState)(null),[D,E]=(0,n.useState)(!1),[W,P]=(0,n.useState)(!1),[$,B]=(0,n.useState)(!1),[R,z]=(0,n.useState)(""),[T,K]=(0,n.useState)(!1),[I,Z]=(0,n.useState)(!1),[F,V]=(0,n.useState)(!1),[H,_]=(0,n.use
1State)(!1),[U,O]=(0,n.useState)({}),[q,X]=(0,n.useState)({name:"",accessKeyId:"",secretAccessKey:"",region:u.Z[0]?.value||"us-east-1"}),fetchEmailService=async()=>{let[e,r]=await (0,o.W)(i.Z.service.show(s));r&&m(r.data)},[G,J]=(0,n.useState)(!1),fetchVerifiedSenders=async()=>{J(!0);let[e,r]=await (0,o.W)(i.Z.service.verifiedSenders(s));r&&p(r.data),J(!1)},validateDomain=e=>{let s=e.replace(/^https?:\/\//,"");return s.trim()?s.length<3?"Domain name must be at least 3 characters long":s.length>253?"Domain name is too long (max 253 characters)":/^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\.[a-zA-Z]{2,}$/.test(s)?s.startsWith(".")||s.endsWith(".")?"Domain name cannot start or end with a dot":s.includes("..")?"Domain name cannot contain consecutive dots":null:"Please enter a valid domain name (e.g., example.com)":"Domain name is required"},handleAddDomain=async()=>{C("");let e=validateDomain(j);if(e){C(e);return}w(!0);try{let[e,r]=await (0,o.W)(i.Z.service.createVerifiedSender(s,{name:j.trim().replace(/^https?:\/\//,""),sender_type:"domain"}));if(e){console.error("Error adding domain:",e),C("Failed to add domain. Please try again.");return}if(r){let e=j.trim().replace(/^https?:\/\//,"");y(""),v(!1),C("");let[r,t]=await (0,o.W)(i.Z.service.verifiedSenders(s));if(t){p(t.data);let s=t.data.find(s=>s.name===e);s?(M(s),S(!0),(0,l.C)("success","Domain Added!",`Domain ${e} has been added successfully. The DNS records panel has opened for you to configure.`)):(0,l.C)("success","Success",`Domain ${e} has been added successfully.`)}else(0,l.C)("success","Success",`Domain ${e} has been added successfully.`)}}catch(e){console.error("Error adding domain:",e),C("An unexpected error occurred. Please try again.")}finally{w(!1)}},handleDeleteDomain=async()=>{if(A){if(!A.id){(0,l.C)("error","Error","Invalid domain ID. Please try again.");return}P(!0);try{let[e,s]=await (0,o.W)(i.Z.verifiedSenders.delete(A.id));if(e){console.error("Error deleting domain:",e),(0,l.C)("error","Error","Failed to delete domain. Please try again.");return}s&&(await fetchVerifiedSenders(),E(!1),M(null),S(!1),(0,l.C)("success","Success",`Domain ${A.name} has been deleted successfully.`))}catch(e){console.error("Error deleting domain:",e),(0,l.C)("error","Error","An unexpected error occurred. Please try again.")}finally{P(!1)}}},handleCheckStatus=async e=>{if(!e||!e.id){(0,l.C)("error","Error","Invalid domain. Please try again.");return}O(s=>({...s,[e.id]:!0}));try{let[s,r]=await (0,o.W)(i.Z.verifiedSenders.verify(e.id));if(s){console.error("Error checking domain status:",s),(0,l.C)("error","Error","Failed to check domain status. Please try again.");return}r&&(await fetchVerifiedSenders(),(0,l.C)("success","Status Checked",`Domain ${e.name} status has been checked.`))}catch(e){console.error("Error checking domain status:",e),(0,l.C)("error","Error","An unexpected error occurred. Please try again.")}finally{O(s=>({...s,[e.id]:!1}))}},handleConfigureService=async()=>{if(!q.name||!q.accessKeyId||!q.secretAccessKey||!q.region){(0,l.C)("error","Error","Please fill in all required fields.");return}_(!0);try{let[e,r]=await (0,o.W)(i.Z.service.update(s,{name:q.name,access_key:q.accessKeyId,secret_key:q.secretAccessKey,region:q.region}));if(e){console.error("Error configuring service:",e),(0,l.C)("error","Error","Failed to configure service. Please try again.");return}r&&(await fetchEmailService(),K(!1),X({name:"",accessKeyId:"",secretAccessKey:"",region:u.Z[0]?.value||"us-east-1"}),(0,l.C)("success","Success","Service configured successfully."))}catch(e){console.error("Error configuring service:",e),(0,l.C)("error","Error","An unexpected error occurred. Please try again.")}finally{_(!1)}},handleDeleteService=async()=>{V(!0);try{let[r,t]=await (0,o.W)(i.Z.service.destroy(s));if(r){console.error("Error deleting service:",r),(0,l.C)("error","Error","Failed to delete service. Please try again.");return}t&&((0,l.C)("success","Success","Service deleted successfully."),e.push("/channels/email"))}catch(e){console.error("Error deleting service:",e),(0,l.C)("error","Error","An unexpected error occurred. Please try again.")}finally{V(!1)}};if((0,n.useEffect)(()=>{s&&(fetchEmailService(),fetchVerifiedSenders())},[s]),!r)return(0,t.jsx)("div",{className:"flex justify-center items-center py-12",children:(0,t.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-indigo-600"})});let Y="chq_email"===r.emailServiceList.slug;return(0,t.jsxs)("div",{className:"w-full p-8",children:[(0,t.jsx)("nav",{className:"flex mb-8","aria-label":"Breadcrumb",children:(0,t.jsxs)("ol",{role:"list",className:"flex items-center space-x-4",children:[(0,t.jsx)("li",{children:(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(x(),{href:"/channels",className:"text-sm font-medium text-gray-500 hover:text-indigo-600 transition-colors duration-150 flex items-center",children:"Channels"})})}),(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(d.Z,{className:"h-5 w-5 flex-shrink-0 text-gray-400","aria-hidden":"true"}),(0,t.jsx)(x(),{href:"/channels/email",className:"ml-4 text-sm font-medium text-gray-500 hover:text-indigo-600 transition-colors duration-150 flex items-center",children:"Email"})]})}),(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(d.Z,{className:"h-5 w-5 flex-shrink-0 text-gray-400","aria-hidden":"true"}),(0,t.jsx)("span",{className:"ml-4 text-sm font-medium text-gray-900 flex items-center","aria-current":"page",children:r.name||r.emailServiceName})]})})]})}),(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsxs)("div",{className:"flex items-center mb-4",children:[(0,t.jsx)("div",{className:"w-10 h-10 bg-gradient-to-br from-indigo-100 to-purple-100 rounded-lg flex items-center justify-center mr-4",children:(0,t.jsx)(c,{className:"w-5 h-5 text-indigo-600"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:r.name||r.emailServiceName}),(0,t.jsx)("p",{className:"text-gray-600 text-base mt-1",children:"Manage your email service connection configuration and settings"})]})]}),(0,t.jsxs)("div",{className:`inline-flex items-center px-3 py-1.5 rounded-full text-xs font-medium ${r.working?"bg-emerald-50 text-emerald-700 border border-emerald-200/50":"bg-red-50 text-red-700 border border-red-200/50"}`,children:[(0,t.jsx)("span",{className:`w-2 h-2 rounded-full mr-2 ${r.working?"bg-emerald-400":"bg-red-400"}`}),r.working?"Active":"Inactive"]})]}),(0,t.jsxs)("div",{className:"bg-white rounded-xl border border-gray-200/60 shadow-sm mb-8 overflow-hidden",children:[(0,t.jsx)("div",{className:"px-6 py-5 border-b border-gray-100 bg-gradient-to-r from-gray-50 to-white",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("h2",{className:"text-lg font-semibold text-gray-900 flex items-center",children:[(0,t.jsx)("svg",{className:"w-5 h-5 text-indigo-600 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Connection Details"]}
1),(0,t.jsxs)("div",{className:"flex space-x-3",children:[!Y&&(0,t.jsxs)("button",{onClick:()=>{X({name:r?.name||"",accessKeyId:r?.access_key||"",secretAccessKey:r?.secret_key||"",region:r?.region||u.Z[0]?.value||"us-east-1"}),K(!0)},className:"inline-flex items-center px-4 py-2.5 border border-indigo-300 text-sm font-medium rounded-lg text-indigo-700 bg-white hover:bg-indigo-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-all duration-200 shadow-sm",children:[(0,t.jsxs)("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),"Configure"]}),!Y&&(0,t.jsx)("button",{onClick:()=>Z(!0),className:"inline-flex items-center px-4 py-2.5 border border-red-300 text-sm font-medium rounded-lg text-red-700 bg-white hover:bg-red-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 transition-all duration-200 shadow-sm",children:"Delete Service"})]})]})}),(0,t.jsx)("div",{className:"p-8",children:(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-5 bg-gradient-to-r from-gray-50 to-gray-100 rounded-xl border border-gray-200",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-gray-700",children:"Connection Name"}),(0,t.jsx)("span",{className:"text-sm font-bold text-gray-900",children:r.name||"N/A"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between p-5 bg-gradient-to-r from-gray-50 to-gray-100 rounded-xl border border-gray-200",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-gray-700",children:"Provider"}),(0,t.jsx)("span",{className:"text-sm font-bold text-gray-900",children:r.emailServiceName||"N/A"})]})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-5 bg-gradient-to-r from-gray-50 to-gray-100 rounded-xl border border-gray-200",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-gray-700",children:"Status"}),(0,t.jsxs)("span",{className:`inline-flex items-center px-3 py-1.5 rounded-full text-xs font-semibold ${r.working?"bg-green-100 text-green-800 border border-green-200":"bg-red-100 text-red-800 border border-red-200"}`,children:[(0,t.jsx)("span",{className:`w-2.5 h-2.5 rounded-full mr-2 ${r.working?"bg-green-400":"bg-red-400"}`}),r.working?"Active":"Inactive"]})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between p-5 bg-gradient-to-r from-gray-50 to-gray-100 rounded-xl border border-gray-200",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-gray-700",children:"Created At"}),(0,t.jsx)("span",{className:"text-sm text-gray-900",children:r.createdAt?new Date(r.createdAt).toLocaleDateString():"N/A"})]})]})]})})]}),(0,t.jsxs)("div",{className:"bg-white rounded-xl border border-gray-200/60 shadow-sm overflow-hidden",children:[(0,t.jsx)("div",{className:"px-6 py-5 border-b border-gray-100 bg-gradient-to-r from-gray-50 to-white",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("div",{className:"w-10 h-10 bg-gradient-to-br from-indigo-100 to-purple-100 rounded-lg flex items-center justify-center mr-4",children:(0,t.jsx)("svg",{className:"w-5 h-5 text-indigo-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold text-gray-900",children:"Verified Domains"}),(0,t.jsx)("p",{className:"text-gray-600 text-sm mt-1",children:"Domains that are authorized to send emails through this service"})]})]}),(0,t.jsxs)("button",{onClick:()=>{v(!0),y(""),C("")},className:"inline-flex items-center px-4 py-2.5 border border-transparent text-sm font-medium rounded-lg text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-all duration-200 shadow-sm",children:[(0,t.jsx)("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6v6m0 0v6m0-6h6m-6 0H6"})}),"Add Domain"]})]})}),G?(0,t.jsx)("div",{className:"flex justify-center items-center py-12",children:(0,t.jsx)(g.BR,{height:"40",width:"40",radius:1,color:"#1a1ba6",ariaLabel:"puff-loading",wrapperClass:"comment-wrapper m-auto",wrapperStyle:{},visible:!0})}):h&&h.length>0?(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsxs)("table",{className:"min-w-full divide-y divide-gray-100",children:[(0,t.jsx)("thead",{className:"bg-gradient-to-r from-gray-50 to-white",children:(0,t.jsxs)("tr",{children:[(0,t.jsx)("th",{className:"px-8 py-5 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider",children:"Domain"}),(0,t.jsx)("th",{className:"px-8 py-5 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider",children:"Status"}),(0,t.jsx)("th",{className:"px-8 py-5 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider",children:"Actions"})]})}),(0,t.jsx)("tbody",{className:"bg-white divide-y divide-gray-100",children:h.map((e,s)=>{let r=e.domainRecords||[],i=r.length,a=r.filter(e=>"added"===e.status).length,n=r.filter(e=>"pending"===e.status).length,o=r.filter(e=>"SPF"===e.group),l=r.filter(e=>"SPF"===e.group&&"TXT"===e.type),d=r.filter(e=>"DMARC"===e.group),c=r.filter(e=>"DKIM"===e.group),m=o.filter(e=>"added"===e.status).length,x=o.filter(e=>"pending"===e.status).length,u=d.filter(e=>"added"===e.status).length,h=d.filter(e=>"pending"===e.status).length,g=c.filter(e=>"added"===e.status).length,p=c.filter(e=>"pending"===e.status).length,b=l.length>0&&l.every(e=>"pending"===e.status),v=d.length>0&&d.every(e=>"pending"===e.status),j=0===l.length,y=0===d.length;return(0,t.jsxs)("tr",{className:"hover:bg-gray-50 transition-colors duration-150",children:[(0,t.jsx)("td",{className:"px-8 py-5 whitespace-nowrap",children:(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("div",{className:"w-10 h-10 bg-gradient-to-br from-indigo-100 to-purple-100 rounded-xl flex items-center justify-center mr-4 shadow-sm",children:(0,t.jsx)("svg",{className:"w-5 h-5 text-indigo-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})})}),(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"text-base font-semibold text-gray-900",children:e.name})})]})}),(0,t.jsx)("td",{className:"px-8 py-5",children:(0,t.jsxs)("div",{className:"flex flex-col space-y-1.5",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)("span",{className:`inline-flex items-center px-2.5 py-1 rounded text-xs font-medium ${"verified"===e.status?"bg-green-100 text-green-700":"pending"===e.status?"bg-yellow-100 text-yellow-700":"bg-red-100 text-red-700"}`,children:"verified"===e.status?"Verified":"pending"===e.status?"Pending":"Failed"}),i>0&&(0,t.jsxs)("span",{className:"text-xs text-gray-600",children:[a,"/",i," added",n>0&&(0,t.jsxs)("span",{className:"text-yellow-600 ml-1",children:["• ",n," pending"]})]})]}),(0,t.jsxs)("div",{className:"flex items-center space-x-4 text-xs text-gray-600",children:[o.length>0&&(0,t.jsxs)("span",{className:`${j||b?"text-amber-600 font-medium":""} cursor-help`,"data-tooltip-id":`spf-tooltip-${e.id}`,children:["SPF: ",(0,t.jsx)("span",{className:"text-green-600",children:m}),x>0&&(0,t.jsxs)("span",{className:"text-yellow-600",children:["/",x]}),(j||b)&&(0,t.jsx)("span",{className:"ml-1",children:"⚠"})]}),d.length>0&&(0,t.jsxs)("span",{className:`${y||v?"text-amber-600 font-medium":""} cursor-help`,"data-tooltip-id":`dmarc-tooltip-${e.id}`,children:["DMARC: ",(0,t.jsx)("span",{className:"text-green-600",children:u}),h>0&&(0,t.jsxs)("span",{className:"text-yellow-600",children:["/",h]}),(y||v)&&(0,t.jsx)("span",{className:"ml-1",children:"⚠"})]}),c.length>0&&(0,t.jsxs)("span",{className:"cursor-help","data-tooltip-id":`dkim-tooltip-${e.id}`,children:["DKIM: ",(0,t.jsx)("span",{className:"text-green-600",children:g}),p>0&&(0,t.jsxs)("span",{className:"text-yellow-600",children:["/",p]})]})]}),o.length>0&&(0,t.jsxs)(f.u,{id:`spf-tooltip-${e.id}`,place:"top",effect:"solid",className:"z-50",style:{backgroundColor:"#1F2937",color:"#fff",padding:"10px 12px",borderRadius:"6px",fontSize:"12px",maxWidth:"280px",zIndex:1e3,lineHeight:"1.5"},children:[(0,t.jsx)("div",{className:"font-semibold mb-1",children:"SPF (Sender Policy Framework)"}),(0,t.jsx)("div",{className:"text-xs",children:"Prevents email spoofing by specifying which servers are authorized to send emails from your domain. Critical for email authentication and deliverability."})]}),d.length>0&&(0,t.jsxs)(f.u,{id:`dmarc-tooltip-${e.id}`,place:"top",effect:"solid",className:"z-50",style:{backgroundColor:"#1F2937",color:"#fff",padding:"10px 12px",borderRadius:"6px",fontSize:"12px",maxWidth:"280px",zIndex:1e3,lineHeight:"1.5"},children:[(0,t.jsx)("div",{className:"font-semibold mb-1",children:"DMARC (Domain-based Message Authentication)"}),(0,t.jsx)("div",{className:"text-xs",children:"Protects your domain from email spoofing and phishing. Tells receiving servers how to handle emails that fail SPF or DKIM checks. Essential for brand protection."})]}),c.length>0&&(0,t.jsxs)(f.u,{id:`dkim-tooltip-${e.id}`,place:"top",effect:"solid",className:"z-50",style:{backgroundColor:"#1F2937",color:"#fff",padding:"10px 12px",borderRadius:"6px",fontSize:"12px",maxWidth:"280px",zIndex:1e3,lineHeight:"1.5"},children:[(0,t.jsx)("div",{className:"font-semibold mb-1",children:"DKIM (DomainKeys Identified Mail)"}),(0,t.jsx)("div",{className:"text-xs",children:"Adds a digital signature to your emails, allowing recipients to verify that emails were sent from your domain and haven't been tampered with. Improves deliverability and trust."})]}),(j||y||b||v)&&(0,t.jsxs)("div",{className:"flex items-center space-x-1 text-xs text-amber-600 mt-0.5",children:[(0,t.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})}),(0,t.jsxs)("span",{children:[j||b?"SPF":"",(j||b)&&(y||v)?", ":"",y||v?"DMARC":""," missing/pending"]})]})]})}),(0,t.jsx)("td",{className:"px-8 py-5 whitespace-nowrap",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("button",{onClick:()=>handleCheckStatus(e),disabled:U[e.id],className:"inline-flex items-center px-3 py-1.5 text-xs font-medium rounded-md text-indigo-700 bg-indigo-50 border border-indigo-200 hover:bg-indigo-100 focus:outline-none focus:ring-1 focus:ring-indigo-500 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:U[e.id]?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("svg",{className:"animate-spin -ml-1 mr-1.5 h-3 w-3",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Checking..."]}):"Check Status"}),(0,t.jsx)("button",{onClick:()=>{M(e),S(!0)},className:"inline-flex items-center px-3 py-1.5 text-xs font-medium rounded-md text-gray-700 bg-white border border-gray-300 hover:bg-gray-50 focus:outline-none focus:ring-1 focus:ring-indigo-500 transition-colors",children:"View DNS"}),(0,t.jsx)("button",{onClick:()=>{M(e),E(!0)},className:"inline-flex items-center px-3 py-1.5 text-xs font-medium rounded-md text-red-700 bg-white border border-red-300 hover:bg-red-50 focus:outline-none focus:ring-1 focus:ring-red-500 transition-colors",children:"Delete"})]})})]},s)})})]})}):(0,t.jsxs)("div",{className:"px-6 py-16 text-center",children:[(0,t.jsx)("div",{className:"mx-auto w-32 h-32 bg-gradient-to-br from-gray-100 to-gray-200 rounded-full flex items-center justify-center mb-6 shadow-inner",children:(0,t.jsx)("svg",{className:"w-16 h-16 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})})}),(0,t.jsx)("h3",{className:"text-2xl font-bold text-gray-900 mb-3",children:"No domains verified yet"}),(0,t.jsx)("p",{className:"text-gray-600 mb-8 max-w-2xl mx-auto text-base leading-relaxed",children:"To send emails through this service, you need to verify at least one domain. This ensures your emails are delivered reliably and helps maintain your sender reputation."}),(0,t.jsxs)("div",{className:"space-y-6",children:[(0,t.jsxs)("button",{onClick:()=>{v(!0),y(""),C("")},className:"inline-flex items-center px-6 py-3 border border-transparent text-base font-medium rounded-lg text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-all duration-200 shadow-sm",children:[(0,t.jsx)("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6v6m0 0v6m0-6h6m-6 0H6"})}),"Add Your First Domain"]}),(0,t.jsxs)("div",{className:"bg-gradient-to-r from-blue-50 to-indigo-50 border border-blue-200/60 rounded-xl p-6 max-w-2xl mx-auto",children:[(0,t.jsxs)("h4",{className:"text-lg font-semibold text-blue-900 mb-4 flex items-center justify-center",children:[(0,t.jsx)("svg",{className:"w-5 h-5 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Why verify domains?"]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-left",children:[(0,t.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,t.jsx)("div",{className:"w-6 h-6 bg-blue-100 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,t.jsx)("svg",{className:"w-3 h-3 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-blue-900",children:"Better Deliverability"}),(0,t.jsx)("p",{className:"text-xs text-blue-700",children:"Improve inbox placement rates"})]})]}),(0,t.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,t.jsx)("div",{className:"w-6 h-6 bg-blue-100 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,t.jsx)("svg",{className:"w-3 h-3 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round"
1,strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-blue-900",children:"Build Reputation"}),(0,t.jsx)("p",{className:"text-xs text-blue-700",children:"Establish trust with ISPs"})]})]}),(0,t.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,t.jsx)("div",{className:"w-6 h-6 bg-blue-100 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,t.jsx)("svg",{className:"w-3 h-3 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-blue-900",children:"Reduce Spam"}),(0,t.jsx)("p",{className:"text-xs text-blue-700",children:"Less likely to be flagged"})]})]}),(0,t.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,t.jsx)("div",{className:"w-6 h-6 bg-blue-100 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,t.jsx)("svg",{className:"w-3 h-3 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-blue-900",children:"Professional Look"}),(0,t.jsx)("p",{className:"text-xs text-blue-700",children:"Branded email addresses"})]})]})]})]})]})]})]}),L&&A&&(0,t.jsx)("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50",children:(0,t.jsx)("div",{className:"flex justify-end h-full",children:(0,t.jsxs)("div",{className:"w-full max-w-2xl bg-white shadow-xl",children:[(0,t.jsx)("div",{className:"px-6 py-6 border-b border-gray-200 bg-gradient-to-r from-gray-50 via-indigo-50 to-white",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-gradient-to-br from-indigo-100 to-purple-100 rounded-xl flex items-center justify-center mr-4 shadow-sm",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-indigo-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center space-x-3 mb-1",children:[(0,t.jsx)("h3",{className:"text-xl font-bold text-gray-900",children:A.name}),"pending"===A.status&&(0,t.jsxs)("span",{className:"inline-flex items-center px-2.5 py-1 rounded-full text-xs font-semibold bg-blue-100 text-blue-800 border border-blue-200",children:[(0,t.jsx)("svg",{className:"w-3 h-3 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Setup Required"]})]}),(0,t.jsx)("p",{className:"text-sm text-gray-600",children:"pending"===A.status?"Configure DNS records to complete verification":"Domain Configuration & DNS Records"})]})]}),(0,t.jsx)("button",{onClick:()=>{S(!1),M(null)},className:"w-8 h-8 bg-white border border-gray-200 rounded-lg flex items-center justify-center text-gray-400 hover:text-gray-600 hover:border-gray-300 transition-all duration-200 shadow-sm",children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}),(0,t.jsxs)("div",{className:"px-6 py-6 max-h-[calc(100vh-120px)] overflow-y-auto",children:[$&&(0,t.jsx)("div",{className:"mb-4 p-3 bg-green-50 border border-green-200 rounded-lg",children:(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)("svg",{className:"w-4 h-4 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),(0,t.jsx)("span",{className:"text-sm text-green-800",children:R})]})}),(0,t.jsxs)("div",{className:"mb-6 p-4 bg-gray-50 border border-gray-200 rounded-lg",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[(0,t.jsx)("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${"verified"===A.status?"bg-green-100":"pending"===A.status?"bg-yellow-100":"bg-red-100"}`,children:"verified"===A.status?(0,t.jsx)("svg",{className:"w-5 h-5 text-green-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):"pending"===A.status?(0,t.jsx)("svg",{className:"w-5 h-5 text-yellow-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}):(0,t.jsx)("svg",{className:"w-5 h-5 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-base font-semibold text-gray-900",children:A.name}),(0,t.jsx)("p",{className:"text-sm text-gray-600",children:A.statusMessage})]})]}),(0,t.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium ${"verified"===A.status?"bg-green-100 text-green-800":"pending"===A.status?"bg-yellow-100 text-yellow-800":"bg-red-100 text-red-800"}`,children:"verified"===A.status?"Verified":"pending"===A.status?"Pending":"Failed"})]}),"pending"===A.status&&(0,t.jsxs)("div",{className:"mt-3 pt-3 border-t border-gray-200",children:[(0,t.jsx)("p",{className:"text-sm text-gray-700 mb-3",children:"Configure the DNS records below in your domain provider's DNS settings to complete verification."}),(0,t.jsxs)("div",{className:"flex space-x-2",children:[(0,t.jsxs)("button",{onClick:async()=>{let e=A.domainRecords.map(e=>`${e.group} Record:
2Name: ${e.name}
3Type: ${e.type}
4Value: ${e.value}
5Status: ${e.status}
6`).join("\n");try{await navigator.clipboard.writeText(e),z("All DNS records copied to clipboard!"),B(!0),setTimeout(()=>B(!1),3e3)}catch(e){z("Failed to copy. Please try again."),B(!0),setTimeout(()=>B(!1),3e3)}},className:"inline-flex items-center px-3 py-2 bg-blue-600 text-white text-sm font-medium rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors duration-200",children:[(0,t.jsx)("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8m-4-4l4 4m0 0l-4 4"})}),"Copy All Records"]}),(0,t.jsxs)("button",{onClick:()=>{let e=A.domainRecords.map(e=>`${e.group} Record:
7Name: ${e.name}
8Type: ${e.type}
9Value: ${e.value}
10Status: ${e.status}
11`).join("\n"),s=new Blob([e],{type:"text/plain"}),r=URL.createObjectURL(s),t=document.createElement("a");t.href=r,t.download=`${A.name}-dns-records.txt`,document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(r),z("DNS records downloaded successfully!"),B(!0),setTimeout(()=>B(!1),3e3)},className:"inline-flex items-center px-3 py-2 bg-white border border-blue-300 text-blue-700 text-sm font-medium rounded-md hover:bg-blue-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors duration-200",children:[(0,t.jsx)("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),"Download TXT"]})]})]})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,t.jsx)("h4",{className:"text-lg font-semibold text-gray-900",children:"DNS Records"}),(0,t.jsxs)("div",{className:"flex space-x-2",children:[(0,t.jsxs)("button",{onClick:async()=>{let e=A.domainRecords.map(e=>`${e.group} Record:
12Name: ${e.name}
13Type: ${e.type}
14Value: ${e.value}
15Status: ${e.status}
16`).join("\n");try{await navigator.clipboard.writeText(e),z("All DNS records copied to clipboard!"),B(!0),setTimeout(()=>B(!1),3e3)}catch(e){z("Failed to copy. Please try again."),B(!0),setTimeout(()=>B(!1),3e3)}},className:"inline-flex items-center px-3 py-1.5 border border-gray-300 text-xs font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors duration-150",children:[(0,t.jsx)("svg",{className:"w-3 h-3 mr-1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8m-4-4l4 4m0 0l-4 4"})}),"Copy All"]}),(0,t.jsxs)("button",{onClick:()=>{let e=A.domainRecords.map(e=>`${e.group} Record:
17Name: ${e.name}
18Type: ${e.type}
19Value: ${e.value}
20Status: ${e.status}
21`).join("\n"),s=new Blob([e],{type:"text/plain"}),r=URL.createObjectURL(s),t=document.createElement("a");t.href=r,t.download=`${A.name}-dns-records.txt`,document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(r),z("DNS records downloaded successfully!"),B(!0),setTimeout(()=>B(!1),3e3)},className:"inline-flex items-center px-3 py-1.5 border border-gray-300 text-xs font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors duration-150",children:[(0,t.jsx)("svg",{className:"w-3 h-3 mr-1.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),"Download TXT"]})]})]}),(0,t.jsxs)("div",{className:"mb-4 p-4 bg-blue-50 border border-blue-200 rounded-lg",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2 mb-3",children:[(0,t.jsx)("svg",{className:"w-4 h-4 text-blue-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,t.jsx)("h5",{className:"text-sm font-semibold text-blue-900",children:"Records Overview"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-3 gap-4 text-sm",children:[(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-lg font-semibold text-blue-900",children:A.domainRecords.length}),(0,t.jsx)("div",{className:"text-xs text-blue-700",children:"Total"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-lg font-semibold text-green-700",children:A.domainRecords.filter(e=>"added"===e.status).length}),(0,t.jsx)("div",{className:"text-xs text-green-600",children:"Verified"})]}),(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("div",{className:"text-lg font-semibold text-yellow-700",children:A.domainRecords.filter(e=>"pending"===e.status).length}),(0,t.jsx)("div",{className:"text-xs text-yellow-600",children:"Pending"})]})]})]}),(0,t.jsx)("div",{className:"space-y-4",children:A.domainRecords.map((e,s)=>(0,t.jsxs)("div",{className:"border border-gray-200 rounded-lg p-4 hover:border-gray-300 transition-colors duration-200",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsxs)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium ${"added"===e.status?"bg-green-100 text-green-800":"pending"===e.status?"bg-yellow-100 text-yellow-800":"bg-red-100 text-red-800"}`,children:["added"===e.status?(0,t.jsx)("svg",{className:"w-3 h-3 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}):"pending"===e.status?(0,t.jsx)("svg",{className:"w-3 h-3 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}):(0,t.jsx)("svg",{className:"w-3 h-3 mr-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"added"===e.status?"Added":"pending"===e.status?"Pending":"Added"]}),(0,t.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-blue-100 text-blue-800",children:e.group})]}),(0,t.jsx)("button",{onClick:async()=>{let s=`${e.group} Record:
22Name: ${e.name}
23Type: ${e.type}
24Value: ${e.value}
25Status: ${e.status}`;try{await navigator.clipboard.writeText(s),z(`${e.group} record copied to clipboard!`),B(!0),setTimeout(()=>B(!1),3e3)}catch(e){z("Failed to copy. Please try again."),B(!0),setTimeout(()=>B(!1),3e3)}},className:"text-gray-400 hover:text-gray-600 transition-colors duration-200",title:"Copy this record",children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8m-4-4l4 4m0 0l-4 4"})})})]}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsx)("span",{className:"font-medium text-gray-600 text-xs w-16 flex-shrink-0",children:"Name"}),(0,t.jsx)("div",{className:"flex-1 ml-3",children:(0,t.jsx)("code",{className:"bg-gray-100 px-2 py-1.5 rounded text-gray-800 font-mono text-xs break-all block w-full",children:e.name})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"font-medium text-gray-600 text-xs w-16 flex-shrink-0",children:"Type"}),(0,t.jsx)("span",{className:"text-gray-900 text-xs ml-3",children:e.type})]}),(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsx)("span",{className:"font-medium text-gray-600 text-xs w-16 flex-shrink-0",children:"Value"}),(0,t.jsx)("div",{className:"flex-1 ml-3",children:(0,t.jsx)("code",{className:"bg-gray-100 px-2 py-1.5 rounded text-gray-800 font-mono text-xs break-all block w-full",children:e.value})})]})]})]},s))})]})]})]})})}),b&&(0,t.jsx)("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50 flex items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"relative bg-white rounded-xl shadow-xl max-w-md w-full mx-auto",children:[(0,t.jsx)("div",{className:"px-6 py-4 border-b border-gray-200 bg-gradient-to-r from-gray-50 to-white",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("h3",{className:"text-lg font-semibold text-gray-900 flex items-center",children:[(0,t.jsx)("svg",{className:"w-5 h-5 text-indigo-600 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})}),"Add Domain"]}),(0,t.jsx)("button",{onClick:()=>v(!1),className:"text-gray-400 hover:text-gray-600 transition-colors duration-200",children:(0,t.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}),(0,t.j
25sxs)("div",{className:"px-6 py-6",children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("label",{htmlFor:"domain",className:"block text-sm font-medium text-gray-700 mb-2",children:"Domain Name"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:"text",id:"domain",value:j,onChange:e=>{y(e.target.value),k&&C("")},placeholder:"example.com",className:`w-full px-4 py-3 border rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 transition-colors duration-200 text-sm ${k?"border-red-300 focus:border-red-500 focus:ring-red-500":"border-gray-300 focus:border-indigo-500"}`,onKeyPress:e=>"Enter"===e.key&&handleAddDomain()}),(0,t.jsx)("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:(0,t.jsx)("svg",{className:"w-5 h-5 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})})})]}),(0,t.jsx)("p",{className:"mt-2 text-xs text-gray-500",children:"Enter the domain you want to verify (e.g., example.com)"}),k&&(0,t.jsxs)("div",{className:"mt-2 flex items-center text-sm text-red-600",children:[(0,t.jsx)("svg",{className:"w-4 h-4 mr-1.5 flex-shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),k]})]}),(0,t.jsxs)("div",{className:"flex space-x-3",children:[(0,t.jsx)("button",{onClick:()=>v(!1),className:"flex-1 px-4 py-2.5 border border-gray-300 text-sm font-medium rounded-lg text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors duration-200",children:"Cancel"}),(0,t.jsx)("button",{onClick:handleAddDomain,disabled:!j.trim()||N,className:"flex-1 px-4 py-2.5 border border-transparent text-sm font-medium rounded-lg text-white bg-gradient-to-r from-indigo-600 to-indigo-700 hover:from-indigo-700 hover:to-indigo-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:opacity-50 disabled:cursor-not-allowed transition-all duration-200",children:N?(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin mr-2"}),"Adding..."]}):"Add Domain"})]})]})]})}),D&&A&&(0,t.jsx)("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50 flex items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"relative bg-white rounded-xl shadow-xl max-w-md w-full mx-auto",children:[(0,t.jsxs)("div",{className:"px-6 py-4 border-b border-gray-200 bg-gradient-to-r from-red-50 to-red-100",children:[(0,t.jsx)("div",{className:"flex items-center justify-center mb-4",children:(0,t.jsx)("div",{className:"w-14 h-14 bg-red-100 rounded-full flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-7 h-7 text-red-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})})}),(0,t.jsx)("h3",{className:"text-xl font-semibold text-center mb-2 text-red-900",children:"Delete Domain?"}),(0,t.jsxs)("p",{className:"text-red-700 text-center text-sm leading-relaxed",children:["Are you sure you want to delete ",(0,t.jsx)("strong",{children:A.name}),"? This action cannot be undone."]})]}),(0,t.jsxs)("div",{className:"px-6 py-6",children:[(0,t.jsx)("div",{className:"mb-6 p-4 bg-gray-50 border border-gray-200 rounded-lg",children:(0,t.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,t.jsx)("div",{className:"w-6 h-6 bg-red-100 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,t.jsx)("svg",{className:"w-3 h-3 text-red-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),(0,t.jsx)("p",{className:"text-sm text-gray-700",children:"Deleting this domain will remove all associated DNS re
25cords and may affect email delivery from this domain."})]})}),(0,t.jsxs)("div",{className:"flex space-x-3",children:[(0,t.jsx)("button",{onClick:()=>{E(!1),M(null)},className:"flex-1 px-4 py-2.5 border border-gray-300 text-sm font-medium rounded-lg text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors duration-200",children:"Cancel"}),(0,t.jsx)("button",{onClick:handleDeleteDomain,disabled:W,className:"flex-1 px-4 py-2.5 border border-transparent text-sm font-medium rounded-lg text-white bg-gradient-to-r from-red-600 to-red-700 hover:from-red-700 hover:to-red-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:opacity-50 disabled:cursor-not-allowed transition-all duration-200",children:W?(0,t.jsxs)("div",{className:"flex items-center justify-center space-x-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),(0,t.jsx)("span",{children:"Deleting..."})]}):"Delete Domain"})]})]})]})}),T&&(0,t.jsx)("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50 flex items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"relative bg-white rounded-xl shadow-xl max-w-lg w-full mx-auto",children:[(0,t.jsx)("div",{className:"px-6 py-4 border-b border-gray-200 bg-gradient-to-r from-indigo-50 to-indigo-100",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("h3",{className:"text-lg font-semibold text-indigo-900 flex items-center",children:[(0,t.jsxs)("svg",{className:"w-5 h-5 text-indigo-600 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]}),"Edit Service"]}),(0,t.jsx)("button",{onClick:()=>K(!1),className:"text-indigo-400 hover:text-indigo-600 transition-colors duration-200",children:(0,t.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}),(0,t.jsxs)("div",{className:"px-6 py-6",children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsxs)("label",{htmlFor:"serviceName",className:"block text-sm font-medium text-gray-700 mb-2",children:["Service Name ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{type:"text",id:"serviceName",value:q.name,onChange:e=>X({...q,name:e.target.value}),placeholder:"Enter service name (e.g., Production Email Service)",className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 transition-colors duration-200 text-sm"}),(0,t.jsx)("p",{className:"mt-2 text-xs text-gray-500",children:"Give your service a descriptive name to easily identify it"})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsxs)("label",{htmlFor:"accessKeyId",className:"block text-sm font-medium text-gray-700 mb-2",children:["Access Key ID ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{type:"text",id:"accessKeyId",value:q.accessKeyId,onChange:e=>X({...q,accessKeyId:e.target.value}),placeholder:"Enter your AWS Access Key ID",className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 transition-colors duration-200 text-sm"})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsxs)("label",{htmlFor:"secretAccessKey",className:"block text-sm font-medium text-gray-700 mb-2",children:["Secret Acce
25ss Key ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("input",{type:"password",id:"secretAccessKey",value:q.secretAccessKey,onChange:e=>X({...q,secretAccessKey:e.target.value}),placeholder:"Enter your AWS Secret Access Key",className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 transition-colors duration-200 text-sm"})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsxs)("label",{htmlFor:"region",className:"block text-sm font-medium text-gray-700 mb-2",children:["AWS Region ",(0,t.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,t.jsx)("select",{id:"region",value:q.region,onChange:e=>X({...q,region:e.target.value}),className:"w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 transition-colors duration-200 text-sm",children:u.Z.map(e=>(0,t.jsx)("option",{value:e.value,children:e.name},e.value))})]}),(0,t.jsxs)("div",{className:"flex space-x-3",children:[(0,t.jsx)("button",{onClick:()=>K(!1),className:"flex-1 px-4 py-2.5 border border-gray-300 text-sm font-medium rounded-lg text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors duration-200",children:"Cancel"}),(0,t.jsx)("button",{onClick:handleConfigureService,disabled:!q.accessKeyId||!q.secretAccessKey||H,className:"flex-1 px-4 py-2.5 border border-transparent text-sm font-medium rounded-lg text-white bg-gradient-to-r from-indigo-600 to-indigo-700 hover:from-indigo-700 hover:to-indigo-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:opacity-50 disabled:cursor-not-allowed transition-all duration-200",children:H?(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin mr-2"}),"Configuring..."]}):"Save Changes"})]})]})]})}),I&&(0,t.jsx)("div",{className:"fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-50 flex items-center justify-center p-4",children:(0,t.jsxs)("div",{className:"relative bg-white rounded-xl shadow-xl max-w-md w-full mx-auto",children:[(0,t.jsxs)("div",{className:"px-6 py-4 border-b border-gray-200 bg-gradient-to-r from-red-50 to-red-100",children:[(0,t.jsx)("div",{className:"flex items-center justify-center mb-4",children:(0,t.jsx)("div",{className:"w-14 h-14 bg-red-100 rounded-full flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-7 h-7 text-red-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})})}),(0,t.jsx)("h3",{className:"text-xl font-semibold text-center mb-2 text-red-900",children:"Delete Service?"}),(0,t.jsxs)("p",{className:"text-red-700 text-center text-sm leading-relaxed",children:["Are you sure you want to delete ",(0,t.jsx)("strong",{children:r?.name}),"? This action cannot be undone and will remove all associated domains."]})]}),(0,t.jsxs)("div",{className:"px-6 py-6",children:[(0,t.jsx)("div",{className:"mb-6 p-4 bg-gray-50 border border-gray-200 rounded-lg",children:(0,t.jsxs)("div",{className:"flex items-start space-x-3",children:[(0,t.jsx)("div",{className:"w-6 h-6 bg-red-100 rounded-full flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,t.jsx)("svg",{className:"w-3 h-3 text-red-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),(0,t.jsx)("p",{className:"text-sm text-gray-700",children:"Deleting this service will remove all associated domains and may affect email delivery from these domains."})]})}),(0,t.jsxs)("div",{className:"flex space-x-3",children:[(0,t.jsx)("button",{onClick:()=>Z(!1),className:"flex-1 px-4 py-2.5 border border-gray-300 text-sm font-medium rounded-lg text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors duration-200",children:"Cancel"}),(0,t.jsx)("button",{onClick:handleDeleteService,disabled:F,className:"flex-1 px-4 py-2.5 border border-transparent text-sm font-medium rounded-lg text-white bg-gradient-to-r from-red-600 to-red-700 hover:from-red-700 hover:to-red-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:opacity-50 disabled:cursor-not-allowed transition-all duration-200",children:F?(0,t.jsxs)("div",{className:"flex items-center justify-center space-x-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent roun
25ded-full animate-spin"}),(0,t.jsx)("span",{children:"Deleting..."})]}):"Delete Service"})]})]})]})})]})}EmailService.Layout=h.c},17524:function(e,s,r){"use strict";var t=r(67294);let i=t.forwardRef(function({title:e,titleId:s,...r},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});s.Z=i}},function(e){e.O(0,[9921,5675,2814,7536,7811,445,9145,3410,1796,5447,9774,2888,179],function(){return e(e.s=7077)}),_N_E=e.O()}]);

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.