1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ec0cdede-01dc-5121-9efd-556e5b8be9dc")}catch(e){}}(); 3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9246],{1998:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(29017),a=r(96820),i=r(5776),o=r(95203);let l=new a.A("zero",{html:!1,breaks:!0,linkify:!0});l.enable(["list","reference","link","linkify","newline","emphasis"]);let d=l.renderer.rules.link_open||function(e,t,r,n,a){return a.renderToken(e,t,r)};l.renderer.rules.link_open=function(e,t,r,n,a){return e[t].attrPush(["target","_blank"]),e[t].attrPush(["rel","noopener noreferrer nofollow ugc"]),d(e,t,r,n,a)};let s=(0,i.forwardRef)(function(e,t){let{value:r,className:a}=e,d=(0,i.useMemo)(()=>r&&l.render(r)||"",[r]);return(0,n.Y)("div",{className:a,css:o.vg,dangerouslySetInnerHTML:{__html:d},ref:t})})},2261:(e,t,r)=>{"use strict";r.d(t,{c7:()=>s});var n=r(29017),a=r(39239),i=r(45192),o=r(23617),l=r(48993),d=r(79741);function s(e){let{type:t="left",icon:r,title:i,description:o,divider:l=!1,paddingBottom:d=!1,showCloseButton:s=!0,onClose:g,className:v}=e;return(0,n.FD)(c,{divider:l,type:t,paddingBottom:d,className:v,children:[s&&g&&(0,n.Y)(p,{variant:"tertiary-gray",onClick:g,children:(0,n.Y)(a.A,{})}),r,(0,n.FD)(u,{children:[(0,n.Y)(m,{size:"lg",weight:"medium",hasIcon:!!r,children:i}),o&&(0,n.Y)(f,{size:"sm",weight:"regular",children:o})]})]})}let c=(0,i.Ay)("div",{target:"ec5mr3m0"})(({theme:e,type:t,divider:r,paddingBottom:n})=>{let a=(()=>{switch(t){case"center":return(0,o.AH)` 4 flex-direction: column; 5 align-items: center; 6 text-align: center; 7 `;case"left":return(0,o.AH)` 8 flex-direction: column; 9 `;case"horizontal-left":return(0,o.AH)` 10 flex-direction: column; 11 12 ${e.breakpoints.up("sm")} { 13 flex-direction: row; 14 } 15 `;default:throw Error(`Type not found: ${t}`)}})();return(0,o.AH)` 16 --padding: 24px; 17 18 position: relative; 19 width: 100%; 20 padding: var(--padding); 21 display: flex; 22 gap: 12px; 23 24 ${e.breakpoints.up("md")} { 25 gap: 16px; 26 } 27 28 ${a} 29 30 ${r&&(0,o.AH)` 31 &:before { 32 display: block; 33 content: ""; 34 position: absolute; 35 width: 100%; 36 height: 1px; 37 left: 0; 38 bottom: 0; 39 background: ${e.brand.vars.colors.gray[200]}; 40 } 41 `} 42 43 ${n&&(0,o.AH)` 44 padding-bottom: calc(var(--padding) + 20px); 45 `} 46 `}),u=(0,i.Ay)("div",{target:"ec5mr3m1"})((0,o.AH)` 47 display: flex; 48 flex-direction: column; 49 gap: 4px; 50`),p=(0,i.Ay)(l.Ay,{target:"ec5mr3m2"})((0,o.AH)` 51 position: absolute; 52 top: 8px; 53 right: 8px; 54`),m=(0,i.Ay)(d.A,{shouldForwardProp:e=>"hasIcon"!==e,target:"ec5mr3m3"})(({hasIcon:e})=>(0,o.AH)` 55 overflow-wrap: break-word; 56 57 ${!e&&(0,o.AH)` 58 margin-right: 28px; 59 `} 60 `),f=(0,i.Ay)(d.A,{target:"ec5mr3m4"})((0,o.AH)` 61 overflow-wrap: break-word; 62`)},10441:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,YY:()=>d,uS:()=>c});var n=r(29017),a=r(23617),i=r(5776),o=r(81766),l=r(62089);let d=l.ts,s=(0,i.forwardRef)((e,t)=>{let{error:r,disabled:i}=e;return(0,n.Y)(l.Ay,{ref:t,disabled:i,css:(0,a.AH)(c," ",r&&(0,a.AH)` 63 --helper-text-color: var(--error-color); 64 --border-color: var(--error-border-color); 65 --focused-border-color: var(--error-focused-border-color); 66 --focused-box-shadow: var(--error-focused-box-shadow); 67 `," ",i&&(0,a.AH)` 68 --background-color: var(--disabled-background-color); 69 --placeholder-color: var(--disabled-color); 70 --color: var(--disabled-color); 71 --helper-text-color: var(--disabled-color); 72 `),...e})}),c=(0,a.AH)("--border-color:",o.zQ.brand.vars.colors.gray[300],";--box-shadow:",o.zQ.brand.vars.shadows.xs.default,";--background-color:",o.zQ.brand.vars.colors.base.white,";--color:",o.zQ.brand.vars.colors.gray[900],";--label-color:",o.zQ.brand.vars.colors.gray[700],";--helper-text-color:",o.zQ.brand.vars.colors.gray[500],";--placeholder-color:",o.zQ.brand.vars.colors.gray[400],";--adornment-color:",o.zQ.brand.vars.colors.gray[400],";
72--focused-box-shadow:",o.zQ.brand.vars.shadows.xs.focused.primary,";--focused-border-color:",o.zQ.brand.vars.colors.primary[300],";--error-color:",o.zQ.brand.vars.colors.error[500],";--error-border-color:",o.zQ.brand.vars.colors.error[300],";--error-focused-border-color:",o.zQ.brand.vars.colors.error[300],";--error-focused-box-shadow:",o.zQ.brand.vars.shadows.xs.focused.error,";--disabled-background-color:",o.zQ.brand.vars.colors.gray[50],";--disabled-color:",o.zQ.brand.vars.colors.gray[500],";")},13382:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(2261).c7},15063:(e,t,r)=>{"use strict";r.d(t,{Vj:()=>a,Yx:()=>d,jx:()=>n,y7:()=>s});let n="Private â not shared with your client",a="# Session recap\nA warm, specific recap addressed to the client: the topics covered, what the client practiced, the most important feedback or corrections from the session, and one win worth celebrating. Ground every point in what actually happened. Under 200 words.\n\n# Practice before next session\nHomework the client does on their own before the next session, based only on tasks discussed or agreed in the session. Make each task concrete and measurable: what to do, how much, and how to check it. If there is more than one task, number them. Do not include anything that happens during the next session itself. Under 120 words.\n\n# Next session plan\nWhat the coach and client will work on together in the next live session, building on today. Only the live-session agenda: homework and self-practice tasks belong in the practice section above, not here. Under 80 words.",i=/^#[ \t\v\f]+(.*)$/,o=/[^a-z0-9]+/g,l=/\{private}$/i;function d(e,t=""){let r=new Set;for(let n of(new TextEncoder().encode(t).length>262144&&r.add("The layout is too large, only 262144 bytes are allowed"),0===e.length&&r.add('The layout must contain at least one "# Heading" section'),e.some(e=>0===e.title.length)&&r.add("Section headings must not be empty"),e))n.title.length>80&&r.add(`Section title "${n.title}" is too long, only 80 characters are allowed`);return e.length>8&&r.add(`The layout may contain at most 8 sections, found ${e.length}`),[...r]}function s(e){let t,r=[];for(let n of e.split(/\r?\n/)){let e=n.replace(/^\uFEFF/,"").trim();if(0===e.length)continue;let a=i.exec(e);if(a){let e=(a[1]??"").trim(),n=l.test(e),i=e.replace(l,"").trim(),o=[];r.push({title:i,isPrivate:n,body:o}),t=o;continue}t?.push(e)}let n=new Set;return r.map(({title:e,isPrivate:t,body:r})=>{let a=function(e,t){if(!t.has(e))return e;let r=2;for(;t.has(`${e}-${r}`);)r++;return`${e}-${r}`}(e.toLowerCase().replace(o,"-").replace(/^-+|-+$/g,"")||"section",n);return n.add(a),{key:a,title:e,instruction:r.join("\n"),isPrivate:t}})}},17111:(e,t,r)=>{"use strict";r.d(t,{l:()=>v});var n=r(93030),a=r(55834),i=r(84234),o=r(28243);let l=(0,n.J1)` 73 fragment CalendarEventParticipantSnapshot on CalendarEventParticipantSnapshot { 74 calendarEventId 75 userId 76 type 77 state 78} 79 `,d=(0,n.J1)` 80 fragment CalendarEventParticipantCreateEvent on CalendarEventParticipantCreateEvent { 81 id 82 type 83 timestamp 84 sourceUserId 85 message 86 snapshot { 87 ...CalendarEventParticipantSnapshot 88 } 89} 90 ${l}`,s=(0,n.J1)` 91 fragment CalendarEventParticipantUpdateEvent on CalendarEventParticipantUpdateEvent { 92 id 93 type 94 timestamp 95 sourceUserId 96 message 97 snapshot { 98 ...CalendarEventParticipantSnapshot 99 } 100} 101 ${l}`,c=(0,n.J1)` 102 fragment CalendarEventParticipantScheduleEvent on CalendarEventParticipantScheduleEvent { 103 id 104 type 105 timestamp 106 sourceUserId 107 message 108 snapshot { 109 ...CalendarEventParticipantSnapshot 110 } 111} 112 ${l}`,u=(0,n.J1)` 113 fragment CalendarEventParticipantConfirmEvent on CalendarEventParticipantConfirmEvent { 114 id 115 type 116 timestamp 117 sourceUserId 118 message 119 snapshot { 120 ...CalendarEventParticipantSnapshot 121 } 122} 123 ${l}`,p=(0,n.J1)` 124 fragment CalendarEventParticipantCancelEvent on CalendarEventParticipantCancelEvent { 125 id 126 type 127 timestamp 128 sourceUserId 129 message 130 snapshot { 131 ...CalendarEventParticipantSnapshot 132 } 133} 134 ${l}`,m=(0,n.J1)` 135 fragment CalendarEventParticipantEvent on CalendarEventParticipantEvent { 136 id 137 type 138 timestamp 139 snapshot { 140 ...CalendarEventParticipantSnapshot 141 } 142 ...CalendarEventParticipantCreateEvent 143 ...CalendarEventParticipantUpdateEvent 144 ...CalendarEventParticipantScheduleEvent 145 ...CalendarEventParticipantConfirmEvent 146 ...CalendarEventParticipantCancelEvent 147} 148 ${l} 149${d} 150${s} 151${c} 152${u} 153${p}`,f=(0,n.J1)` 154 fragment CalendarEventParticipant on CalendarEventParticipant { 155 calendarEventId 156 userId 157 user { 158 id 159 name 160 email 161 expertDetails { 162 id 163 slug 164 customDomain 165 } 166 avatar { 167 ...UploadedFile 168 } 169 } 170 type 171 state 172 order { 173 ...Order 174 } 175 review { 176 ...ReviewSubmitted 177 } 178 events { 179 ...CalendarEventParticipantEvent 180 } 181 createdAt 182} 183 ${a.Zx} 184${i.fg} 185${o.mY} 186${m}`;var g=r(30315);let v=(0,n.J1)` 187 fragment CalendarEventWithoutBundle on CalendarEvent { 188 id 189 expertUserId 190 bundleId 191 groupProgramId 192 type 193 state 194 startDate 195 endDate 196 duration 197 location 198 bufferBefore 199 bufferAfter 200 baseAvailabilitySettingId 201 participants { 202 ...CalendarEventParticipant 203 } 204 title 205 description 206 events { 207 ...CalendarEventEvent 208 } 209 createdAt 210 expiresAt 211} 212 ${f} 213${g.Bf}`},19320:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(49301).C},19796:(e,t,r)=>{"use strict";r.d(t,{Jx:()=>g,UK:()=>f});var n=r(93030),a=r(55834);let i=(0,n.J1)` 214 fragment PairEventProductDetails on PairEventProductDetails { 215 duration 216 bufferBefore 217 bufferAfter 218 isPreconfirmed 219 defaultLocation 220 availabilitySettingId 221} 222 `,o=(0,n.J1)` 223 fragment PublicGroupEventSetItem on PublicGroupEventSetItem { 224 calendarEventId 225 startDate 226 endDate 227 isAvailable 228} 229 `,l=(0,n.J1)` 230 fragment PublicGroupEventSet on PublicGroupEventSet { 231 id 232 items { 233 ...PublicGroupEventSetItem 234 } 235} 236 ${o}`,d=(0,n.J1)` 237 fragment GroupEventProductDetails on GroupEventProductDetails { 238 duration 239 maxParticipantCount 240 description 241 publicGroupEventSet { 242 ...PublicGroupEventSet 243 } 244 defaultLocation 245} 246 ${l}`,s=(0,n.J1)` 247 fragment PairEventBundleProductDetails on PairEventBundleProductDetails { 248 eventDuration 249 eventCount 250 billingMode 251 isClientSchedulingDisabled 252 defaultLocation 253 availabilitySettingId 254} 255 `,c=(0,n.J1)` 256 fragment DigitalItemProductDetails on DigitalItemProductDetails { 257 variant 258 uploadedFiles { 259 ...UploadedFile 260 } 261} 262 ${a.Zx}`,u=(0,n.J1)` 263 fragment CourseProductDetails on CourseProductDetails { 264 courseId 265} 266 `,p=(0,n.J1)` 267 fragment MembershipProductDetails on MembershipProductDetails { 268 membershipId 269} 270 `,m=(0,n.J1)` 271 fragment GroupProgramProductDetails on GroupProgramProductDetails { 272 groupProgramId 273 defaultLocation 274} 275 `,f=(0,n.J1)` 276 fragment Product on Product { 277 id 278 revision 279 type 280 title 281 iconImage { 282 ...UploadedFile 283 } 284 thumbnailImage { 285 ...UploadedFile 286 } 287 deletedAt 288 pairEvent { 289 ...PairEventProductDetails 290 } 291 groupEvent { 292 ...GroupEventProductDetails 293 } 294 pairEventBundle { 295 ...PairEventBundleProductDetails 296 } 297 digitalItem { 298 ...DigitalItemProductDetails 299 } 300 course { 301 ...CourseProductDetails 302 } 303 membership { 304 ...MembershipProductDetails 305 } 306 groupProgram { 307 ...GroupProgramProductDetails 308 } 309} 310 ${a.Zx} 311${i} 312${d} 313${s} 314${c} 315${u} 316${p} 317${m}`,g=(0,n.J1)`
318 fragment PaymentPlanProductAccessDetails on PaymentPlanProductAccessDetails { 319 isAllowedToAccess 320 isProductPaid 321 lastUnpaidInvoiceId 322} 323 `},19877:(e,t,r)=>{"use strict";r.d(t,{S:()=>a});var n=r(93030);let a=(0,n.J1)` 324 fragment SimplePageInfo on SimplePageInfo { 325 index 326 size 327 hasNextPage 328 hasPreviousPage 329 totalSize 330 totalPages 331} 332 `},20610:(e,t,r)=>{"use strict";r.d(t,{jt:()=>A,op:()=>y,pe:()=>E,wK:()=>b});var n=r(93030),a=r(55834),i=r(17111),o=r(84234),l=r(19877);let d=(0,n.J1)` 333 fragment BundleRequestedDetails on BundleRequestedDetails { 334 timestamp 335 message 336} 337 `,s=(0,n.J1)` 338 fragment BundleUpdatedDetails on BundleUpdatedDetails { 339 timestamp 340 source 341 message 342} 343 `,c=(0,n.J1)` 344 fragment BundleCancelledDetails on BundleCancelledDetails { 345 timestamp 346 source 347 message 348} 349 `,u=(0,n.J1)` 350 fragment BundleRequestEvent on BundleRequestEvent { 351 id 352 type 353 timestamp 354 message 355} 356 `,p=(0,n.J1)` 357 fragment BundleCalendarEventParticipantUserSnapshot on BundleCalendarEventParticipantUserSnapshot { 358 id 359} 360 `,m=(0,n.J1)` 361 fragment BundleCalendarEventParticipantSnapshot on BundleCalendarEventParticipantSnapshot { 362 user { 363 ...BundleCalendarEventParticipantUserSnapshot 364 } 365 type 366 state 367} 368 ${p}`,f=(0,n.J1)` 369 fragment BundleCalendarEventSnapshot on BundleCalendarEventSnapshot { 370 id 371 type 372 state 373 startDate 374 endDate 375 duration 376 participants { 377 ...BundleCalendarEventParticipantSnapshot 378 } 379} 380 ${m}`,g=(0,n.J1)` 381 fragment BundleUpdateEvent on BundleUpdateEvent { 382 id 383 type 384 source 385 timestamp 386 message 387 calendarEventsBefore { 388 ...BundleCalendarEventSnapshot 389 } 390 calendarEventsAfter { 391 ...BundleCalendarEventSnapshot 392 } 393} 394 ${f}`,v=(0,n.J1)` 395 fragment BundleFinishEvent on BundleRequestEvent { 396 id 397 type 398 timestamp 399} 400 `,h=(0,n.J1)` 401 fragment BundleCancelEvent on BundleCancelEvent { 402 id 403 type 404 timestamp 405 source 406 message 407} 408 `,I=(0,n.J1)` 409 fragment BundleEvent on BundleEvent { 410 id 411 type 412 timestamp 413 ...BundleRequestEvent 414 ...BundleUpdateEvent 415 ...BundleFinishEvent 416 ...BundleCancelEvent 417} 418 ${u} 419${g} 420${v} 421${h}`,E=(0,n.J1)` 422 fragment Bundle on Bundle { 423 id 424 state 425 billingMode 426 clientUserId 427 clientUser { 428 id 429 name 430 avatar { 431 ...UploadedFile 432 } 433 email 434 } 435 expertUserId 436 expertUser { 437 id 438 name 439 expertDetails { 440 id 441 slug 442 customDomain 443 } 444 avatar { 445 ...UploadedFile 446 } 447 } 448 title 449 calendarEventDurationMs 450 calendarEventsIncludedCount 451 calendarEventsNeedActionCount 452 isClientSchedulingDisabled 453 description 454 requested { 455 ...BundleRequestedDetails 456 } 457 updated { 458 ...BundleUpdatedDetails 459 } 460 cancelled { 461 ...BundleCancelledDetails 462 } 463 events { 464 ...BundleEvent 465 } 466 calendarEventsUsedOnCount 467 calendarEventsFinishedCount 468 nextConfirmedCalendarEvent { 469 ...CalendarEventWithoutBundle 470 } 471 order { 472 ...Order 473 } 474 version 475 review { 476 id 477 } 478 baseAvailabilitySettingId 479} 480 ${a.Zx} 481${d} 482${s} 483${c} 484${I} 485${i.l} 486${o.fg}`,b=(0,n.J1)` 487 fragment BundleWithUsageSummary on Bundle { 488 ...Bundle 489 usageSummary { 490 state 491 periodStart 492 periodEnd 493 grantedCount 494 availableCount 495 } 496} 497 ${E}`,A=(0,n.J1)` 498 fragment BundlesPage on BundlesPage { 499 list { 500 ...BundleWithUsageSummary 501 } 502 pageInfo { 503 ...SimplePageInfo 504 } 505} 506 ${b} 507${l.S}`,y=(0,n.J1)` 508 fragment BundleWithCalendarEvents on Bundle { 509 ...BundleWithUsageSummary 510 entitlementPeriods { 511 id 512 periodStart 513 periodEnd 514 grantedCount 515 usedCount 516 isValid 517 } 518 calendarEvents { 519 ...CalendarEventWithoutBundle 520 bundleEntitlementPeriodId 521 } 522} 523 ${b} 524${i.l}`},25372:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,d:()=>a});var n=r(29017);let a=(0,r(5776).forwardRef)((e,t)=>{let{fullHeight:r=!1,disableVerticalMargin:a=!1,disableHorizontalMargin:i=!1,className:o,children:l}=e,d=i?"0px":"24px";return(0,n.Y)("section",{ref:t,className:o,css:{display:"flex",flexDirection:"column",marginLeft:d,marginRight:d,...!a&&{marginTop:40,marginBottom:40},...r&&{flex:"1",minHeight:0}},children:l})}),i=a},26509:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(55567),a=r(47310);function i(e){if(e)return(0,n.A)(new Date(e),"PP p",{locale:(0,a.A)()})}},26955:(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var n=r(93030),a=r(17111),i=r(20610);let o=(0,n.J1)` 525 fragment CalendarEvent on CalendarEvent { 526 ...CalendarEventWithoutBundle 527 bundle {
528 ...Bundle 529 } 530} 531 ${a.l} 532${i.pe}`},28243:(e,t,r)=>{"use strict";r.d(t,{$D:()=>f,AC:()=>y,D:()=>P,Lf:()=>g,O:()=>m,T_:()=>h,YV:()=>D,ZU:()=>I,cN:()=>p,g$:()=>C,hm:()=>b,i_:()=>x,mY:()=>u});var n=r(93030),a=r(55834),i=r(95848),o=r(46205),l=r(48950);let d={},s=(0,n.J1)` 533 fragment ReviewFeaturable on ReviewFeaturable { 534 id 535 clientName 536 clientHeadline 537 text 538 rating 539 isFeatured 540} 541 `,c=(0,n.J1)` 542 fragment ReviewFeaturableWithExpert on ReviewFeaturable { 543 id 544 clientName 545 clientHeadline 546 text 547 rating 548 postImage 549 expertUser { 550 id 551 expertDetails { 552 id 553 slug 554 customDomain 555 } 556 avatar { 557 ...UploadedFile 558 } 559 } 560} 561 ${a.Zx}`,u=(0,n.J1)` 562 fragment ReviewSubmitted on ReviewSubmitted { 563 id 564 calendarEventId 565 groupProgramId 566 qnaId 567 bundleId 568 courseId 569 membershipId 570 digitalItemId 571 clientUserId 572 expertUserId 573 clientName 574 clientHeadline 575 rating 576 publicMessage 577 privateMessage 578 platformMessage 579 isFeatured 580} 581 `,p=(0,n.J1)` 582 query ReviewsFeaturableCountByExpertUserSlug($userSlug: String!, $featuredOnly: Boolean!) { 583 reviewsCount: reviewsFeaturableCountByExpertUserSlug( 584 userSlug: $userSlug 585 featuredOnly: $featuredOnly 586 ) 587} 588 `;function m(e){let t={...d,...e};return i.I(p,t)}let f=(0,n.J1)` 589 query ReviewsFeaturableByExpertUserSlug($userSlug: String!, $featuredOnly: Boolean!, $offset: Int, $limit: Int) { 590 reviews: reviewsFeaturableByExpertUserSlug( 591 userSlug: $userSlug 592 featuredOnly: $featuredOnly 593 offset: $offset 594 limit: $limit 595 ) { 596 ...ReviewFeaturable 597 } 598} 599 ${s}`;function g(e){let t={...d,...e};return i.I(f,t)}let v=(0,n.J1)` 600 query ReviewSubmitted($id: UUID, $clientUserId: UUID, $expertUserId: UUID, $calendarEventId: UUID, $groupProgramId: UUID, $qnaId: UUID, $bundleId: UUID, $courseId: UUID, $membershipId: UUID, $digitalItemId: UUID) { 601 reviewSubmitted: reviewSubmitted( 602 id: $id 603 clientUserId: $clientUserId 604 expertUserId: $expertUserId 605 calendarEventId: $calendarEventId 606 groupProgramId: $groupProgramId 607 qnaId: $qnaId 608 bundleId: $bundleId 609 courseId: $courseId 610 membershipId: $membershipId 611 digitalItemId: $digitalItemId 612 ) { 613 ...ReviewSubmitted 614 } 615} 616 ${u}`;function h(e){let t={...d,...e};return i.I(v,t)}function I(e){let t={...d,...e};return o._(v,t)}let E=(0,n.J1)` 617 query ReviewsTopCount($expertSlug: String!) { 618 reviewsTopCount: reviewsTopCountByExpertUserSlug(expertUserSlug: $expertSlug) 619} 620 `;function b(e){let t={...d,...e};return i.I(E,t)}let A=(0,n.J1)` 621 query FeaturedReview($reviewId: UUID!) { 622 featuredReview(reviewId: $reviewId) { 623 ...ReviewFeaturableWithExpert 624 } 625} 626 ${c}`;function y(e){let t={...d,...e};return i.I(A,t)}let $=(0,n.J1)` 627 query IsUserAllowedToLeaveReviewByEmail($email: String!) { 628 isAllowedToLeaveReview: isUserAllowedToLeaveReviewByEmail(email: $email) 629} 630 `;function C(e){let t={...d,...e};return o._($,t)}let w=(0,n.J1)` 631 mutation SubmitReview($id: UUID, $clientUserId: UUID, $expertUserId: UUID, $calendarEventId: UUID, $groupProgramId: UUID, $qnaId: UUID, $bundleId: UUID, $courseId: UUID, $membershipId: UUID, $digitalItemId: UUID, $rating: Float!, $publicMessage: String, $privateMessage: String, $platformMessage: String) { 632 reviewSubmitted: submitReview( 633 id: $id 634 clientUserId: $clientUserId 635 expertUserId: $expertUserId 636 calendarEventId: $calendarEventId 637 groupProgramId: $groupProgramId 638 qnaId: $qnaId 639 bundleId: $bundleId 640 courseId: $courseId 641 membershipId: $membershipId 642 digitalItemId: $digitalItemId 643 rating: $rating 644 publicMessage: $publicMessage 645 privateMessage: $privateMessage 646 platformMessage: $platformMessage 647 ) { 648 ...ReviewSubmitted 649 } 650} 651 ${u}`;function P(e){let t={...d,...e};return l.n(w,t)}let U=(0,n.J1)` 652 mutation UpdateReviewIsFeatured($reviewId: UUID!, $isFeatured: Boolean!) { 653 review: updateReviewIsFeatured(reviewId: $reviewId, isFeatured: $isFeatured) { 654 ...ReviewFeaturable 655 } 656} 657 ${s}`;function x(e){let t={...d,...e};return l.n(U,t)}let O=(0,n.J1)` 658 mutation DeleteReview($id: UUID!) {
659 deleteReview(id: $id) 660} 661 `;function D(e){let t={...d,...e};return l.n(O,t)}},28265:(e,t,r)=>{"use strict";r.d(t,{q0:()=>Y,uQ:()=>R,Jl:()=>S,AL:()=>F,lp:()=>k,xP:()=>J});var n=r(93030),a=r(19796),i=r(19877),o=r(42359);let l=(0,n.J1)` 662 fragment SubscribeToSegmentAutomationAction on SubscribeToSegmentAutomationAction { 663 type 664 segmentId 665} 666 `,d=(0,n.J1)` 667 fragment UnsubscribeFromSegmentAutomationAction on UnsubscribeFromSegmentAutomationAction { 668 type 669 segmentId 670} 671 `,s=(0,n.J1)` 672 fragment StartEmailAutomationWorkflowExecutionAutomationAction on StartEmailAutomationWorkflowExecutionAutomationAction { 673 type 674 emailAutomationId 675} 676 `,c=(0,n.J1)` 677 fragment StopEmailAutomationWorkflowExecutionAutomationAction on StopEmailAutomationWorkflowExecutionAutomationAction { 678 type 679 emailAutomationId 680} 681 `,u=(0,n.J1)` 682 fragment GiveAccessToCourseOfferingAutomationAction on GiveAccessToCourseOfferingAutomationAction { 683 type 684 offeringId 685} 686 `,p=(0,n.J1)` 687 fragment GiveAccessToMembershipOfferingAutomationAction on GiveAccessToMembershipOfferingAutomationAction { 688 type 689 offeringId 690} 691 `,m=(0,n.J1)` 692 fragment GiveAccessToGroupProgramOfferingAutomationAction on GiveAccessToGroupProgramOfferingAutomationAction { 693 type 694 offeringId 695} 696 `,f=(0,n.J1)` 697 fragment GiveAccessToDigitalItemOfferingAutomationAction on GiveAccessToDigitalItemOfferingAutomationAction { 698 type 699 offeringId 700} 701 `,g=(0,n.J1)` 702 fragment AutomationAction on AutomationAction { 703 type 704 ...SubscribeToSegmentAutomationAction 705 ...UnsubscribeFromSegmentAutomationAction 706 ...StartEmailAutomationWorkflowExecutionAutomationAction 707 ...StopEmailAutomationWorkflowExecutionAutomationAction 708 ...GiveAccessToCourseOfferingAutomationAction 709 ...GiveAccessToMembershipOfferingAutomationAction 710 ...GiveAccessToGroupProgramOfferingAutomationAction 711 ...GiveAccessToDigitalItemOfferingAutomationAction 712} 713 ${l} 714${d} 715${s} 716${c} 717${u} 718${p} 719${m} 720${f}`,v=(0,n.J1)` 721 fragment OfferingPriceSingle on OfferingPriceSingle { 722 sum 723 currency 724} 725 `,h=(0,n.J1)` 726 fragment OfferingPriceInstallments on OfferingPriceInstallments { 727 sum 728 currency 729 cycle 730 installments 731} 732 `,I=(0,n.J1)` 733 fragment OfferingPriceSubscription on OfferingPriceSubscription { 734 sum 735 currency 736 cycle 737} 738 `,E=(0,n.J1)` 739 fragment OfferingPriceSingleFlexibleSuggested on OfferingPriceSingleFlexibleSuggested { 740 sum 741} 742 `,b=(0,n.J1)` 743 fragment OfferingPriceSingleFlexible on OfferingPriceSingleFlexible { 744 minSum 745 suggested { 746 ...OfferingPriceSingleFlexibleSuggested 747 } 748 currency 749} 750 ${E}`,A=(0,n.J1)` 751 fragment OfferingPriceCompareAt on OfferingPriceCompareAt { 752 single { 753 ...OfferingPriceSingle 754 } 755 installments { 756 ...OfferingPriceInstallments 757 } 758 subscription { 759 ...OfferingPriceSubscription 760 } 761} 762 ${v} 763${h} 764${I}`,y=(0,n.J1)` 765 fragment OfferingPrice on OfferingPrice { 766 free 767 single { 768 ...OfferingPriceSingle 769 } 770 installments { 771 ...OfferingPriceInstallments 772 } 773 subscription { 774 ...OfferingPriceSubscription 775 } 776 singleFlexible { 777 ...OfferingPriceSingleFlexible 778 } 779 compareAt { 780 ...OfferingPriceCompareAt 781 } 782} 783 ${v} 784${h} 785${I} 786${b} 787${A}`,$=(0,n.J1)` 788 fragment OfferingUpsell on OfferingUpsell { 789 offeringId 790 title 791 subtitle 792} 793 `,C=(0,n.J1)` 794 fragment OfferingProfileCardIconAppearance on OfferingProfileCardIconAppearance { 795 enabled 796} 797 `,w=(0,n.J1)` 798 fragment OfferingProfileCardThumbnailAppearance on OfferingProfileCardThumbnailAppearance { 799 enabled 800} 801 `,P=(0,n.J1)` 802 fragment OfferingProfileCardPriceAppearance on OfferingProfileCardPriceAppearance { 803 enabled 804} 805 `,U=(0,n.J1)` 806 fragment OfferingProfileCardSubtitleAppearance on OfferingProfileCardSubtitleAppearance { 807 enabled 808} 809 `,x=(0,n.J1)` 810 fragment OfferingProfileCardButtonAppearance on OfferingProfileCardButtonAppearance { 811 enabled 812 text 813} 814 `,O=(0,n.J1)` 815 fragment OfferingProfileCardAppearance on OfferingProfileCardAppearance { 816 variant 817 icon { 818 ...OfferingProfileCardIconAppearance 819 } 820 thumbnail { 821 ...OfferingProfileCardThumbnailAppearance 822 } 823 price { 824 ...OfferingProfileCardPriceAppearance 825 } 826 subtitle { 827 ...OfferingProfileCardSubtitleAppearance 828 } 829 button { 830 ...OfferingProfileCardButtonAppearance 831 } 832} 833 ${C} 834${w} 835${P} 836${U} 837${x}`,D=(0,n.J1)` 838 fragment OfferingAppearance on OfferingAppearance { 839 profileCard { 840 ...OfferingProfileCardAppearance 841 } 842} 843 ${O}`,S=(0,n.J1)` 844 fragment Offering on Offering { 845 id 846 revision 847 title 848 prePurchaseMessage 849 postPurchaseMessage 850 price { 851 ...OfferingPrice 852 } 853 isPrivate 854 isPublished 855 customPageId 856 formId 857 isArchived 858 isAutoCreated 859 deletedAt 860 product { 861 ...Product 862 } 863 upsell { 864 ...OfferingUpsell 865 } 866 customRoutePath 867 appearance { 868 ...OfferingAppearance 869 } 870} 871 ${y} 872${a.UK} 873${$} 874${D}`,J=(0,n.J1)` 875 fragment OfferingsPage on OfferingsPage { 876 list { 877 ...Offering 878 } 879 pageInfo { 880 ...SimplePageInfo 881 } 882} 883 ${S} 884${i.S}`,k=(0,n.J1)` 885 fragment OfferingWithCustomPage on Offering { 886 ...Offering 887 customPage { 888 ...CustomPage 889 } 890} 891 ${S} 892${o.Xz}`,B=(0,n.J1)` 893 fragment OfferingAutomations on OfferingAutomations { 894 onOrderSubmittedActions { 895 ...AutomationAction 896 } 897} 898 ${g}`,Y=(0,n.J1)` 899 fragment OfferingForEditing on Offering { 900 ...OfferingWithCustomPage 901 automations { 902 ...OfferingAutomations 903 } 904 isPairEventBundleBillingModeLocked 905} 906 ${k} 907${B}`,R=(0,n.J1)` 908 fragment OfferingForSelect on Offering { 909 id 910 revision 911 title 912 product { 913 id 914 revision 915 type 916 } 917} 918 `,F=(0,n.J1)` 919 fragment OfferingRouteDetails on OfferingRouteDetails { 920 offeringId 921 userSlug 922 customDomain 923 customRoutePath 924} 925 `},30315:(e,t,r)=>{"use strict";r.d(t,{Bf:()=>p,hu:()=>a});var n=r(93030);let a=(0,n.J1)` 926 fragment CalendarEventInfo on CalendarEventInfo { 927 expertSlug 928 expertCustomDomain 929 participantCount 930} 931 `,i=(0,n.J1)` 932 fragment CalendarEventSnapshot on CalendarEventSnapshot { 933 id 934 type 935 state 936 startDate 937 endDate 938 duration 939} 940 `,o=(0,n.J1)` 941 fragment CalendarEventCreateEvent on CalendarEventCreateEvent { 942 id 943 type 944 timestamp 945 sourceUserId 946 message 947 snapshot { 948 ...CalendarEventSnapshot 949 } 950} 951 ${i}`,l=(0,n.J1)` 952 fragment CalendarEventUpdateEvent on CalendarEventUpdateEvent { 953 id 954 type 955 timestamp 956 sourceUserId 957 message 958 snapshot { 959 ...CalendarEventSnapshot 960 } 961} 962 ${i}`,d=(0,n.J1)` 963 fragment CalendarEventScheduleEvent on CalendarEventScheduleEvent { 964 id 965 type 966 timestamp 967 sourceUserId 968 message 969 snapshot { 970 ...CalendarEventSnapshot 971 } 972} 973 ${i}`,s=(0,n.J1)` 974 fragment CalendarEventConfirmEvent on CalendarEventConfirmEvent { 975 id 976 type 977 timestamp 978 sourceUserId 979 message 980 snapshot { 981 ...CalendarEventSnapshot 982 } 983} 984 ${i}`,c=(0,n.J1)` 985 fragment CalendarEventCancelEvent on CalendarEventCancelEvent { 986 id 987 type 988 timestamp 989 sourceUserId 990 message 991 snapshot { 992 ...CalendarEventSnapshot 993 } 994} 995 ${i}`,u=(0,n.J1)` 996 fragment CalendarEventFinishEvent on CalendarEventFinishEvent { 997 id 998 type 999 timestamp 1000 sourceUserId 1001 message 1002 snapshot { 1003 ...CalendarEventSnapshot 1004 } 1005} 1006 ${i}`,p=(0,n.J1)` 1007 fragment CalendarEventEvent on CalendarEventEvent { 1008 id 1009 type 1010 timestamp 1011 snapshot { 1012 ...CalendarEventSnapshot 1013 } 1014 ...CalendarEventCreateEvent 1015 ...CalendarEventUpdateEvent 1016 ...CalendarEventScheduleEvent 1017 ...CalendarEventConfirmEvent 1018 ...CalendarEventCancelEvent 1019 ...CalendarEventFinishEvent 1020} 1021 ${i} 1022${o} 1023${l} 1024${d} 1025${s} 1026${c} 1027${u}`},31738:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(92453).ii},33417:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(29017),a=r(50934),i=r(5776),o=r(99464);let l=(0,i.forwardRef)(({errors:e,className:t},r)=>{let l=(0,i.useMemo)(()=>{let t=[];
1027return e.forEach(e=>{e&&t.push(...(0,a.t1)(e))}),t},[e]);return(0,n.Y)(o.A,{ref:r,errors:l,className:t})})},34269:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(50934),a=r(5776),i=r(93801),o=r(79388);let l=function(){let e=(0,i.zd)();return(0,a.useCallback)(t=>{(0,n.t1)(t).forEach(t=>{t instanceof o.m||e.logAndReport(t)})},[e])}},35582:(e,t,r)=>{"use strict";function n(){let e=[];try{e.push(Intl.DateTimeFormat().resolvedOptions().locale)}catch(e){console.error("Failed to get locale from Intl.DateTimeFormat",e)}try{e.push(...navigator.languages)}catch(e){console.error("Failed to get locale from navigator.languages",e)}let t=e[0];return"en-US"===t||"en"===t?"en-US":"en-GB"===t||"en-CA"===t||"en-AU"===t||"en-NZ"===t||"en-IE"===t||"en-IN"===t||"en-ZA"===t?"en-CA":"en-GB"}r.d(t,{A:()=>a,P:()=>n});let a=n},38072:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>ec});var n=r(29017),a=r(23617),i=r(85705),o=r(26855),l=r(64110),d=r(93155),s=r(24688),c=r.n(s),u=r(76907),p=r(40272),m=r(96703),f=r(49927),g=r(73515),v=r(37975),h=r(92276),I=r(71311),E=r(6586),b=r(25372),A=r(48013),y=r(37187),$=r(97224),C=r(79741),w=r(65311),P=r(5776),U=r(53333),x=r(65754),O=r(75051);let D=x.Ik({id:x.Yj().nullable(),status:x.k5(["IDLE","QUEUED","RUNNING","SAVED","DELIVERING","SUCCEEDED","FAILED"]),errorCode:x.Yj().nullable()}),S=new Set(["QUEUED","RUNNING","SAVED","DELIVERING"]);function J(e,t=!0,r){let n=(0,U.m)(),a=(0,P.useRef)(r),i=(0,P.useRef)(null),[o,l]=(0,P.useState)();(0,P.useEffect)(()=>{a.current=r},[r]);let[d,s]=(0,P.useState)(),[c,u]=(0,P.useState)(null),[p,f]=(0,P.useState)(),[g,v]=(0,P.useState)(),[h,I]=(0,P.useState)(),E=(0,P.useRef)(null),b=(0,P.useRef)(()=>{}),[A,y]=(0,P.useState)(!1),[$,C]=(0,P.useState)(!1),w=(0,P.useRef)(!1),x=(0,P.useRef)(!1),k=(0,P.useRef)(!1),B=(0,P.useRef)(0),Y=(0,P.useRef)(null),R=(0,O.w_)({href:`/api/calls/${encodeURIComponent(e)}/follow-up/generation`}),F=(0,P.useCallback)(t=>{n.writeQuery({query:m.EB,variables:{callId:e},data:{callFollowUp:t}}),s(t)},[e,n]),H=(0,P.useCallback)(async t=>{if(!w.current)return;let r=B.current;if(k.current&&(S.has(t.status)||"IDLE"!==t.status&&(t.id!==Y.current||t.status!==E.current?.status))&&(k.current=!1,v(void 0)),(S.has(t.status)||"IDLE"===t.status)&&u(t),"FAILED"===t.status&&t.id!==Y.current?f(Error("CHAT_DELIVERY_FAILED"===t.errorCode?"Your follow-up was saved, but its chat card could not be added. Try again to add the card.":"Generation could not finish. You can try again.")):"FAILED"!==t.status&&f(void 0),("SUCCEEDED"===t.status||"FAILED"===t.status)&&t.id!==Y.current){C(!0);try{let o=await n.query({query:m.EB,variables:{callId:e},fetchPolicy:"no-cache"});if(w.current&&r===B.current){if(Y.current=t.id,o.data.callFollowUp){let e=o.data.callFollowUp,r=a.current?.(e,i.current===t.id);!1===r?l(e):(l(void 0),F(e))}i.current=null}}finally{w.current&&r===B.current&&C(!1)}}w.current&&r===B.current&&(E.current=t,u(e=>e?.id===t.id&&e.status===t.status&&e.errorCode===t.errorCode?e:t))},[e,n,F]);(0,P.useEffect)(()=>{if(!t)return;w.current=!0;let e=!1,r=0,n=new AbortController,a=!1,i=async()=>{if(e||a)return;a=!0;let t=B.current,i=!1;try{let r=await fetch(R,{credentials:"include",cache:"no-store",signal:n.signal});if(!r.ok)throw Error(401===r.status?"Sign in again to check this follow-up.":404===r.status?"Generation is unavailable for this session or you no longer have access.":"Could not check generation status. Retry to check before editing.");let a=D.parse(await r.json());e||x.current||t!==B.current||(await H(a),I(void 0))}catch(r){i=!0,e||t!==B.current||I(r instanceof Error?r:Error("Could not check generation status."))}finally{a=!1;let e=E.current&&S.has(E.current.status);r=Date.now()+(i?15e3:e?3e3:6e4)}};b.current=()=>{i()};let o=()=>{i()};window.addEventListener("focus",o);let l=setInterval(()=>{Date.now()>=r&&i()},3e3);return i(),()=>{e=!0,window.removeEventListener("focus",o),b.current=()=>{},B.current+=1,w.current=!1,n.abort(),clearInterval(l)}},[H,t,R]);let G=(0,P.useCallback)(async(e,t=!1)=>{if(x.current)return!1;x.current=!0,B.current+=1,y(!0),v(void 0),k.current=!1;try{let r=await fetch(R,{method:"POST",credentials:"include",cache:"no-store",headers:{"Content-Type":"application/json"},body:JSON.stringify({templateId:e,rememberForClient:t})});if(!r.ok){if([400,401,404,409].includes(r.status))return i.current=null,v(Error(401===r.
1027status?"Sign in again to generate a follow-up.":404===r.status?"Generation is unavailable for this session or you no longer have access.":"Cannot start generation. Check that a transcript is available, the follow-up is unshared, and no generation with different settings is in progress.")),!1;throw Error("Could not start generation")}let n=D.parse(await r.json());return B.current+=1,i.current=n.id,await H(n),!0}catch{return k.current=!0,w.current&&v(Error("Could not confirm generation started. Checking its statusâ¦")),!1}finally{x.current=!1,w.current&&(y(!1),b.current())}},[H,R]),T=A||null!==c&&S.has(c.status),z=$||t&&null===c&&!h;return{generate:G,error:g??h??p,checking:z,statusUnavailable:!!h,retryStatus:()=>b.current(),blocked:T||z||!!h||!!o,conflict:!!o,loadLatest:()=>{!o||T||z||h||(a.current?.(o,!0),F(o),l(void 0))},completed:d,loading:T,reset:()=>{v(void 0),f(void 0)}}}let k=e=>{let{calendarEventId:t,authUserId:r}=e,i=(0,w.dh)(),{data:o}=(0,p.sC)({variables:{calendarEventId:t},fetchPolicy:"cache-first"}),l=o?.calendarEvent?.participants.some(e=>e.userId===r&&e.type===f.G7.Expert)??!1,{generate:d,error:s,loading:c,blocked:u,checking:m,statusUnavailable:g,retryStatus:v}=J(t,l),h=(0,P.useCallback)(async()=>{await d()&&i.enqueueSnackbar("Your request was accepted. You can leave this page and come back.",{variant:"info"})},[d,i]);return(0,n.FD)("div",{css:(0,a.AH)("display:flex;flex-direction:column;align-items:flex-start;gap:16px;"),children:[(0,n.Y)(C.A,{children:"This session doesn't have a follow-up yet."}),l&&(0,n.FD)(n.FK,{children:[(0,n.Y)(C.A,{size:"sm",children:"Generate one from the session transcript. You can review and edit it before sharing with your client."}),(0,n.Y)(y.Ay,{onClick:h,disabled:u,children:m?"Checking statusâ¦":c&&!g?"Generatingâ¦":"Generate follow-up"}),g&&(0,n.Y)(y.Ay,{onClick:v,children:"Retry status check"}),s&&(0,n.Y)(C.A,{role:"alert",children:s.message})]})]})};var B=r(26509),Y=r(1998),R=r(48541);function F({callId:e,disabled:t=!1}){let[r,a]=(0,P.useState)(!1),i=(0,P.useRef)(!1),{enqueueSnackbar:o}=(0,w.dh)(),l=async()=>{if(!i.current){i.current=!0,a(!0);try{let t=Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC",r=await fetch((0,O.w_)({href:`/api/calls/${encodeURIComponent(e)}/follow-up/pdf?timeZone=${encodeURIComponent(t)}`}),{credentials:"include",cache:"no-store"});if(!r.ok||!r.headers.get("content-type")?.includes("application/pdf"))throw Error("PDF download failed");let n=URL.createObjectURL(await r.blob()),a=document.createElement("a");a.href=n,a.download=function(e,t){let r=`session-summary-${t}.pdf`;if(!e)return r;let n=/(?:^|;)\s*filename\*=UTF-8''([^;]+)/i.exec(e)?.[1],a=/(?:^|;)\s*filename="([^"]+)"/i.exec(e)?.[1];try{let e=n?decodeURIComponent(n.trim()):a;return e&&e.endsWith(".pdf")&&!/[\\/]/.test(e)&&!Array.from(e).some(e=>32>e.charCodeAt(0)||127===e.charCodeAt(0))?e:r}catch{return r}}(r.headers.get("content-disposition"),e),document.body.appendChild(a),a.click(),a.remove(),window.setTimeout(()=>URL.revokeObjectURL(n),6e4)}catch{o("Could not download the PDF. Please try again.",{variant:"error"})}finally{i.current=!1,a(!1)}}};return(0,n.Y)(y.Ay,{type:"button",variant:"secondary-gray",disabled:t||r,onClick:l,startIcon:(0,n.Y)(R.A,{}),children:r?"Preparing PDFâ¦":"Download PDF"})}let H=e=>{let{followUp:t}=e,r=(0,d.A)(),i=t.sections.filter(e=>!e.isPrivate&&!!e.text.trim());return(0,n.FD)("div",{css:(0,a.AH)("display:flex;flex-direction:column;gap:24px;"),children:[(0,n.FD)("div",{children:[(0,n.Y)(C.A,{variant:"text",size:"xl",weight:"semibold",children:"Session follow-up"}),null!=t.sharedAt&&(0,n.FD)(C.A,{size:"sm",color:r.brand.vars.colors.gray["500"],css:(0,a.AH)("margin-top:2px;"),children:["Shared ",(0,B.Z)(t.sharedAt)]})]}),i.length>0&&(0,n.Y)("div",{children:(0,n.Y)(F,{callId:t.callId})}),0===i.length?(0,n.Y)(C.A,{color:r.brand.vars.colors.gray["500"],children:"There's nothing shared here yet."}):i.map(e=>(0,n.FD)("div",{children:[(0,n.Y)(C.A,{variant:"text",size:"md",weight:"semibold",children:e.title}),(0,n.Y)(Y.A,{value:e.text,css:(0,a.AH)` 1028 margin-top: 4px; 1029 /* The shared markdown styles add padding-top to every block 1030 after the first; zero it so section spacing stays tight. */ 1031 & > p { 1032 margin: 0 0 8px; 1033 padding-top: 0; 1034 } 1035 & > p:last-child { 1036 margin-bottom: 0; 1037 } 1038 & ol, 1039 & ul { 1040 margin: 0 0 8px; 1041 padding-top: 0; 1042 padding-left: 22px; 1043 } 1044 & li { 1045 margin-bottom: 4px; 1046 } 1047 `})]},e.key))]})};var G=r(44204),T=r(15779),z=r(34269),M=r(90341),q=r(33417),N=r(68485),L=r(48718),W=r(15063),Q=r(82934),_=r(84226),j=r(81771),X=r(72543),Z=r(83015),V=r(31738),K=r(19320),ee=r(13382);function et({currentTemplateId:e,onClose:t,onGenerate:r,generating:i,blocked:o=!1,error:l}){let{data:d,loading:s,error:c}=(0,m.zT)({fetchPolicy:"network-only"}),[u,p]=(0,P.useState)(null),[f,g]=(0,P.useState)(!1),v=d?.followUpTemplates??[],h=v.find(t=>
1047t.id===(u??e))?.id??v.find(e=>e.isDefault)?.id??"";return(0,n.FD)(Z.A,{open:!0,onClose:t,children:[(0,n.Y)(ee.A,{title:"Regenerate this follow-up?",description:"This replaces your current draft, including unsaved edits.",onClose:t}),(0,n.Y)(K.A,{children:(0,n.FD)("div",{css:(0,a.AH)("display:flex;flex-direction:column;gap:16px;"),children:[(0,n.Y)(Q.A,{select:!0,id:"regenerate-follow-up-template",label:"Template",value:h,disabled:s||i,onChange:e=>p(e.target.value),children:v.map(e=>(0,n.FD)(_.A,{value:e.id,children:[e.name,e.isDefault?" (default)":""]},e.id))}),(0,n.Y)(j.A,{control:(0,n.Y)(X.A,{checked:f,disabled:i,onChange:e=>g(e.target.checked)}),label:"Use this template for this client's future sessions"}),(0,n.Y)(C.A,{size:"sm",children:"Leave unchecked to change only this follow-up. Your client preference changes only after successful generation."}),(0,n.Y)(q.A,{errors:[c]}),l&&(0,n.Y)(C.A,{role:"alert",children:l.message})]})}),(0,n.Y)(V.A,{primaryButton:(0,n.Y)(y.Ay,{disabled:s||i||o||!h||!!c,onClick:async()=>{await r(h,f)&&t()},children:i?"Generatingâ¦":"Regenerate"}),secondaryButton:(0,n.Y)(y.Ay,{variant:"tertiary-gray",onClick:t,children:"Cancel"})})]})}var er=r(34656);function en(e){return{sections:e.map(e=>({key:e.key,text:e.text}))}}function ea(e){return e.sections.map(e=>({key:e.key,text:e.text}))}let ei=x.Ik({sections:x.YO(x.Ik({key:x.Yj(),text:x.Yj()}))});function eo({sections:e,disabled:t}){let{control:r}=(0,T.xW)();return(0,n.Y)("div",{css:(0,a.AH)("display:flex;flex-direction:column;gap:16px;"),children:e.map((e,i)=>(0,n.FD)("div",{css:(0,a.AH)` 1048 display: flex; 1049 flex-direction: column; 1050 align-items: stretch; 1051 gap: 4px; 1052 `,children:[e.isPrivate&&(0,n.Y)("div",{children:(0,n.Y)(N.Ay,{label:W.jx,color:"warning",size:"sm"})}),(0,n.Y)(L.A,{name:`sections.${i}.text`,control:r,label:e.title,disabled:t,multiline:!0,minRows:3,maxRows:1/0})]},e.key))})}let el=e=>{let{followUp:t}=e,{callId:r}=t,i=(0,w.dh)(),o=(0,z.A)(),l=(0,T.mN)({reValidateMode:"onBlur",resolver:(0,G.u)(ei),defaultValues:en(t.sections)}),{control:d,handleSubmit:s,getValues:c,reset:u}=l,p=JSON.stringify((0,T.FH)({control:d,name:"sections"}))!==JSON.stringify(en(t.sections).sections),[g,{error:v,loading:I}]=(0,m.eT)({onError:o}),[E,{error:b,loading:A}]=(0,m._y)({onError:o}),{generate:U,error:x,loading:O,blocked:D,checking:S,statusUnavailable:k,retryStatus:B,reset:Y,conflict:R,loadLatest:H}=J(r,!0,(0,P.useCallback)((e,r)=>
1052JSON.stringify(c())===JSON.stringify(en(t.sections))||r?(u(en(e.sections)),!0):JSON.stringify(e.sections)===JSON.stringify(t.sections),[t.sections,c,u])),L=(0,P.useCallback)(async e=>{if(D)return;let t=await g({variables:{callId:r,sections:ea(e)}});t&&!t.errors&&(u(e,{keepValues:!0}),i.enqueueSnackbar("Follow-up saved",{variant:"success"}))},[r,D,u,i,g]),W=(0,P.useCallback)(async()=>{if(D)return;let e=c();if(JSON.stringify(e)!==JSON.stringify(en(t.sections))){let t=await g({variables:{callId:r,sections:ea(e)}});if(!t||t.errors)return;u(e,{keepValues:!0})}let n=await E({variables:{callId:r}});n&&!n.errors&&i.enqueueSnackbar("Follow-up shared",{variant:"success"})},[r,t.sections,D,c,u,E,i,g]),{ConfirmDialog:Q,onDialogOpen:_}=(0,M.G)({onConfirm:W}),[j,X]=(0,P.useState)(!1),Z=(0,P.useCallback)(async(e,t)=>{let r=await U(e,t);return r&&i.enqueueSnackbar("Your request was accepted. You can leave this page and come back.",{variant:"info"}),r},[U,i]),V=t.state===f.sI.Draft,K=t.sections.some(e=>e.isPrivate),ee=I||A||D;return(0,n.FD)("div",{children:[(0,n.FD)("div",{css:(0,a.AH)("display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:24px;"),children:[(0,n.Y)(C.A,{variant:"text",size:"xl",weight:"semibold",children:"Session follow-up"}),(0,n.Y)(N.Ay,{label:function(e){switch(e){case f.sI.Draft:return"Draft \xb7 not shared";case f.sI.Shared:return"Shared with client";default:return(0,er.m)(Error(`Unexpected call follow-up state '${e}'`)),"Unknown"}}(t.state),color:V?"gray":"success"}),V&&(0,n.Y)($.Ay,{variant:"link-color",size:"sm",to:h.Ay.expertFollowUpLayout(),css:(0,a.AH)("margin-left:auto;"),children:"Customise sections"})]}),R&&(0,n.FD)("div",{role:"alert",children:[(0,n.Y)(C.A,{children:"A newer follow-up is available. Your unsaved edits have been kept. Load the latest version before saving or sharing."}),(0,n.Y)(y.Ay,{onClick:H,disabled:O||S||k,children:"Discard edits and load latest"})]}),S&&(0,n.Y)(C.A,{role:"status",children:"Checking generation statusâ¦"}),k&&(0,n.Y)(y.Ay,{onClick:B,children:"Retry status check"}),O&&!k&&(0,n.Y)(C.A,{role:"status",children:"Generating your follow-up. You can leave this page and come back."}),(0,n.Y)(T.Op,{...l,children:(0,n.FD)("form",{onSubmit:s(L),children:[(0,n.Y)(eo,{sections:t.sections,disabled:D}),(0,n.Y)(q.A,{errors:[v,b]}),x&&(0,n.Y)(C.A,{role:"alert",children:x.message}),(0,n.FD)("div",{css:(0,a.AH)("display:flex;flex-wrap:wrap;gap:12px;margin-top:24px;"),children:[(0,n.Y)(y.Ay,{type:"submit",disabled:ee,children:"Save"}),(0,n.Y)(F,{callId:r,disabled:ee||p||!t.sections.some(e=>!e.isPrivate&&!!e.text.trim())}),V&&(0,n.Y)(y.Ay,{type:"button",variant:"secondary-gray",disabled:ee,onClick:_,children:"Share with client"}),V&&(0,n.Y)(y.Ay,{type:"button",variant:"tertiary-gray",disabled:ee,onClick:()=>X(!0),children:"Regenerate"})]}),(0,n.FD)(C.A,{size:"sm",css:(0,a.AH)({marginTop:8}),children:[p?"Save your changes before downloading. ":"","PDF downloads exclude private sections."]})]})}),(0,n.Y)(Q,{title:"Share this follow-up with your client?",body:K?"Your client will see every section except the ones marked private, which stay visible only to you. You can still edit after sharing.":"Your client will be able to see every section of this follow-up. You can still edit after sharing.",confirm:"Share"}),j&&(0,n.Y)(et,{currentTemplateId:t.templateId,onClose:()=>{X(!1),Y()},onGenerate:Z,generating:O&&!k,blocked:D,error:x})]})},ed=(0,v.E)(()=>{let e=(0,u.useRouter)(),t=(0,d.A)(),r=(0,g.hq)(),o=e.query.calendarEventId,{data:l,loading:s,error:v,refetch:w}=(0,m.ie)({variables:o?{callId:o}:void 0,skip:!o,fetchPolicy:"cache-and-network"}),P=l?.callFollowUp,{data:U,error:x}=(0,p.XV)({variables:o?{calendarEventId:o}:void 0,skip:!o}),O=U?.calendarEvent.bundleId,D=!!U||!!x,S=O?h.Ay.chatPage({threadType:f.Tw.Bundle,threadPairEventBundleId:O}):h.Ay.chatPage({threadCalendarEventId:o});if(!r||s&&!l)return(0,n.Y)(es,{});let J=!!P&&r?.id===P.expertUserId;return(0,n.FD)(I.A,{children:[(0,n.Y)(c(),{children:(0,n.Y)("title",{children:"Session Follow-up - Pensight"})}),(0,n.Y)(E.A,{children:(0,n.FD)(A.A,{children:[o&&D&&(0,n.Y)("div",{css:(0,a.AH)("align-self:flex-start;"),children:(0,n.Y)($.Ay,{size:"sm",variant:"link-gray",startIcon:(0,n.Y)(i.A,{}),to:S,children:"Back to chat"})}),(0,n.Y)(b.A,{css:(0,a.AH)("background-color:",t.brand.vars.colors.base.white,";border:1px solid ",t.brand.vars.colors.gray[200],";border-radius:12px;box-shadow:0px 1px 3px rgba(16,24,40,0.1),0px 1px 2px rgba(16,24,40,0.06);padding:24px;",t.breakpoints.down("sm"),"{padding:16px;}"),children:v&&!P?(0,n.FD)("div",{css:(0,a.AH)("display:flex;flex-direction:column;align-items:flex-start;gap:16px;"),children:[(0,n.Y)(C.A,{children:"Something went wrong while loading this follow-up."}),(0,n.Y)(y.Ay,{variant:"secondary-gray",onClick:()=>w(),children:"Try again"})]}):P?J?(0,n.Y)(el,{followUp:P},P.callId):(0,n.Y)(H,{followUp:P}):(0,n.Y)(k,{calendarEventId:o,authUserId:r.id},o)})]})})]})}),es=()=>{let e=(0,d.A)(),t=(0,o.A)(e.breakpoints.down("md"));return(0,n.FD)(I.A,{css:(0,a.AH)({background:e.brand.vars.colors.gray[50]}),children:[(0,n.Y)(c(),{children:(0,n.Y)("title",{children:"Session Follow-up - Pensight"})}),(0,n.Y)(E.A,{disableSectionGroup:!0,children:(0,n.Y)(A.A,{fullHeight:!0,children:(0,n.Y)(b.A,{disableHorizontalMargin:t,disableVerticalMargin:t,fullHeight:!0,css:(0,a.AH)({alignItems:"center"}),children:(0,n.Y)(l.A,{})})})})]})},ec=(0,r(45329).A)(ed)},40272:(e,t,r)=>{"use strict";r.d(t,{sk:()=>P,g_:()=>$,Fw:()=>C,Ig:()=>U,XV:()=>y,sC:()=>f,Iq:()=>I,Y$:()=>v,cm:()=>b,zZ:()=>w,S$:()=>x,fO:()=>R,wm:()=>H,jn:()=>D,vZ:()=>J,Jg:()=>B});var n=r(93030),a=r(26955),i=r(28265);let o=(0,n.J1)` 1053 fragment CalendarEventWithOffering on CalendarEvent { 1054 ...CalendarEvent 1055 offering { 1056 ...Offering 1057 } 1058} 1059 ${a.X} 1060${i.Jl}`;var l=r(39946);let d=(0,n.J1)` 1061 fragment CalendarEventWithOfferingAndExpertUser on CalendarEvent { 1062 ...CalendarEvent 1063 expertUser { 1064 ...User 1065 } 1066 offering { 1067 ...Offering 1068 } 1069} 1070 ${a.X} 1071${l.Q3} 1072${i.Jl}`;var s=r(30315),c=r(95848),u=r(48950);let p={},m=(0,n.J1)` 1073 query CalendarEventById($calendarEventId: UUID!) { 1074 calendarEvent: calendarEventById(calendarEventId: $calendarEventId) { 1075 ...CalendarEvent 1076 } 1077} 1078 ${a.X}`;function f(e){let t={...p,...e};return c.I(m,t)}let g=(0,n.J1)` 1079 query CalendarEventByIdWithOffering($calendarEventId: UUID!) { 1080 calendarEvent: calendarEventById(calendarEventId: $calendarEventId) { 1081 ...CalendarEventWithOffering 1082 } 1083} 1084 ${o}`;function v(e){let t={...p,...e};return c.I(g,t)}let h=(0,n.J1)` 1085 query CalendarEventByIdWithOfferingAndExpertUser($calendarEventId: UUID!) { 1086 calendarEvent: calendarEventById(calendarEventId: $calendarEventId) { 1087 ...CalendarEventWithOfferingAndExpertUser 1088 } 1089} 1090 ${d}`;function I(e){let t={...p,...e};return c.I(h,t)}let E=(0,n.J1)` 1091 query CalendarEventInfoById($calendarEventId: UUID!) { 1092 calendarEvent: calendarEventInfoById(calendarEventId: $calendarEventId) { 1093 ...CalendarEventInfo 1094 } 1095} 1096 ${s.hu}`;function b(e){let t={...p,...e};return c.I(E,t)}let A=(0,n.J1)` 1097 query CalendarEventBundleIdById($calendarEventId: UUID!) { 1098 calendarEvent: calendarEventById(calendarEventId: $calendarEventId) { 1099 id 1100 bundleId 1101 } 1102} 1103 `;function y(e){let t={...p,...e};return c.I(A,t)}let $=(0,n.J1)` 1104 query ActiveCalendarEventsByUserId($userId: UUID!) { 1105 calendarEvents: activeCalendarEventsByUserId(userId: $userId) { 1106 ...CalendarEvent 1107 } 1108} 1109 ${a.X}`,C=(0,n.J1)` 1110 query CalendarEventsByGroupEventProductId($productId: UUID!, $includeCurrent: Boolean!, $includeFinished: Boolean!, $includeCancelled: Boolean!) { 1111 calendarEvents: calendarEventsByGroupEventProductId( 1112 productId: $productId 1113 includeCurrent: $includeCurrent 1114 includeFinished: $includeFinished 1115 includeCancelled: $includeCancelled 1116 ) { 1117 ...CalendarEvent 1118 } 1119} 1120 ${a.X}`;function w(e){let t={...p,...e};return c.I(C,t)}let P=(0,n.J1)` 1121 query ActiveCalendarEventsByGroupEventSetIdAndClientUserId($groupEventSetId: UUID!, $participantUserId: UUID!) { 1122 calenderEvents: activeCalendarEventsByGroupEventSetIdAndClientUserId( 1123 groupEventSetId: $groupEventSetId 1124 participantUserId: $participantUserId 1125 ) { 1126 ...CalendarEvent 1127 } 1128} 1129 ${a.X}`,U=(0,n.J1)` 1130 query CalendarEventsByGroupProgramId($groupProgramId: UUID!, $includeCurrent: Boolean!, $includeFinished: Boolean!, $includeCancelled: Boolean!) { 1131 calendarEvents: calendarEventsByGroupProgramId( 1132 groupProgramId: $groupProgramId 1133 includeCurrent: $includeCurrent 1134 includeFinished: $includeFinished 1135 includeCancelled: $includeCancelled 1136 ) { 1137 ...CalendarEvent 1138 } 1139} 1140 ${a.X}`;function x(e){let t={...p,...e};return c.I(U,t)}let O=(0,n.J1)` 1141 mutation ConfirmCalendarEvent($calendarEventId: UUID!, $participantUserId: UUID!, $message: String) { 1142 calendarEvent: confirmCalendarEvent( 1143 calendarEventId: $calendarEventId 1144 participantUserId: $participantUserId 1145 message: $message 1146 ) { 1147 ...CalendarEvent 1148 } 1149} 1150 ${a.X}`;function D(e){let t={...p,...e};return u.n(O,t)}let S=(0,n.J1)` 1151 mutation RescheduleCalendarEvent($calendarEventId: UUID!, $startDate: Instant, $endDate: Instant, $message: String, $baseAvailabilitySettingId: UUID) { 1152 calendarEvent: rescheduleCalendarEvent( 1153 calendarEventId: $calendarEventId 1154 message: $message
1155 startDate: $startDate 1156 endDate: $endDate 1157 baseAvailabilitySettingId: $baseAvailabilitySettingId 1158 ) { 1159 ...CalendarEvent 1160 } 1161} 1162 ${a.X}`;function J(e){let t={...p,...e};return u.n(S,t)}let k=(0,n.J1)` 1163 mutation UpdateCalendarEventLocation($calendarEventId: UUID!, $location: String) { 1164 calendarEvent: updateCalendarEventLocation( 1165 calendarEventId: $calendarEventId 1166 location: $location 1167 ) { 1168 ...CalendarEvent 1169 } 1170} 1171 ${a.X}`;function B(e){let t={...p,...e};return u.n(k,t)}let Y=(0,n.J1)` 1172 mutation CancelCalendarEvent($calendarEventId: UUID!, $message: String) { 1173 calendarEvent: cancelCalendarEvent( 1174 calendarEventId: $calendarEventId 1175 message: $message 1176 ) { 1177 ...CalendarEvent 1178 } 1179} 1180 ${a.X}`;function R(e){let t={...p,...e};return u.n(Y,t)}let F=(0,n.J1)` 1181 mutation CancelCalendarEventParticipant($calendarEventId: UUID!, $participantUserId: UUID!, $message: String) { 1182 calendarEvent: cancelCalendarEventParticipant( 1183 calendarEventId: $calendarEventId 1184 participantUserId: $participantUserId 1185 message: $message 1186 ) { 1187 ...CalendarEvent 1188 } 1189} 1190 ${a.X}`;function H(e){let t={...p,...e};return u.n(F,t)}},42359:(e,t,r)=>{"use strict";r.d(t,{Pq:()=>p,Xz:()=>d,ix:()=>c,u0:()=>s});var n=r(93030),a=r(55834),i=r(95848),o=r(48950);let l={},d=(0,n.J1)` 1191 fragment CustomPage on CustomPage { 1192 id 1193 revision 1194 isLatestRevision 1195 content 1196 uploadedFiles { 1197 ...UploadedFile 1198 } 1199 isPublished 1200 domain 1201 createdAt 1202 modifiedAt 1203} 1204 ${a.Zx}`,s=(0,n.J1)` 1205 query PublishedCustomPageById($customPageId: UUID!) { 1206 customPage: publishedCustomPageById(customPageId: $customPageId) { 1207 ...CustomPage 1208 } 1209} 1210 ${d}`;function c(e){let t={...l,...e};return i.I(s,t)}let u=(0,n.J1)` 1211 mutation CreateOrUpdateCustomPage($customPageId: UUID, $expertUserId: UUID!, $content: String!, $isPublished: Boolean!, $domain: CustomPageDomain!) { 1212 customPage: createOrUpdateCustomPage( 1213 customPageId: $customPageId 1214 expertUserId: $expertUserId 1215 content: $content 1216 isPublished: $isPublished 1217 domain: $domain 1218 ) { 1219 ...CustomPage 1220 } 1221} 1222 ${d}`;function p(e){let t={...l,...e};return o.n(u,t)}},45012:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(76907),a=r.n(n),i=r(5776),o=r(91611),l=r(8857);let d=(0,i.forwardRef)(function(e,t){let{href:r,linkAs:n,to:d,scroll:s,shallow:c,children:u}=e,p=r||d?.href,m=n||d?.as,f=void 0===c?d?.shallow:c,g=(0,l.Nh)({href:p,as:m}),v=u.props.target,h=u.props.download;return(0,i.cloneElement)(u,{as:"a",href:g,...null!==t?{ref:(0,o.A)([t,u.props.ref??null])}:{},onClick:e=>{u.props.onClick?.(e),e.defaultPrevented||0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||function(e,t,r){if(void 0!==t&&"_self"!==t||void 0!==r)return!0;if(!(e.startsWith("//")||/^[a-z][a-z0-9+.-]*:/i.test(e)))return!1;try{return new URL(e,window.location.href).origin!==window.location.origin}catch{return!0}}(g,v,h)||(e.preventDefault(),a().push(p,m,{shallow:f,scroll:s}))}})})},45329:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(29017),a=r(2900);let i=function(e){return t=>(0,n.Y)(a.A,{children:(0,n.Y)(e,{...t})})}},47310:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(5045),a=r(60726),i=r(70433),o=r(35582);let l=function(){let e=(0,o.P)();return"en-US"===e?i.A:"en-GB"===e?a.A:"en-CA"===e||"en-AU"===e||"en-NZ"===e||"en-IE"===e||"en-IN"===e||"en-ZA"===e?n.A:a.A}},48718:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(29017),a=r(15779),i=r(10441);let o=e=>{let{name:t,control:r,parse:o,format:l,helperText:d,onBlur:s,inputRef:c,...u}=e;return(0,n.Y)(a.xI,{name:t,control:r,render:({field:{onChange:e,value:t,ref:r,onBlur:a,...p},fieldState:{error:m}})=>{var f;return(0,n.Y)(i.Ay,{error:!!m,helperText:m?m.message:d,onChange:o?t=>e(o(t.target.value)):e,value:l?l(t):null==t?"":t,onBlur:e=>{a(),s?.(e)},inputRef:(f=[r,c??null],e=>{f.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}),...p,...u})}})}},49301:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(45192),a=r(23617);let i=(0,n.Ay)("div",{target:"e1uj7gd60"})(({paddingTop:e,paddingBottom:t})=>(0,a.AH)` 1223 padding: 0 24px; 1224 1225 ${e&&(0,a.AH)` 1226 padding-top: 24px; 1227 `} 1228 1229 ${t&&(0,a.AH)` 1230 padding-bottom: 24px; 1231 `} 1232 `)},49953:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>l});var n=r(29017),a=r(5776),i=r(37187),o=r(45012);let l=(0,a.forwardRef)(function(e,t){let{href:r,linkAs:a,to:l,prefetch:d,scroll:s,shallow:c,...u}=e;return(0,n.Y)(o.A,{href:r,linkAs:a,to:l,prefetch:d,scroll:s,shallow:c,children:(0,n.Y)(i.Ay,{ref:t,...u})})})},50016:(e,t,r)=>{"use strict";r.d(t,{j:()=>a});var n=r(5776);function a(e={}){let[t,r]=n.useState(e.defaultIsOpen||!1),i=(0,n.useCallback)(()=>{r(!1)},[r]),o=(0,n.useCallback)(()=>{r(!0)},[r]),l=(0,n.useCallback)(()=>{(t?i:o)()},[t,i,o]);return{isOpen:!!t,onOpen:o,onClose:i,onToggle:l}}},62089:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>I,ts:()=>p});var n=r(29017),a=r(968),i=r(31014),o=r(93155),l=r(23617),d=r(45192),s=r(9281),c=r(5776),u=r(79741);let p=(0,a.A)("textFieldBase",["root","label","input","startAdornmentC
1232ontainer","endAdornmentContainer","helperText","inputContainer"]),m=(0,c.forwardRef)((e,t)=>{let{size:r="md",label:a,helperText:d,error:m,startAdornment:I,endAdornment:E,disabled:b=!1,multiline:A=!1,minRows:y,maxRows:$,className:C,inputRef:w,...P}=e,U=(0,c.useId)(),x=(0,o.A)(),O={id:U,disabled:b,className:p.input,ref:w,css:(0,l.AH)(I&&(0,l.AH)` 1233 padding-left: 0; 1234 `," ",E&&(0,l.AH)` 1235 padding-right: 0; 1236 `),...P};return(0,n.FD)(f,{ref:t,className:(0,s.A)(p.root,C),css:(0,l.AH)("--padding:",{md:"8px 12px",lg:"12px 14px"}[r],";",m&&(0,l.AH)` 1237 --helper-text-color: var(--error-color); 1238 --border-color: var(--error-border-color); 1239 --focused-border-color: var(--error-focused-border-color); 1240 --focused-box-shadow: var(--error-focused-box-shadow); 1241 `," ",b&&(0,l.AH)` 1242 --background-color: var(--disabled-background-color); 1243 --placeholder-color: var(--disabled-color); 1244 --color: var(--disabled-color); 1245 --helper-text-color: var(--disabled-color); 1246 `),children:[a&&(0,n.Y)("label",{htmlFor:U,children:(0,n.Y)(u.A,{as:"span",size:"sm",className:p.label,css:(0,l.AH)("color:var(--label-color);"),children:a})}),(0,n.FD)(g,{css:(0,l.AH)({md:x.brand.vars.typography.text.sm.regular,lg:x.brand.vars.typography.text.md.regular}[r]),className:p.inputContainer,children:[I&&(0,n.Y)(h,{className:p.startAdornmentContainer,css:(0,l.AH)("color:var(--adornment-color);padding-right:8px;"),children:I}),!A&&(0,n.Y)(v,{type:"text",...O}),A&&(0,n.Y)(v,{as:i.A,minRows:y,maxRows:$,...O}),E&&(0,n.Y)(h,{className:p.endAdornmentContainer,css:(0,l.AH)("color:var(--adornment-color);padding-left:8px;"),children:E})]}),d&&(0,n.Y)(u.A,{size:"sm",className:p.helperText,css:(0,l.AH)("color:var(--helper-text-color);"),children:d})]})}),f=(0,d.Ay)("div",{target:"ezpnk5v0"})((0,l.AH)` 1247 width: 100%; 1248 display: flex; 1249 flex-direction: column; 1250 gap: 6px; 1251`),g=(0,d.Ay)("div",{target:"ezpnk5v1"})((0,l.AH)` 1252 overflow: hidden; 1253 display: flex; 1254 align-items: center; 1255 border-radius: 8px; 1256 box-shadow:
1257 var(--box-shadow), 1258 inset 0px 0px 0px 1px var(--border-color); 1259 background: var(--background-color); 1260 color: var(--color); 1261 transition: box-shadow 100ms ease-in-out; 1262 1263 :focus-within { 1264 --border-color: var(--focused-border-color); 1265 --box-shadow: var(--focused-box-shadow); 1266 } 1267`),v=(0,c.forwardRef)(function(e,t){let{as:r="input",...a}=e;return(0,n.Y)(r,{ref:t,...a,css:(0,l.AH)("border:none;resize:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;letter-spacing:inherit;background:transparent;min-width:0;padding:var(--padding);flex:1;align-self:stretch;color:var(--color);::placeholder{color:var(--placeholder-color);}&:focus{outline:none;}")})}),h=(0,d.Ay)("span",{target:"ezpnk5v2"})((0,l.AH)` 1268 padding: var(--padding); 1269 display: flex; 1270`),I=m},80540:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/calendar-events/[calendarEventId]/follow-up",function(){return r(38072)}])},83015:(e,t,r)=>{"use strict";r.d(t,{A:()=>p});var n=r(29017),a=r(85623),i=r(51761),o=r(45192),l=r(23617),d=r(5776);let s=(0,d.forwardRef)((e,t)=>{let{open:r,onClose:a,children:i,maxWidth:o="400px",...l}=e;return(0,n.Y)(u,{open:r,onClose:a,ref:t,scroll:"body",TransitionComponent:c,customMaxWidth:o,maxWidth:!1,...l,children:i})}),c=(0,d.forwardRef)((e,t)=>(0,n.Y)(a.A,{ref:t,...e})),u=(0,o.Ay)(i.A,{shouldForwardProp:e=>"customMaxWidth"!==e,target:"edb0f3m0"})(({theme:e,customMaxWidth:t,fullScreen:r,scroll:n})=>(0,l.AH)` 1271 --margin: 8px; 1272 --max-width: ${"number"==typeof t?`${t}px`:t}; 1273 1274 & > .MuiBackdrop-root { 1275 background-color: ${e.brand.colors.gray[700]}B3; 1276 backdrop-filter: blur(16px); 1277 } 1278 1279 & > .MuiDialog-container > .MuiPaper-root { 1280 border-radius: 12px; 1281 margin: var(--margin); 1282 width: calc(100% - (var(--margin) * 2)); 1283 max-width: var(--max-width); 1284 1285 ${"body"===n&&(0,l.AH)` 1286 overflow-y: unset; // if we want 'position: sticky' support for items inside the dialog, we need to make sure ancestors do not have overflow set to hidden or auto 1287 `} 1288 1289 ${r&&(0,l.AH)` 1290 --margin: 0px; 1291 border-radius: 0; 1292 max-width: initial; 1293 height: auto; 1294 min-height: 100%; 1295 `} 1296 } 1297 1298 ${e.breakpoints.up("sm")} { 1299 & > .MuiDialog-container > .MuiPaper-root { 1300 --margin: ${r?"0px":"16px"}; 1301 } 1302 } 1303 `),p=s},84234:(e,t,r)=>{"use strict";r.d(t,{BE:()=>D,CE:()=>b,GE:()=>A,HW:()=>x,IR:()=>J,Jn:()=>$,OJ:()=>f,Qt:()=>U,bq:()=>E,c2:()=>P,cD:()=>k,dS:()=>y,eY:()=>O,fg:()=>I,lg:()=>S,rH:()=>B,t:()=>w,uo:()=>C});var n=r(93030),a=r(55834),i=r(94750);let o=(0,n.J1)` 1304 fragment OrderPrice on OrderPrice { 1305 sum 1306 currency 1307 cycle 1308 installments 1309} 1310 `;(0,n.J1)` 1311 fragment OrderSnapshot on OrderSnapshot { 1312 id 1313 state 1314 priceBase { 1315 ...OrderPrice 1316 } 1317 priceTotal { 1318 ...OrderPrice 1319 } 1320 couponId 1321} 1322 ${o}`,(0,n.J1)` 1323 fragment GroupProgramOrderItemDetails on GroupProgramOrderItemDetails { 1324 groupProgramId 1325 message 1326} 1327 `;let l=(0,n.J1)` 1328 fragment PairEventOrderItemDetails on PairEventOrderItemDetails { 1329 startDate 1330 message 1331} 1332 `,d=(0,n.J1)` 1333 fragment GroupEventOrderItemDetails on GroupEventOrderItemDetails { 1334 calendarEventId 1335 message 1336} 1337 `,s=(0,n.J1)` 1338 fragment PairEventBundleOrderItemDetails on PairEventBundleOrderItemDetails { 1339 message 1340} 1341 `,c=(0,n.J1)` 1342 fragment QnaOrderItemDetails on QnaOrderItemDetails { 1343 message 1344 videoId 1345 audioId 1346 keepPrivate 1347} 1348 `,u=(0,n.J1)` 1349 fragment DigitalItemOrderItemDetails on DigitalItemOrderItemDetails { 1350 digitalItemId 1351} 1352 `,p=(0,n.J1)` 1353 fragment CourseOrderItemDetails on CourseOrderItemDetails { 1354 courseId 1355} 1356 `,m=(0,n.J1)` 1357 fragment MembershipOrderItemDetails on MembershipOrderItemDetails { 1358 membershipId 1359} 1360 `,f=(0,n.J1)` 1361 fragment OrderItem on OrderItem { 1362 id 1363 type 1364 title 1365 pairEvent { 1366 ...PairEventOrderItemDetails 1367 } 1368 groupEvent { 1369 ...GroupEventOrderItemDetails 1370 } 1371 pairEventBundle { 1372 ...PairEventBundleOrderItemDetails 1373 } 1374 qna { 1375 ...QnaOrderItemDetails 1376 } 1377 digitalItem { 1378 ...DigitalItemOrderItemDetails 1379 } 1380 course { 1381 ...CourseOrderItemDetails 1382 } 1383 membership { 1384 ...MembershipOrderItemDetails 1385 } 1386 offeringId 1387 offeringRevision 1388 offeringPriceType 1389 offeringPriceFlexibleSumChosen 1390} 1391 ${l} 1392${d} 1393${s} 1394${c} 1395${u} 1396${p} 1397${m}`,g=(0,n.J1)` 1398 fragment OrderCreateEvent on OrderCreateEvent { 1399 id 1400 type 1401 timestamp 1402 message 1403} 1404 `,v=(0,n.J1)` 1405 fragment OrderUpdateEvent on OrderUpdateEvent { 1406 id 1407 type 1408 timestamp 1409 message 1410} 1411 `,h=(0,n.J1)` 1412 fragment OrderEvent on OrderEvent { 1413 id 1414 type 1415 timestamp 1416 ...OrderCreateEvent 1417 ...OrderUpdateEvent 1418} 1419 ${g} 1420${v}`,I=(0,n.J1)` 1421 fragment Order on Order { 1422 id 1423 paymentPlanId 1424 invoiceId 1425 expertUserId 1426 expertUser { 1427 id 1428 name 1429 expertDetails { 1430 id 1431 slug 1432 customDomain 1433 billingPlatformLocation 1434 connectPlatformLocation 1435 } 1436 avatar { 1437 ...UploadedFile 1438 } 1439 } 1440 clientUserId 1441 clientUser { 1442 id 1443 name 1444 avatar { 1445 ...UploadedFile 1446 } 1447 email 1448 } 1449 state 1450 priceBase { 1451 ...OrderPrice 1452 } 1453 priceTotal { 1454 ...OrderPrice 1455 } 1456 coupon { 1457 ...Coupon 1458 } 1459 items { 1460 ...OrderItem 1461 } 1462 events { 1463 ...OrderEvent 1464 } 1465 createdAt 1466} 1467 ${a.Zx} 1468${o} 1469${i.p} 1470${f} 1471${h}`,E=(0,n.J1)` 1472 fragment CreatePairEventOrderItemResult on CreatePairEventOrderItemResult { 1473 order { 1474 ...Order 1475 } 1476 orderItem { 1477 ...OrderItem 1478 } 1479} 1480 ${I} 1481${f}`,b=(0,n.J1)` 1482 fragment UpdatePairEventOrderItemResult on UpdatePairEventOrderItemResult { 1483 order { 1484 ...Order 1485 } 1486 orderItem { 1487 ...OrderItem 1488 } 1489} 1490 ${I} 1491${f}`,A=(0,n.J1)` 1492 fragment CreateGroupEventOrderItemResult on CreateGroupEventOrderItemResult { 1493 order { 1494 ...Order 1495 } 1496 orderItem { 1497 ...OrderItem 1498 } 1499} 1500 ${I} 1501${f}`,y=(0,n.J1)` 1502 fragment UpdateGroupEventOrderItemResult on UpdateGroupEventOrderItemResult { 1503 order { 1504 ...Order 1505 } 1506 orderItem { 1507 ...OrderItem 1508 } 1509} 1510 ${I} 1511${f}`,$=(0,n.J1)` 1512 fragment CreatePairEventBundleOrderItemResult on CreatePairEventBundleOrderItemResult { 1513 order { 1514 ...Order 1515 } 1516 orderItem { 1517 ...OrderItem 1518 } 1519} 1520 ${I} 1521${f}`,C=(0,n.J1)` 1522 fragment UpdatePairEventBundleOrderItemResult on UpdatePairEventBundleOrderItemResult { 1523 order { 1524 ...Order 1525 } 1526 orderItem { 1527 ...OrderItem 1528 } 1529} 1530 ${I} 1531${f}`,w=(0,n.J1)` 1532 fragment CreateQnaOrderItemResult on CreateQnaOrderItemResult { 1533 order { 1534 ...Order 1535 } 1536 orderItem { 1537 ...OrderItem 1538 } 1539} 1540 ${I} 1541${f}`,P=(0,n.J1)` 1542 fragment UpdateQnaOrderItemResult on UpdateQnaOrderItemResult { 1543 order { 1544 ...Order 1545 } 1546 orderItem { 1547 ...OrderItem 1548 } 1549} 1550 ${I} 1551${f}`,U=(0,n.J1)` 1552 fragment CreateDigitalItemOrderItemResult on CreateDigitalItemOrderItemResult { 1553 order { 1554 ...Order 1555 } 1556 orderItem { 1557 ...OrderItem 1558 } 1559} 1560 ${I} 1561${f}`,x=(0,n.J1)` 1562 fragment UpdateDigitalItemOrderItemResult on UpdateDigitalItemOrderItemResult { 1563 order { 1564 ...Order 1565 } 1566 orderItem { 1567 ...OrderItem 1568 } 1569} 1570 ${I} 1571${f}`,O=(0,n.J1)` 1572 fragment CreateCourseOrderItemResult on CreateCourseOrderItemResult { 1573 order { 1574 ...Order 1575 } 1576 orderItem { 1577 ...OrderItem 1578 } 1579} 1580 ${I} 1581${f}`,D=(0,n.J1)` 1582 fragment UpdateCourseOrderItemResult on UpdateCourseOrderItemResult { 1583 order { 1584 ...Order 1585 } 1586 orderItem { 1587 ...OrderItem 1588 } 1589} 1590 ${I} 1591${f}`,S=(0,n.J1)` 1592 fragment CreateMembershipOrderItemResult on CreateMembershipOrderItemResult { 1593 order { 1594 ...Order 1595 } 1596 orderItem { 1597 ...OrderItem 1598 } 1599} 1600 ${I} 1601${f}`,J=(0,n.J1)` 1602 fragment UpdateMembershipOrderItemResult on UpdateMembershipOrderItemResult { 1603 order { 1604 ...Order 1605 } 1606 orderItem { 1607 ...OrderItem 1608 } 1609} 1610 ${I} 1611${f}`,k=(0,n.J1)` 1612 fragment CreateGroupProgramOrderItemResult on CreateGroupProgramOrderItemResult { 1613 order { 1614 ...Order 1615 } 1616 orderItem { 1617 ...OrderItem 1618 } 1619} 1620 ${I} 1621${f}`,B=(0,n.J1)` 1622 fragment UpdateGroupProgramOrderItemResult on UpdateGroupProgramOrderItemResult { 1623 order { 1624 ...Order 1625 } 1626 orderItem { 1627 ...OrderItem 1628 } 1629} 1630 ${I} 1631${f}`}
1631,90341:(e,t,r)=>{"use strict";r.d(t,{G:()=>c});var n=r(29017),a=r(5776),i=r(50016),o=r(37187),l=r(83015),d=r(2261),s=r(92453);let c=({onConfirm:e,onCancel:t,defaultIsOpen:r})=>{let{isOpen:c,onOpen:u,onClose:p}=(0,i.j)({defaultIsOpen:r}),m=(0,a.useCallback)(()=>{e(),p()},[e,p]);return{ConfirmDialog:(0,a.useMemo)(()=>e=>(0,n.FD)(l.A,{open:c,onClose:async()=>{void 0!==t&&await t(),p()},children:[(0,n.Y)(d.c7,{title:e.title||"Are you sure?",description:e.body,onClose:async()=>{void 0!==t&&await t(),p()}}),(0,n.Y)(s.ii,{primaryButton:(0,n.Y)(o.Ay,{onClick:m,children:e.confirm||"Confirm"}),secondaryButton:(0,n.Y)(o.Ay,{variant:"tertiary-gray",onClick:async()=>{void 0!==t&&await t(),p()},children:e.cancel||"Cancel"})})]}),[c,t,m,p]),onDialogOpen:u,isDialogOpen:c}}},91611:(e,t,r)=>{"use strict";function n(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}r.d(t,{A:()=>n})},92453:(e,t,r)=>{"use strict";r.d(t,{ii:()=>i});var n=r(29017),a=r(23617);function i(e){let{type:t="horizontal",divider:r=!1,primaryButton:i,secondaryButton:l,className:d,children:s}=e;return(0,n.FD)(o,{type:t,divider:r,className:d,children:[i,l,"horizontal-right-aligned"===t&&s&&(0,n.Y)("span",{css:(0,a.AH)({flex:1}),children:s})]})}let o=(0,r(45192).Ay)("div",{target:"ee7pqj80"})(({theme:e,type:t,divider:r})=>{let n=(()=>{switch(t){case"vertical":return(0,a.AH)` 1632 flex-direction: column; 1633 1634 & > button, 1635 & > a { 1636 width: 100%; 1637 } 1638 `;case"horizontal":return(0,a.AH)` 1639 flex-direction: column; 1640 1641 & > button, 1642 & > a { 1643 width: 100%; 1644 } 1645 1646 ${e.breakpoints.up("sm")} { 1647 flex-direction: row-reverse; 1648 1649 & > button, 1650 & > a { 1651 flex: 1; 1652 } 1653 } 1654 `;case"horizontal-right-aligned":return(0,a.AH)` 1655 flex-direction: row-reverse; 1656 `;default:throw Error(`Type not found: ${t}`)}})();return(0,a.AH)` 1657 --padding: 24px; 1658 1659 padding: var(--padding); 1660 display: flex; 1661 align-items: center; 1662 gap: 12px; 1663 ${n} 1664 1665 ${r&&(0,a.AH)` 1666 padding-top: calc(var(--padding) + 32px); 1667 position: relative; 1668 1669 &:before { 1670 display: block; 1671 content: ""; 1672 position: absolute; 1673 width: 100%; 1674 height: 1px; 1675 left: 0; 1676 top: 32px; 1677 background: ${e.brand.vars.colors.gray[200]}; 1678 } 1679 `} 1680 `})},94750:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,p:()=>a});var n=r(93030);let a=(0,n.J1)` 1681 fragment Coupon on Coupon { 1682 id 1683 code 1684 fractionOff 1685 sumOff 1686 expires 1687 expertUserId 1688 redemptionLimitTotal 1689 offeringId 1690 allowAllPairEvents 1691 allowAllGroupEvents 1692 allowAllQnas 1693 allowAllDigitalItems 1694 allowAllGroupPrograms 1695 allowAllBundles 1696 allowAllCourses 1697 allowAllGroupPrograms 1698 allowAllMemberships 1699 createdAt 1700 modifiedAt 1701 deletedAt 1702} 1703 `,i=(0,n.J1)` 1704 fragment CouponWithStats on Coupon { 1705 ...Coupon 1706 couponStats { 1707 redemptionCount 1708 } 1709} 1710 ${a}`},95203:(e,t,r)=>{"use strict";r.d(t,{Lg:()=>a,l5:()=>i,vg:()=>o});var n=r(23617);let a="remirror-editor",i=(e,t={includeDefaultMarkdownStyles:!0})=>(0,n.AH)(t.includeDefaultMarkdownStyles&&o(e),";& .",a,"{box-shadow:none !important;padding:0 !important;overflow-y:auto !important;overflow-wrap:anywhere !important;&.ProseMirror-focused{.remirror-is-empty{&:first-of-type::before{display:none;}}}.remirror-is-empty{&:first-of-type::before{inset:0;font-style:initial;color:",e.brand.vars.colors.gray[500],";}}}"),o=e=>(0,n.AH)(e.brand.vars.typography.text.md.regular,";font-family:",e.brand.vars.typography.fontFamily,";&,& .",a,"{h1{margin:0;padding-top:1.5rem;",e.brand.vars.typography.display.md.medium,";}h2{margin:0;padding-top:1.5rem;",e.brand.vars.typography.display.sm.medium,";}h3{margin:0;padding-top:1.5rem;",e.brand.vars.typography.display.xs.medium,";}p{padding-top:1.5rem;margin-top:0;margin-bottom:0;line-height:1.8rem;}ul,ol{padding-top:1rem;margin-top:0;margin-bottom:0;}ol > li,ul > li{margin-top:0.2rem;margin-bottom:0.2rem;}li > p{margin:0;padding:0;}ol > p{margin:0;padding:0;}a{color:",e.brand.vars.colors.primary[600],";font-weight:500;}strong{font-weight:600;}> *:first-child,> *:first-child > *:first-child,> *:first-child > *:first-child > *:first-child{margin-top:0 !important;padding-top:0 !important;}}")},97224:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>n.Ay});var n=r(49953)},99464:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(29017),a=r(93155),i=r(23617),o=r(79741);let l=(0,r(5776).forwardRef)(({errors:e,className:t},r)=>{let l=(0,a.A)();return e.length?(0,n.Y)("ul",{ref:r,className:t,css:(0,i.AH)("color:",l.brand.vars.colors.error[500],";list-style:none;margin:0;padding:0;"),children:e.filter(e=>!!e).map((e,t)=>(0,n.Y)(o.A,{as:"li",size:"sm",children:e.friendlyMessage},t))}):null})}},e=>
1710{e.O(0,[8976,1826,7688,8002,2700,106,329,3852,2611,5754,4204,606,7010,5176,6820,4847,2276,7975,484,6703,636,6593,8792],()=>e(e.s=80540)),_N_E=e.O()}]); 1711//# debugId=ec0cdede-01dc-5121-9efd-556e5b8be9dc
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.