1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5411],{13383:function(e,t,n){n.d(t,{I:function(){return p},p:function(){return v}});var r=n(37821),i=n(58078),a=n(58504),o=n(13759),s=n(3842),l=n(46323),u=n(60927),c=n(15141),d=n(56570),m=n(44740),f=n(30261),g=n(26676);function p(e){let{title:t="Sign In Required",message:n,action:p="continue",children:v,triggerButton:h,onLoginSuccess:y,redirectTo:N,preferredSignupRole:I}=e,{isAuthenticated:x}=(0,f.a)(),S=(0,a.useRouter)(),[b,w]=(0,i.useState)(!1);if(x)return(0,r.jsx)(r.Fragment,{children:v});let E=h||(0,r.jsx)("div",{onClick:()=>w(!0),children:v});return(0,r.jsxs)(r.Fragment,{children:[E,(0,r.jsx)(o.Vq,{open:b,onOpenChange:w,children:(0,r.jsxs)(o.cZ,{className:"sm:max-w-md",children:[(0,r.jsxs)(o.fK,{className:"text-center space-y-3",children:[(0,r.jsx)("div",{className:"mx-auto w-16 h-16 rounded-full bg-gradient-to-br from-primary to-accent flex items-center justify-center",children:(0,r.jsx)(l.Z,{className:"h-8 w-8 text-white"})}),(0,r.jsx)(o.$N,{className:"text-2xl font-heading",children:t}),(0,r.jsx)(o.Be,{className:"text-base text-muted-foreground",children:n||"Please sign in to ".concat(p,". It only takes a moment to create your free account!")})]}),(0,r.jsxs)(o.cN,{className:"flex-col sm:flex-col gap-2",children:[(0,r.jsxs)(s.z,{onClick:()=>{sessionStorage.setItem(m.QO,N||(0,g.v)()),p.toLowerCase().includes("book")&&sessionStorage.setItem(m.VW,"true"),I&&sessionStorage.setItem(m.S6,I),S.push(d.Z6p.LOGIN)},variant:"dark",size:"lg",className:"",children:[(0,r.jsx)(u.Z,{className:"h-5 w-5"}),"Sign In"]}),(0,r.jsxs)(s.z,{onClick:()=>{sessionStorage.setItem(m.QO,N||(0,g.v)()),p.toLowerCase().includes("book")&&sessionStorage.setItem(m.VW,"true"),I&&sessionStorage.setItem(m.S6,I),S.push(d.Z6p.REGISTER)},variant:"outline",size:"lg",className:" !m-0",children:[(0,r.jsx)(c.Z,{className:"h-5 w-5"}),"Create Free Account"]})]})]})})]})}function v(){let{isAuthenticated:e}=(0,f.a)(),t=(0,a.useRouter)(),[n,p]=(0,i.useState)({open:!1,action:"continue",callback:null});return{requireAuth:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"continue";e?t():p({open:!0,action:n,callback:t})},LoginDialog:(0,r.jsx)(o.Vq,{open:n.open,onOpenChange:e=>p(t=>({...t,open:e})),children:(0,r.jsxs)(o.cZ,{className:"sm:max-w-md",children:[(0,r.jsxs)(o.fK,{className:"text-center space-y-3",children:[(0,r.jsx)("div",{className:"mx-auto w-16 h-16 rounded-full bg-gradient-to-br from-primary to-accent flex items-center justify-center",children:(0,r.jsx)(l.Z,{className:"h-8 w-8 text-white"})}),(0,r.jsx)(o.$N,{className:"text-2xl font-heading",children:"Sign In Required"}),(0,r.jsxs)(o.Be,{className:"text-base text-muted-foreground",children:["Please sign in to ",n.action,". Join thousands of beauty enthusiasts!"]})]}),(0,r.jsxs)(o.cN,{className:"flex-col sm:flex-col gap-2",children:[(0,r.jsxs)(s.z,{onClick:()=>{sessionStorage.setItem(m.QO,(0,g.v)()),n.action.toLowerCase().includes("book")&&sessionStorage.setItem(m.VW,"true"),t.push(d.Z6p.LOGIN)},variant:"dark",size:"lg",className:" ",children:[(0,r.jsx)(u.Z,{className:"h-5 w-5"}),"Sign In"]}),(0,r.jsxs)(s.z,{onClick:()=>{sessionStorage.setItem(m.QO,(0,g.v)()),n.action.toLowerCase().includes("book")&&sessionStorage.setItem(m.VW,"true"),t.push(d.Z6p.REGISTER)},variant:"outline",size:"lg",className:"",children:[(0,r.jsx)(c.Z,{className:"h-5 w-5"}),"Create Free Account"]})]})]})}),isAuthenticated:e}}},92482:function(e,t,n){n.d(t,{T:function(){return a}});var r=n(37821),i=n(46358);function a(e){let{service:t}=e;return(0,r.jsx)(i.L,{service:t,variant:"search",sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"})}},46358:function(e,t,n){n.d(t,{L:function(){return D}});var r=n(37821),i=n(58078),a=n(77627);function o(e){let{preview:t,title:n,posterUrl:i,posterRetryAttempt:o,onPosterError:s,serviceId:l,active:u,playing:c}=e;return(0,r.jsx)("div",{className:"absolute inset-0 overflow-hidden [transform:translateZ(0)] [contain:paint]",children:(0,r.jsx)(a.V,{permalink:t.permalink,embedSrc:t.embedSrc,title:"".concat(n," â Instagram preview"),variant:"card",pointerEventsNone:!0,posterUrl:i,posterRetryAttempt:o,onPosterError:s,serviceId:l,active:u,playing:c,className:"h-full w-full"})})}var s=n(67525),l=n(35357),u=n(6563),c=n(47637),d=n(58346),m=n(47211);
1let f=[120,400];function g(e){let{src:t,poster:n,playing:a,className:o,onError:s}=e,l=(0,i.useRef)(null),u=(0,i.useRef)(a);return u.current=a,(0,i.useEffect)(()=>{let e=l.current;if(!e||((0,d.b)(e,a),!a))return;let t=requestAnimationFrame(()=>(0,d.b)(e,u.current)),n=f.map(t=>window.setTimeout(()=>(0,d.b)(e,u.current),t));return()=>{cancelAnimationFrame(t),n.forEach(e=>window.clearTimeout(e))}},[t,a]),(0,r.jsx)("video",{ref:l,src:t,poster:null!=n?n:void 0,className:o,controls:!1,autoPlay:a,loop:!0,muted:!0,playsInline:!0,preload:a?"auto":"metadata",onCanPlay:e=>(0,d.b)(e.currentTarget,u.current),onLoadedData:e=>(0,d.b)(e.currentTarget,u.current),onError:s})}function p(e){let{videoUrl:t,stillUrl:n,alt:a,isVideo:o,active:d,playing:f,imageClassName:p,sizes:v,eagerStill:h,stillRetryAttempt:y,onStillError:N,onVideoError:I}=e,[x,S]=(0,i.useState)(null),b=n?(0,u.GH)(n,y):null,w=n?(0,r.jsx)(l.A,{src:n,alt:a,sizes:v,className:p,eager:h,behindVideo:o&&d,retryAttempt:y,onLoaded:()=>S(b),onError:N}):null,E=b?x===b||(0,c.k)(b):d;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.m,{hidden:E}),w,o&&d&&t?(0,r.jsx)(g,{src:(0,u.VS)(t),poster:b,playing:f,className:(0,m.cn)("absolute inset-0 h-full w-full",p),onError:I}):null]})}var v=n(71846),h=n(93651),y=n(30886),N=n(45106),I=n(90252);function x(e){return(null==e?void 0:e.trim())||null}function S(e){return e?(0,N.fU)(e)?null:e:null}function b(e){var t,n,r,i;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(null!=(r=e).featuredInstagramPermalink?(0,I.Bh)([r.featuredInstagramPermalink]):null)||(0,I.Bh)(null!==(i=r.instagramEmbedUrls)&&void 0!==i?i:void 0),s=x(e.featuredImageUrl),l=x(e.featuredThumbnailUrl),c=function(e,t){if(e){let t=e.toLowerCase();return"instagram"!==t&&("video"===t||t.startsWith("video/"))}return!!t&&/\.(mp4|webm|ogg|mov|avi|m4v)(\?|$)/i.test(t)}(e.featuredMediaType,s),d=c&&s?(0,u.Jo)(s,u.Q_):null,m=null!==(n=null!==(t=S(l))&&void 0!==t?t:c?d:S(s))&&void 0!==n?n:null,f=a.stillFailed?null:(0,y.V)(null!=m?m:"")||null,g=s&&(0,y.V)(s)||null;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!t&&(null!=e.featuredInstagramPermalink||"instagram"===e.featuredMediaType||!e.featuredImageUrl||n)}(e,o,!!(a.stillFailed&&(!c||a.videoFailed)))&&o?f?{kind:"image",stillUrl:f,videoUrl:null,instagram:o}:{kind:"instagram",stillUrl:f,videoUrl:null,instagram:o}:c&&g&&!a.videoFailed?{kind:"video",stillUrl:f,videoUrl:g,instagram:o}:f?{kind:"image",stillUrl:f,videoUrl:null,instagram:o}:o?{kind:"instagram",stillUrl:null,videoUrl:null,instagram:o}:{kind:"empty",stillUrl:null,videoUrl:null,instagram:null}}let w=[],E=new Set,T=null;function k(e,t){let n=w.indexOf(e);t&&n<0?w.push(e):!t&&n>=0&&w.splice(n,1);let r=T;if(!T||!w.includes(T)){var i;T=null!==(i=w[0])&&void 0!==i?i:null}r!==T&&E.forEach(e=>e())}function j(){return T}function R(e){return E.add(e),()=>E.delete(e)}function D(e){var t,n,a,s,l,u;let{service:c,variant:d="card",className:f,imageClassName:g="object-cover",sizes:y="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",emptyFallback:N}=e,I=(0,i.useRef)(null),[x,S]=(0,i.useState)(0),[w,E]=(0,i.useState)(!1),T=(0,h.z)(),D=[{imageUrl:null!==(t=c.featuredImageUrl)&&void 0!==t?t:null,thumbnailUrl:null!==(n=c.featuredThumbnailUrl)&&void 0!==n?n:null,mediaType:null!==(a=c.featuredMediaType)&&void 0!==a?a:null},...null!==(s=c.featuredMediaFallbacks)&&void 0!==s?s:[]],C=D[Math.min(x,D.length-1)],A=x<D.length-1,O={featuredImageUrl:null==C?void 0:C.imageUrl,featuredThumbnailUrl:null==C?void 0:C.thumbnailUrl,featuredMediaType:null==C?void 0:C.mediaType,featuredInstagramPermalink:A?null:c.featuredInstagramPermalink,instagramEmbedUrls:A?[]:c.instagramEmbedUrls},P=b(O),U="video"===P.kind?w&&(!P.stillUrl||T.failed):T.failed,F=b(O,{stillFailed:T.failed,videoFailed:w}),{active:_,visible:L}=(0,v.V)({targetRef:I,resetKey:[c.id,null!==(l=null==C?void 0:C.imageUrl)&&void 0!==l?l:"",null!==(u=c.featuredInstagramPermalink)&&void 0!==u?u:""].join("|")}),Z="instagram"===F.kind&&!!F.instagram,q=function(e,t){(0,i.useEffect)(()=>(k(e,t),()=>k(e,!1)),[t,e]);let n=(0,i.useSyncExternalStore)(R,j,()=>null);return t&&n===e}(c.id,("video"===F.kind||Z)&&L);(0,i.useEffect)(()=>{S(0),E(!1),T.reset()},[c.id,c.featuredImageUrl,c.featuredThumbnailUrl,c.featuredMediaFallbacks,c.featuredInstagramPermalink,T.reset]),(0,i.useEffect)(()=>{U&&A&&(S(e=>e+1),E(!1),T.reset())},[A,U,T.reset]);let M=null!=N?N:(0,r.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-gradient-to-br from-primary/10 to-accent/10 text-sm text-muted-foreground",children:"No preview"});return(0,r.jsx)("div",{ref:I,className:(0,m.cn)("absolute inset-0 h-full w-full",f),children:"instagram"===F.kind&&F.instagram?(0,r.jsx)(o,{preview:F.instagram,title:c.title,posterUrl:F.stillUrl,posterRetryAttempt:T.attempt,onPosterError:F.stillUrl?T.onError:void 0,serviceId:c.id,active:_,playing:q}):"video"===F.kind||"image"===F.kind?(0,r.jsx)(p,{videoUrl:F.videoUrl,stillUrl:F.stillUrl,alt:c.title,isVideo:"video"===F.kind,active:"video"===F.kind?q:_,playing:q,imageClassName:g,sizes:y,eagerStill:"search"===d&&_,stillRetryAttempt:T.attempt,onStillError:T.onError,onVideoError:function(){E(!0)}}):M})}},4095:function(e,t,n){n.d(t,{d:function(){return p}});var r=n(37821),i=n(58078),a=n(48191),o=n(3842),s=n(70432),l=n(30710),u=n(52530),c=n(54680),d=n(47211),m=n(30261),f=n(13383),g=n(88937);function p(e){let{targetId:t,targetType:n,initialIsLiked:p=!1,variant:v="outline",size:h="icon",showText:y=!1,className:N,onToggle:I}=e,{user:x,isAuthenticated:S}=(0,m.a)(),{requireAuth:b,LoginDialog:w}=(0,f.p)(),E=(0,a.NL)(),[T,k]=(0,i.useState)(p),[j,R]=(0,i.useState)(!1);if(S&&(null==x?void 0:x.role)!=="CLIENT")return null;async function D(e){if(e.preventDefault(),e.stopPropagation(),!S){b(()=>{});return}try{R(!0);let e=(await l.h.likes.toggle({targetId:t,targetType:n})).data.liked;k(e),null==I||I(e),(0,g.ZS)(E),c.Am.success(e?"Added to your favorites":"Removed from your favorites")}catch(t){let e=(0,u.Yo)(t)||"Failed to update favorites";c.Am.error(e)}finally{R(!1)}}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.z,{variant:v,size:h,onClick:D,disabled:j,className:(0,d.cn)("transition-all duration-300","hover:bg-transparent hover:text-foreground",N,T?"!border-primary/40 !bg
1-primary !text-primary-foreground active:!bg-primary/80 can-hover:!bg-primary/90":"can-hover:!border-primary can-hover:!bg-primary can-hover:!text-primary-foreground"),children:[(0,r.jsx)(s.Z,{className:(0,d.cn)("h-4 w-4 transition-transform duration-300",T&&"fill-current scale-110",y&&"mr-2")}),y&&(0,r.jsx)("span",{className:"font-medium",children:T?"Saved":"Save"}),!y&&(0,r.jsx)("span",{className:"sr-only",children:"Toggle favorite"})]}),w]})}},57631:function(e,t,n){n.d(t,{d:function(){return l}});var r=n(37821),i=n(12321),a=n(6563),o=n(30886),s=n(47211);function l(e){let{name:t,src:n,className:l,fallbackClassName:u,imageClassName:c}=e,d=(null==n?void 0:n.trim())?(0,a.nw)((0,o.V)(n.trim())):void 0;return(0,r.jsxs)(i.qE,{className:(0,s.cn)("aspect-square size-10 shrink-0 overflow-hidden rounded-full",l),children:[d?(0,r.jsx)(i.F$,{src:d,alt:t,className:(0,s.cn)("aspect-square h-full w-full rounded-full object-cover",c)}):null,(0,r.jsx)(i.Q5,{className:(0,s.cn)("rounded-full bg-gradient-to-br from-primary/20 to-accent/20 font-bold text-primary",u),children:t.trim().charAt(0).toUpperCase()||"?"})]})}},12321:function(e,t,n){n.d(t,{F$:function(){return l},Q5:function(){return u},qE:function(){return s}});var r=n(37821),i=n(58078),a=n(67049),o=n(47211);let s=i.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,r.jsx)(a.fC,{ref:t,className:(0,o.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",n),...i})});s.displayName=a.fC.displayName;let l=i.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,r.jsx)(a.Ee,{ref:t,className:(0,o.cn)("aspect-square h-full w-full",n),...i})});l.displayName=a.Ee.displayName;let u=i.forwardRef((e,t)=>{let{className:n,...i}=e;return(0,r.jsx)(a.NY,{ref:t,className:(0,o.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",n),...i})});u.displayName=a.NY.displayName},88937:function(e,t,n){n.d(t,{HK:function(){return o},L2:function(){return u},PG:function(){return d},Pg:function(){return c},ZS:function(){return s},_w:function(){return m},nB:function(){return f}});var r=n(57778),i=n(30710);let a={all:["client-dashboard"],stats:()=>[...a.all,"stats"],recentBookings:()=>[...a.all,"recent-bookings"],pendingReviews:()=>[...a.all,"pending-reviews"]},o={all:["likes"],mine:()=>[...o.all,"mine"]};function s(e){return e.invalidateQueries({queryKey:o.all})}let l={all:["reviews"],mine:()=>[...l.all,"mine"]};function u(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,r.a)({queryKey:a.stats(),queryFn:async()=>(await i.h.dashboard.getClientStats()).data.stats,enabled:e})}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return(0,r.a)({queryKey:a.recentBookings(),queryFn:async()=>(await i.h.dashboard.getClientRecentBookings(e)).data.bookings,enabled:t})}function d(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,r.a)({queryKey:o.mine(),queryFn:async()=>(await i.h.likes.getMyLikes()).data.likes,enabled:e,refetchOnMount:"always"})}function m(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,r.a)({queryKey:a.pendingReviews(),queryFn:async()=>(await i.h.bookings.getPendingReviews()).data.bookings,enabled:e})}function f(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,r.a)({queryKey:l.mine(),queryFn:async()=>(await i.h.reviews.getMyReviews()).data.reviews,enabled:e})}},84300:function(e,t,n){n.d(t,{C6:function(){return u},CB:function(){return l},fq:function(){return s}});var r=n(44740);function i(e){return"object"==typeof e&&null!==e}let a=["WEEKLY_SAME_WEEKDAY","MONTHLY_NTH_WEEKDAY","MONTHLY_DAY_OF_MONTH","DAILY"];function o(e){return Array.isArray(e)&&e.every(e=>"string"==typeof e)?e:void 0}function s(e,t){try{return l(JSON.stringify(e),t)}catch(e){return null}}function l(e,t){try{let n=JSON.parse(e);if(!i(n)||n.version!==r.$H||"string"!=typeof n.serviceId||n.serviceId!==t||"string"!=typeof n.step||!["date","time","recurring","details","summary","payment_method","payment","success"].includes(n.step))return null;let s=o(n.selectedAddons);if(!s)return null;let l="card"===n.paymentMethod||"mobile_money"===n.paymentMethod||"bank_transfer"===n.paymentMethod?n.paymentMethod:void 0;return{version:r.$H,serviceId:n.serviceId,providerId:"string"==typeof n.providerId?n.providerId:void 0,step:n.step,selectedDate:"string"==typeof n.selectedDate?n.selectedDate:void 0,selectedTime:"string"==typeof n.selectedTime?n.selectedTime:void 0,selectedVariantId:null===n.selectedVariantId||"string"==typeof n.selectedVariantId?n.selectedVariantId:void 0,selectedAddons:s,bookingMode:"guest"===n.bookingMode||"account"===n.bookingMode||null===n.bookingMode?n.bookingMode:void 0,contactEmail:"string"==typeof n.contactEmail?n.contactEmail:void 0,contactPhone:"string"==typeof n.contactPhone?n.contactPhone:void 0,contactPhoneCountry:"string"==typeof n.contactPhoneCountry?n.contactPhoneCountry:void 0,isRecurringSeries:"boolean"==typeof n.isRecurringSeries?n.isRecurringSeries:void 0,recurringPatternType:a.includes(n.recurringPatternType)?n.recurringPatternType:void 0,recurringPatternJson:function(e){if(i(e)&&a.includes(e.type))return{type:e.type,..."number"==typeof e.monthlyNth?{monthlyNth:e.monthlyNth}:{},..."number"==typeof e.monthlyDay?{monthlyDay:e.monthlyDay}:{}}}(n.recurringPatternJson),recurringOccurrences:function(e){if(Array.isArray(e)&&e.every(e=>i(e)&&"string"==typeof e.appointmentDate&&"string"==typeof e.appointmentTime))return e.map(e=>({appointmentDate:e.appointmentDate,appointmentTime:e.appointmentTime}))}(n.recurringOccurrences),recurringClientRequestId:"string"==typeof n.recurringClientRequestId?n.recurringClientRequestId:void 0,homeServiceRequested:"boolean"==typeof n.homeServiceRequested?n.homeServiceRequested:void 0,homeServiceAddress:"string"==typeof n.homeServiceAddress?n.homeServiceAddress:void 0,homeServiceLocationNotes:"string"==typeof n.homeServiceLocationNotes?n.homeServiceLocationNotes:void 0,homeServiceLocationConfirmed:"boolean"==typeof n.homeServiceLocationConfirmed?n.homeServiceLocationConfirmed:void 0,specialRequests:"string"==typeof n.specialRequests?n.specialRequests:void 0,referencePhotoUrls:o(n.referencePhotoUrls),paymentMethod:l,salonStylistChoice:"string"==typeof n.salonStylistChoice?n.salonStylistChoice:void 0,multiCart:function(e){if(Array.isArray(e))return e.every(e=>{if(!i(e)||!i(e.service)||"string"!=typeof e.service.id)return!1;let t=null===e.depositType||"PERCENTAGE"===e.depositType||"FLAT"===e.depositType;return"string"==typeof e.appointmentDate&&"string"==typeof e.appointmentTime&&"string"==typeof e.appointmentEndTime&&"number"==typeof e.durationMinutes&&(null===e.selectedVariantId||"string"==typeof e.selectedVariantId)&&!!o(e.selectedAddonIds)&&"number"==typeof e.servicePrice&&t&&"number"==typeof e.depositAmount&&"boolean"==typeof e.depositRequired&&"boolean"==typeof e.homeServiceRequested})?e:void 0}(n.multiCart)}}catch(e){return null}}function u(e){var t;return"success"===e.step?"date":"summary"!==e.step||(null===(t=e.multiCart)||void 0===t?void 0:t.length)?"time"!==e.step||e.selectedDate?"details"!==e.step&&"recurring"!==e.step||e.selectedDate&&e.selectedTime?e.step:e.selectedDate?"time":"date":"date":e.selectedDate&&e.selectedTime?"details":e.selectedDate?"time":"date"}},94791:function(e,t,n){n.d(t,{$8:function(){return s},ht:function(){return m},o9:function(){return c}
1,rf:function(){return g},rh:function(){return f},ul:function(){return u},wt:function(){return d}});var r=n(44740),i=n(26676),a=n(84300);function o(){let e=sessionStorage.getItem(r.DZ.INTENT_AT);if(!e)return!0;let t=Number(e);return!Number.isNaN(t)&&Date.now()-t<=r.Jj}function s(e){try{sessionStorage.setItem(r.DZ.BOOK_SERVICE,JSON.stringify({serviceId:e,at:Date.now()}))}catch(e){}}function l(e){try{let t=sessionStorage.getItem(r.DZ.BOOK_SERVICE);return!!(t&&function(e,t){try{let n=JSON.parse(e);if("object"!=typeof n||null===n||n.serviceId!==t)return!1;let i="number"==typeof n.at?n.at:Number(n.at);if(Number.isNaN(i)||Date.now()-i>r.Jj)return!1;return!0}catch(e){return!1}}(t,e))}catch(e){return!1}}function u(e){return l(e)}function c(e){if(!l(e))return!1;try{sessionStorage.removeItem(r.DZ.BOOK_SERVICE)}catch(e){}return!0}function d(){return"1"===new URLSearchParams(window.location.search).get(r.Iv)}function m(e){try{sessionStorage.setItem(r.DZ.DRAFT,JSON.stringify(e)),sessionStorage.setItem(r.DZ.OPEN_AFTER_LOGIN,"true"),sessionStorage.setItem(r.DZ.INTENT_AT,String(Date.now())),sessionStorage.setItem(r.DZ.REDIRECT_AFTER_LOGIN,(0,i.v)()),sessionStorage.setItem(r.DZ.PREFERRED_SIGNUP_ROLE,"CLIENT")}catch(e){}}function f(){try{return"true"===sessionStorage.getItem(r.DZ.OPEN_AFTER_LOGIN)&&o()&&!!sessionStorage.getItem(r.DZ.DRAFT)}catch(e){return!1}}function g(e){if("true"!==sessionStorage.getItem(r.DZ.OPEN_AFTER_LOGIN)||!o())return!function(){try{sessionStorage.removeItem(r.DZ.DRAFT),sessionStorage.removeItem(r.DZ.OPEN_AFTER_LOGIN),sessionStorage.removeItem(r.DZ.INTENT_AT),sessionStorage.removeItem(r.DZ.BOOK_SERVICE)}catch(e){}}(),{shouldOpenModal:!1,draft:null};let t=sessionStorage.getItem(r.DZ.DRAFT),n=t?(0,a.CB)(t,e):null;return(sessionStorage.removeItem(r.DZ.OPEN_AFTER_LOGIN),sessionStorage.removeItem(r.DZ.INTENT_AT),sessionStorage.removeItem(r.DZ.DRAFT),n)?{shouldOpenModal:!0,draft:{...n,step:(0,a.C6)(n)}}:{shouldOpenModal:!0,draft:null}}},26676:function(e,t,n){n.d(t,{v:function(){return r}});function r(){return"".concat(window.location.pathname).concat(window.location.search).concat(window.location.hash)}}}]);
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.