import{s as ve,o as _e,r as me,n as G}from"./scheduler.8b74b908.js";import{S as be,i as we,e as O,a as P,d as z,p as Y,t as V,b as Z,f as v,g as x,m as le,s as B,h as y,j as I,n as te,c as F,k as c,x as m,F as W,o as xe,z as ye,y as R,r as ke,u as Le,v as Ee,w as De}from"./index.7d6bf9b7.js";import{e as X}from"./each.e59479a4.js";function ne(a,t,l){const e=a.slice();return e[11]=t[l],e}function oe(a){var C;let t,l,e,r=a[0].text+"",i,n,s,f,o,u,b,A,k,N,M,S,q,E=((C=a[0])==null?void 0:C.dropdownIndicator)&&ce(a),L=a[1]&&ue(),$=X(a[0].dropdown),_=[];for(let p=0;p<$.length;p+=1)_[p]=de(ne(a,$,p));const T=p=>V(_[p],1,1,()=>{_[p]=null});return{c(){t=x("li"),l=x("a"),e=x("span"),i=le(r),n=B(),E&&E.c(),o=B(),u=x("div"),L&&L.c(),b=B(),A=x("ul");for(let p=0;p<_.length;p+=1)_[p].c();this.h()},l(p){t=y(p,"LI",{id:!0,class:!0});var g=I(t);l=y(g,"A",{class:!0,"aria-expanded":!0,href:!0});var d=I(l);e=y(d,"SPAN",{});var D=I(e);i=te(D,r),D.forEach(v),n=F(d),E&&E.l(d),d.forEach(v),o=F(g),u=y(g,"DIV",{class:!0});var h=I(u);L&&L.l(h),b=F(h),A=y(h,"UL",{class:!0});var j=I(A);for(let w=0;w<_.length;w+=1)_[w].l(j);j.forEach(v),h.forEach(v),g.forEach(v),this.h()},h(){c(l,"class",s="submenu-toggle-button w-full uppercase "+(a[1]?"lg:px-3":"px-4 lg:px-8 lg:py-2 hover:opacity-70")+" py-3 lg:text-center flex items-start justify-between"),c(l,"aria-expanded","false"),c(l,"href",f=a[0].url),c(A,"class",k="lg:py-6 list-dropdown rounded-md lg:rounded bg-transparent "+(a[1],"")+" lg:shadow-lg"),c(u,"class",N=(a[1]?"lg:pt-4 lg:right-0 lg:top-10 lg:min-w-80":" lg:-right-full lg:-top-2 pl-2 lg:pl-0.5")+" hidden lg:block submenu-content lg:absolute lg:z-20 w-full lg:transition-all lg:duration-300 lg:ease-in-out lg:invisible lg:opacity-0"),c(t,"id",a[3]),c(t,"class","relative lg-sub-menu ")},m(p,g){P(p,t,g),m(t,l),m(l,e),m(e,i),m(l,n),E&&E.m(l,null),m(t,o),m(t,u),L&&L.m(u,null),m(u,b),m(u,A);for(let d=0;d<_.length;d+=1)_[d]&&_[d].m(A,null);M=!0,S||(q=[W(l,"click",a[4]),W(t,"mouseenter",a[5]),W(t,"mouseleave",a[6])],S=!0)},p(p,g){var d;if((!M||g&1)&&r!==(r=p[0].text+"")&&xe(i,r),(d=p[0])!=null&&d.dropdownIndicator?E?E.p(p,g):(E=ce(p),E.c(),E.m(l,null)):E&&(E.d(1),E=null),(!M||g&2&&s!==(s="submenu-toggle-button w-full uppercase "+(p[1]?"lg:px-3":"px-4 lg:px-8 lg:py-2 hover:opacity-70")+" py-3 lg:text-center flex items-start justify-between"))&&c(l,"class",s),(!M||g&1&&f!==(f=p[0].url))&&c(l,"href",f),p[1]?L||(L=ue(),L.c(),L.m(u,b)):L&&(L.d(1),L=null),g&69){$=X(p[0].dropdown);let D;for(D=0;D<$.length;D+=1){const h=ne(p,$,D);_[D]?(_[D].p(h,g),z(_[D],1)):(_[D]=de(h),_[D].c(),z(_[D],1),_[D].m(A,null))}for(Y(),D=$.length;D<_.length;D+=1)T(D);Z()}(!M||g&2&&k!==(k="lg:py-6 list-dropdown rounded-md lg:rounded bg-transparent "+(p[1],"")+" lg:shadow-lg"))&&c(A,"class",k),(!M||g&2&&N!==(N=(p[1]?"lg:pt-4 lg:right-0 lg:top-10 lg:min-w-80":" lg:-right-full lg:-top-2 pl-2 lg:pl-0.5")+" hidden lg:block submenu-content lg:absolute lg:z-20 w-full lg:transition-all lg:duration-300 lg:ease-in-out lg:invisible lg:opacity-0"))&&c(u,"class",N)},i(p){if(!M){for(let g=0;g<$.length;g+=1)z(_[g]);M=!0}},o(p){_=_.filter(Boolean);for(let g=0;g<_.length;g+=1)V(_[g]);M=!1},d(p){p&&v(t),E&&E.d(),L&&L.d(),ye(_,p),S=!1,me(q)}}}function ce(a){let t,l=a[0].dropdownIndicator.type==="arrow"&&fe();return{c(){l&&l.c(),t=O()},l(e){l&&l.l(e),t=O()},m(e,r){l&&l.m(e,r),P(e,t,r)},p(e,r){e[0].dropdownIndicator.type==="arrow"?l||(l=fe(),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null)},d(e){e&&v(t),l&&l.d(e)}}}function fe(a){let t,l='<svg fill="currentColor" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="12" height="8" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" image-rendering="optimizeQuality" fill-rule="evenodd" clip-rule="evenodd" viewBox="0 0 512 298.04"><path fill-rule="nonzero" d="M12.08 70.78c-16.17-16.24-16.09-42.54.15-58.7 16.25-16.17 42.54-16.09 58.71.15L256 197.76 441.06 12.23c16.17-16.24 42.46-16.32 58.71-.15 16.24 16.16 16.32 42.46.15 58.7L285.27 285.96c-16.24 16.17-42.54 16.09-58.7-.15L12.08 70.78z"></path></svg>';return{c(){t=x("span"),t.innerHTML=l,this.h()},l(e){t=y(e,"SPAN",{class:!0,"data-svelte-h":!0}),R(t)!=="svelte-6ffz8q"&&(t.innerHTML=l),this.h()},h(){c(t,"class","ml-3 block my-auto")},m(e,r){P(e,t,r)},d(e){e&&v(t)}}}function ue(a){let t;return{c(){t=x("div"),this.h()},l(l){t=y(l,"DIV",{class:!0}),I(t).forEach(v),this.h()},h(){c(t,"class","bg-transparent hidden lg:block h-4")},m(l,e){P(l,t,e)},d(l){l&&v(t)}}}function Me(a){let t,l;return t=new Ie({props:{closeMobileMenu:a[2],navDropdown:a[11]}}),{c(){ke(t.$$.fragment)},l(e){Le(t.$$.fragment,e)},m(e,r){Ee(t,e,r),l=!0},p(e,r){const i={};r&4&&(i.closeMobileMenu=e[2]),r&1&&(i.navDropdown=e[11]),t.$set(i)},i(e){l||(z(t.$$.fragment,e),l=!0)},o(e){V(t.$$.fragment,e),l=!1},d(e){De(t,e)}}}function je(a){let t,l,e=a[11].text+"",r,i,n,s,f;return{c(){t=x("li"),l=x("a"),r=le(e),n=B(),this.h()},l(o){t=y(o,"LI",{});var u=I(t);l=y(u,"A",{"data-level":!0,class:!0,href:!0});var b=I(l);r=te(b,e),b.forEach(v),n=F(u),u.forEach(v),this.h()},h(){c(l,"data-level","2"),c(l,"class","uppercase block menu-link mb-0 lg:px-8 lg:py-2 py-2 px-4 hover:opacity-70"),c(l,"href",i=a[11].url)},m(o,u){P(o,t,u),m(t,l),m(l,r),m(t,n),s||(f=W(l,"click",a[7]),s=!0)},p(o,u){u&1&&e!==(e=o[11].text+"")&&xe(r,e),u&1&&i!==(i=o[11].url)&&c(l,"href",i)},i:G,o:G,d(o){o&&v(t),s=!1,f()}}}function de(a){let t,l,e,r,i;const n=[je,Me],s=[];function f(o,u){return u&1&&(t=null),t==null&&(t=!o[11].hasOwnProperty("dropdown")),t?0:1}return l=f(a,-1),e=s[l]=n[l](a),{c(){e.c(),r=O()},l(o){e.l(o),r=O()},m(o,u){s[l].m(o,u),P(o,r,u),i=!0},p(o,u){let b=l;l=f(o,u),l===b?s[l].p(o,u):(Y(),V(s[b],1,1,()=>{s[b]=null}),Z(),e=s[l],e?e.p(o,u):(e=s[l]=n[l](o),e.c()),z(e,1),e.m(r.parentNode,r))},i(o){i||(z(e),i=!0)},o(o){V(e),i=!1},d(o){o&&v(r),s[l].d(o)}}}function ze(a){let t,l,e=a[0]&&oe(a);return{c(){e&&e.c(),t=O()},l(r){e&&e.l(r),t=O()},m(r,i){e&&e.m(r,i),P(r,t,i),l=!0},p(r,[i]){r[0]?e?(e.p(r,i),i&1&&z(e,1)):(e=oe(r),e.c(),z(e,1),e.m(t.parentNode,t)):e&&(Y(),V(e,1,1,()=>{e=null}),Z())},i(r){l||(z(e),l=!0)},o(r){V(e),l=!1},d(r){r&&v(t),e&&e.d(r)}}}function Ae(a,t,l){let{navDropdown:e={}}=t,{isFirst:r=!1}=t;const i=crypto.randomUUID().replace("-","")+"--submenuId";let n=null,s=null;const f=k=>{if(k.preventDefault(),typeof window<"u"&&window.innerWidth>=1024)return;(s==null?void 0:s.getAttribute("aria-expanded"))==="false"?(s==null||s.setAttribute("aria-expanded","true"),n==null||n.classList.remove("hidden")):(s==null||s.setAttribute("aria-expanded","false"),n==null||n.classList.add("hidden"))},o=k=>{typeof window<"u"&&window.innerWidth<1024||(console.log("mouseEnter"),n==null||n.classList.remove("lg:invisible"),n==null||n.classList.remove("lg:opacity-0"))},u=k=>{typeof window<"u"&&window.innerWidth<1024||(console.log("mouseLeave"),n==null||n.classList.add("lg:invisible"),n==null||n.classList.add("lg:opacity-0"))};let{closeMobileMenu:b=()=>{}}=t;_e(()=>{const k=document.getElementById(i);n=k.querySelector(".submenu-content"),s=k.querySelector(".submenu-toggle-button")});const A=k=>{u(),b()};return a.$$set=k=>{"navDropdown"in k&&l(0,e=k.navDropdown),"isFirst"in k&&l(1,r=k.isFirst),"closeMobileMenu"in k&&l(2,b=k.closeMobileMenu)},[e,r,b,i,f,o,u,A]}class Ie extends be{constructor(t){super(),we(this,t,Ae,ze,ve,{navDropdown:0,isFirst:1,closeMobileMenu:2})}}const U={lightBg:"/Orr Made_Logo_Navy.png",darkBg:"/Orr Made_Logo_Cream.png"},pe=[{text:"About",url:"/about/",dropdownIndicator:{type:"arrow"},dropdown:[{text:"Our story",url:"/about/"},{text:"Credibility",url:"/credibility/"},{text:"Perfect Pitch",url:"/perfect-pitch/"}]},{text:"Projects",url:"/projects/"},{text:"Services",url:"/",dropdownIndicator:{type:"arrow"},dropdown:[{text:"Design",url:"/services/design/"},{text:"Build",url:"/services/build/"}]},{text:"Contact Us",url:"/contact-us/"}];function ge(a,t,l){const e=a.slice();return e[5]=t[l],e}function Ne(a){let t,l;return t=new Ie({props:{closeMobileMenu:a[1],navDropdown:a[5],isFirst:!0}}),{c(){ke(t.$$.fragment)},l(e){Le(t.$$.fragment,e)},m(e,r){Ee(t,e,r),l=!0},p:G,i(e){l||(z(t.$$.fragment,e),l=!0)},o(e){V(t.$$.fragment,e),l=!1},d(e){De(t,e)}}}function Ve(a){let t,l,e=a[5].text+"",r,i,n;return{c(){t=x("li"),l=x("a"),r=le(e),this.h()},l(s){t=y(s,"LI",{class:!0});var f=I(t);l=y(f,"A",{class:!0,href:!0});var o=I(l);r=te(o,e),o.forEach(v),f.forEach(v),this.h()},h(){c(l,"class","uppercase block lg:p-3 py-3 lg:text-center"),c(l,"href",a[5].url),c(t,"class","lg:max-w-[300px]")},m(s,f){P(s,t,f),m(t,l),m(l,r),i||(n=W(l,"click",a[1]),i=!0)},p:G,i:G,o:G,d(s){s&&v(t),i=!1,n()}}}function he(a){let t,l,e,r;const i=[Ve,Ne],n=[];function s(f,o){return f[5].hasOwnProperty("dropdown")?1:0}return t=s(a),l=n[t]=i[t](a),{c(){l.c(),e=O()},l(f){l.l(f),e=O()},m(f,o){n[t].m(f,o),P(f,e,o),r=!0},p(f,o){l.p(f,o)},i(f){r||(z(l),r=!0)},o(f){V(l),r=!1},d(f){f&&v(e),n[t].d(f)}}}function $e(a){let t,l,e,r,i,n,s,f=`<img class="w-full h-full object-center object-contain nav-brand-image nav-brand-image-light-bg" src="${U==null?void 0:U.lightBg}" alt=""/> <img class="w-full h-full object-center object-contain nav-brand-image nav-brand-image-dark-bg" src="${U==null?void 0:U.darkBg}" alt=""/>`,o,u,b,A='<span class="hamburger"></span> <span class="hamburger"></span> <span class="hamburger"></span>',k,N,M,S,q,E,L,$="<div></div>",_,T,C,p,g=X(pe),d=[];for(let h=0;h<g.length;h+=1)d[h]=he(ge(a,g,h));const D=h=>V(d[h],1,1,()=>{d[h]=null});return{c(){t=x("nav"),l=x("div"),e=x("div"),r=x("div"),i=x("div"),n=x("div"),s=x("a"),s.innerHTML=f,o=B(),u=x("div"),b=x("button"),b.innerHTML=A,k=B(),N=x("div"),M=x("ul");for(let h=0;h<d.length;h+=1)d[h].c();S=B(),q=x("div"),E=B(),L=x("div"),L.innerHTML=$,this.h()},l(h){t=y(h,"NAV",{id:!0,class:!0});var j=I(t);l=y(j,"DIV",{class:!0});var w=I(l);e=y(w,"DIV",{class:!0});var H=I(e);r=y(H,"DIV",{class:!0});var re=I(r);i=y(re,"DIV",{class:!0});var J=I(i);n=y(J,"DIV",{class:!0});var ae=I(n);s=y(ae,"A",{"aria-label":!0,href:!0,class:!0,"data-svelte-h":!0}),R(s)!=="svelte-12zht8l"&&(s.innerHTML=f),ae.forEach(v),o=F(J),u=y(J,"DIV",{class:!0});var ie=I(u);b=y(ie,"BUTTON",{"aria-label":!0,class:!0,"aria-controls":!0,"aria-expanded":!0,"data-svelte-h":!0}),R(b)!=="svelte-1quykfr"&&(b.innerHTML=A),ie.forEach(v),J.forEach(v),re.forEach(v),k=F(H),N=y(H,"DIV",{id:!0,class:!0});var se=I(N);M=y(se,"UL",{class:!0});var K=I(M);for(let ee=0;ee<d.length;ee+=1)d[ee].l(K);S=F(K),q=y(K,"DIV",{class:!0}),I(q).forEach(v),K.forEach(v),se.forEach(v),E=F(H),L=y(H,"DIV",{class:!0,"data-svelte-h":!0}),R(L)!=="svelte-iuxxzq"&&(L.innerHTML=$),H.forEach(v),w.forEach(v),j.forEach(v),this.h()},h(){c(s,"aria-label","Go to homepage"),c(s,"href","/"),c(s,"class","h-full w-auto lg:aspect-[80/36] xl:aspect-[111/36]"),c(n,"class","h-full flex items-center py-2 lg:py-0"),c(b,"aria-label","toggle mobile menu"),c(b,"class","ham-menu hamburger-menu"),c(b,"aria-controls","primary-navigation"),c(b,"aria-expanded","false"),c(u,"class","flex lg:hidden items-center h-full pl-4 py-4 justify-center"),c(i,"class","h-full w-full lg:w-fit mx-auto px-4 lg:px-0 flex items-center justify-between"),c(r,"class","w-full lg:w-fit h-full mobile-top "+Q+" lg:bg-transparent flex flex-row items-center justify-between relative z-10"),c(q,"class","lg:hidden h-4"),c(M,"class","list-nav-links mx-auto lg:mx-0 px-4 lg:px-0 lg:w-fit flex flex-col lg:flex-row lg:items-center lg:justify-end lg:overflow-y-visible lg:bg-transparent "+Q),c(N,"id","nav-menu"),c(N,"class","hidden overflow-y-auto w-full lg:w-auto absolute z-0 top-20 left-0 max-h-[calc(100vh-5rem)] lg:max-h-auto lg:overflow-y-visible lg:flex lg:justify-end "+Q+" mobile-slide-down active svelte-1p92dh4"),c(L,"class","hidden lg:block ml-4 lg-socials"),c(e,"class","nav-center w-full h-full relative lg:flex lg:items-center lg:justify-between lg:px-10 lg:mx-auto"),c(l,"class","nav-height container mx-auto w-full absolute z-50"),c(t,"id","main-nav"),c(t,"class",_="text-size-8 font-medium nav-height w-full fixed top-0 left-0 right-0 z-50 flex justify-center main-nav "+a[0]+" "+Q)},m(h,j){P(h,t,j),m(t,l),m(l,e),m(e,r),m(r,i),m(i,n),m(n,s),m(i,o),m(i,u),m(u,b),m(e,k),m(e,N),m(N,M);for(let w=0;w<d.length;w+=1)d[w]&&d[w].m(M,null);m(M,S),m(M,q),m(e,E),m(e,L),T=!0,C||(p=[W(s,"click",a[1]),W(b,"click",a[2])],C=!0)},p(h,[j]){if(j&2){g=X(pe);let w;for(w=0;w<g.length;w+=1){const H=ge(h,g,w);d[w]?(d[w].p(H,j),z(d[w],1)):(d[w]=he(H),d[w].c(),z(d[w],1),d[w].m(M,S))}for(Y(),w=g.length;w<d.length;w+=1)D(w);Z()}(!T||j&1&&_!==(_="text-size-8 font-medium nav-height w-full fixed top-0 left-0 right-0 z-50 flex justify-center main-nav "+h[0]+" "+Q))&&c(t,"class",_)},i(h){if(!T){for(let j=0;j<g.length;j+=1)z(d[j]);T=!0}},o(h){d=d.filter(Boolean);for(let j=0;j<d.length;j+=1)V(d[j]);T=!1},d(h){h&&v(t),ye(d,h),C=!1,me(p)}}}const Q="light-nav";function Pe(a,t,l){let{navClass:e=""}=t,r=null,i=null;const n=()=>{(i==null?void 0:i.getAttribute("aria-expanded"))=="false"?(r==null||r.classList.remove("hidden"),i==null||i.setAttribute("aria-expanded","true")):(r==null||r.classList.add("hidden"),i==null||i.setAttribute("aria-expanded","false"))},s=()=>{r==null||r.classList.add("hidden"),i==null||i.setAttribute("aria-expanded","false")};return _e(()=>{r=document.getElementById("nav-menu"),i=document.querySelector(".ham-menu"),window.addEventListener("resize",()=>{})}),a.$$set=f=>{"navClass"in f&&l(0,e=f.navClass)},[e,s,n]}class Be extends be{constructor(t){super(),we(this,t,Pe,$e,ve,{navClass:0,closeMobileMenu:1})}get closeMobileMenu(){return this.$$.ctx[1]}}export{Be as N};
