PageSourceSearch

https://www.gwi.net/_next/static/chunks/03cq66ib0kmbf.js

js gwi.net collected 2026-09-24 09:55:45 UTC 36,106 bytes, 25 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34667,52749,e=>{"use strict";var t=e.i(43476),s=e.i(71645);let a=/^(Small Business )?Internet (\d+)\/(\d+)Mbps$/i,n=e=>Math.round((e??0)/100),l=e=>e>=1e3&&e%1e3==0?`${e/1e3} Gig`:`${e} Mbps`;async function r(e,t,s,a){let n,l,r,i,o=(l=new AbortController,r=setTimeout(()=>l.abort(),1e4),i=()=>l.abort(),a&&(a.aborted?l.abort():a.addEventListener("abort",i,{once:!0})),{signal:l.signal,done:()=>{clearTimeout(r),a?.removeEventListener("abort",i)}});try{n=await fetch("https://api.gaiia.com/api",{method:"POST",headers:{"content-type":"application/json","x-tenant-id":"1497966a-04ce-4a5f-bbe0-ffa07fbbef6f"},body:JSON.stringify({operationName:e,query:t,variables:s}),signal:o.signal})}finally{o.done()}let d=await n.json();if(d.errors?.length){let e=d.errors[0];throw Object.assign(Error(e.message??"Gaiia request failed"),{code:e.extensions?.code??null})}return d.data}let i=`query AddressSuggestions($input: AddressSuggestionsWithCoordinatesQueryInput!) {
2  addressSuggestionsWithCoordinates(input: $input) {
3    addressId
4    address
5    premise
6    thoroughfare
7    subBuilding
8    locality
9    region
10    postalCode
11    county
12    country
13    coordinates { latitude longitude }
14  }
15}`;async function o(e,t){let s=e.trim();if(s.length<4)return[];let a=/\bmaine\b/i.test(s)?s:`${s}, Maine`;return((await r("AddressSuggestions",i,{input:{query:a,language:"en",country:"US"}},t)).addressSuggestionsWithCoordinates??[]).filter(e=>"ME"===(e.region??"").toUpperCase())}let d=`mutation RequestProductAvailability($input: RequestProductAvailabilityInput!) {
16  requestProductAvailability(input: $input) { id fetchAt }
17}`,c=`query ProductAvailabilityResult($input: ProductAvailabilityResultInput!) {
18  productAvailabilityResult(input: $input) {
19    isExactData
20    workflowError { code message }
21    orderableProductVersions { id price product { id name type slug } }
22  }
23}`;async function u(e,t){try{let s=(await r("RequestProductAvailability",d,{input:{address:{premise:e.premise??void 0,thoroughfare:e.thoroughfare??void 0,subBuilding:e.subBuilding??void 0,locality:e.locality??void 0,region:e.region??void 0,postalCode:e.postalCode??"",county:e.county??void 0,country:e.country??void 0,latitude:e.coordinates?.latitude,longitude:e.coordinates?.longitude}}},t)).requestProductAvailability.id;for(let e of[1200,1500,2e3,2500,3e3]){await new Promise(t=>setTimeout(t,e));try{let e=(await r("ProductAvailabilityResult",c,{input:{id:s}},t)).productAvailabilityResult;if(!e)continue;if(e.workflowError)return{status:"unavailable",code:e.workflowError.code,message:e.workflowError.message};let a=(e.orderableProductVersions??[]).map(e=>({id:e.id,productId:e.product?.id??null,name:e.product?.name??null,priceCents:e.price,type:e.product?.type??null,slug:e.product?.slug??null}));if(0===a.length)return{status:"unavailable",code:null,message:null};return{status:"available",products:a,requestId:s}}catch(t){let e=t.code;if("PROPERTY_FOUND_FOR_OTHER_UNITS"===e)return{status:"needs-unit"};if("REQUEST_NOT_FOUND"===e||"NO_RESULT_AVAILABLE"===e)continue;throw t}}return{status:"error",message:"Timed out waiting on availability."}}catch(e){if("PROPERTY_FOUND_FOR_OTHER_UNITS"===e.code)return{status:"needs-unit"};return{status:"error",message:e.message}}}let m=`mutation RequestDiscountCodeValidation($input: RequestDiscountCodeValidationInput!) {
24  requestDiscountCodeValidation(input: $input) { result { codeIsValid typeOfCode } }
25}`;async function x(e,t){try{let s=await r("RequestDiscountCodeValidation",m,{input:{discountCode:e}},t),a=s.requestDiscountCodeValidation?.result;return!!(a?.codeIsValid&&a.typeOfCode?.toLowerCase()==="promo")}catch{return!1}}let h=/^(utm_[a-z_]+|gclid|gbraid|wbraid|fbclid|msclkid|ttclid)$/i;e.s(["addressSuggestions",0,o,"checkAvailability",0,u,"checkoutUrl",0,function(e){let t=e.address,s={country:"USA",...t.premise&&{premise:t.premise},...t.thoroughfare&&{thoroughfare:t.thoroughfare},...(e.unit??t.subBuilding)&&{line2:e.unit??t.subBuilding},...t.locality&&{locality:t.locality},...t.region&&{region:t.region},...t.postalCode&&{postalCode:t.postalCode},...t.county&&{county:t.county},...t.coordinates&&{latitude:t.coordinates.latitude,longitude:t.coordinates.longitude}},a=[`address=${encodeURIComponent(JSON.stringify(s))}`,`account-type=${e.business?"small-business":"residential"}`],n=e.productSlugs.filter(e=>!!e);
25for(let[t,s]of(n.length&&a.push(`products=${n.map(encodeURIComponent).join(",")}`),Object.entries(e.tracking??{})))a.push(`${encodeURIComponent(t)}=${encodeURIComponent(s)}`);let l=e.base.replace(/\/+$/,""),r=e.promoCode?`${l}/promo/${encodeURIComponent(e.promoCode)}`:`${l}/`;return`${r}?${a.join("&")}`},"classifyCatalog",0,function(e){let t=[],s=[],r=null;for(let i of e){let e=i.name?.trim();if(!e)continue;let o=n(i.priceCents);if("DISCOUNT"===i.type){/installation/i.test(e)&&!r&&(r={id:i.id,name:e,price:o});continue}if("DEBIT"!==i.type)continue;let d=e.match(a);if(d){let s=Number(d[2]),a=Number(d[3]);t.push({id:i.id,productId:i.productId,slug:i.slug,name:e,speed:l(s),speedDetail:`${s} Mbps down / ${a} Mbps up`,price:o,business:!!d[1]});continue}s.push({id:i.id,productId:i.productId,slug:i.slug,name:e,price:o,business:/small business|enterprise/i.test(e)})}return t.sort((e,t)=>e.price-t.price),s.sort((e,t)=>e.price-t.price),{plans:t,addOns:s,installDiscount:r}},"promoCodeIsValid",0,x,"trackingParams",0,function(e){let t={};for(let[s,a]of new URLSearchParams(e))!h.test(s)||!a||s in t||(t[s]=a);return t},"withTracking",0,function(e,t){let s=Object.entries(t);if(!s.length)return e;let a=s.map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("&");return`${e}${e.includes("?")?"&":"?"}${a}`}],52749),e.s(["default",0,function({value:e,onChange:a,onSelect:n,onSubmit:l,tone:r="light",autoFocus:i=!1,placeholder:d="Enter your address",disabled:c=!1}
25){let[u,m]=(0,s.useState)([]),[x,h]=(0,s.useState)(!1),[p,b]=(0,s.useState)(-1),[f,y]=(0,s.useState)(!1),[g,v]=(0,s.useState)(!1),j=(0,s.useRef)(!1),N=(0,s.useRef)(null),w=(0,s.useId)(),k="dark"===r;function C(e){j.current=!0,a(e.address),h(!1),m([]),n(e)}return(0,s.useEffect)(()=>{if(j.current){j.current=!1;return}let t=e.trim();if(t.length<4){m([]),v(!1),h(!1);return}let s=new AbortController,a=setTimeout(async()=>{y(!0),h(!0);try{let e=await o(t,s.signal);m(e.slice(0,6)),b(-1),v(!0)}catch(e){if(e?.name==="AbortError")return;m([]),v(!0)}finally{y(!1)}},250);return()=>{clearTimeout(a),s.abort()}},[e]),(0,s.useEffect)(()=>{function e(e){N.current&&!N.current.contains(e.target)&&h(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,t.jsxs)("div",{ref:N,className:"relative min-w-0 flex-1",children:[(0,t.jsx)("input",{type:"text",role:"combobox","aria-label":"Street address","aria-expanded":x,"aria-controls":x&&u.length>0?w:void 0,"aria-autocomplete":"list","aria-activedescendant":p>=0?`${w}-${p}`:void 0,value:e,onChange:e=>a(e.target.value),onKeyDown:function(e){if(!x||0===u.length){"Enter"===e.key&&l&&(e.preventDefault(),l());return}"ArrowDown"===e.key?(e.preventDefault(),b(e=>(e+1)%u.length)):"ArrowUp"===e.key?(e.preventDefault(),b(e=>e<=0?u.length-1:e-1)):"Enter"===e.key?(e.preventDefault(),p>=0?C(u[p]):l&&l()):"Escape"===e.key&&h(!1)},onFocus:()=>e.trim().length>=4&&(u.length>0||g)&&h(!0),placeholder:d,autoComplete:"street-address",autoFocus:i,disabled:c,className:`address-input w-full min-w-0 rounded-full bg-transparent py-3.5 pl-5 pr-9 text-base outline-none focus-visible:ring-2 ${k?"address-input-dark text-white placeholder:text-white/50 focus-visible:ring-sky/80":"text-navy placeholder:text-navy/40 focus-visible:ring-blue-700/60"}`}),(0,t.jsx)("span",{"aria-live":"polite",className:"sr-only",children:x&&u.length>0?`${u.length} address suggestion${1===u.length?"":"s"} available`:x&&g&&!f?"No Maine address matches":""}),f&&(0,t.jsx)("span",{"aria-hidden":!0,className:`pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-xs font-semibold ${k?"text-white/50":"text-navy/40"}`,children:"…"}),x&&(0,t.jsx)("div",{className:"absolute left-0 right-0 top-full z-[60] mt-2 overflow-hidden rounded-2xl border border-navy/10 bg-white py-1 text-left shadow-xl",children:u.length>0?(0,t.jsx)("ul",{id:w,role:"listbox","aria-label":"Address suggestions",children:u.map((e,s)=>(0,t.jsx)("li",{id:`${w}-${s}`,role:"option","aria-selected":s===p,children:(0,t.jsx)("button",{type:"button",onMouseEnter:()=>b(s),onClick:()=>C(e),className:`block w-full px-5 py-3 text-left text-sm transition ${s===p?"bg-blue/10 text-navy":"text-navy/80 hover:bg-navy/5"}`,children:e.address})},e.addressId))}):f?(0,t.jsx)("p",{className:"px-5 py-3 text-sm text-navy/55",children:"Searching Maine addresses..."}):g?(0,t.jsx)("p",{className:"px-5 py-3 text-sm leading-relaxed text-navy/60",children:"No Maine match for that yet. GWI serves Maine, so keep typing your street, or enter the full address and we'll check it."}):null})]})}],34667)},7920,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(22016),n=e.i(34667),l=e.i(52749),r=e.i(31487),i=e.i(58249);let o=e=>`$${e.toFixed(2)}`;function d(e,t){let s=e.plans.filter(e=>e.business===t),a=s.length>0?s:e.plans.filter(e=>!e.business),n=a[0]?.business??!1;return{plans:a,forBusiness:n}}function c(e,t,s,a,n){let{plans:l,forBusiness:r}=d(e,a),i=e.addOns.filter(e=>e.business===r),o=l.find(e=>e.id===t)??l[0],c=i.map(e=>({...e,qty:s[e.id]??0})).filter(e=>e.qty>0),u=e.installDiscount?.price??null;return{plans:l,forBusiness:r,addOns:i,plan:o,chosen:c,monthly:o.price+c.reduce((e,t)=>e+t.price*t.qty,0),installFee:u,installWaived:null!==u&&n,lineCount:c.reduce((e,t)=>e+t.qty,0)}}let u="1 Gig",m=/phone|line|voip/i;function x({address:e,setAddress:s,business:a,checking:l,onSubmit:r,onSelect:i}){return(0,t.jsxs)("div",{className:"mt-12 text-center",children:[(0,t.jsx)("img",{src:"/brand/puffin-flying.png",alt:"",className:"animate-float mx-auto h-24 w-auto"}),(0,t.jsx)("h1",{className:"mt-6 text-4xl font-extrabold tracking-tight sm:text-5xl",children:"Let's see what's available."}),(0,t.jsxs)("p",{className:"mx-auto mt-4 max-w-sm text-navy/70",children:[a?"Enter the business address":"Enter the address"," where you want service. That's the whole first step."]}),(0,t.jsx)("form",{onSubmit:e=>{e.preventDefault(),r()},className:"mx-auto mt-8 max-w-lg",children:(0,t.jsxs)("div",{className:"flex flex-col gap-2 rounded-3xl bg-white p-2 shadow-lg ring-1 ring-navy/10 sm:flex-row sm:items-center sm:rounded-full",children:[(0,t.jsx)(n.default,{value:e,onCh
25ange:s,onSelect:i,onSubmit:r,placeholder:"123 Main St, Brunswick, ME",disabled:l,autoFocus:!0}),(0,t.jsx)("button",{type:"submit",disabled:l||!e.trim(),className:"shrink-0 rounded-full bg-orange px-7 py-3.5 font-bold text-navy transition hover:bg-orange-400 disabled:cursor-not-allowed disabled:opacity-50",children:l?"Checking…":"Check Address"})]})}),l&&(0,t.jsx)("p",{className:"mt-6 animate-pulse text-sm font-medium text-navy/70",children:"Checking the network at that address…"})]})}function h({checked:e,business:s,promoOk:a,catalog:n,planId:l,setPlanId:d,extras:m,setExtras:x,onChangeAddress:p,onContinue:y}){let{plans:g,forBusiness:v,addOns:j,plan:N,chosen:w,monthly:k,installFee:C,installWaived:R,lineCount:E}=c(n,l,m,s,a);return(0,t.jsxs)("div",{className:"mt-8",children:[(0,t.jsxs)("div",{className:"rounded-3xl bg-navy p-8 text-center",children:[(0,t.jsx)("img",{src:"/brand/puffin-thumbsup.png",alt:"",className:"mx-auto h-24 w-auto"}),(0,t.jsx)("h1",{className:"mt-3 text-3xl font-extrabold text-white sm:text-4xl",children:"Puff yeah, you're covered."}),(0,t.jsxs)("p",{className:"mt-2 text-white/70",children:["GWI fiber is live ",e.locality?`in ${e.locality}`:"at this address","."]}),(0,t.jsxs)("button",{onClick:p,className:"mt-4 rounded-full bg-white/10 px-4 py-2 text-sm text-white/80 transition hover:bg-white/20",children:[e.address," · Change"]})]}),(0,t.jsx)("h2",{className:"mt-10 text-sm font-bold uppercase tracking-widest text-navy/70",children:"Pick your speed"}),(0,t.jsx)("p",{className:"mt-1 text-xs text-navy/70",children:v?"These are the small business plans orderable at this address.":s?"No small business plans are listed at this address, so these are the residential plans.":"These are the plans orderable at this address."}),(0,t.jsx)("div",{className:"mt-4 space-y-3",children:g.map(e=>(0,t.jsx)(b,{plan:e,active:e.id===N.id,popular:!v&&g.length>2&&e.speed===u,onSelect:()=>{d(e.id),(0,i.track)("select_plan",{plan_name:e.name,price:e.price,business:v})}},e.id))}),j.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("h2",{className:"mt-10 text-sm font-bold uppercase tracking-widest text-navy/70",children:["Add extras"," ",(0,t.jsx)("span",{className:"font-medium normal-case tracking-normal",children:"(optional)"})]}),(0,t.jsx)("div",{className:"mt-4 space-y-3",children:j.map(e=>(0,t.jsx)(f,{addOn:e,qty:m[e.id]??0,setQty:t=>{var s;return s=e.id,void x(e=>{let a={...e};return t<=0?delete a[s]:a[s]=t,a})}},e.id))})]}),(0,t.jsxs)("div",{className:"mt-10 rounded-2xl border border-navy/10 bg-white p-6",children:[(0,t.jsx)("h2",{className:"text-sm font-bold uppercase tracking-widest text-navy/70",children:"Your monthly bill"}),(0,t.jsxs)("dl",{className:"mt-4 space-y-2.5 text-sm",children:[(0,t.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,t.jsx)("dt",{className:"text-navy/70",children:N.name}),(0,t.jsx)("dd",{className:"font-semibold text-navy",children:o(N.price)})]}),w.map(e=>(0,t.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,t.jsxs)("dt",{className:"text-navy/70",children:[e.name,e.qty>1&&(0,t.jsxs)("span",{className:"text-navy/70",children:[" × ",e.qty]})]}),(0,t.jsx)("dd",{className:"font-semibold text-navy",children:o(e.price*e.qty)})]},e.id))]}),(0,t.jsxs)("div",{className:"mt-4 flex items-baseline justify-between border-t border-navy/10 pt-4",children:[(0,t.jsx)("span",{className:"font-bold text-navy",children:"Monthly total"}),(0,t.jsxs)("span",{children:[(0,t.jsxs)("span",{className:"font-display text-3xl font-extrabold text-navy",children:["$",k]}),(0,t.jsx)("span",{className:"text-sm text-navy/70",children:"/mo"})]})]}),(0,t.jsx)("h2",{className:"mt-8 text-sm font-bold uppercase tracking-widest text-navy/70",children:"One-time charges"}),(0,t.jsxs)("dl",{className:"mt-4 space-y-2.5 text-sm",children:[(0,t.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,t.jsx)("dt",{className:"text-navy/70",children:"Standard installation"}),(0,t.jsx)("dd",{className:"flex items-center gap-2",children:null===C?(0,t.jsx)("span",{className:"font-semibold text-navy",children:"Quoted at checkout"}):R?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-navy/70 line-through",children:o(C)}),(0,t.jsx)("span",{className:"font-bold text-blue-700",children:"FREE"})]}):(0,t.jsxs)("span",{className:"font-semibold text-navy",children:[o(C),(0,t.jsx)("span",{className:"ml-1 font-normal text-navy/70",children:"on your first invoice"})]})})]}),R&&(0,t.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,t.jsx)("dt",{className:"text-navy/70",children:"Promo code"}),(0,t.jsxs)("dd",{className:"font-bold text-blue-700",children:[r.CHECKOUT_PROMO_CODE,(0,t.jsx)("span",{className:"ml-1 font-normal text-navy/70",children:"applied at checkout"})]})]})]}),null!==C&&(0,t.jsxs)("div",{className:"mt-4 flex items-baseline justify-between border-t border-navy/10 pt-4",children:[(0,t.jsx)("span",{className:"font-bold text-navy",children:"First invoice"}),(0,t.jsxs)("span",{className:"text-right",children:[(0,t.jsx)("span",{className:"font-display text-2xl font-extrabold text-navy",children:o(k+(R?0:C))}),(0,t.jsx)("span",{className:"block text-xs text-navy/70",children:"plus taxes and fees, issued at activation"})]})]}),(0,t.jsx)("p",{className:"mt-4 text-xs text-navy/70",children:"No contract, no data caps, no promo rate that jumps in year two. Cancel any time."})]}),(0,t.jsx)("div",{className:"sticky bottom-0 z-40 -mx-4 mt-8 border-t border-navy/10 bg-cream/95 px-4 py-4 backdrop-blur sm:-mx-6 sm:px-6",children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("p",{className:"truncate text-xs text-navy/70",children:[N.speed,E>0&&` + ${E} extra${E>1?"s":""}`,R&&" · install free"]}),(0,t.jsxs)("p",{className:"font-display text-2xl font-extrabold leading-tight text-navy",children:["$",k,(0,t.jsx)("span",{className:"text-sm font-semibold text-navy/70",children:"/mo"})]})]}),(0,t.jsx)("button",{onClick:y,className:"shrink-0 rounded-full bg-orange px-7 py-3.5 font-bold text-navy shadow-md transition hover:bg-orange-400",children:"Continue →"})]})})]})}function p({checked:e,business:a,promoOk:n,catalog:d,planId:u,extras:m,tracking:x,onBack:h}){let b,{plan:f,forBusiness:y,chosen:g,monthly:v,installFee:j,installWaived:N}
25=c(d,u,m,a,n),w=e.address,[k,C]=(0,s.useState)(!1),R=(b=f.speedDetail.match(/(\d+)/)?.[1])?(f.business?r.broadbandLabels.business:r.broadbandLabels.residential).find(e=>e.speed.startsWith(`${b} `))??null:null,E=n?r.CHECKOUT_PROMO_CODE:null,$=(0,l.checkoutUrl)({base:r.EXTERNAL_ORDER_URL,address:e,productSlugs:[f.slug,...g.map(e=>e.slug)],business:y,promoCode:E,tracking:x});async function O(){try{await navigator.clipboard.writeText(w),C(!0),setTimeout(()=>C(!1),2500)}catch{}}return(0,t.jsxs)("div",{className:"mt-10",children:[(0,t.jsx)("button",{onClick:h,className:"text-sm font-semibold text-navy/70 transition hover:text-blue-700",children:"← Back to plans"}),(0,t.jsx)("h1",{className:"mt-4 text-3xl font-extrabold sm:text-4xl",children:"Review your order."}),(0,t.jsx)("p",{className:"mt-2 text-navy/70",children:"Check everything over. Nothing is charged on this page."}),(0,t.jsxs)("div",{className:"mt-8 rounded-3xl border border-navy/10 bg-white p-6 sm:p-8",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"text-xs font-bold uppercase tracking-widest text-navy/70",children:"Service address"}),(0,t.jsx)("p",{className:"mt-1 font-semibold text-navy",children:w})]}),(0,t.jsx)("button",{onClick:O,className:"shrink-0 rounded-full border-2 border-navy/15 px-4 py-1.5 text-xs font-bold text-navy/70 transition hover:border-blue hover:text-blue-700",children:k?"Copied":"Copy"})]}),(0,t.jsxs)("dl",{className:"mt-6 space-y-3 border-t border-navy/10 pt-6 text-sm",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-4",children:[(0,t.jsxs)("dt",{className:"font-bold text-navy",children:[f.speed," internet",(0,t.jsx)("span",{className:"ml-2 font-normal text-navy/70",children:f.speedDetail})]}),(0,t.jsxs)("dd",{className:"shrink-0 font-bold text-navy",children:[o(f.price),"/mo"]})]}),g.map(e=>(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-4",children:[(0,t.jsxs)("dt",{className:"text-navy/70",children:[e.name,e.qty>1&&(0,t.jsxs)("span",{className:"text-navy/70",children:[" × ",e.qty]})]}),(0,t.jsxs)("dd",{className:"shrink-0 text-navy/70",children:[o(e.price*e.qty),"/mo"]})]},e.id))]}),(0,t.jsxs)("div",{className:"mt-5 flex items-baseline justify-between border-t border-navy/10 pt-5",children:[(0,t.jsx)("span",{className:"font-bold text-navy",children:"Monthly total"}),(0,t.jsxs)("span",{className:"font-display text-3xl font-extrabold text-navy",children:["$",v,(0,t.jsx)("span",{className:"text-sm font-semibold text-navy/70",children:"/mo"})]})]}),(0,t.jsxs)("div",{className:"mt-3 flex items-baseline justify-between text-sm",children:[(0,t.jsx)("span",{className:"text-navy/70",children:"Standard installation"}),(0,t.jsx)("span",{className:"flex items-center gap-2",children:null===j?(0,t.jsx)("span",{className:"font-semibold text-navy",children:"Quoted at checkout"}):N?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-navy/70 line-through",children:o(j)}),(0,t.jsx)("span",{className:"font-bold text-blue-700",children:"FREE"})]}):(0,t.jsxs)("span",{className:"font-semibold text-navy",children:[o(j),(0,t.jsx)("span",{className:"ml-1 font-normal text-navy/70",children:"on your first invoice"})]})})]}),N&&(0,t.jsxs)("div",{className:"mt-3 flex items-baseline justify-between text-sm",children:[(0,t.jsx)("span",{className:"text-navy/70",children:"Promo code"}),(0,t.jsxs)("span",{className:"font-bold text-blue-700",children:[r.CHECKOUT_PROMO_CODE,(0,t.jsx)("span",{className:"ml-2 font-normal text-navy/70",children:"applied at checkout"})]})]}),null!==j&&(0,t.jsxs)("div",{className:"mt-3 flex items-baseline justify-between text-sm",children:[(0,t.jsx)("span",{className:"text-navy/70",children:"First invoice, issued at activation"}),(0,t.jsxs)("span",{className:"font-semibold text-navy",children:[o(v+(N?0:j)),(0,t.jsx)("span",{className:"ml-1 font-normal text-navy/70",children:"plus taxes and fees"})]})]}),R&&(0,t.jsxs)("a",{href:(0,r.labelUrl)(R.id),target:"_blank",rel:"noopener noreferrer",className:"mt-5 inline-block text-sm font-semibold text-blue-700 underline underline-offset-4 transition hover:text-blue-700",children:["Broadband facts for ",f.speed," →"]})]}),(0,t.jsxs)("div",{className:"mt-6 rounded-2xl border border-navy/10 bg-white p-6",children:[(0,t.jsx)("p",{className:"text-xs font-bold uppercase tracking-widest text-navy/70",children:"What happens next"}),(0,t.jsx)("ol",{className:"mt-4 space-y-3 text-sm text-navy/70",children:["Your address, plan, and any phone line carry over to our secure checkout.",g.some(e=>!/voip|phone|line/i.test(e.name))?"Re-add your extras (FiberGuard, backup, mesh), then enter your details and payment method.":"Confirm your selections, then add your details and payment method.","We'll contact you to schedule your install."].map((e,s)=>(0,t.jsxs)("li",{className:"flex gap-3",children:[(0,t.jsx)("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-blue/10 text-[11px] font-bold text-blue-700",children:s+1}),e]},e))})]}),(0,t.jsx)("a",{href:$,onClick:()=>(0,i.track)("begin_checkout",{plan_name:f.name,value:v,business:y,add_ons:g.map(e=>e.name),promo:E??void 0}),className:"mt-8 block rounded-full bg-orange px-7 py-4 text-center font-bold text-navy shadow-md transition hover:bg-orange-400",children:"Continue to secure checkout →"}),(0,t.jsxs)("p",{className:"mt-4 text-center text-sm text-navy/70",children:["Rather talk it through? Call"," ",(0,t.jsx)("a",{href:`tel:+1-${r.PHONE}`,className:"font-bold text-blue-700",children:r.PHONE})]})]})}function b({plan:e,active:s,popular:a,onSelect:n}){return(0,t.jsxs)("button",{onClick:n,"aria-pressed":s,className:`flex w-full items-center gap-4 roun
25ded-2xl border-2 bg-white p-5 text-left transition ${s?"border-orange ring-2 ring-orange/30":"border-navy/10 hover:border-blue"}`,children:[(0,t.jsx)("span",{className:`flex h-5 w-5 shrink-0 items-center justify-center rounded-full border-2 ${s?"border-orange bg-orange":"border-navy/25"}`,children:s&&(0,t.jsx)(g,{})}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-2 font-bold text-navy",children:[e.speed,a&&(0,t.jsx)("span",{className:"rounded-full bg-blue/10 px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide text-blue-700",children:"Popular"})]}),(0,t.jsx)("span",{className:"mt-0.5 block text-sm text-navy/70",children:e.speedDetail})]}),(0,t.jsxs)("span",{className:"shrink-0 text-right",children:[(0,t.jsxs)("span",{className:"font-display text-2xl font-extrabold text-navy",children:["$",e.price]}),(0,t.jsx)("span",{className:"text-sm text-navy/70",children:"/mo"})]})]})}function f({addOn:e,qty:s,setQty:a}){let n=m.test(e.name)?5:1,l=s>
250,i=`flex w-full items-center gap-4 rounded-2xl border-2 bg-white p-5 text-left transition ${l?"border-blue ring-2 ring-blue/25":"border-navy/10 hover:border-blue/50"}`,o=e.slug?r.addOnTaglines[e.slug]:void 0,d=(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block font-bold text-navy",children:e.name}),o&&(0,t.jsx)("span",{className:"mt-0.5 block text-xs leading-relaxed text-navy/70",children:o})]});return n>1?(0,t.jsxs)("div",{className:i,children:[d,(0,t.jsxs)("div",{className:"shrink-0 text-right",children:[(0,t.jsxs)("p",{className:"text-sm font-bold text-navy",children:["+$",e.price,(0,t.jsx)("span",{className:"font-medium text-navy/70",children:" /mo each"})]}),(0,t.jsxs)("div",{className:"mt-2 inline-flex items-center gap-1 rounded-full border border-navy/15 p-1",children:[(0,t.jsx)(y,{label:`Remove one ${e.name}`,onClick:()=>a(s-1),disabled:0===s,children:"−"}),(0,t.jsx)("span",{"aria-live":"polite",className:"w-7 text-center font-display text-base font-extrabold text-navy",children:s}),(0,t.jsx)(y,{label:`Add one ${e.name}`,onClick:()=>a(s+1),disabled:s>=n,children:"+"})]})]})]}):(0,t.jsxs)("button",{onClick:()=>a(+!l),role:"switch","aria-checked":l,className:i,children:[(0,t.jsx)("span",{className:`flex h-5 w-5 shrink-0 items-center justify-center rounded-md border-2 ${l?"border-blue bg-blue":"border-navy/25"}`,children:l&&(0,t.jsx)(g,{})}),d,(0,t.jsxs)("span",{className:"shrink-0 font-bold text-navy",children:["+$",e.price]})]})}function y({children:e,label:s,onClick:a,disabled:n}){return(0,t.jsx)("button",{type:"button","aria-label":s,onClick:a,disabled:n,className:"flex h-8 w-8 items-center justify-center rounded-full text-lg font-bold text-navy transition hover:bg-navy/5 disabled:cursor-not-allowed disabled:opacity-30",children:e})}function g(){return(0,t.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",children:(0,t.jsx)("path",{d:"M20 6L9 17l-5-5"})})}function v({address:e,checked:s,business:a,tracking:n,onRetry:i}){let o=s?(0,l.checkoutUrl)({base:r.EXTERNAL_ORDER_URL,address:s,productSlugs:[],business:a,tracking:n}):(0,l.withTracking)(r.EXTERNAL_ORDER_URL,n);return(0,t.jsxs)("div",{className:"mt-12 text-center",children:[(0,t.jsx)("img",{src:"/brand/puffin-standing.png",alt:"",className:"mx-auto h-32 w-auto"}),(0,t.jsx)("h1",{className:"mt-6 text-3xl font-extrabold sm:text-4xl",children:"Which unit are you in?"}),(0,t.jsxs)("p",{className:"mx-auto mt-4 max-w-md text-navy/65",children:[(0,t.jsx)("span",{className:"font-semibold",children:e})," has more than one unit, so we need the apartment or suite before we can confirm what's available. Our order portal will walk you through it."]}),(0,t.jsxs)("div",{className:"mt-8 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[(0,t.jsx)("a",{href:o,className:"rounded-full bg-orange px-7 py-3.5 font-bold text-navy transition hover:bg-orange-400",children:"Pick my unit"}),(0,t.jsx)("button",{onClick:i,className:"rounded-full border-2 border-navy/20 px-7 py-3.5 font-bold text-navy/70 transition hover:border-navy/50",children:"Try another address"})]})]})}function j({address:e,tracking:s,onRetry:n}){return(0,t.jsxs)("div",{className:"mt-12 text-center",children:[(0,t.jsx)("img",{src:"/brand/puffin-standing.png",alt:"",className:"mx-auto h-40 w-auto"}),(0,t.jsx)("h1",{className:"mt-6 text-3xl font-extrabold sm:text-4xl",children:"Not there yet, but we're building."}),(0,t.jsxs)("p",{className:"mx-auto mt-4 max-w-md text-navy/65",children:["We couldn't match ",(0,t.jsx)("span",{className:"font-semibold",children:e})," to a current GWI service area. Community interest is a big part of how we pick where to build next."]}),(0,t.jsxs)("div",{className:"mt-8 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[(0,t.jsx)(a.default,{href:"/coverage",className:"rounded-full bg-blue px-7 py-3.5 font-bold text-white transition hover:bg-blue-600",children:"See our communities"}),(0,t.jsx)("button",{onClick:n,className:"rounded-full border-2 border-navy/20 px-7 py-3.5 font-bold text-navy/70 transition hover:border-navy/50",children:"Try another address"})]}),(0,t.jsx)("a",{href:(0,l.withTracking)(r.EXTERNAL_ORDER_URL,s),className:"mt-5 inline-block text-sm font-semibold text-navy/70 underline underline-offset-4 transition hover:text-blue-700",children:"Double-check on our order portal"}),(0,t.jsxs)("p",{className:"mt-6 text-sm text-navy/70",children:["Questions? Call"," ",(0,t.jsx)("a",{href:`tel:+1-${r.PHONE}`,className:"font-bold text-blue-700",children:r.PHONE})]})]})}function N({typed:e,candidates:s,onPick:a,onRetry:n}){return(0,t.jsxs)("div",{className:"mt-12",children:[(0,t.jsx)("h1",{className:"text-center text-3xl font-extrabold sm:text-4xl",children:"Which address did you mean?"}),(0,t.jsxs)("p",{className:"mx-auto mt-4 max-w-md text-center text-navy/65",children:["We found a few Maine addresses close to"," ",(0,t.jsx)("span",{className:"font-semibold",children:e})," but none that matched it exactly. Pick yours and we'll check it."]}),(0,t.jsx)("ul",{className:"mx-auto mt-8 max-w-lg space-y-2",children:s.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)("button",{type:"button",onClick:()=>a(e),className:"w-full rounded-2xl border-2 border-navy/10 bg-white px-5 py-3.5 text-left font-semibold text-navy transition hover:border-blue",children:e.address})},e.addressId))}),(0,t.jsx)("div",{className:"mt-8 text-center",children:(0,t.jsx)("button",{onClick:n,className:"rounded-full border-2 border-navy/20 px-7 py-3.5 font-bold text-navy/70 transition hover:border-navy/50",children:"None of these, try again"})})]})}function w({address:e,tracking:s,onRetry:a}){return(0,t.jsxs)("div",{className:"mt-12 text-center",children:[(0,t.jsx)("img",{src:"/brand/puffin-standing.png",alt:"",className:"mx-auto h-40 w-auto"}),(0,t.jsx)("h1",{className:"mt-6 text-3xl font-extrabold sm:text-4xl",children:"We couldn't find that address."}),(0,t.jsxs)("p",{className:"mx-auto mt-4 max-w-md text-navy/65",children:[(0,t.jsx)("span",{className:"font-semibold",children:e})," didn't match a Maine address we recognize, so we haven't checked it yet. Try adding the town and ZIP, or pick a suggestion from the list as you type."]}),(0,t.jsxs)("div",{className:"mt-8 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[(0,t.jsx)("button",{onClick:a,className:"rounded-full bg-orange px-7 py-3.5 font-bold text-navy transition hover:bg-orange-400",children:"Try again"}),(0,t.jsx)("a",{href:(0,l.withTracking)(r.EXTERNAL_ORDER_URL,s),className:"rounded-full border-2 border-navy/20 px-7 py-3.5 font-bold text-navy/70 transition hover:border-navy/50",children:"Check on our order portal"})]}),(0,t.jsxs)("p",{className:"mt-6 text-sm text-navy/70",children:["Or call"," ",(0,t.jsx)("a",{href:`tel:+1-${r.PHONE}`,className:"font-bold text-blue-700",children:r.PHONE})," ","and we'll look it up for you."]})]})}function k({address:e,tracking:s,onRetry:a}){return(0,t.jsxs)("div",{className:"mt-12 text-center",children:[(0,t.jsx)("img",{src:"/brand/puffin-standing.png",alt:"",className:"mx-auto h-40 w-auto"}),(0,t.jsx)("h1",{className:"mt-6 text-3xl font-extrabold sm:text-4xl",children:"We couldn't check that address right now."}),(0,t.jsxs)("p",{className:"mx-auto mt-4 max-w-md text-navy/65",children:["Our availability service didn't answer",e?(0,t.jsxs)(t.Fragment,{children:[" ","for ",(0,t.jsx)("span",{className:"font-semibold",children:e})]}):null,". That says nothing about coverage at your address, only that the check didn't go through. Please try again in a moment, or call"," ",(0,t.jsx)("a",{href:`tel:+1-${r.PHONE}`,className:"font-bold text-blue-700",children:r.PHONE})," ","and we'll check it for you."]}),(0,t.jsxs)("div",{className:"mt-8 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[(0,t.jsx)("button",{onClick:a,className:"rounded-full bg-orange px-7 py-3.5 font-bold text-navy transition hover:bg-orange-400",children:"Try again"}),(0,t.jsx)("a",{href:(0,l.withTracking)(r.EXTERNAL_ORDER_URL,s),className:"rounded-full border-2 border-navy/20 px-7 py-3.5 font-bold text-navy/70 transition hover:border-navy/50",children:"Check on our order portal"})]})]})}
25e.s(["default",0,function(){let[e,a]=(0,s.useState)("address"),[n,o]=(0,s.useState)(""),[c,m]=(0,s.useState)(null),[b,f]=(0,s.useState)(!1),[y,g]=(0,s.useState)(null),[C,R]=(0,s.useState)(null),[E,$]=(0,s.useState)({}),[O,S]=(0,s.useState)([]),[T,_]=(0,s.useState)({}),[P,A]=(0,s.useState)(!1),I=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=new AbortController;return(0,l.promoCodeIsValid)(r.CHECKOUT_PROMO_CODE,e.signal).then(t=>{e.signal.aborted||A(t)}),()=>e.abort()},[]);let U=(0,s.useCallback)(async(e,t,s=b)=>{let n=e.trim();if(!n)return;(0,i.track)("address_check",{business:s}),a("checking"),m(null);let r=t;if(!r){let e;try{e=await (0,l.addressSuggestions)(n)}catch{(0,i.track)("serviceability_result",{serviceable:!1,outcome:"error",business:s}),a("error");return}if(0===e.length){(0,i.track)("serviceability_result",{serviceable:!1,outcome:"no-match",business:s}),a("no-match");return}if(!function(e,t){let s=e.toLowerCase(),a=s.match(/^\s*(\d+[a-z]?)\b/)?.[1];if(a&&t.premise&&t.premise.toLowerCase()!==a)return!1;let n=(t.thoroughfare??"").toLowerCase().split(/\s+/).find(e=>e.length>2&&!/^\d/.test(e));if(n&&!s.includes(n))return!1;let l=s.match(/\b(\d{5})\b/)?.[1];return(!l||!t.postalCode||t.postalCode===l)&&(!(s.split(",").slice(1).join(" ").replace(/\b(me|maine|usa?|united states)\b/g,"").replace(/\d{5}(-\d{4})?/g,"").trim().length>2)||!t.locality||!!s.includes(t.locality.toLowerCase()))}(n,e[0])){S(e.slice(0,6)),a("pick");return}r=e[0]}m(r);let o=r.locality??void 0,c=await (0,l.checkAvailability)(r);if("available"===c.status){let e=(0,l.classifyCatalog)(c.products),{plans:t}=d(e,s);if(0===t.length){(0,i.track)("serviceability_result",{serviceable:!1,outcome:"no-plans",town:o,business:s}),a("waitlist");return}(0,i.track)("serviceability_result",{serviceable:!0,outcome:"available",town:o,business:s}),g(e),R((t.find(e=>e.speed===u)??t[0]).id),a("build")}else"needs-unit"===c.status?((0,i.track)("serviceability_result",{serviceable:!0,outcome:"needs-unit",town:o,business:s}),a("needs-unit")):"unavailable"===c.status?((0,i.track)("serviceability_result",{serviceable:!1,outcome:"unavailable",town:o,business:s}),a("waitlist")):((0,i.track)("serviceability_result",{serviceable:!1,outcome:"error",town:o,business:s}),a("error"))},[b]);function L(){a("address"),o(""),m(null),g(null),R(null),$({}),S([])}(0,s.useEffect)(()=>{if(I.current)return;I.current=!0;let e=new URLSearchParams(window.location.search);_((0,l.trackingParams)(window.location.search));let t="1"===e.get("business");f(t);let s=e.get("address");s&&(o(s),U(s,void 0,t))},[U]);let D=c?.address??n;return(0,t.jsx)("div",{className:"min-h-[70vh] bg-cream",children:(0,t.jsxs)("div",{className:"mx-auto max-w-2xl px-4 py-12 sm:px-6 sm:py-16",children:[(0,t.jsx)("p",{className:"rounded-full bg-blue/10 px-4 py-2 text-center text-xs font-semibold text-blue-700",children:"Nothing is charged or submitted on this page. You finish your order on our secure checkout at order.gwi.net."}),("address"===e||"checking"===e)&&(0,t.jsx)(x,{address:n,setAddress:o,business:b,checking:"checking"===e,onSubmit:()=>U(n),onSelect:e=>{o(e.address),U(e.address,e)}}),"build"===e&&y&&C&&c&&(0,t.jsx)(h,{checked:c,business:b,promoOk:P,catalog:y,planId:C,setPlanId:R,extras:E,setExtras:$,onChangeAddress:L,onContinue:()=>a("review")}),"review"===e&&y&&C&&c&&(0,t.jsx)(p,{checked:c,business:b,promoOk:P,catalog:y,planId:C,extras:E,tracking:T,onBack:()=>a("build")}),"needs-unit"===e&&(0,t.jsx)(v,{address:D,checked:c,business:b,tracking:T,onRetry:L}),"waitlist"===e&&(0,t.jsx)(j,{address:D,tracking:T,onRetry:L}),"no-match"===e&&(0,t.jsx)(w,{address:n,tracking:T,onRetry:L}),"pick"===e&&(0,t.jsx)(N,{typed:n,candidates:O,onPick:e=>{o(e.address),U(e.address,e)},onRetry:L}),"error"===e&&(0,t.jsx)(k,{address:D,tracking:T,onRetry:L})]})})}])},58249,e=>{"use strict";e.s(["track",0,function(e,t={}){let s=window;s.dataLayer=s.dataLayer||[],s.dataLayer.push({event:e,...t})}])}]);

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.