PageSourceSearch

https://better-way-cpa.netlify.app/_next/static/chunks/849-0170a98fc6a2e5a2.js

js better-way-cpa.netlify.app collected 2026-10-03 10:30:33 UTC 18,555 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[849],{6575:function(e,t,l){l.d(t,{r:function(){return u},Z:function(){return h}});var a=l(7340),r=l(5893),n=l(3967),o=l.n(n),s=l(1664),i=l.n(s),d=l(1972),c=l(8110);function x(){let e=(0,a._)(["\n   form,\n   label,\n   variant,\n   externalLink,\n   action,\n   slug,\n   form,\n   iconRight,\n   withIcon,\n   iconImageHover,\n   iconImage{","}\n"]);return x=function(){return e},e}let u=(0,d.Z)(x(),c.r);function h(e){let{label:t="",variant:l="primary",otherClasses:a,form:n,iconRight:s=!1,slug:d,onClick:x,externalLink:u,action:h,withIcon:f,iconImage:g,iconImageHover:m,ariaLabel:p}=e,b=o()(a,"group",f&&"flex items-center justify-center  gap-1",s?"flex-row-reverse":"flex-row","primary"===l&&"px-10 py-3 bg-primary border-[2px] border-primary hover:border-primary-hover  rounded-full overflow-hidden relative after:h-full after:w-0 after:transition-all after:duration-700 after:left-0 after:top-0 hover:after:w-full after:block after:absolute after:bg-primary-hover ","secondary"===l&&"px-10 py-2.5 bg-transparent border-[2px] border-primary rounded-full overflow-hidden relative after:h-full after:w-0 after:transition-all after:duration-700 after:left-0 after:top-0 hover:after:w-full after:block after:absolute after:bg-primary ","tertiary"===l&&"px-10 py-3 bg-secondary-blue-800 rounded-full overflow-hidden relative after:h-full after:w-0 after:transition-all after:duration-700 after:left-0 after:top-0 hover:after:w-full after:block after:absolute after:bg-white ","quaternary"===l&&"px-10 py-2.5 bg-transparent border-[2px] border-secondary-blue-800 rounded-full overflow-hidden relative after:h-full after:w-0 after:transition-all after:duration-700 after:left-0 after:top-0 hover:after:w-full after:block after:absolute after:bg-secondary-blue-800 ","text-link"===l&&"font-noto-sans font-black leading-[30px] text-base text-primary relative after:block after:-bottom-2 after:w-0 hover:after:w-full after:transition-all after:duration-700 after:bg-primary after:h-0.5");if("link"==h&&d){let{current:e}=d;return(0,r.jsxs)(i(),{"aria-label":p||t,className:o()(b,"block"),href:u?"".concat(e):(null==e?void 0:e.startsWith("/"))?"".concat(e):"/".concat(e),target:u?(null==e?void 0:e.startsWith("tel:"))?"_self":"_blank":"_self",rel:u?"noopener noreferrer":"",children:[f&&(0,r.jsx)(c.Z,{...g,otherClasses:"max-w-6 max-h-6 group-hover:hidden block z-10 relative"}),f&&(0,r.jsx)(c.Z,{...m,otherClasses:"max-w-6 max-h-6 group-hover:block hidden z-10 relative"}),"primary"===l||"secondary"===l||"tertiary"===l||"quaternary"===l?(0,r.jsx)("span",{className:o()("font-noto-sans font-semibold leading-[30px] text-base block relative z-10 transition-global !duration-700 text-center","secondary"===l?"text-primary group-hover:text-white ":"tertiary"===l?"text-white group-hover:text-secondary-blue-800":"quaternary"===l?"text-secondary-blue-800 group-hover:text-white":"text-white"),children:t}):t]})}return(0,r.jsxs)("button",{onClick:e=>{x&&x(e,n)},"aria-label":t,title:t,"aria-labelledby":t,className:b,"data-testid":"button",children:[f&&(0,r.jsx)(c.Z,{...g,otherClasses:"max-w-5 max-h-5 group-hover:hidden  block"}),f&&(0,r.jsx)(c.Z,{...m,otherClasses:"max-w-5 max-h-5 group-hover:block  hidden"}),"primary"===l||"secondary"===l||"tertiary"===l||"quaternary"===l?(0,r.jsx)("span",{className:o()("font-noto-sans font-semibold leading-[30px] text-base block relative z-10 transition-global !duration-700 text-center","secondary"===l?"text-primary group-hover:text-white ":"tertiary"===l?"text-white group-hover:text-secondary-blue-800":"quaternary"===l?"text-secondary-blue-800 group-hover:text-white":"text-white"),children:t}):t]})}},7958:function(e,t,l){l.d(t,{Z:function(){return j}});var a=l(5893),r=l(512),n=l(7294),o=l(8110),s=l(1664),i=l.n(s),d=e=>{let{otherClasses:t,footerLogo:l,mainLinks:n,poweredBy:s,privacyPolicyPage:d,socialLinks:c,toggleFunc:x}=e,u=(0,r.Z)(t,"w-full bg-secondary-blue-900 pt-20 lg:pt-120 pb-6"),h=new Date().getFullYear();return(0,a.jsx)("footer",{className:u,"data-testid":"footer",children:(0,a.jsxs)("div",{className:"w-full max-w-1440 px-4 mx-auto lg:px-20 xl:px-120",children:[(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row items-start",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-12 items-start",children:[(0,a.jsx)(i(),{href:"/",children:(0,a.jsx)(o.Z,{...l,otherClasses:"w-[238px]"})}),(0,a.jsx)("div",{className:"flex items-center gap-6",children:null==c?void 0:c.map((e,t)=>{let{footerLogoNormal:l,footerLogoHover:r,socialLink:n}=e;return(0,a.jsxs)(i(),{href:n,className:"group",target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)(o.Z,{...l,otherClasses:"w-auto lg:max-w-6 lg:h-22 max-22 max-h-6 group-hover:hidden"}),(0,a.jsx)(o.Z,{...r,otherClasses:"w-auto group-hover:block hidden lg:max-w-22 lg:max-h-22"})]},t)})})]}),(0,a.jsx)("div",{className:"w-full lg:w-auto gap-y-12 grid grid-cols-1 sm:grid-cols-2 lg:flex-1 lg:flex lg:items-start lg:gap-x-12 xl:gap-x-24 lg:justify-end mt-10 lg:mt-0",children:null==n?void 0:n.map((e,t)=>{let{label:l,subPagesLinks:r}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)("h6",{className:"text-lg font-mulish text-typography-heading font-bold leading-6",children:l}),(0,a.jsx)("ul",{className:"mt-6 flex flex-col gap-3 lg:gap-4",children:null==r?void 0:r.map((e,t)=>{var l;let{action:r,form:n,label:o,sublink:s,url:d}=e;return"form"===r?(0,a.jsxs)("li",{children:[" ",(0,a.jsx)("button",{onClick:()=>x(n),className:"text-base font-normal font-mulish text-footer-buttons/90 text-footer-links/90 leading-5 hover:text-white transition-global",children:o})]},t):(0,a.jsx)("li",{children:(0,a.jsx)(i(),{href:"external"===r?d:(null==s?void 0:null===(l=s.slug)||void 0===l?void 0:l.startsWith("/"))?null==s?void 0:s.slug:"/".concat(null==s?void 0:s.slug),rel:"external"===r&&"noopener noreferrer",target:"external"===r?"_blank":"_self",className:"text-base font-normal font-mulish text-footer-links/90 leading-5 hover:text-white transition-global",children:o})},t)})})]},t)})})]}),(0,a.jsxs)("div",{className:"flex flex-col md:flex-row justify-center md:justify-between items-center gap-2 mt-20",children:[(0,a.jsxs)("div",{className:"flex flex-col md:flex-row items-center gap-2 md:gap-6",children:[(0,a.jsxs)("p",{className:"text-sm font-mulish font-normal text-footer-links/70",children:["\xa9 ",h," Dark Horse CPAs"]}),(0,a.jsx)(i(),{className:"text-sm font-mulish font-normal text-footer-links/70 hover:text-white transition-global",href:"/".concat(null==d?void 0:d.slug),children:null==d?void 0:d.title})]}),(0,a.jsxs)(i(),{href:null==s?void 0:s.url,target:"_blank",className:"text-sm font-mulish font-normal text-footer-links hover:text-white transition-global opacity-90 flex items-center gap-2 hover:opacity-100",children:[null==s?void 0:s.label,(0,a.jsx)(o.Z,{...null==s?void 0:s.logo,otherClasses:"max-w-20"})]})]})]})})},c=l(3967),x=l.n(c),u=l(5675),h=l.n(u),f=l(6575),g=l(7982),m=l(4540);function p(e){let{otherClasses:t,navbarLogo:l,mainLinks:r,button:o}=e,s=x()(t,"w-full fixed top-0 left-0 z-50 bg-secondary-blue-900 py-4 lg:py-0"),[d,c]=(0,n.use
1State)(!1);return(0,n.useEffect)(()=>{let e=()=>{window.innerWidth>1024?(0,m.NI)():d?(0,m.xr)():(0,m.NI)()};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[d]),(0,a.jsx)("nav",{className:s,"data-testid":"navbar",children:(0,a.jsxs)("div",{className:"max-w-1440 mx-auto w-full px-4 lg:px-20 xl:px-120 flex justify-between items-center gap-4",children:[(0,a.jsx)(i(),{href:"/",className:"",children:(0,a.jsx)(g.Z,{onClick:()=>c(!1),...l,otherClasses:"logo"})}),(0,a.jsxs)("div",{className:x()("navbar-mobile-continer lg:!h-86 flex-col gap-20 items-center lg:block pt-10 lg:pt-0 absolute w-full lg:w-auto left-0  top-[59px] bg-secondary-blue-900 transition-transform ease-in duration-300  lg:bg-transparent lg:static lg:top-auto lg:left-auto flex",d?"lg:flex translate-x-0":"-translate-x-full lg:translate-x-0"),children:[(0,a.jsx)("ul",{className:"flex flex-col lg:flex-row gap-8 lg:gap-2 xl:gap-6 items-center nav-links",children:null==r?void 0:r.map((e,t)=>{let{hubPage:l,label:r,subLinks:n,subPagesLinks:o,url:s}=e;return(0,a.jsx)("li",{className:"flex flex-col lg:flex-row lg:items-center lg:h-86 group relative",children:n?(0,a.jsxs)(a.Fragment,{children:[s?(0,a.jsx)(i(),{href:"/".concat(s),className:"text-base lg:text-sm xl:text-paragraph font-semibold text-typography-body font-noto-sans leading-8 group-hover:text-primary transition-global",children:r}):(0,a.jsx)("button",{href:s,className:"text-base lg:text-sm xl:text-paragraph font-semibold text-typography-body font-noto-sans leading-8 group-hover:text-primary transition-global",children:r}),(0,a.jsx)("ul",{className:"lg:group-hover:visible w-full lg:group-hover:opacity-100 lg:group-hover:translate-y-0 lg:translate-y-5 lg:opacity-0 transition-global !duration-500 group-hover:flex hidden lg:flex lg:shadow-navbar-box-shadow lg:min-w-56 lg:invisible flex-col gap-4 mt-3 lg:mt-0 lg:gap-2 rounded-b-3xl lg:absolute lg:top-86 lg:px-7 bg-secondary-blue-900 lg:pt-6 lg:pb-14 lg:-translate-x-2/4 lg:left-2/4",children:null==o?void 0:o.map((e,t)=>{var l;return(0,a.jsx)("li",{className:"lg:px-1.5 lg:pb-2.5 lg:border-b lg:border-b-gray-200",children:(0,a.jsx)(i(),{onClick:()=>c(!1),href:"/".concat(null==e?void 0:null===(l=e.link)||void 0===l?void 0:l.slug),className:"text-sm lg:text-paragraph font-normal text-center lg:text-left w-full block lg:font-bold text-typography-body font-noto-sans lg:leading-8 hover:text-primary transition-global",children:null==e?void 0:e.label})},t)})})]}):(0,a.jsx)(i(),{href:"/".concat(null==l?void 0:l.slug),onClick:()=>c(!1),className:"text-base lg:text-sm xl:text-paragraph font-semibold text-typography-body font-noto-sans leading-8 group-hover:text-primary transition-global",children:r})},t)})}),(0,a.jsx)(h(),{src:"/images/logo-mark.svg",width:141,height:174,className:"lg:hidden"})]}),(0,a.jsx)("div",{className:"hidden lg:flex items-center gap-2 xl:gap-4 ",children:null==o?void 0:o.map((e,t)=>(0,n.createElement)(f.Z,{...e,key:t,otherClasses:"px-4 xl:px-8 2xl:px-10 !py-2 xl:!py-3 lg:text-sm"}))}),(0,a.jsxs)("button",{onClick:()=>c(!d),className:"flex flex-col w-6 h-6 justify-center lg:hidden overflow-hidden relative",children:[(0,a.jsx)("span",{className:x()("w-6 h-0.5 bg-white transition-global absolute rounded-full",d?"-rotate-45 -translate-y-2/4 top-2/4":"top-1.5 translate-y-0")}),(0,a.jsx)("span",{className:x()("w-6 h-0.5 bg-white transition-global rounded-full absolute",d?"translate-x-full":"top-3")}),(0,a.jsx)("span",{className:x()("w-6 h-0.5 bg-white transition-global absolute rounded-full",d?"rotate-45  -translate-y-2/4 top-2/4":"top-[18px] translate-y-0 ")})]})]})})}var b=l(4298),v=l.n(b),y=l(3811);function w(e){let{otherClasses:t,toggleCancel:l}=e,r=x()(t,"max-w-720 pb-10 md:pb-20 overflow-y-auto h-full bg-secondary-blue-800 "),[o,s]=(0,n.useState)({"first-name":"","last-name":"",phone:"",email:"",message:""}),i=e=>{let{name:t,value:l}=e.target;s(e=>({...e,[t]:l}))},d=async e=>{e.preventDefault();let t=e.target;try{await fetch("/favicon.png",{method:"POST",body:function(e){let t=new FormData;for(let l of Object.keys(e))t.append(l,e[l]);return t}({"form-name":t.getAttribute("name"),...o})}
1),(0,m.$z)("Thank you for submission! We will get in touch with you shortly."),s({"first-name":"","last-name":"",phone:"",email:"",message:""}),t.reset()}catch(e){console.error(e)}};return(0,a.jsxs)("div",{className:r,"data-testid":"contact-us",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2 lg:mb-4 py-4 px-4 lg:px-6",children:[(0,a.jsx)("div",{}),(0,a.jsxs)("button",{onClick:()=>l(""),className:"group",children:[(0,a.jsx)(h(),{src:"/svg/close.svg",alt:"message",width:20,height:20,className:"aspect-square object-cover group-hover:hidden block"}),(0,a.jsx)(h(),{src:"/svg/hover-close.svg",alt:"message",width:20,height:20,className:"aspect-square object-cover group-hover:block hidden"})]})]}),(0,a.jsxs)("div",{className:"mt-2 px-16 pb-24",children:[(0,a.jsx)(y.Z,{type:"h3",otherClasses:"mb-8 !font-bold",children:"Contact Us"}),(0,a.jsxs)("form",{name:"contact-us",onSubmit:d,children:[(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row items-center gap-5 mt-6",children:[(0,a.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,a.jsx)("label",{htmlFor:"phone",className:"font-noto-sans text-sm font-bold text-typography-heading block mb-1.5",children:"First Name"}),(0,a.jsx)("input",{type:"text",id:"first-name",name:"first-name",value:o["first-name"],onChange:i,className:"w-full block focus:border-typography-heading bg-secondary-blue-700 text-typography-heading rounded px-4 py-2 text-lg border-1 outline-none font-noto-sans font-normal mt-2",required:!0})]}),(0,a.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,a.jsx)("label",{htmlFor:"email",className:"font-noto-sans text-sm  font-bold text-typography-heading block mb-1.5",children:"Last Name"}),(0,a.jsx)("input",{type:"text",id:"email",name:"last-name",value:o["last-name"],onChange:i,className:"w-full block focus:border-typography-heading bg-secondary-blue-700 text-typography-heading rounded px-4 py-2 text-lg border-1 outline-none font-noto-sans font-normal mt-2",required:!0})]})]}),(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row items-center gap-5 mt-6",children:[(0,a.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,a.jsx)("label",{htmlFor:"phone",className:"font-noto-sans text-sm  font-bold text-typography-heading block mb-1.5",children:"Phone Number"}),(0,a.jsx)("input",{type:"number",id:"phone",name:"phone",value:o.phone,onChange:i,className:"w-full block focus:border-typography-heading bg-secondary-blue-700 text-typography-heading rounded px-4 py-2 text-lg border-1 outline-none font-noto-sans font-normal mt-2",required:!0})]}),(0,a.jsxs)("div",{className:"w-full lg:w-1/2",children:[(0,a.jsx)("label",{htmlFor:"email",className:"font-noto-sans text-sm  font-bold text-typography-heading block mb-1.5",children:"Email"}),(0,a.jsx)("input",{type:"email",id:"email",name:"email",value:o.email,onChange:i,className:"w-full block focus:border-typography-heading bg-secondary-blue-700 text-typography-heading rounded px-4 py-2 text-lg border-1 outline-none font-noto-sans font-normal mt-2",required:!0})]})]}),(0,a.jsxs)("div",{className:"mt-6 mb-6",children:[(0,a.jsx)("label",{htmlFor:"description",className:"font-noto-sans text-sm  font-bold text-typography-heading block mb-1.5",children:"Message"}),(0,a.jsx)("textarea",{id:"message",name:"message",rows:4,value:o.message,onChange:i,className:"w-full block focus:border-typography-heading bg-secondary-blue-700 text-typography-heading rounded px-4 py-2 text-lg border-1 outline-none font-noto-sans font-normal mt-2"})]}),(0,a.jsx)(f.Z,{variant:"primary",label:"Submit",type:"submit"})]})]})]})}var j=e=>{let{children:t,toggle:l,toggleFunc:n,navigation:o,JSONLD:s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p,{...null==o?void 0:o.navbar}),(0,a.jsx)("main",{className:"mt-[59px] lg:mt-[86px]",children:t}),(0,a.jsxs)("div",{className:(0,r.Z)("fixed right-0 top-0 z-50 flex h-full justify-end overflow-hidden","transition-transform ease-in-out duration-300",l?"translate-x-0 w-full lg:w-720":"translate-x-full"),children:[(0,a.jsx)("button",{"aria-label":"background-button",title:"background-button","aria-labelledby":"background-button",onClick:()=>n(),className:(0,r.Z)("absolute left-0 top-0 h-full w-full transition-opacity duration-300",l?"opacity-100":"opacity-0 pointer-events-none")}),(0,a.jsx)("div",{className:(0,r.Z)("bg-white h-full ",l?"translate-x-0 w-full lg:w-720":"translate-x-full"),children:(0,a.jsx)(w,{toggleCancel:n})})]}),s&&(0,a.jsx)(v(),{id:"JSON-LD",type:"application/ld+json",class:"schemantra.com",children:s}),(0,a.jsx)(d,{...null==o?void 0:o.footer,toggleFunc:n})]})}},7982:function(e,t,l){l.d(t,{r:function(){return h}});
1var a=l(7340),r=l(5893),n=l(1548),o=l(6803),s=l.n(o),i=l(5675),d=l.n(i),c=l(1972),x=l(512);function u(){let e=(0,a._)(["\n _type,\n  title,\n  asset{_ref,_type}\n"]);return u=function(){return e},e}let h=(0,c.Z)(u()),f=s()({projectId:"79miqv4r",dataset:"production"});t.Z=e=>{let{title:t,otherClasses:l,asset:a,...o}=e;if(!a)return null;let{width:s,height:i}=(0,n.pz)(a);return(0,r.jsx)(d(),{...o,width:s||500,height:i||500,className:(0,x.Z)(l),src:"".concat(f.image(a).url(),"?fm=webp"),alt:t||"",title:t||"",priority:!0,fetchPriority:"high"})}},8110:function(e,t,l){l.d(t,{Z:function(){return a.Z},r:function(){return a.r}});var a=l(7982)},2185:function(e,t,l){var a=l(5893);l(7294);var r=l(5814),n=l(512),o=l(1548),s=l(6803),i=l.n(s),d=l(1664),c=l.n(d),x=l(6575),u=l(5675),h=l.n(u);let f=i()({projectId:"79miqv4r",dataset:"production"}),g=e=>{let{value:t,otherClasses:l}=e,{position:r}=t,{width:s,height:i}=(0,o.pz)(t);return(0,a.jsx)(h(),{width:s||"100%",height:i||"auto",className:(0,n.Z)(l,"left"===r?"mr-auto":void 0,"right"===r?"ml-auto":void 0,"center"===r?"mx-auto":void 0),src:f.image(t).url(),alt:t.alt||" "})};t.Z=e=>{let{richText:t,otherClasses:l,toggleFunc:o}=e,s=null==t?void 0:t.some(e=>(null==e?void 0:e._type)==="toolTip"),i=(0,n.Z)(l,"relative",s?"[&>p]:inline":"");return(0,a.jsx)("div",{className:i,children:(0,a.jsx)(r.YI,{value:t,components:{types:{image:g,button:e=>{let t=e.value;return(0,a.jsx)(x.Z,{...t,onClick:()=>o(null==t?void 0:t.form)})}},marks:{link:e=>{let{children:t,value:l}=e,{href:r,isExternal:n}=l,o=n?"noopener noreferrer":void 0;return r.startsWith("tel:")||r.startsWith("mailto:")?(0,a.jsx)(c(),{href:r,target:"_self",rel:o,children:t}):(0,a.jsx)(c(),{href:r,target:n?"_blank":"_self",rel:o,children:t})}}}})})}},5526:function(e,t,l){l.d(t,{Z:function(){return a.Z}});var a=l(2185)},3811:function(e,t,l){var a=l(512),r=l(7294);let n={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"};t.Z=e=>{let{type:t,children:l,otherClasses:o,...s}=e,i=(0,a.Z)(o);return r.createElement(n[t]||n.h1,{className:i,...s},l)}},6308:function(e,t,l){var a=l(5893),r=l(9008),n=l.n(r);t.Z=e=>{let{seoTitle:t,metaDescription:l,description:r,indexed:o}=e;return(0,a.jsxs)(n(),{children:[(0,a.jsx)("title",{children:t}),(0,a.jsx)("meta",{name:"robots",content:o&&"noIndex&Allowed"===o?"noindex,follow":"noIndex&Disallowed"===o?"noindex,nofollow":"index"===o||null===o?"index,follow":"noindex,nofollow"}),(0,a.jsx)("meta",{name:"description",content:l||r}),(0,a.jsx)("meta",{property:"og:title",content:t}),(0,a.jsx)("meta",{property:"og:description",content:l||r})]})}}}]);

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.