PageSourceSearch

https://insighttimer.com/static/js/9584.6e679ef4.chunk.js

js insighttimer.com collected 2026-09-24 08:25:51 UTC 84,496 bytes, 291 lines download raw bytes

1"use strict";(self.webpackChunkinsight_timer=self.webpackChunkinsight_timer||[]).push([[9584],{7367:(e,i,t)=>{t.d(i,{A:()=>s,l:()=>o});var r=t(38491),n=t(61290),l=t(3630);const o=async e=>{if(!e)return null;const{data:i}=await r.default.get(`https://libraryitems.insighttimer.com/${e}/data/libraryitem.json`,{timeout:1e4});return(0,n.lJ)(null===i||void 0===i?void 0:i.status)?null:i},s=e=>{const{data:i,isValidating:t,error:r}=(0,l.Ay)(e?`library_item_details/${e}`:null,(()=>e?o(e):null),{revalidateOnFocus:!1,refreshWhenOffline:!1});return{libraryItemDetails:null!==i&&void 0!==i?i:void 0,loading:!i&&t,error:r}}},14682:(e,i,t)=>{t.d(i,{A:()=>l});var r=t(72073);const n={[r.t.WORKSHOP]:r.t.WORKSHOP,[r.t.WORKSHOP_RECORDING]:r.t.WORKSHOP_RECORDING,[r.t.B2B_WORKSHOP_PROMO]:r.t.B2B_WORKSHOP_PROMO},l=e=>!!e&&!!n[e]},21870:(e,i,t)=>{t.d(i,{h:()=>s});var r,n=t(95254);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},l.apply(null,arguments)}function o(e,i){let{title:t,titleId:o,...s}=e;return n.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:36,height:24,viewBox:"0 0 36 24",ref:i,"aria-labelledby":o},s),t?n.createElement("title",{id:o},t):null,r||(r=n.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5},n.createElement("path",{d:"M2 16.545V22h11.294M34 7.455V2H22.706M2 7.455V2h11.294M34 16.545V22H22.706"}))))}const s=n.forwardRef(o);t.p},32972:(e,i,t)=>{t.d(i,{A:()=>r});const r=e=>"WORKSHOP_RECORDING"===e},35248:(e,i,t)=>{t.d(i,{A:()=>o});var r=t(33390),n=t(74583),l=t(3630);const o=e=>{let{userId:i}=e;const{data:t,isValidating:o,error:s}=(0,l.Ay)(i?`user_details_json_format/${i}`:null,(()=>{if(i)return(0,n.sE)(i)}),{revalidateOnFocus:!1,shouldRetryOnError:!1,refreshWhenOffline:!1});return{isLoading:i&&!t&&o,userDetails:t,error:(0,r.A)(s)}}},35500:(e,i,t)=>{t.d(i,{A:()=>a});t(95254);var r=t(40688),n=t(97141);const l=n.A.div`
2  width: 100%;
3  display: flex;
4  justify-content: center;
5  align-items: center;
6`,o=n.A.div`
7  flex: 1 1;
8`;var s=t(64582);const a=e=>(0,s.jsx)(l,{children:(0,s.jsx)(o,{children:(0,s.jsx)(r.A,{...e})})})},40688:(e,i,t)=>{t.d(i,{A:()=>s});var r=t(97141),n=t(3625),l=(t(95254),t(64582));const o=(0,r.A)(n.A)`
9  padding: 6px 0;
10  position: relative;
11  display: block;
12  &:hover {
13    .MuiSlider-track,
14    .MuiSlider-rail {
15      height: 6;
16      top: 5;
17    }
18  }
19  .MuiSlider-thumb {
20    height: 15px;
21    width: 15px;
22    background-color: #fff;
23    margin-top: -6px;
24    margin-left: -6px;
25    &:hover {
26      box-shadow: 0 0 0 8px rgb(255 255 255 / 10%);
27    }
28    &:active {
29      box-shadow: 0 0 0 14px rgb(255 255 255 / 10%);
30    }
31
32    &:focus-visible {
33      outline: 2px solid black !important;
34    }
35  }
36  .MuiSlider-track,
37  .MuiSlider-rail {
38    height: 4px;
39    border-radius: 2px;
40  }
41  .MuiSlider-track {
42    background-color: #fff;
43  }
44  .MuiSlider-rail {
45    opacity: 1;
46    color: rgb(255 255 255 / 15%);
47  }
48`,s=e=>(0,l.jsx)(o,{...e,onChange:e.onChangeSlider})},48516:(e,i,t)=>{t.d(i,{h:()=>h});var r,n,l,o,s=t(95254);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},a.apply(null,arguments)}function d(e,i){let{title:t,titleId:d,...h}=e;return s.createElement("svg",a({viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":d},h),t?s.createElement("title",{id:d},t):null,r||(r=s.createElement("path",{d:"M5.36364 1V5.36364H1",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),n||(n=s.createElement("path",{d:"M17.0004 5.36364H12.6367V1",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),l||(l=s.createElement("path",{d:"M12.6367 17.0004V12.6367H17.0004",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=s.createElement("path",{d:"M1 12.6367H5.36364V17.0004",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const h=s.forwardRef(d);t.p},61290:(e,i,t)=>{t.d(i,{$v:()=>c,N7:()=>h,Pj:()=>x,Sg:()=>d,VZ:()=>s,ih:()=>a,lJ:()=>
48o,oL:()=>u});var r=t(38491),n=t(91557),l=t(19919);const o=e=>"DELETED"===e||"REMOVED"===e||"REJECTED"===e,s=async e=>{const i=await r.default.get(`${n.bk}/api/v1/libraryitems/${e}/slug`,{timeout:1e4}),{data:t}=i,l=o(null===t||void 0===t?void 0:t.status);return{singleTrackDetails:l?null:t,isRemovedOrRejected:l}},a=async e=>{var i,t;let{libraryItemID:n,filter:o}=e;const s=l.stringify(o),a=await r.default.get(`https://filtering.insighttimer-api.net/api/v1/libraryitems/${n}/related?${s}`),{data:d}=a,h=Number(null!==(i=a.headers["x-total-count"])&&void 0!==i?i:0);return{relatedLibraryItemList:null!==(t=null===d||void 0===d?void 0:d.map((e=>e.item_summary.library_item_summary)))&&void 0!==t?t:[],totalCount:h}},d=e=>JSON.parse(JSON.stringify(e)),h=e=>{var i,t,r,n,l,o,s,a,d,h,u,c,x,p,v,g,m,j,f,w,A,b,y,k,_,E;return{activity:"",content_type:null!==(i=null===e||void 0===e?void 0:e.content_type)&&void 0!==i?i:"MUSIC",has_background_music:null!==(t=null===e||void 0===e?void 0:e.has_background_music)&&void 0!==t&&t,id:null!==(r=null===e||void 0===e?void 0:e.id)&&void 0!==r?r:"",is_newage:null!==(n=null===e||void 0===e?void 0:e.is_newage)&&void 0!==n&&n,is_religion:null!==(l=null===e||void 0===e?void 0:e.is_religion)&&void 0!==l&&l,is_science:null!==(o=null===e||void 0===e?void 0:e.is_science)&&void 0!==o&&o,is_secular:null!==(s=null===e||void 0===e?void 0:e.is_secular)&&void 0!==s&&s,is_spirituality:null!==(a=null===e||void 0===e?void 0:e.is_spirituality)&&void 0!==a&&a,item_type:null!==(d=null===e||void 0===e?void 0:e.item_type)&&void 0!==d?d:"COURSES",level:"",lang:null!==(h=null===e||void 0===e?void 0:e.lang)&&void 0!==h?h:{iso_639_1:"",name:""},long_description:null!==(u=null===e||void 0===e?void 0:e.short_description)&&void 0!==u?u:"",media_length:null!==(c=null===e||void 0===e?void 0:e.media_length)&&void 0!==c?c:0,media_length_group:null!==(x=null===e||void 0===e?void 0:e.media_length_group)&&void 0!==x?x:"00-05",music_type:"",publisher:null!==(p=null===e||void 0===e?void 0:e.publisher)&&void 0!==p?p:{id:"",name:""},rating_score:null!==(v=null===e||void 0===e?void 0:e.rating_score)&&void 0!==v?v:0,rating_count:0,play_count:0,short_description:null!==(g=null===e||void 0===e?void 0:e.short_description)&&void 0!==g?g:"",slug:null!==(m=null===e||void 0===e?void 0:e.slug)&&void 0!==m?m:"",title:null!==(j=null===e||void 0===e?void 0:e.title)&&void 0!==j?j:"",topics:[],tags:[],voice_gender:null!==(f=null===e||void 0===e?void 0:e.voice_gender)&&void 0!==f?f:"MALE",created_at:{epoch:0,iso_8601_datetime_tz:""},_selected_reviews:[],media_paths:null!==(w=null===e||void 0===e?void 0:e.media_paths)&&void 0!==w?w:[],media_paths_audio_intro:null!==(A=null===e||void 0===e?void 0:e.media_paths_audio_intro)&&void 0!==A?A:[],blurhash:null!==(b=null===e||void 0===e?void 0:e.blurhash)&&void 0!==b?b:"",days:null!==(y=null===e||void 0===e?void 0:e.days)&&void 0!==y?y:0,description:null!==(k=null===e||void 0===e?void 0:e.short_description)&&void 0!==k?k:"",is_premium:null!==(_=null===e||void 0===e?void 0:e.is_premium)&&void 0!==_&&_,status:null!==(E=null===e||void 0===e?void 0:e.status)&&void 0!==E?E:"PUBLISHED"}},u=async function(e){var i;let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;const n=await r.default.get(`https://filtering.insighttimer-api.net/api/v1/single-tracks/${e}/reviews?limit=${t}&sort_option=rated_at&sort_direction=desc&has_review=true&rating=FIVE_STAR`),{data:l}=n;return{data:l,totalCount:Number(null!==(i=n.headers["x-total-count"])&&void 0!==i?i:0)}},c=e=>e.map((e=>{var i,t;return{id:e.item_summary.library_item_review_summary.id,avatar:"",author:e.item_summary.library_item_review_summary.owner.name,created_at:e.item_summary.library_item_review_summary.rated_at,has_message:e.item_summary.library_item_review_summary.has_review_message,message:null!==(i=e.item_summary.library_item_review_summary.message)&&void 0!==i?i:"",owner:{id:e.item_summary.library_item_review_summary.owner.id,name:e.item_summary.library_item_review_summary.owner.name,username:e.item_summary.library_item_review_summary.owner.username,has_avatar:e.item_summary.library_item_review_summary.owner.has_avatar,region:{name:null===(t=e.item_summary.library_item_review_summary.owner.region)||void 0===t?void 0:t.name}},rating:e.item_summary.library_item_review_summary.rating,rated_at:e.item_summary.library_item_review_summary.rated_at,updated_at:e.item_summary.library_item_review_summary.rated_at}})),x=e=>{const i=Math.floor(e/3600),t=Math.floor(e%3600/60),r=e%60;let n="PT";return i>0&&(n+=`${i}H`),t>0&&(n+=`${t}M`),(r>0||0===i&&0===t)&&(n+=`${r}S`),n}},73048:(e,i,t)=>{t.r(i),t.d(i,{default:()=>Vr});
48var r=t(16614),n=t(92565),l=t(25325),o=t(8367),s=t(56882),a=t(47463),d=t(73999),h=t.n(d),u=t(54595),c=t(32104),x=t(95254),p=t(9683);const v=e=>{var i;let{avoidId:t,shouldFetch:r=!1,owner_id:n,tags:l,limit:o=15,offset:s=0}=e;const[a,d]=(0,x.useState)({data:[],total_count:0}),h=(0,x.useCallback)((()=>{(0,p.qF)({tags:l,owner_id:n,limit:o,offset:s}).then((e=>{d(e)}))}),[l,n,o,s]);return(0,x.useEffect)((()=>{r&&h()}),[h,r]),null===a||void 0===a||null===(i=a.data)||void 0===i?void 0:i.filter((e=>e.id!==t))};var g=t(92709),m=t(3630),j=t(14682),f=t(35049),w=t(14430),A=t(92876),b=t(5059),y=t(95576),k=t(97141);const _=(0,k.A)(r.A)`
49  position: sticky;
50`;var E=t(72073);const{WORKSHOP:O,WORKSHOP_RECORDING:C,B2B_WORKSHOP_PROMO:S}=E.t,L=e=>[O].includes(e),R=e=>{let{outcomes:i}=e;return!(!Array.isArray(i)||!i.length||1===i.length&&!i[0])},I=e=>{let{inclusions:i}=e;return!(!Array.isArray(i)||!i.length||1===i.length&&!i[0])},D=[O,C],P=e=>!!e&&D.includes(e),T=e=>"B2B_WORKSHOP_PROMO"===e?{name:"Marketplace",link:"/marketplace"}:{name:"Workshops",link:"/workshops"},N=e=>{if(!e)return!1;return[O,C].includes(e)},M=e=>!!e&&[S].includes(e),W=e=>[O].includes(e),H=e=>{let{type:i,shopPublisherBio:t,publisherDescription:r}=e;return i?[S].includes(i)&&null!==t&&void 0!==t?t:r:""},{WORKSHOP:F}=E.t,B=[F],V=e=>{let{recommendation:i,workshop:t,isUnavailable:r}=e;return!(!i||!t||r||!B.includes(null===t||void 0===t?void 0:t.type))};var G=t(4021),U=t(15507),$=t(64714),Y=t(88335),K=t(58739),z=t(31205),q=t(89728),Z=t(64582);const X=e=>(0,Z.jsx)(q.D,{as:"h2",fontSize:["20px","20px","20px","24px"],lineHeight:["23px","23px","23px","34px"],fontWeight:500,color:"neutral.700",...e}),J=e=>{let{excludeWorkshopId:i,workshopOwnerId:t}=e;const[r,n]=(0,x.useState)([]),{featuredB2BWorkshopPromoList:l,isLoading:o}=(0,K.A)(),{workshopList:s,isWorkshopListLoading:a}=(0,z.A)({owner_ids:[t],product_types:["B2B_WORKSHOP_PROMO"],limit:10}),d=o||a;return(0,x.useEffect)((()=>{let e=null!==s&&void 0!==s?s:[];const t={};e=e.concat(null!==l&&void 0!==l?l:[]),e=e.filter((e=>e.id!==i&&!t[e.id]&&(t[e.id]=!0,!0))),n(e)}),[s,l,i]),(0,Z.jsxs)(G.a,{width:"100%",paddingX:["30px","30px","30px","unset"],overflowX:"hidden",paddingTop:"6px",children:[(0,Z.jsx)(G.a,{display:"flex",justifyContent:"space-between",children:(0,Z.jsx)(X,{children:"You may also like"})}),(0,Z.jsx)(G.a,{height:"23px"}),d?(0,Z.jsx)(G.a,{display:"flex",justifyContent:"center",children:(0,Z.jsx)(U.P,{})}):(0,Z.jsx)(w.aY,{children:(0,Z.jsx)($.A,{buttonTop:["-30px","-30px","-30px","-40px"],spaceBetween:[14,14,13,13],overflow:"visible",children:null===r||void 0===r?void 0:r.map((e=>(0,Z.jsx)(G.a,{width:["calc(100% - 14px)","calc((100% - 14px) / 2)","calc((100% - 26px) / 3)"],children:(0,Z.jsx)(Y.A,{b2bWorkshop:e})},e.id)))})})]})};var Q=t(75696),ee=t(6547),ie=t(38491);const te=async()=>{var e,i;const t=await ie.default.get("https://featured-lists.insighttimer.com/workshops/data/en/featured_list.json"),r=null!==(e=null===t||void 0===t?void 0:t.data)&&void 0!==e?e:{},n=h()().valueOf(),l=null===r||void 0===r||null===(i=r.items)||void 0===i?void 0:i.filter((e=>{var i,t;const{start_date:r,type:l}=null!==(i=null===e||void 0===e||null===(t=e.item_summary)||void 0===t?void 0:t.shop_product_summary)&&void 0!==i?i:{};return h()(null===r||void 0===r?void 0:r.epoch).isAfter(n)&&"WORKSHOP"===l}));return null===l||void 0===l?void 0:l.map((e=>{var i;return null===e||void 0===e||null===(i=e.item_summary)||void 0===i?void 0:i.shop_product_summary}))},re=e=>{const{data:i,error:t,isValidating:r}=(0,m.Ay)("workshop_featured_list",te),n=!i&&!t&&r;return{featuredWorkshopList:null===i||void 0===i?void 0:i.filter((i=>!e||i.id!==e)),isLoading:n,error:t}},ne=(0,x.createContext)({isUnavailable:!1,occurrences:[],isOccurrencesLoading:!1,isEventLoading:!1,eventDetails:void 0,hasSeatAvailable:!0,recommendations:null,isWorkshopInProgress:!1}),le=()=>{const e=(0,x.useContext)(ne);if(!e)throw new Error("useWorkshopEventOccurrenceContext must be used inside WorkshopEventOccurrenceContextProvider");return e},oe=ne;var se=t(5097);const ae=(0,k.A)(r.A)`
51  width: 100%;
52  height: auto;
53
54  @media (max-width: 768px) {
55    width: calc(100% - 30px);
56  }
57
58  @media (min-width: 768px) {
59    width: calc((100% - 13px) / 2);
60  }
61
62  @media (min-width: 1020px) {
63    width: calc((100% - 26px) / 3);
64  }
65`,de=()=>{const{productId:e}=(0,g.g)(),{featuredWorkshopList:i,isLoading:t}=re(e);return(0,Z.jsxs)(r.A,{width:"100%",children:[(0,Z.jsx)(r.A,{display:"flex",justifyContent:"space-between",paddingLeft:"30px",paddingRight:"30px",children:(0,Z.jsx)(X,{children:(0,Z.jsx)(Q.x6,{id:"You may also like"})})}),(0,Z.jsx)(r.A,{height:"23px"}),t?(0,Z.jsx)(r.A,{display:"flex",justifyContent:"center",children:(0,Z.jsx)(ee.A,{})}):(0,Z.jsx)(r.A,{paddingLeft:"30px",paddingRight:"30px",overflow:"hidden",children:(0,Z.jsx)(w.CT,{children:(0,Z.jsx)($.A,{spaceBetween:[14,14,13,13],buttonTop:"-35px",overflow:"visible",children:null===i||void 0===i?void 0:i.map((e=>(0,Z.jsx)(ae,{children:(0,Z.jsx)(se.A,{workshop:e})},e.id)))})})})]})},he=()=>{const{recommendations:e}=le();return(0,Z.jsxs)(r.A,{width:"100%",children:[(0,Z.jsx)(r.A,{display:"flex",justifyContent:"space-between",children:(0,Z.jsx)(X,{children:"You may also like"})}),(0,Z.jsx)(r.A,{height:"16px"}),e?(0,Z.jsx)(r.A,{width:"100%",children:(0,Z.jsx)(w.aY,{children:(0,Z.jsx)($.A,{spaceBetween:[14,14,13,13],buttonTop:"-35px",children:null===e||void 0===e?void 0:e.map((e=>(0,Z.jsx)(ae,{children:(0,Z.jsx)(se.A,{workshop:e})},e.id)))})})}):(0,Z.jsx)(r.A,{display:"flex",justifyContent:"center",children:(0,Z.jsx)(ee.A,{})})]})};
65var ue=t(32972),ce=t(67957),xe=t(77829),pe=t(90104);const ve=e=>{let{publisherId:i,mobileView:t}=e;const{list:r}=(0,pe.A)({publisherId:i});return(0,Z.jsxs)(G.a,{width:"100%",overflow:"hidden",paddingX:t?"30px":"unset",children:[null!==r&&void 0!==r&&r.length?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(G.a,{height:t?"30px":"44px"}),(0,Z.jsx)(ce.c,{bgColor:t?"neutral.100":"neutral.200"}),(0,Z.jsx)(G.a,{height:t?"30px":"44px"})]}):null,(0,Z.jsx)(xe.A,{title:"More from this Teacher",publisherId:i,arrowButtonTop:["-30px","-30px","-30px","-38px"]})]})};var ge=t(15263);const me=e=>(0,Z.jsx)(ge.E,{fontSize:["16px","16px","16px","18px"],lineHeight:["22px","22px","22px","24px"],fontWeight:400,color:"neutral.700",whiteSpace:"pre-wrap",...e}),je=e=>{let{waiver:i}=e;return(0,Z.jsxs)(G.a,{children:[(0,Z.jsx)(X,{children:"Additional waiver"}),(0,Z.jsx)(G.a,{height:["22px","22px","25px"]}),(0,Z.jsx)(G.a,{children:(0,Z.jsx)(me,{whiteSpace:"pre-wrap",children:i})})]})};var fe=t(32480),we=t(57409),Ae=t.n(we),be=t(25745);const ye=k.A.section`
66  width: 100%;
67  padding-bottom: 62.5%;
68  border-radius: 10px;
69  background-size: cover;
70  background-position: center;
71  background-image: ${e=>`url(${e.backgroundImage})`};
72  background-color: lightgray;
73  mix-blend-mode: ${e=>{let{hasEnded:i,notAvailable:t}=e;return i||t?"luminosity":"unset"}};
74`,ke=e=>{var i;let{publisherId:t,workshopId:r,publisherName:n,workshopTitle:l="",status:o,recordedWorkshop:s}=e;const[a,d]=(0,x.useState)(""),{isMdScreen:h}=(0,fe.A)(),u=h?"large":"medium",c=(0,be.Sy)(r,t,"rectangle",u),{eventDetails:p}=le(),v=null!==(i=!s&&(null===p||void 0===p?void 0:p.is_finished))&&void 0!==i&&i,g=!s&&("CANCELLED"===o||"PENDING"===o||"DELETED"===o);return(0,x.useEffect)((()=>{Ae()(c,(e=>{if(e)d(c);else{const e=(0,be.q5)(t,"rectangle",u);Ae()(e,(i=>{d(i?e:(0,be.q5)(t,"square",u))}))}}))}),[u,t,c]),(0,Z.jsx)(ye,{backgroundImage:a,title:`${l} - by ${n}`,hasEnded:v,notAvailable:g})},_e=()=>(0,Z.jsxs)(G.a,{children:[(0,Z.jsx)(X,{children:"Cancellation policy"}),(0,Z.jsx)(G.a,{height:["22px","22px","25px"]}),(0,Z.jsx)(me,{children:"Cancel your ticket to this Workshop up to 24 hours before its scheduled start date. Please email us at [email protected] to request a refund."})]});var Ee=t(96913);const Oe=e=>{if(!e||!e.id)return[];const{title:i,type:t}=e;return[T(t),{name:null!==i&&void 0!==i?i:""}]},Ce=e=>{let{workshopDetails:i}=e;return(0,Z.jsx)(Ee.A,{composedPath:Oe(i)})},Se=e=>{let{publisherName:i}=e;return(0,Z.jsxs)(ge.E,{fontSize:"16px",lineHeight:"22px",fontWeight:500,color:"neutral.500",children:["with ",i]})};var Le=t(38341);const Re=[p.To.CANCELLED,p.To.PENDING,p.To.DELETED],Ie=e=>Re.includes(e),De=(0,k.A)(r.A)`
75  background-color: var(--red-400);
76  color: var(--neutral-0);
77  border-radius: 5px;
78  width: 66px;
79  min-height: 20px;
80  display: flex;
81  align-items: center;
82  justify-content: center;
83`,Pe=e=>(0,Z.jsx)(De,{...e,children:(0,Z.jsx)(a.A,{textStyle:"caption1",children:(0,Z.jsx)(Q.x6,{id:"SOLD OUT"})})}),Te=e=>(0,Z.jsx)(Le.s,{borderRadius:"5px",width:"50px",height:["18px","18px","20px"],alignItems:"center",justifyContent:"center",bgColor:"var(--neutral-400)",py:"2px",...e,children:(0,Z.jsx)(ge.E,{fontSize:"11px",lineHeight:"15px",fontWeight:700,color:"var(--neutral-0)",letterSpacing:"0.01em",textTransform:"uppercase",children:(0,Z.jsx)(Q.x6,{id:"Ended"})})}),Ne=e=>(0,Z.jsx)(Le.s,{height:["18px","18px","20px","20px"],background:"var(--red-400)",px:"4px",alignItems:"center",width:"92px",whiteSpace:"nowrap",borderRadius:"5px",...e,children:(0,Z.jsx)(ge.E,{fontSize:"11px",lineHeight:"15px",fontWeight:700,textTransform:"uppercase",color:"var(--neutral-0)",children:(0,Z.jsx)(Q.x6,{id:"Not available"})})}),Me=[E.t.WORKSHOP],We=e=>{let{workshop:i,eventDetails:t,hasSeatAvailable:r}=e;const n=(l=i.type,Me.includes(l));var l;const o=n&&(null===t||void 0===t?void 0:t.is_finished),s=n&&Ie(i.status),a=n&&!o&&!r;return(0,Z.jsxs)(Le.s,{children:[a&&(0,Z.jsx)(Pe,{marginLeft:"6px"}),o&&(0,Z.jsx)(Te,{marginLeft:"6px"}),!o&&s&&(0,Z.jsx)(Ne,{marginLeft:"6px"})]})};var He,Fe,Be=t(84734),Ve=t.n(Be),Ge=t(78675),Ue=t(80330);function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},$e.apply(null,arguments)}function Ye(e,i){let{title:t,titleId:r,...n}=e;return x.createElement("svg",$e({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":r},n),t?x.createElement("title",{id:r},t):null,He||(He=x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 11C21 16.5227 16.5227 21 11 21C5.47727 21 1 16.5227 1 11C1 5.47727 5.47727 1 11 1C16.5227 1 21 5.47727 21 11Z",stroke:"#406FCB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Fe||(Fe=x.createElement("path",{d:"M7.36328 11.9096H10.9996V6.45508",stroke:"#406FCB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const Ke=x.forwardRef(Ye);t.p;var ze,qe,Ze,Xe,Je=t(98867);function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Qe.apply(null,arguments)}function ei(e,i){let{title:t,titleId:r,...n}=e;return x.createElement("svg",Qe({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":r},n),t?x.createElement("title",{id:r},t):null,ze||(ze=x.createElement("path",{d:"M12.8184 7.36328H10.0911C9.08749 7.36328 8.27295 8.17783 8.27295 9.18146C8.27295 10.1851 9.08749 10.9996 10.0911 10.9996H11.9093C12.9129 10.9996 13.7275 11.8142 13.7275 12.8178C13.7275 13.8215 12.9129 14.636 11.9093 14.636H9.18204",stroke:"#406FCB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),qe||(qe=x.createElement("path",{d:"M11 7.36408V5.5459",stroke:"#406FCB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Ze||(Ze=x.createElement("path",{d:"M11 16.4549V14.6367",stroke:"#406FCB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}
83)),Xe||(Xe=x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 11C21 16.5227 16.5227 21 11 21C5.47727 21 1 16.5227 1 11C1 5.47727 5.47727 1 11 1C16.5227 1 21 5.47727 21 11Z",stroke:"#406FCB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const ii=x.forwardRef(ei);t.p;var ti,ri,ni,li,oi,si;function ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ai.apply(null,arguments)}function di(e,i){let{title:t,titleId:r,...n}=e;return x.createElement("svg",ai({width:22,height:21,viewBox:"0 0 22 21",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":r},n),t?x.createElement("title",{id:r},t):null,ti||(ti=x.createElement("path",{d:"M17.364 19.182V17.7047C17.364 15.0102 14.5094 12.8184 11.0004 12.8184C7.49126 12.8184 4.63672 15.0102 4.63672 17.7047V19.182",stroke:"#599ACF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ri||(ri=x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0001 9.18182C13.2555 9.18182 15.091 7.34636 15.091 5.09091C15.091 2.83545 13.2555 1 11.0001 1C8.74463 1 6.90918 2.83545 6.90918 5.09091C6.90918 7.34636 8.74463 9.18182 11.0001 9.18182Z",stroke:"#599ACF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ni||(ni=x.createElement("path",{d:"M2 13C1.365 13.6003 1 14.3022 1 15.0523V17",stroke:"#599ACF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),li||(li=x.createElement("path",{d:"M20 13C20.635 13.6003 21 14.3022 21 15.0523V17",stroke:"#599ACF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),oi||(oi=x.createElement("path",{d:"M17.9004 8.65251C19.1743 8.56333 20.1823 7.51196 20.1823 6.21513C20.1823 5.28158 19.6546 4.47813 18.8863 4.06494",stroke:"#599ACF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),si||(si=x.createElement("path",{d:"M4.1011 8.65251C2.82718 8.56251 1.81836 7.51196 1.81836 6.21513C1.81836 5.28158 2.34691 4.47813 3.11437 4.06494",stroke:"#599ACF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const hi=x.forwardRef(di);t.p;var ui=t(52446),ci=t.n(ui);const xi=()=>{const e=(0,x.useRef)(null),[i,t]=(0,x.useState)(!1);return(0,x.useEffect)((()=>{const i=ci()((()=>{if(!e.current||!e.current.getBoundingClientRect)return;const i=e.current.getBoundingClientRect().y<0;t(i)}),100);return window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}}),[]),{ref:e,isElementOutOfTopSectionOfView:i}};var pi=t(95563),vi=t(97207),gi=t(63577),mi=t(84781);const{CONTACT_US_CLICKED:ji}=mi.ef,fi=e=>(0,Z.jsx)(gi.A,{clickedMetaDetails:{click_event_name:ji},children:(0,Z.jsx)(vi.$,{width:"100%",height:["50px","50px","47px"],padding:["10px 24px 15px 24px","10px 24px 15px 24px","10px 20px"],borderRadius:["12px","12px","8px"],color:"neutral.0",bgColor:"workplaceBlue.400",_hover:{color:"neutral.0",bgColor:"workplaceBlue.400"},...e,children:(0,Z.jsx)(ge.E,{fontSize:"18px",lineHeight:"25px",fontWeight:500,color:"neutral.0",children:"Enquire now"})})}),wi=e=>{let{title:i,subTitle:t,titleProps:r={},subTitleProps:n={},iconElement:l,...o}=e;return(0,Z.jsxs)(Le.s,{alignItems:"start",...o,children:[(0,Z.jsx)(G.a,{flexShrink:0,marginRight:"16px",children:l||null}),(0,Z.jsxs)(G.a,{children:[(0,Z.jsx)(q.D,{as:"h3",fontSize:"16px",lineHeight:"22px",fontWeight:500,color:"neutral.700",marginBottom:"2px",...r,children:i}),(0,Z.jsx)(q.D,{as:"h4",fontSize:"16px",lineHeight:"22px",fontWeight:400,color:"neutral.500",...n,children:t})]})]})},Ai=e=>(0,Z.jsx)(G.a,{position:"fixed",left:"0",bottom:"0px",width:"100%",padding:"19px 30px 33px 28px",bgColor:"var(--neutral-0)",display:"flex",justifyContent:"space-between",alignItems:"center",zIndex:80,borderTop:"thin solid var(--neutral-200)",...e}),bi={IN_PERSON:{icon:hi,title:"In-person workshop"},ZOOM_OR_IN_PERSON:{icon:hi,title:"Zoom or in-person"},ZOOM:{icon:Je.h,title:"Online Zoom call"}},yi=e=>{var i,t,r,n;let{mobileView:l,workshopDetails:o}=e;const{event_type:s,price_text:a,duration_text:d}=o,{ref:h,isElementOutOfTopSectionOfView:u}=xi(),{isOpen:c,onOpen:x,onClose:p}=(0,Ge.j)(),v=`I'd like to enquire about ${null===(i=o.owner)||void 0===i?void 0:i.name}'s workshop ${o.title} for my team.`,g=s?bi[s]:void 0;return(0,Z.jsxs)(G.a,{children:[(0,Z.jsxs)(G.a,{paddingLeft:"10px",children:[(0,Z.jsx)(wi,{title:null!==(t=null===g||void 0===g?void 0:g.title)&&void 0!==t?t:"",subTitle:"Format",iconElement:(0,Z.jsx)(Ue.I,{as:null===g||void 0===g?void 0:g.icon,fill:"transparent",width:"20px",height:"20px",css:"\n                path {\n                  stroke: var(--chakra-colors-workplaceBlue-400);\n                }\n              "})}),d?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(G.a,{height:"28px"}),(0,Z.jsx)(wi,{title:d,subTitle:"Duration",iconElement:(0,Z.jsx)(Ue.I,{as:Ke,width:"20px",height:"20px"})})]}):null,a&&g?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(G.a,{height:"28px"}),(0,Z.jsx)(wi,{title:a,subTitle:"Price",iconElement:(0,Z.jsx)(Ue.I,{as:ii,width:"20px",height:"20px"})})]}):null]}),(0,Z.jsx)(G.a,{height:"36px"}),(0,Z.jsx)("div",{ref:h,children:(0,Z.jsx)(fi,{onClick:()=>{x()}})}),l&&u&&(0,Z.jsx)(Ai,{children:(0,Z.jsx)(fi,{onClick:()=>{x()}})}),(0,Z.jsx)(pi.A,{isOpen:c,initialFormValues:{description:v},additionalDetails:{workshop_id:o.id,workshop_title:o.title,workshop_owner_id:null===(r=o.owner)||void 0===r?void 0:r.id,workshop_owner_name:null===(n=o.owner)||void 0===n?void 0:n.name},onClose:()=>{p()}})]})},ki=e=>{let{mobileView:i,...t}=e;return(0,Z.jsx)(G.a,{bgColor:i?"transparent":"neutral.50",borderRadius:i?"unset":"12px",width:i?"100%":"346px",minHeight:i?"280px":"350px",overflow:i?"auto":"hidden",...t})};var _i=t(46477);const Ei=e=>
83{let{originalPrice:i,currency:t,...r}=e;return(0,Z.jsx)(Le.s,{flexDirection:"column",alignItems:"center",...r,children:(0,Z.jsxs)(G.a,{maxWidth:"155px",display:"flex",flexDirection:"column",alignItems:"flex-end",children:[(0,Z.jsx)(G.a,{height:"10px"}),(0,Z.jsxs)(G.a,{display:"flex",justifyContent:"center",children:[(0,Z.jsx)(ge.E,{fontSize:"14px",lineHeight:"19px",fontWeight:500,color:"neutral.500",children:"Original price"}),(0,Z.jsx)(G.a,{width:"5px"}),(0,Z.jsx)(ge.E,{fontSize:"14px",lineHeight:"19px",fontWeight:500,color:"neutral.500",className:"crossed grey",children:` ${(0,_i.A)({amount:i,currency:t})}${t}`})]}),(0,Z.jsx)(G.a,{height:"6px"}),(0,Z.jsx)(se.n,{})]})})};var Oi=t(1063),Ci=t(77695);const Si=(0,k.A)(Ci.A)`
84  .video-player-wrapper {
85    border-radius: 12px;
86  }
87
88  .action-btn {
89    border-radius: 10px;
90    width: 28px;
91    height: 28px;
92  }
93
94  .video-fullscreen-minimize-btn {
95    display: none;
96  }
97`,Li=(0,k.A)(Oi.A)`
98  width: 18px;
99  height: 18px;
100  border-radius: 50%;
101  border: 2px solid var(--neutral-0);
102`,Ri=e=>{let{videoUrl:i,owner:t}=e;const{id:n,name:l,has_avatar:o}=null!==t&&void 0!==t?t:{},s=n&&o?(0,be.q5)(n,"square","medium"):"";return(0,Z.jsx)(r.A,{width:"100%",bgcolor:"var(--neutral-200)",borderRadius:"12px",children:i?(0,Z.jsx)(Si,{src:i,renderLeftSectionOfControllers:()=>(0,Z.jsxs)(r.A,{flexGrow:1,display:"flex",justifyContent:"start",alignItems:"center",children:[(0,Z.jsx)(r.A,{marginRight:"6px",marginTop:"2px",children:(0,Z.jsx)(Li,{src:s})}),(0,Z.jsx)(a.A,{textStyle:"p2Regular",letterSpacing:"-0.01em",color:"var(--neutral-0)",children:l})]})}):null})},Ii=e=>{let{videoUrl:i}=e;return(0,Z.jsx)(r.A,{position:"relative",children:(0,Z.jsx)(Ci.A,{src:i})})};var Di=t(49891);const Pi=e=>{let{workshop:i,videoUrl:t,originalPrice:r,currency:n,mobileView:l,...o}=e;const{showDiscount:s}=(0,Di.r)();return(0,Z.jsxs)(ki,{mobileView:l,minHeight:l?"280px":"300px",...o,children:[!l&&(0,Z.jsx)(G.a,{height:t?"194px":"auto",children:t&&(0,Z.jsx)(Ii,{videoUrl:t})}),(0,Z.jsxs)(G.a,{padding:l?"unset":"38px 26px 26px 25px",children:[(0,Z.jsx)(yi,{mobileView:l,workshopDetails:i}),s&&(0,Z.jsx)(Ei,{currency:n,originalPrice:r})]})]})};var Ti=t(50055);const Ni=e=>{let{showDiscount:i,discount:t,price:r}=e;if(!(0,Ti.A)(r))return null;let n=r;return i&&(0,Ti.A)(t)&&(n=(1-t)*r),n};var Mi=t(7869),Wi=t(41485),Hi=t(54541),Fi=t(6753),Bi=t(23637),Vi=t(2905);const Gi=e=>{let{workshopId:i,btnText:t="Go to workshop",...r}=e;const n=(0,g.W6)();return(0,Z.jsx)(vi.$,{width:"100%",minHeight:"50px",display:"flex",alignItems:"center",justifyContent:"center",padding:"10px 10px 12px 10px",borderRadius:"12px",bgColor:"#ecf2f9",color:"var(--blue-400)",onClick:()=>{n.push(`/my-workshops/${i}`)},...r,children:(0,Z.jsxs)(ge.E,{fontSize:"18px",lineHeight:"25px",fontWeight:500,children:["Purchased \xb7 ",t]})})},Ui=e=>{var i,t;let{workshopDetails:r,showPrice:n=!0,...l}=e;const{prices:o,id:s}=r,a=null!==(i=Ve()(o,(e=>{let{price:i}=e;return i})))&&void 0!==i?i:0,d=null===o||void 0===o||null===(t=o[0])||void 0===t?void 0:t.currency,{isFetchingUserWorkshopRelation:h,userAndWorkshopRelation:u,revalidateUserWorkshopRelation:x}=(0,Bi.A)({workshopId:s}),{is_purchased:p}=null!==u&&void 0!==u?u:{},{authState:v,isLoading:g}=(0,c.t7)(),{showLoginPopup:m}=(0,Hi.YF)(),{showDiscount:j,queryObject:f,discount:w}=(0,Di.r)(),{loading:A,generateAndGetCheckoutSessionId:b}=(0,Fi.A)(),{width:y}=l,k=a>0,{registerUserForFreeWorkshop:_,freeWorkshopRegistrationInProgress:E}=(0,Vi.A)(),O=k&&n&&(0,Ti.A)(a)&&d,C=g||h||E||A;if(p)return(0,Z.jsx)(Gi,{workshopId:s,width:y?`${y} !important`:"100%",btnText:"Go to recording"});return(0,Z.jsx)(vi.$,{height:"50px",width:"100%",borderRadius:"10px",padding:"10px 20px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"secondary.workshop",_hover:{backgroundColor:"secondary.workshop",color:"white"},disabled:C,...l,onClick:async()=>{if(!C)if(v!==c.kj.UNAUTHORIZED&&u)if(k){var e;const i=await b({action:"CREATE",owner_id:null===(e=r.owner)||void 0===e?void 0:e.id,shop_product_id:r.id,...j&&f?f:{}});if(!i||!i.id)return;window.location.href=i.url}else(()=>{var e;_({action:"COMPLETE",owner_id:null===(e=r.owner)||void 0===e?void 0:e.id,shop_product_id:r.id}).then((()=>{x()})).catch((e=>{(0,Wi.A)({toastContent:e})}))})();else m()},children:C?(0,Z.jsx)(Mi.y,{size:"md",color:"neutral.700"}):(0,Z.jsxs)(ge.E,{fontSize:"18px",lineHeight:"25px",fontWeight:500,color:"white",children:[k?"Purchase ":"Free Recording",O?(0,Z.jsxs)(Z.Fragment,{children:[(0,_i.A)({amount:j&&w?(1-w)*a:a,currency:d}),null!==d&&void 0!==d?d:""]}):null]})})};var $i,Yi=t(12629);function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Ki.apply(null,arguments)}function zi(e,i){let{title:t,titleId:r,...n}=e;return x.createElement("svg",Ki({viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":r},n),t?x.createElement("title",{id:r},t):null,$i||($i=x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7328 20.8399L11.0255 18.2162C11.0128 18.209 10.9964 18.209 10.9828 18.2162L6.27909 20.8444C5.36272 21.3562 4.28999 20.5308 4.46453 19.4462L5.3609 13.8853C5.36363 13.8689 5.35817 13.8526 5.34727 13.8417L1.33724 9.69709C0.677239 9.01436 1.04088 7.82617 1.95179 7.68435L7.49091 6.82798C7.50546 6.82525 7.5191 6.81525 7.52546 6.80162L9.87638 1.73977C10.3337 0.753399 11.6591 0.753399 12.1173 1.73886L14.4728 6.79798C14.4791 6.81252 14.4928 6.82252 14.5073 6.82434
102L20.0464 7.67617C20.9583 7.81617 21.3228 9.00435 20.6637 9.68709L16.6582 13.8362C16.6464 13.848 16.6419 13.8635 16.6446 13.8798L17.5455 19.4399C17.7219 20.5244 16.6501 21.3508 15.7328 20.8399Z",stroke:"#599ACF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const qi=x.forwardRef(zi),Zi=(t.p,e=>{let{star:i,rating:t,iconStrokeColor:r}=e;return(0,Z.jsx)(wi,{iconElement:(0,Z.jsx)(Ue.I,{as:qi,width:"20px",height:"20px",css:`\n            path {\n              stroke: ${null!==r&&void 0!==r?r:'"var(--chakra-colors-blue-400)"'};\n            }\n          `}),title:`${i} ${i>1?"stars":"star"}`,subTitle:`${t} ${t>1?"ratings":"rating"}`})});var Xi,Ji;function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Qi.apply(null,arguments)}function et(e,i){let{title:t,titleId:r,...n}=e;return x.createElement("svg",Qi({viewBox:"0 0 24 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":r},n),t?x.createElement("title",{id:r},t):null,Xi||(Xi=x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.008 17H2.992C1.893 17 1 16.108 1 15.007V2.993C1 1.892 1.893 1 2.992 1H15.008C16.108 1 17 1.892 17 2.993V15.007C17 16.108 16.108 17 15.008 17Z",stroke:"#599ACF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Ji||(Ji=x.createElement("path",{d:"M17 6L23 3V15L17 12",stroke:"#599ACF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const it=x.forwardRef(et),tt=(t.p,e=>{let{summaryHeader:i,summaryText:t}=e;return(0,Z.jsxs)(Le.s,{alignItems:"start",children:[(0,Z.jsx)(G.a,{flexShrink:0,marginRight:"16px",marginTop:"1px",children:(0,Z.jsx)(Ue.I,{as:it,width:"22px",height:"16px"})}),(0,Z.jsxs)(G.a,{children:[(0,Z.jsx)(q.D,{as:"h3",fontSize:"16px",lineHeight:"22px",fontWeight:500,color:"neutral.700",marginBottom:"2px",children:i}),(0,Z.jsx)(q.D,{as:"h4",fontSize:"16px",lineHeight:"22px",fontWeight:400,color:"neutral.500",children:t})]})]})}),rt=e=>{let{workshopDetails:i,mobileView:t}=e;const{id:r,recording_summary_header:n,recording_summary_text:l,recording_rating_stars:o,recording_rating_number:s}=i,a=!(!n||!(0,Ti.A)(o)),{ref:d,isElementOutOfTopSectionOfView:h}=xi(),{totalPrice:u,currency:c,isPaidWorkshop:x}=(0,Yi.A)(),{showDiscount:p,discount:v}=(0,Di.r)(),g=Ni({price:u,showDiscount:p,discount:v}),{userAndWorkshopRelation:m}=(0,Bi.A)({workshopId:r}),j=null===m||void 0===m?void 0:m.is_purchased,f=(0,Ti.A)(g)&&c&&!j;return(0,Z.jsxs)(G.a,{children:[n&&l&&(0,Z.jsx)(tt,{summaryHeader:n,summaryText:l}),a&&(0,Z.jsx)(G.a,{height:"28px"}),o&&s&&(0,Z.jsx)(Zi,{star:o,rating:s}),(0,Z.jsx)(G.a,{height:"36px"}),(0,Z.jsx)("div",{ref:d,children:(0,Z.jsx)(Ui,{workshopDetails:i})}),h&&t?(0,Z.jsxs)(Ai,{children:[f&&x?(0,Z.jsxs)(ge.E,{fontSize:"18px",lineHeight:"23px",fontWeight:700,alignSelf:"center",children:[(0,_i.A)({amount:g,currency:c})," ",c]}):null,(0,Z.jsx)(Ui,{workshopDetails:i,width:!x||j?"100%":"152px",showPrice:!1})]}):null]})},nt=e=>{let{videoUrl:i,originalPrice:t,currency:r,workshopDetails:n,mobileView:l,...o}=e;const{showDiscount:s}=(0,Di.r)();return(0,Z.jsxs)(ki,{mobileView:l,minHeight:l?"210px":"250px",...o,children:[!l&&(0,Z.jsx)(G.a,{height:i?"194px":"auto",children:i&&(0,Z.jsx)(Ii,{videoUrl:i})}),(0,Z.jsxs)(G.a,{padding:l?"unset":"26px 26px 26px 25px",children:[(0,Z.jsx)(rt,{mobileView:l,workshopDetails:n}),s&&(0,Z.jsx)(Ei,{currency:r,originalPrice:t})]})]})};var lt,ot=t(56087),st=t(83395),at=t(58488),dt=t(39046);function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ht.apply(null,arguments)}function ut(e,i){let{title:t,titleId:r,...n}=e;return x.createElement("svg",ht({width:14,height:10,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":r},n),t?x.createElement("title",{id:r},t):null,lt||(lt=x.createElement("path",{d:"M1 4.42857L5.28571 8.71429L13 1",stroke:"#599ACF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const ct=x.forwardRef(ut),xt=(t.p,e=>{let{checkIconVisible:i,text:t,...r}=e;return(0,Z.jsxs)(G.a,{width:"100%",minHeight:"50px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"12px",padding:"10px 24px 15px",...r,children:[i&&(0,Z.jsx)(G.a,{display:"inline-block",marginRight:"7px",children:(0,Z.jsx)(ct,{color:"var(--blue-400)"})}),(0,Z.jsx)(ge.E,{fontSize:"18px",lineHeight:"25px",fontWeight:500,children:t})]})}),pt=(0,k.A)(st.A)`
103  background-color: var(--blue-400);
104  color: var(--neutral-0);
105  width: 100%;
106  min-height: 50px;
107  padding: 10px 20px;
108  border-radius: 8px;
109  display: flex;
110  justify-content: center;
111  align-items: center;
112
113  &:hover {
114    background-color: var(--blue-400);
115    opacity: 0.9;
116  }
117
118  &:disabled {
119    color: var(--neutral-0);
120    opacity: 0.5;
121  }
122`,vt=(0,k.A)(pt)`
123  padding: 10px 20px;
124  border-radius: 8px;
125`,gt=(0,k.A)(pt)`
126  padding: 10px 20px;
127  border-radius: 8px;
128
129  @media (max-width: 768px) {
130    padding: 10px 24px 15px;
131    border-radius: 12px;
132  }
133`;function mt(e){let{hideFreeLabelAndPrice:i,showDiscount:t,discount:n}=e;const{publisherSlug:l,productId:o}=(0,g.g)(),s=(0,g.W6)(),{authState:d}=(0,c.t7)(),{showLoginPopup:h}=(0,Hi.YF)(),{hasSeatAvailable:u,totalPrice:p,currency:v,isLoading:m,isPaidWorkshop:j,eventDetails:f,isWorkshopInProgress:w,isDeleted:A,isPending:b,isCancelled:k}=(0,y.A)({publisherSlug:l,productId:o}),{isFetchingUserWorkshopRelation:_,userAndWorkshopRelation:E}=(0,Bi.A)({workshopId:o}),{is_purchased:O}=null!==E&&void 0!==E?E:{},C=(0,x.useRef)({isBookNowBtnClicked:!1}),S=m||_,{is_finished:L=!1}
133=null!==f&&void 0!==f?f:{},R=(e=>{const{isCancelled:i,isDeleted:t,isPending:r,isFinished:n,isSoldOut:l,isWorkshopInProgress:o}=null!==e&&void 0!==e?e:{},s={disabledBtnText:"",bgcolor:"var(--neutral-200)",color:"var(--neutral-500)"};return i||t?(s.disabledBtnText="Cancelled",s):n?(s.disabledBtnText="Ended",s):r&&dt.KV?(s.disabledBtnText="Currently unavailable",s):l?(s.disabledBtnText="Sold out",s.color="var(--neutral-0)",s.bgcolor="var(--red-400)",s):o?(s.disabledBtnText="In progress",s):s})({isFinished:L,isCancelled:k,isDeleted:A,isPending:b,isSoldOut:!u,isWorkshopInProgress:w}),I=k||A||L||b&&dt.KV||!u||w,D=(e=>{const{isPurchased:i,isFinished:t,isCancelled:r,isDeleted:n}=e;return!(t||r||n)&&!!i})({isFinished:L,isPurchased:O,isCancelled:k,isDeleted:A}),P=(0,g.zy)(),T=`/${l}/workshops/${o}/terms-of-service`,N=t?(e=>`${e}${P.search}`)(T):T;if((0,x.useEffect)((()=>{const{isBookNowBtnClicked:e}=C.current;d===c.kj.AUTHORIZED&&e&&(S||null!==E&&void 0!==E&&E.is_purchased||!u||(C.current.isBookNowBtnClicked=!1,s.push(N)))}),[s,u,d,E,S,o,l,N]),S)return(0,Z.jsx)(vt,{disabled:!0,children:(0,Z.jsx)(r.A,{color:"var(--neutral-0)",display:"flex",justifyContent:"center",alignItems:"center",children:(0,Z.jsx)(ee.A,{size:20,color:"inherit"})})});if(O&&o)return(0,Z.jsx)(Gi,{workshopId:o});if(I)return(0,Z.jsx)(xt,{bgColor:R.bgcolor,color:R.color,text:R.disabledBtnText,checkIconVisible:D});const M=()=>{m||(C.current.isBookNowBtnClicked=!0,d!==c.kj.UNAUTHORIZED?s.push(N):h())};return j?(0,Z.jsx)(vt,{disabled:m||L,onClick:M,children:(0,Z.jsxs)(a.A,{textStyle:"subHeadingMedium",lineHeight:"25px",children:[(0,Z.jsx)(Q.x6,{id:"Purchase"}),i?null:` ${(0,_i.A)({amount:t&&n?(1-n)*p:p,currency:v})}${v}`]})}):(0,Z.jsx)(gt,{disabled:m||L,onClick:M,children:(0,Z.jsxs)(a.A,{textStyle:"subHeadingMedium",lineHeight:"25px",display:"flex",alignItems:"center",justifyContent:"center",children:[i?null:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Q.x6,{id:"Free"}),(0,Z.jsx)(at.A,{marginLeft:"3px",marginRight:"3px"})]}),(0,Z.jsx)(Q.x6,{id:"Reserve my spot"})]})})}const jt=e=>{var i;let{showDiscount:t=!1,discount:n}=e;const{isLoading:l,workshopDetails:o,isPaidWorkshop:s,totalPrice:d,currency:h,hasSeatAvailable:u,eventDetails:c,isWorkshopInProgress:x,isCancelled:p,isPending:v,isDeleted:g}=(0,Yi.A)(),{isFetchingUserWorkshopRelation:m,userAndWorkshopRelation:j}=(0,Bi.A)({workshopId:null!==(i=null===o||void 0===o?void 0:o.id)&&void 0!==i?i:""});if(l||m)return(0,Z.jsx)(r.A,{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",color:"var(--neutral-700)",children:(0,Z.jsx)(ee.A,{size:16})});if(!o)return null;const f=!u||(null===j||void 0===j?void 0:j.is_purchased)||(null===c||void 0===c?void 0:c.is_finished)||x||p||v||g;return(0,Z.jsxs)(r.A,{width:"100%",display:"flex",justifyContent:"space-between",children:[f?null:(0,Z.jsx)(r.A,{marginRight:"10px",alignSelf:"center",children:(0,Z.jsx)(a.A,{textStyle:"subHeadingBold",color:"var(--neutral-700)",children:s?(0,Z.jsx)(Z.Fragment,{children:`${(0,_i.A)({currency:h,amount:t?d*(1-n):d})} ${h}`}):(0,Z.jsx)(Q.x6,{id:"Free"})})}),(0,Z.jsx)(r.A,{minWidth:"152px",flexGrow:f?1:0,children:(0,Z.jsx)(mt,{hideFreeLabelAndPrice:!0,showDiscount:t,discount:n})})]})},ft=mt,wt=e=>(0,Z.jsx)(G.a,{bgColor:"neutral.200",borderRadius:"10px",width:"100%",...e});var At=t(35448),bt=t.n(At),yt=t(74756),kt=t(52835);function _t(e){let i=0;
133return(null!==e&&void 0!==e?e:[]).forEach((e=>{i+=function(e){var i,t,r;const{start_date:n,end_date:l}=null!==e&&void 0!==e?e:{},o=null!==(i=h()(null===n||void 0===n?void 0:n.epoch))&&void 0!==i?i:0,s=(null!==(t=h()(null===l||void 0===l?void 0:l.epoch))&&void 0!==t?t:0).diff(o);return null!==(r=h().duration(s).asHours())&&void 0!==r?r:0}(e)})),Number(i.toFixed(2))}function Et(e){var i,t,r;const n=null!==(i=e[0])&&void 0!==i?i:{};return{startTime:h()(null===n||void 0===n||null===(t=n.start_date)||void 0===t?void 0:t.epoch),endTime:h()(null===n||void 0===n||null===(r=n.end_date)||void 0===r?void 0:r.epoch)}}h().extend(bt());const Ot=function(){var e;const{occurrences:i,isOccurrencesLoading:t}=le(),n=null!==(e=i.length)&&void 0!==e?e:0,l=_t(null!==i&&void 0!==i?i:[]),{startTime:o,endTime:s}=Et(i);return t?(0,Z.jsxs)(r.A,{display:"flex",children:[(0,Z.jsx)(r.A,{marginRight:"17px",children:(0,Z.jsx)(wt,{width:"20px",height:"20px",bgColor:"var(--neutral-200)"})}),(0,Z.jsxs)(r.A,{flexGrow:1,children:[(0,Z.jsx)(wt,{height:"22px",bgColor:"var(--neutral-200)",marginBottom:"2px"}),(0,Z.jsx)(wt,{height:"22px",bgColor:"var(--neutral-200)"})]})]}):n<2?(0,Z.jsxs)(r.A,{display:"flex",children:[(0,Z.jsx)(r.A,{marginRight:"17px",paddingTop:"5px",children:(0,Z.jsx)(kt.h,{fill:"transparent",width:"20px",height:"20px"})}),(0,Z.jsxs)(r.A,{children:[(0,Z.jsx)(r.A,{children:(0,Z.jsxs)(a.A,{textStyle:"p1Medium",lineHeight:"22px",color:"var(--neutral-700)",children:[o.format((0,yt.QZ)(null===(d=i[0])||void 0===d||null===(u=d.start_date)||void 0===u?void 0:u.epoch)?"MMMM DD":"MMM DD YYYY"),", ",o.format("hh:mm a")," - ",s.format("hh:mm a")]})}),(0,Z.jsx)(r.A,{height:"2px"}),(0,Z.jsx)(r.A,{children:(0,Z.jsxs)(a.A,{textStyle:"p1Regular",lineHeight:"22px",color:"var(--neutral-500)",children:[1===n?`${n} day, `:`${n} days, `,1===l?`${l} hour Workshop`:`${l} hours Workshop`]})})]})]}):(0,Z.jsx)(r.A,{children:(0,Z.jsxs)(r.A,{display:"flex",children:[(0,Z.jsx)(r.A,{marginRight:"17px",paddingTop:"5px",children:(0,Z.jsx)(kt.h,{fill:"transparent",width:"20px",height:"20px"})}),(0,Z.jsxs)(r.A,{children:[(0,Z.jsxs)(r.A,{display:"flex",children:[(0,Z.jsx)(a.A,{textStyle:"p1Medium",color:"var(--neutral-700)",children:1===n?`${n} day Workshop`:`${n} days Workshop`}),(0,Z.jsx)(r.A,{display:"inline-block",marginLeft:"5px",marginRight:"2px",alignSelf:"center",children:(0,Z.jsx)(at.A,{})}),"\xa0",(0,Z.jsx)(a.A,{textStyle:"p1Medium",color:"var(--neutral-700)",children:`${l} hr total`})]}),(0,Z.jsx)(r.A,{height:"2px"}),(0,Z.jsx)(r.A,{children:i.map(((e,t)=>{const{start_date:n,end_date:l}=null!==e&&void 0!==e?e:{},o=h()(null===n||void 0===n?void 0:n.epoch),s=h()(null===l||void 0===l?void 0:l.epoch);return(0,Z.jsxs)(r.A,{children:[(0,Z.jsxs)(a.A,{textStyle:"p1Regular",color:"var(--neutral-500)",children:[o.format((0,yt.QZ)(null===n||void 0===n?void 0:n.epoch)?"MMM DD":"MMM DD YYYY"),", ",o.format("hh:mm a")," -"," ",s.format("hh:mm a")]}),t<i.length-1&&(0,Z.jsx)(r.A,{height:"2px"})]},`${null===n||void 0===n?void 0:n.epoch}_${null===l||void 0===l?void 0:l.epoch}`)}))})]})]})});var d,u},Ct=e=>{let{maximumNumberOfAttendees:i}=e;return(0,Z.jsxs)(r.A,{display:"flex",children:[(0,Z.jsx)(r.A,{marginRight:"17px",paddingTop:"5px",children:(0,Z.jsx)(hi,{fill:"transparent",width:"20px",height:"18px"})}),(0,Z.jsxs)(r.A,{children:[(0,Z.jsx)(r.A,{children:(0,Z.jsxs)(a.A,{textStyle:"p1Medium",color:"var(--neutral-700)",children:[null!==i&&void 0!==i?i:0,"\xa0",(0,Z.jsx)(Q.x6,{id:"people only"})]})}),(0,Z.jsx)(r.A,{height:"2px"}),(0,Z.jsx)(r.A,{children:(0,Z.jsx)(a.A,{textStyle:"p1Regular",color:"var(--neutral-500)",children:(0,Z.jsx)(Q.x6,{id:"Limited spots available"})})})]})]})};var St=t(7104),Lt=t.n(St);const Rt=function(e){let{eventOccurrence:i}=e;const{type:t}=i;return(0,Z.jsxs)(r.A,{display:"flex",children:[(0,Z.jsx)(r.A,{marginRight:"17px",paddingTop:"5px",children:(0,Z.jsx)(Je.h,{fill:"transparent",width:"20px",height:"20px"})}),(0,Z.jsxs)(r.A,{children:[(0,Z.jsx)(r.A,{children:(0,Z.jsx)(a.A,{textStyle:"p1Medium",color:"var(--neutral-700)",children:(0,Z.jsx)(Q.x6,{id:"Online Video Call"})})}),(0,Z.jsx)(r.A,{height:"2px"}),(0,Z.jsx)(r.A,{children:(0,Z.jsxs)(a.A,{textStyle:"p1Regular",color:"var(--neutral-500)",children:[(0,Z.jsx)(Q.x6,{id:"Meet your host live on"}),"\xa0",t?Lt()(t):null]})})]})]})},It=e=>{var i,t;let{maximumNumberOfAttendees:r,eventDetails:n,showDiscount:l,discount:o,isMobile:s}=e;const{ref:a,isElementOutOfTopSectionOfView:d}=xi();return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ot,{}),(0,Z.jsx)(G.a,{height:"28px"}),(0,Z.jsx)(Ct,{maximumNumberOfAttendees:r}),(0,Z.jsx)(G.a,{height:"28px"}),null!==n&&void 0!==n&&null!==(i=n._next_occurrences)&&void 0!==i&&i[0]?(0,Z.jsx)(Rt,{eventOccurrence:null===n||void 0===n||null===(t=n._next_occurrences)||void 0===t?void 0:t[0]}):null,(0,Z.jsx)(G.a,{height:"36px"}),(0,Z.jsx)("div",{ref:a,children:(0,Z.jsx)(ft,{showDiscount:l,discount:o})}),s&&d&&(0,Z.jsx)(Ai,{children:(0,Z.jsx)(jt,{showDiscount:l,discount:o})})]})};var Dt,Pt,Tt,Nt,Mt;function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Wt.apply(null,arguments)}function Ht(e,i){let{title:t,titleId:r,...n}=e;return x.createElement("svg",Wt({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,"aria-labelledby":r},n),t?x.createElement("title",{id:r},t):null,Dt||(Dt=x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 23H3C1.896 23 1 22.104 1 21V5C1 3.896 1.896 3 3 3H21C22.104 3 23 3.896 23 5V21C23 22.104 22.104 23 21 23Z",stroke:"#599ACF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Pt||(Pt=x.createElement("path",{d:"M6 1V6",stroke:"#599ACF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Tt||(Tt=x.createElement("path",{d:"M9 11L15 17",stroke:"#599ACF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Nt||(Nt=x.createElement("path",{d:"M9 17L15 11",stroke:"#599ACF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Mt||(Mt=x.createElement("path",{d:"M18 1V6",stroke:"#599ACF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const Ft=x.forwardRef(Ht);t.p;let Bt=function(e){return e[e.ended=0]="ended",e[e.unavailable=1]="unavailable",e[e.inProgress=2]="inProgress",e}({});const Vt=(0,k.A)(pt)`
134  padding: 10px 20px 15px;
135  border-radius: 8px;
136  width: 293px;
137  height: 50px;
138
139  @media (max-width: 960px) {
140    display: block;
141    width: 100%;
142    height: 47px;
143    margin: 0 auto;
144    text-align: center;
145  }
146`,Gt=k.A.div`
147  width: 100%;
148`;function Ut(){return(0,Z.jsx)(Vt,{href:"/workshops",children:(0,Z.jsx)(a.A,{textStyle:"subHeadingMedium",lineHeight:"22px",children:(0,Z.jsx)(Q.x6,{id:"Browse Workshops"})})})}function $t(e){let{text:i,...t}=e;return(0,Z.jsxs)(r.A,{width:"346px",minHeight:"153px",bgcolor:"var(--neutral-50)",borderRadius:"12px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"27px",...t,children:[(0,Z.jsxs)(r.A,{width:"100%",display:"flex",flexDirection:"row",alignItems:"center",paddingLeft:"8px",children:[(0,Z.jsx)(r.A,{height:"22px",width:"22px",children:(0,Z.jsx)(Ft,{width:"100%"})}),(0,Z.jsx)(r.A,{width:"15px"}),(0,Z.jsx)(a.A,{textStyle:"p1Medium",children:i})]}),(0,Z.jsx)(r.A,{height:"26px"}),(0,Z.jsx)(Ut,{})]})}function Yt(e){let{text:i,...t}=e;const{ref:n,isElementOutOfTopSectionOfView:l}=xi();return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(r.A,{width:"100%",minHeight:"100px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",...t,children:[(0,Z.jsxs)(r.A,{width:"100%",display:"flex",flexDirection:"row",alignItems:"center",children:[(0,Z.jsx)(r.A,{height:"22px",width:"22px",children:(0,Z.jsx)(Ft,{width:"100%"})}),(0,Z.jsx)(r.A,{width:"16px"}),(0,Z.jsx)(a.A,{textStyle:"p1Medium",children:i})]}),(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(Gt,{ref:n,children:(0,Z.jsx)(Ut,{})})]}),l&&(0,Z.jsx)(r.A,{position:"fixed",left:"0",bottom:"0px",width:"100%",padding:"19px 30px 33px 28px",bgcolor:"var(--neutral-0)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:"80",borderTop:"thin solid var(--neutral-200)",children:(0,Z.jsx)(Ut,{})})]})}const Kt=function(e){let{status:i,...t}=e;const r=(0,n.A)((e=>e.breakpoints.down("sm")),{noSsr:!0}),l=function(e){switch(e){case Bt.ended:return(0,Z.jsx)(Q.x6,{id:"Sorry! This workshop has ended."});case Bt.unavailable:return(0,Z.jsx)(Q.x6,{id:"Sorry! This workshop is not available."});case Bt.inProgress:return(0,Z.jsx)(Q.x6,{id:"Sorry! This workshop has started."});default:return""}}(i);return r?(0,Z.jsx)(Yt,{text:l,...t}):(0,Z.jsx)($t,{text:l,...t})},zt=e=>{let{videoUrl:i,maximumNumberOfAttendees:t,status:r,originalPrice
148:n,currency:l,recordedWorkshop:o,mobileView:s=!1,...a}=e;const{isWorkshopInProgress:d,isEventLoading:h,eventDetails:u}=le(),{showDiscount:c,discount:x}=(0,Di.r)(),p=!o&&("CANCELLED"===r||"DELETED"===r||"PENDING"===r);if(h)return(0,Z.jsx)(ot.E,{height:"153px",width:s?"100%":"346px",borderRadius:"12px",background:"var(--neutral-100)"});if(!u||!u._next_occurrences)return null;const{is_finished:v=!1}=null!==u&&void 0!==u?u:{};return!o&&v?(0,Z.jsx)(Kt,{status:Bt.ended}):d?(0,Z.jsx)(Kt,{status:Bt.inProgress}):p?(0,Z.jsx)(Kt,{status:Bt.unavailable}):(0,Z.jsxs)(ki,{mobileView:s,...a,children:[!s&&(0,Z.jsx)(G.a,{height:i?"194px":"auto",children:i&&(0,Z.jsx)(Ii,{videoUrl:i})}),(0,Z.jsxs)(G.a,{padding:s?"unset":"26px 26px 26px 25px",children:[(0,Z.jsx)(It,{isMobile:s,showDiscount:c,discount:x,eventDetails:u,maximumNumberOfAttendees:t}),c&&(0,Z.jsx)(Ei,{currency:l,originalPrice:n})]})]})};const qt=function(e){var i,t;let{workshop:r,mobileView:n=!1,...l}=e;const{type:o,video_media_paths:s,maximum_number_of_attendees:a,prices:d,status:h}=null!==r&&void 0!==r?r:{},u=Ve()(d,(e=>{let{price:i}=e;return null!==i&&void 0!==i?i:0})),c=null!==(i=null===d||void 0===d||null===(t=d[0])||void 0===t?void 0:t.currency)&&void 0!==i?i:"";return"WORKSHOP"===o?(0,Z.jsx)(zt,{videoUrl:null===s||void 0===s?void 0:s[0],status:h,maximumNumberOfAttendees:null!==a&&void 0!==a?a:0,originalPrice:u,currency:c,mobileView:n,...l}):"WORKSHOP_RECORDING"===o?(0,Z.jsx)(nt,{videoUrl:null===s||void 0===s?void 0:s[0],originalPrice:u,currency:c,workshopDetails:r,mobileView:n,...l}):"B2B_WORKSHOP_PROMO"===o?(0,Z.jsx)(Pi,{workshop:r,originalPrice:u,currency:c,videoUrl:null===s||void 0===s?void 0:s[0],mobileView:n,...l}):null};var Zt=t(67783);const Xt=e=>{let{children:i}=e;return(0,Z.jsxs)(Le.s,{as:"li",paddingLeft:"8px",children:[(0,Z.jsx)(G.a,{alignSelf:"start",marginRight:"8px",children:(0,Z.jsx)(at.A,{width:"5px",height:"5px",color:"neutral.700",marginRight:"6px"})}),(0,Z.jsx)(ge.E,{fontSize:["16px","16px","16px","18px"],lineHeight:["22px","22px","22px","24px"],fontWeight:400,color:"neutral.700",children:i})]})},Jt={[E.t.WORKSHOP]:"This learning experience includes:",[E.t.WORKSHOP_RECORDING]:"This learning experience includes:",[E.t.B2B_WORKSHOP_PROMO]:"This experience includes:"},Qt=e=>{var i;let{workshop:t}=e;return(0,Z.jsxs)(G.a,{as:"section",children:[(0,Z.jsx)(X,{marginBottom:["22px","22px","22px","25px"],children:Jt[t.type]}),(0,Z.jsx)(G.a,{as:"ul",children:null===(i=t.inclusions)||void 0===i?void 0:i.map((e=>(0,Z.jsx)(Xt,{children:e},(0,Zt.A)())))})]})},er={[E.t.WORKSHOP]:"Students will...",[E.t.WORKSHOP_RECORDING]:"Students will...",[E.t.B2B_WORKSHOP_PROMO]:"Your team will..."},ir=e=>{var i;let{workshop:t}=e;return(0,Z.jsxs)(G.a,{as:"section",children:[(0,Z.jsx)(X,{marginBottom:["22px","22px","22px","25px"],children:er[t.type]}),(0,Z.jsx)(G.a,{as:"ul",children:null===(i=t.outcomes)||void 0===i?void 0:i.map((e=>(0,Z.jsx)(Xt,{children:e},(0,Zt.A)())))})]})};var tr=t(35248);const rr=k.A.img`
149  width: 100%;
150  height: 100%;
151  object-fit: cover;
152  object-position: center;
153  border-radius: 50%;
154`,nr=e=>{let{publisherUserName:i,...t}=e;return(0,Z.jsx)(vi.$,{as:"a",href:`/${i}`,color:"neutral.0",height:["34px","34px","40px"],width:["116px","116px","132px"],borderRadius:"8px",...t,children:(0,Z.jsx)(ge.E,{fontSize:"16px",lineHeight:"22px",fontWeight:500,color:"neutral.0",children:(0,Z.jsx)(Q.x6,{id:"View profile"})})})},{WORKSHOP:lr,WORKSHOP_RECORDING:or,B2B_WORKSHOP_PROMO:sr}=E.t,ar={[lr]:{bgColor:"teal.500"},[or]:{bgColor:"teal.500"},[sr]:{bgColor:"workplaceBlue.400"}},dr=e=>{var i,t,n,l,o;let{publisher:s,workshopType:d}=e;const h=(0,be.q5)(s.id,"square","small"),{userDetails:u,isLoading:c}=(0,tr.A)({userId:null===s||void 0===s?void 0:s.id}),x=H({type:d,shopPublisherBio:null===u||void 0===u?void 0:u.publisher_enterprise_description,publisherDescription:null===u||void 0===u?void 0:u.publisher_description}),p=ar[d];return(0,Z.jsxs)(r.A,{children:[(0,Z.jsx)(r.A,{children:(0,Z.jsx)(X,{children:"Meet your Teacher"})}),(0,Z.jsx)(r.A,{height:"22px"}),(0,Z.jsxs)(r.A,{display:"flex",alignItems:"center",children:[(0,Z.jsx)(r.A,{width:"84px",height:"84px",bgcolor:"var(--neutral-100)",borderRadius:"50%",marginRight:"18px",flexShrink:0,children:(0,Z.jsx)(rr,{src:h})}),(0,Z.jsxs)(r.A,{flexGrow:1,marginRight:"10px",children:[(0,Z.jsx)(a.A,{component:"h3",textStyle:"h3Bold",color:"var(--neutral-700)",children:null!==(i=s.name)&&void 0!==i?i:""}),(0,Z.jsx)(r.A,{height:"3px"}),(0,Z.jsx)(a.A,{textStyle:"caption1",color:"var(--neutral-500)",children:null!==(t=null===(n=s.region)||void 0===n?void 0:n.name)&&void 0!==t?t:""})]})]}),!c&&x&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"25px"}),(0,Z.jsx)(me,{children:x})]}),c&&(0,Z.jsx)(ot.E,{width:"100%",height:"100px",borderRadius:"10px"}),null!==s&&void 0!==s&&s.username?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"25px"}),(0,Z.jsx)(nr,{bgColor:null!==(l=null===p||void 0===p?void 0:p.bgColor)&&void 0!==l?l:"teal.500",_hover:{bgColor:null!==(o=null===p||void 0===p?void 0:p.bgColor)&&void 0!==o?o:"teal.500"},publisherUserName:s.username})]}):null]})},hr=e=>{var i,t,n,l,o;let{publisher:s,workshopType:d}=e;const h=(0,be.q5)(s.id,"square","medium"),{userDetails:u,isLoading:c}=(0,tr.A)({userId:null===s||void 0===s?void 0:s.id}),x=H({type:d,shopPublisherBio:null===u||void 0===u?void 0:u.publisher_enterprise_description,publisherDescription:null===u||void 0===u?void 0:u.publisher_description}),p=ar[d];return(0,Z.jsxs)(r.A,{children:[(0,Z.jsx)(r.A,{children:(0,Z.jsx)(X,{children:"Meet your Teacher"})}),(0,Z.jsx)(r.A,{height:"28px"}),(0,Z.jsxs)(r.A,{display:"flex",alignItems:"center",children:[(0,Z.jsx)(r.A,{width:"118px",height:"118px",bgcolor:"var(--neutral-100)",borderRadius:"50%",marginRight:"30px",flexShrink:"0",children:(0,Z.jsx)(rr,{src:h})}),(0,Z.jsxs)(r.A,{flexGrow:1,children:[(0,Z.jsxs)(r.A,{display:"flex",children:[(0,Z.jsx)(r.A,{marginRight:"10px",flexGrow:1,children:(0,Z.jsx)(a.A,{component:"h3",textStyle:"h1Bold",color:"var(--neutral-700)",children:null!==(i=s.name)&&void 0!==i?i:""})}),null!==s&&void 0!==s&&s.username?(0,Z.jsx)(r.A,{children:(0,Z.jsx)(nr,{bgColor:null!==(t=null===p||void 0===p?void 0:p.bgColor)&&void 0!==t?t:"teal.500",_hover:{bgColor:null!==(n=null===p||void 0===p?void 0:p.bgColor)&&void 0!==n?n:"teal.500"},publisherUserName:s.username})}):null]}),(0,Z.jsx)(r.A,{height:"4px"}),(0,Z.jsx)(a.A,{textStyle:"p3Medium",color:"var(--neutral-600)",className:"uppercase",fontWeight:700,children:null!==(l=null===(o=s.region)||void 0===o?void 0:o.name)&&void 0!==l?l:""})]})]}),!c&&x&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"35px"}),(0,Z.jsx)(me,{children:x})]}),c&&(0,Z.jsx)(ot.E,{width:"100%",height:"100px",borderRadius:"10px"})]})};var ur=t(42046),cr=t(6350),xr=t(5446);const pr=(0,k.A)(xr.A)`
155  position: absolute;
156  width: 79px;
157  height: 17px;
158  bottom: 4px;
159  left: 4px;
160  color: white;
161`,vr=k.A.img`
162  object-fit: cover;
163  width: 100%;
164  max-height: 100%;
165  border-radius: 10px;
166`,gr=k.A.div`
167  position: relative;
168  max-width: 94px;
169  min-width: 94px;
170  height: 94px;
171`,mr=(0,k.A)(a.A)`
172  overflow: hidden;
173  text-overflow: ellipsis;
174  display: -webkit-box;
175  -webkit-line-clamp: 2;
176  -webkit-box-orient: vertical;
177  word-wrap: break-word;
178`;function jr(e){let{startTime:i,dataItem:t}=e;const{id:n,title:l,owner:o,type:s}=t;if(null===o||void 0===o||!o.id)return(0,Z.jsx)(Z.Fragment,{});const d=(0,be.q5)(null===o||void 0===o?void 0:o.id,"square","medium");return(0,Z.jsx)(ur.Link,{to:`/${null===o||void 0===o?void 0:o.username}/workshops/${n}`,children:(0,Z.jsxs)(r.A,{display:"flex",width:"100%",children:[(0,Z.jsxs)(gr,{children:[(0,Z.jsx)(vr,{src:d,alt:`${l}-workshop`}),(0,Z.jsxs)(pr,{children:[(0,Z.jsx)(cr.h,{width:"10px",height:"8px",fill:"var(--neutral-0)"}),(0,Z.jsx)(r.A,{width:"4px"}),(0,Z.jsx)(a.A,{textStyle:"caption2",children:null===s||void 0===s?void 0:s.toUpperCase()})]})]}),(0,Z.jsx)(r.A,{width:"17px",flexShrink:0}),(0,Z.jsxs)(r.A,{children:[(0,Z.jsxs)(a.A,{textStyle:"caption3",color:"var(--brandTeal-500)",children:[null===i||void 0===i?void 0:i.format("DD MMM")," \xb7"," ",null===i||void 0===i?void 0:i.format("hh:mm a")]}),(0,Z.jsx)(r.A,{height:"4px"}),(0,Z.jsx)(r.A,{children:(0,Z.jsx)(mr,{textStyle:"subHeadingMedium",color:"var(--neutral-700)",children:l})}),(0,Z.jsx)(r.A,{height:"3px"}),(0,Z.jsx)(r.A,{children:(0,Z.jsxs)(a.A,{textStyle:"p2Regular",color:"var(--neutral-500)",children:["with ",null===o||void 0===o?void 0:o.name]})})]})]})})}const fr=function(e){let{startTime:i,dataItem:t}=e;const l=(0,n.A)((e=>e.breakpoints.down("sm")),{noSsr:!0}),{id:o,title:s,owner:d,type:h}=t;if(null===d||void 0===d||!d.id)return(0,Z.jsx)(Z.Fragment,{});const u=(0,be.q5)(null===d||void 0===d?void 0:d.id,"square","medium");return l?(0,Z.jsx)(jr,{startTime:i,dataItem:t}):(0,Z.jsx)(ur.Link,{to:`/${null===d||void 0===d?void 0:d.username}/workshops/${o}`,children:(0,Z.jsxs)(r.A,{display:"flex",border:"1px solid #F1F4F4",borderRadius:"12px",padding:"20px 18px 18px","max-width":"346px",children:[(0,Z.jsxs)(gr,{children:[(0,Z.jsx)(vr,{src:u,alt:`${s}-workshop`}),(0,Z.jsxs)(pr,{children:[(0,Z.jsx)(cr.h,{width:"10px",height:"8px",fill:"var(--neutral-0)"}),(0,Z.jsx)(r.A,{width:"4px"}),(0,Z.jsx)(a.A,{textStyle:"caption2",children:null===h||void 0===h?void 0:h.toUpperCase()})]})]}),(0,Z.jsx)(r.A,{width:"17px",flexShrink:0}),(0,Z.jsxs)(r.A,{children:[(0,Z.jsxs)(a.A,{textStyle:"caption3",color:"var(--brandTeal-500)",children:[null===i||void 0===i?void 0:i.format("DD MMM")," \xb7"," ",null===i||void 0===i?void 0:i.format("hh:mm a")]}),(0,Z.jsx)(r.A,{height:"4px"}),(0,Z.jsx)(r.A,{children:(0,Z.jsx)(mr,{textStyle:"subHeadingMedium",color:"var(--neutral-700)",children:s})}),(0,Z.jsx)(r.A,{height:"3px"}),(0,Z.jsx)(r.A,{children:(0,Z.jsxs)(a.A,{textStyle:"p2Regular",color:"var(--neutral-500)",children:["with ",null===d||void 0===d?void 0:d.name]})})]})]})})};function wr(e){return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(a.A,{textStyle:"h3Medium",color:"var(--neutral-700)",children:(0,Z.jsx)(Q.x6,{id:"You may like"})}),(0,Z.jsx)(r.A,{height:"19px"}),(0,Z.jsx)(fr,{...e})]})}const Ar=function(e){return(0,n.A)((e=>e.breakpoints.down("sm")),{noSsr:!0})?(0,Z.jsx)(wr,{...e}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(a.A,{textStyle:"h3Medium",color:"var(--neutral-700)",children:(0,Z.jsx)(Q.x6,{id:"You may like"})}),(0,Z.jsx)(r.A,{height:"14px"}),(0,Z.jsx)(fr,{...e})]})};var br=t(87911),yr=t(39034),kr=t(87153),_r=t(51093),Er=t(12393);const Or=e=>{var i,t,r,n,l;let{workshop:o,isShowShareIconButton:s,...a}=e;const{isOpen:d,onOpen:h,onClose:u}=(0,Ge.j)(),{trackGAClickEvent:p}=(0,_r.s)(),{user:v}=(0,c.t7)(),{webLink:g,deepLink:m}=(0,Er.$)({ownerId:null!==(i=null===o||void 0===o||null===(t=o.owner)||void 0===t?void 0:t.id)&&void 0!==i?i:"",shopProductId:null===o||void 0===o?void 0:o.id,userName:null!==(r=null===o||void 0===o||null===(n=o.owner)||void 0===n?void 0:n.username)&&void 0!==r?r:""}),j=(0,ue.A)(o.type),f="B2B_WORKSHOP_PROMO"===o.type,w=(0,be.Sy)(o.id,null===(l=o.owner)||void 0===l?void 0:l.id,"square","medium"),A=(0,x.useMemo)((()=>{const e=null===o||void 0===o?void 0:o.title,i=null===o||void 0===o?void 0:o.description;return{title:e,description:i,webLink:g,deepLink:j||f?void 0:m,isWebOnly:j||f,additionalBranchData:{$og_title:e,$og_description:i,$og_image_url:w,workshop_id:null===o||void 0===o?void 0:o.id}}}),[null===o||void 0===o?void 0:o.title,null===o||void 0===o?void 0:o.description,null===o||void 0===o?void 0:o.id,g,m,j,f,w]),b=()=>{o&&(h(),p({click_event_name:mi.ef.SHARE_BUTTON_CLICKED,shop_product_id:o.id,tracking_object_type:"SHOP_PRODUCT",sharer_user_id:null===v||void 0===v?void 0:v.uid,share_created_date:(new Date).getTime()}))};return(0,Z.jsxs)(Z.Fragment,{children:[s?(0,Z.jsx)(kr.A,{onClick:b,...a}):(0,Z.jsx)(yr.A,{onClick:b,...a}),(0,Z.jsx)(br.A,{isOpen:d,branchData:A,shareItemId:o.id,shareItemType:"SHOP_PRODUCT",onClose:u})]})};
178var Cr=t(49850);const Sr=["Please note individual sessions are intended to be informational and educational, and are not a substitute for the advice, treatment and/or diagnosis of a licensed professional.","This workshop will be recorded and all attendees will receive a recording of the session. Please note you will have the option of remaining muted with your camera off if you do not wish to be featured in the recording.","By default your attendance is set to private on the app. You can make it visible to friends within the Workshop settings on the app."],Lr=()=>(0,Z.jsxs)(G.a,{children:[(0,Z.jsx)(G.a,{children:(0,Z.jsx)(X,{children:"Things to know"})}),(0,Z.jsx)(G.a,{height:["22px","22px","25px"]}),Sr.map((e=>(0,Z.jsx)(Xt,{children:e},e)))]}),Rr=e=>{var i,t;let{workshopDetails:n,publisherDetails:l,hasSeatAvailable:o}=e;const{occurrences:s,recommendations:a,isUnavailable:d,eventDetails:h}=le(),{startTime:u}=Et(s),c=null===a||void 0===a?void 0:a[0],x=(0,ue.A)(n.type),p=V({recommendation:c,isUnavailable:d,workshop:n}),v=R({outcomes:n.outcomes}),g=I({inclusions:n.inclusions});return(0,Z.jsxs)(r.A,{paddingX:"20px",children:[(0,Z.jsxs)(w.Ay,{children:[(0,Z.jsx)(r.A,{height:"50px"}),n?(0,Z.jsx)(Ce,{workshopDetails:n}):null,(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsxs)(r.A,{display:"flex",children:[(0,Z.jsxs)(r.A,{flexGrow:"1",children:[l&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)("div",{className:"relative",children:[(0,Z.jsx)(ke,{publisherId:null===l||void 0===l?void 0:l.id,workshopId:null===n||void 0===n?void 0:n.id,publisherName:null===l||void 0===l?void 0:l.name,workshopTitle:null===n||void 0===n?void 0:n.title,status:null===n||void 0===n?void 0:n.status,recordedWorkshop:x}),(null===n||void 0===n?void 0:n.id)&&(0,Z.jsx)("div",{className:"absolute top-0 right-0 m-5 z-50",children:(0,Z.jsx)(Or,{workshop:n})})]}),(0,Z.jsx)(r.A,{height:"52px"})]}),(0,Z.jsxs)(r.A,{display:"flex",children:[(0,Z.jsx)(Cr.A,{height:"20px",type:n.type,contentType:n.content_type}),(0,Z.jsx)(We,{eventDetails:null!==h&&void 0!==h?h:void 0,workshop:n,hasSeatAvailable:o})]}),(0,Z.jsx)(r.A,{height:"8px"}),(0,Z.jsx)(w.XN,{children:null!==(i=null===n||void 0===n?void 0:n.title)&&void 0!==i?i:""}),null!==l&&void 0!==l&&l.name?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"12px"}),(0,Z.jsx)(Se,{publisherName:l.name})]}):null,n.description&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"42px"}),(0,Z.jsx)(me,{children:n.description})]}),v&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"42px"}),(0,Z.jsx)(w.cG,{}),(0,Z.jsx)(r.A,{height:"44px"}),(0,Z.jsx)(ir,{workshop:n})]}),g&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"44px"}),(0,Z.jsx)(w.cG,{}),(0,Z.jsx)(r.A,{height:"44px"}),(0,Z.jsx)(Qt,{workshop:n})]}),(0,Z.jsx)(r.A,{height:"44px"}),(0,Z.jsx)(w.cG,{}),(0,Z.jsx)(r.A,{height:"44px"}),l&&(0,Z.jsx)(hr,{publisher:l,workshopType:n.type})]}),(0,Z.jsx)(r.A,{marginLeft:"60px",children:(0,Z.jsxs)(_,{top:"90px",children:[n&&(0,Z.jsx)(qt,{workshop:n}),p&&c&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"35px"}),(0,Z.jsx)(Ar,{startTime:u,dataItem:c})]})]})})]}),W(n.type)?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"44px"}),(0,Z.jsx)(w.cG,{}),(0,Z.jsx)(r.A,{height:"44px"}),(0,Z.jsx)(Lr,{})]}):null,n.waiver?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"44px"}),(0,Z.jsx)(w.cG,{}),(0,Z.jsx)(r.A,{height:"44px"}),(0,Z.jsx)(je,{waiver:n.waiver})]}):null,L(n.type)?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"44px"}),(0,Z.jsx)(w.cG,{}),(0,Z.jsx)(r.A,{height:"44px"}),(0,Z.jsx)(_e,{})]}):null,M(n.type)&&(null===n||void 0===n||null===(t=n.owner)||void 0===t?void 0:t.id)&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"44px"}),(0,Z.jsx)(w.cG,{}),(0,Z.jsx)(r.A,{height:"44px"}),(0,Z.jsx)(J,{excludeWorkshopId:n.id,workshopOwnerId:n.owner.id})]}),N(n.type)&&(0,Z.jsx)(ve,{publisherId:n.user_id}),P(n.type)&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"44px"}),(0,Z.jsx)(w.cG,{}),(0,Z.jsx)(r.A,{height:"52px"}),(0,Z.jsx)(he,{})]})]}),(0,Z.jsx)(r.A,{height:"100px"})]})};var Ir=t(64692);const Dr=()=>{var e,i;const{workshopDetails:t,publisherDetails:r}=(0,Yi.A)(),n=`https://insighttimer.com${(0,g.zy)().pathname}`,l=(null===t||void 0===t?void 0:t.id)&&(null===r||void 0===r?void 0:r.id)&&
178(0,be.Sy)(null===t||void 0===t?void 0:t.id,null===r||void 0===r?void 0:r.id,"square","medium");return(0,Z.jsx)(Ir.A,{title:`${null!==(e=null===t||void 0===t?void 0:t.title)&&void 0!==e?e:""} | Insight Timer`,description:null!==(i=null===t||void 0===t?void 0:t.short_description)&&void 0!==i?i:"",ogImageUrl:l||void 0,url:n,deepLink:`https://insig.ht/${null===t||void 0===t?void 0:t.id}`})};var Pr=t(16895);const Tr=k.A.nav`
179  cursor: pointer;
180  display: flex;
181  align-items: center;
182  padding: 5px 0;
183`,Nr=(0,k.A)(Pr.h)`
184  path {
185    stroke: var(--neutral-600);
186  }
187`,{B2B_WORKSHOP_PROMO:Mr}=E.t,Wr=e=>e===Mr?"Details":"Workshop details",Hr=e=>{var i,t,n,l,o,s,d;let{workshopDetails:h,publisherDetails:u,hasSeatAvailable:c}=e;const{recommendations:x,occurrences:p,isUnavailable:v,eventDetails:m}=le(),{startTime:j}=Et(p),f=null===x||void 0===x?void 0:x[0],A=(0,g.W6)(),b=(0,ue.A)(h.type),y=V({recommendation:f,isUnavailable:v,workshop:h}),k=R({outcomes:h.outcomes}),_=I({inclusions:h.inclusions}),E=T(h.type);return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(r.A,{paddingX:"30px",children:[(0,Z.jsx)(r.A,{height:"33px"}),(0,Z.jsxs)(w.Ay,{children:[(0,Z.jsx)(r.A,{component:"section",display:"flex",children:(0,Z.jsxs)(Tr,{tabIndex:0,"aria-label":"back-button",onClick:()=>{A.push(E.link)},children:[(0,Z.jsx)(r.A,{marginRight:"10px",children:(0,Z.jsx)(Nr,{})}),(0,Z.jsx)(a.A,{textStyle:"p1Medium",component:"h2",color:"var(--neutral-600)",children:E.name})]})}),(0,Z.jsx)(r.A,{height:"19px"}),u&&(0,Z.jsxs)("div",{className:"relative",children:[(0,Z.jsx)(ke,{publisherId:null===u||void 0===u?void 0:u.id,workshopId:null===h||void 0===h?void 0:h.id,publisherName:null===u||void 0===u?void 0:u.name,workshopTitle:null===h||void 0===h?void 0:h.title,status:null===h||void 0===h?void 0:h.status,recordedWorkshop:b}),(null===h||void 0===h?void 0:h.id)&&(0,Z.jsx)("div",{className:"absolute top-0 right-0 m-5 z-50",children:(0,Z.jsx)(Or,{workshop:h,isShowShareIconButton:!0})})]}),(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsxs)(r.A,{children:[(0,Z.jsxs)(r.A,{display:"flex",children:[(0,Z.jsx)(Cr.A,{height:"18px",type:h.type,contentType:h.content_type}),(0,Z.jsx)(We,{eventDetails:null!==m&&void 0!==m?m:void 0,workshop:h,hasSeatAvailable:c})]}),(0,Z.jsx)(r.A,{height:"8px"}),(0,Z.jsx)(w.Rx,{children:null!==(i=null===h||void 0===h?void 0:h.title)&&void 0!==i?i:""}),null!==u&&void 0!==u&&u.name?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"6px"}),(0,Z.jsx)(Se,{publisherName:u.name})]}):null,(0,Z.jsx)(r.A,{height:"22px"}),(0,Z.jsx)(a.A,{textStyle:"p1Regular",color:"var(--neutral-700)",whiteSpace:"pre-wrap",children:null!==(t=null===h||void 0===h?void 0:h.short_description)&&void 0!==t?t:""}),(S=h.type,[O,C].includes(S)&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"26px"}),(0,Z.jsx)(w.jI,{children:null!==(n=null===u||void 0===u?void 0:u.name)&&void 0!==n?n:""})]})),(0,Z.jsx)(r.A,{height:"32px"}),(0,Z.jsx)(w.ak,{}),(0,Z.jsx)(r.A,{height:"28px"}),(0,Z.jsx)(qt,{workshop:h,mobileView:!0}),y&&f&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"29px"}),(0,Z.jsx)(w.ak,{}),(0,Z.jsx)(r.A,{height:"29px"}),(0,Z.jsx)(Ar,{dataItem:f,startTime:j})]}),(0,Z.jsx)(r.A,{height:"32px"}),(0,Z.jsx)(w.ak,{}),(0,Z.jsx)(r.A,{height:"30px"}),null!==h&&void 0!==h&&null!==(l=h.video_media_paths)&&void 0!==l&&l[0]?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Ri,{videoUrl:null===h||void 0===h||null===(o=h.video_media_paths)||void 0===o?void 0:o[0],owner:null===h||void 0===h?void 0:h.owner}),(0,Z.jsx)(r.A,{height:"30px"})]}):null,(0,Z.jsxs)(r.A,{children:[(0,Z.jsx)(a.A,{textStyle:"h3Medium",component:"h3",color:"var(--neutral-700)",children:Wr(h.type)}),(0,Z.jsx)(r.A,{height:"22px"}),(0,Z.jsx)(me,{children:null!==(s=null===h||void 0===h?void 0:h.description)&&void 0!==s?s:""})]}),k&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(w.ak,{}),(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(ir,{workshop:h})]}),_&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(w.ak,{}),(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(Qt,{workshop:h})]}),u&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(w.ak,{}),(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(dr,{publisher:u,workshopType:h.type})]})]}),W(h.type)?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(w.ak,{}),(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(Lr,{})]}):null,h.waiver?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(w.ak,{}),(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(je,{waiver:h.waiver})]}):null,L(h.type)?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(w.ak,{}),(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(_e,{})]}):null]})]}),M(h.type)&&(null===(d=h.owner)||void 0===d?void 0:d.id)&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(w.ak,{}),(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(J,{excludeWorkshopId:h.id,workshopOwnerId:h.owner.id})]}),N(h.type)&&(0,Z.jsx)(ve,{mobileView:!0,publisherId:h.user_id}),P(h.type)&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(w.ak,{}),(0,Z.jsx)(r.A,{height:"30px"}),(0,Z.jsx)(de,{})]}),(0,Z.jsx)(r.A,{height:"120px"})]});var S},Fr=()=>{var e,i,t,n;const{publisherSlug:o,productId:d}=(0,g.g)(),{workshopDetails:p,isLoading:m,error:k,publisherDetails:_}=(0,b.A)({publisherSlug:o,productId:d}),{hasSeatAvailable:E}=(0,y.A)({publisherSlug:o,productId:d}),O=(0,x.useMemo)((()=>{var e;return null!==(e=null===p||void 0===p?void 0:p.tags)&&void 0!==e?e:[]}),[p]),{eventDetails:C,isLoading:S}=(0,u.A)(null===p||void 0===p?void 0:p.event_id),{occurrences:L,isLoading:R}=(0,A.A)(null===C||void 0===C?void 0:C.id),I=null!==L&&void 0!==L?L:[],D=null===p||void 0===p?void 0:p.status,P=null===p||void 0===p||null===(e=p.owner)||void 0===e?void 0:e.id,T=!(null!==C&&void 0!==C&&C.is_finished)&&h()(null===L||void 0===L||null===(i=L[0])||void 0===i||null===(t=i.start_date)||void 0===t?void 0:t.epoch).isBefore(h()().valueOf()),N=!R&&((null===(n=I[0])||void 0===n?void 0:n.has_ended)||T||"CANCELLED"===D||"PENDING"===D||"DELETED"===D||!E),M=v({avoidId:null===p||void 0===p?void 0:p.id,shouldFetch:!0,owner_id:P,tags:O}),W=(0,g.zy)(),H=new URLSearchParams(W.search),{user:F,authState:B}=(0,c.t7)(),V=H.get("checkout_data"),{checkoutDataUserId:G,discount:U,isExpired:$}=(0,f.A)(V),Y=null!=G&&(null===F||void 0===F?void 0:F.uid)===G&&B===c.kj.AUTHORIZED&&!$;return m?(0,Z.jsxs)(w.Ay,{children:[(0,Z.jsx)(r.A,{height:"50px"}),(0,Z.jsx)(l.A,{})]}):!(0,j.A)(null===p||void 0===p?void 0:p.type)||k?(0,Z.jsx)(s.default,{}):_?p?(0,Z.jsx)(oe.Provider,{value:{occurrences:I,isOccurrencesLoading:R,isEventLoading:S,eventDetails:C,hasSeatAvailable:E,recommendations:M,isUnavailable:N,isWorkshopInProgress:T},children:(0,Z.jsx)(Di.A.Provider,{value:{showDiscount:Y,discount:U},children:(0,Z.jsx)(Br,{workshopDetails:p,publisherDetails:_,hasSeatAvailable:E})})}):(0,Z.jsx)(r.A,{display:"flex",justifyContent:"center",children:(0,Z.jsx)(a.A,{textStyle:"h3Bold",children:"Workshop not found"})}):(0,Z.jsx)(r.A,{display:"flex",justifyContent:"center",children:(0,Z.jsxs)(a.A,{textStyle:"h3Bold",children:[o," not found"]}
187)})},Br=e=>{let{workshopDetails:i,publisherDetails:t,hasSeatAvailable:r}=e;return(0,n.A)((e=>e.breakpoints.down("sm")),{noSsr:!0})?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Hr,{workshopDetails:i,publisherDetails:t,hasSeatAvailable:r}),(0,Z.jsx)(o.default,{bottomSpacing:140})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Rr,{workshopDetails:i,publisherDetails:t,hasSeatAvailable:r}),(0,Z.jsx)(o.default,{})]})},Vr=()=>(0,Z.jsxs)(m.BE,{value:{refreshWhenOffline:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1},children:[(0,Z.jsx)(Dr,{}),(0,Z.jsx)(Fr,{})]})},77695:(e,i,t)=>{t.d(i,{A:()=>D});var r,n=t(38341),l=t(80330),o=t(97141),s=t(16614),a=t(6547),d=t(60349),h=t(40688),u=t(35500),c=t(95254),x=t(37783),p=t(50083),v=t(83435),g=t.n(v),m=t(21870),j=t(48516);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},f.apply(null,arguments)}function w(e,i){let{title:t,titleId:n,...l}=e;return c.createElement("svg",f({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,viewBox:"0 0 20 20",ref:i,"aria-labelledby":n},l),t?c.createElement("title",{id:n},t):null,r||(r=c.createElement("path",{fill:"#0A2024",fillRule:"nonzero",d:"M3.5 3.5a2 2 0 1 1 4 0v12.705a2 2 0 1 1-4 0V3.5zm9.21 0a2 2 0 1 1 4 0v12.705a2 2 0 1 1-4 0V3.5z"})))}const A=c.forwardRef(w);t.p;var b=t(80467),y=t(97207),k=t(64582);const _=e=>{let{className:i,...t}=e;return(0,k.jsx)(y.$,{width:"20px",height:"20px",minWidth:"unset",display:"flex",justifyContent:"center",alignItems:"center",padding:"0px",borderRadius:"6px",bgColor:"rgba(0, 0, 0, 0.3)",_hover:{bgColor:"rgba(0, 0, 0, 0.3)"},outline:"neutral.0",className:`action-btn ${i}`,...t})};let E=function(e){return e.PLAYER_MODE_CHANGE="PLAYER_MODE_CHANGE",e.LOADING_VIDEO="LOADING_VIDEO",e.VIDEO_DURATION="VIDEO_DURATION",e.READY_TO_PLAY="READY_TO_PLAY",e.SEEK_CHANGE="SEEK_CHANGE",e.VOLUME_CHANGE="VOLUME_CHANGE",e.MUTE_CHANGE="MUTE_CHANGE",e.FULLSCREEN_CHANGE="FULLSCREEN_CHANGE",e.TOGGLE_CENTER_PLAY_BUTTON_VISIBILITY="TOGGLE_CENTER_PLAY_BUTTON_VISIBILITY",e}({});const O={loading:!1,volume:1,duration:0,readyToPlay:!1,playerMode:"PAUSE",seek:0,mute:!1,fullScreen:!1,centerPlayButtonHidden:!1},C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,i=arguments.length>1?arguments[1]:void 0;const{type:t,value:r}=null!==i&&void 0!==i?i:{},n=null!==e&&void 0!==e?e:{};switch(t){case E.PLAYER_MODE_CHANGE:case E.VIDEO_DURATION:case E.LOADING_VIDEO:case E.READY_TO_PLAY:case E.VOLUME_CHANGE:case E.SEEK_CHANGE:case E.MUTE_CHANGE:case E.FULLSCREEN_CHANGE:case E.TOGGLE_CENTER_PLAY_BUTTON_VISIBILITY:return{...n,...r};default:return n}},S=(0,o.A)(A)`
188  > path {
189    fill: var(--neutral-0);
190  }
191`,L=(0,o.A)(h.A)`
192  position: absolute;
193  bottom: 25px;
194  left: 50%;
195  transform: translateX(-50%);
196
197  &.MuiSlider-vertical {
198    height: 80px;
199  }
200
201  .MuiSlider-rail {
202    height: 100%;
203    color: rgba(255, 255, 255, 0.5);
204  }
205`,R=(0,o.A)(s.A)`
206  border-radius: inherit;
207  width: 100%;
208  height: 100%;
209
210  .video-player-wrapper {
211    height: 100%;
212    position: relative;
213    border-radius: inherit;
214    padding-top: 56.25%;
215
216    .video-player-parent {
217      border-radius: inherit;
218      position: absolute;
219      background: rgba(0, 0, 0, 0.5);
220      top: 0;
221      left: 0;
222      width: 100%;
223      height: 100%;
224    }
225
226    video {
227      border-radius: inherit;
228      width: 100%;
229      height: 100%;
230      display: block;
231      object-fit: contain;
232    }
233  }
234
235  .video-seekbar-container {
236    margin-right: 20px;
237    margin-left: 10px;
238  }
239
240  .video-play-pause-btn,
241  .video-volume-btn {
242    margin-right: 10px;
243  }
244
245  &.fullscreen {
246    width: 70%;
247    height: 100%;
248    border-radius: 10px;
249    margin-top: 100px;
250    margin-left: auto;
251    margin-right: auto;
252
253    .action-btn {
254      width: 38px;
255      height: 38px;
256      border-radius: 6px;
257      background: rgba(0, 0, 0, 0.3);
258    }
259
260    .video-player-volume-icon {
261      width: 18px;
262      height: 17px;
263    }
264
265    .video-player-controllers {
266      padding: 20px 16px;
267    }
268
269    .video-play-pause-btn {
270      margin-right: 16px;
271    }
272
273    .video-volume-btn {
274      margin-right: 12px;
275    }
276
277    .video-volume-slider {
278      bottom: 40px;
279    }
280  }
281`,I=(0,o.A)(s.A)`
282  position: absolute;
283  left: 0;
284  bottom: 0;
285  width: 100%;
286  display: flex;
287  align-items: center;
288  padding: 12px 10px;
289  justify-content: ${e=>e.setControllerLeft?"flex-start":"flex-end"};
290`,D=e=>{let{src:i,poster:t,defaultVideoState:r,seekBarHiddenInNormalScreen:o=!0,renderLeftSectionOfControllers:h,ignoreFullScreenClass:v,setControllerLeft:f=!1,onSetPlayer:w,attributes:A,...y}=e;
290const[D,P]=(T=r,(0,c.useReducer)(C,null!==T&&void 0!==T?T:O));var T;const{loading:N,playerMode:M,mute:W,volume:H,duration:F,seek:B,fullScreen:V,readyToPlay:G,centerPlayButtonHidden:U}=D,$="PLAY"===M&&G,Y=(0,c.useRef)(null),K=o&&!V,z=V?v?"":"fullscreen":"",[q,Z]=(0,c.useState)(null),X=c.useCallback((e=>{e&&(Z(e),w&&w(e))}),[w]),J=(0,c.useRef)(null),Q=(0,c.useRef)({seekValue:0,duration:0});Q.current.seekValue=B,Q.current.duration=null!==F&&void 0!==F?F:0;const[ee,ie]=(0,c.useState)(!1);return c.useEffect((()=>{if(V&&q){const e=q.getInternalPlayer();e.webkitEnterFullscreen&&(e.webkitEnterFullscreen(),J.current=window.setInterval((()=>{!1===e.webkitDisplayingFullscreen&&(P({type:E.FULLSCREEN_CHANGE,value:{fullScreen:!1}}),J.current&&clearInterval(J.current))}),500))}return()=>{J.current&&clearInterval(J.current)}}),[V,q,P]),(0,k.jsx)(p.A,{enabled:V,onChange:e=>{V!==e&&P({type:E.FULLSCREEN_CHANGE,value:{fullScreen:e}})},children:(0,k.jsx)(R,{className:`video-player-container ${z}`,width:"100%",height:"100%",...y,children:(0,k.jsxs)("div",{ref:Y,className:"video-player-wrapper",children:[(0,k.jsx)(g(),{url:i,width:"100%",height:"100%",ref:X,playing:$,volume:H,muted:W,controls:!1,className:"video-player-parent",config:{file:{attributes:{poster:t,...A},forceHLS:!x.un,hlsVersion:"0.14.11",hlsOptions:{maxBufferLength:60}}},onPlay:()=>{P({type:E.PLAYER_MODE_CHANGE,value:{playerMode:"PLAY"}})},onPause:()=>{P({type:E.PLAYER_MODE_CHANGE,value:{playerMode:"PAUSE"}})},onDuration:e=>{P({type:E.VIDEO_DURATION,value:{duration:e}})},onBuffer:()=>P({type:E.LOADING_VIDEO,value:{loading:!0}}),onBufferEnd:()=>P({type:E.LOADING_VIDEO,value:{loading:!1}}),onProgress:e=>{P({type:E.SEEK_CHANGE,value:{seek:e.playedSeconds}})},onSeek:e=>{P({type:E.SEEK_CHANGE,value:{seek:e}})},onEnded:()=>{P({type:E.PLAYER_MODE_CHANGE,value:{playerMode:"PAUSE"}})},onError:()=>{P({type:E.LOADING_VIDEO,value:{loading:!1}})},onReady:()=>{P({type:E.READY_TO_PLAY,value:{readyToPlay:!0}})}}),!U&&!$&&(0,k.jsx)(n.s,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",justifyContent:"center",alignItems:"center",children:(0,k.jsx)(_,{width:"50px !important",height:"50px  !important",borderRadius:"10px",backdropFilter:"blur(150px)",onClick:()=>{P({type:E.PLAYER_MODE_CHANGE,value:{playerMode:"PLAY"}}),P({type:E.TOGGLE_CENTER_PLAY_BUTTON_VISIBILITY,value:{centerPlayButtonHidden:!0}})},children:(0,k.jsx)(l.I,{as:d.h,width:"28px",height:"28px",css:"\n                    path {\n                      fill: var(--neutral-0);\n                    }\n                  ",className:"video-play-icon"})})}),G&&U&&(0,k.jsxs)(I,{className:"video-player-controllers",setControllerLeft:f,children:["function"===typeof h?h({state:D}):null,(0,k.jsxs)(_,{className:"video-play-pause-btn",onClick:()=>{N||P({type:E.PLAYER_MODE_CHANGE,value:{playerMode:$?"PAUSE":"PLAY"}})},children:[$&&!N&&(0,k.jsx)(S,{width:"18px",height:"18px",fill:"var(--neutral-0)",className:"video-pause-icon"}),!$&&(0,k.jsx)(l.I,{as:d.h,width:"18px",height:"18px",css:"\n                      path {\n                        fill: var(--neutral-0);\n                      }\n                    ",className:"video-play-icon"}),N&&(0,k.jsx)(s.A,{component:"span",color:"var(--neutral-0)",className:"video-spinner-container",children:(0,k.jsx)(a.A,{size:"18px",color:"inherit",className:"video-spinner"})})]}),(0,k.jsx)(s.A,{hidden:K,flexGrow:1,className:"video-seekbar-container",style:{pointerEvents:N?"none":"auto"},children:(0,k.jsx)(u.A,{max:null!==F&&void 0!==F?F:0,value:B,onChangeSlider:(e,i)=>{const t=Number(i);P({type:E.SEEK_CHANGE,value:{seek:t}}),q&&q.seekTo(t)}})}),(0,k.jsx)(_,{className:"video-volume-btn",onClick:()=>{ie((e=>!e))},children:(0,k.jsxs)(s.A,{position:"relative",children:[ee&&(0,k.jsx)(L,{max:1,step:.1,value:H,"aria-label":"volume",orientation:"vertical",className:"video-volume-slider",onChangeSlider:(e,i)=>{P({type:E.VOLUME_CHANGE,value:{volume:Number(i)}})},onClick:e=>{e.stopPropagation()}}),(0,k.jsx)(b.h,{className:"video-player-volume-icon",width:"18px",height:"18px",fill:"var(--neutral-0)"})]})}),(0,k.jsx)(_,{className:"video-fullscreen-minimize-btn",onClick:()=>{P({type:E.FULLSCREEN_CHANGE,value:{fullScreen:!V}})},children:V?(0,k.jsx)(j.h,{width:"18px",height:"18px",className:"video-player-minimize",fill:"var(--neutral-0)"}):(0,k.jsx)(m.h,{width:"18px",height:"18px",className:"video-player-fullscreen",fill:"var(--neutral-0)"})})]})]})})})}},80467:(e,i,t)=>{t.d(i,{h:()=>s});var r,n=t(95254);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},l.apply(null,arguments)}function o(e,i){let{title:t,titleId:o,...s}=e;return n.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",width:26,height:22,viewBox:"0 0 26 22",ref:i,"aria-labelledby":o},s),t?n.createElement("title",{id:o},t):null,r||(r=n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{fill:"#FFF",d:"M12.1 1.093v18.776a.5.5 0 0 1-.829.377l-5.504-4.789H1a1 1 0 0 1-1-1V6.472a1 1 0 0 1 1-1h4.767L11.272.715a.5.5 0 0 1 .827.378z"}),n.createElement("path",{stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M20.901 1.384c4.765 6.161 4.765 12.34 0 18.538M16.639 6.115c2.016 3.016 2.016 6.042 0 9.076"}))))}const s=n.forwardRef(o);t.p},92939:(e,i,t)=>{t.d(i,{A:()=>a});var r=t(4021),n=t(83646),l=t(84558),o=t(95254),s=t(64582);const a=e=>{let{children:i,viewOnTimeOut:t,keepAfterView:a,loaderHeight:d,offset:h=0,...u}=e;const[c,x]=(0,o.useState)(!1),p=(0,o.useRef)(null),{isPrerender:v}=(0,l.A)(),g=null===a||void 0===a||a;if((0,o.useEffect)((()=>{let e;return t&&(e=setTimeout((()=>{x(!0)}),t)),()=>{clearTimeout(e)}}),[t]),(0,o.useEffect)((()=>
290{if(v)return;if(g&&c)return;const e=p.current;if(!e)return;const i=new IntersectionObserver((e=>{const t=e.some((e=>e.isIntersecting));g?!c&&t&&(x(!0),i.disconnect()):x(t)}),{root:null,rootMargin:`9999px 0px ${h}px 0px`,threshold:0});return i.observe(e),()=>{i.disconnect()}}),[c,v,h,g]),!i)return null;if(v)return(0,s.jsx)(s.Fragment,{children:i});const{height:m,...j}=u,f=d||m||"100px",w=d||m;return(0,s.jsx)(n.A,{loaderHeight:w,children:(0,s.jsx)(r.a,{ref:p,height:c?void 0:f,...j,children:c&&(0,s.jsx)(s.Fragment,{children:i})})})}}}]);
291//# sourceMappingURL=9584.6e679ef4.chunk.js.map

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.