1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1338],{3071:function(e,s,r){r.d(s,{Z:function(){return LogoutIcon}});var n=r(85893);function LogoutIcon(e){let{className:s="",width:r=24,height:t=24,...i}=e;return(0,n.jsx)("svg",{className:s,width:r,height:t,fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...i,children:(0,n.jsx)("path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4m7 14 5-5-5-5m5 5H9"})})}},85140:function(e,s,r){r.d(s,{Z:function(){return UserIcon}});var n=r(85893);function UserIcon(e){let{className:s="",width:r=24,height:t=24,fill:i="none",stroke:l="#000",strokeWidth:o=1.4,...a}=e;return(0,n.jsxs)("svg",{className:s,width:r,height:t,viewBox:"0 0 24 24",fill:i,xmlns:"http://www.w3.org/2000/svg",...a,children:[(0,n.jsx)("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2",stroke:l,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:o}),(0,n.jsx)("path",{d:"M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z",stroke:l,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:o})]})}},32491:function(e,s,r){var n=r(85893),t=r(11163),i=r(34322),l=r(36951);s.Z=e=>{let{callback:s,...r}=e,{logout:o}=(0,l.a)(),{asPath:a=""}=(0,t.useRouter)(),c=(0,i.V6)(a),onLogOut=async()=>{try{await o({redirect:c})}finally{"function"==typeof s&&s()}};return(0,n.jsx)("span",{...r,onClick:onLogOut})}},31338:function(e,s,r){r.r(s),r.d(s,{default:function(){return mobile}});var n=r(85893),t=r(32491),i=r(68450),l=r(67294),o=r(20979),a=r(41664),c=r.n(a),d=r(19765),h=r(23164),p=r(61256),x=r(54442),m=r(3487),u=r(29641);function MenuIcon(e){let{className:s="",fill:r="none",stroke:t="currentColor",strokeWidth:i=1,width:l=24,height:o=24,...a}=e;return(0,n.jsx)("svg",{className:s,fill:r,stroke:t,strokeWidth:i,width:l,height:o,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...a,children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 12h18M3 6h18M3 18h18"})})}var f=r(33783),j=r(80656),k=r(3071),b=r(85140),g=r(57713),v=r(65322),N=r(70789);let onSocialClicked=e=>(h.f.socialClicked({social_network:e}),()=>{});var mobile=e=>{let{openMenu:s,mobileMenuOpen:r,setMobileMenuOpen:a,setSearchOpen:h,setSearchClosed:w,currentUser:y,toggleCandidateAuth:C}=e,[Z,M]=(0,l.useState)(!1),L=(0,u._i)(),_=(0,u.Vw)(),W=(0,u.XM)();return(0,n.jsxs)("div",{id:"mobile-menu",className:(0,N.cn)("cursor-pointer top-12 text-black","md:top-16","xxl:hidden"),children:[(0,n.jsxs)("div",{className:"flex items-center gap-4",children:[L&&(0,n.jsx)("button",{type:"button",className:"max-h-[32px] flex items-center text-white cursor-pointer uppercase rounded bg-green py-2 px-4 group transition-all hover:bg-link w-fit","data-cy":"open-booking-button",onClick:()=>(0,d.bi)(""),children:(0,n.jsx)("p",{className:"t-overline",children:"Book now"})}),r||"search"===s?(0,n.jsx)(f.z,{onClick:()=>{a(!r),w()},className:"cursor-pointer p-0 w-fit bg-transparent hover:bg-transparent",size:"icon-lg",children:(0,n.jsx)(g.Z,{className:"cursor-pointer",width:24,height:24,fill:"white","aria-label":"Close"})}):(0,n.jsx)(f.z,{onClick:()=>{a(!r),w()},className:"cursor-pointer p-0 w-fit bg-transparent hover:bg-transparent",size:"icon-lg",children:(0,n.jsx)(MenuIcon,{stroke:"white",strokeWidth:1,width:24,height:24,fill:"white"})})]}),r&&(0,n.jsx)("div",{className:(0,N.cn)("fixed inset-x-0 bottom-0 bg-white overflow-y-auto top-12","md:top-16","xxl:hidden"),children:(0,n.jsxs)("ul",{className:"p-8 pt-16",children:[(0,n.jsx)("li",{className:"flex mb-6",children:(0,n.jsx)(c(),{className:"t-overline block cursor-pointer uppercase",href:"/aedit-medspa",children:"Medspa"})}),(0,n.jsx)("li",{className:"flex items-center mb-6",children:(0,n.jsx)(c(),{href:"/medspa-menu",className:"flex t-overline cursor-pointer animated-underline lg:t-overline uppercase",children:"Treatments"})}),_&&(0,n.jsx)("li",{className:"flex items-center mb-6",children:(0,n.jsx)(c(),{href:"/membership",className:"flex t-overline cursor-pointer animated-underline lg:t-overline uppercase",children:"Membership"})}),(0,n.jsx)("li",{className:"flex items-center justify-between mb-10",children:y?(0,n.jsxs)("div",{onClick:()=>M(!Z),className:"cursor-pointer",children:[(0,n.jsxs)("span",{className:"flex items-center",children:[(0,n.jsx)(v.Z,{strokeWidth:1,fill:"black"}),(0,n.jsx)("p",{className:"t-overline mx-2",children:y.first_name}),(0,n.jsx)(j.Z,{width:24,height:24,direction:Z?"up":"down"})]}),Z&&(0,n.jsxs)("ul",{children:[(0,n.jsx)("li",{className:"flex ml-5 mt-8 cursor-pointer",children:(0,n.jsxs)(i.Z,{className:"flex cursor-pointer",children:[(0,n.jsx)(b.Z,{strokeWidth:1,stroke:"black"}),(0,n.jsx)("p",{className:"t-overline ml-2",children:"View Dashboard"})]})}),(0,n.jsx)("li",{className:"flex mt-8 ml-5 cursor-pointer",children:(0,n.jsxs)(t.Z,{callback:()=>a(!1),className:"flex",children:[(0,n.jsx)(k.Z,{strokeWidth:1,stroke:"black"}),(0,n.jsx)("p",{className:"t-overline ml-2",children:"Log Out"})]})})]})]}):(0,n.jsx)("button",{type:"button",className:"flex cursor-pointer uppercase rounded gap-2 transition-all animated-underline","data-cy":"open-auth-button",onClick:()=>{a(!1),C()},children:(0,n.jsx)("p",{className:"t-overline",children:"Log in"})})}),(0,n.jsx)("div",{className:"h-px w-full my-8 bg-light-gray-hover"}),(0,n.jsx)("li",{className:"flex mb-6",children:(0,n.jsx)(c(),{className:"t-overline block cursor-pointer",href:"/about",children:"Aedit Co"})}),(0,n.jsx)("li",{className:"flex mb-6",children:(0,n.jsx)(c(),{className:"t-overline block cursor-pointer",href:"/aedition",children:"Aedition"})}),(0,n.jsx)("li",{className:"flex mb-6",children:(0,n.jsx)("a",{className:(0,N.cn)("t-overline block cursor-pointer",{"pointer-events-none text-light-gray-hover":!W}),href:"https://aeditmedshop.myshopify.com/",target:W?"_blank":void 0,rel:"noopener",title:W?"Medshop":"Coming soon",children:"Medshop"})}),(0,n.jsxs)("li",{className:"flex flex-row justify-between gap-4 mb-10",children:[L&&(0,n.jsx)("button",{type:"button",className:"max-h-[32px] flex items-center text-white cursor-pointer uppercase rounded bg-green py-2 px-4 group transition-all hover:bg-link w-fit","data-cy":"open-booking-button",onClick:()=>(0,d.bi)(""),children:(0,n.jsx)("p",{className:"t-overline",children:"Book now"})}),(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,n.jsx)("a",{className:"t-body",href:o.ZY,onClick:()=>onSocialClicked("phone"),children:(0,n.jsx)(m.Z,{stroke:"black",strokeWidth:1.4})}),(0,n.jsx)("a",{className:"t-body",href:"mailto:".concat(o.Xy),target:"_blank",rel:"noopener",onClick:()=>onSocialClicked("email"),children:(0,n.jsx)(p.Z,{stroke:"black",strokeWidth:1.4,width:17,height:16})}),(0,n.jsx)("a",{className:"t-body",href:o._v,target:"_blank",rel:"noopener",onClick:()=>onSocialClicked("ig"),children:(0,n.jsx)(x.Z,{stroke:"black"})})]})]})]})})]})}},68450:function(e,s,r){var n=r(85893),t=r(41664),i=r.n(t),l=r(36951);s.Z=e=>{let{user:s,toggleAuth:r}=(0,l.a)();return(null==s?void 0:s.role_name)==="provider"?(0,n.jsx)(i(),{...e,href:e.href||"/provider-portal"}):(null==s?void 0:s.completed_signup)?(0,n.jsx)(i(),{...e,href:e.href||"/medspa-user/dashboard"}):(0,n.jsx)("span",{...e,onClick:()=>r("register")})}}}]);
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.