1import{r as y,w as A,o as E,j as t,g as N,h as S,s as w}from"./index-DuBrVlzG.js";import{s as q}from"./sanitize-BiMi5Rx5.js";import{F as k}from"./FAQAccordion-D1Fi5SrM.js";import"./purify.es-D9RiKzGB.js";import"./accordion-C-rhhzIG.js";import"./index-C0qRjAuG.js";import"./index-Dkc44KGJ.js";const O=()=>{var x;const c=y.useRef(null),d=A(),{data:a,isLoading:j}=E({queryKey:["page","preferred-providers"],queryFn:async()=>{const{data:s,error:l}=await w.from("pages").select("*").eq("slug","preferred-providers").eq("status","publish").maybeSingle();if(l)throw l;return s}});if(y.useEffect(()=>{var p,g,b;const s=c.current;if(!s)return;s.querySelectorAll("h1").forEach(e=>e.remove()),s.querySelectorAll("p.subtitle").forEach(e=>e.remove()),s.querySelectorAll("cite").forEach(e=>{if(e.parentElement){const o=e.previousElementSibling;(o==null?void 0:o.tagName)==="IMG"&&o.remove()}e.remove()}),s.querySelectorAll("h3").forEach(e=>{var r;(r=e.textContent)!=null&&r.includes("What Our Members Are Saying")&&e.remove()}),s.querySelectorAll("h3").forEach(e=>{var r,o;if((r=e.textContent)!=null&&r.includes("Read Our Latest Blogs")){let i=e.nextSibling;for(;i;){const v=i;i=i.nextSibling,(o=v.parentNode)==null||o.removeChild(v)}e.remove()}}),s.querySelectorAll("article").forEach(e=>e.remove()),s.querySelectorAll("button[data-widget], button.elementor-button, button[id*='eael']").forEach(e=>e.remove()),s.querySelectorAll(":scope > svg, svg[aria-hidden]").forEach(e=>{!e.closest("a")&&!e.closest("button")&&e.remove()});const u=document.createTreeWalker(s,NodeFilter.SHOW_TEXT,null),h=[];for(;u.nextNode();){const e=u.currentNode,r=((p=e.textContent)==null?void 0:p.trim())||"";e.parentElement===s&&r.length>50&&!((b=(g=e.previousElementSibling)==null?void 0:g.tagName)!=null&&b.match(/^(H[1-6]|P|A|DIV)$/i))&&h.push(e)}h.forEach(e=>e.remove()),s.childNodes.forEach(e=>{e.nodeType===Node.TEXT_NODE&&/^\s*(Previous|Next)\s*$/i.test(e.textContent||"")&&e.remove()}),s.querySelectorAll("img").forEach(e=>{const r=e.getAttribute("src")||"";(r.includes("clientname.png")||r.includes("th-474373876")||r.includes("211b1e81728b7b81d8f42bf8cff45fdb"))&&e.remove()}),s.querySelectorAll("a").forEach(e=>{var o;const r=((o=e.textContent)==null?void 0:o.trim())||"";(r==="Learn More"||r==="Join Today!")&&(e.className="inline-block px-8 py-3 rounded-md font-bold text-white no-underline transition-opacity hover:orobocity-90",e.style.background="linear-gradient(135deg, hsl(7,24%,55%), hsl(5,56%,83%))",e.style.marginTop="0.5rem",e.style.marginBottom="1rem")}),s.querySelectorAll("a").forEach(e=>{const r=e.getAttribute("href")||"";r.includes("wgoaa.org/membership")?(e.setAttribute("href","https://order.wgoaa.org/membership-options"),e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer")):r.match(/wgoaa\.org\/(boog|category|tag|20\d{2})/)&&(e.setAttribute("href","/blog"),e.setAttribute("data-internal","true"))});const f=e=>{const r=e.target.closest("a[data-internal]");r&&(e.preventDefault(),d(r.getAttribute("href")))};return s.addEventListener("click",f),()=>s.removeEventListener("click",f)},[a,d]),j)return t.jsxs("div",{children:[t.jsx("section",{className:"bg-brand-black py-20 md:py-28",children:t.jsx("div",{className:"container mx-auto px-4 max-w-4xl",children:t.jsx(N,{className:"h-12 w-48 mb-4 bg-muted"})})}),t.jsx("section",{className:"bg-cream py-16 md:py-24",children:t.jsx("div",{className:"container mx-auto px-4 max-w-4xl",children:t.jsx(N,{className:"h-64 w-full"})})})]});if(!a)return t.jsx("div",{children:t.jsxs("section",{className:"relative bg-brand-black py-20 md:py-28 overflow-hidden",children:[t.jsx("div",{className:"absolute inset-0 patriotic-stars"}),t.jsx("div",{className:"relative container mx-auto px-4 text-center",children:t.jsxs("p",{className:"text-4xl md:text-6xl text-foreground font-bold leading-tight",children:["Preferred ",t.jsx("span",{className:"text-rose-gradient",children:"Providers"})]})})]})});const m=(x=a.seo_schema)==null?void 0:x.faq,n=Array.isArray(m)?m:[];return t.jsxs("div",{children:[t.jsx(S,{title:a.seo_title||a.title,description:a.seo_de
1scription,faqSchema:n.length>0?n:null}),t.jsxs("section",{className:"relative bg-brand-black py-20 md:py-28 overflow-hidden",children:[t.jsx("div",{className:"absolute inset-0 patriotic-stars"}),t.jsxs("div",{className:"relative container mx-auto px-4 text-center max-w-4xl",children:[t.jsx("h1",{className:"text-5xl md:text-7xl text-foreground mb-4",children:a.title}),t.jsx("p",{className:"text-xl md:text-2xl text-muted-foreground font-body",children:"Looking for 2A and Female Friendly Providers for Your Personal or Business Needs?"})]})]}),t.jsx("div",{className:"patriotic-stripe"}),t.jsx("section",{className:"bg-cream py-16 md:py-24",children:t.jsxs("div",{className:"container mx-auto px-4 max-w-4xl prose-wgoaa prose-wgoaa--compact text-gray-800 prose-headings:text-gray-900 prose-a:text-primary-text",children:[t.jsx("article",{ref:c,dangerouslySetInnerHTML:{__html:q(a.content_html)}}),n.length>0&&t.jsx(k,{faqs:n})]})})]})};export{O as default}; 2//# sourceMappingURL=PreferredProviders-B2mMxxd0.js.map
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.