PageSourceSearch

https://www.floodfirefix.com/_next/static/chunks/79631.f9cff4fc76355048.js

js floodfirefix.com collected 2026-10-08 07:18:22 UTC 147,211 bytes, 4 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a11221-842e-0000-df20-67b5a60582a7";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="4f2bb1a9-e0bf-5e87-84f6-902da8585c23")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79631],{4019:(e,t,a)=>{a.d(t,{A:()=>n});let n=(0,a(50726).A)("newspaper",[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]])},9480:(e,t,a)=>{a.d(t,{A:()=>n});let n=(0,a(50726).A)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},22259:(e,t,a)=>{a.d(t,{U:()=>h});var n=a(68987),l=a(2315),s=a(29945),r=a(98784),i=a(71519);let o="#22272B",d="#B4BBC3",c=[0,.05,.15,.16,.25,.29,.3,.33,.38,.43,.5,.6,.65,.66,.67,.7,.73,.73,.73,.73,.74,.75,.79,.84,.84,.88,.94,.96,.97,1,1];function x(e){return String(Number(e.toFixed(2)))}function u(e){return e.map(([e,t],a)=>`${a?"L":"M"}${x(e)},${x(t)}`).join(" ")}function h({current:e,prior:t,startLabel:a,endLabel:m="Today",changePct:p,legend:f={current:"Last 30 days",prior:"30 days before"},height:g=128,emptyLabel:b="Nothing to show yet",className:j}){let N=`rtc-${(0,l.useId)().replace(/[^a-zA-Z0-9_-]/g,"")}`,v=!e.some(e=>e>0)&&!t.some(e=>e>0),w=v?g+24:g,y=Math.max(e.length,t.length)-1,k=Math.max(1,...e,...t),C=e=>y>0?e/y*100:100,A=e=>w-Math.max(0,e)/k*w,$=e.map((e,t)=>[C(t),A(e)]),S=t.map((e,t)=>[C(t),A(e)]),T=$[$.length-1],M=!v&&$.length>1?u($):null,L=M?`${M} L${x($[$.length-1][0])},${x(w)} L${x($[0][0])},${x(w)} Z`:null,_=!v&&S.length>1?u(S):null,O=v?u(c.map((e,t)=>[t/(c.length-1)*100,w-e*w])):null,F=O?`${O} L100,${x(w)} L0,${x(w)} Z`:null,z=null!==p&&Number.isFinite(p)?{pct:Math.abs(Math.round(p)),dir:p>0?"up":p<0?"down":"flat"}:null;return(0,n.jsxs)("div",{"data-slot":"running-total-chart",className:(0,i.cn)("w-full min-w-0",j),children:[v?null:(0,n.jsxs)("div",{className:"flex h-4 items-center gap-4",children:[(0,n.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-[12px] leading-4 font-medium text-neutral-500",children:[(0,n.jsx)("span",{"aria-hidden":!0,className:"h-0.5 w-3 flex-none rounded-[1px]",style:{backgroundColor:o}}),(0,n.jsx)("span",{className:"truncate",children:f.current})]}),(0,n.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5 text-[12px] leading-4 font-medium text-neutral-500",children:[(0,n.jsx)("svg",{"aria-hidden":!0,width:"12",height:"2",viewBox:"0 0 12 2",className:"flex-none",children:(0,n.jsx)("line",{x1:"0",y1:"1",x2:"12",y2:"1",stroke:d,strokeWidth:"2",strokeDasharray:"3 2"})}),(0,n.jsx)("span",{className:"truncate",children:f.prior})]}),z?(0,n.jsxs)("span",{"data-slot":"running-total-delta","data-dir":z.dir,className:(0,i.cn)("ml-auto inline-flex flex-none items-center gap-0.5 text-[12.5px] leading-4 font-semibold","up"===z.dir?"text-success":"down"===z.dir?"text-danger":"text-neutral-500"),children:["up"===z.dir?(0,n.jsx)(s.A,{"aria-hidden":!0,size:12,strokeWidth:2.4}):null,"down"===z.dir?(0,n.jsx)(r.A,{"aria-hidden":!0,size:12,strokeWidth:2.4}):null,"up"===z.dir?(0,n.jsx)("span",{className:"sr-only",children:"Up "}):null,"down"===z.dir?(0,n.jsx)("span",{className:"sr-only",children:"Down "}):null,z.pct,"%"]}):null]}),(0,n.jsxs)("div",{role:"img","aria-label":v?b:`Running total, ${f.current.toLowerCase()} against ${f.prior.toLowerCase()}`,className:(0,i.cn)("relative",!v&&"mt-2"),style:{height:w},children:[(0,n.jsxs)("svg",{"aria-hidden":!0,viewBox:`0 0 100 ${w}`,preserveAspectRatio:"none",className:"block h-full w-full overflow-visible",children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:N,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,n.jsx)("stop",{offset:"0",stopColor:o,stopOpacity:v?.05:.1}),(0,n.jsx)("stop",{offset:"1",stopColor:o,stopOpacity:0})]})}),(0,n.jsx)("line",{"data-part":"grid",x1:"0",y1:"0",x2:100,y2:"0",strokeWidth:"1",vectorEffect:"non-scaling-stroke",className:"stroke-neutral-100"}),(0,n.jsx)("line",{"data-part":"grid",x1:"0",y1:x(w/2),x2:100,y2:x(w/2),strokeWidth:"1",vectorEffect:"non-scaling-stroke",className:"stroke-neutral-100"}),(0,n.jsx)("line",{"data-part":"baseline",x1:"0",y1:x(w),x2:100,y2:x(w),strokeWidth:"1",vectorEffect:"non-scaling-stroke",className:"stroke-[var(--shell-line)]"}),F?(0,n.jsx)("path",{"data-part":"ghost-area",d:F,fill:`url(#${N})`,stroke:"none"}):null,O?(0,n.jsx)("path",{"data-part":"ghost",d:O,fill:"none",stroke:"#CDD2D8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}):null,L?(0,n.jsx)("path",{"data-part":"area",d:L,fill:`url(#${N})`,stroke:"none"}):null,_?(0,n.jsx)("path",{"data-part":"prior",d:_,fill:"none",stroke:d,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"3 3",vectorEffect:"non-scaling-stroke"}):null,M?(0,n.jsx)("path",{"data-part":"current",d:M,fill:"none",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}):null]}),v?(0,n.jsx)("div",{"data-part":"empty",className:"absolute inset-0 flex items-center justify-center",children:(0,n.jsxs)("p",{className:"relative px-8 py-3.5 text-[13px] leading-4 font-medium text-neutral-500 tabular-nums",children:[(0,n.jsx)("span",{"aria-hidden":!0,
2className:"absolute inset-0 rounded-full bg-card blur-[10px]"}),(0,n.jsx)("span",{className:"relative",children:b})]})}):T?(0,n.jsx)("span",{"aria-hidden":!0,"data-part":"end",className:"absolute size-[9px] -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white",style:{left:`${x(T[0])}%`,top:`${x(T[1])}px`,backgroundColor:o}}):null]}),(0,n.jsxs)("div",{className:"mt-3 flex justify-between gap-4 text-[11.5px] leading-[14px] font-medium text-neutral-400",children:[(0,n.jsx)("span",{children:a}),(0,n.jsx)("span",{children:m})]})]})}},24455:(e,t,a)=>{a.d(t,{Dn:()=>y,Gl:()=>b,Hf:()=>$,Zl:()=>N,hG:()=>A,iY:()=>v,nN:()=>k,pI:()=>L,wK:()=>C,x2:()=>S,xK:()=>w});var n=a(41143),l=a(58131),s=a(37667),r=a(4019),i=a(79778),o=a(55171),d=a(34970),c=a(6358),x=a(86661),u=a(34590),h=a(83495),m=a(56119),p=a(11798);let f=["popular","search","directories","social","offline"],g={popular:"Most used",search:"Search and AI",directories:"Directories",social:"Social",offline:"Print and on air"},b=["popular","offline"],j=(e,t,a,n,l,s=p.cA[a],r)=>({id:e,label:t,kind:a,group:n,icon:l,paid:s,chip:r}),N=e=>e.chip??e.label,v="gbp",w=[j("google_ads",p.Kt.google_ads,"google_ads","popular",m.vv),j(v,p.Kt.google_business_profile,"google_business_profile","popular",m.hy,void 0,"Google profile"),j("facebook",p.Kt.facebook,"facebook","popular",m.I3),j("instagram",p.Kt.instagram,"instagram","popular",m.cK),j("yelp",p.Kt.yelp,"yelp","popular",m.CN),j("vehicle_wrap","Vehicle wrap","vehicle","popular",n.A),j("yard_sign","Yard sign","signage","popular",l.A),j("email",p.Kt.email,"email","popular",s.A),j("lsa",p.Kt.google_local_services,"google_local_services","search",m.Bp,void 0,"Local Services"),j("bing",p.Kt.bing,"bing","search",m.UK),j("google_organic",p.Kt.google_organic,"google_organic","search",m.Bp,void 0,"Google search"),j("chatgpt","ChatGPT","other","search",m.i$),j("apple",p.Kt.apple,"apple","directories",m.kM),j("nextdoor",p.Kt.nextdoor,"nextdoor","directories",m.xU),j("angi","Angi","other","directories",m.dh),j("thumbtack","Thumbtack","other","directories",m.VR),j("homeadvisor","HomeAdvisor","other","directories",m.DA),j("yellow_pages","Yellow Pages","other","directories",m.yd),j("bbb","Better Business Bureau","other","directories",m.CU,void 0,"BBB"),j("x",p.Kt.x,"x","social",m.o0),j("youtube","YouTube","other","social",m.jg),j("linkedin","LinkedIn","other","social",m.md),j("tiktok","TikTok","other","social",m.IG),j("print_ad","Print ad","print","offline",r.A),j("billboard","Billboard","signage","offline",i.A),j("radio","Radio","other","offline",o.A),j("television","Television","other","offline",d.A,void 0,"TV")],y="other",k=j("other","Other \xb7 name it","other","offline",c.A),C=j("website",p.Kt.website,"website","popular",x.A),A=e=>e===y?k:w.find(t=>t.id===e)??null;function $(e){let t=e.trim().toLowerCase();return t?w.filter(e=>e.label.toLowerCase().includes(t)||(e.chip??"").toLowerCase().includes(t)):w}function S(e){return f.map(t=>({group:t,label:g[t],options:e.filter(e=>e.group===t)})).filter(e=>e.options.length>0)}let T={website:x.A,google_ads:m.vv,google_organic:m.Bp,google_business_profile:m.hy,google_local_services:m.Bp,bing:m.UK,facebook:m.I3,instagram:m.cK,yelp:m.CN,nextdoor:m.xU,apple:m.kM,x:m.o0,email:s.A,print:r.A,signage:l.A,vehicle:n.A,other:c.A},M={Bing:m.YS,"Typed your address":u.A,"Other sites":h.A};function L(e,t){if(e){let t=M[e];if(t)return t;let a=w.find(t=>t.label===e);if(a)return a.icon}return t?T[t]:x.A}},28747:(e,t,a)=>{a.d(t,{x:()=>o});var n=a(68987),l=a(17794),s=a(25493),r=a(52928),i=a(71519);function o({open:e,saving:t,onDiscard:a,onSave:d,note:c="Unsaved changes",className:x}){return(0,n.jsx)("div",{"data-slot":"save-bar",className:(0,i.cn)("pointer-events-none sticky bottom-0 z-30 -mt-6 overflow-y-clip pt-6",x),children:(0,n.jsxs)("div",{"aria-hidden":!e,inert:!e,"data-state":e?"open":"closed",className:(0,i.cn)("flex flex-wrap items-center gap-2 border-t border-neutral-200 bg-card py-3 pr-[82px] pl-4 lg:gap-3 lg:px-6","shadow-[0_8px_24px_rgba(20,24,27,.10),0_1px_2px_rgba(20,24,27,.06)]","transition-[transform,opacity] duration-200 ease-out motion-reduce:transition-none",e?"pointer-events-auto translate-y-0 opacity-100":"translate-y-[calc(100%+16px)] opacity-0"),children:[(0,n.jsx)("span",{"aria-hidden":!0,
2className:"size-2 flex-none rounded-full bg-warning"}),(0,n.jsx)("span",{className:"min-w-[110px] flex-[1_1_110px] truncate text-[13px] leading-4 font-semibold text-foreground",children:c}),(0,n.jsxs)("div",{className:"ml-auto flex items-center gap-2 lg:gap-3",children:[(0,n.jsx)(r.$,{type:"button",variant:"ghost",disabled:t,onClick:a,className:"text-[13px] font-semibold",children:"Discard"}),(0,n.jsxs)(r.$,{type:"button",disabled:t,onClick:d,className:"text-[13px] font-semibold",children:[t?(0,n.jsx)(l.A,{"aria-hidden":!0,className:"animate-spin"}):(0,n.jsx)(s.A,{"aria-hidden":!0}),"Save changes"]})]})]})})}},34590:(e,t,a)=>{a.d(t,{A:()=>n});let n=(0,a(50726).A)("mouse-pointer-click",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]])},34970:(e,t,a)=>{a.d(t,{A:()=>n});let n=(0,a(50726).A)("tv",[["path",{d:"m17 2-5 5-5-5",key:"16satq"}],["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",key:"1e6viu"}]])},37199:(e,t,a)=>{a.d(t,{U:()=>n});let n={numberRentCents:115,tollFreeRentCents:215,brandFeeCents:4400,campaignFeeCents:1e3,voicePerMinuteCentsDecimal:"2.0"}},45953:(e,t,a)=>{a.d(t,{A:()=>s});let n={205:"Birmingham, AL",251:"Mobile, AL",256:"Huntsville, AL",334:"Montgomery, AL",659:"Birmingham, AL",938:"Huntsville, AL",907:"Anchorage, AK",808:"Honolulu, HI",480:"Mesa, AZ",520:"Tucson, AZ",602:"Phoenix, AZ",623:"Glendale, AZ",928:"Flagstaff, AZ",479:"Fort Smith, AR",501:"Little Rock, AR",870:"Jonesboro, AR",209:"Stockton, CA",213:"Los Angeles, CA",279:"Sacramento, CA",310:"Santa Monica, CA",323:"Los Angeles, CA",341:"Oakland, CA",350:"Concord, CA",408:"San Jose, CA",415:"San Francisco, CA",424:"Santa Monica, CA",442:"Oceanside, CA",510:"Oakland, CA",530:"Chico, CA",559:"Fresno, CA",562:"Long Beach, CA",619:"San Diego, CA",626:"Pasadena, CA",628:"San Francisco, CA",650:"San Mateo, CA",657:"Anaheim, CA",661:"Bakersfield, CA",669:"San Jose, CA",707:"Santa Rosa, CA",714:"Anaheim, CA",747:"Burbank, CA",760:"Palm Springs, CA",805:"Ventura, CA",818:"Burbank, CA",820:"Thousand Oaks, CA",831:"Salinas, CA",840:"San Bernardino, CA",858:"San Diego, CA",909:"San Bernardino, CA",916:"Sacramento, CA",925:"Concord, CA",949:"Irvine, CA",951:"Riverside, CA",303:"Denver, CO",719:"Colorado Springs, CO",720:"Denver, CO",970:"Fort Collins, CO",983:"Denver, CO",203:"Bridgeport, CT",475:"New Haven, CT",860:"Hartford, CT",959:"Hartford, CT",302:"Wilmington, DE",202:"Washington, DC",771:"Washington, DC",239:"Fort Myers, FL",305:"Miami, FL",321:"Orlando, FL",324:"Fort Lauderdale, FL",352:"Gainesville, FL",386:"Daytona Beach, FL",407:"Orlando, FL",448:"Tallahassee, FL",561:"West Palm Beach, FL",656:"Tampa, FL",689:"Orlando, FL",727:"St. Petersburg, FL",728:"Sarasota, FL",754:"Fort Lauderdale, FL",772:"Port St. Lucie, FL",786:"Miami, FL",813:"Tampa, FL",850:"Tallahassee, FL",863:"Lakeland, FL",904:"Jacksonville, FL",941:"Sarasota, FL",954:"Fort Lauderdale, FL",229:"Albany, GA",404:"Atlanta, GA",470:"Atlanta, GA",478:"Macon, GA",678:"Atlanta, GA",706:"Columbus, GA",762:"Augusta, GA",770:"Marietta, GA",912:"Savannah, GA",943:"Atlanta, GA",208:"Boise, ID",986:"Boise, ID",406:"Billings, MT",307:"Cheyenne, WY",701:"Fargo, ND",605:"Sioux Falls, SD",217:"Springfield, IL",224:"Waukegan, IL",309:"Peoria, IL",312:"Chicago, IL",331:"Aurora, IL",447:"Springfield, IL",464:"Cicero, IL",618:"Belleville, IL",630:"Naperville, IL",708:"Cicero, IL",773:"Chicago, IL",779:"Rockford, IL",815:"Rockford, IL",847:"Evanston, IL",872:"Chicago, IL",219:"Gary, IN",260:"Fort Wayne, IN",317:"Indianapolis, IN",463:"Indianapolis, IN",574:"South Bend, IN",765:"Muncie, IN",812:"Evansville, IN",930:"Evansville, IN",319:"Cedar Rapids, IA",515:"Des Moines, IA",563:"Davenport, IA",641:"Mason City, IA",712:"Sioux City, IA",316:"Wichita, KS",620:"Dodge City, KS",785:"Topeka, KS",913:"Kansas City, KS",308:"North Platte, NE",402:"Omaha, NE",531:"Omaha, NE",270:"Bowling Green, KY",364:"Owensboro, KY",502:"Louisville, KY",606:"Ashland, KY",859:"Lexington, KY",423:"Chattanooga, TN",615:"Nashville, TN",629:"Nashville, TN",731:"Jackson, TN",865:"Knoxville, TN",901:"Memphis, TN",931:"Clarksville, TN",225:"Baton Rouge, LA",318:"Shreveport, LA",337:"Lafayette, LA",504:"New Orleans, LA",985:"Houma, LA",228:"Gulfport, MS",601:"Jackson, MS",662:"Tupelo, MS",769:"Jackson, MS",207:"Portland, ME",603:"Manchester, NH",802:"Burlington, VT",401:"Providence, RI",227:"Silver Spring, MD",240:"Silver Spring, MD",301:"Silver Spring, MD",410:"Baltimore, MD",443:"Baltimore, MD",667:"Baltimore, MD",339:"Quincy, MA",351:"Lowell, MA",413:"Springfield, MA",508:"Worcester, MA",617:"Boston, MA",774:"Worcester, MA",781:"Waltham, MA",857:"Boston, MA",978:"Lowell, MA",231:"Traverse City, MI",248:"Troy, MI",269:"Kalamazoo, MI",313:"Detroit, MI",517:"Lansing, MI",586:"Warren, MI",616:"Grand Rapids, MI",679:"Detroit, MI",734:"Ann Arbor, MI",810:"Flint, MI",906:"Marquette, MI",947:"Troy, MI",989:"Saginaw, MI",218:"Duluth, MN",320:"St. Cloud, MN",507:"Rochester, MN",612:"Minneapolis, MN",651:"St. Paul, MN",763:"Brooklyn Park, MN",952:"Bloomington, MN",262:"Kenosha, WI",274:"Green Bay, WI",414:"Milwaukee, WI",534:"Eau Claire, WI",608:"Madison, WI",715:"Eau Claire, WI",920:"Green Bay, WI",314:"St. Louis, MO",417:"Springfield, MO",557:"St. Louis, MO",573:"Columbia, MO",636:"St. Charles, MO",660:"Sedalia, MO",816:"Kansas City, MO",975:"Kansas City, MO",702:"Las Vegas, NV",725:"Las Vegas, NV",775:"Reno, NV",385:"Salt Lake City, UT",435:"St. George, UT",801:"Salt Lake City, UT",505:"Albuquerque, NM",575:"Las Cruces, NM",201:"Jersey City, NJ",551:"Jersey City, NJ",609:"Trenton, NJ",640:"Trenton, NJ",732:"Toms River, NJ",848:"Toms River, NJ",856:"Camden, NJ",862:"Newark, NJ",908:"Elizabeth, NJ",973:"Newark, NJ",212:"New York, NY",315:"Syracuse, NY",329:"Poughkeepsie, NY",332:"New York, NY",347:"Brooklyn, NY",363:"Hempstead, NY",516:"Hempstead, NY",518:"Albany, NY",585:"Rochester, NY",607:"Binghamton, NY",631:"Brentwood, NY",646:"New York, NY",680:"Syracuse, NY",716:"Buffalo, NY",718:"Brooklyn, NY",838:"Albany, NY",845:"Poughkeepsie, NY",914:"Yonkers, NY",917:"New York, NY",929:"Queens, NY",934:"Brentwood, NY",252:"Greenville, NC",336:"Greensboro, NC",704:"Charlotte, NC",743:"Greensboro, NC",828:"Asheville, NC",910:"Fayetteville, NC",919:"Raleigh, NC",980:"Charlotte, NC",984:"Raleigh, NC",216:"Cleveland, OH",220:"Newark, OH",234:"Akron, OH",326:"Dayton, OH",330:"Akron, OH",380:"Columbus, OH",419:"Toledo, OH",436:"Cleveland, OH",440:"Parma, OH",513:"Cincinnati, OH",567:"Toledo, OH",614:"Columbus, OH",740:"Newark, OH",937:"Dayton, OH",405:"Oklahoma City, OK",539:"Tulsa, OK",572:"Oklahoma City, OK",580:"Lawton, OK",918:"Tulsa, OK",458:"Eugene, OR",503:"Portland, OR",541:"Eugene, OR",971:"Portland, OR",206:"Seattle, WA",253:"Tacoma, WA",360:"Vancouver, WA",425:"Bellevue, WA",509:"Spokane, WA",564:"Vancouver, WA",215:"Philadelphia, PA",223:"Lancaster, PA",267:"Philadelphia, PA",272:"Scranton, PA",412:"Pittsburgh, PA",445:"Philadelphia, PA",484:"Allentown, PA",570:"Scranton, PA",582:"Erie, PA",610:"Allentown, PA",717:"Lancaster, PA",724:"New Castle, PA",814:"Erie, PA",835:"Allentown, PA",878:"Pittsburgh, PA",803:"Columbia, SC",839:"Columbia, SC",843:"Charleston, SC",854:"Charleston, SC",864:"Greenville, SC",210:"San Antonio, TX",214:"Dallas, TX",254:"Killeen, TX",281:"Houston, TX",325:"Abilene, TX",346:"Houston, TX",361:"Corpus Christi, TX",409:"Beaumont, TX",430:"Tyler, TX",432:"Midland, TX",469:"Dallas, TX",512:"Austin, TX",682:"Fort Worth, TX",713:"Houston, TX",726:"San Antonio, TX",737:"Austin, TX",806:"Lubbock, TX",817:"Fort Worth, TX",830:"New Braunfels, TX",832:"Houston, TX",903:"Tyler, TX",915:"El Paso, TX",936:"Conroe, TX",940:"Denton, TX",945:"Dallas, TX",956:"Laredo, TX",972:"Dallas, TX",979:"College Station, TX",276:"Bristol, VA",434:"Lynchburg, VA",540:"Roanoke, VA",571:"Arlington, VA",703:"Arlington, VA",757:"Virginia Beach, VA",804:"Richmond, VA",826:"Roanoke, VA",948:"Arlington, VA",304:"Charleston, WV",681:"Charleston, WV",204:"Winnipeg, MB",226:"London, ON",236:"Vancouver, BC",249:"Sudbury, ON",250:"Victoria, BC",289:"Hamilton, ON",306:"Regina, SK",343:"Ottawa, ON",365:"Hamilton, ON",367:"Quebec City, QC",368:"Calgary, AB",403:"Calgary, AB",416:"Toronto, ON",418:"Quebec City, QC",431:"Winnipeg, MB",437:"Toronto, ON",438:"Montreal, QC",450:"Longueuil, QC",506:"Moncton, NB",514:"Montreal, QC",519:"London, ON",579:"Longueuil, QC",581:"Quebec City, QC",587:"Calgary, AB",604:"Vancouver, BC",613:"Ottawa, ON",639:"Regina, SK",647:"Toronto, ON",672:"Vancouver, BC",705:"Sudbury, ON",709:"St. John's, NL",742:"Hamilton, ON",778:"Vancouver, BC",780:"Edmonton, AB",782:"Halifax, NS",807:"Thunder Bay, ON",819:"Gatineau, QC",825:"Calgary, AB",867:"Whitehorse, YT",873:"Gatineau, QC",902:"Halifax, NS",905:"Mississauga, ON"},l={800:"Toll-free",833:"Toll-free",844:"Toll-free",855:"Toll-free",866:"Toll-free",877:"Toll-free",888:"Toll-free",900:"Premium rate",911:"Emergency",988:"Crisis line"};function s(e){let t=(e??"").replace(/\D/g,""),a=11===t.length&&t.startsWith("1")?t.slice(1):t;if(10!==a.length)return null;let s=a.slice(0,3);return l[s]??n[s]??null}},47966:(e,t,a)=>{a.d(t,{A:()=>n});let n=(0,a(50726).A)("phone-missed",[["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"m22 2-6 6",key:"6f0sa0"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 
20 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]])},55171:(e,t,a)=>{a.d(t,{A:()=>n});let n=(0,a(50726).A)("radio",[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},56119:(e,t,a)=>{a.d(t,{Bp:()=>s,CN:()=>b,CU:()=>k,DA:()=>N,I3:()=>o,IG:()=>f,UK:()=>c,VR:()=>j,YS:()=>C,cK:()=>d,dh:()=>w,hy:()=>i,i$:()=>x,jg:()=>m,kM:()=>u,md:()=>p,o0:()=>h,vv:()=>r,xU:()=>g,yd:()=>y});var n=a(68987);let l=(e,t)=>{let a=({className:t})=>(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:t,"aria-hidden":!0,focusable:"false",children:e});return a.displayName=t.replace(/\W/g,""),a},s=l((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{fill:"#4285F4",d:"M23.06 12.25c0-.85-.08-1.67-.22-2.45H12v4.64h6.2a5.3 5.3 0 0 1-2.3 3.48v2.89h3.72c2.18-2 3.44-4.96 3.44-8.56Z"}),(0,n.jsx)("path",{fill:"#34A853",d:"M12 23.5c3.11 0 5.72-1.03 7.62-2.79l-3.72-2.89c-1.03.69-2.35 1.1-3.9 1.1-3 0-5.54-2.02-6.45-4.75H1.7v2.98A11.5 11.5 0 0 0 12 23.5Z"}),(0,n.jsx)("path",{fill:"#FBBC05",d:"M5.55 14.17a6.9 6.9 0 0 1 0-4.34V6.85H1.7a11.5 11.5 0 0 0 0 10.3l3.85-2.98Z"}),(0,n.jsx)("path",{fill:"#EA4335",d:"M12 5.08c1.69 0 3.21.58 4.4 1.72l3.3-3.3C17.71 1.65 15.1.5 12 .5A11.5 11.5 0 0 0 1.7 6.85l3.85 2.98C6.46 7.1 9 5.08 12 5.08Z"})]}),"Google"),r=l((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("rect",{x:"9",y:"0.9",width:"6",height:"19.4",rx:"3",fill:"#FBBC04",transform:"rotate(27 12 3.9)"}),(0,n.jsx)("rect",{x:"9",y:"0.9",width:"6",height:"19.4",rx:"3",fill:"#4285F4",transform:"rotate(-27 12 3.9)"}),(0,n.jsx)("circle",{cx:"4.7",cy:"18.3",r:"3.1",fill:"#34A853"})]}),"Google Ads"),i=l((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{fill:"#4285F4",d:"M2.6 3.3h6.1L7.9 8.2H1.8l.8-4.9Z"}),(0,n.jsx)("path",{fill:"#EA4335",d:"M8.7 3.3h6.6l.5 4.9H7.9l.8-4.9Z"}),(0,n.jsx)("path",{fill:"#FBBC04",d:"M15.3 3.3h6.1l.8 4.9h-6.4l-.5-4.9Z"}),(0,n.jsx)("path",{fill:"#34A853",d:"M3.4 10v10.7h17.2V10h-2.2a2.9 2.9 0 0 1-4.3 0 2.9 2.9 0 0 1-4.3 0 2.9 2.9 0 0 1-4.3 0H3.4Z"}),(0,n.jsx)("path",{fill:"#fff",d:"M9.6 13.4h4.8v4.6H9.6z"})]}),"Google Business Profile");l((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{fill:"#34A853",d:"M12 1.5 3 5.2v6.4c0 5.1 3.8 9.9 9 11 5.2-1.1 9-5.9 9-11V5.2L12 1.5Z"}),(0,n.jsx)("path",{fill:"#fff",d:"m10.7 15.6-3.2-3.2 1.5-1.5 1.7 1.7 4.3-4.3 1.5 1.5-5.8 5.8Z"})]}),"Google Local Services");let o=l((0,n.jsx)("path",{fill:"#1877F2",d:"M24 12.07C24 5.4 18.63 0 12 0S0 5.4 0 12.07C0 18.1 4.39 23.1 10.13 24v-8.44H7.08v-3.49h3.05V9.41c0-3.02 1.79-4.69 4.53-4.69 1.31 0 2.68.24 2.68.24v2.97h-1.51c-1.49 0-1.96.93-1.96 1.89v2.25h3.33l-.53 3.49h-2.8V24C19.61 23.1 24 18.1 24 12.07Z"}),"Facebook"),d=l((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:"pfp-ig",x1:"2",y1:"22",x2:"22",y2:"2",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{offset:"0",stopColor:"#FFD521"}),(0,n.jsx)("stop",{offset:"0.35",stopColor:"#F50000"}),(0,n.jsx)("stop",{offset:"0.7",stopColor:"#B900B4"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#4B00B4"})]})}),(0,n.jsx)("rect",{x:"1.5",y:"1.5",width:"21",height:"21",rx:"6",fill:"url(#pfp-ig)"}),(0,n.jsx)("circle",{cx:"12",cy:"12",r:"4.6",fill:"none",stroke:"#fff",strokeWidth:"1.9"}),(0,n.jsx)("circle",{cx:"17.6",cy:"6.4",r:"1.3",fill:"#fff"})]}),"Instagram"),c=l((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("path",{fill:"#F25022",d:"M2.4 2.4h9v9h-9z"}),(0,n.jsx)("path",{fill:"#7FBA00",d:"M12.6 2.4h9v9h-9z"}),(0,n.jsx)("path",{fill:"#00A4EF",d:"M2.4 12.6h9v9h-9z"}),(0,n.jsx)("path",{fill:"#FFB900",d:"M12.6 12.6h9v9h-9z"})]}),"Microsoft"),x=l((0,n.jsx)("path",{fill:"#000000",d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .0709 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm
21.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"}),"ChatGPT"),u=l((0,n.jsx)("path",{fill:"#000000",d:"M17.05 12.54c-.03-2.7 2.2-4 2.3-4.06-1.25-1.83-3.2-2.08-3.9-2.1-1.66-.17-3.24.98-4.08.98-.84 0-2.14-.96-3.52-.93-1.8.03-3.47 1.05-4.4 2.67-1.88 3.26-.48 8.08 1.35 10.72.9 1.29 1.96 2.74 3.36 2.69 1.35-.06 1.86-.87 3.49-.87 1.63 0 2.09.87 3.51.84 1.45-.02 2.37-1.31 3.26-2.61 1.03-1.5 1.45-2.95 1.47-3.02-.03-.01-2.82-1.08-2.85-4.29M14.4 4.6c.74-.9 1.24-2.15 1.1-3.4-1.07.05-2.36.71-3.13 1.61-.69.8-1.29 2.07-1.13 3.29 1.19.09 2.41-.6 3.16-1.5"}),"Apple"),h=l((0,n.jsx)("path",{fill:"#000000",d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"}),"X"),m=l((0,n.jsx)("path",{fill:"#FF0000",d:"M23.5 6.19a3.02 3.02 0 0 0-2.12-2.14C19.5 3.55 12 3.55 12 3.55s-7.5 0-9.38.5A3.02 3.02 0 0 0 .5 6.19C0 8.08 0 12 0 12s0 3.92.5 5.81a3.02 3.02 0 0 0 2.12 2.14c1.88.5 9.38.5 9.38.5s7.5 0 9.38-.5a3.02 3.02 0 0 0 2.12-2.14C24 15.92 24 12 24 12s0-3.92-.5-5.81ZM9.55 15.57V8.43L15.82 12l-6.27 3.57Z"}),"YouTube"),p=l((0,n.jsx)("path",{fill:"#0A66C2",d:"M20.45 20.45h-3.56v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.14 1.45-2.14 2.94v5.67H9.35V9h3.41v1.56h.05c.48-.9 1.63-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46v6.28ZM5.34 7.43a2.06 2.06 0 1 1 0-4.13 2.06 2.06 0 0 1 0 4.13Zm1.78 13.02H3.56V9h3.56v11.45ZM22.22 0H1.77C.79 0 0 .77 0 1.73v20.54C0 23.22.79 24 1.77 24h20.45c.98 0 1.78-.78 1.78-1.73V1.73C24 .77 23.2 0 22.22 0Z"}),"LinkedIn"),f=l((0,n.jsx)("path",{fill:"#000000",d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07Z"}),"TikTok"),g=l((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("rect",{width:"24",height:"24",rx:"5",fill:"#8ED500"}),(0,n.jsx)("path",{fill:"#fff",d:"M12.4 5.2a.8.8 0 0 0-.9 0L5.9 9a.9.9 0 0 0-.4.75v8.3c0 .5.4.9.9.9h2.5c.5 0 .9-.4.9-.9v-3.6c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3.6c0 .5.4.9.9.9h2.5c.5 0 .9-.4.9-.9V9.74a.9.9 0 0 0-.4-.75l-5.7-3.79Z"})]}),"Nextdoor"),b=({className:e})=>(0,n.jsx)("svg",{viewBox:"1 0 21.5 23.5",className:e,"aria-hidden":!0,focusable:"false",children:(0,n.jsx)("path",{fill:"#FF1A1A",d:"m7.689 15.142l-3.672.848c-.377.087-.755.183-1.145.155c-.261-.019-.512-.042-.76-.213a1.2 1.2 0 0 1-.332-.36c-.348-.551-.365-1.366-.37-2a6.3 6.3 0 0 1 .332-2.064a2 2 0 0 1 .107-.248a2 2 0 0 1 .126-.216a3 3 0 0 1 .156-.198a1.2 1.2 0 0 1 .399-.283a1.1 1.1 0 0 1 .46-.083c.235.001.513.052.91.173c.055.02.123.038.185.057c.328.101.705.24 1.15.399q1.027.36 2.046.74l1.212.442q.333.12.64.297c.175.098.328.23.452.387a1.2 1.2 0 0 1 .192.43a1.22 1.22 0 0 1-.872 1.453q-.072.022-.108.03l-1.105.255zM18.82 7.565a2 2 0 0 0-.204-.175a2 2 0 0 0-.208-.14a2 2 0 0 0-.227-.109a1.2 1.2 0 0 0-.482-.08a1.1 1.1 0 0 0-.45.127c-.21.105-.439.273-.742.555c-.042.042-.095.089-.142.133c-.25.235-.528.525-.86.863a115 115 0 0 0-1.516 1.563l-.897.93a4 4 0 0 0-.446.548a1.5 1.5 0 0 0-.237.545a1.2 1.2 0 0 0 .011.452l.005.02a1.22 1.22 0 0 0 1.418.923a1 1 0 0 0 .11-.021l4.779-1.104c.376-.087.758-.167 1.097-.363c.227-.132.443-.262.59-.525a1.2 1.2 0 0 0 .141-.469c.073-.65-.267-1.39-.54-1.963a6.3 6.3 0 0 0-1.2-1.71M8.97.075a9 9 0 0 0-.83.157q-.415.097-.815.223c-.868.285-2.089.807-2.295 1.807c-.117.565.16 1.144.373 1.66c.26.625.614 1.189.938 1.778c.854 1.554 1.724 3.099 2.592 4.645c.259.462.542 1.047 1.043 1.286a1 1 0 0 0 .101.038c.225.085.47.102.704.047l.042-.01a1.2 1.2 0 0 0 .566-.34a1 1 0 0 0 .079-.081c.346-.435.345-1.084.376-1.614c.104-1.77.214-3.542.301-5.314c.033-.671.106-1.333.066-2.01c-.033-.557-.037-1.198-.39-1.656c-.621-.807-1.947-.74-2.852-.616m2.083 15.95a1.105 1.105 0 0 0-1.23-.414a1 1 0 0 0-.153.064a1.5 1.5 0 0 0-.217.135c-.2.148-.367.34-.52.532c-.038.049-.074.114-.12.156l-.768 1.057a114 114 0 0 0-1.291 1.79c-.278.389-.519.718-.709 1.009c-.036.054-.073.116-.107.164c-.228.352-.357.61-.423.838a1.1 1.1 0 0 0-.046.472c.021.166.077.325.163.467q.069.108.15.207a2 2 0 0 0 .174.183a2 2 0 0 0 .211.173c.53.37 1.111.634 1.722.84a6 6 0 0 0 1.572.3q.136.006.273-.006a2 2 0 0 0 .25-.035a2 2 0 0 0 .245-.071a1.2 1.2 0 0 0 .418-.266c.112-.113.199-.25.254-.4c.089-.22.147-.502.185-.92c.004-.059.012-.13.018-.195c.03-.346.044-.753.067-1.231q.056-1.103.09-2.203l.05-1.306c.01-.3.001-.634-.082-.934a1.4 1.4 0 0 0-.176-.405m8.676 2.045c-.16-.176-.388-.352-.746-.568l-.169-.101c-.298-.18-.658-.369-1.078-.597a121 121 0 0 0-1.943-1.042l-1.151-.61c-.06-.018-.12-.061-.177-.088a3 3 0 0 0-.699-.25a1.5 1.5 0 0 0-.254-.027a1 1 0 0 0-.165.01a1.11 1.11 0 0 0-.923.914a1.4 1.4 0 0 0 .016.439c.056.306.193.61.335.875l.615 1.152q.512.975 1.043 1.94c.23.421.42.78.598 1.079c.034.056.072.116.101.168c.218.358.392.584.57.746a1.1 1.1 0 0 0 .894.301a2 2 0 0 0 .25-.043q.124-.033.242-.078a2 2 0 0 0 .247-.115a6 6 0 0 0 1.282-.96a6.7 6.7 0 0 0 1.182-1.51q.066-.12.114-.248a3 3 0 0 0 .077-.24a3 3 0 0 0 .043-.252a1.2 1.2 0 0 0-.056-.491a1.1 1.1 0 0 0-.248-.404m2.86 3.742a.85.85 0 0 1-.111.423a.85.85 0 0 1-.312.318a.84.84 0 0 1-.438.119a.85.85 0 0 1-.438-.118a.85.85 0 0 1-.312-.317a.86.86 0 0 1-.111-.425q0-.23.114-.43a.84.84 0 0 1 .315-.316a.85.85 0 0 1 .432-.115a.85.85 0 0 1 .43.114a.84.84 0 0 1 .315.315a.85.85 0 0 1 .116.432m-.12 0q0-.2-.1-.37a.6.6 0 0 0-.27-.27a.7.7 0 0 0-.371-.1a.7.7 0 0 0-.37.099a.75.75 0 0 0-.271.27a.7.7 0 0 0-.1.37q0 .199.1.372a.74.74 0 0 0 .27.271a.74.74 0 0 0 .37.099a.7.7 0 0 0 .37-.1a.74.74 0 0 0 .27-.27a.7.7 0 0 0 .102-.371m-.577.058l.272.452h-.192l-.237-.405h-.155v.405h-.17v-1.02h.3q.19 0 .278.075q.09.075.089.227a.3.3 0 0 1-.05.162a.3.3 0 0 1-.135.104m-.042-.14a.15.15 0 0 0 .056-.122q0-.086-.049-.122q-.05-.039-.156-.038h-.12v.328h.123q.091 0 .146-.047z"})}),j=l((0,n.jsx)("path",{fill:"#009FD9",d:"M6.18 6.38h11.69v2.68H6.17zm7.27 3.8v3.14c0 3.23-.02 3.74-.14 4.36a7.95 7.95 0 0 1-1.3 2.87c-.03 0-.78-1.35-.9-1.62c-.17-.4-.3-.8-.4-1.25l-.09-.41l-.02-5.78l.16-.2a3.3 3.3 0 0 1 2.44-1.1zM12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12a12 12 0 0 0 12-12A12 12 0 0 0 12 0"}),"Thumbtack"),N=l((0,n.jsx)("path",{fill:"#F68315",d:"M15.98 2.442H8.02L0 10.46h2.275l6.882-6.88l6.881 6.881H24l-8.02-8.018m-.492 9.348L9.157 5.459L4.01 10.605v4.987a1.33 1.33 0 0 0 1.329 1.329h6.077l4.637 4.637v-4.637h2.598a1.33 1.33 0 0 0 1.33-1.33V11.79h-4.494Z"}),"HomeAdvisor"),v=(e,t)=>
2({className:a})=>(0,n.jsx)("img",{src:e,alt:"","aria-hidden":!0,"data-brand":t,className:`${a??""} object-contain`}),w=v("/brands/angi.png","Angi"),y=v("/brands/yellowpages.png","Yellow Pages"),k=v("/brands/bbb.png","Better Business Bureau"),C=({className:e})=>(0,n.jsxs)("svg",{viewBox:"0 0 256 388",className:e,"aria-hidden":!0,focusable:"false",preserveAspectRatio:"xMidYMid meet",children:[(0,n.jsxs)("defs",{children:[(0,n.jsxs)("radialGradient",{id:"bingA",cx:"93.717%",cy:"77.818%",r:"143.121%",fx:"93.717%",fy:"77.818%",gradientTransform:"matrix(-.65486 -.5438 .75575 -.4712 .963 1.654)",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#00cacc"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#048fce"})]}),(0,n.jsxs)("radialGradient",{id:"bingB",cx:"13.893%",cy:"71.448%",r:"150.086%",fx:"13.893%",fy:"71.448%",gradientTransform:"matrix(.55155 -.39387 .23634 .91917 -.107 .112)",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#00bbec"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#2756a9"})]}),(0,n.jsxs)("linearGradient",{id:"bingC",x1:"50%",x2:"50%",y1:"0%",y2:"100%",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#00bbec"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#2756a9"})]})]}),(0,n.jsx)("path",{fill:"url(#bingA)",d:"M129.424 122.047c-7.133.829-12.573 6.622-13.079 13.928c-.218 3.147-.15 3.36 6.986 21.722c16.233 41.774 20.166 51.828 20.827 53.243c1.603 3.427 3.856 6.65 6.672 9.544c2.16 2.22 3.585 3.414 5.994 5.024c4.236 2.829 6.337 3.61 22.818 8.49c16.053 4.754 24.824 7.913 32.381 11.664c9.791 4.86 16.623 10.387 20.944 16.946c3.1 4.706 5.846 13.145 7.04 21.64c.468 3.321.47 10.661.006 13.663c-1.008 6.516-3.021 11.976-6.101 16.545c-1.638 2.43-1.068 2.023 1.313-.939c6.74-8.379 13.605-22.7 17.108-35.687c4.24-15.718 4.817-32.596 1.66-48.57c-6.147-31.108-25.786-57.955-53.444-73.06c-1.738-.95-8.357-4.42-17.331-9.085a1633 1633 0 0 1-4.127-2.154c-.907-.477-2.764-1.447-4.126-2.154c-1.362-.708-5.282-2.75-8.711-4.539l-8.528-4.446a6021 6021 0 0 1-8.344-4.357c-8.893-4.655-12.657-6.537-13.73-6.863c-1.125-.343-3.984-.782-4.701-.723c-.152.012-.838.088-1.527.168"}),(0,n.jsx)("path",{fill:"url(#bingB)",d:"M148.81 277.994c-.493.292-1.184.714-1.537.938c-.354.225-1.137.712-1.743 1.083a8315 8315 0 0 0-13.204 8.137a2848 2848 0 0 0-8.07 4.997a388 388 0 0 1-3.576 2.198c-.454.271-2.393 1.465-4.31 2.654a2652 2652 0 0 1-7.427 4.586a3958 3958 0 0 0-8.62 5.316a3011 3011 0 0 1-7.518 4.637c-1.564.959-3.008 1.885-3.21 2.058c-.3.257-14.205 8.87-21.182 13.121c-5.3 3.228-11.43 5.387-17.705 6.235c-2.921.395-8.45.396-11.363.003c-7.9-1.067-15.176-4.013-21.409-8.666c-2.444-1.826-7.047-6.425-8.806-8.8c-4.147-5.598-6.829-11.602-8.218-18.396c-.32-1.564-.622-2.884-.672-2.935c-.13-.13.105 2.231.528 5.319c.44 3.211 1.377 7.856 2.387 11.829c7.814 30.743 30.05 55.749 60.15 67.646c8.668 3.424 17.415 5.582 26.932 6.64c3.576.4 13.699.56 17.43.276c17.117-1.296 32.02-6.334 47.308-15.996c1.362-.86 3.92-2.474 5.685-3.585a877 877 0 0 0 4.952-3.14c.958-.615 2.114-1.341 2.567-1.614a91 91 0 0 0 2.018-1.268c.656-.424 3.461-2.2 6.235-3.944l11.092-7.006l3.809-2.406l.137-.086l.42-.265l.199-.126l2.804-1.771l9.69-6.121c12.348-7.759 16.03-10.483 21.766-16.102c2.392-2.342 5.997-6.34 6.176-6.848c.037-.104.678-1.092 1.424-2.197c3.036-4.492 5.06-9.995 6.064-16.484c.465-3.002.462-10.342-.005-13.663c-.903-6.42-2.955-13.702-5.167-18.339c-3.627-7.603-11.353-14.512-22.453-20.076c-3.065-1.537-6.23-2.943-6.583-2.924c-.168.009-10.497 6.322-22.954 14.03c-12.457 7.71-23.268 14.4-24.025 14.87s-2.056 1.263-2.888 1.764z"}),(0,n.jsx)("path",{fill:"url(#bingC)",d:"m.053 241.013l.054 53.689l.695 3.118c2.172 9.747 5.937 16.775 12.482 23.302c3.078 3.07 5.432 4.922 8.768 6.896c7.06 4.177 14.657 6.238 22.978 6.235c8.716-.005 16.256-2.179 24.025-6.928c1.311-.801 6.449-3.964 11.416-7.029l9.032-5.572v-127.4l-.002-58.273c-.002-37.177-.07-59.256-.188-60.988c-.74-10.885-5.293-20.892-12.948-28.461c-2.349-2.323-4.356-3.875-10.336-7.99a25160 25160 0 0 1-12.104-8.336L28.617 5.835C22.838 1.85 22.386 1.574 20.639.949C18.367.136 15.959-.163 13.67.084C6.998.804 1.657 5.622.269 12.171C.053 13.191.013 26.751.01 100.35l-.003 86.975H0z"})]})},58131:(e,t,a)=>{a.d(t,{A:()=>n});let n=(0,a(50726).A)("signpost",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M12 3v3",key:"1n5kay"}
2],["path",{d:"M18 6a2 2 0 0 1 1.387.56l2.307 2.22a1 1 0 0 1 0 1.44l-2.307 2.22A2 2 0 0 1 18 13H6a2 2 0 0 1-1.387-.56l-2.306-2.22a1 1 0 0 1 0-1.44l2.306-2.22A2 2 0 0 1 6 6z",key:"gqqp9m"}]])},76989:(e,t,a)=>{a.d(t,{W:()=>o,i:()=>i});var n=a(68987),l=a(2315),s=a(18476),r=a(71519);function i(e,t){let a=e.trim().toLowerCase();return a.length>0&&t.trim().toLowerCase()===a}function o({word:e,value:t,onChange:a,id:i,disabled:d,className:c}){let x=(0,l.useId)(),u=i??x;return(0,n.jsxs)("div",{"data-slot":"type-to-confirm",className:(0,r.cn)("flex flex-col gap-2",c),children:[(0,n.jsxs)("label",{htmlFor:u,className:"flex flex-wrap items-center gap-1.5 text-[13px] leading-5 font-medium text-foreground",children:["Type",(0,n.jsx)("span",{className:"inline-flex h-5 items-center rounded-[5px] bg-neutral-100 px-1.5 text-[12.5px] leading-4 font-bold text-foreground",children:e}),"to confirm"]}),(0,n.jsx)(s.p,{id:u,value:t,onChange:e=>a(e.target.value),disabled:d,placeholder:e,autoComplete:"off",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1,className:"h-10 rounded-[8px] border-neutral-300 px-3 placeholder:text-[#B4BBC3]"})]})}},79631:(e,t,a)=>{a.r(t),a.d(t,{TrackingNumbersScreen:()=>ah,TrackingNumbersSkeleton:()=>tv.F});var n=a(68987),l=a(2315),s=a(1343),r=a(73591),i=a(7586),o=a(87104),d=a(42619),c=a(40728),x=a(48308),u=a(14683),h=a(74286),m=a(52928),p=a(88180),f=a(39707),g=a(9869),b=a(83721),j=a(58131),N=a(86661),v=a(31758),w=a(61376),y=a(53425),k=a(49456),C=a(18476),A=a(42152),$=a(21653);let S=["pagesforpros.com","servicepages.io"];function T({title:e,name:t,choices:a,value:l,onChange:s}){return(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)("h2",{className:"text-[20px] leading-[26px] font-bold tracking-[-0.012em] text-foreground",children:e}),(0,n.jsx)("div",{role:"radiogroup","aria-label":e,className:"flex flex-col gap-2.5",children:a.map(e=>{let a=e.value===l,r=e.icon;return(0,n.jsxs)("div",{className:`rounded-[10px] bg-card transition-colors ${a?"border-[1.5px] border-foreground":"border border-input hover:border-neutral-400 hover:bg-secondary"}`,children:[(0,n.jsxs)("button",{type:"button",role:"radio",name:t,"aria-checked":a,onClick:()=>s(e.value),className:"flex w-full items-start gap-3.5 rounded-[10px] p-4 text-left",children:[(0,n.jsx)("span",{"aria-hidden":!0,className:`mt-0.5 size-4 shrink-0 rounded-full ${a?"border-[5px] border-foreground":"border-[1.5px] border-neutral-400"}`}),(0,n.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,n.jsx)("span",{className:"text-[15px] leading-5 font-semibold text-foreground",children:e.label}),(0,n.jsx)("span",{className:"text-[13px] leading-[18px] text-muted-foreground",children:e.hint})]}),r?(0,n.jsx)(r,{className:"size-5 shrink-0 text-muted-foreground","aria-hidden":!0}):null]}),a&&e.field?(0,n.jsx)("div",{className:"-mt-1.5 pr-[50px] pb-4 pl-[46px]",children:e.field}):null]},e.value)})})]})}var M=a(2620),L=a(39756),_=a(34219),O=a(10037),F=a(37199),z=a(27504),D=a(95114),B=a(59e3),I=a(33469),E=a(55598),P=a(86713),W=a(5058);let R=e=>(e??"").replace(/\D/g,"");function H(e){let t=R(e);return 11===t.length&&t.startsWith("1")?t.slice(1):10===t.length?t:""}function K(e){let t=R(e).replace(/^1/,"").slice(0,10);return t.length<=3?t:t.length<=6?`(${t.slice(0,3)}) ${t.slice(3)}`:`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`}function U(e){let t=H(e);return t?`+1${t}`:null}let Y="other",G="none";function V(e,t,a){return e===G?null:e===Y?U(t):a.find(t=>t.id===e)?.e164??null}let q=(e,t)=>e!==Y||10===H(t).length,Z=e=>H(e).slice(0,3),J=e=>e?(0,W.I_)(e):"—",X=e=>null===e.released_at&&null===e.release_status,Q=e=>(e.numbers??[]).filter(X),ee=e=>null===e.deactivated_at;function et(e){let t=(e.external_domains??[])[0];return t?t.replace(/^https?:\/\//,"").replace(/\/+$/,""):null}let ea=(e,t)=>"on"===e||"off"!==e&&t,en=e=>`Site default is ${e?"on":"off"}.`,el=e=>`$${(e/100).toFixed(2).replace(/\.00$/,"")}`,es=e=>e?.label??"Other",er=e=>e?.kind??null,ei=["print","signage","vehicle","other"],eo=e=>`$${Math.round(e/100).toLocaleString("en-US")}`,ed=(e,t,a=`${t}s`)=>
2`${e.toLocaleString("en-US")} ${1===e?t:a}`;function ec(e,t=new Date){if(!e)return null;let a=Date.parse(e);if(Number.isNaN(a))return null;let n=Math.floor((t.getTime()-a)/6e4);if(n<1)return"just now";if(n<60)return`${n} min ago`;let l=Math.floor(n/60);if(l<24)return`${l} ${1===l?"hour":"hours"} ago`;let s=Math.floor(l/24);return`${s} ${1===s?"day":"days"} ago`}function ex(e,t){if(!e)return null;let a=new Date(e);return Number.isNaN(a.getTime())?null:new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",timeZone:t}).format(a)}function eu(e){let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e??"");if(!t)return"";let a=new Date(Date.UTC(Number(t[1]),Number(t[2])-1,Number(t[3])));return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",timeZone:"UTC"}).format(a)}function eh(e,t,a=new Date){let n=e.last_seen_at??e.first_seen_at;if(!e.first_seen_at&&!e.last_seen_at)return{state:"never",label:"Not installed"};let l=Date.parse(n??"");if(!Number.isNaN(l)&&a.getTime()-l<=6048e5)return{state:"live",label:"Live"};let s=t?ex(n,t):null;return{state:"stale",label:s?`Not seen since ${s}`:"Not seen lately"}}function em(e){if(!e)return null;try{return new URL(e).host}catch{return null}}function ep(e,t,a=new Date){let n=(0,I.qD)(a,t,"yyyy-MM-dd");return{from:(0,E.xH)(n,-(e-1)),to:n}}function ef(e,t,a={}){let n=new URLSearchParams({tracker:t});return a.missed&&n.set("type","cb"),a.days&&(n.set("range","custom"),n.set("from",a.days.from),n.set("to",a.days.to)),`/sites/${e??""}/crm/calls?${n.toString()}`}let eg=e=>({current:`Last ${e} days`,prior:`${e} days before`}),eb=e=>`Nothing earned in the last ${2*e} days`;function ej(e,t){let a=e.recommendedSize-t;return a<=0?null:{text:e.peakAtOnce>0?`Your busiest half hour had ${ed(e.peakAtOnce,"visitor")} at once. Add ${a} more so no two visitors share a number.`:`A pool of ${e.recommendedSize} numbers is the best start. Add ${a} more.`,add:a}}let eN="w-[max(300px,var(--radix-select-trigger-width))] max-w-[calc(100vw-2rem)] rounded-lg border-neutral-300 shadow-[0_8px_24px_rgba(20,24,27,0.10),0_1px_2px_rgba(20,24,27,0.06)]",ev="h-9 rounded-[6px] py-0 text-[13px] font-medium text-foreground data-[state=checked]:bg-surface-muted [&>span:first-child_svg]:size-3.5 [&>span:first-child_svg]:text-foreground [&>span:last-child]:min-w-0 [&>span:last-child]:flex-1 *:[span]:last:gap-2.5",ew="data-[state=open]:border-foreground data-[state=open]:ring-[0.5px] data-[state=open]:ring-foreground";function ey({children:e}){return(0,n.jsx)("span",{className:"flex size-5 shrink-0 items-center justify-center",children:e})}let ek="size-3.5 text-neutral-400",eC=(e,t)=>`${e} ${t}${1===e?"":"s"}`;function eA({label:e,htmlFor:t,hint:a,children:l,extra:s}){return(0,n.jsxs)("div",{className:`flex flex-col gap-2 border-b border-border px-4 py-3.5 last:border-b-0 sm:flex-row sm:gap-4 ${s?"sm:items-start":"sm:items-center"}`,children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,n.jsx)(D.J,{htmlFor:t,className:"text-sm leading-5 font-medium text-foreground",children:e}),(0,n.jsx)("p",{className:"text-[13px] leading-[18px] text-muted-foreground",children:a})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2 sm:w-60 sm:shrink-0",children:[l,s]})]})}function e$(e){let t=(0,l.useRef)(!1);return{arm:()=>{t.current=!0},onCloseAutoFocus:a=>{if(!t.current)return;t.current=!1;let n=document.getElementById(e);n&&(a.preventDefault(),n.focus())}}}function eS({id:e,entry:t,label:a,triggerId:l,value:s,onChange:r,onAdd:i,onCancel:o}){let d=10===H(s).length,c=()=>{i(),document.getElementById(l)?.focus()},x=()=>{o(),document.getElementById(l)?.focus()};return(0,n.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,n.jsx)(C.p,{id:e,"data-number-entry":t,inputMode:"tel","aria-label":a,value:s,onChange:e=>r(K(e.target.value)),onKeyDown:e=>{if("Escape"===e.key)return x();"Enter"===e.key&&(e.preventDefault(),d&&c())},className:"min-w-0 flex-1 rounded-lg px-3 tabular-nums"}),(0,n.jsx)(m.$,{type:"button",size:"icon","aria-label":`Add number for ${t}`,disabled:!d,onClick:c,className:"rounded-lg bg-neutral-900 text-white hover:bg-neutral-800",children:(0,n.jsx)(M.A,{})}),(0,n.jsx)(m.$,{type:"button",variant:"outline",size:"icon","aria-label":`Cancel number for ${t}`,onClick:x,className:"rounded-lg text-muted-foreground",children:(0,n.jsx)(w.A,{})})]})}function eT({heading:e,mode:t,onMode:a,forward:l,onForward:s,callDraft:r,onCallDraft:i,mainLine:o,textTargets:d,textChoice:c,onTextChoice:x,textOther:u,onTextOther:h,textDraft:m,onTextDraft:p,counts:f,tollFreeOnly:g,showPrice:b=!0}){let j=b?function(e){let t=[];if(e.local>0&&t.push(eC(e.local,"local number")),e.tollFree>0&&t.push(eC(e.tollFree,"toll-free number")),0===t.length)return null;
2let a=e.local*F.U.numberRentCents+e.tollFree*F.U.tollFreeRentCents,n=el(F.U.numberRentCents),l=el(F.U.tollFreeRentCents),s=e.local>0&&e.tollFree>0?`${n} a month each for local, ${l} for toll-free.`:e.tollFree>0?`${l} a month each.`:`${n} a month each.`;return{what:t.join(" and "),total:`${el(a)} a month`,each:s}}(f):null,N=null!==r;return(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[e?(0,n.jsx)("h2",{className:"text-[20px] leading-[26px] font-bold tracking-[-0.012em] text-foreground",children:e}):null,(0,n.jsxs)("div",{className:"flex flex-col gap-[18px]",children:[(0,n.jsxs)("div",{className:"flex flex-col overflow-hidden rounded-[10px] border border-border bg-card",children:[(0,n.jsx)(eA,{label:"Calls",htmlFor:"tnum-forward-select",hint:N||"forward"===t?"Ring this number instead.":"Ring the same people as your main line.",extra:N?(0,n.jsx)(eS,{id:"tnum-forward",entry:"calls",label:"Number calls forward to",triggerId:"tnum-forward-select",value:r,onChange:i,onAdd:()=>{s(r),a("forward"),i(null)},onCancel:()=>i(null)}):null,children:(0,n.jsx)(eM,{id:"tnum-forward-select",entryId:"tnum-forward",mode:t,forward:l,mainLine:o,typing:N,onAnother:()=>i(""),onPick:e=>{i(null),a(e)}})}),(0,n.jsx)(e_,{id:"tnum-text-forward",targets:d,choice:c,onChoice:x,other:u,onOther:h,draft:m,onDraft:p,tollFreeOnly:g})]}),j?(0,n.jsxs)("div",{className:"flex flex-col gap-1 rounded-[10px] bg-neutral-50 px-4 py-3.5",children:[(0,n.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,n.jsx)("p",{className:"min-w-0 flex-1 text-sm leading-5 font-medium text-foreground",children:j.what}),(0,n.jsx)("p",{className:"text-[15px] leading-5 font-bold tabular-nums text-foreground",children:j.total})]}),(0,n.jsxs)("p",{className:"text-[13px] leading-[18px] text-muted-foreground",children:[j.each," ","Added to your regular bill."," You can deactivate ",f.local+f.tollFree===1?"it":"them"," any time."]})]}):null]})]})}function eM({id:e,entryId:t,ariaLabel:a="Forward calls to",mode:l,forward:s,mainLine:r,typing:i,onPick:o,onAnother:d,triggerClassName:x}){let u=e$(t),h=i?"Another number":"main_line"===l?r?`Main line \xb7 ${r}`:"Main line":s;return(0,n.jsxs)(B.l6,{value:i?"new":l,onValueChange:e=>{if("new"===e)return u.arm(),d();o(e)},children:[(0,n.jsx)(B.bq,{id:e,"aria-label":a,className:x??`w-full rounded-lg px-3 shadow-none ${ew}`,children:(0,n.jsxs)("span",{className:"flex min-w-0 items-center gap-2.5",children:[i||"forward"!==l?null:(0,n.jsx)(ey,{children:(0,n.jsx)(L.A,{className:ek})}),(0,n.jsx)("span",{className:"truncate tabular-nums",children:h})]})}),(0,n.jsxs)(B.gC,{align:"end",className:eN,onCloseAutoFocus:u.onCloseAutoFocus,children:[(0,n.jsxs)(B.eb,{value:"main_line",className:ev,children:[(0,n.jsx)(ey,{children:(0,n.jsx)(_.A,{className:ek})}),(0,n.jsx)("span",{className:"min-w-0 truncate",children:"Main line"}),r?(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate text-[12.5px] font-normal tabular-nums text-muted-foreground",children:r}):null]}),"forward"===l&&s?(0,n.jsxs)(B.eb,{value:"forward",className:ev,children:[(0,n.jsx)(ey,{children:(0,n.jsx)(L.A,{className:ek})}),(0,n.jsx)("span",{className:"tabular-nums",children:s})]}):null,(0,n.jsx)(B.mi,{className:"mx-1.5 my-[3px]"}),(0,n.jsxs)(B.eb,{value:"new",className:ev,children:[(0,n.jsx)(ey,{children:(0,n.jsx)(c.A,{className:ek})}),"Another number"]})]})]})}function eL({id:e,entryId:t,ariaLabel:a="Forward texts to",targets:l,choice:s,other:r,typing:i,tollFreeOnly:o=!1,onPick:d,onAnother:x,triggerClassName:u}){var h;let m=l.find(e=>e.id===s),p=e$(t),f=(h={member:m,choice:s,other:r,typing:i,tollFreeOnly:o}).tollFreeOnly?"Disabled \xb7 toll-free":h.typing?"Another number":h.member?h.member.name:h.choice===Y?h.other:"Don't forward";return(0,n.jsxs)(B.l6,{value:i?"new":s,onValueChange:e=>{if("new"===e)return p.arm(),x();d(e)},disabled:o,children:[(0,n.jsx)(B.bq,{id:e,"aria-label":a,className:u??`w-full rounded-lg px-3 shadow-none ${ew}`,children:(0,n.jsxs)("span",{className:"flex min-w-0 items-center gap-2.5",children:[o||i?null:m?(0,n.jsx)(z.O,{name:m.name,avatarUrl:m.avatarUrl,color:m.color,size:20}):s===Y?(0,n.jsx)(ey,{children:(0,n.jsx)(L.A,{className:ek})}):null,(0,n.jsx)("span",{className:"truncate tabular-nums",children:f})]})}),(0,n.jsxs)(B.gC,{align:"end",className:eN,onCloseAutoFocus:p.onCloseAutoFocus,children:[l.map(e=>(0,n.jsxs)(B.eb,{value:e.id,className:ev,children:[(0,n.jsx)(z.O,{name:e.name,avatarUrl:e.avatarUrl,color:e.color,size:20}),(0,n.jsx)("span",{className:"min-w-0 truncate",children:e.name}),(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate text-[12.5px] font-normal tabular-nums text-muted-foreground",children:J(e.e164)})]},e.id)),s===Y&&r?(0,n.jsxs)(B.eb,{value:Y,className:ev,children:[(0,n.jsx)(ey,{children:(0,n.jsx)(L.A,{className:ek})}),(0,n.jsx)("span",{className:"tabular-nums",children:r})]}):null,(0,n.jsxs)(B.eb,{value:G,className:ev,children:[(0,n.jsx)(ey,{children:(0,n.jsx)(O.A,{className:ek})}),"Don't forward"]}),(0,n.jsx)(B.mi,{className:"mx-1.5 my-[3px]"}),(0,n.jsxs)(B.eb,{value:"new",className:ev,children:[(0,n.jsx)(ey,{children:(0,n.jsx)(c.A,{className:ek})}),"Another number"]})]})]})}function e_({id:e,targets:t,choice:a,onChoice:l,other:s,onOther:r,draft:i,onDraft:o,tollFreeOnly:d=!1}){let c=null!==i&&!d;return(0,n.jsx)(eA,{label:"Texts",htmlFor:e,hint:"Your replies come from the number they texted.",extra:c?(0,n.jsx)(eS,{id:`${e}-number`,entry:"texts",label:"Number texts forward to",triggerId:e,value:i,onChange:o,onAdd:()=>{r(i),l(Y),o(null)},onCancel:()=>o(null)}):null,children:(0,n.jsx)(eL,{id:e,entryId:`${e}-number`,targets:t,choice:a,other:s,typing:c,tollFreeOnly:d,onAnother:()=>o(""),onPick:e=>{o(null),l(e)}})})}var eO=a(17794);let eF=["first","second","third","fourth","fifth","sixth","seventh","eighth","ninth","tenth"],ez=e=>1===e?"number":"numbers";function eD({rows:e,done:t,trackerError:a,name:l="",already:s=0}){let r;return a?(0,n.jsxs)("div",{className:"flex flex-col gap-1 px-6 py-5",children:[(0,n.jsx)("h2",{className:"text-[20px] leading-[26px] font-bold tracking-[-0.012em] text-foreground",children:"Nothing was created"}),(0,n.jsx)("p",{className:"text-[13px] leading-[18px] text-destructive",children:a})]}):(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-1 px-6 pb-1.5 pt-[22px]",children:[(0,n.jsx)("h2",{className:"text-[20px] leading-[26px] font-bold tracking-[-0.012em] text-foreground",children:t?0===(r=e.filter(e=>"bought"===e.state).length)?"No numbers bought":r===e.length?`${r} ${ez(r)} bought`:`${r} of ${e.length} ${ez(e.length)} bought`:"Buying your numbers"}),(0,n.jsx)("p",{className:"text-[13px] leading-[18px] text-muted-foreground",children:t?function(e,t,a=0){let n=e.filter(e=>"bought"===e.state).length,l=e.filter(e=>"failed"===e.state),s=t.trim()||"Your tracking number",r=a+n;if(0===l.length)return`${s} is working with ${r} ${ez(r)}.`;let i=e.findIndex(e=>"failed"===e.state),o=l.length>1?`${l.length} of them`:1===e.length?"It":eF[i]?`The ${eF[i]}`:"One of them",d=1===l.length?"didn't go through, so it wasn't charged.":"didn't go through, so they weren't charged.";return 0===n?a>0?`${s} is working with ${a} ${ez(a)}. ${o} ${d}`:`${s} is set up, but none of the numbers went through, so nothing was charged.`:`${s} is working with ${r} ${ez(r)}. ${o} ${d}`}(e,l,s):"This takes a few seconds. Each number is charged only once it's bought."})]}),(0,n.jsx)("div",{className:"px-6 pb-[22px] pt-3.5",children:(0,n.jsx)("ul",{className:"overflow-hidden rounded-[10px] border border-border bg-card",children:e.map(e=>(0,n.jsx)("li",{className:`flex items-start gap-3 border-b border-border px-4 py-3 last:border-b-0 ${"failed"===e.state?"bg-danger-bg":""}`,children:"failed"===e.state?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,n.jsx)("span",{className:"text-sm leading-5 font-semibold tabular-nums text-danger-ink line-through",children:J(e.e164)}),(0,n.jsx)("span",{className:"text-[13px] leading-[18px] text-danger-ink",children:e.error??"This number could not be bought."})]}),(0,n.jsx)("span",{className:"text-[13px] leading-5 font-medium text-danger-ink",children:"Not bought"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:`min-w-0 flex-1 text-sm leading-5 font-semibold tabular-nums ${"waiting"===e.state?"text-neutral-400":"text-foreground"}`,children:J(e.e164)}),(0,n.jsxs)("span",{className:`flex items-center gap-1.5 text-[13px] leading-5 font-medium ${"waiting"===e.state?"text-neutral-400":"text-neutral-700"}`,children:["bought"===e.state?(0,n.jsx)(M.A,{className:"size-3.5 text-success","aria-hidden":!0}):null,"buying"===e.state?(0,n.jsx)(eO.A,{className:"size-3.5 animate-spin","aria-hidden":!0}):null,"bought"===e.state?"Bought":"buying"===e.state?"Buying":"Waiting"]})]})},e.e164))})})]})}var eB=a(51380),eI=a(9480),eE=a(6921);let eP="text-[13px] leading-4 font-semibold text-neutral-700 underline decoration-neutral-300 underline-offset-[3px] hover:text-foreground";function eW({number:e,loading:t,error:a,onRegenerate:s,areaCode:r,onAreaCode:i,numberType:o,onNumberType:d,onSearch:c,name:x,onName:u,compact:h=!1,children:p}){let[f,g]=(0,l.useState)(!1),b=e?.number_type==="toll_free"?"Toll-free":e?[e.locality,e.regi
2on].filter(Boolean).join(", "):"";return(0,n.jsxs)("div",{className:"flex flex-col gap-3.5",children:[(0,n.jsx)("h2",{className:"text-[20px] leading-[26px] font-bold tracking-[-0.012em] text-foreground",children:"Your new number"}),(0,n.jsxs)("div",{className:"flex flex-col gap-3.5",children:[(0,n.jsxs)("div",{className:"relative overflow-hidden rounded-[14px] border border-border bg-card px-6 shadow-[0_1px_2px_rgba(20,24,27,0.04),0_6px_20px_rgba(20,24,27,0.06)]",children:[(0,n.jsxs)("svg",{"aria-hidden":!0,className:"pointer-events-none absolute -bottom-16 -right-10 size-48 text-neutral-200",viewBox:"0 0 100 100",fill:"none",stroke:"currentColor",strokeWidth:"0.6",children:[(0,n.jsx)("circle",{cx:"50",cy:"50",r:"48"}),(0,n.jsx)("circle",{cx:"50",cy:"50",r:"30"})]}),(0,n.jsxs)("div",{className:"relative flex flex-wrap items-center justify-between gap-3 py-[18px]",children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1 max-sm:basis-full",children:[t?(0,n.jsx)(eE.E,{className:"h-9 w-56"}):(0,n.jsx)("p",{className:"text-[26px] leading-9 font-bold whitespace-nowrap sm:text-[30px] tracking-[-0.015em] tabular-nums text-foreground",children:e?J(e.e164):"No number found"}),b&&!t?(0,n.jsxs)("p",{className:"flex items-center gap-1.5 text-[13.5px] leading-[18px] font-medium text-muted-foreground",children:[(0,n.jsx)(eB.A,{className:"size-3.5 text-neutral-400","aria-hidden":!0}),b]}):null]}),(0,n.jsxs)(m.$,{type:"button",variant:"outline",size:"sm",disabled:t,onClick:s,className:"h-8 shrink-0 text-[13px] font-semibold",children:[t?(0,n.jsx)(eO.A,{className:"animate-spin"}):(0,n.jsx)(eI.A,{className:"size-3.5"}),"Show another"]})]}),(0,n.jsxs)("div",{className:"relative flex flex-wrap items-center gap-x-5 gap-y-2 border-t border-border pt-3.5 pb-4",children:[(0,n.jsx)("button",{type:"button","aria-expanded":f,className:eP,onClick:()=>{d("local"),g(e=>"toll_free"===o||!e)},children:"Pick an area code"}),(0,n.jsx)("button",{type:"button",className:eP,onClick:()=>{g(!1),d("toll_free"===o?"local":"toll_free")},children:"toll_free"===o?"Use a local number instead":"Use toll-free instead"})]}),f&&"local"===o?(0,n.jsxs)("div",{className:"relative flex items-end gap-2 border-t border-border pt-3 pb-4",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,n.jsx)(D.J,{htmlFor:"tnum-area",className:"text-[13px] font-medium",children:"Area code"}),(0,n.jsx)(C.p,{id:"tnum-area",inputMode:"numeric",maxLength:3,value:r,onChange:e=>i(e.target.value.replace(/\D/g,"").slice(0,3)),className:"w-24 tabular-nums"})]}),(0,n.jsx)(m.$,{type:"button",variant:"outline",size:"sm",disabled:t,onClick:c,children:"Search"})]}):null]}),a?(0,n.jsx)("p",{className:"text-[13px] text-destructive",children:a}):null,a||t||e?null:(0,n.jsx)("p",{className:"text-[13px] text-muted-foreground",children:"No numbers are left in that area code. Pick another area code or use toll-free instead."}),h?null:(0,n.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,n.jsx)(D.J,{htmlFor:"tnum-name",className:"text-[13px] font-medium",children:"Name"}),(0,n.jsx)(C.p,{id:"tnum-name",value:x,maxLength:80,onChange:e=>u(e.target.value),className:"h-[38px] rounded-lg"})]}),h?null:p]})]})}var eR=a(46804),eH=a(99920),eK=a(32427),eU=a(79544),eY=a(88705),eG=a(45953);function eV({label:e,children:t}){return(0,n.jsx)(eY.Bc,{delayDuration:120,children:(0,n.jsxs)(eY.m_,{children:[(0,n.jsx)(eY.k$,{asChild:!0,children:(0,n.jsx)("button",{type:"button","aria-label":e,className:"text-neutral-400 hover:text-neutral-600",children:(0,n.jsx)(eR.A,{className:"size-3.5","aria-hidden":!0})})}),(0,n.jsx)(eY.ZI,{className:"max-w-65 py-2 leading-[17px] font-medium",children:t})]})})}function eq({name:e,onName:t,swapTarget:a,onSwapTarget:l,areas:s,inventory:r,tollFree:i,onTollFree:o,onAreaChange:d,onCountChange:x,onRemoveArea:u,onAddArea:h,geoMatch:m,onGeoMatch:p,compact:f=!1,note:g=null}){var b,j;let N,v,y,k,A=s.flatMap(e=>r[e.id]?.numbers??[]),$=s.reduce((e,t)=>e+t.count,0),S=s.some(e=>r[e.id]?.loading),T=s.some(e=>!!r[e.id]?.error),M=!S&&!T&&A.length<$,L=M?function(e,t){let a=(0,eG.A)(`${e}5550100`);if(!a)return null;for(let e=200;e<=999;e+=1){let n=String(e);if(!t.includes(n)&&(0,eG.A)(`${n}5550100`)===a)return n}return null}(s.find(e=>3===e.area.length)?.area??"",s.map(e=>e.area)):null,_=M?{tone:"warning",text:(b=A.length,j=i?null:L,v=1==(N=$-b)?"the last one":`the last ${N}`,y=j?`, like ${j}`:"",k=b>0?` Or go on with ${b}.`:"",`${b} of ${$} found. Add another area code for ${v}${y}.${k}`)}:g??{tone:"info",text:"Every pool starts with 4 numbers. Once visitors come in, we'll tell you if you need more."};return(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[f?null:(0,n.jsx)("h2",{className:"text-[20px] leading-[26px] font-bold tracking-[-0.012em] text-foreground",children:"Set up the pool"}),(0,n.jsxs)("div",{className:"flex flex-col gap-[18px]",children:[f?null:(0,n.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,n.jsx)(D.J,{htmlFor:"tnum-pool-name",className:"text-[13px] font-medium",children:"Name"}),(0,n.jsx)(C.p,{id:"tnum-pool-name",value:e,maxLength:80,onChange:e=>t(e.target.value),className:"h-[38px] rounded-lg"})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)(D.J,{htmlFor:"tnum-swap",className:"text-[13px] font-medium",children:"Your number on the site"}),(0,n.jsx)(eV,{label:"About your number on the site",children:"The phone number shown on your site, usually your main line. Each visitor sees their own pool number in its place."})]}),(0,n.jsx)(C.p,{id:"tnum-swap",inputMode:"tel",value:a,onChange:e=>l(K(e.target.value)),className:"h-[38px] rounded-lg tabular-nums"})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,n.jsx)("p",{className:"text-[13px] leading-4 font-medium text-foreground",children:i?"Toll-free":"Area codes"}),(0,n.jsx)("button",{type:"button",onClick:()=>o(!i),className:"text-[13px] leading-4 font-semibold text-neutral-700 underline underline-offset-2 hover:text-foreground",children:i?"Use area codes instead":"Use toll-free instead"})]}),(0,n.jsxs)("div",{className:"divide-y divide-border overflow-hidden rounded-[10px] border border-border bg-card",children:[s.map(e=>
2{let t=r[e.id],a=t?.numbers.length??0,l=t?.numbers[0]?[t.numbers[0].locality,t.numbers[0].region].filter(Boolean).join(", "):(0,eG.A)(`${e.area}5550100`),o=0===a?"none left":a<e.count?`only ${a} left`:`${a} found`;return(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3.5 gap-y-1.5 px-3.5 py-2.5 sm:flex-nowrap",children:[i?(0,n.jsx)("span",{className:"w-16 shrink-0 text-[14px] tabular-nums text-muted-foreground",children:"Toll-free"}):(0,n.jsx)(C.p,{"aria-label":"Area code",inputMode:"numeric",maxLength:3,value:e.area,onChange:t=>d(e.id,t.target.value.replace(/\D/g,"").slice(0,3)),className:"h-[34px] w-16 shrink-0 rounded-[7px] px-2.5 tabular-nums"}),(0,n.jsxs)("div",{className:"flex h-[34px] shrink-0 items-center rounded-[7px] border border-input",children:[(0,n.jsx)("button",{type:"button","aria-label":"One fewer number",onClick:()=>x(e.id,e.count-1),className:"flex h-full w-[30px] items-center justify-center text-muted-foreground hover:text-foreground",children:(0,n.jsx)(eH.A,{className:"size-3.5","aria-hidden":!0})}),(0,n.jsx)("span",{className:"w-7 text-center text-[14px] font-semibold tabular-nums",children:e.count}),(0,n.jsx)("button",{type:"button","aria-label":"One more number",onClick:()=>x(e.id,e.count+1),className:"flex h-full w-[30px] items-center justify-center text-muted-foreground hover:text-foreground",children:(0,n.jsx)(c.A,{className:"size-3.5","aria-hidden":!0})})]}),(0,n.jsx)("span",{className:"order-last min-w-0 basis-full text-[13px] leading-[18px] text-muted-foreground sm:order-none sm:basis-auto sm:flex-1",children:t?.loading?(0,n.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,n.jsx)(eO.A,{className:"size-3.5 animate-spin","aria-hidden":!0}),"Searching"]}):t?.error?(0,n.jsx)("span",{className:"text-destructive",children:t.error}):[l,o].filter(Boolean).join(" \xb7 ")}),s.length>1?(0,n.jsx)("button",{type:"button","aria-label":`Remove ${i?"toll-free":e.area}`,onClick:()=>u(e.id),className:"ml-auto shrink-0 text-neutral-400 hover:text-foreground sm:ml-0",children:(0,n.jsx)(w.A,{className:"size-3.5","aria-hidden":!0})}):null]},e.id)}),(0,n.jsxs)("button",{type:"button",onClick:h,className:"flex w-full items-center gap-1.5 px-3.5 py-[11px] text-left text-[13px] font-semibold text-neutral-700 hover:text-foreground",children:[(0,n.jsx)(c.A,{className:"size-3.5","aria-hidden":!0}),"Add an area code"]})]}),(0,n.jsxs)("p",{role:"warning"===_.tone?"status":void 0,className:`flex items-center gap-2.5 rounded-lg px-3 py-2.5 text-[13px] leading-[18px] font-medium ${"warning"===_.tone?"bg-warning-bg text-warning-ink":"bg-info-bg text-info-ink"}`,children:["warning"===_.tone?(0,n.jsx)(eK.A,{className:"size-4 shrink-0 text-warning","aria-hidden":!0}):(0,n.jsx)(eR.A,{className:"size-4 shrink-0 text-info","aria-hidden":!0}),_.text]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("p",{className:"text-[13px] leading-4 font-medium text-foreground",children:"Your new numbers"}),S&&0===A.length?(0,n.jsx)("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4","aria-hidden":!0,children:Array.from({length:Math.min($,4)},(e,t)=>(0,n.jsx)(eE.E,{className:"h-[58px] rounded-lg"},t))}):(0,n.jsx)("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",children:A.map(e=>(0,n.jsxs)("div",{className:"flex flex-col gap-0.5 rounded-lg border border-border bg-card px-3 py-2.5",children:[(0,n.jsx)("span",{className:"text-[13.5px] leading-[18px] font-semibold tabular-nums text-foreground",children:J(e.e164)}),(0,n.jsx)("span",{className:"truncate text-xs leading-4 text-muted-foreground",children:"toll_free"===e.number_type?"Toll-free":[e.locality,e.region].filter(Boolean).join(", ")})]},e.e164))})]}),f?null:(0,n.jsxs)("div",{className:"flex items-center gap-4 pt-0.5",children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)(D.J,{htmlFor:"tnum-geo",className:"text-sm font-medium text-foreground",children:"Match the area code to the visitor"}),(0,n.jsx)("p",{className:"text-[13px] leading-[18px] text-muted-foreground",children:"Each visitor sees the nearer number. Read from their city. No address is kept."})]}),(0,n.jsx)(eU.Switch,{id:"tnum-geo",checked:m,onCheckedChange:p})]})]})]})}var eZ=a(16260),eJ=a(6358),eX=a(71058),eQ=a(89816),e0=a(43496),e1=a(24455);function e2({websiteId:e,query:t,onQuery:a,value:s,onChange:r,otherLabel:i,onOtherLabel:o}){let[d,c]=(0,l.useState)(!1),x=(0,l.useRef)(null),u=(0,l.useRef)(null),h=""!==t.trim(),m=(0,e1.Hf)(t),p=(0,e1.x2)(m).filter(e=>h||d||e1.Gl.includes(e.group)),f=s===e1.Dn;function g(){r(e1.Dn),requestAnimationFrame(()=>u.current?.focus())}return(0,l.useEffect)(()=>{function e(e){var t;
2"/"===e.key&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&((t=e.target)instanceof HTMLElement&&(t.isContentEditable||["INPUT","TEXTAREA","SELECT"].includes(t.tagName))||(e.preventDefault(),x.current?.focus()))}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]),(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsx)("h2",{className:"text-[20px] leading-[26px] font-bold tracking-[-0.012em] text-foreground",children:"Where exactly?"}),(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(eZ.A,{className:"pointer-events-none absolute left-3 top-1/2 size-[15px] -translate-y-1/2 text-neutral-400","aria-hidden":!0}),(0,n.jsx)(C.p,{ref:x,type:"search","aria-label":"Search sources",placeholder:"Search, like Nextdoor or billboard",value:t,onChange:e=>a(e.target.value),className:"h-[38px] rounded-lg border-input pl-9 pr-10 [&::-webkit-search-cancel-button]:hidden"}),(0,n.jsx)("kbd",{"aria-hidden":!0,className:"pointer-events-none absolute right-2.5 top-1/2 flex size-[22px] -translate-y-1/2 items-center justify-center rounded-[5px] border border-b-2 border-input bg-neutral-50 text-xs font-semibold text-muted-foreground max-md:hidden",children:"/"})]}),0===p.length?(0,n.jsx)("p",{className:"py-6 text-center text-[13px] text-muted-foreground",children:"No source matches that."}):null,p.map(t=>(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("p",{className:"text-[11px] leading-[14px] font-semibold uppercase tracking-[0.06em] text-neutral-400",children:t.label}),(0,n.jsx)("div",{role:"radiogroup","aria-label":t.label,className:"grid grid-cols-1 gap-2 min-[420px]:grid-cols-2 sm:grid-cols-3",children:t.options.map(e=>(0,n.jsx)(e5,{id:e.id,label:(0,e1.Zl)(e),icon:e.icon,selected:s===e.id,onSelect:r},e.id))}),s===e1.iY&&t.options.some(e=>e.id===e1.iY)?(0,n.jsx)(e3,{websiteId:e}):null]},t.group)),h?null:(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[(0,n.jsx)("button",{type:"button",onClick:()=>c(e=>!e),className:"text-[13px] font-semibold text-neutral-700 underline underline-offset-[3px] hover:text-foreground",children:d?"Show fewer":"Show every place"}),f?null:(0,n.jsx)("button",{type:"button",onClick:g,className:"text-[13px] font-semibold text-neutral-700 underline underline-offset-[3px] hover:text-foreground",children:"Something else? Name it"})]}),h&&0===p.length&&!f?(0,n.jsx)("button",{type:"button",onClick:g,className:"w-fit text-[13px] font-semibold text-neutral-700 underline underline-offset-[3px] hover:text-foreground",children:"Something else? Name it"}):null,f?(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)("p",{className:"text-[11px] leading-[14px] font-semibold uppercase tracking-[0.06em] text-neutral-400",children:"Something else"}),(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(eJ.A,{className:"pointer-events-none absolute left-3 top-1/2 size-[18px] -translate-y-1/2 text-neutral-700","aria-hidden":!0}),(0,n.jsx)(C.p,{ref:u,id:"tnum-other-source","aria-label":"Source name",value:i,maxLength:80,onChange:e=>o(e.target.value),className:"h-11 rounded-lg pl-10 pr-10 text-[13.5px] font-medium"}),i.trim()?(0,n.jsx)(M.A,{className:"pointer-events-none absolute right-3.5 top-1/2 size-4 -translate-y-1/2 text-foreground","aria-hidden":!0}):null]}),(0,n.jsx)("p",{className:"text-[12.5px] text-muted-foreground",children:"This name shows on your call log and reports."})]}):null]})]})}function e3({websiteId:e}){let t=(0,i.I)({queryKey:f.qk.googleProfile.settings(e),queryFn:()=>(0,eQ.Rb)(e,"settings")});if(t.isPending)return(0,n.jsx)(eE.E,{className:"h-9 w-full max-w-[520px]"});let a=t.data;if(!a)return null;let l=a.settings.tracking_link??{},s=a.listings.some(e=>l[e.id]?.status==="written"),r=a.listings.map(e=>l[e.id]).find(e=>e?.status==="kept_foreign")??null,o=a.website,d=o?.subdomain?(0,A.El)(o.subdomain,o.custom_domain,o.domain_verified):null;return(0,n.jsx)(e0.i,{tagged:s,foreignHost:(0,eX.gE)(r),inputLabel:"Tagged Google Business Profile link",link:d&&URL.canParse(d)?(0,eX.S1)(d,(0,eX.yf)(null,o?.subdomain??"")):null})}function e5({id:e,label:t,icon:a,selected:l,onSelect:s}){return(0,n.jsxs)("button",{type:"button",role:"radio","aria-checked":l,onClick:()=>s(e),className:`flex h-[42px] min-w-0 items-center gap-2.5 rounded-lg px-3 text-left transition-colors ${l?"border-[1.5px] border-foreground bg-card":"border border-input bg-card hover:border-neutral-400 hover:bg-secondary"}`,children:[(0,n.jsx)(a,{className:"size-[18px] shrink-0 text-neutral-700","aria-hidden":!0}),(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate text-[13.5px] font-medium text-foreground",children:t}),l?(0,n.jsx)(M.A,{className:"size-4 shrink-0 text-foreground","aria-hidden":!0}):null]})}a(16749);let e4={enter:e=>({x:32*e,opacity:0,scale:.985,filter:"blur(4px)"}),center:{x:0,opacity:1,scale:1,filter:"blur(0px)"},exit:e=>({x:-32*e,opacity:0,scale:.985,filter:"blur(4px)"})},e6={value:"elsewhere",label:"Somewhere else",hint:"A truck, a yard sign, a Facebook page or a radio spot. One number for one place, so every call to it came from there.",icon:j.A},e7=[{value:"pool",label:"Where each caller came from",hint:`A small pool of numbers, one per visitor. Eac
2h call shows the search, ad, keyword and page that brought them. From ${el(4*F.U.numberRentCents)} a month.`},{value:"dedicated",label:"Only that it came from your site",hint:`One number on every page. Each call says Website, nothing more. ${el(F.U.numberRentCents)} a month.`}],e8=()=>globalThis.crypto?.randomUUID?.()??`${Date.now()}-${Math.random().toString(36).slice(2)}`;function e9({websiteId:e,payload:t,existingTracker:a,siteHost:s,onClose:r,onCreated:i}){let o=!!a,[d,c]=(0,l.useState)(!1),x=o||d,u=a?Q(a).length:0,h=a?.health?ej(a.health,u):null,p=Z(t.mainLine?.e164??""),f=K(t.mainLine?.e164??""),[j,M]=(0,l.useState)(s?"website":"other_site"),[L,_]=(0,l.useState)(""),[O,z]=(0,l.useState)(!1),[D,B]=(0,l.useState)("pool"),[I,E]=(0,l.useState)(""),[P,W]=(0,l.useState)(""),[R,Y]=(0,l.useState)(""),[J,X]=(0,l.useState)(a?.name??"Website"),[ee,et]=(0,l.useState)(!1),[ea,en]=(0,l.useState)(f),[es,er]=(0,l.useState)(!0),[ei,eo]=(0,l.useState)(!1),[ed,ec]=(0,l.useState)("main_line"),[ex,eu]=(0,l.useState)(f),[eh,ep]=(0,l.useState)(()=>{var e;return e=t.textTargets,e.find(e=>e.isOwner)?.id??G}),[ef,eg]=(0,l.useState)(""),[eb,eN]=(0,l.useState)(null),[ev,ew]=(0,l.useState)(null),[ey,ek]=(0,l.useState)(()=>[a?{id:e8(),area:function(e){let t=[];for(let a of Q(e)){let e=Z(a.e164);e&&!t.includes(e)&&t.push(e)}return t.sort()}(a)[0]??p,count:Math.min(Math.max(h?.add??2,1),30)}:{id:e8(),area:p,count:4}]),[eC,eA]=(0,l.useState)({}),[e$,eS]=(0,l.useState)([]),[eM,eL]=(0,l.useState)(0),[e_,eO]=(0,l.useState)(p),[eF,ez]=(0,l.useState)("local"),[eB,eI]=(0,l.useState)(!1),[eE,eP]=(0,l.useState)(null),[eR,eH]=(0,l.useState)(0),[eK,eU]=(0,l.useState)(0),[eY,eG]=(0,l.useState)(1),[eV,eZ]=(0,l.useState)("form"),[eJ,eX]=(0,l.useState)([]),[eQ,e0]=(0,l.useState)(u),[e3,e5]=(0,l.useState)(null),te=(0,l.useRef)(a?.id??null),tt=(0,l.useMemo)(()=>o?["pool"]:d?["elsewhere"!==j&&"pool"===D?"pool":"number"]:"elsewhere"===j?["where","source","number"]:["where","track","pool"===D?"pool":"number","destinations"],[o,d,j,D]),ta=tt[Math.min(eK,tt.length-1)],tn="elsewhere"!==j,tl=o||tn&&"pool"===D,ts=tn&&!o?e1.wK:(0,e1.hG)(I),tr="other_site"===j?function(e){let t=e.trim(),a=null;try{a=new URL(t.includes("://")?t:`https://${t}`)}catch{a=null}if(a&&"https:"!==a.protocol)return{error:`"${t}" isn't an https address. Use the https:// address of the page.`};let n=a?.hostname.toLowerCase()??"";return!a||!n.includes(".")||n.startsWith(".")||n.endsWith(".")?{error:`"${t}" isn't a website address.`}:!function(e){if(S.some(t=>e===t||e.endsWith(`.${t}`)))return!0;let t=(0,A.GY)().replace(/\/+$/,"").split("/")[0].split(":")[0].toLowerCase();if(t&&(e===t||e.endsWith(`.${t}`))||"production"!==$.env.VERCEL_ENV&&(e.endsWith(".vercel.app")||e.endsWith(".vercel.dev"))||e.endsWith(".vercel.app")||e.endsWith(".vercel.dev"))return!0;let a=function(e){let t=(e??"").trim();if(!t||"null"===t)return null;try{let e=new URL(t.includes("://")?t:`https://${t}`);if("https:"!==e.protocol&&"http:"!==e.protocol)return null;return e.origin.toLowerCase()}catch{return null}}("https://app.pagesforpros.com"),n=a?function(e){try{return new URL(e).hostname.toLowerCase()}catch{return""}}(a):"";return!!n&&(e===n||e.endsWith(`.${n}`))}(n)?{origin:a.origin.toLowerCase()}:{error:`"${t}" is a PagesForPros address and can't be added. Add your own website's address.`}}(L):null,ti=tr&&"origin"in tr?tr.origin:null,to=em(ti),td=tr&&"error"in tr&&O&&L.trim()?tr.error:null,tc=I===e1.Dn?P.trim():ts?.label??"";(0,l.useEffect)(()=>{ee||o||d||("website"===j?X("Website"):"other_site"===j?X(to??"Website"):tc&&X(tc))},[o,d,ee,j,tc,to]);let tx=(0,l.useCallback)(async t=>{let a=new URLSearchParams({count:String(t.count),type:t.type});"local"===t.type&&a.set("area",t.area);let n=await fetch(`/api/websites/${e}/marketing/tracking/inventory?${a.toString()}`,{cache:"no-store"}),l=await n.json().catch(()=>null);if(!n.ok)throw Error(l?.error??"Number search failed. Try again in a moment.");return l?.numbers??[]},[e]),tu=JSON.stringify({areas:ey,tollFree:ei,nonce:eR});(0,l.useEffect)(()=>{if("pool"!==ta)return;let e=!1,t=setTimeout(()=>{for(let t of ey){if(!ei&&3!==t.area.length){eA(e=>({...e,[t.id]:{numbers:[],loading:!1,error:null}}));continue}eA(e=>({...e,[t.id]:{numbers:e[t.id]?.numbers??[],loading:!0,error:null}})),tx({area:t.area,count:t.count,type:ei?"toll_free":"local"}).then(a=>{e||eA(e=>({...e,[t.id]:{numbers:a,loading:!1,error:null}}))}).catch(a=>{e||eA(e=>({...e,[t.id]:{numbers:[],loading:!1,error:a.message}}))})}},350);return()=>{e=!0,clearTimeout(t)}},[ta,tu,tx]),(0,l.useEffect)(()=>
2{if("number"!==ta||"local"===eF&&3!==e_.length)return;let e=!1;return eI(!0),eP(null),tx({area:e_,count:5,type:eF}).then(t=>{e||(eS(t),eL(0),eI(!1))}).catch(t=>{e||(eS([]),eP(t.message),eI(!1))}),()=>{e=!0}},[ta,e_,eF,eR,tx]);let th=e$[eM]??null,tm=(0,l.useMemo)(()=>tl?ey.flatMap(e=>eC[e.id]?.numbers??[]):th?[th]:[],[ey,eC,tl,th]),tp=(0,l.useMemo)(()=>({local:tm.filter(e=>"local"===e.number_type).length,tollFree:tm.filter(e=>"toll_free"===e.number_type).length}),[tm]),tf=tm.length>0&&0===tp.local,tg=null===eb&&(tf||null===ev)&&("main_line"===ed||10===H(ex).length)&&(tf||q(eh,ef)),tb=(()=>{if("where"===ta)return"other_site"!==j||null!==ti;if("track"===ta)return!0;if("source"===ta)return!!ts&&(I!==e1.Dn||P.trim().length>0);if("pool"===ta)return x?tm.length>0:J.trim().length>0&&10===H(ea).length&&tm.length>0;if("number"===ta){if(d)return tm.length>0;let e=J.trim().length>0&&tm.length>0;return"elsewhere"===j?e&&tg:e}return tg})(),tj=eK===tt.length-1;function tN(e){eG(e>eK?1:-1),eU(e)}async function tv(){eZ("buying"),e5(null),eX(tm.map(e=>({e164:e.e164,state:"waiting"})));let a=te.current;if(!a)try{let n=await fetch(`/api/websites/${e}/marketing/tracking`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({kind:tl?"pool":"dedicated",name:J.trim(),source_kind:ts?.kind??"other",channel:tl?null:tc||null,paid:ts?.paid??!1,swap_target_digits:tl?H(ea):null,geo_match:!!tl&&es,..."other_site"===j&&ti?{external_domains:[ti]}:{},routing:{mode:ed,forward_e164:"forward"===ed?U(ex):null,text_forward_e164:tf?null:V(eh,ef,t.textTargets)}})}),l=await n.json().catch(()=>null);if(!n.ok||!l?.tracker){e5(l?.error??"The tracking number could not be created."),eZ("done");return}te.current=a=l.tracker.id}catch{e5("The tracking number could not be created."),eZ("done");return}for(let t of tm){eX(e=>e.map(e=>e.e164===t.e164?{...e,state:"buying"}:e));try{let n=await fetch(`/api/websites/${e}/marketing/tracking/${a}/numbers`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({e164:t.e164,purchase_key:e8(),type:t.number_type})}),l=await n.json().catch(()=>null);eX(e=>e.map(e=>e.e164===t.e164?n.ok?{...e,state:"bought"}:{...e,state:"failed",error:l?.error??"This number could not be bought."}:e))}catch{eX(e=>e.map(e=>e.e164===t.e164?{...e,state:"failed",error:"This number could not be bought."}:e))}}eZ("done")}let tw=eJ.filter(e=>"bought"===e.state).length,ty=eJ.filter(e=>"failed"===e.state).length,tk="form"===eV?(eK+1)/tt.length:1,tC=a?.name??J,tA=tm.length,t$=o?tA>0?`Add ${tA} ${1===tA?"number":"numbers"}`:"Add numbers":tl?tA>0?`Buy ${tA} ${1===tA?"number":"numbers"}`:"Buy numbers":"Buy this number",tS=d?{tone:"info",text:"Pick numbers to take the place of the ones that didn't go through."}:a?h?{tone:"warning",text:h.text}:a.health?{tone:"info",text:`Your ${u} ${1===u?"number covers":"numbers cover"} your busiest half hour. Add more before a new ad or a busy season.`}:{tone:"info",text:`Your pool has ${u} ${1===u?"number":"numbers"}. Add more before a new ad or a busy season.`}:null,tT=o?`${el(tf?F.U.tollFreeRentCents:F.U.numberRentCents)} a month each`:null,tM=x?`Add numbers to ${tC}`:"Create a tracking number",tL=(0,n.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,n.jsx)("label",{htmlFor:"tnum-other-site",className:"text-[13px] leading-4 font-medium text-foreground",children:"Website address"}),(0,n.jsx)(C.p,{id:"tnum-other-site",value:L,placeholder:"yoursite.com",autoFocus:!0,autoComplete:"off",autoCapitalize:"none",spellCheck:!1,inputMode:"url","aria-invalid":!!td||void 0,onChange:e=>_(e.target.value),onBlur:()=>z(!0),className:"h-9 md:text-sm"}),td?(0,n.jsx)("p",{role:"alert",className:"text-[12.5px] leading-[18px] text-destructive",children:td}):null]}),t_=[...s?[{value:"website",label:`On ${s}`,hint:"Your PagesForPros site. It's already set up, so there is nothing to install.",icon:N.A}]:[],{value:"other_site",label:s?"On another website":"On your website",hint:"Hosted somewhere else, like WordPress or Wix. You'll paste one line into it.",icon:v.A,field:tL},e6];return(0,n.jsx)(k.lG,{open:!0,onOpenChange:e=>!e&&"buying"!==eV&&r(),children:(0,n.jsxs)(k.Cf,{showCloseButton:!1,onOpenAutoFocus:e=>{e.preventDefault(),e.currentTarget?.focus()},onEscapeKeyDown:e=>{if("buying"===eV)return void e.preventDefault();let t=e.target;t?.hasAttribute?.("data-number-entry")?e.preventDefault():R&&t?.matches?.('input[type="search"]')&&(e.preventDefault(),Y(""))},onInteractOutside:e=>"buying"===eV&&e.preventDefault(),className:"tnum max-h-[90dvh] gap-0 overflow-hidden rounded-xl p-0 outline-none sm:max-w-[640px]",children:[(0,n.jsx)(k.L3,{className:"sr-only",children:"form"===eV?tM:"Buying your numbers"}),(0,n.jsx)(k.rr,{className:"sr-only",children:o?"Buy more numbers for this pool.":"Create a tracking number and choose where its calls and texts go."}),"form"===eV?(0,n.jsxs)("div",{className:"flex flex-col gap-3.5 px-6 pt-5",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("p",{className:"min-w-0 flex-1 truncate text-base leading-[22px] font-semibold text-foreground",children:tM}),x?null:(0,n.jsxs)("p",{className:"text-[13px] leading-[18px] tabular-nums text-muted-foreground",children:["Step ",eK+1," of ",tt.length]}),(0,n.jsx)("button",{type:"button","aria-label":"Close",onClick:r,className:"shrink-0 text-muted-foreground hover:text-foreground",children:(0,n.jsx)(w.A,{className:"size-4",strokeWidth:2.4,"aria-hidden":!0})})]}),x?null:(0,n.jsx)("div",{className:"h-[3px] w-full overflow-hidden rounded-full bg-border",children:(0,n.jsx)("div",{className:"h-full w-full origin-left rounded-full bg-foreground transition-transform duration-200",style:{transform:`scaleX(${tk})`}})})]}):null,(0,n.jsx)("div",{className:`tnum-steps max-h-[64dvh] overflow-y-auto ${"form"===eV?"px-6 py-6":""}`,children:(0,n.jsx)(g.N,{mode:"wait",initial:!1,custom:eY,children:(0,n.jsx)(b.P.div,{custom:eY,variants:e4,initial:"enter",animate:"center",exit:"exit",transition:{duration:.32,ease:[.22,1,.36,1]},children:"form"!==eV?(0,n.jsx)(eD,{rows:eJ,done:"done"===eV,trackerError:e3,name:J,already:eQ}):"where"===ta?(0,n.jsx)(T,{title:"Where will people see this number?",name:"tnum-placement",choices:t_,value:j,onChange:M}):"track"===ta?(0,n.jsx)(T,{title:"What should each call tell you?",name:"tnum-track",choices:e7,value:D,onChange:B}):"source"===ta?(0,n.jsx)(e2,{websiteId:e,query:R,onQuery:Y,value:I,onChange:E,otherLabel:P,onOtherLabel:W}):"pool"===ta?(0,n.jsx)(eq,{compact:x,note:tS,name:J,onName:e=>{et(!0),X(e)},swapTarget:ea,onSwapTarget:en,areas:ey,inventory:eC,tollFree:ei,onTollFree:eo,onAreaChange:(e,t)=>
2ek(a=>a.map(a=>a.id===e?{...a,area:t}:a)),onCountChange:(e,t)=>ek(a=>a.map(a=>a.id===e?{...a,count:Math.min(Math.max(t,1),30)}:a)),onRemoveArea:e=>ek(t=>t.filter(t=>t.id!==e)),onAddArea:()=>ek(e=>[...e,{id:e8(),area:"",count:2}]),geoMatch:es,onGeoMatch:er}):"number"===ta?(0,n.jsx)(eW,{compact:d,number:th,loading:eB,error:eE,onRegenerate:function(){eM+1<e$.length?eL(eM+1):eH(e=>e+1)},areaCode:e_,onAreaCode:eO,numberType:eF,onNumberType:ez,onSearch:()=>eH(e=>e+1),name:J,onName:e=>{et(!0),X(e)},children:"elsewhere"===j?(0,n.jsx)(eT,{mode:ed,onMode:ec,forward:ex,onForward:eu,callDraft:eb,onCallDraft:eN,mainLine:f,textTargets:t.textTargets,textChoice:eh,onTextChoice:ep,textOther:ef,onTextOther:eg,textDraft:ev,onTextDraft:ew,counts:tp,tollFreeOnly:tf}):null}):(0,n.jsx)(eT,{heading:"Where should calls and texts go?",mode:ed,onMode:ec,forward:ex,onForward:eu,callDraft:eb,onCallDraft:eN,mainLine:f,textTargets:t.textTargets,textChoice:eh,onTextChoice:ep,textOther:ef,onTextOther:eg,textDraft:ev,onTextDraft:ew,counts:tp,tollFreeOnly:tf})},"form"===eV?ta:"buying")})}),"buying"===eV?null:(0,n.jsxs)("div",{className:"flex flex-wrap items-center justify-end gap-2 border-t border-border px-6 py-3.5",children:[tT&&"form"===eV?(0,n.jsx)("p",{className:"max-sm:basis-full flex-1 text-[13px] leading-[18px] tabular-nums text-muted-foreground",children:tT}):null,"form"===eV&&eK>0?(0,n.jsx)("div",{className:"flex flex-1 items-center",children:(0,n.jsxs)(m.$,{type:"button",variant:"ghost",size:"sm",onClick:()=>tN(eK-1),className:"-ml-1.5 px-2.5 text-[13px] font-semibold text-neutral-700",children:[(0,n.jsx)(y.A,{className:"size-[15px]"}),"Back"]})}):null,"done"===eV?(0,n.jsxs)(n.Fragment,{children:[ty>0&&!e3?(0,n.jsx)(m.$,{type:"button",variant:"outline",size:"sm",onClick:function(){let e=eJ.filter(e=>"failed"===e.state);if(e0(e=>e+tw),tl){let t=new Map;for(let a of e){let e=Z(a.e164);t.set(e,(t.get(e)??0)+1)}ek([...t].map(([e,t])=>({id:e8(),area:e,count:t})))}eA({}),eS([]),eX([]),c(!0),eG(-1),eU(0),eZ("form")},className:"text-[13px] font-semibold",children:"Get a different number"}):null,(0,n.jsx)(m.$,{type:"button",size:"sm",className:"text-[13px] font-bold",onClick:()=>{let e=te.current,t=eQ+tw;e&&!e3?"other_site"===j&&tl&&!o&&t>0?i(e,{paste:{count:t}}):i(e):r()},children:"Done"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.$,{type:"button",variant:"ghost",size:"sm",onClick:r,className:"px-3.5 text-[13px] font-semibold text-neutral-700",children:"Cancel"}),(0,n.jsx)(m.$,{type:"button",size:"sm",disabled:!tb,className:"text-[13px] font-bold",onClick:()=>tj?void tv():tN(eK+1),children:tj?t$:"Continue"})]})]})]})})}var te=a(41671);let tt=[{title:"One number for each place you advertise",body:"Put it on your truck, a flyer or an ad. Every call to it is counted there."},{title:"Your website shows each visitor their own number",body:"We know which ad or search brought them, so when they call, the call keeps that source."},{title:"Visitors keep their number for 30 minutes",body:"Counted from when they leave your site. Two visitors at the same time need two numbers."},{title:"We size each website pool for your busiest half hour",body:"Plus half again. When a pool is too small, visitors share numbers and we can't tell which ad a call came from. That's when a row says \"Needs 2 more numbers\"."}];function ta({children:e,align:t="start"}){return(0,n.jsxs)(te.AM,{children:[(0,n.jsx)(te.Wv,{asChild:!0,children:e}),(0,n.jsxs)(te.hl,{align:t,className:"flex w-[min(420px,calc(100vw-32px))] flex-col gap-4 roun
2ded-xl px-5 pt-5 pb-5.5",children:[(0,n.jsx)("h2",{className:"text-[15px] leading-5 font-bold text-foreground",children:"How tracking numbers work"}),tt.map((e,t)=>(0,n.jsxs)("div",{className:"flex gap-3",children:[(0,n.jsx)("span",{className:"grid size-[22px] flex-none place-items-center rounded-full bg-neutral-800 text-xs leading-[14px] font-bold text-white",children:t+1}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-[3px]",children:[(0,n.jsx)("p",{className:"text-[13.5px] leading-[18px] font-semibold text-foreground",children:e.title}),(0,n.jsx)("p",{className:"text-[13px] leading-[18px] text-neutral-500",children:e.body})]})]},e.title))]})]})}var tn=a(41143),tl=a(69900),ts=a(56119);let tr=[{key:"truck",label:"Vehicle wrap",left:3.9,top:8,icon:(0,n.jsx)(tn.A,{className:"size-5 text-neutral-700","aria-hidden":!0})},{key:"ads",label:"Google Ads",left:3.9,top:80,icon:(0,n.jsx)(ts.vv,{className:"size-5"})},{key:"facebook",label:"Facebook",left:83.9,top:8,icon:(0,n.jsx)(ts.I3,{className:"size-5"})},{key:"website",label:"Website",left:83.9,top:80,icon:(0,n.jsx)(N.A,{className:"size-5 text-neutral-700","aria-hidden":!0})}];function ti({canManage:e,onCreate:t,deactivatedCount:a=0,onShowDeactivated:l}){return(0,n.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col items-center justify-center gap-7 px-6 pt-10 pb-20 sm:px-10",children:[(0,n.jsxs)("div",{className:"relative h-[132px] w-[360px] max-w-full flex-none","aria-hidden":!e||void 0,children:[(0,n.jsx)("svg",{viewBox:"0 0 360 132",preserveAspectRatio:"none",className:"absolute inset-0 size-full","aria-hidden":!0,children:(0,n.jsxs)("g",{fill:"none",stroke:"var(--neutral-300)",strokeWidth:"1.5",strokeDasharray:"4 4",vectorEffect:"non-scaling-stroke",children:[(0,n.jsx)("path",{d:"M58 30 C 120 30, 130 66, 180 66"}),(0,n.jsx)("path",{d:"M58 102 C 120 102, 130 66, 180 66"}),(0,n.jsx)("path",{d:"M302 30 C 240 30, 230 66, 180 66"}),(0,n.jsx)("path",{d:"M302 102 C 240 102, 230 66, 180 66"})]})}),tr.map(a=>{let l="absolute grid size-11 place-items-center rounded-full border border-neutral-200 bg-card shadow-[0_2px_6px_rgba(20,24,27,0.06)]";return e?(0,n.jsx)("button",{type:"button","aria-label":`Create a number for ${a.label}`,onClick:t,className:`${l} transition-transform hover:scale-105 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none`,style:{left:`${a.left}%`,top:a.top},children:a.icon},a.key):(0,n.jsx)("span",{className:l,style:{left:`${a.left}%`,top:a.top},children:a.icon},a.key)}),(0,n.jsx)("span",{className:"absolute grid size-16 place-items-center rounded-full bg-neutral-800 shadow-[0_8px_20px_rgba(20,24,27,0.18)]",style:{left:"41.1%",top:34},children:(0,n.jsx)(L.A,{className:"size-[26px] text-white","aria-hidden":!0})})]}),(0,n.jsxs)("div",{className:"flex max-w-[480px] flex-col items-center gap-2.5 text-center",children:[(0,n.jsx)("h2",{className:"text-2xl leading-[30px] font-bold tracking-[-0.015em] text-foreground",children:"See which ads make your phone ring"}),(0,n.jsx)("p",{className:"text-[14.5px] leading-[22px] text-neutral-500",children:"Give each place you advertise its own number. Every call shows where it came from, which job it turned into and what that job earned."})]}),(0,n.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2.5",children:[e?(0,n.jsxs)(m.$,{type:"button",onClick:t,className:"h-[38px] gap-1.5 px-4 text-[13.5px] font-bold",children:[(0,n.jsx)(c.A,{className:"size-[15px]",strokeWidth:2.4,"aria-hidden":!0}),a>0?"Create number":"Create your first number"]}):null,(0,n.jsx)(ta,{align:"center",children:(0,n.jsxs)(m.$,{type:"button",variant:"outline",className:"h-[38px] gap-1.5 px-3.5 text-[13.5px] font-semibold",children:[(0,n.jsx)(d.A,{className:"size-[15px]","aria-hidden":!0}),"How it works"]})})]}),e?(0,n.jsx)("p",{className:"text-[12.5px] leading-4 text-neutral-400",children:`From ${el(F.U.numberRentCents)} a month per number.`}):null,a>0&&l?(0,n.jsxs)("button",{type:"button",onClick:l,className:"inline-flex items-center gap-1 text-[13px] leading-4 font-semibold text-neutral-500 hover:text-foreground",children:[`${a} deactivated`,(0,n.jsx)(tl.A,{className:"size-3.5 text-neutral-400","aria-hidden":!0})]}):null]})}var to=a(37866),td=a.n(to),tc=a(47966),tx=a(22259),tu=a(71519);function th({index:e,missedHref:t,missedName:a,timeZone:l,stale:s}){let r,{totals:i,series:o,range:d,missedLatest:c}=e,x=function(e,t,a,n){if(!e||!t)return null;let l=Date.now()-Date.parse(e)>=6048e5?ex(e,n):ec(e);return l?`${1===a?"It was":"The latest was"} ${l}, on ${t}`:null}(c?.at,a,i.missedOpen,l);return(0,n.jsxs)("section",{"aria-label":"Earned from tracked calls","aria-busy":s,className:(0,tu.cn)("flex flex-col gap-6 border-b border-neutral-200 px-5 pt-7 pb-6 transition-opacity lg:flex-row lg:justify-between",s&&"opacity-60"),children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-col gap-3.5",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,n.jsx)("p",{className:"text-[13px] leading-4 font-medium text-neutral-500",children:`Earned from tracked calls in the last ${d} days`}),(0,n.jsx)("p",{className:"text-[44px] leading-[50px] font-bold tracking-[-0.025em] text-foreground tabular-nums",children:eo(i.earnedCents)}),(0,n.jsxs)("p",{className:"flex flex-wrap items-baseline gap-x-1.5 text-sm leading-[18px] text-neutral-500",children:[(0,n.jsx)(tm,{n:i.jobs,word:"job",suffix:"booked"}),(0,n.jsx)(tp,{}),(0,n.jsx)(tm,{n:i.newCallers,word:"new caller"})]})]}),i.missedOpen>0?(0,n.jsxs)("div",{className:"mt-1 flex w-fit max-w-full items-center gap-3.5 rounded-[10px] bg-warning-bg py-3 pr-3 pl-4",children:[(0,n.jsx)(tc.A,{className:"size-[18px] flex-none text-warning-ink","aria-hidden":!0}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,n.jsx)("p",{className:"text-[13.5px] leading-[17px] font-semibold text-warning-ink",children:(r=i.missedOpen,`${ed(r,"missed call")} nobody called back`)}),x?(0,n.jsx)("p",{className:"text-[12.5px] leading-4 text-warning-ink",children:x}):null]}),(0,n.jsx)(td(),{href:t,className:"flex h-8 flex-none items-center rounded-[7px] border border-[#
2E8D3A6] bg-card px-3 text-[13px] leading-4 font-semibold text-warning-ink",children:1===i.missedOpen?"See it":"See them"})]}):null]}),(0,n.jsx)("div",{className:"w-full flex-none lg:w-[393px]",children:(0,n.jsx)(tx.U,{current:o.current,prior:o.prior,startLabel:eu(o.days[0]),changePct:o.changePct,legend:eg(d),emptyLabel:eb(d),height:146})})]})}function tm({n:e,word:t,suffix:a}){let[l,...s]=ed(e,t).split(" ");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"font-semibold text-foreground tabular-nums",children:l}),(0,n.jsx)("span",{children:`${s.join(" ")}${a?` ${a}`:""}`})]})}let tp=()=>(0,n.jsx)("span",{"aria-hidden":!0,className:"px-1 text-neutral-300",children:"\xb7"}),tf=["NEW CALLERS","JOBS","EARNED","MISSED"],tg=["tn-c-callers","tn-c-jobs","tn-c-earned","tn-c-missed"];function tb({rows:e,canManage:t,siteHost:a,timeZone:l,mode:s,deactivatedCount:r,onOpen:i,onAddNumbers:o,onShowDeactivated:d,onShowActive:c}){let x="deactivated"===s;return(0,n.jsxs)("div",{className:"flex flex-col","data-mode":s,children:[x?(0,n.jsx)("div",{className:"flex h-12 items-center border-b border-neutral-200 px-3",children:(0,n.jsxs)("button",{type:"button",onClick:c,className:"inline-flex h-8 items-center gap-1.5 rounded-[7px] pr-2.5 pl-1.5 text-[13px] font-semibold text-neutral-500 hover:bg-neutral-100 hover:text-foreground",children:[(0,n.jsx)(y.A,{className:"size-4","aria-hidden":!0}),"Active numbers"]})}):null,(0,n.jsxs)("div",{className:"tn-ihead",role:"row",children:[(0,n.jsx)("span",{role:"columnheader",children:"TRACKING NUMBER"}),tf.map((e,t)=>(0,n.jsx)("span",{role:"columnheader",className:(0,tu.cn)("text-right",tg[t]),children:e},e)),(0,n.jsx)("span",{"aria-hidden":!0})]}),0===e.length?(0,n.jsx)("p",{className:"px-5 py-10 text-center text-[13px] text-neutral-500",children:x?"Nothing deactivated. Numbers you give up are listed here.":"No active tracking numbers."}):e.map(e=>(0,n.jsx)(tj,{entry:e,grey:x,canManage:t,siteHost:a,timeZone:l,onOpen:i,onAddNumbers:o},e.tracker.id)),!x&&r>0?(0,n.jsx)("div",{className:"flex min-h-[52px] items-center px-5 py-3",children:(0,n.jsxs)("button",{type:"button",onClick:d,className:"inline-flex items-center gap-1 text-[13px] leading-4 font-semibold text-neutral-500 hover:text-foreground",children:[`${r} deactivated`,(0,n.jsx)(tl.A,{className:"size-3.5 text-neutral-400","aria-hidden":!0})]})}):null]})}function tj({entry:{tracker:e,row:t}
2,grey:a,canManage:l,siteHost:s,timeZone:r,onOpen:i,onAddNumbers:o}){var d;let c,x=es(e.source),u="pool"===e.kind?e1.wK.icon:(0,e1.pI)(x,er(e.source)),h=e.name?.trim()||x,m=0===t.calls,p=!a&&(d=t.warning)?"pool_short"===d.kind?`Needs ${d.add} more ${1===d.add?"number":"numbers"}`:"No calls in 30 days":null,f=()=>i(e.id);return(0,n.jsxs)("div",{role:"row","data-tracker-id":e.id,onClick:f,className:(0,tu.cn)("tn-irow group",a&&"tn-irow-grey"),children:[(0,n.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,n.jsx)("span",{className:"grid size-8 flex-none place-items-center rounded-full border border-neutral-300 text-neutral-700",children:(0,n.jsx)(u,{className:"size-4"})}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-col gap-[3px]",children:[(0,n.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),f()},className:"w-fit max-w-full cursor-pointer truncate text-left text-sm leading-[18px] font-semibold text-foreground",children:h}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1",children:[(0,n.jsx)("span",{className:"text-[12.5px] leading-4 text-neutral-500 tabular-nums",children:a?(c=ex(e.deactivated_at,r))?`Given up ${c}`:"Given up":function(e,t){let a=Q(e);if("pool"===e.kind){let n,l=(n=a.length,`${n} number${1===n?"":"s"}`),s=et(e)??t;return s?`${l} on ${s}`:l}return a[0]?J(a[0].e164):"—"}(e,s)}),p?(0,n.jsx)(tN,{text:p,tracker:e,canAct:l&&t.warning?.kind==="pool_short",onAddNumbers:o}):null]})]})]}),(0,n.jsx)("span",{className:(0,tu.cn)("tn-c-callers text-sm leading-5 font-medium tabular-nums",m&&0===t.newCallers?"text-neutral-400":"text-neutral-700"),children:t.newCallers.toLocaleString("en-US")}),(0,n.jsx)("span",{className:(0,tu.cn)("tn-c-jobs text-sm leading-5 font-medium tabular-nums",0===t.jobs?"text-neutral-400":"text-neutral-700"),children:t.jobs.toLocaleString("en-US")}),(0,n.jsx)("span",{className:(0,tu.cn)("tn-c-earned text-[15px] leading-5 font-bold tabular-nums",0===t.earnedCents?"text-neutral-400":"text-foreground"),children:eo(t.earnedCents)}),(0,n.jsx)("span",{className:(0,tu.cn)("tn-c-missed text-sm leading-5 tabular-nums",t.missedOpen>0?"font-semibold text-warning":"text-neutral-300"),children:t.missedOpen>0?t.missedOpen:"—"}),(0,n.jsx)("span",{className:"grid place-items-center",children:(0,n.jsx)(tl.A,{className:"size-4 text-neutral-400","aria-hidden":!0})})]})}function tN({text:e,tracker:t,canAct:a,onAddNumbers:l}){let s=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eK.A,{className:"size-3 flex-none text-warning",strokeWidth:2.2,"aria-hidden":!0}),e]}),r="inline-flex h-5 flex-none items-center gap-1 rounded-full bg-warning-bg pr-2 pl-1.5 text-xs leading-4 font-semibold text-warning-ink";return a?(0,n.jsx)("button",{type:"button",className:(0,tu.cn)(r,"cursor-pointer hover:brightness-95"),onClick:e=>{e.stopPropagation(),l(t)},children:s}):(0,n.jsx)("span",{className:r,children:s})}var tv=a(21037),tw=a(37709),ty=a(28747),tk=a(68876),tC=a(43516),tA=a(76989);let t$="deactivate";function tS({open:e,onOpenChange:t,tracker:a,displayName:s,onConfirm:r}){let[i,o]=(0,l.useState)(""),[d,c]=(0,l.useState)(!1),[x,u]=(0,l.useState)(null);(0,l.useEffect)(()=>{e&&(o(""),u(null))},[e]);let h=Q(a),p=h.length>1,f=er(a.source),g="pool"===a.kind?e1.wK.icon:(0,e1.pI)(es(a.source),f),b="pool"!==a.kind&&null!==f&&ei.includes(f)?` Take it off ${"vehicle"===f?"your trucks":"anything you printed"} first.`:"";async function j(){c(!0),u(null);let e=await r();c(!1),e&&u(e)}return(0,n.jsx)(k.lG,{open:e,onOpenChange:e=>d?void 0:t(e),children:(0,n.jsxs)(k.Cf,{showCloseButton:!1,onOpenAutoFocus:e=>e.preventDefault(),className:"gap-0 overflow-hidden outline-none rounded-[14px] p-0 sm:max-w-[480px]",children:[(0,n.jsxs)("div",{className:"flex items-start justify-between gap-4 px-6 pt-[22px]",children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,n.jsxs)(k.L3,{className:"text-lg leading-6 font-semibold text-foreground",children:["Deactivate ",s,"?"]}),(0,n.jsx)(k.rr,{className:"text-[13.5px] leading-[19px] text-neutral-500",children:p?`This can't be und
2one. All ${h.length} numbers go back to the carrier.`:"This can't be undone. The number goes back to the carrier."})]}),(0,n.jsx)(m.$,{variant:"ghost",size:"icon-sm",type:"button","aria-label":"Close",onClick:()=>t(!1),className:"text-muted-foreground",children:(0,n.jsx)(w.A,{className:"size-[18px]","aria-hidden":!0})})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-[18px] px-6 pt-5 pb-[22px]",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3 rounded-[10px] border border-border px-4 py-3.5",children:[(0,n.jsx)("span",{className:"grid size-9 flex-none place-items-center rounded-full border border-border text-neutral-700",children:(0,n.jsx)(g,{className:"size-4"})}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,n.jsx)("p",{className:"text-[15px] leading-5 font-semibold text-foreground tabular-nums",children:p?`${h.length} numbers`:J(h[0]?.e164)}),(0,n.jsxs)("p",{className:"text-[12.5px] leading-4 text-neutral-500",children:[s," \xb7 ",ed(a.calls30d,"call")," in the last 30 days"]})]})]}),(0,n.jsxs)("ul",{className:"flex flex-col gap-3 text-[13.5px] leading-5",children:[(0,n.jsxs)("li",{className:"flex items-start gap-2.5 text-foreground",children:[(0,n.jsx)(tk.A,{className:"mt-0.5 size-4 flex-none text-danger","aria-hidden":!0}),(0,n.jsxs)("span",{children:[p?"Anyone who calls one of them after today won't reach you.":"Anyone who calls it after today won't reach you.",b]})]}),(0,n.jsxs)("li",{className:"flex items-start gap-2.5 text-neutral-700",children:[(0,n.jsx)(tC.A,{className:"mt-0.5 size-4 flex-none text-neutral-500","aria-hidden":!0}),(0,n.jsx)("span",{children:"Past calls and recordings stay in the Call Log."})]})]}),(0,n.jsx)(tA.W,{word:t$,value:i,onChange:o,disabled:d}),x?(0,n.jsx)("p",{role:"alert",className:"text-[12.5px] leading-[18px] text-destructive",children:x}):null]}),(0,n.jsxs)("div",{className:"flex justify-end gap-2 border-t border-neutral-200 bg-[#FAFBFB] px-6 py-3.5",children:[(0,n.jsx)(m.$,{variant:"outline",disabled:d,className:"h-9 rounded-lg text-[13px] font-semibold",onClick:()=>t(!1),children:"Cancel"}),(0,n.jsxs)(m.$,{variant:"destructive",disabled:d||!(0,tA.i)(t$,i),className:"h-9 rounded-lg text-[13px] font-bold disabled:opacity-40",onClick:()=>void j(),children:[d?(0,n.jsx)(eO.A,{className:"animate-spin","aria-hidden":!0}):null,p?"Deactivate numbers":"Deactivate number"]})]})]})})}var tT=a(90761),tM=a(81034),tL=a(56122),t_=a(2037),tO=a(65139),tF=a(63721);let tz={timeout:"It took too long to answer.",http_error:"The site answered with an error.",too_large:"That page is too big to read.",blocked:"That address is not one we can open.",not_html:"That address is not a web page.",redirect_outside:"The page sent us to a different website.",not_found:"We could not reach that address."};function tD({open:e,onOpenChange:t,websiteId:a,tracker:s,appOrigin:r,publicKey:i,siteHost:o,siteUrl:d,customDomain:c,canManage:x,timeZone:u,ready:h=null,onChanged:p}){let f,[g,b]=(0,l.useState)(s.allow_subdomains),[j,N]=(0,l.useState)(null),[v,y]=(0,l.useState)(!1),[C,A]=(0,l.useState)(null),[$,S]=(0,l.useState)({phase:"idle"}),T=(0,l.useRef)(null);(0,l.useEffect)(()=>{e&&(b(s.allow_subdomains),N(null),S({phase:"idle"}))},[e,s.id,s.allow_subdomains]),(0,l.useEffect)(()=>()=>T.current?.abort(),[]);let M=(s.external_domains??[])[0]??null,L=et(s)??o??"your site",_=M??d,O=s.swap_target_digits?J(`+1${s.swap_target_digits}`):null,F=g!==s.allow_subdomains;async function z(e,t){try{await navigator.clipboard?.writeText(t),A(e)}catch{A(null)}}async function D(){T.current?.abort();let e=new AbortController;T.current=e,S({phase:"running"});try{let t=await fetch(`/api/websites/${a}/marketing/tracking/${s.id}/install-test`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(M?{url:M}:{}),signal:e.signal}),n=await t.json().catch(()=>null);if(e.signal.aborted)return;if(!t.ok||!n?.steps)return void S({phase:"error",message:429===t.status?"That is a lot of tests. Wait a few minutes and try again.":"We could not run the test. Try again in a moment."});S({phase:"done",result:n})}catch{e.signal.aborted||S({phase:"error",message:"We could not run the test. Try again in a moment."})}}function B(){T.current?.abort(),S({phase:"idle"})}async function I(){if(!F||!x)return void t(!1);y(!0),N(null);try{let e=await fetch(`/api/websites/${a}/marketing/tracking/${s.id}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({allow_subdomains:g})}),n=await e.json().catch(()=>null);if(!e.ok)return void N(n?.error??"That could not be saved.");p(),t(!1)}catch{N("That could not be saved.")}finally{y(!1)}}let E=eh(s,u),P="done"===$.phase?function(e,t,a){let{opened:n,scriptFound:l,numberFound:s}=e.steps;return n.ok?l.ok?s.ok||"skipped"===s.reason?{ok:!0,failed:null,title:"Installed",detail
2:null}:{ok:!1,failed:"numberFound",title:`We found the script, but not ${a??"the number it swaps"} on the page`,detail:"Pages drawn by JavaScript fail this check, because we read the page before its scripts run. If the status says Live, the swap is working."}:{ok:!1,failed:"scriptFound",title:`We couldn't find the script on ${t}`,detail:"We checked your homepage just now. Make sure the script is saved on every page and the site is published, then test again."}:{ok:!1,failed:"opened",title:`We couldn't open ${t}`,detail:`${tz[n.reason??""]??"Something went wrong."} Check that the site is published, then test again.`}}($.result,L,O):null,W="running"===$.phase,R=P?P.ok:"live"===E.state,H="idle"===$.phase&&"never"===E.state?"Test installation":"Test again";return(0,n.jsx)(k.lG,{open:e,onOpenChange:e=>W?B():t(e),children:(0,n.jsxs)(k.Cf,{showCloseButton:!1,onOpenAutoFocus:e=>e.preventDefault(),className:"flex max-h-[calc(100dvh-2rem)] flex-col gap-0 overflow-hidden rounded-xl p-0 outline-none sm:max-w-[560px]",children:[(0,n.jsxs)("div",{className:"flex flex-none items-center gap-3.5 px-5 pt-5 pb-4",children:[(0,n.jsx)("span",{className:"grid size-10 flex-none place-items-center rounded-full bg-neutral-900 text-white",children:(0,n.jsx)(tT.A,{className:"size-[18px]","aria-hidden":!0})}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,n.jsx)(k.L3,{className:"text-lg leading-6 font-semibold text-foreground",children:W?"Testing your site":h?1===h.count?"Your number is ready":`Your ${h.count} numbers are ready`:"Install the swap script"}),(0,n.jsx)(k.rr,{className:"text-[13px] leading-[18px] text-neutral-500",children:W?`We open ${L} like a visitor would.`:h?`Paste this line on ${L} so visitors see ${1===h.count?"it":"them"}.`:O?`Shows visitors a pool number instead of ${O}.`:"Shows visitors a pool number instead of yours."})]}),(0,n.jsx)(m.$,{variant:"ghost",size:"icon-sm",type:"button","aria-label":"Close",onClick:()=>W?B():t(!1),className:"text-muted-foreground",children:(0,n.jsx)(w.A,{className:"size-[18px]","aria-hidden":!0})})]}),(0,n.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:W?(0,n.jsx)(tE,{host:L}):(0,n.jsxs)("div",{className:"flex flex-col gap-[22px] px-5 pt-1 pb-6",children:[(0,n.jsx)(tB,{reading:P,error:"error"===$.phase?$.message:null,status:E,host:L,heartbeat:function(e,t=new Date){if(!e)return null;let a=Date.parse(e);if(Number.isNaN(a))return null;let n=Math.floor((t.getTime()-a)/6e4);if(n<1)return"just now";if(n<60)return`${n} min ago`;let l=Math.floor(n/60);return l<24?`${l}h ago`:`${Math.floor(l/24)}d ago`}(s.last_seen_at)}),(0,n.jsx)(tP,{label:"1 \xb7 PASTE ON EVERY PAGE",onCopy:()=>{z("snippet",`<script src="${r}/t/${i}.js" defer></script>`)},copied:"snippet"===C,note:(0,n.jsxs)(n.Fragment,{children:["Put it just before the closing ",(0,n.jsx)("code",{children:"</body>"})," tag."]}),children:(0,n.jsx)(tW,{name:"script",attrs:[["src",`${r}/t/${i}.js`]],bare:["defer"]})}),(0,n.jsxs)(tP,{label:"2 \xb7 ONLY IF YOUR SITE HAS A SECURITY POLICY",onCopy:()=>{z("csp",`script-src ${r};
3connect-src ${r};`)},copied:"csp"===C,note:"Most sites don't need this. Your web person will know.",children:[(0,n.jsx)(tR,{name:"script-src",value:r}),(0,n.jsx)(tR,{name:"connect-src",value:r})]}),_&&URL.canParse(_)?(0,n.jsxs)("a",{href:((f=new URL(_)).searchParams.set("pfp_swap_test","1"),f.toString()),target:"_blank",rel:"noreferrer",className:"-mt-2 flex w-fit items-center gap-1 text-[12.5px] font-medium text-neutral-500 hover:text-neutral-900",children:["Preview the swap on your site",(0,n.jsx)(tM.A,{className:"size-3.5","aria-hidden":!0})]}):null,x&&c?(0,n.jsxs)("div",{className:"flex flex-col gap-2 pt-1",children:[(0,n.jsxs)("label",{className:"flex cursor-pointer items-start gap-2.5",children:[(0,n.jsx)(tO.S,{checked:g,onCheckedChange:e=>b(!0===e),"aria-label":"Also swap numbers on subdomains",className:"mt-0.5 size-4"}),(0,n.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,n.jsx)("span",{className:"text-[13px] leading-4 font-medium text-neutral-900",children:"Also swap numbers on subdomains"}),(0,n.jsxs)("span",{className:"text-[12.5px] leading-[18px] text-neutral-500",children:["Any other address that ends in ",c]})]})]}),j?(0,n.jsx)("p",{role:"alert",className:"text-[12.5px] leading-[18px] text-destructive",children:j}):null]}):null]})}),(0,n.jsx)("div",{className:"flex flex-none items-center justify-end gap-2 border-t border-neutral-200 px-5 py-3.5",children:W?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"mr-auto text-[13px] text-neutral-500",children:"Takes about 10 seconds."}),(0,n.jsx)(m.$,{type:"button",variant:"outline",className:"h-9 text-[13px] font-semibold",onClick:B,children:"Cancel"})]}):(0,n.jsxs)(n.Fragment,{children:[x?(0,n.jsx)(m.$,{type:"button",variant:R?"outline":"default",className:"h-9 order-2 text-[13px] font-semibold data-[variant=default]:font-bold",onClick:()=>void D(),children:H}):null,(0,n.jsxs)(m.$,{type:"button",variant:R||!x?"default":"outline",disabled:v,className:(0,tu.cn)("h-9 text-[13px] font-semibold",R||!x?"order-3 font-bold":"order-1"),onClick:()=>void I(),children:[v?(0,n.jsx)(eO.A,{className:"animate-spin","aria-hidden":!0}):null,R||F?"Done":"Close"]})]})})]})})}function tB({reading:e,error:t,status:a,host:l,heartbeat:s}){if(t)return(0,n.jsxs)("div",{role:"alert",className:"flex items-start gap-2.5 rounded-lg bg-warning-bg px-3.5 py-3",children:[(0,n.jsx)(eK.A,{className:"mt-0.5 size-[18px] flex-none text-warning","aria-hidden":!0}),(0,n.jsx)("p",{className:"text-[12.5px] leading-[18px] text-warning-ink",children:t})]});if(e&&!e.ok){let t=(0,n.jsxs)("div",{role:"alert",className:"flex items-start gap-2.5 rounded-lg bg-warning-bg px-3.5 py-3",children:[(0,n.jsx)(eK.A,{className:"mt-0.5 size-[18px] flex-none text-warning","aria-hidden":!0}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,n.jsx)("p",{className:"text-[13.5px] leading-[18px] font-semibold text-warning-ink",children:e.title}),e.detail?(0,n.jsx)("p",{className:"text-[12.5px] leading-4 text-warning-ink",children:e.detail}):null]})]});return"live"!==a.state?t:(0,n.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,n.jsx)(tI,{heartbeat:s}),t]})}return e?.ok||"live"===a.state?(0,n.jsx)(tI,{heartbeat:s}):"stale"===a.state?(0,n.jsxs)("div",{className:"flex items-start gap-2.5 rounded-lg bg-warning-bg px-3.5 py-3",children:[(0,n.jsx)(eK.A,{className:"mt-0.5 size-[18px] flex-none text-warning","aria-hidden":!0}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,n.jsx)("p",{className:"text-[13.5px] leading-[18px] font-semibold text-warning-ink",children:a.label}),(0,n.jsxs)("p",{className:"text-[12.5px] leading-4 text-warning-ink",children:["The script has not called home from ",l," in a while."]})]})]}):(0,n.jsxs)("div",{className:"flex items-start gap-2.5 rounded-lg bg-neutral-100 px-3.5 py-3",children:[(0,n.jsx)(tL.A,{className:"mt-0.5 size-[18px] flex-none text-neutral-400","aria-hidden":!0}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5",children:[(0,n.jsx)("p",{className:"text-[13.5px] leading-[18px] font-semibold text-foreground",children:"Not installed yet"}),(0,n.jsxs)("p",{className:"text-[12.5px] leading-4 text-neutral-500",children:["We haven't seen the script on ",l,"."]})]})]})}function tI({heartbeat:e}){return(0,n.jsxs)("div",{className:"flex items-center gap-2.5 rounded-lg bg-neutral-100 px-3.5 py-3",children:[(0,n.jsx)("span",{className:"grid size-[18px] flex-none place-items-center rounded-full bg-success text-white",children:(0,n.jsx)(M.A,{className:"size-3",strokeWidth:3,"aria-hidden":!0})}),(0,n.jsx)("span",{className:"text-[13.5px] leading-[18px] font-bold text-foreground",children:"Installed"}),(0,n.jsx)("span",{className:"ml-auto text-right text-[13.5px] leading-[18px] font-medium text-neutral-500",children:e?`Last seen ${e}`:"Found on the page just now"})]})}function tE({host:e}){return(0,n.jsxs)("div",{className:"flex flex-col gap-6 px-5 pt-3 pb-6","aria-live":"polite",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center gap-3.5",children:[(0,n.jsx)(tF.k,{size:64,boxSize:96}),(0,n.jsxs)("p",{className:"text-[13.5px] text-neutral-500",children:["Looking at ",e,"…"]})]}),(0,n.jsxs)("ul",{className:"flex flex-col gap-3.5","aria-label":"Test steps",children:[(0,n.jsxs)("li",{className:"flex items-center gap-3 text-[13.5px] leading-[18px] font-medium text-foreground",children:[(0,n.jsx)(eO.A,{className:"size-[18px] flex-none animate-spin text-neutral-500","aria-hidden":!0}),"Opening ",e]}),(0,n.jsxs)("li",{className:"flex items-center gap-3 text-[13.5px] leading-[18px] font-medium text-neutral-400",children:[(0,n.jsx)("span",{className:"size-[18px] flex-none rounded-full border border-dashed border-neutral-300","aria-hidden":!0}),"Looking for the script on the page"]}),(0,n.jsxs)("li",{className:"flex items-center gap-3 text-[13.5px] leading-[18px] font-medium text-neutral-400",children:[(0,n.jsx)("span",{className:"size-[18px] flex-none rounded-full border border-dashed border-neutral-300","aria-hidden":!0}),"Checking the number swaps"]})]})]})}function tP({label:e,onCopy:t,copied:a,note:l,children:s}){return(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("p",{className:"flex-1 text-[11px] leading-3.5 font-semibold tracking-[0.06em] text-neutral-400",children:e}),(0,n.jsxs)(m.$,{type:"button",variant:"outline",className:"h-7 gap-1.5 rounded-[7px] px-2.5 text-[12.5px] font-semibold",onClick:t,children:[(0,n.jsx)(t_.A,{className:"size-3.5","aria-hidden":!0}),a?"Copied":"Copy"]})]}),(0,n.jsx)("div",{className:"tn-code flex flex-col rounded-lg bg-neutral-50 px-3.5 py-3 text-[12.5px] leading-[19px]",children:s}),(0,n.jsx)("p",{className:"text-[13px] leading-[18px] text-neutral-500",children:l})]})}function tW({name:e,attrs:t,bare:a}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"text-neutral-500",children:"<"}),(0,n.jsx)("span",{className:"font-semibold text-info-ink",children:e})]}),t.map(([e,t])=>(0,n.jsxs)("div",{className:"break-all whitespace-pre-wrap",children:["  ",(0,n.jsx)("span",{className:"text-warning-ink",children:e}),(0,n.jsx)("span",{className:"text-neutral-500",children:"="}),(0,n.jsxs)("span",{className:"text-success-ink",children:['"',t,'"']})]},e)),(0,n.jsxs)("div",{children:["  ",(0,n.jsx)("span",{className:"text-warning-ink",children:a[0]}),(0,n.jsx)("span",{className:"text-neutral-500",children:"></"}),(0,n.jsx)("span",{className:"font-semibold text-info-ink",children:e}),(0,n.jsx)("span",{className:"text-neutral-500",children:">"})]})]})}function tR({name:e,value:t}){return(0,n.jsxs)("div",{className:"break-all",children:[(0,n.jsx)("span",{className:"font-semibold text-info-ink",children:e})," ",(0,n.jsx)("span",{className:"text-success-ink",children:t}),(0,n.jsx)("span",{className:"text-neutral-500",children:";"})]})}var tH=a(83334),tK=a(17692),tU=a(86302),tY=a(25949),tG=a(86360);let tV=[];function tq({websiteId:e,trackerId:t,isPool:a,deactivated:s,missed:r,missedRange:i,timeZone:o,aiName:d}){let{site:c}=(0,h.W)(),x=c?.subdomain??"",m=c?.role?.areas??tV,p=(0,tG.Y)(),{toast:f}=(0,tK.dj)(),g=(0,u.MR)(e),b=(0,u.U4)(e,"calls-rows",{search:{tracker:t,pageSize:String(5)}}),[j,N]=(0,l.useState)({}),[v,w]=(0,l.useState)({}),y=(0,l.useRef)(!1),k=(0,l.useMemo)(()=>(b.data?.calls??[]).map(e=>e.id in v?{...e,handled_at:v[e.id]}:e),[b.data,v]);(0,l.useEffect)(()=>{y.current||0===k.length||(y.current=!0,N({[k[0].id]:!0}))},[k]);let[C]=(0,l.useState)(()=>Date.now()),A=s?"Last calls":"Recent calls",$=b.data?.total??null,S=!s&&r&&r.count>0?function(e,t,a=new Date){let n=ec(e.latestAt,a),l=t&&e.latestSource?`, from ${e.latestSource}`:"",s=n?`${e.count>1?"Latest ":""}${n}${l}`:null;return{title:`${ed(e.count,"missed call")} nobody called back`,detail:s,action:1===e.count?"See it":"See them"}}(r,a):null;async function T(t){w(e=>({...e,[t.id]:new Date().toISOString()}));let a=await fetch(`/api/websites/${e}/crm/calls/${t.id}/handled`,{method:"POST"}).catch(()=>null);if(!a?.ok){w(e=>{let a={...e};return delete a[t.id],a}),f({variant:"destructive",title:"Couldn't mark the call handled."});return}g()}return(0,n.jsxs)("section",{className:"flex flex-col","aria-label":A,children:[(0,n.jsxs)("div",{className:"flex items-baseline justify-between gap-3 pb-3",children:[(0,n.jsx)("h2",{className:"text-[15px] leading-5 font-semibold text-foreground",children:A}),null!==$&&$>0?(0,n.jsxs)(td(),{href:ef(x,t),className:"flex items-center gap-1 text-[13px] leading-4 font-semibold text-neutral-900 hover:text-neutral-600",children:[`See all ${$.toLocaleStr
3ing("en-US")} in the Call Log`,(0,n.jsx)(tH.A,{className:"size-3.5","aria-hidden":!0})]}):null]}),S?(0,n.jsxs)("div",{className:"mb-3 flex items-center gap-3.5 self-stretch rounded-[10px] bg-warning-bg py-3 pr-3 pl-4",children:[(0,n.jsx)(tc.A,{className:"size-[18px] flex-none text-warning-ink","aria-hidden":!0}),(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,n.jsx)("p",{className:"text-[13.5px] leading-[17px] font-semibold text-warning-ink",children:S.title}),S.detail?(0,n.jsx)("p",{className:"text-[12.5px] leading-4 text-warning-ink",children:S.detail}):null]}),(0,n.jsx)(td(),{href:ef(x,t,{missed:!0,days:null!==i?ep(i,o):null}),className:"flex h-8 flex-none items-center rounded-[7px] border border-[#E8D3A6] bg-card px-3 text-[13px] leading-4 font-semibold text-warning-ink",children:S.action})]}):null,b.isError?(0,n.jsxs)("div",{className:"rounded-xl border border-border px-4 py-6 text-[13px] text-neutral-500",children:["Recent calls are not available right now."," ",(0,n.jsx)("button",{type:"button",className:"font-semibold text-neutral-900 underline underline-offset-2",onClick:()=>void b.refetch(),children:"Try again"})]}):b.isPending?(0,n.jsx)("div",{className:"flex flex-col gap-px overflow-hidden rounded-xl border border-border","aria-busy":!0,children:Array.from({length:3},(e,t)=>(0,n.jsx)(eE.E,{className:"h-[60px] rounded-none"},t))}):0===k.length?(0,n.jsx)("p",{className:"rounded-xl border border-border px-4 py-6 text-[13px] text-neutral-500",children:s?"This number took no calls.":"No calls on this number yet."}):(0,n.jsx)("div",{className:"tn-feed overflow-hidden rounded-xl border border-border",children:(0,n.jsx)(tU.Hh,{calls:k,open:j,onToggle:e=>N(t=>({...t,[e.id]:!t[e.id]})),onCallBack:function(e){let t=(0,tY.Fh)(e);t?p?.openDialer({e164:t,who:e.customer?.display_name??null,avatar:e.customer?.avatar_url??null,customerId:e.customer_id}):f({title:"No number on this call to dial"})},onDone:e=>void T(e),nowMs:C,timeZone:o,subdomain:x,websiteId:e,aiName:d,areas:m,facts:a?"tracker-pool":"tracker"})})]})}let tZ="Call from {source}";function tJ(e,t){let a=function(e,t){if(!e)return{choice:G,other:""};let a=t.find(t=>t.e164===e);return a?{choice:a.id,other:""}:{choice:Y,other:K(e)}}(e.routing?.text_forward_e164,t.textTargets);return{name:e.name??"",swapTarget:K(e.swap_target_digits??""),mode:e.routing?.mode??"main_line",forward:K(e.routing?.forward_e164??t.mainLine?.e164??""),textChoice:a.choice,textOther:a.other,geoMatch:e.geo_match,record:ea(e.recording?.record,t.siteDefaults.record),notice:ea(e.recording?.notice,t.siteDefaults.notice),whisperOn:!!e.whisper?.enabled,whisperText:e.whisper?.text??tZ}}let tX=["name","swapTarget","mode","forward","textChoice","textOther","geoMatch","record","notice","whisperOn","whisperText"];var tQ=a(50023);let t0=(0,a(50726).A)("power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);function t1({children:e}){return(0,n.jsx)("p",{className:"text-[11px] leading-3.5 font-semibold tracking-[0.06em] text-neutral-400 uppercase",children:e})}function t2({label:e,children:t,tip:a}){return(0,n.jsxs)("div",{className:"flex min-h-[34px] items-center justify-between gap-2.5",children:[(0,n.jsxs)("span",{className:"flex items-center gap-1.5 text-[13px] leading-4 text-neutral-700",children:[e,a?(0,n.jsx)(t5,{label:`About ${"string"==typeof e?e.toLowerCase():"this setting"}`,children:a}):null]}),t]})}function t3({value:e,onChange:t}){let[a,s]=(0,l.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[a?null:(0,n.jsx)("button",{type:"button","aria-label":"Edit the number it replaces",onClick:()=>s(!0),className:"h-8 rounded-md px-2 text-right text-[13px] leading-4 font-semibold text-foreground tabular-nums hover:bg-neutral-100 md:hidden",children:e||"Add a number"}),(0,n.jsx)(C.p,{"aria-label":"Number it replaces",inputMode:"tel",value:e,autoFocus:a,onChange:e=>t(K(e.target.value)),onBlur:()=>s(!1),className:(0,tu.cn)("h-8 w-[150px] border-transparent bg-transparent px-2 text-right text-[13px] font-semibold tabular-nums shadow-none hover:border-neutral-300 md:text-[13px]",!a&&"max-md:hidden")})]})}function t5({label:e,children:t}){return(0,n.jsx)(eY.Bc,{delayDuration:120,children:(0,n.jsxs)(eY.m_,{children:[(0,n.jsx)(eY.k$,{asChild:!0,children:(0,n.jsx)("button",{type:"button","aria-label":e,className:"text-neutral-400 hover:text-neutral-600",children:(0,n.jsx)(eR.A,{className:"size-3.5","aria-hidden":!0})})}),(0,n.jsx)(eY.ZI,{className:"max-w-60 leading-4 font-medium",children:t})]})})}let t4="h-8 w-[236px] rounded-[7px] border-neutral-300 px-2.5 text-[13px] shadow-none";function t6({tracker:e,payload:t,draft:a,onDraft:s,canManage:r,timeZone:i,displayName:o,onAddNumbers:d,onInstall:x,onDeactivate:u}){let h,p="pool"===e.kind,f=null!==e.deactivated_at,g=Q(e),b=r&&!f,[j,N]=(0,l.useState)(null),[v,w]=(0,l.useState)(null);if(f)return(0,n.jsx)(t7,{children:(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(t1,{children:p?"Numbers":"Number"}),(0,n.jsx)("ul",{className:"flex flex-col rounded-[10px] border border-border bg-card",children:(e.numbers.length?e.numbers:[]).map(t=>{let a=i?ex(t.released_at??e.deactivated_at,i):null,l=[t.locality,t.region].filter(
3Boolean).join(", ");return(0,n.jsxs)("li",{className:"flex flex-col gap-0.5 border-b border-border px-3 py-2.5 last:border-b-0",children:[(0,n.jsx)("span",{className:"text-[13.5px] leading-[18px] font-semibold text-neutral-500 line-through decoration-1 tabular-nums",children:J(t.e164)}),(0,n.jsx)("span",{className:"text-[12.5px] leading-4 text-neutral-400",children:[l,a?`given up ${a}`:null].filter(Boolean).join(" \xb7 ")||"Given up"})]},t.id)})})]})});let y=eh(e,i),k=p&&e.health?ej(e.health,g.length):null,A=g.length>0&&g.every(e=>"toll_free"===e.number_type),$=j&&a.textChoice===Y&&!A?j:null,S=v&&"forward"===a.mode?v:null,T=t.mainLine?J(t.mainLine.e164):void 0,M=t.textTargets.find(e=>e.id===a.textChoice),L=A?"Disabled \xb7 toll-free":M?(h=M.name,/^[\d()\s.+-]+$/.test(h)?h:`${h}'s cell`):a.textChoice===Y?a.textOther?K(a.textOther):"Another number":"Don't forward",_="forward"===a.mode?`Forward to ${a.forward||"a number"}`:"Ring the main line";return(0,n.jsxs)(t7,{children:[r?null:(0,n.jsxs)("div",{className:"flex items-start gap-2 rounded-lg bg-neutral-100 px-3 py-2.5",children:[(0,n.jsx)(tQ.A,{className:"mt-px size-3.5 flex-none text-neutral-500","aria-hidden":!0}),(0,n.jsx)("p",{className:"text-[12.5px] leading-4 font-medium text-neutral-700",children:"Only owners and admins can change these."})]}),(0,n.jsxs)("section",{className:"flex flex-col gap-2","aria-label":p?"Numbers":"Number",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)(t1,{children:p?ed(g.length,"number"):"Number"}),p&&b?(0,n.jsxs)("button",{type:"button",onClick:d,className:"flex items-center gap-1 text-[12.5px] leading-4 font-semibold text-neutral-900 hover:text-neutral-600",children:[(0,n.jsx)(c.A,{className:"size-3.5","aria-hidden":!0}),"Add"]}):null]}),p?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("ul",{className:"flex flex-col rounded-[10px] border border-border bg-card",children:[g.map(e=>(0,n.jsx)(ae,{number:e},e.id)),0===g.length?(0,n.jsx)("li",{className:"px-3 py-2.5 text-[12.5px] text-neutral-500",children:"No numbers on this tracker."}):null]}),k?(0,n.jsxs)("div",{className:"mt-1 flex flex-col items-start gap-2.5 rounded-[10px] bg-warning-bg p-3",children:[(0,n.jsx)("p",{className:"text-[12.5px] leading-[17px] font-medium text-warning-ink",children:k.text}),b?(0,n.jsxs)(m.$,{type:"button",variant:"outline",onClick:d,className:"h-[30px] gap-1.5 rounded-[7px] border-[#E8D3A6] bg-card px-2.5 text-[13px] font-semibold text-warning-ink hover:bg-card",children:[(0,n.jsx)(c.A,{className:"size-3.5","aria-hidden":!0}),`Add ${ed(k.add,"number")}`]}):null]}):null]}):(0,n.jsx)(at,{number:g[0]})]}),p?(0,n.jsxs)("section",{className:"flex flex-col gap-2","aria-label":"On your website",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)(t1,{children:"On your website"}),(0,n.jsxs)("button",{type:"button",onClick:x,className:"flex items-center gap-1 text-[12.5px] leading-4 font-semibold text-neutral-900 hover:text-neutral-600",children:[(0,n.jsx)(tT.A,{className:"size-3.5","aria-hidden":!0}),"Install script"]})]}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(t2,{label:"Swap script",children:(0,n.jsxs)("span",{className:(0,tu.cn)("flex items-center gap-1.5 text-[13px] leading-4 font-semibold","live"===y.state&&"text-foreground","stale"===y.state&&"text-warning-ink","never"===y.state&&"font-medium text-neutral-500"),children:[(0,n.jsx)("span",{"aria-hidden":!0,className:(0,tu.cn)("size-[7px] rounded-full","live"===y.state?"bg-success":"stale"===y.state?"bg-warning":"bg-neutral-400")}),y.label]})}),(0,n.jsx)(t2,{label:"Replaces",children:b?(0,n.jsx)(t3,{value:a.swapTarget,onChange:e=>s({swapTarget:e})}):(0,n.jsx)("span",{className:"text-[13px] leading-4 font-semibold text-foreground tabular-nums",children:a.swapTarget||"—"})}),(0,n.jsx)(t2,{label:"Match the visitor's area code",children:b?(0,n.jsx)(eU.Switch,{"aria-label":"Match the visitor's area code",checked:a.geoMatch,onCheckedChange:e=>s({geoMatch:e})}):(0,n.jsx)(t9,{on:a.geoMatch})})]})]}):null,(0,n.jsxs)("section",{className:"flex flex-col gap-2","aria-label":"Where calls and texts go",children:[(0,n.jsx)(t1,{children:"Where calls and texts go"}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(t2,{label:"Calls",children:b?(0,n.jsx)(eM,{id:"tnum-panel-calls",entryId:"tnum-panel-calls-number",ariaLabel:"Calls",mode:S?S.mode:a.mode,forward:S?S.forward:a.forward,mainLine:T,typing:null!==S,onAnother:()=>{w(S??{mode:a.mode,forward:a.forward}),s({mode:"forward",forward:""})},onPick:e=>{s(S?{mode:e,forward:S.forward}:{mode:e}),w(null)},triggerClassName:(0,tu.cn)(t4,ew)}):(0,n.jsx)(t8,{children:_})}),b&&S?(0,n.jsx)(eS,{id:"tnum-panel-calls-number",entry:"calls",label:"Number calls forward to",triggerId:"tnum-panel-calls",value:a.forward,onChange:e=>s({forward:e}),onAdd:()=>w(null),onCancel:()=>{s({mode:S.mode,forward:S.forward}),w(null)}}):null,(0,n.jsx)(t2,{label:"Texts",children:b?(0,n.jsx)(eL,{id:"tnum-panel-texts",entryId:"tnum-panel-texts-number",ariaLabel:"Texts",targets:t.textTargets,choice:$?$.choice:a.textChoice,other:$?$.other:a.textOther,typing:null!==$,tollFreeOnly:A,onAnother:()=>{N($??{choice:a.textChoice,other:a.textOther}),s({textChoice:Y,textOther:""})},onPick:e=>{s($?{textChoice:e,textOther:$.other}:{textChoice:e}),N(null)},triggerClassName:(0,tu.cn)(t4,ew)}):(0,n.jsx)(t8,{children:L})}),b&&$?(0,n.jsx)(eS,{id:"tnum-panel-texts-number",entry:"texts",label:"Number texts forward to",triggerId:"tnum-panel-texts",value:a.textOther,onChange:e=>s({textOther:e}),onAdd:()=>N(null),onCancel:()=>{s({textChoice:$.choice,textOther:$.other}),N(null)}}):null]})]}),(0,n.jsxs)("section",{className:"flex flex-col gap-2","aria-label":"Call handling",children:[(0,n.jsx)(t1,{children:"Call handling"}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(t2,{label:"Record calls",tip:`${en(t.siteDefaults.record)} A change here covers this number only.`,children:b?(0,n.jsx)(eU.Switch,{"aria-label":"Record calls",checked:a.record,onCheckedChange:e=>s({record:e})}):(0,n.jsx)(t9,{on:a.record})}),(0,n.jsx)(t2,{label:"Play a recording notice",tip:`“${t.siteDefaults.noticeText}” ${en(t.siteDefaults.notice)} A change here covers this number only.`,children:b?(0,n.jsx)(eU.Switch,{"aria-label":"Play a recording notice",checked:a.notice,onCheckedChange:e=>s({notice:e})}):(0,n.jsx)(t9,{on:a.notice})}),(0,n.jsx)(t2,{label:"Whisper the source first",tip:"Played to whoever answers. Your own phone system may not pass it on. {source} prints where the caller came from.",children:b?(0,n.jsx)(eU.Switch,{"aria-label":"Whisper the source first",checked:a.whisperOn,onCheckedChange:e=>s({whisperOn:e,...e&&!a.whisperText.trim()?{whisperText:tZ}:{}})}):(0,n.jsx)(t9,{on:a.whisperOn})}),a.whisperOn?b?(0,n.jsx)(C.p,{"aria-label":"Whisper line",value:a.whisperText,maxLength:160,onChange:e=>s({whisperText:e.target.value}),className:"mt-1 h-8 text-[13px] md:text-[13px]"}):(0,n.jsx)("p",{className:"pt-1 text-[12.5px] leading-4 text-neutral-500",children:a.whisperText}):null]})]}),b?(0,n.jsxs)("section",{className:"flex flex-col items-start gap-3 border-t border-neutral-200 pt-5","aria-label":"Stop tracking",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsxs)("p",{className:"text-[13.5px] leading-[18px] font-semibold text-neutral-900",children:["Stop tracking ",o]}),(0,n.jsx)("p",{className:"text-[12.5px] leading-[18px] text-neutral-500",children:g.length>1?`All ${g.length} numbers go back to the carrier and stop ringing. Past calls and recordings stay in the Call Log.`:"The number goes back to the carrier and stops ringing. Past calls stay in the Call Log."})]}),(0,n.jsxs)(m.$,{type:"button",variant:"outline",onClick:u,className:"h-[30px] gap-1.5 rounded-[7px] border-neutral-300 px-[11px] text-[13px] font-semibold shadow-[0_1px_2px_rgba(20,24,27,.04)]",children:[(0,n.jsx)(t0,{
3className:"size-3.5","aria-hidden":!0}),"Deactivate"]})]}):null]})}function t7({children:e}){return(0,n.jsx)("aside",{"aria-label":"Setup",className:"tn-panel flex w-full flex-none flex-col gap-[26px] border-t border-neutral-200 bg-[#FBFBFC] px-5 py-6 lg:w-[340px] lg:border-t-0 lg:border-l",children:e})}function t8({children:e}){return(0,n.jsx)("span",{className:"min-w-0 truncate text-right text-[13px] leading-4 font-semibold text-foreground",children:e})}function t9({on:e}){return(0,n.jsx)("span",{className:(0,tu.cn)("text-[13px] leading-4",e?"font-semibold text-foreground":"font-medium text-neutral-500"),children:e?"On":"Off"})}function ae({number:e}){let t="approved"===e.a2p_status;return(0,n.jsxs)("li",{className:"flex h-[38px] items-center gap-2 border-b border-border px-3 last:border-b-0",children:[(0,n.jsx)("span",{className:"text-[13.5px] leading-[18px] font-semibold text-foreground tabular-nums",children:J(e.e164)}),(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate text-right text-[12.5px] leading-4 text-neutral-400",children:e.locality??""}),"toll_free"===e.number_type?(0,n.jsx)("span",{className:"text-xs leading-4 font-medium text-neutral-500",children:"Calls only"}):t?(0,n.jsx)("span",{className:"size-[7px] flex-none rounded-full bg-success",role:"img","aria-label":"Texting is on"}):null]})}function at({number:e}
3){let[t,a]=(0,l.useState)(!1);if(!e)return(0,n.jsx)("p",{className:"text-[12.5px] text-neutral-500",children:"No number on this tracker."});let s=[e.locality,e.region].filter(Boolean).join(", ");return(0,n.jsxs)("div",{className:"flex items-center gap-2 rounded-[10px] border border-border bg-card py-2.5 pr-2 pl-3",children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,n.jsx)("span",{className:"text-[13.5px] leading-[18px] font-semibold text-foreground tabular-nums",children:J(e.e164)}),s?(0,n.jsx)("span",{className:"text-[12.5px] leading-4 text-neutral-400",children:s}):null]}),(0,n.jsxs)(m.$,{type:"button",variant:"outline",className:"h-7 gap-1.5 rounded-[7px] border-neutral-300 px-2.5 text-[12.5px] font-semibold",onClick:async()=>{try{await navigator.clipboard?.writeText(e.e164),a(!0)}catch{a(!1)}},children:[(0,n.jsx)(t_.A,{className:"size-3.5","aria-hidden":!0}),t?"Copied":"Copy"]})]})}var aa=a(23309);function an({tracker:e,report:t,loading:a,failed:l,onRetry:s,displayName:r,timeZone:i,calls:o}){let d="pool"===e.kind,c=null!==e.deactivated_at,x=Q(e),u=t?.totals,h=t?.series??null,p="number"==typeof t?.range?t.range:30,f=i?ex(e.deactivated_at,i):null;return l?(0,n.jsxs)(al,{children:[(0,n.jsxs)("div",{role:"alert",className:"flex flex-col items-start gap-3 rounded-xl border border-border px-5 py-6",children:[(0,n.jsx)("p",{className:"text-[14px] font-semibold text-foreground",children:"This report did not load."}),(0,n.jsx)(m.$,{type:"button",variant:"outline",onClick:s,className:"h-8 text-[13px] font-semibold",children:"Try again"})]}),o]}):(0,n.jsxs)(al,{children:[c?(0,n.jsxs)("div",{className:"flex items-center gap-2.5 rounded-[10px] bg-neutral-100 px-3.5 py-3",children:[(0,n.jsx)(aa.A,{className:"size-[18px] flex-none text-neutral-500","aria-hidden":!0}),(0,n.jsx)("p",{className:"text-[13px] leading-[18px] font-medium text-neutral-700",children:x.length>1||e.numbers.length>1?`All ${e.numbers.length} numbers went back to the carrier${f?` on ${f}`:""}. Calls to them no longer reach you.`:`${J(e.numbers[0]?.e164)} went back to the carrier${f?` on ${f}`:""}. Calls to it no longer reach you.`})]}):null,(0,n.jsxs)("div",{className:"flex flex-col gap-8 lg:flex-row",children:[(0,n.jsx)("div",{className:"flex min-w-0 flex-1 flex-col gap-3.5",children:(0,n.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,n.jsx)("p",{className:"text-[13px] leading-4 font-medium text-neutral-500",children:c?`Earned from ${r} calls while it was live`:`Earned from ${r} calls in the last ${p} days`}),a||!u?(0,n.jsx)(eE.E,{className:"h-[50px] w-44"}):(0,n.jsx)("p",{className:"text-[44px] leading-[50px] font-bold tracking-[-0.025em] text-foreground tabular-nums",children:eo(u.earnedCents)}),a||!u?(0,n.jsx)(eE.E,{className:"h-[18px] w-72"}):(0,n.jsxs)("p",{className:"flex flex-wrap items-baseline gap-x-1.5 text-sm leading-[18px] text-neutral-500",children:[(0,n.jsx)(as,{n:u.jobs,word:"job",suffix:"booked"}),(0,n.jsx)(ar,{}),(0,n.jsx)(as,{n:u.newCallers,word:"new caller"}),(0,n.jsx)(ar,{}),(0,n.jsx)(as,{n:u.calls,word:"call"})]})]})}),c?null:(0,n.jsx)("div",{className:"w-full flex-none lg:w-[340px]",children:h?(0,n.jsx)(tx.U,{current:h.current,prior:h.prior,startLabel:eu(h.days[0]),changePct:h.changePct,legend:eg(p),emptyLabel:eb(p),height:104}):(0,n.jsx)(eE.E,{className:"h-[168px] w-full"})})]}),d&&t&&t.sources.length>0?(0,n.jsx)(ai,{sources:t.sources}):null,o]})}function al({children:e}){return(0,n.jsx)("div",{className:"tn-report flex min-w-0 flex-1 flex-col gap-9 px-5 py-6 sm:px-8 sm:py-7",children:e})}function as({n:e,word:t,suffix:a}){let[l,...s]=ed(e,t).split(" ");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"font-semibold text-foreground",children:l}),(0,n.jsx)("span",{children:`${s.join(" ")}${a?` ${a}`:""}`})]})}let ar=()=>(0,n.jsx)("span",{"aria-hidden":!0,className:"px-1 text-neutral-300",children:"\xb7"});function ai({sources:e}){let t=Math.max(1,...e.map(e=>e.calls));return(0,n.jsxs)("section",{className:"flex flex-col","aria-label":"Where callers found you",children:[(0,n.jsxs)("div",{className:"flex items-baseline justify-between gap-3 pb-2.5",children:[(0,n.jsx)("h2",{className:"text-[15px] leading-5 font-semibold text-foreground",children:"Where callers found you"}),(0,n.jsx)("p",{className:"text-[12.5px] leading-4 text-neutral-400",children:"Read from each visitor's first page"})]}),(0,n.jsxs)("table",{className:"w-full border-collapse",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{className:"h-[30px] border-b border-neutral-200 text-[11px] leading-3.5 font-semibold tracking-[0.06em] text-neutral-400",children:[(0,n.jsx)("th",{scope:"col",className:"text-left font-semibold",children:"SOURCE"}),(0,n.jsx)("th",{scope:"col",className:"w-[72px] pl-3 text-right font-semibold",children:"CALLS"}),(0,n.jsx)("th",{scope:"col",className:"w-[64px] pl-3 text-right font-semibold",children:"JOBS"}),(0,n.jsx)("th",{scope:"col",className:"w-[92px] pl-3 text-right font-semibold",children:"EARNED"})]})}),(0,n.jsx)("tbody",{children:e.map(e=>{let a=(0,e1.pI)(e.source,e.sourceKey||null);return(0,n.jsxs)("tr",{className:"h-[46px] border-b border-neutral-200 text-[13.5px] leading-[18px] last:border-b-0",children:[(0,n.jsx)("td",{className:"pr-4",children:(0,n.jsxs)("div",{className:"flex min-w-0 items-center gap-2.5",children:[(0,n.jsx)("span",{className:"grid size-5 flex-none place-items-center",children:(0,n.jsx)(a,{className:"size-4"})}),(0,n.jsx)("span",{className:"w-28 flex-none truncate font-medium text-neutral-900 sm:w-44",children:e.source}),(0,n.jsx)("span",{className:"hidden h-1.5 min-w-0 flex-1 rounded-[3px] bg-neutral-100 sm:block","aria-hidden":!0,
3children:(0,n.jsx)("span",{className:"block h-1.5 rounded-[3px] bg-neutral-900",style:{width:`${Math.round(e.calls/t*100)}%`}})})]})}),(0,n.jsx)("td",{className:"pl-3 text-right text-neutral-900 tabular-nums",children:e.calls}),(0,n.jsx)("td",{className:(0,tu.cn)("pl-3 text-right tabular-nums",e.jobs?"text-neutral-900":"text-neutral-400"),children:e.jobs}),(0,n.jsx)("td",{className:(0,tu.cn)("pl-3 text-right font-semibold tabular-nums",e.earnedCents?"text-foreground":"text-neutral-400"),children:eo(e.earnedCents)})]},e.source)})})]})]})}let ao=[7,30,90],ad="You have unsaved changes. Leave this page and discard them?";function ac({websiteId:e,tracker:t,payload:a,siteUrl:s,paste:r=null,onPasteSeen:d,onBack:c,onChanged:h}){let g=a.canManage,b="pool"===t.kind,j=null!==t.deactivated_at,[N,v]=(0,l.useState)(30),[w,k]=(0,l.useState)(()=>tJ(t,a)),[A,$]=(0,l.useState)(w),[S,T]=(0,l.useState)(!1),[M,L]=(0,l.useState)(null),[_,O]=(0,l.useState)(!1),[F,z]=(0,l.useState)(null!==r&&b),[D,B]=(0,l.useState)(!1),[I,E]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=tJ(t,a);k(e),$(e),L(null)},[t.id,t.updated_at]);let P=(0,i.I)({queryKey:f.qk.trackerReport(e,t.id,N),queryFn:async({signal:a})=>{let n=await fetch(`/api/websites/${e}/marketing/tracking/${t.id}/report?range=${N}`,{signal:a,cache:"no-store"});if(!n.ok)throw Error(`Failed to load the tracker report (${n.status})`);return(await n.json()).report},staleTime:3e4,refetchOnWindowFocus:!0,placeholderData:o.rX}),W=a.timezone,R=(0,u.U4)(e,"calls"),K=R.data?.center?.aiName??"Riley",Y=g&&!j&&tX.some(e=>A[e]!==w[e]);(0,l.useEffect)(()=>{if(!Y)return;let e=e=>{e.preventDefault(),e.returnValue=""},t=e=>{if(e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey)return;let t=e.target?.closest?.("a[href]");!t||"_blank"===t.target||t.origin!==window.location.origin||(t.pathname!==window.location.pathname||t.search!==window.location.search)&&(window.confirm(ad)||(e.preventDefault(),e.stopPropagation()))};return window.addEventListener("beforeunload",e),document.addEventListener("click",t,!0),()=>{window.removeEventListener("beforeunload",e),document.removeEventListener("click",t,!0)}},[Y]);let G=A.name.trim()||t.name?.trim()||es(t.source),Z=b?e1.wK.icon:(0,e1.pI)(es(t.source),er(t.source)),J=em(s),X=a.customDomain,Q=e=>$(t=>({...t,...e}));async function ee(a){try{let n=await fetch(`/api/websites/${e}/marketing/tracking/${t.id}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(a)}),l=await n.json().catch(()=>null);return n.ok?null:l?.error??"That could not be saved."}catch{return"That could not be saved."}}async function et(){let e,n;if(!(A.name.trim()&&q(A.textChoice,A.textOther))||"forward"===A.mode&&10!==H(A.forward).length||b&&A.swapTarget&&10!==H(A.swapTarget).length)return void L(A.name.trim()?"Finish the phone numbers first.":"Give it a name first.");T(!0),L(null);let l=await ee((e="pool"===t.kind,n={name:A.name.trim(),geo_match:!!e&&A.geoMatch,routing:{mode:A.mode,forward_e164:"forward"===A.mode?U(A.forward):null,text_forward_e164:V(A.textChoice,A.textOther,a.textTargets)},recording:{record:A.record!==w.record?A.record?"on":"off":t.recording?.record??"inherit",notice:A.notice!==w.notice?A.notice?"on":"off":t.recording?.notice??"inherit",notice_text:t.recording?.notice_text??null},whisper:{enabled:A.whisperOn,text:A.whisperOn?A.whisperText.trim()||tZ:A.whisperText.trim()||null}},e&&10===H(A.swapTarget).length&&(n.swap_target_digits=H(A.swapTarget)),n));(T(!1),l)?L(l):(k(A),h())}async function ea(){try{let a=await fetch(`/api/websites/${e}/marketing/tracking/${t.id}/deactivate`,{method:"POST"}),n=await a.json().catch(()=>null);if(!a.ok)return n?.error??"That could not be deactivated.";return E(!1),h(),c(),null}catch{return"That could not be deactivated."}}return(0,n.jsxs)("div",{className:"tn-page tnum-fill flex min-h-0 flex-1 flex-col",children:[(0,n.jsxs)(x.rK,{children:[(0,n.jsx)(m.$,{variant:"ghost",size:"icon-sm",type:"button",onClick:function(){(!Y||window.confirm(ad))&&c()},"aria-label":"All tracking numbers",className:"size-7 text-muted-foreground",children:(0,n.jsx)(y.A,{className:"size-4","aria-hidden":!0})}),(0,n.jsx)("span",{className:"grid size-[30px] flex-none place-items-center rounded-full border border-neutral-300 text-neutral-900",children:(0,n.jsx)(Z,{className:"size-4"})}),_?(0,n.jsx)(C.p,{autoFocus:!0,"aria-label":"Name",value:A.name,maxLength:80,onChange:e=>Q({name:e.target.value}),onKeyDown:e=>{"Enter"===e.key&&O(!1),"Escape"===e.key&&(Q({name:w.name}),O(!1))},onBlur:()=>O(!1),className:"h-8 w-[220px] max-w-[50vw] text-lg font-semibold md:text-lg"}):(0,n.jsx)("h1",{className:"min-w-0 truncate text-lg leading-[22px] font-semibold tracking-[-0.012em] text-foreground",children:G}),!g||j||_?null:(0,n.jsx)("button",{type:"button","aria-label":"Rename",onClick:()=>O(!0),className:"grid size-6 flex-none place-items-center rounded text-neutral-400 hover:text-neutral-700",children:(0,n.jsx)(tw.A,{className:"size-3.5","aria-hidden":!0})}),(0,n.jsx)("span",{className:"hidden flex-1 sm:block"}),j?null:(0,n.jsx)(p.I,{"aria-label":"Range",value:String(N),onValueChange:e=>v(Number(e)),options:ao.map(e=>({value:String(e),label:`${e} days`})),itemClassName:"h-[26px] py-0 data-[state=active]:text-foreground"})]}),(0,n.jsxs)("div",{className:"flex flex-1 flex-col lg:flex-row",children:[(0,n.jsx)(an,{tracker:t,report:P.data,loading:P.isPending,failed:P.isError&&!P.data,onRetry:()=>
3void P.refetch(),displayName:G,timeZone:W,calls:(0,n.jsx)(tq,{websiteId:e,trackerId:t.id,isPool:b,deactivated:j,missed:P.data?.missed??null,missedRange:"number"==typeof P.data?.range?P.data.range:null,timeZone:W,aiName:K})}),(0,n.jsx)(t6,{tracker:t,payload:a,draft:A,onDraft:Q,canManage:g,timeZone:W,displayName:G,onAddNumbers:()=>B(!0),onInstall:()=>z(!0),onDeactivate:()=>E(!0)})]}),g&&!j?(0,n.jsx)(ty.x,{open:Y,saving:S,note:M??"Unsaved changes",onDiscard:()=>{$(w),L(null)},onSave:()=>void et()}):null,b&&!j?(0,n.jsx)(tD,{open:F,onOpenChange:e=>{z(e),e||null===r||d?.()},websiteId:e,tracker:t,appOrigin:a.appOrigin,publicKey:a.publicKey,siteHost:J,siteUrl:s,customDomain:X,canManage:g,timeZone:W,ready:null!==r?{count:r}:null,onChanged:h}):null,g&&!j?(0,n.jsx)(tS,{open:I,onOpenChange:E,tracker:t,displayName:G,onConfirm:ea}):null,D?(0,n.jsx)(e9,{websiteId:e,payload:a,existingTracker:t,siteHost:a.customDomain??J,onClose:()=>{B(!1),h()},onCreated:()=>{B(!1),h()}}):null]})}let ax=[7,30,90],au="[&>h1]:font-semibold";function ah({websiteId:e,siteUrl:t,onOpenTracker:a}){let g,b=(0,r.jE)(),{site:j}=(0,h.W)(),N=j?.subdomain??null,[v,w]=(0,l.useState)(30),[y,k]=(0,l.useState)(null),[C,A]=(0,l.useState)(null),[$,S]=(0,l.useState)("active"),T=(0,i.I)({queryKey:f.qk.trackers(e,v),queryFn:async({signal:t})=>{let a=await fetch(`/api/websites/${e}/marketing/tracking?range=${v}`,{signal:t,cache:"no-store"});if(!a.ok)throw Error(`Failed to load tracking numbers (${a.status})`);return await a.json()},staleTime:3e4,refetchOnWindowFocus:!0,placeholderData:o.rX}),M=(0,s.useSearchParams)(),L=M?.get("tracker")?.trim()||null,_=T.data?.canManage;(0,l.useEffect)(()=>{if(M?.get("create")!=="1"||void 0===_)return;_&&k(e=>e??{existing:null});let e=new URL(window.location.href);e.searchParams.delete("create"),window.history.replaceState(null,"",`${e.pathname}${e.search}${e.hash}`)},[M,_]);let O=(0,l.useCallback)(e=>{let t=new URL(window.location.href);e?t.searchParams.set("tracker",e):t.searchParams.delete("tracker"),window.history.pushState(null,"",`${t.pathname}${t.search}${t.hash}`)},[]),F=(0,l.useCallback)(()=>{b.invalidateQueries({queryKey:f.qk.trackers(e)})},[b,e]),z=T.data,D=z&&L?z.trackers.find(e=>e.id===L)??null:null,B=D?D.name?.trim()||es(D.source):null;(0,l.useEffect)(()=>{a?.(B)},[B,a]),(0,l.useEffect)(()=>()=>a?.(null),[a]);let I=(0,l.useMemo)(()=>{if(!z)return null;let e=new Map(z.index.rows.map(e=>[e.trackerId,e])),t=t=>t.flatMap(t=>{let a=e.get(t.id);return a?[{tracker:t,row:a,earnedCents:a.earnedCents}]:[]}).map((e,t)=>({row:e,index:t})).sort((e,t)=>t.row.earnedCents-e.row.earnedCents||e.index-t.index).map(e=>e.row).map(({tracker:e,row:t})=>({tracker:e,row:t}));return{active:t(z.trackers.filter(ee)),deactivated:t(z.trackers.filter(e=>!ee(e)))}},[z]);if(T.isError&&!z)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x.rK,{children:(0,n.jsx)(x.dH,{className:au,children:"Tracking numbers"})}),(0,n.jsx)(u.xp,{screen:"tracking numbers",onRetry:()=>void T.refetch()})]});if(!z||!I)return(0,n.jsx)(tv.F,{});let E=z.customDomain??em(t),W=y?(0,n.jsx)(e9,{websiteId:e,payload:z,existingTracker:y.existing??void 0,siteHost:E,onClose:()=>{k(null),F()},onCreated:(e,t)=>{let a=null!==y.existing;k(null),F(),a||(A(t?.paste?{trackerId:e,count:t.paste.count}:null),O(e))}}):null;if(D)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ac,{websiteId:e,tracker:D,payload:z,siteUrl:t??null,paste:C?.trackerId===D.id?C.count:null,onPasteSeen:()=>A(null),onBack:()=>O(null),onChanged:F}),W]});if(!z.trackers.some(ee)&&"active"===$)return(0,n.jsxs)("div",{className:"tnum tnum-fill flex min-h-0 flex-1 flex-col",children:[(0,n.jsx)(x.rK,{children:(0,n.jsx)(x.dH,{className:au,children:"Tracking numbers"})}),(0,n.jsx)(ti,{canManage:z.canManage,onCreate:()=>k({existing:null}),deactivatedCount:I.deactivated.length,onShowDeactivated:()=>S("deactivated")}),W]});let{index:R}=z,H=R.missedLatest?z.trackers.find(e=>e.id===R.missedLatest?.trackerId):null,K=H?H.name?.trim()||es(H.source):null,U=I.active.filter(e=>e.row.missedOpen>0),Y=z.timezone?ep(R.range,z.timezone):null,G=1===U.length?ef(N,U[0].tracker.id,{missed:!0,days:Y}):((e,t={})=>ef(e,P.Uw,t))(N,{missed:!0,days:Y});return(0,n.jsxs)("div",{className:"tnum flex min-h-0 flex-1 flex-col",children:[(0,n.jsxs)(x.rK,{
3children:[(0,n.jsx)(x.dH,{className:au,children:(g=I.active.length,`${g} tracking ${1===g?"number":"numbers"}`)}),(0,n.jsx)(ta,{children:(0,n.jsxs)("button",{type:"button",className:"ml-1 inline-flex h-7 flex-none items-center gap-1.5 rounded-[7px] bg-neutral-100 pr-2.5 pl-2 text-[13px] leading-4 font-semibold text-neutral-800 hover:bg-neutral-200",children:[(0,n.jsx)(d.A,{className:"size-3.5","aria-hidden":!0}),"How it works"]})}),(0,n.jsx)(x.Xg,{}),(0,n.jsx)(p.I,{"aria-label":"Range",value:String(v),onValueChange:e=>w(Number(e)),options:ax.map(e=>({value:String(e),label:`${e} days`})),itemClassName:"h-[26px] py-0 data-[state=active]:text-foreground"}),z.canManage?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"hidden lg:contents",children:(0,n.jsx)(x.VS,{})}),(0,n.jsxs)(m.$,{type:"button",size:"sm",className:"h-[34px] flex-none gap-1.5 px-3 text-[13px] font-bold",onClick:()=>k({existing:null}),children:[(0,n.jsx)(c.A,{className:"size-[15px]",strokeWidth:2.4,"aria-hidden":!0}),"Create number"]})]}):null]}),"active"===$?(0,n.jsx)(th,{index:R,missedHref:G,missedName:K,timeZone:z.timezone,stale:T.isPlaceholderData}):null,(0,n.jsx)(tb,{rows:"active"===$?I.active:I.deactivated,canManage:z.canManage,siteHost:E,timeZone:z.timezone,mode:$,deactivatedCount:I.deactivated.length,onOpen:O,onAddNumbers:e=>k({existing:e}),onShowDeactivated:()=>S("deactivated"),onShowActive:()=>S("active")}),W]})}},79778:(e,t,a)=>{a.d(t,{A:()=>n});let n=(0,a(50726).A)("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]])}}]);
4//# chunkId=4f2bb1a9-e0bf-5e87-84f6-902da8585c23

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.