File: /home/dnlightw-124/dn.lightweb.kr/public/build/assets/Navbar-B-14WSiN.js
import{Q as M,i as c}from"./index.esm2017-BwYSbQyX.js";import{n as u}from"./navigation-DEuOoJXd.js";import P from"./LogoDark-DLuSsnhY.js";import U from"./LogoLight-CQCEjW3c.js";import V from"./DepartmentSwitcher-DtOIFioT.js";import $ from"./ChevronRight-Bcj265eN.js";import{_ as T}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{i as w,r as D,a as Q,_ as W,O as x,z as l,I as o,A as e,H as d,N as y,y as r,R as H,E as t,F as h,B as g,G as S,C as i}from"./runtime-dom.esm-bundler-COsyWSZ4.js";import{Q as I,V as G,N as K}from"./disclosure-CqIGI98O.js";import"./listbox-CFjojfpG.js";import"./keyboard-PKtydfbd.js";const R={class:"px-6 lg:px-[3.75rem] py-2.5 md:py-4"},Y={class:"flex items-center"},Z={class:"flex flex-1 shrink-0 items-center"},q={class:"hidden lg:flex lg:flex-2"},J={class:"flex flex-1 justify-end items-center gap-x-2.5 md:gap-x-5"},X={class:"grid items-center w-6 h-6"},ee={key:1,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},te={key:0,class:"px-6 lg:px-[3.75rem] hidden md:group-hover:block w-full text-black"},se={class:"flex items-center pt-4"},le={class:"pr-5 flex items-center pb-2"},ae={class:"flex gap-x-5"},oe={class:"pb-2"},re={class:"relative w-full"},ie={class:"flex flex-col h-full pt-8 md:pt-[4.125rem] px-6 md:px-16 pb-5"},ne={class:"flex flex-col gap-y-10 lg:gap-y-20"},de={class:"text-sm md:text-base text-footer-gray"},ce={class:"text-lg md:text-[1.375rem] font-semibold text-footer-bg"},ue={class:"grid grid-cols-2 md:flex gap-x-10 md:gap-x-16 gap-y-10 lg:gap-y-20"},fe={class:"text-sm md:text-base text-footer-gray"},me={class:"text-lg md:text-[1.375rem] font-semibold text-footer-bg"},xe={class:"text-sm md:text-base text-footer-gray"},he={class:"text-lg md:text-[1.375rem] font-semibold text-footer-bg"},pe={class:"pt-10 pb-6 h-full flex flex-col gap-2 justify-end text-sm md:text-base text-footer-gray"},ve={__name:"Navbar",setup(ge){const A=M().props.siteConfigs,n=w(()=>M().component),O=w(()=>n.value==="Welcome"||n.value==="TermsOfService"||n.value==="PrivacyPolicy"||n.value==="Information/NonInsured"),_=w(()=>n.value==="TermsOfService"||n.value==="PrivacyPolicy"||n.value==="Information/NonInsured"),L=w(()=>u.find(m=>m.component===n.value||m.pages.some(a=>a.component===n.value)));function p(m){return m.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function j(m){return n.value===m}const v=D(!1),f=D(!1),C=()=>{v.value=window.scrollY>50},E=()=>{f.value=!0},F=()=>{f.value=!1};return Q(()=>{window.addEventListener("scroll",C)}),W(()=>{window.removeEventListener("scroll",C)}),(m,a)=>(l(),x(t(K),{as:"div",class:"group flex flex-col fixed top-0 inset-x-0 items-center z-40 w-full transition-all duration-300 ease-in-out",onMouseenter:E,onMouseleave:F},{default:o(({open:z})=>{var N,B;return[e("div",{class:y(["w-full transition-all duration-300 ease-in-out",_.value||v.value||f.value?"bg-white custom-shadow":"bg-white/10 backdrop-blur-[1.875rem]"]),id:"navbar"},[e("div",R,[e("nav",Y,[e("div",Z,[d(t(c),{href:"/"},{default:o(()=>[!v.value&&!f.value&&!_.value?(l(),x(U,{key:0,class:"w-[80%] md:w-auto"})):(l(),x(P,{key:1,class:"w-[80%] md:w-auto"}))]),_:1})]),e("div",q,[e("ul",{class:y(["navbar-nav flex gap-x-12 items-center text-lg",_.value||v.value||f.value?"text-black":"text-white"])},[(l(!0),r(h,null,g(t(u),(s,b)=>(l(),r("li",{key:b,class:"nav-item"},[d(t(c),{class:"nav-link",href:p(s.href)},{default:o(()=>[S(i(s.title),1)]),_:2},1032,["href"])]))),128))],2)]),e("div",J,[d(V,{"is-motion":!v.value&&!f.value&&!_.value,class:"cursor-pointer"},null,8,["is-motion"]),d(t(I),{class:"relative inline-flex items-center rounded-md p-2 text-gray-400"},{default:o(()=>[a[2]||(a[2]=e("span",{class:"absolute -inset-0.5"},null,-1)),a[3]||(a[3]=e("span",{class:"sr-only"},"Open main menu",-1)),e("div",X,[z?(l(),r("svg",ee,a[1]||(a[1]=[e("mask",{id:"vcyv3e82xa",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"-6",y:"-6",width:"26",height:"26"},[e("path",{fill:"#D9D9D9",d:"M-5.776-5.776h25.551v25.551H-5.776z"})],-1),e("g",{mask:"url(#vcyv3e82xa)"},[e("path",{d:"m7 8.49-5.217 5.217a1.01 1.01 0 0 1-.745.293 1.01 1.01 0 0 1-.745-.293A1.01 1.01 0 0 1 0 12.962c0-.302.098-.55.293-.746L5.509 7 .293 1.783A1.01 1.01 0 0 1 0 1.038C0 .736.098.488.293.293A1.01 1.01 0 0 1 1.038 0c.302 0 .55.098.745.293L7 5.509 12.216.293A1.01 1.01 0 0 1 12.962 0c.301 0 .55.098.745.293.195.195.293.443.293.745s-.098.55-.293.745L8.49 7l5.217 5.216c.195.196.293.444.293.746 0 .301-.098.55-.293.745a1.01 1.01 0 0 1-.745.293 1.01 1.01 0 0 1-.746-.293L7 8.49z",fill:"#fff"})],-1)]))):(l(),r(h,{key:0},[z?H("",!0):(l(),r("svg",{key:0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:y(v.value||f.value||_.value?"text-black":"text-white")},a[0]||(a[0]=[e("mask",{id:"2ik1xv9ima",style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24"},[e("path",{fill:"#D9D9D9",d:"M0 0h24v24H0z"})],-1),e("g",{mask:"url(#2ik1xv9ima)"},[e("path",{d:"M4 18a.967.967 0 0 1-.712-.288A.968.968 0 0 1 3 17c0-.283.096-.52.288-.712A.967.967 0 0 1 4 16h16c.283 0 .52.096.712.288.192.191.288.429.288.712s-.096.52-.288.712A.968.968 0 0 1 20 18H4zm0-5a.967.967 0 0 1-.712-.287A.968.968 0 0 1 3 12c0-.283.096-.52.288-.713A.967.967 0 0 1 4 11h16c.283 0 .52.096.712.287.192.192.288.43.288.713s-.096.52-.288.713A.968.968 0 0 1 20 13H4zm0-5a.968.968 0 0 1-.712-.287A.968.968 0 0 1 3 7c0-.283.096-.52.288-.713A.968.968 0 0 1 4 6h16c.283 0 .52.096.712.287.192.192.288.43.288.713s-.096.52-.288.713A.968.968 0 0 1 20 8H4z"})],-1)]),2))],64))])]),_:2},1024)])])]),O.value?H("",!0):(l(),r("div",te,[e("div",se,[e("div",le,[e("p",null,i((N=L.value)==null?void 0:N.title),1),d($,{color:"#b1b1b1"})]),e("div",ae,[(l(!0),r(h,null,g((B=L.value)==null?void 0:B.pages,s=>(l(),r("div",{key:s.title,class:y([j(s.component)?"border-b-[1.5px] border-gray-800 text-gray-800 font-medium":"text-footer-gray","min-fit gap-x-10"])},[e("div",oe,[d(t(c),{href:p(s.href)},{default:o(()=>[S(i(s.title),1)]),_:2},1032,["href"])])],2))),128))])])]))],2),d(t(G),{class:"absolute top-0 right-0 flex bg-[rgba(17,17,17,0.6)] backdrop-blur-[6.25rem] grid-cols-5 gap-x-20 overflow-y-auto w-full lg:max-w-[49.8125rem] h-screen"},{default:o(()=>[e("div",re,[d(t(I),{as:"div",class:"absolute top-5 right-6 lg:right-[3.75rem]"},{default:o(()=>a[4]||(a[4]=[e("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"m15.767 17.866-6.534 6.533c-.244.244-.555.367-.933.367s-.689-.122-.933-.367c-.245-.244-.367-.556-.367-.933 0-.378.122-.69.367-.934L13.9 16 7.367 9.466C7.122 9.22 7 8.91 7 8.532c0-.377.122-.688.367-.933.244-.244.555-.367.933-.367s.689.123.933.367l6.534 6.533L22.3 7.6c.244-.244.556-.367.933-.367.378 0 .69.123.934.367.244.245.366.556.366.933 0 .378-.122.69-.366.934l-6.534 6.533 6.534 6.533c.244.245.366.556.366.934 0 .377-.122.689-.366.933-.245.244-.556.367-.934.367-.377 0-.689-.122-.933-.367l-6.533-6.533z",fill:"#F4F4F4"})],-1)])),_:1}),e("div",ie,[e("div",ne,[e("div",null,[d(t(c),{href:t(u)[0].href,class:"text-white text-left flex flex-col justify-start gap-y-2.5 md:gap-y-4"},{default:o(()=>[e("p",de,i(t(u)[0].title),1),(l(!0),r(h,null,g(t(u)[0].pages,s=>(l(),x(t(c),{key:s.title,href:p(s.href)},{default:o(()=>[e("p",ce,i(s.title),1)]),_:2},1032,["href"]))),128))]),_:1},8,["href"])]),e("div",ue,[(l(!0),r(h,null,g(t(u).slice(1,5),(s,b)=>(l(),x(t(c),{key:s.title,href:p(s.href),class:y(["text-white text-left flex flex-col justify-start gap-y-2.5 md:gap-y-4",b===3?"md:hidden":""])},{default:o(()=>[e("p",fe,i(s.title),1),(l(!0),r(h,null,g(s.pages,k=>(l(),x(t(c),{key:k.title,href:p(k.href)},{default:o(()=>[e("p",me,i(k.title),1)]),_:2},1032,["href"]))),128))]),_:2},1032,["href","class"]))),128))]),e("div",null,[d(t(c),{href:t(u)[4].href,class:"text-white text-left hidden md:flex flex-col justify-start gap-y-2.5 md:gap-y-4"},{default:o(()=>[e("p",xe,i(t(u)[4].title),1),(l(!0),r(h,null,g(t(u)[4].pages,s=>(l(),x(t(c),{key:s.title,href:p(s.href)},{default:o(()=>[e("p",he,i(s.title),1)]),_:2},1032,["href"]))),128))]),_:1},8,["href"])])]),e("div",pe,[a[5]||(a[5]=e("div",{class:"h-px bg-footer-gray mb-4"},null,-1)),e("p",null,"Tel. "+i(t(A).contact),1),e("p",null,i(t(A)["business-location"]),1)])])])]),_:1})]}),_:1}))}},Me=T(ve,[["__scopeId","data-v-ed724ca6"]]);export{Me as default};