1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[829],{39856:function(e,t,n){var r=n(75271),i=n(48822),s=n(98066),o=n(44944),a=n(44928),l=n(7698),c=n(10703),d=n(52676);const f=i.default.div` 2 padding: 1em 1.5em; 3 background: ${e=>e.isActive?"rgb(18 148 76)":"white"}; 4 color: ${e=>e.isActive?"white":"inherit"}; 5 cursor: ${e=>e.isDisabled?"normal":"pointer"}; 6 transition: background 0.15s ease-in; 7 border-radius: 5px; 8`;function u(e,t){return Number.isInteger(e)?1===e?"1 appointment available":0===e?"No timeslots available.":`${e} timeslots available`:"Appointments available"}t.Z=function({booking:e,event:t,date:n,onSelect:i,isActive:m,hideAppointments:h,quantity:p,settings:x}){const{0:g,1:j}=(0,r.useState)({total:1,booked:0});let b;(0,r.useEffect)((()=>{!async function(){if(i&&t?.id&&n?.id){const{data:e}=await(0,o.hW)(t.id,n.id);j({total:e.total,booked:e.booked})}}()}),[]),b=g.total?g.total-g.booked:null;const y=0===b,{dateLabel:v,timeRangeLabel:T,timezoneLabel:E,relativeFromNow:D,isBookingInPast:S,locale:z}=(0,l.Z)({booking:e,event:t,date:n,settings:x});return(0,d.jsx)(f,{isActive:m,onClick:()=>{0!==b&&i({id:t.id,productId:t.productId,variantId:(0,o.Dw)(),name:t.name,startDate:n.startDate,endDate:n.endDate,startTime:n.startTime,endTime:n.endTime,eventDateId:n.id,timezone:n.timezone})},isDisabled:y,children:(0,d.jsxs)(s.kC,{children:[(0,d.jsxs)("div",{children:[(0,d.jsx)(s.h4,{isMuted:y,children:v}),(0,d.jsxs)(s.fi,{isMuted:y,children:[T," ",(0,d.jsxs)("span",{"data-servicify":"confirmation-tz",children:["(",E,")"]})]}),g&&!h&&(0,d.jsx)(s.h_,{isMuted:y,children:u(b)}),p&&(0,d.jsxs)(s.fi,{isMuted:y,children:[p," ",(0,a.Cj)(x,x.displaySettings,"CAL_ATTENDEE_LABEL"),p>1&&z===c.l.ENGLISH?"s":""]})]}),(0,d.jsx)("div",{style:{textTransform:"capitalize",color:y?"#969696":S?"#c2c2c2":"inherit"},children:D})]})})}},7698:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(44622),i=n.n(r),s=(n(91133),n(44928)),o=n(3511),a=n(63823);const l="dddd, MMMM Do YYYY";function c({booking:e,event:t,date:n,settings:r}){const c=t.lockTimezone||(0,s.$s)(),d=e?e.timezone:null,f=(0,a.K)({booking:e,settings:r});let u,m,h,p,x,g=!1;if(d?g=(0,o.G)(i().tz.zone(c),i().tz.zone(d)):t.lockTimezone&&(g=(0,o.G)(i().tz.zone(c),i().tz.zone(t.lockTimezone))),n.startDateString){const e=(0,o.Z)({startDateStr:n.startDateString,endDateStr:n.endDateString,utcStartTime:n.utcStartTime,utcEndTime:n.utcEndTime,startTimeStr:n.startTime,endTimeStr:n.endTime,fromTimezone:n.timezone,toTimezone:c,dateFormat:l,timeFormat:"LT",shouldIgnoreDSTConversion:g});u=i()(e.dateInLocalTimezone,l).locale(f).format("LL"),m=e.durationInLocalTimezone,h=e.momentStartDateInLocalTimezone.locale(f).fromNow(),p=e.momentStartDateInLocalTimezone.isBefore(i()())}else if(t.lockTimezone&&r.showLocalTimezoneInCalendar){u=i()(n.startDate,"YYYY-MM-DD").locale(f).tz((0,s.$s)()).format("LL"),m=`${i().tz(n.startTime,"h:mm a",n.timezone).tz((0,s.$s)()).locale(f).format("LT")} - ${i().tz(n.endTime,"h:mm a",n.timezone).tz((0,s.$s)()).locale(f).format("LT")}`;const e=i()(`${i()(n.startDate,"YYYY-MM-DD").tz((0,s.$s)()).locale(f).format("YYYY-MM-DD")} ${n.startTime}`,"YYYY-MM-DD h:mm a");h=e.clone().fromNow(),p=e.isBefore(i()())}else{u=i().utc(n.startDate,"YYYY-MM-DD").locale(f).format("LL"),m=`${i()(n.startTime,"h:mm a").locale(f).format("LT")} - ${i()(n.endTime,"h:mm a").locale(f).format("LT")}`;const e=i()(`${i()(n.startDate,"YYYY-MM-DD").locale(f).format("YYYY-MM-DD")} ${n.startTime}`,"YYYY-MM-DD h:mm a");h=e.clone().fromNow(),p=e.isBefore(i()())}return x=t.lockTimezone&&r.showLocalTimezoneInCalendar?(0,s.$s)():t.lockTimezone?t.lockTimezone:n.timezone,{dateLabel:u,timeRangeLabel:m,timezoneLabel:x,relativeFromNow:h,isBookingInPast:p,locale:f}}},28425:function(e,t,n){n(75271),n(54674);var r=n(39856),i=n(10439),s=n(44622),o=n.n(s),a=n(83619),l=n(71600),c=n(52676);t.Z=function({booking:e,event:t,user:n}){const s=o().utc(e.date.utcStartTime).isBefore(o()());return(0,c.jsxs)(a.xu,{mb:"2em",bg:"white",borderRadius:"lg",border:"1px",borderColor:"gray.200",children:[(0,c.jsx)(a.xu,{mb:"1em",py:"1em",borderBottom:"1px",borderColor:"gray.200",children:(0,c.jsxs)(a.MI,{columns:2,spacing:5,alignItems:"center",children:[(0,c.jsxs)(a.xu,{pl:4,children:[(0,c.jsx)(a.xv,{fontSize:"base",fontWeight:"bold",children:t.name}),(0,c.jsx)(a.xv,{fontFamily:"mono",fontSize:"sm",color:"gray.500",children:(0,i.l5)(n,e)})]}),(0,c.jsx)(a.xu,{textAlign:"right",pr:4,children:s?(0,c.jsx)("span",{children:"-"}):(0,c.jsx)(l.zx,{as:"a",variant:"outline",size:"sm",href:`/storefront-customers/modifyBooking?slug=${e.slug}`,children:"Modify"})})]})}),(0,c.jsx)(r.Z,{settings:n.settings,event:t,date:e.date,onSelect:()=>{},isActive:!1,hideAppointments:!0})]})}},54674:function(e,t,n){n.d(t,{$A:function(){return j},TX:function(){return g},TY:function(){return x},a8:function(){return p},f9:function(){return u},rF:function(){return c}});n(75271);var r=n(96633),i=n.n(r),s=n(10439),o=n(83619),a=n(42445),l=n(52676);function c(e){return(t,n)=>(0,s.Cj)(e,e?.displaySettings||{},t,n)}function d({children:e}){return(0,l.jsx)("div",{style:{background:"#fff",border:`1px solid ${a.O9.border}`,borderRadius:16},children:e})}function f(){return(0,l.jsxs)(i(),{children:[(0,l.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css"}
8),(0,l.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,l.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,l.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"}),(0,l.jsx)("style",{children:"\n html { height: 100%; }\n html,body { display: block; }\n "})]})}function u(){const e=(new Date).getFullYear();return(0,l.jsxs)("footer",{style:{marginTop:48,padding:"24px 0 28px",borderTop:`1px solid ${a.O9.border}`,display:"flex",flexDirection:"column",alignItems:"center",gap:6,textAlign:"center",fontSize:13},children:[(0,l.jsxs)("div",{style:{color:a.O9.muted},children:["Powered by"," ",(0,l.jsx)("a",{className:"sfc-link sfc-link--strong",href:"https://www.getservicify.com",target:"_blank",rel:"noreferrer",children:"Easy Appointment Booking"})]}),(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",justifyContent:"center",gap:8,color:a.O9.subtle},children:[(0,l.jsx)("a",{className:"sfc-link",href:"https://www.getservicify.com/privacy",target:"_blank",rel:"noreferrer",children:"Privacy Policy"}),(0,l.jsx)("span",{style:{color:a.O9.faint},children:"\xb7"}),(0,l.jsx)("a",{className:"sfc-link",href:"https://www.getservicify.com/terms",target:"_blank",rel:"noreferrer",children:"Terms of Service"}),(0,l.jsx)("span",{style:{color:a.O9.faint},children:"\xb7"}),(0,l.jsxs)("span",{className:"sfc-num",children:["\xa9 ",e]})]})]})}function m({user:e}){const t=`https://${e.storeUrl}`;return(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:16,padding:"16px 24px",borderBottom:`1px solid ${a.O9.divider}`},children:[(0,l.jsxs)("a",{className:"sfc-store-link",href:t,target:"_blank",rel:"noreferrer",children:[e.settings.logoUrl?(0,l.jsx)("img",{src:e.settings.logoUrl,alt:"",style:{height:40,width:"auto",borderRadius:10}}):null,(0,l.jsx)("span",{style:{fontSize:15,fontWeight:600,letterSpacing:"-0.005em",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.name})]}),(0,l.jsx)(a.zx,{as:"a",variant:"secondary",href:t,target:"_blank",rel:"noreferrer",style:{height:32,padding:"0 12px",fontSize:13},children:"Contact"})]})}const h={narrow:"600px",medium:"720px",wide:"1280px"};function p({user:e,width:t="narrow",children:n}){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f,{}),(0,l.jsxs)(o.W2,{my:6,px:0,maxW:h[t],children:[(0,l.jsxs)(d,{children:[e?(0,l.jsx)(m,{user:e}):null,(0,l.jsx)("div",{style:{padding:"32px 24px 24px"},children:n})]}),(0,l.jsx)(u,{})]})]})}function x({event:e,booking:t,employee:n,settings:r}){const i=c(r),s=[n?.firstName,n?.lastName].filter(Boolean).join(" ");return(0,l.jsxs)(a.qU,{children:[(0,l.jsx)(a.Vm,{label:i("CUSTOMER_RESCHEDULE_EVENT_LABEL"),isFirst:!0,children:e.name}),(0,l.jsx)(a.Vm,{label:i("CUSTOMER_RESCHEDULE_QUANTITY_LABEL"),children:(0,l.jsx)("span",{className:"sfc-num",children:t.quantity})}),(0,l.jsx)(a.Vm,{label:i("CUSTOMER_RESCHEDULE_DETAIL_AND_VARIANTS_LABEL"),children:t.variant?.title||"N/A"}),s?(0,l.jsx)(a.Vm,{label:i("CUSTOMER_RESCHEDULE_BOOKED_WITH_LABEL"),children:(0,l.jsxs)("span",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:10},children:[(0,l.jsx)(a.qE,{name:s}),(0,l.jsx)("span",{children:s})]})}):null]})}function g({settings:e}){if(!e)return(0,l.jsx)(p,{children:(0,l.jsx)("h1",{className:"sfc-title",children:"The booking was not found."})});const t=c(e);return(0,l.jsxs)(p,{children:[(0,l.jsx)("h1",{className:"sfc-title",children:t("CUSTOMER_RESCHEDULE_NOT_FOUND_LABEL")}),(0,l.jsx)("p",{style:{color:a.O9.muted},children:t("CUSTOMER_RESCHEDULE_NOT_FOUND_DESCRIPTION")})]})}function j({user:e,settings:t}){const n=c(t);return(0,l.jsxs)(p,{user:e,children:[(0,l.jsx)("h1",{className:"sfc-title",children:n("CUSTOMER_RESCHEDULE_DELETED_LABEL")}),(0,l.jsx)("p",{style:{color:a.O9.muted},children:n("CUSTOMER_RESCHEDULE_DELETED_DESCRIPTION",{store_email:e.contactEmail||e.email})})]})}},42445:function(e,t,n){n.d(t,{O9:function(){return c},Vm:function(){return m},hv:function(){return x},iK:function(){return g},p:function(){return f},pO:function(){return p},qE:function(){return h},qU:function(){return u},zx:function(){return d}});var r=n(57960),i=n(80687),s=(n(75271),n(52676));const o=["variant","block","as","className"];function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
8t%2?a(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const c={text:"var(--sfc-text)",muted:"var(--sfc-muted)",subtle:"var(--sfc-subtle)",faint:"var(--sfc-faint)",border:"var(--sfc-border)",divider:"var(--sfc-divider)",surface:"var(--sfc-surface)",avatarBg:"var(--sfc-avatar-bg)",avatarText:"var(--sfc-avatar-text)",success:"var(--sfc-success)",successText:"var(--sfc-success-text)"};function d(e){let{variant:t="primary",block:n=!1,as:r="button",className:a=""}=e,c=(0,i.Z)(e,o);const d=["sfc-btn",`sfc-btn--${t}`,n?"sfc-btn--block":"",a].filter(Boolean).join(" "),f="button"===r?{type:"button"}:{};return(0,s.jsx)(r,l(l({className:d},f),c))}function f({dateLabel:e,timeRangeLabel:t,timezoneLabel:n,relativeFromNow:r,label:i,asHeading:o=!1}){const a=o?"h1":"div";return(0,s.jsxs)("div",{children:[i?(0,s.jsx)("div",{style:{fontSize:13,color:c.muted,marginBottom:6},children:i}):null,(0,s.jsx)(a,{className:"sfc-num",style:{margin:0,fontSize:28,fontWeight:600,letterSpacing:"-0.022em",lineHeight:1.2},children:e}),(0,s.jsx)("div",{className:"sfc-num",style:{fontSize:16,marginTop:6},children:t}),(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:8,marginTop:6,fontSize:13,color:c.muted},children:[(0,s.jsx)("span",{"data-servicify":"confirmation-tz",children:n}),r?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{style:{color:c.faint},children:"\xb7"}),(0,s.jsx)("span",{className:"sfc-ucfirst",children:r})]}):null]})]})}function u({children:e}){return(0,s.jsx)("div",{style:{marginTop:28},children:e})}function m({label:e,children:t,isFirst:n=!1}){return(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:24,minHeight:48,padding:"10px 0",borderTop:n?"none":`1px solid ${c.divider}`},children:[(0,s.jsx)("div",{style:{color:c.muted},children:e}),(0,s.jsx)("div",{style:{fontWeight:500,textAlign:"right"},children:t})]})}function h({name:e}){const t=(e||"").split(/\s+/).filter(Boolean).slice(0,2).map((e=>e[0].toUpperCase())).join("");return t?(0,s.jsx)("div",{"aria-hidden":"true",style:{height:28,width:28,flex:"0 0 auto",borderRadius:999,background:c.avatarBg,color:c.avatarText,fontSize:12,fontWeight:600,letterSpacing:"0.02em",display:"flex",alignItems:"center",justifyContent:"center"},children:t}):null}function p({children:e}){return(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,s.jsx)("span",{style:{height:20,width:20,flex:"0 0 auto",borderRadius:999,background:c.success,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsx)("svg",{width:"11",height:"11",viewBox:"0 0 16 16",fill:"none",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M3.5 8.5l3 3 6-6.5"})})}),(0,s.jsx)("h1",{style:{margin:0,fontSize:15,fontWeight:600,lineHeight:1.4,letterSpacing:0,color:c.successText},children:e})]})}function x({children:e}){return(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{style:{height:32,width:32,borderRadius:999,background:c.surface,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",style:{stroke:c.muted},strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M4 4l8 8M12 4l-8 8"})})}),(0,s.jsx)("h1",{className:"sfc-title",style:{marginTop:16},children:e})]})}function g({children:e}){return(0,s.jsx)("div",{style:{marginTop:24,paddingTop:20,borderTop:`1px solid ${c.divider}`,fontSize:13,color:c.muted},children:e})}},91133:function(e,t,n){n.d(t,{Z:function(){return L}});var r=n(44622),i=n.n(r),s=n(64213),o=n.n(s),a=n(15400),l=n.n(a),c=n(61678),d=n.n(c),f=n(22465),u=n.n(f),m=n(43701),h=n.n(m),p=n(88769),x=n.n(p),g=n(46838),j=n.n(g),b=n(78922),y=n.n(b),v=n(43585),T=n.n(v),E=n(5883),D=n.n(E),S=n(75730),z=n.n(S),k=n(68569),w=n.n(k);function L(e){i().locale(e)}[["da",o()],["fr",x()],["de",l()],["ja",y()],["es",u()],["en-gb",d()],["zh-cn",w()],["fi",h()],["sv",z()],["it",j()],["pl",D()],["nl",T()]].forEac
8h((([e,t])=>i().updateLocale(e,t))),i().locale("en")},92493:function(e,t,n){n.d(t,{SX:function(){return o},Ye:function(){return a}});var r=n(44622),i=n.n(r),s=n(96179);function o(e,t){if(!e.bundleExpirySettings)return!1;const{type:n,expiry:r}=e.bundleExpirySettings;if(n===s.EVENT_SUBSCRIPTION_EXPIRY_TYPES.SPECIFIC)return new Date(r)<new Date;if(n===s.EVENT_SUBSCRIPTION_EXPIRY_TYPES.RELATIVE){const e=new Date(t.createdAt),n=new Date(e);return n.setDate(e.getDate()+r),n<new Date}return!1}function a(e,t){return i()(t.expiryDate).isBefore(i()())}}}]);
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.