(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5523],{8005:e=>{e.exports={container:"styles_container___L0ua",titleContainer:"styles_titleContainer__xkOqd",type:"styles_type__5W1X3",divider:"styles_divider__G_d7T",actions:"styles_actions__PnUGR",showMore:"styles_showMore__rtEqv"}},22137:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});var i=n(95155),s=n(45766),o=n(95780),a=n.n(o);let r=e=>{let{children:t}=e,{isMobile:n}=(0,s.l)();return n?null:(0,i.jsx)("h2",{className:a().pageTitle,children:t})}},22335:e=>{e.exports={bookLink:"styles_bookLink__yrZJT",buttonContainer:"styles_buttonContainer__4OHXs"}},41937:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P});var i=n(95155),s=n(70802),o=n(22137),a=n(41709),r=n(14676),d=n(57489),l=n(6874),c=n.n(l),p=n(45766),h=n(9712),m=n(22335),g=n.n(m);let x=()=>{let{isMobile:e}=(0,p.l)();return(0,i.jsx)(i.Fragment,{children:e?(0,i.jsx)("div",{className:g().buttonContainer,children:(0,i.jsx)(c(),{className:g().bookLink,href:"https://www.canyonranch.com/",children:(0,i.jsxs)(h.$,{fill:!0,children:[(0,i.jsx)(d.g,{icon:r.faPlus}),"Book a service"]})})}):(0,i.jsx)(c(),{className:g().bookLink,href:"https://www.canyonranch.com/",children:(0,i.jsxs)(h.$,{children:[(0,i.jsx)(d.g,{icon:r.faPlus}),"Book a service"]})})})};var f=n(66766),y=n(94600),v=n(44987),u=n(60523),w=n(63102),j=n(20836);let _={ButtonPadding:v.Ay.div.withConfig({componentId:"sc-e402f0d0-0"})(["top:2rem;width:100%;position:relative;"]),Container:v.Ay.div.withConfig({componentId:"sc-e402f0d0-1"})(["display:flex;position:relative;flex-direction:column;justify-content:center;align-items:center;font-family:",";padding:0 30px;font-weight:normal;text-align:-webkit-center;line-height:150%;font-feature-settings:'pnum' on,'lnum' on;color:",";","{padding:0 18rem;}"],w.a.cg,u.J.textColor.default,j.$.md),DescriptionText:v.Ay.div.withConfig({componentId:"sc-e402f0d0-2"})(["font-size:20px;line-height:1.5;width:328px;"]),Divider:(0,v.Ay)(y.A).withConfig({componentId:"sc-e402f0d0-3"})(["&.ant-divider{width:232px !important;min-width:0% !important;}border-block-start:1px solid ",";"],u.J.divider.light),ImageContainer:v.Ay.div.withConfig({componentId:"sc-e402f0d0-4"})(["padding:20px 0 20px 0;"]),Text:v.Ay.div.withConfig({componentId:"sc-e402f0d0-5"})(["padding-top:3px;font-size:24px;line-height:1.2;height:58px;"])},b=e=>{let{type:t}=e,{isSmallScreen:n}=(0,p.l)(),s="You don’t have any services \nplanned",o="You still haven't schedule any service.\nWhen you have an appointment\n it will appear here.";return t===a.mtZ.Past?(s="You don't have any services in the past",o="Here you will able to see your past \nfrom up to the last 36 months."):t===a.mtZ.Upcoming&&(o=""),(0,i.jsxs)(_.Container,{children:[(0,i.jsx)(_.ImageContainer,{children:(0,i.jsx)(f.default,{alt:"emptyService",height:132,src:"/svg/empty-state-services.svg",width:132})}),(0,i.jsx)(_.Text,{children:s.split("\n").map((e,t)=>(0,i.jsxs)("span",{children:[e,(0,i.jsx)("br",{})]},t))}),t!==a.mtZ.Upcoming&&(0,i.jsx)(_.Divider,{}),(0,i.jsx)(_.DescriptionText,{children:o.split("\n").map((e,t)=>(0,i.jsxs)("span",{children:[e,(0,i.jsx)("br",{})]},t))}),!n&&(t===a.mtZ.Upcoming||t===a.mtZ.All)&&(0,i.jsx)(_.ButtonPadding,{children:(0,i.jsx)(x,{})})]})};var C=n(12115),A=n(27141),k=n(8005),I=n.n(k);let N=e=>{let{services:t,type:n}=e,[s,o]=(0,C.useState)(3);return(0,i.jsxs)("div",{className:I().container,children:[(0,i.jsxs)("div",{className:I().titleContainer,children:[(0,i.jsxs)("span",{className:I().type,children:[n," SERVICES"]}),(0,i.jsx)("div",{className:I().divider})]}),t&&t.length>0?(0,i.jsx)("div",{className:I().servicesList,children:t.slice(0,s).map((e,t)=>(0,i.jsx)(A.A,{service:e,type:n},t))}):(0,i.jsx)(b,{type:n}),t&&t.length>3&&(0,i.jsx)("div",{className:I().actions,children:(0,i.jsx)("button",{className:I().showMore,onClick:()=>{3===s?o((null==t?void 0:t.length)||0):o(3)},children:3===s?"LOAD MORE":"LOAD LESS"})})]})};var T=n(15065);let Z={ButtonWidth:v.Ay.div.withConfig({componentId:"sc-9fbdea0c-0"})(["max-width:40%;"]),DateHeader:v.Ay.div.withConfig({componentId:"sc-9fbdea0c-1"})(["font-family:",";font-style:normal;font-weight:400;font-size:15px;padding:16px 2px 10px;line-height:140%;letter-spacing:0.08em;text-transform:uppercase;color:",";"],w.a.pn,u.J.neutrals.grayscale5),Divider:(0,v.Ay)(y.A).withConfig({componentId:"sc-9fbdea0c-2"})(["border:1px solid ",";"],u.J.neutrals.background),DividerContainer:v.Ay.div.withConfig({componentId:"sc-9fbdea0c-3"})(["display:flex;align-items:center;gap:8px;"]),DividerLine:v.Ay.div.withConfig({componentId:"sc-9fbdea0c-4"})(["flex:1;height:1px;background-color:",";"],u.J.neutrals.background),DividerText:v.Ay.p.withConfig({componentId:"sc-9fbdea0c-5"})(["font-size:16px;font-family:",";padding-inline:0;letter-spacing:0.08em;font-weight:400;color:",";height:16px;"],w.a.pn,u.J.neutrals.grayscale7),DividerTitle:(0,v.Ay)(y.A).withConfig({componentId:"sc-9fbdea0c-6"})(["&&{.ant-divider-inner-text{font-size:16px;font-family:",";padding-inline:0;letter-spacing:0.08em;font-weight:400;color:",";}}"],w.a.pn,u.J.neutrals.grayscale7),SectionContainer:v.Ay.div.withConfig({componentId:"sc-9fbdea0c-7"})(["display:flex;margin:1rem;flex-direction:column;"]),ServiceGrid:v.Ay.div.withConfig({componentId:"sc-9fbdea0c-8"})(["display:grid;grid-template-columns:1fr;","{grid-template-columns:repeat(2,1fr);}"],j.$.md),StickyHeader:v.Ay.div.withConfig({componentId:"sc-9fbdea0c-9"})(["position:sticky;top:0;background-color:",";z-index:1;width:100%;"],u.J.secondary.background.lightest),Text:v.Ay.p.withConfig({componentId:"sc-9fbdea0c-10"})(["font-family:",";font-size:24px;font-weight:normal;letter-spacing:0.06em;","{font-size:32px;}"],w.a.cg,j.$.md),TitleContainer:v.Ay.div.withConfig({componentId:"sc-9fbdea0c-11"})(["color:",";position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;padding:10px 0px 15px;gap:16px;isolation:isolate;width:100%;","{justify-content:space-between;}"],u.J.neutrals.grayscale7,j.$.md),Wrapper:v.Ay.div.withConfig({componentId:"sc-9fbdea0c-12"})(["margin-bottom:8rem;width:100%;"])};var D=n(17599),S=n(86420),J=n.n(S);let P=()=>{let e;let t=(0,D.r)(a.mtZ.Upcoming),n=(0,D.r)(a.mtZ.Past),{data:r,loading:d}=(0,T.U)(t.dateStart,t.dateEnd,a.mtZ.Upcoming),{data:l,loading:c}=(0,T.U)(n.dateStart,n.dateEnd,a.mtZ.Past);return e=d||c?(0,i.jsx)(s.A,{active:!0,paragraph:{rows:10}}):0===r.length&&0===l.length?(0,i.jsx)(b,{type:a.mtZ.All}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N,{services:r,type:a.mtZ.Upcoming}),(0,i.jsx)(N,{services:l,type:a.mtZ.Past})]}),(0,i.jsxs)("div",{className:J().container,children:[(0,i.jsxs)("div",{className:J().header,children:[(0,i.jsx)(o.s,{children:"Services"}),(0,i.jsx)(x,{})]}),(0,i.jsx)(Z.Wrapper,{children:e})]})}},82473:(e,t,n)=>{Promise.resolve().then(n.bind(n,41937))},86420:e=>{e.exports={container:"styles_container__CPJxI",header:"styles_header__etI_e"}},95780:e=>{e.exports={pageTitle:"styles_pageTitle__mBK6f"}}},e=>{var t=t=>e(e.s=t);e.O(0,[5307,7268,4724,1566,9925,7864,1286,3704,1137,7489,4666,189,6874,9593,2725,8815,3063,662,5293,9922,4987,8868,3038,6597,1709,9159,6818,8441,1684,7358],()=>t(82473)),_N_E=e.O()}]);