1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,6409797,7054131,e=>{"use strict";var t=e.i(6475254);let r=(0,t.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDownIcon",0,r],6409797);let o=(0,t.default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["ChevronUpIcon",0,o],7054131)},5549200,e=>{"use strict";let t=(0,e.i(6475254).default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDownIcon",0,t],5549200)},1193322,e=>{"use strict";let t=(0,e.i(6475254).default)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);e.s(["GripVerticalIcon",0,t],1193322)},4522016,(e,t,r)=>{"use strict";e.i(6247167),Object.defineProperty(r,"__esModule",{value:!0});var o={default:function(){return m},useLinkStatus:function(){return g}};for(var n in o)Object.defineProperty(r,n,{enumerable:!0,get:o[n]});let i=e.r(6190809),a=e.r(7843476),l=i._(e.r(5271645)),s=e.r(8195057),d=e.r(8008372),c=e.r(2818581),u=e.r(7718967),p=e.r(8405550),f=e.r(1388540),h=e.r(4091949),b=e.r(8573668),v=e.r(6509396);function m(t){var r;let o,n,i,[m,g]=(0,l.useOptimistic)(h.IDLE_LINK_STATUS),y=(0,l.useRef)(null),{href:x,as:w,children:C,prefetch:k=null,passHref:E,replace:T,shallow:R,scroll:P,onClick:j,onMouseEnter:N,onTouchStart:S,legacyBehavior:B=!1,onNavigate:O,transitionTypes:F,ref:L,unstable_dynamicOnHover:I,...D}=t;o=C,B&&("string"==typeof o||"number"==typeof o)&&(o=(0,a.jsx)("a",{children:o}));let M=l.default.useContext(d.AppRouterContext),U=!1!==k,A=!1===k?"none":!0===k?"full":"auto",z="none"!==A?"auto"===A?v.FetchStrategy.PPR:v.FetchStrategy.Full:v.FetchStrategy.PPR,q="string"==typeof(r=w||x)?r:(0,s.formatUrl)(r);if(B){if(o?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=l.default.Children.only(o)}let H=B?n&&"object"==typeof n&&n.ref:L,K,V=l.default.useCallback(e=>(null!==M&&(y.current=(0,h.mountLinkInstance)(e,q,M,z,U,g,K)),()=>{y.current&&((0,h.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,h.unmountPrefetchableInstance)(e)}),[U,q,M,z,g,K]),$={ref:(0,c.useMergedRef)(V,H),onClick(t){B||"function"!=typeof j||j(t),B&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(t),!M||t.defaultPrevented||function(t,r,o,n,i,a,s,d="none"){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,b.isLocalURL)(r)){n&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:p}=e.r(699781);l.default.startTransition(()=>{p(r,n?"replace":"push",!1===i?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,o.current,s,d)})}}(t,q,y,T,P,O,F,A)},onMouseEnter(e){B||"function"!=typeof N||N(e),B&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),M&&U&&(0,h.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){B||"function"!=typeof S||S(e),B&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),M&&U&&(0,h.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,u.isAbsoluteUrl)(q)?$.href=q:B&&!E&&("a"!==n.type||"href"in n.props)||($.href=(0,p.addBasePath)(q)),i=B?l.default.cloneElement(n,$):(0,a.jsx)("a",{...D,...$,children:o}),(0,a.jsx)(_.Provider,{value:m,children:i})}let _=(0,l.createContext)(h.IDLE_LINK_STATUS),g=()=>(0,l.useContext)(_);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},2818581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return n}});let o=e.r(5271645);function n(e,t){let r=(0,o.useRef)(null),n=(0,o.useRef)(null);return(0,o.useCallback)(o=>{if(null===o){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=i(e,o)),t&&(n.current=i(t,o))},[e,t])}function i(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},6023480,e=>{"use strict";var t,r=((t={}).Unauthorized="unauthorized_error",t.PaymentRequired="payment_required_error",t.Forbidden="forbidden_error",t.NotFound="not_found_error",t.BadRequest="bad_request_error",t.InternalServerError="internal_server_error",t.TooManyRequests="too_many_requests_error",t.PaymentCreationFailure="payment_not_created_error",t.PaymentRefundFailure="payment_refund_failed_error",t.NoAvailableUsersFound="no_available_users_found_error",t.CalendarReadFailed="calendar_read_failed_error",t.ChargeCardFailure="couldnt_charge_card_error",t.CollectCardFailure="couldnt_collect_card_error",t.RequestBodyWithouEnd="request_body_end_time_internal_error",t.AlreadySignedUpForBooking="already_signed_up_for_this_booking_error",t.FixedHostsUnavailableForBooking="fixed_hosts_unavailable_for_booking",t.HostBookingLimitReached="host_booking_limit_reached",t.RoundRobinHostsUnavailableForBooking="round_robin_host_unavailable_for_booking",t.EventTypeNotFound="event_type_not_found_error",t.BookingNotFound="booking_not_found_error",t.BookingSeatsFull="booking_seats_full_error",t.EventRegistrationClosed="event_registration_closed_error",t.MissingPaymentCredential="missing_payment_credential_error",t.MissingPaymentAppId="missing_payment_app_id_error",t.NotEnoughAvailableSeats="not_enough_available_seats_error",t.AvailabilityNotFoundInSchedule="availability_not_found_in_schedule_error",t.CancelledBookingsCannotBeRescheduled="cancelled_bookings_cannot_be_rescheduled",t.UnableToSubscribeToThePlatform="unable_to_subscribe_to_the_platform",t.UpdatingOauthClientError="updating_oauth_client_error",t.CreatingOauthClientError="creating_oauth_client_error",t.BookingTimeOutOfBounds="booking_time_out_of_bounds_error",t.BookingConflict="booking_conflict_error",t.BookerLimitExceeded="booker_limit_exceeded_error",t.BookerLimitExceededReschedule="booker_limit_exceeded_error_reschedule",t.BookingNotAllowedByRestrictionSchedule="booking_not_allowed_by_restriction_schedule_error",t.RestrictionScheduleNotFound="restriction_schedule_not_found_error",t.EventTypeNoHosts="event_type_no_hosts",t.RequestBodyInvalid="request_body_invalid_error",t.PrivateLinkExpired="private_link_expired",t.BookerEmailBlocked="booker_email_blocked",t.BookerEmailRequiresLogin="booker_email_requires_login",t.BookerEmailRequiresVerification="booker_email_requires_verification",t.InvalidVerificationCode="invalid_verification_code",t.UnableToValidateVerificationCode="unable_to_validate_verification_code",t.RoundRobinReassignmentRequiresAcceptedBooking="round_robin_reassignment_requires_accepted_booking",t.CalEventLocationInvalid="cal_event_location_invalid_error",t.CalEventCancelled="cal_event_cancelled_error",t.CalEventNotOpenForRegistration="cal_event_not_open_for_registration_error",t.CalEventPaymentUnavailable="cal_event_payment_unavailable_error",t.TagSlugConflict="tag_slug_conflict_error",t);e.s(["ErrorCode",()=>r])},5388752,e=>{"use strict";var t=e.i(6023480);Object.values(t.ErrorCode),e.s(["ErrorWithCode",0,class e extends Error{code;data;constructor(e,t,r){super(t),this.code=e,this.data=r}static get Factory(){return new Proxy(e,{get(r,o){if(o in t.ErrorCode){let r=t.ErrorCode[o];return(t,o)=>new e(r,t,o)}throw Error(`Unknown error code: ${o}`)}})}},"getErrorFromUnknown",0,function(e){return e instanceof Error?e:"string"==typeof e?Error(e,{cause:e}):Error(`Unhandled error of type '${typeof e}''`)}])},9857739,e=>{"use strict";var t=e.i(7843476),r=e.i(6830632),o=e.i(8320937),n=e.i(6225913),i=e.i(4522016),a=e.i(5271645),l=e.i(4113919);let s=(0,n.cva)("group whitespace-nowrap inline-flex items-center text-sm font-medium relative rounded-lg transition cursor-pointer disabled:cursor-not-allowed gap-1",{variants:{variant:{button:"",icon:"flex justify-center",fab:"min-w-14 min-h-14 md:min-w-min md:min-
1h-min rounded-full justify-center md:rounded-lg radix-state-open:rotate-45 md:radix-state-open:rotate-0 radix-state-open:shadown-none radix-state-open:ring-0"},color:{primary:["bg-brand-default","text-brand","not-disabled:hover:bg-brand-emphasis","focus-visible:outline-none","focus-visible:ring-0","focus-visible:shadow-button-solid-brand-focused","border border-brand-default","disabled:opacity-30","shadow-button-solid-brand-default","not-disabled:active:shadow-button-solid-brand-active","not-disabled:hover:shadow-button-solid-brand-hover","transition-shadow","transition-transform","duration-100"],secondary:["bg-default","text-default","border","border-default","not-disabled:hover:bg-cal-muted","not-disabled:hover:text-emphasis","disabled:opacity-30","focus-visible:bg-subtle","focus-visible:outline-none","focus-visible:ring-0","focus-visible:shadow-outline-gray-focused","shadow-outline-gray-rested","not-disabled:hover:shadow-outline-gray-hover","not-disabled:active:shadow-outline-gray-active","transition-shadow","duration-200"],minimal:["text-subtle","border border-transparent","not-disabled:hover:bg-subtle","not-disabled:hover:text-emphasis","not-disabled:hover:border-subtle hover:border","disabled:opacity-30","focus-visible:bg-subtle","focus-visible:outline-none","focus-visible:ring-0","focus-visible:border-subtle","focus-visible:shadow-button-outline-gray-focused","not-disabled:active:shadow-outline-gray-active","transition-shadow","duration-200"],destructive:["border","border-default","text-error","dark:hover:text-red-400","hover:border-semantic-error","hover:bg-error","focus-visible:text-red-700","focus-visible:bg-error","focus-visible:outline-none","focus-visible:ring-0","focus-visible:shadow-button-outline-red-focused","disabled:bg-red-100","disabled:border-red-200","disabled:text-red-700","disabled:hover:border-red-200","disabled:opacity-30","shadow-outline-red-rested","not-disabled:hover:shadow-outline-red-hover","not-disabled:active:shadow-outline-red-active","transition-shadow","duration-200"]},size:{xs:"h-6 p-2 leading-none text-xs rounded-md",sm:"h-7 px-2 py-1.5 leading-none text-sm",base:"px-2.5 py-2 text-sm leading-none",lg:"px-3 py-2.5 "},loading:{true:"cursor-wait"}},compoundVariants:[{loading:!0,color:"primary",className:"opacity-30"},{loading:!0,color:"secondary",className:"bg-subtle text-emphasis/80"},{loading:!0,color:"minimal",className:"bg-subtle text-emphasis/30"},{loading:!0,color:"destructive",className:"text-red-700/30 dark:text-red-700/30 hover:text-red-700/30 border border-default text-emphasis"},{variant:"icon",size:"base",className:"min-h-[36px] min-w-[36px] p-2! hover:border-default"},{variant:"icon",size:"xs",className:"h-5 w-5 p-1! rounded-md"},{variant:"icon",size:"sm",className:"h-6 w-6 p-1! rounded-md"},{variant:"icon",size:"lg",className:"h-10 w-10 p-1!"},{variant:"fab",size:"base",className:"md:px-4 md:py-2.5"}],defaultVariants:{variant:"button",color:"primary",size:"base"}}),d=(0,a.forwardRef)(function(e,n){let{loading:a=!1,color:l="primary",size:d,variant:u="button",type:p="button",tooltipSide:f="top",tooltipOffset:h=4,tooltipClassName:b,StartIcon:v,CustomStartIcon:m,EndIcon:_,shallow:g,...y}=e,x=e.disabled||a||!1,w=void 0!==e.href,C=(0,r.cn)(s({color:l,size:d,loading:a,variant:u}),e.className),k=x?e=>{e.preventDefault()}:e.onClick,E=(e,r)=>(0,t.jsx)(e,{className:r}),T=(0,t.jsxs)(t.Fragment,{children:[m||v&&(0,t.jsx)(t.Fragment,{children:"fab"===u?(0,t.jsxs)(t.Fragment,{children:[E(v,"hidden h-4 w-4 shrink-0 stroke-[1.5px] md:inline-flex"),(0,t.jsx)(o.PlusIcon,{"data-testid":"plus",size:24,className:"inline shrink-0 md:hidden"})]}):E(v,(0,r.cn)("shrink-0",a?"invisible":"visible","button-icon group-[:not(div):active]:translate-y-[0.5px]","icon"===u&&"h-4 w-4","button"===u&&"h-4 w-4 stroke-[1.5px] "))}),(0,t.jsx)("div",{className:(0,r.cn)("contents",a?"invisible":"visible","fab"===u?"hidden md:contents":"","group-[:not(div):active]:translate-y-[0.5px]"),children:e.children}),a&&(0,t.jsx)("div",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform",children:(0,t.jsxs)("svg",{className:(0,r.cn)("mx-4 h-5 w-5 animate-spin","primary"===l?"text-inverted":"text-emphasis"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}),_&&(0,t.jsx)(t.Fragment,{children:"fab"===u?(0,t.jsxs)(t.Fragment,{children:[E(_,"hidden h-4 w-4 shrink-0 stroke-[1.5px] md:inline-flex"),(0,t.jsx)(o.PlusIcon,{"data-testid":"plus",size:24,className:"inline shrink-0 md:hidden"})]}):E(_,(0,r.cn)("shrink-0",a?"invisible":"visible","group-[:not(div):active]:translate-y-[0.5px]","icon"===u&&"h-4 w-4","button"===u&&"h-4 w-4 stroke-[1.5px] "))})]});return w?(0,t.jsx)(i.default,{...y,shallow:g&&g,className:C,onClick:k,children:T}):(0,t.jsx)(c,{"data-testid":"wrapper",tooltip:e.tooltip,tooltipSide:f,tooltipOffset:h,tooltipClassName:b,children:(0,t.jsx)("button",{...y,ref:n,disabled:x,type:p,className:C,onClick:k,children:T})})}),c=({children:e,tooltip:r,tooltipSide:o,tooltipOffset:n,tooltipClassName:i})=>r?(0,t.jsx)(l.Tooltip,{"data-testid":"tooltip",className:i,content:r,side:o,sideOffset:n,children:e}):(0,t.jsx)(t.Fragment,{children:e});
1d.displayName="Button",e.s(["Button",0,d,"buttonClasses",0,s])},4113919,9186336,e=>{"use strict";var t=e.i(7843476),r=e.i(6830632),o=e.i(2931067),n=e.i(5271645),i=e.i(9981140),a=e.i(820783),l=e.i(4030030),s=e.i(6726330),d=e.i(7610772),c=e.i(5853660),u=e.i(6774606),p=e.i(4296626),f=e.i(4248425),h=e.i(5991918),b=e.i(7369340);let v=(0,n.forwardRef)((e,t)=>(0,n.createElement)(f.Primitive.span,(0,o.default)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[m,_]=(0,l.createContextScope)("Tooltip",[c.createPopperScope]),g=(0,c.createPopperScope)(),y="tooltip.open",[x,w]=m("TooltipProvider"),C=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[l,s]=(0,n.useState)(!0),d=(0,n.useRef)(!1),c=(0,n.useRef)(0);return(0,n.useEffect)(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,n.createElement)(x,{scope:t,isOpenDelayed:l,delayDuration:r,onOpen:(0,n.useCallback)(()=>{window.clearTimeout(c.current),s(!1)},[]),onClose:(0,n.useCallback)(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s(!0),o)},[o]),isPointerInTransitRef:d,onPointerInTransitChange:(0,n.useCallback)(e=>{d.current=e},[]),disableHoverableContent:i},a)},k="Tooltip",[E,T]=m(k),R="TooltipTrigger",P=(0,n.forwardRef)((e,t)=>{let{__scopeTooltip:r,...l}=e,s=T(R,r),d=w(R,r),u=g(r),p=(0,n.useRef)(null),h=(0,a.useComposedRefs)(t,p,s.onTriggerChange),b=(0,n.useRef)(!1),v=(0,n.useRef)(!1),m=(0,n.useCallback)(()=>b.current=!1,[]);return(0,n.useEffect)(()=>()=>document.removeEventListener("pointerup",m),[m]),(0,n.createElement)(c.Anchor,(0,o.default)({asChild:!0},u),(0,n.createElement)(f.Primitive.button,(0,o.default)({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},l,{ref:h,onPointerMove:(0,i.composeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(v.current||d.isPointerInTransitRef.current||(s.onTriggerEnter(),v.current=!0))}),onPointerLeave:(0,i.composeEventHandlers)(e.onPointerLeave,()=>{s.onTriggerLeave(),v.current=!1}),onPointerDown:(0,i.composeEventHandlers)(e.onPointerDown,()=>{b.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:(0,i.composeEventHandlers)(e.onFocus,()=>{b.current||s.onOpen()}),onBlur:(0,i.composeEventHandlers)(e.onBlur,s.onClose),onClick:(0,i.composeEventHandlers)(e.onClick,s.onClose)})))}),j="TooltipPortal",[N,S]=m(j,{forceMount:void 0}),B="TooltipContent",O=(0,n.forwardRef)((e,t)=>{let r=S(B,e.__scopeTooltip),{forceMount:i=r.forceMount,side:a="top",...l}=e,s=T(B,e.__scopeTooltip);return(0,n.createElement)(p.Presence,{present:i||s.open},s.disableHoverableContent?(0,n.createElement)(D,(0,o.default)({side:a},l,{ref:t})):(0,n.createElement)(F,(0,o.default)({side:a},l,{ref:t})))}),F=(0,n.forwardRef)((e,t)=>{let r=T(B,e.__scopeTooltip),i=w(B,e.__scopeTooltip),l=(0,n.useRef)(null),s=(0,a.useComposedRefs)(t,l),[d,c]=(0,n.useState)(null),{trigger:u,onClose:p}=r,f=l.current,{onPointerInTransitChange:h}=i,b=(0,n.useCallback)(()=>{c(null),h(!1)},[h]),v=(0,n.useCallback)((e,t)=>{let r,o=e.currentTarget,n={x:e.clientX,y:e.clientY},i=function(e,t){let r=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),n=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,o,n,i)){case i:return"left";case n:return"right";case r:return"top";case o:return"bottom";default:throw Error("unreachable")}}(n,o.getBoundingClientRect());c(((r=[...function(e,t,r=5){let o=[];switch(t){case"top":o.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":o.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":o.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":o.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return o}(n,i),...function(e){let{top:t,right:r,bottom:o,left:n}=e;return[{x:n,y:t},{x:r,y:t},{x:r,y:o},{x:n,y:o}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let o=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(o.y-r.y)>=(e.y-r.y)*(o.x-r.x))t.pop();else break}t.push(o)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let o=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(o.y-t.y)>=(e.y-t.y)*(o.x-t.x))r.pop();else break}r.push(o)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(r))),h(!0)}
1,[h]);return(0,n.useEffect)(()=>()=>b(),[b]),(0,n.useEffect)(()=>{if(u&&f){let e=e=>v(e,f),t=e=>v(e,u);return u.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[u,f,v,b]),(0,n.useEffect)(()=>{if(d){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},o=(null==u?void 0:u.contains(t))||(null==f?void 0:f.contains(t)),n=!function(e,t){let{x:r,y:o}=e,n=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e].x,l=t[e].y,s=t[i].x,d=t[i].y;l>o!=d>o&&r<(s-a)*(o-l)/(d-l)+a&&(n=!n)}return n}(r,d);o?b():n&&(b(),p())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,f,d,p,b]),(0,n.createElement)(D,(0,o.default)({},e,{ref:s}))}),[L,I]=m(k,{isInside:!1}),D=(0,n.forwardRef)((e,t)=>{let{__scopeTooltip:r,children:i,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:d,...u}=e,p=T(B,r),f=g(r),{onClose:b}=p;return(0,n.useEffect)(()=>(document.addEventListener(y,b),()=>document.removeEventListener(y,b)),[b]),(0,n.useEffect)(()=>{if(p.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(p.trigger)&&b()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[p.trigger,b]),(0,n.createElement)(s.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:e=>e.preventDefault(),onDismiss:b},(0,n.createElement)(c.Content,(0,o.default)({"data-state":p.stateAttribute},f,u,{ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),(0,n.createElement)(h.Slottable,null,i),(0,n.createElement)(L,{scope:r,isInside:!0},(0,n.createElement)(v,{id:p.contentId,role:"tooltip"},a||i))))}),M=e=>{let{__scopeTooltip:t,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:l,delayDuration:s}=e,u=w(k,e.__scopeTooltip),p=g(t),[f,h]=(0,n.useState)(null),v=(0,d.useId)(),m=(0,n.useRef)(0),_=null!=l?l:u.disableHoverableContent,x=null!=s?s:u.delayDuration,C=(0,n.useRef)(!1),[T=!1,R]=(0,b.useControllableState)({prop:o,defaultProp:i,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(y))):u.onClose(),null==a||a(e)}}),P=(0,n.useMemo)(()=>T?C.current?"delayed-open":"instant-open":"closed",[T]),j=(0,n.useCallback)(()=>{window.clearTimeout(m.current),C.current=!1,R(!0)},[R]),N=(0,n.useCallback)(()=>{window.clearTimeout(m.current),R(!1)},[R]),S=(0,n.useCallback)(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{C.current=!0,R(!0)},x)},[x,R]);return(0,n.useEffect)(()=>()=>window.clearTimeout(m.current),[]),(0,n.createElement)(c.Root,p,(0,n.createElement)(E,{scope:t,contentId:v,open:T,stateAttribute:P,trigger:f,onTriggerChange:h,onTriggerEnter:(0,n.useCallback)(()=>{u.isOpenDelayed?S():j()},[u.isOpenDelayed,S,j]),onTriggerLeave:(0,n.useCallback)(()=>{_?N():window.clearTimeout(m.current)},[N,_]),onOpen:j,onClose:N,disableHoverableContent:_},r))},U=e=>{let{__scopeTooltip:t,forceMount:r,children:o,container:i}=e,a=T(j,t);return(0,n.createElement)(N,{scope:t,forceMount:r},(0,n.createElement)(p.Presence,{present:r||a.open},(0,n.createElement)(u.Portal,{asChild:!0,container:i},o)))};function A({children:e,content:o,open:n,defaultOpen:i,onOpenChange:a,delayDuration:l,side:s="top",align:d="center",...c}){let u=(0,t.jsx)(O,{...c,className:(0,r.cn)("calcom-tooltip","top"===s&&"-mt-7","left"===s&&"mr-2","right"===s&&"ml-2","bg-inverted text-inverted relative z-50 rounded-sm px-2 py-1 text-xs font-semibold shadow-lg",c.className&&`${c.className}`),side:s,align:d,children:o});return(0,t.jsxs)(M,{delayDuration:l||50,open:n,defaultOpen:i,onOpenChange:a,children:[(0,t.jsx)(P,{asChild:!0,children:e}),(0,t.jsx)(U,{children:u})]})}e.s(["Content",0,O,"Portal",0,U,"Provider",0,C,"Root",0,M,"TooltipProvider",0,C,"Trigger",0,P],9186336),e.s(["Tooltip",0,A,"default",0,A],4113919)}]);
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.