1"use strict";(self.webpackChunkinsight_timer=self.webpackChunkinsight_timer||[]).push([[9526],{3722:(e,t,i)=>{i.r(t),i.d(t,{default:()=>v});var r=i(78675),n=i(12393),s=i(95254),a=i(25745),l=i(39034),o=i(87911),d=i(87153),u=i(73492),c=i(91557),p=i(51093),h=i(84781),x=i(32104),m=i(44760),g=i(64582);const v=e=>{let{libraryItemSummary:t,isShowShareIconButton:i,...v}=e;const _=(0,u.D)(),{isOpen:f,onOpen:j,onClose:C}=(0,r.j)(),{trackGAClickEvent:w}=(0,p.s)(),{slug:b}=t,{user:y}=(0,x.t7)(),E="COURSES"===t.item_type?_.getCourseUrl(b):(0,m.fr)(t).pathname,S=`${c.RF}${E}`,k=(0,s.useMemo)((()=>{const e=t.id,i=t.title,r=t.long_description;if(!e)return;let s=n.PX;return"COURSES"===t.item_type&&(s=(0,n.UR)(e)),"SINGLE_TRACKS"===t.item_type&&(s=t.is_premium?(0,n.Hk)(e):(0,n.Si)(e)),{deepLink:s,webLink:S,title:i,description:r,additionalBranchData:{$og_title:i,$og_description:r,$og_image_url:(0,a.hD)(e,"square","small"),library_item_id:e}}}),[t,S]);if("COURSES"!==t.item_type&&"SINGLE_TRACKS"!==t.item_type)return null;const L=()=>{t&&(j(),w({click_event_name:h.ef.SHARE_BUTTON_CLICKED,library_item_id:null===t||void 0===t?void 0:t.id,tracking_object_type:"LIBRARY_ITEMS",library_item_type:t.item_type,sharer_user_id:null===y||void 0===y?void 0:y.uid,share_created_date:(new Date).getTime()}))};return(0,g.jsxs)(g.Fragment,{children:[i?(0,g.jsx)(d.A,{onClick:L,...v}):(0,g.jsx)(l.A,{onClick:L,...v}),(0,g.jsx)(o.A,{branchData:k,isOpen:f,onClose:C,embedContentId:t.slug,embedContentType:"COURSES"===t.item_type?"COURSE":"SINGLE_TRACK",shareItemId:t.id,shareItemType:"LIBRARY_ITEMS"})]})}},11130:(e,t,i)=>{i.d(t,{j:()=>r});const r=function(e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){return Math.abs(Number(e))>=1e9?`${(Math.abs(Number(e))/1e9).toFixed(t)} billion`:Math.abs(Number(e))>=1e6?`${(Math.abs(Number(e))/1e6).toFixed(t)} million`:Math.abs(Number(e))>=1e5?`${(Math.abs(Number(e))/1e3).toFixed(t)}k`:Math.abs(Number(e))}return Math.abs(Number(e))>=1e9?`${(Math.abs(Number(e))/1e9).toFixed(t)}b`:Math.abs(Number(e))>=1e6?`${(Math.abs(Number(e))/1e6).toFixed(t)}m`:Math.abs(Number(e))>=1e3?`${(Math.abs(Number(e))/1e3).toFixed(t)}k`:Math.abs(Number(e))}},14430:(e,t,i)=>{i.d(t,{Ay:()=>h,CT:()=>u,Rx:()=>l,XN:()=>a,aY:()=>d,ak:()=>p,cG:()=>c,jI:()=>o});var r=i(97141),n=i(47463);const s=r.A.div` 2 max-width: 1007px; 3 width: 100%; 4 margin: auto; 5`,a=r.A.h1` 6 color: var(--neutral-700); 7 font-size: 48px; 8 line-height: 58px; 9 letter-spacing: -0.02em; 10 font-weight: 700; 11`,l=r.A.h1` 12 color: var(--neutral-700); 13 font-size: 28px; 14 line-height: 34px; 15 font-weight: 700; 16`,o=r.A.h2` 17 font-family: 'JennaSue' !important; 18 font-size: 36px; 19 line-height: 24px; 20 color: var(--neutral-700); 21 transform: rotate(-1deg); 22 font-weight: 400; 23`,d=(r.A.div` 24 width: 100%; 25 26 @media (max-width: 600px) { 27 overflow: hidden; 28 } 29`,r.A.div` 30 width: 100%; 31 32 & .swiper-container .styled-arrow, 33 & .swiper-container .styled-arrow:hover { 34 border-radius: 10px; 35 background-color: var(--neutral-100); 36 width: 36px; 37 height: 36px; 38 39 svg { 40 fill: var(--neutral-600); 41 width: 30px; 42 height: 30px; 43 } 44 } 45`),u=(0,r.A)(d)` 46 & .swiper-container .swiper-button-next { 47 right: 15px; 48 } 49 50 & .swiper-container .swiper-button-prev { 51 right: 60px; 52 } 53`,c=((0,r.A)(n.A)` 54 @media (max-width: 768px) { 55 font-size: 20px; 56 line-height: 23px; 57 font-weight: 700; 58 } 59`,r.A.hr` 60 height: 1px; 61 background-color: #e6e8e8; 62 border: none; 63 margin: 0; 64`),p=r.A.hr` 65 height: 1px; 66 background-color: #eff3f3; 67 border: none; 68 margin: 0; 69`,h=s},17286:(e,t,i)=>{i.d(t,{A:()=>s});var r=i(15263),n=(i(95254),i(64582));const s=e=>{let{dateInEpoch:t,...i}=e;const s=new Date(t).toLocaleString(void 0,{year:"numeric",month:"long",day:"numeric"});return(0,n.jsx)(r.E,{fontSize:"14px",lineHeight:["21px","21px","19px"],color:"neutral.750",opacity:.6,fontFamily:"ProximaNova",...i,children:s})}},19323:(e,t,i)=>{i.d(t,{A:()=>u});var r=i(4021),n=i(38341),s=i(15263),a=i(52446),l=i.n(a),o=i(95254),d=i(64582);const u=e=>{let{children:t,height:i,showMoreText:a="read more",showLessText:u="read less",childContainerProps:c={},toggleButtonProps:p={},...h}=e;const[x,m]=(0,o.useState)(!1),[g,v]=(0,o.useState)(!1),_=(0,o.useRef)(null),f=(0,o.useRef)(null);(0,o.useEffect)((()=>{const e=l()((()=>{const e=_.current,t=f.current;if(!e||!t)return;const i=e.clientHeight,r=t.scrollHeight;m(r>i)}),500);return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[i,t]),(0,o.useEffect)((()=>{const e=_.current,t=f.current;if(!x||!e||!t)return;const r=t.scrollHeight;e.style.height=g?`${r}px`:i,e.style.height=g?`${r}px`:i}),[g,x,i]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(r.a,{ref:_,fontSize:["16px","16px","18px"],lineHeight:["22px","22px","24px"],fontWeight:"400",color:"neutral.700",transition:"height 0.2s ease",...h,height:i,overflow:"hidden",children:(0,d.jsx)(n.s,{as:"span",display:"block",ref:f,flexWrap:"wrap",whiteSpace:"pre-wrap",...c,children:(0,d.jsx)(d.Fragment,{children:t})})}),x&&(0,d.jsx)(s.E,{variant:"unstyled",padding:"0px",height:"auto",minHeight:"unset",fontSize:"14px",lineHeight:"19px",color:"teal.500",fontWeight:500,marginTop:"2px",borderRadius:"4px","aria-label":g?u:a,_focus:{boxShadow:"none"}
69,_focusVisible:{outline:"2px solid black !important"},cursor:"pointer",...p,onClick:()=>{v((e=>!e))},children:g?u:a})]})}},25205:(e,t,i)=>{i.d(t,{qt:()=>o,wL:()=>d});var r=i(99848),n=i.n(r),s=i(60184),a=i.n(s),l=i(87492);const o=e=>a()(n()(e,"_"," ")),d=e=>e?"sleep"===e?"/sleep/sleep-meditations":e in l.tI?`/sleep/sleep-meditations/${l.tI[e]}`:"bedtime_stories"===e?"/sleep/bedtime-stories":e in l.r4?`/sleep/bedtime-stories/${l.r4[e]}`:"sleep_sounds"===e?"/sleep/sleep-sounds":e in l.$v?`/sleep/sleep-sounds/${l.$v[e]}`:e in l.Y8?`/sleep/sleep-sounds/${l.Y8[e]}`:"sleep_music"===e?"/sleep/sleep-music":e in l.Bn?`/sleep/sleep-music/${l.Bn[e]}`:null:null},25325:(e,t,i)=>{i.d(t,{A:()=>a});var r=i(4021),n=i(7869),s=(i(95254),i(64582));const a=e=>{let{loaderProps:t,...i}=e;const a=null!==t&&void 0!==t?t:{};return(0,s.jsx)(r.a,{width:"100%",minHeight:"150px",display:"flex",justifyContent:"center",alignItems:"center",color:"neutral.700",...i,children:(0,s.jsx)(n.y,{size:"lg",color:"inherit",thickness:"3px",...a})})}},26514:(e,t,i)=>{i.d(t,{A:()=>l});var r=i(52544),n=i(4021),s=i(56087),a=(i(95254),i(64582));const l=e=>{let{titleLoader:t,descriptionLoader:i,authorLoader:l,ratingLoader:o,imageSkeletonProps:d={},imageSkeletonContainerProps:u={},...c}=e;return(0,a.jsxs)(r.T,{width:"100%",spacing:"10px",alignItems:"flex-start",...c,children:[(0,a.jsx)(n.a,{width:"100%",position:"relative",...u,children:(0,a.jsx)(s.E,{width:"100%",height:"200px",borderRadius:"10px",...d})}),o&&(0,a.jsx)(s.E,{width:"30%",height:"20px",borderRadius:"10px"}),t&&(0,a.jsx)(s.E,{width:"50%",height:"20px",borderRadius:"10px"}),l&&(0,a.jsx)(s.E,{width:"30%",height:"20px",borderRadius:"10px"}),i&&(0,a.jsx)(s.E,{width:"100%",height:"30px",borderRadius:"10px"})]})}},26751:(e,t,i)=>{i.d(t,{A:()=>o});var r=i(78067),n=i(23727),s=i(26514),a=i(95254),l=i(64582);const o=e=>{let{tileLoaderProps:t={},breakPointValues:i={base:3,xs:1,sm:2,md:3,lg:4},...o}=e;const d=(0,r.A)(i),u=(0,a.useMemo)((()=>new Array(d).fill(0).map(((e,t)=>t+1))),[d]);return(0,l.jsx)(n.x,{templateColumns:["repeat(1, 1fr)","repeat(2, 1fr)","repeat(3, 1fr)","repeat(4, 1fr)"],gridColumnGap:"10px",gridRowGap:"10px",...o,children:u.map((e=>(0,l.jsx)(s.A,{titleLoader:!0,authorLoader:!0,ratingLoader:!0,...t},e)))})}},28588:(e,t,i)=>{i.d(t,{A:()=>l});var r=i(3119),n=(i(95254),i(42046)),s=i(64582);const a={padding:"6px 14px 8px",height:"36px",borderRadius:"40px",fontSize:"16px",fontWeight:"500",lineHeight:"23px",color:"neutral.600",bgColor:"neutral.0",border:"1px solid var(--chakra-colors-neutral-300)",marginRight:"10px",marginBottom:"10px",cursor:"pointer",textDecoration:"none",_hover:{textDecoration:"none"},_focus:{outline:"none",border:"1px solid var(--chakra-colors-neutral-700)"}},l=e=>{let{to:t,...i}=e;return t.startsWith("http://")||t.startsWith("https://")?(0,s.jsx)(r.N,{href:t,...a,...i}):(0,s.jsx)(r.N,{as:n.NavLink,to:t,...a,...i})}},31067:(e,t,i)=>{i.d(t,{D:()=>d});var r=i(95254),n=i(3630),s=i(97877),a=i(8488);const l=e=>{if("undefined"!==typeof window&&e&&window.__COURSE_PREFETCH__)return window.__COURSE_PREFETCH__[e]},o=e=>{if("undefined"!==typeof window&&e&&window.__COURSE_PREFETCH_PROMISES__)return window.__COURSE_PREFETCH_PROMISES__[e]};function d(e){const t=e?`/courses/${e}`:null,i=l(e),{data:d,isValidating:u,mutate:c}=(0,n.Ay)(t,(()=>{if(!e)return null;const t=o(e);return t?t.then((t=>void 0!==t?null!==t&&void 0!==t?t:null:(0,s.E0)(e))):(0,s.E0)(e)}),{initialData:i});return(0,r.useEffect)((()=>{if(!t||"undefined"===typeof window)return;const i=e=>{void 0!==e&&(0,n.Tk)(t,e,!1)};i(l(e));const r=t=>{const r=t,{slug:n,data:s}=r.detail||{};n&&n===e&&i(null!==s&&void 0!==s?s:null)};return window.addEventListener("course-prefetched",r),()=>{window.removeEventListener("course-prefetched",r)}}),[t,e]),{course:d,coursePrice:null!=d&&(0,a.ZH)(d),loadData:c,courseLoading:!d&&u}}},32416:(e,t,i)=>{i.d(t,{A:()=>a});var r=i(38341),n=i(7869),s=(i(95254),i(64582));const a=e=>(0,s.jsx)(r.s,{width:"100%",height:"calc(100vh - 96px)",align:"center",justify:"center",...e,children:(0,s.jsx)(n.y,{mb:"96px"})})},37159:(e,t,i)=>{i.d(t,{A:()=>l});var r=i(26120),n=(i(95254),i(64582));const s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=["var(--pink-400)","var(--purple-400)","var(--purple-500)","var(--blue-400)","var(--yellow-400)","var(--purple-400)","var(--workplaceBlue-400)","var(--workplaceBlue-500)","var(--brandTeal-500)","var(--neutral-900)","var(--neutral-600)"];let i=0;for(let r=0;r<e.length;r+=1)i+=e.charCodeAt(r);return t[i%t.length]},a={small:"34px",medium:"50px",large:"94px"},l=e=>{let{id:t,name:i="",imageSize:l="medium",isGrayscale:o=!1,size:d,avatarSize:u="md",avatarStyle:c}=e;const p=(null===i||void 0===i?void 0:i.trim())||"",h=`https://users.insighttimer.com/${t}/pictures/square_${l}.jpeg`;return(0,n.jsx)(r.e,{src:h,name:p,width:d?`${d}px`:a[l],height:d?`${d}px`:a[l],fontSize:"18px",fontWeight:"500",color:"var(--neutral-0)",bg:s(t),size:u,filter:o?"grayscale(100%)":"none",opacity:o?.8:1,...c})}},37301:(e,t,i)=>{i.d(t,{A:()=>x,t:()=>h});var r=i(32104),n=i(67850),s=i(83286),a=i.n(s),l=i(95254),o=i(97877),d=i(64582);const u=(0,l.lazy)((()=>Promise.all([i.e(1174),i.e(2284),i.e(9290),i.e(6082),i.e(9014),i.e(1394),i.e(2595),i.e(547),i.e(8367),i.e(2382),i.e(4164)]).then(i.bind(i,84164)))),c=["CHECK_LOGIN","AUTH_FORM","CHECKING_SUBSCRIPTION","SUBSCRIPTION_FORM"],p=(0,l.createContext)({isSubscriptionInProgress:!1,updatingUserCourseList:!1,checkUserSubscription:a()}),h=()=>{try{return(0,l.useContext)(p)}catch(e){console.warn("Use useUserCoursePurchaseStateContext inside UserCoursePurchaseStateProvider component.: ",e)}},x=e=>{let{course:t,children:i}=e;const{user:s}=(0,r.t7)(),[a,h]=(0,l.useState)(!1),[x,m]=(0,l.useState)(void 0),[g,v]=(0,l.useState)(),[_,f]=(0,l.useState)(),j=c.includes(x)||a,{setIsSubscriber:C}=(0,n.H7)(),w=(0,l.useRef)(null),b=(0,l.useRef)({memberPlusUsers:{}}),y=async()=>
69{if(null!==t&&void 0!==t&&t.id&&null!==s&&void 0!==s&&s.uid){h(!0);try{await(0,o.i3)({course:t,courseId:t.id,userId:null===s||void 0===s?void 0:s.uid})}catch(e){console.error(e)}finally{h(!1)}}};return(0,d.jsxs)(p.Provider,{value:{checkUserSubscription:e=>{var t;if(null!==(t=w.current)&&void 0!==t&&t.checkSubscription){if(null!==s&&void 0!==s&&s.uid&&b.current.memberPlusUsers[s.uid])return null!==e&&void 0!==e&&e.successCallbackFn&&e.successCallbackFn(),void y();v((()=>(null===e||void 0===e?void 0:e.successCallbackFn)||void 0)),f((()=>(null===e||void 0===e?void 0:e.closeCallbackFn)||void 0)),w.current.checkSubscription()}},isSubscriptionInProgress:j,updatingUserCourseList:a},children:[t&&(0,d.jsx)(l.Suspense,{fallback:(0,d.jsx)(d.Fragment,{}),children:(0,d.jsx)(u,{course:t,metaRef:w,onStageChange:e=>{if(m(e),"SUBSCRIBED"===e||"ALREADY_MEMBER"===e)return y(),g&&g(),C(!0),void(null!==s&&void 0!==s&&s.uid&&(b.current.memberPlusUsers[s.uid]=!0));"MODAL_CLOSED"===x&&_&&_()}})}),i]})}},43946:(e,t,i)=>{i.d(t,{A:()=>s});var r=i(56087),n=(i(95254),i(64582));const s=e=>(0,n.jsx)(r.E,{borderRadius:"6px",width:"200px",height:"20px",...e})},47463:(e,t,i)=>{i.d(t,{A:()=>c});var r=i(16614),n=i(93342),s=(i(95254),i(64582));const a=0,l=1,o=2,d=4,u=5,c=e=>{var t;let{textStyle:i,className:c,...p}=e;const{width:h}=(0,n.l)(),x=((e,t)=>{var i,r,n,s;const c=Array.isArray(t),p=c?t:[t];if(!c||!t)return t;const h=p[a],x=null!==(i=p[l])&&void 0!==i?i:h,m=null!==(r=p[o])&&void 0!==r?r:x,g=null!==(n=p[d])&&void 0!==n?n:m,v=null!==(s=p[u])&&void 0!==s?s:g;return e<600?h:e>=600&&e<768?x:e>=768&&e<1280?m:e>=1280&&e<1920?g:v})(null!==h&&void 0!==h?h:null===(t=window)||void 0===t?void 0:t.innerWidth,i);return(0,s.jsx)(r.A,{component:"p",...p,className:`${null!==x&&void 0!==x?x:""} ${null!==c&&void 0!==c?c:""}`})}},47553:(e,t,i)=>{i.d(t,{A:()=>a});var r=i(28588),n=(i(95254),i(25205)),s=i(64582);const a=e=>{let{topic:t,to:i,...a}=e;return(0,s.jsx)(r.A,{...a,to:i||`/meditation-topics/${t}`,children:(0,n.qt)(t)})}},55169:(e,t,i)=>{i.d(t,{h:()=>o});var r,n,s=i(95254);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},a.apply(null,arguments)}function l(e,t){let{title:i,titleId:l,...o}=e;return s.createElement("svg",a({className:"MuiSvgIcon-root css-14icxgp",focusable:"false",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation",ref:t,"aria-labelledby":l},o),i?s.createElement("title",{id:l},i):null,r||(r=s.createElement("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"})),n||(n=s.createElement("path",{fill:"none",d:"M0 0h24v24H0z"})))}const o=s.forwardRef(l);i.p},56710:(e,t,i)=>{i.d(t,{A:()=>u});var r=i(4021),n=i(97207),s=i(15263),a=i(92751),l=i(95254),o=i(64582);const d=(0,l.forwardRef)(((e,t)=>{let{children:i,noOfLines:d,mobileOnly:u,readMoreButton:c,...p}=e;const[h,x]=(0,l.useState)(d),{isMobile:m}=(0,a.A)(),[g,v]=(0,l.useState)(!1),_=l.useRef(null);return(0,l.useEffect)((()=>{const e=()=>{let e=!1;var t,i;_.current&&_.current.clientHeight&&(e=(null===(t=_.current)||void 0===t?void 0:t.scrollHeight)>(null===(i=_.current)||void 0===i?void 0:i.clientHeight),v(e))};return setTimeout(e,500),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),u&&!m?(0,o.jsx)(r.a,{ref:t,...p,children:i}):(0,o.jsxs)(r.a,{ref:t,...p,children:[(0,o.jsx)(r.a,{ref:_,noOfLines:h,children:i}),g&&c&&(0,o.jsx)(r.a,{display:g?"inline-block":"none",children:c}),!c&&(0,o.jsx)(n.$,{display:g?"inline-block":"none",variant:"unstyled",padding:"0px",height:"auto",minHeight:"unset",fontSize:"14px",lineHeight:"19px",color:"teal.500",fontWeight:500,marginTop:"2px",borderRadius:"4px",_focus:{boxShadow:"none"},onClick:()=>{x(h?void 0:d)},children:(0,o.jsx)(s.E,{children:h?"Read more":"Show less"})})]})}));d.displayName="ExpandableText";const u=d},59192:(e,t,i)=>{i.d(t,{A:()=>r});const r=e=>{var t;if(null===e||void 0===e||!e.trim())return null;const[i]=null!==(t=e.split(" "))&&void 0!==t?t:[];return i}},67920:(e,t,i)=>{i.r(t),i.d(t,{CourseReviewMobileDetails:()=>P,default:()=>B});var r=i(4021),n=i(26751),s=i(43946),a=i(83619),l=(i(95254),i(38341)),o=i(80330),d=i(15263),u=i(89728),c=i(55169),p=i(37159),h=i(17286),x=i(64582);const m=e=>{let{reviewerName:t,...i}=e;return(0,x.jsx)(d.E,{fontSize:["16px","16px","18px"],lineHeight:["21px","21px","23px"],fontWeight:500,color:"neutral.700",...i,children:t})},g=e=>{let{message:t,...i}=e;return(0,x.jsx)(d.E,{fontSize:"16px",lineHeight:"22px",letterSpacing:"-0.01em",fontWeight:400,color:"neutral.700",title:t,...i,children:t})};var v=i(85833);const _=i.p+"static/media/yellow-star.e4a377094175fafa045608b55fac98d2.svg";var f=i(80325),j=i.n(f);const C=e=>{let{rating:t,iconProps:i,...n}=e;const s=j()(0,t);return(0,x.jsx)(l.s,{...n,children:s.map((e=>(0,x.jsx)(r.a,{children:(0,x.jsx)(v._,{src:_,width:"14px",height:"15px",...i})},e)))})},w=e=>{let{reviewerId:t,reviewerName:i,rating:n,ratedAt:s,message:a,...o}=e;return(0,x.jsx)(r.a,{width:"100%",height:"auto",backgroundColor:"neutral.100",borderRadius:"10px",padding:"30px",...o,children:(0,x.jsxs)(l.s,{direction:"column",children:[(0,x.jsxs)(l.s,{children:[(0,x.jsx)(r.a,{marginRight:["12px","12px","14px"],children:(0,x.jsx)(p.A,{id:t,name:i,imageSize:"small",size:60,avatarStyle:{loading:"lazy"}})}),(0,x.jsxs)(l.s,{direction:"column",children:[(0,x.jsx)(m,{reviewerName:i,marginBottom:"10px"}),(0,x.jsxs)(l.s,{alignItems:"center",marginBottom:"4px",children:[(0,x.jsx)(C,{rating:n,marginRight:"8px"}),null!==s&&void 0!==s&&s.epoch?(0,x.jsx)(h.A,{dateInEpoch:null===s||void 0===s?void 0:s.epoch}):null]})]})]}),a?(0,x.jsx)(g,{message:a,marginTop:"20px"}):null]})})};var b=i(64714),y=i(59192),E=i(40803);const S=e=>{let{reviews:t,ratingScore:i,ratingCount:n,carouselTitle:s,carouselVariantProps:a={},reviewCardProps:p={},...h}=e;const m=(0,E.E)();return(0,x.jsxs)(r.a,{width:"100%",...h,children:[(0,x.jsxs)(r.a,{marginBottom:["34px","34px","28px"],children:[i||n?(0,x.jsxs)(l.s,{alignItems:"center",children:[(0,x.jsx)(o.I,{as:c.h,width:"14px",height:"14px",marginRight:"4px",fill:"#1a202c"}),(0,x.jsxs)(d.E,{fontSize:["11px","11px","16px"],lineHeight:["15px","15px","23px"],fontWeight:[700,700,500],color:["neutral.600","neutral.600","neutral.700"],children:[i?i.toFixed(1):null,i&&n?" ":null,n?`(${n})`:null]})]}):null,(0,x.jsx)(u.D,{as:"h2",fontSize:["20px","20px","24px"],lineHeight:["24px","24px","34px"],fontWeight:"500",color:"neutral.700",marginTop:["6px","6px","0px"],children:null!==s&&void 0!==s?s:m._("Recent Reviews")})]}),(0,x.jsx)(r.a,{width:"100%",children:(0,x.jsx)(b.A,{spaceBetween:[20,20,20,20],buttonTop:"-50px",overflow:"visible",...a,children:null===t||void 0===t?void 0:t.map(((e,t)=>{var i,r,n,s;return(0,x.jsx)(w,{width:"calc((100% - 20px) / 2)",reviewerId:null===(r=e.owner)||void 0===r?void 0:r.id,reviewerName:(0,y.A)(null===(n=e.owner)||void 0===n?void 0:n.name)||(null===(s=e.owner)||void 0===s?void 0:s.name),message:e.message,rating:e.rating,ratedAt:e.rated_at,...p},null!==(i=e.id)&&void 0!==i?i:t)}))})})]})},k=e=>{let{reviewerId:t,reviewerName:i,rating:n,ratedAt:s,message:a,...o}=e;return(0,x.jsx)(r.a,{height:"auto",...o,children:(0,x.jsxs)(l.s,{direction:"column",children:[(0,x.jsxs)(l.s,{alignItems:"center",children:[(0,x.jsx)(p.A,{id:t,name:i,imageSize:"small",size:46}),(0,x.jsxs)(l.s,{direction:"column",ml:"12px",children:[(0,x.jsx)(m,{reviewerName:i,fontSize:"16px",lineHeight:"21px",marginBottom:"10px"}),(0,x.jsxs)(l.s,{alignItems:"flex-start",children:[(0,x.jsx)(C,{rating:n,marginRight:"8px",marginTop:"-2px"}),null!==s&&void 0!==s&&s.epoch?(0,x.jsx)(h.A,{dateInEpoch:s.epoch,fontSize:"14px",lineHeight:"21px"}):null]})]})]}),a?(0,x.jsx)(g,{message:a,marginTop:"17px"}):null]})})},L=e=>{let{reviews:t,ratingScore:i,ratingCount:n,carouselTitle:s,reviewCardProps:a={},...u}=e;const p=(0,E.E)();return(0,x.jsxs)(r.a,{...u,children:[(0,x.jsxs)(r.a,{mb:"34px",children:[i||n?(0,x.jsxs)(l.s,{alignItems:"center",children:[(0,x.jsx)(o.I,{as:c.h,width:"14px",height:"14px",marginRight:"4px",fill:"neutral.600"}),(0,x.jsxs)(d.E,{fontSize:"11px",lineHeight:"15px",fontWeight:700,color:"neutral.600",children:[i?i.toFixed(1):null,i&&n?" ":null,n?`(${n})`:null]})]}):null,(0,x.jsx)(d.E,{color:"var(--neutral-700)",fontSize:"20px",lineHeight:"24px",fontWeight:"500",mt:"6px",children:null!==s&&void 0!==s?s:p._("Recent Reviews")})]}),(0,x.jsx)(r.a,{children:t.map(((e,t)=>{var i,r,n,s;return(0,x.jsx)(k,{reviewerId:null===(r=e.owner)||void 0===r?void 0:r.id,reviewerName:(0,y.A)(null===(n=e.owner)||void 0===n?void 0:n.name)||(null===(s=e.owner)||void 0===s?void 0:s.name),rating:e.rating,message:e.message,ratedAt:e.rated_at,marginRight:"24px",marginTop:"17px",...a},null!==(i=e.id)&&void 0!==i?i:t)}))})]})},I=e=>{let{reviews:t,ratingCount:i,ratingScore:r,reviewSectionMobileProps:n={}
69,reviewCarouselProps:s={},mediaQuery:l="(max-width: 860px)"}=e;const[o]=(0,a.U)(l,{ssr:!1});return o?(0,x.jsx)(L,{...n,reviews:t,ratingCount:i,ratingScore:r}):(0,x.jsx)(S,{...s,reviews:t,ratingCount:i,ratingScore:r})};var R=i(97877),A=i(8488),H=i(33390),T=i(3630);function O(e){let{courseId:t}=e;const{data:i,isValidating:r,error:n}=(0,T.Ay)(t?`course_reviews/${t}`:null,(()=>{if(!t)return;return(0,R.t1)({courseId:t,limit:20})}),{revalidateOnFocus:!1,shouldRetryOnError:!1}),s=!!t&&!i&&r;return{reviews:i,selectedReviews:(0,A.zY)(i),isLoadingCourseReviews:s,error:(0,H.A)(n)}}const M=e=>(0,x.jsx)(r.a,{width:"full",height:"2px",borderRadius:"1px",backgroundColor:"neutral.750",opacity:.1,...e}),z={titleLoader:!1,authorLoader:!1,ratingLoader:!1,imageSkeletonProps:{height:"206px"}},P=e=>{let{courseId:t,ratingCount:i,ratingScore:a}=e;const{reviews:l,isLoadingCourseReviews:o}=O({courseId:t});return o?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.A,{marginBottom:"34px"}),(0,x.jsx)(n.A,{breakPointValues:{base:3},gridTemplateColumns:"repeat(1, 1fr)",gridRowGap:"20px",marginBottom:"20px",tileLoaderProps:{titleLoader:!1,ratingLoader:!1,authorLoader:!1,imageSkeletonProps:{height:"200px"}}})]}):null!==l&&void 0!==l&&l.length?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(I,{reviews:l,ratingCount:i,ratingScore:a}),(0,x.jsx)(r.a,{height:"40px"}),(0,x.jsx)(M,{}),(0,x.jsx)(r.a,{height:"24px"})]}):null},B=e=>{let{courseId:t,ratingCount:i,ratingScore:a}=e;const{isLoadingCourseReviews:l,reviews:o}=O({courseId:t});return l?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(s.A,{marginBottom:"28px"}),(0,x.jsx)(n.A,{breakPointValues:{base:2},gridColumnGap:"20px",gridTemplateColumns:["repeat(2, 1fr)"],tileLoaderProps:z})]}):null!==o&&void 0!==o&&o.length?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(r.a,{overflowX:"hidden",children:(0,x.jsx)(I,{reviews:o,ratingScore:a,ratingCount:i,reviewCarouselProps:{reviewCardProps:{width:"calc((100% - 20px) / 2)"}}})}),(0,x.jsx)(r.a,{height:"40px"}),(0,x.jsx)(M,{}),(0,x.jsx)(r.a,{height:"24px"})]}):null}},87492:(e,t,i)=>{i.d(t,{$v:()=>l,Bn:()=>c,D_:()=>d,HH:()=>a,Y8:()=>o,gJ:()=>u,r4:()=>s,tI:()=>r,tp:()=>n,xK:()=>p});const r={achieving_dreams:"achieving-dreams",active_dreaming:"active-dreaming",awakening_vs_sleep:"awakening-vs-sleep",baby_sleep:"baby-sleep-meditation",bedtime_meditations:"bedtime-meditations",bedtime_rituals:"bedtime-rituals",bedtime_yoga:"bedtime-yoga",before_bed:"before-bed",child_sleep_meditation:"children's-sleep-meditations-for-parents",children_sleep:"childrens-sleep-content-for-parents",conscious_sleep:"conscious-sleep",countdown_to_sleep:"countdowns-to-sleep",creative_dreaming:"creative-dreaming",daydream:"daydream",daydreaming:"daydreaming",deep_relaxation_and_sleep:"deep-relaxation-and-sleep",deep_rest:"deep-rest",deep_sleep:"deep-sleep",deeper_sleep:"deeper-sleep",delta_sleep:"delta-sleep",dream:"dream",dream_achievement:"dream-achievement",dream_analogy:"dream-analogies",dream_analysis:"dream-analysis",dream_awareness:"dream-awareness",dream_career:"dream-career",dream_clarity:"dream-clarity-meditation",dream_control:"dream-control",dream_decoding:"dream-decoding",dream_exploration:"dream-exploration",dream_guidance:"dream-guidance",dream_healing:"dream-healing",dream_incubation:"dream-incubation",dream_insights:"dream-insights",dream_inspiration:"dream-inspiration",dream_integration:"dream-integration",dream_intention:"dream-intention",dream_interaction:"dream-interaction",dream_interpretation:"dream-interpretation",dream_journal:"dream-journal",dream_journaling:"dream-journaling",dream_journey:"dream-journey",dream_life:"dream-life",dream_lifestyle:"dream-lifestyle",dream_navigation:"dream-navigation-meditation",dream_recall:"dream-recall",dream_recollection:"dream-recollection",dream_reconnection:"dream-reconnection",dream_reflection:"dream-reflection",dream_signs:"dream-signs",dream_stabilization:"dream-stabilization",dream_state:"dream-states",dream_states:"dream-states",dream_symbolism:"dream-symbolism",dream_symbols:"dream-symbols",dream_transformation:"dream-transformation",dream_visualization:"dream-visualizations",dream_visualizations:"dream-visualizations",dream_worlds:"dream-worlds",dreamers:"dreamers",dreaming:"dreaming",dreamland:"dreamland",dreamlike:"dreamlike",dreamlike_experience:"dreamlike-experiences",dreamlike_experiences:"dreamlike-experiences",dreams:"dreams",dreams_and_reality:"dreams-and-reality",dreams_into_reality:"dreams-into-reality",dreamtime:"dreamtime",dreamwork:"dreamwork",dreamy:"dreamy",dynamic_
69sleep:"dynamic-sleep",exercise_for_sleep:"exercise-for-sleep",fall_asleep:"falling-asleep",fall_asleep_quickly:"fall-asleep-quickly",falling_asleep:"falling-asleep",guided_sleep:"guided-sleep",guided_sleep_meditation:"guided-sleep-meditations",healing_sleep:"healing-sleep",healthy_sleep:"healthy-sleep",hibernation:"hibernation",intentional_daydreaming:"intentional-daydreaming","kids-sleep":"kids-sleep",life_of_your_dreams:"life-of-your-dreams",lucid_dreaming:"lucid-dreaming",lucid_dreams:"lucid-dreams",mind_awake_body_asleep:"mind-awake-body-asleep",mindful_sleep:"mindful-sleep",mindfulness_for_sleep:"mindfulness-for-sleep",natural_sleep:"natural-sleep",natural_sleep_aids:"natural-sleep-aids",nidra:"nidra",nidra_meditations:"nidra-meditations",non_rem_sleep:"non-rem-sleep-meditation",non_sleep_deep_rest:"non-sleep-deep-rest",nourishing_sleep:"nourishing-sleep",nrem_sleep:"nrem-sleep",ocean_imagery:"ocean-imagery",peaceful_dreams:"peaceful-dreams",peaceful_sleep:"peaceful-sleep",peaceful_slumber:"peaceful-slumber",planting_dreams:"planting-dreams",positive_dreams:"positive-dreams",positive_sleep_mindset:"positive-sleep-mindset-meditation",pre_sleep:"pre-sleep",pre_sleep_meditation:"pre-sleep-meditations",pre_sleep_meditations:"pre-sleep-meditations",pre_sleep_routine:"pre-sleep-routines",pre_sleep_routines:"pre-sleep-routines",precognitive_dreams:"precognitive-dreams",prophetic_dreams:"prophetic-dreams",psychic_sleep:"psychic-sleep",quality_sleep:"quality-sleep",refreshing_sleep:"refreshing-sleep",rejuvenating_sleep:"rejuvenating-sleep",rem_sleep:"rem-sleep",rest_and_sleep:"rest-and-sleep",restful_nights:"restful-nights",restful_sleep:"restful-sleep",restlessness:"restlessness",restorative_sleep:"restorative-sleep",sacred_dreaming:"sacred-dreaming",sleep_affirmation:"sleep-affirmation",sleep_affirmations:"sleep-affirmations",sleep_aid:"sleep-aid",sleep_aids:"sleep-aids",sleep_and_health:"sleep-and-health",sleep_anxiety:"sleep-anxiety",sleep_apnea:"sleep-apnea",sleep_awareness:"sleep-awareness",sleep_breathing:"sleep-breathing",sleep_consistency:"sleep-consistency",sleep_cycles:"sleep-cycles",sleep_deprivation:"sleep-deprivation",sleep_disorders:"sleep-disorders",sleep_disruptions:"sleep-disruptions",sleep_education:"sleep-education",sleep_environment:"sleep-environment",sleep_guid
69ance:"sleep-guidance",sleep_hygiene:"sleep-hygiene",sleep_hypnosis:"sleep-hypnosis",sleep_importance:"sleep-importance",sleep_improvement:"sleep-improvement",sleep_intentions:"sleep-intentions",sleep_invitation:"sleep-invitation",sleep_issues:"sleep-issues",sleep_journals:"sleep-journals",sleep_optimization:"sleep-optimization",sleep_paralysis:"sleep-paralysis",sleep_patterns:"sleep-patterns",sleep_podcast:"sleep-podcast-meditation",sleep_posture:"sleep-posture-meditation",sleep_prayer:"sleep-prayers",sleep_prayers:"sleep-prayers",sleep_preparation:"sleep-preparation",sleep_problems:"sleep-problems",sleep_promotion:"sleep-promotion",sleep_protection:"sleep-protection",sleep_quality:"sleep-quality",sleep_quality_assessment:"sleep-quality-assessment",sleep_quality_importance:"sleep-quality-importance",sleep_quality_improvement:"sleep-quality-improvement",sleep_rejuvenation:"sleep-rejuvenation",sleep_resistance:"sleep-resistance",sleep_routine:"sleep-routine",sleep_science:"sleep-science",sleep_series:"sleep-series",sleep_stages:"sleep-stages",sleep_stress_reduction:"sleep-stress-reduction",sleep_support:"sleep-support",sleep_talkdown:"sleep-talkdown",sleep_therapy:"sleep-therapy",sleep_transitions:"sleep-transitions",sleep_visualization:"sleep-visualizations",sleep_visualizations:"sleep-visualizations",sleeping:"sleeping",slow_wave_sleep:"slow-wave-sleep",sound_baths:"sound-baths",sweet_dreams:"sweet-dreams",tranquil_sleep:"tranquil-sleep",vivid_dreams:"vivid-dreams",wakeful_sleep:"wakeful-sleep",wakefulness_and_sleep:"wakefulness-and-sleep",yoga_nidra:"yoga-nidra",yogic_sleep:"yogic-sleep",insomnia:"insomnia",insomnia_management:"insomnia-management",insomnia_relief:"insomnia-relief",night_practices:"night-practices",night_prayer:"night-prayer",night_sky_visualizations:"night-sky-visualizations",night_visualizations:"night-visualizations",nightmares:"nightmares",nighttime_anxiety:"nighttime-anxiety",nighttime_visualizations:"nighttime-visualizations",cognitive_behavioral_therapy_for_insomnia:"cognitive-behavioral-therapy-for-insomnia",nighttime:"nighttime",slumber:"slumber",restful_slumber:"restful-slumber"},n=Object.fromEntries(Object.entries(r).map((e=>{let[t,i]=e;return[i,t]}))),s={bedtime_story:"bedtime-story",bedtime_tales:"bedtime-tales",calm_voice:"calm-voices",calming_voice:"calming-voices",children_bedtime_story:"childrens-bedtime-stories-for-parents",classic_tales:"classic-tales",fairy_tale:"fairy-tale",folktale:"folktales",guided_sleep_stories:"guided-sleep-stories",sleep_stories:"sleep-stories",sleep_story:"sleep-story",snow:"snow",soft_voices:"soft-voices",soothing_narration:"soothing-narration",soothing_voice:"soothing-voices",sound_sleep:"sound-sleep",brothers_grimm:"brothers-grimm",childhood_nostalgia:"childhood-nostalgia",cinderella:"cinderella",fairy_tale_elements:"fairy-tale-elements",fantasy_elements:"fantasy-elements",fantasy_storytelling:"fantasy-storytelling",mythological_figures:"mythological-figures",mythological_storytelling:"mythological-storytelling",mythology:"mythology",relaxation_storytelling:"relaxation-storytelling",tales:"tales",winnie_the_pooh:"winnie-the-pooh"},a=Object.fromEntries(Object.entries(s).map((e=>{let[t,i]=e;return[i,t]}))),l={asmr:"asmr",asmr_meditation:"asmr-meditation",asmr_meditations:"asmr-meditations",gentle_whispers:"gentle-whispers",soft_spoken:"soft-spoken",whispered_meditations:"whispered-sounds",whispering:"whispering",whispers:"whispers"},o={ambient:"ambient",ambient_noise:"ambient-noises",ambient_sounds:"ambient-sounds",ambient_soundscape:"ambient-soundscapes",binaural_sounds:"binaural-sounds",bird_sounds:"bird-sounds",brown_noise:"brown-noise",electronic_sounds:"electronic-sounds",environmental_sounds:"environmental-sounds",fire_sounds:"fire-sounds",forest_sounds:"forest-sounds",gentle_sounds:"gentle-sounds",natural_sounds:"natural-sounds",naturalenvironment:"nature",nature_sounds:"nature-sounds",nature_soundscapes:"nature-soundscapes",naturesounds:"nature-sounds-meditations",night_sounds:"night-sounds",ocean_sounds:"ocean-sounds",ocean_wave_sounds:"ocean-wave-sounds",ocean_waves:"ocean-waves",owl_sound:"owl-sound",pink_noise:"pink-noise",rain_sounds:"rain-sounds",river_sounds:"river-sounds",sleep_sounds:"sleep-sounds",soft_sounds:"soft-sounds",soothing_sounds:"soothing-sounds",sound_therapy:"sound-therapy",soundscape:"soundscapes",streams:"streams",thunder_sounds:"thunder-sounds",thunderstorm:"thunderstorm",thunderstorms:"thunderstorms",water_sounds:"water-sounds",waters:"waters",wave_sounds:"wave-sounds",waves:"waves",whale_sounds:"whale-sounds",white_noise:"white-noise",wind_s
69ounds:"wind-sounds"},d=Object.fromEntries(Object.entries(l).map((e=>{let[t,i]=e;return[i,t]}))),u=Object.fromEntries(Object.entries(o).map((e=>{let[t,i]=e;return[i,t]}))),c={ambient_music:"ambient-music",binaural_beats:"binaural-beats",binaural_delta_waves:"binaural-delta-waves",delta_binaural_beats:"delta-binaural-beats",delta_brainwaves:"delta-brainwaves",delta_state:"delta-state",delta_wave_music:"delta-wave-music",delta_waves:"delta-waves",peaceful_music:"peaceful-music",relaxing_music:"relaxing-music",soothing_music:"soothing-music",sound_frequencies:"sound-frequencies",theta_beats:"theta-beats",theta_binaural:"theta-binaural",theta_binaural_beats:"theta-binaural-beats",theta_music:"theta-music",theta_waves:"theta-waves",bedtime:"bedtime",deep_sleep:"deep-sleep","kids-sleep":"kids-sleep"},p=Object.fromEntries(Object.entries(c).map((e=>{let[t,i]=e;return[i,t]})))},87569:(e,t,i)=>{i.d(t,{A:()=>o,r:()=>s});var r=i(95254),n=i(37783);let s=function(e){return e[e.SET_PLAY=0]="SET_PLAY",e[e.SET_MUTE=1]="SET_MUTE",e[e.SET_DURATION=2]="SET_DURATION",e[e.SET_LOADING=3]="SET_LOADING",e[e.SET_SEEKING=4]="SET_SEEKING",e[e.SET_PLAYED_TIME=5]="SET_PLAYED_TIME",e[e.SET_VOLUME=6]="SET_VOLUME",e[e.SET_READY_TO_PLAY=7]="SET_READY_TO_PLAY",e[e.SET_COMPLETED=8]="SET_COMPLETED",e}({});const a={isReadyToPlay:!1,isLoading:!0,isPlaying:void 0,isMuted:!1,isCompleted:!1,volume:.7,duration:0,playedTime:0},l=(e,t)=>{switch(t.type){case s.SET_READY_TO_PLAY:return{...e,isReadyToPlay:t.value};case s.SET_PLAY:return{...e,isPlaying:t.value};case s.SET_MUTE:return{...e,isMuted:t.value};case s.SET_VOLUME:return{...e,volume:t.value};case s.SET_DURATION:return{...e,duration:t.value};case s.SET_LOADING:return{...e,isLoading:t.value};case s.SET_PLAYED_TIME:return{...e,playedTime:t.value};case s.SET_COMPLETED:return{...e,isCompleted:t.value};default:return e}};function o(e){const[t,i]=(0,r.useReducer)(l,a);let s=!1;n.nr&&!function(){const e=document.createElement("video"),t=""!==e.canPlayType("application/vnd.apple.mpegurl");return e.remove(),t}()&&(s=!0);return{config:{file:{attributes:{crossOrigin:"true"},forceAudio:!0,hlsVersion:"0.14.11",forceHLS:s,hlsOptions:{maxBufferLength:60}}},state:t,dispatch:i,seekTo:(0,r.useCallback)((t=>{null!=e&&e.seekTo(t)}),[e])}}},92133:(e,t,i)=>{i.r(t),i.d(t,{default:()=>At});var r=i(78067),n=i(92939),s=i(56882),a=i(31067),l=i(73492),o=i(32951),d=i(95254),u=i(92709),c=i(87569),p=i(83435),h=i.n(p),x=i(64582);const m=d.lazy((()=>
69Promise.all([i.e(3625),i.e(8302),i.e(6459)]).then(i.bind(i,88840)))),g=(0,d.createContext)({playing:!1}),v=e=>{let{children:t,course:i}=e;const[r,n]=(0,d.useState)(void 0),[s,a]=(0,d.useState)(""),[l,o]=(0,d.useState)(""),[u,p]=(0,d.useState)(!1),v=(0,d.useRef)(null),{config:_}=(0,c.A)(v.current);(0,d.useEffect)((()=>{var e,t,r,s;a(null!==(e=null===i||void 0===i||null===(t=i.media_paths_audio_intro)||void 0===t?void 0:t[0])&&void 0!==e?e:""),o(null!==(r=null===i||void 0===i||null===(s=i.media_paths_video_intro)||void 0===s?void 0:s[0])&&void 0!==r?r:""),p(!1),n(void 0)}),[i]);const f=(0,d.useMemo)((()=>Boolean(l)),[l]),j=(0,d.useCallback)((()=>{n(!1),p(!0)}),[]),C=(0,d.useCallback)((()=>{p(!1)}),[]);return(0,x.jsxs)(g.Provider,{value:{playing:r,setPlaying:n,hasIntroVideo:f,openIntroVideo:j},children:[t,f&&u&&(0,x.jsx)(d.Suspense,{fallback:null,children:(0,x.jsx)(m,{introVideoUrl:l,isIntroVideoOpen:u,closeIntroVideo:C})}),void 0!==r&&(0,x.jsx)(h(),{ref:v,config:_,url:s,playing:r,width:"0",height:"0",onEnded:()=>{n(!1)}})]})};var _=i(4021),f=i(38341),j=i(56087),C=i(52544),w=i(15263),b=i(67957),y=i(11017),E=i(96913),S=i(56710),k=i(85833),L=i(75696),I=i(19323),R=i(98265),A=i(42046),H=i(25745),T=i(97207),O=i(97141);const M=(0,O.A)(T.$)` 70 background-color: var(--brandTeal-500); 71 color: var(--neutral-0); 72 padding: 8px 24px 8px 24px; 73 border-radius: 8px; 74 min-height: 40px; 75 width: 132px; 76 font-weight: 500; 77 font-size: 16px; 78 line-height: 22px; 79 text-align: center; 80 &:hover { 81 background-color: var(--brandTeal-500); 82 } 83`,z=(0,O.A)(T.$)` 84 background-color: var(--brandTeal-500); 85 color: var(--neutral-0); 86 border-radius: 8px; 87 padding: 16px; 88 width: 116px; 89 height: 34px; 90 font-weight: 500; 91 font-size: 16px; 92 line-height: 22px; 93 text-align: center; 94 display: flex; 95 align-items: center; 96 justify-content: center; 97 98 &:hover { 99 background-color: var(--brandTeal-500); 100 } 101`,P=e=>{var t,i,r;let{publisher:n,publisherIntro:s,anchorColor:a="yellow.400"}=e;const o=(0,H.q5)(n.id,"square","medium"),u=(0,l.D)().getTeacherUrl(null===n||void 0===n?void 0:n.username),{getTeacherCityLocalLink:c}=(0,R.A)(),p=d.useMemo((()=>{var e;return c(null!==(e=n.region)&&void 0!==e?e:{})}),[c,n]);return(0,x.jsxs)(_.a,{children:[(0,x.jsx)(_.a,{children:(0,x.jsx)(w.E,{fontWeight:"500",fontSize:"24px",lineHeight:"34px",color:"var(--neutral-700)",children:(0,x.jsx)(L.x6,{id:"Meet your Teacher"})})}),(0,x.jsx)(_.a,{height:"28px"}),(0,x.jsxs)(_.a,{display:"flex",alignItems:"center",children:[(0,x.jsx)(_.a,{width:"118px",height:"118px",bgColor:"var(--neutral-100)",borderRadius:"50%",marginRight:"30px",flexShrink:"0",children:(0,x.jsx)(k._,{alt:"",width:"100%",height:"100%",objectFit:"cover",objectPosition:"center",borderRadius:"50%",src:o,loading:"lazy"})}),(0,x.jsxs)(_.a,{flexGrow:1,children:[(0,x.jsxs)(_.a,{display:"flex",children:[(0,x.jsx)(_.a,{marginRight:"10px",flexGrow:1,children:(0,x.jsx)(w.E,{as:A.Link,to:u,fontWeight:"700",fontSize:"28px",lineHeight:"34px",color:"var(--neutral-700)",children:null!==(t=n.name)&&void 0!==t?t:""})}),(0,x.jsx)(_.a,{children:(0,x.jsx)("a",{href:u,tabIndex:-1,children:(0,x.jsx)(M,{_focus:{outline:"none"},_focusVisible:{outline:"2px solid black !important",outlineOffset:"0px"},children:(0,x.jsx)(L.x6,{id:"View profile"})})})})]}),(0,x.jsx)(_.a,{height:"4px"}),(0,x.jsx)(w.E,{as:A.Link,to:p,fontWeight:"700",fontSize:"12px",lineHeight:"16px",color:"var(--neutral-600)",textTransform:"uppercase",children:null!==(i=null===(r=n.region)||void 0===r?void 0:r.name)&&void 0!==i?i:""})]})]}),s&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(_.a,{height:"35px"}),(0,x.jsx)(w.E,{fontWeight:"400",fontSize:"18px",lineHeight:"24px",color:"var(--neutral-700)",children:(0,x.jsx)(I.A,{height:"50px",toggleButtonProps:{color:a},children:s})})]})]})};var B=i(3722),W=i(49295);const $=e=>{let{courseId:t,publisherName:i,courseTitle:r}=e;const n=(0,H.hD)(t,"rectangle","medium");return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(W.Ay,{children:(0,x.jsx)("link",{rel:"preload",as:"image",href:n})}),(0,x.jsx)(_.a,{width:"100%",paddingBottom:"60.5%",borderRadius:"10px",backgroundColor:"lightgray",overflow:"hidden",position:"relative",children:(0,x.jsx)(k._,{src:n,fetchPriority:"high",position:"absolute",width:"100%",height:"100%",top:"50%",left:"50%",transform:"translate(-50%, -50%)",objectFit:"cover",alt:r&&i?`${r} - by ${i}`:"Course banner"})})]})};var V=i(98193),N=i(67920),D=i(97877),F=i(3630);const U=e=>{var t,i;let{forumId:r="",isMobile:n=!1}=e;const{data:s,isValidating:a}=(0,F.Ay)(r?`/audio_replies/${r}`:null,(()=>(0,D.rx)(r||"")));return(null!==(t=null===s||void 0===s?void 0:s.audio_replies_count)&&void 0!==t?t:0)<5||a?null:(0,x.jsx)(x.Fragment,{children:s&&!(null===(i=s.summary)||void 0===i||!i.name)&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(w.E,{fontSize:n?"20px":"24px",fontWeight:"500",lineHeight:n?"23px":"34px",color:"var(--neutral-700)",children:"Ask your teacher"}),(0,x.jsxs)(w.E,{mt:n?"22px":"14px",fontSize:n?"16px":"18px",fontWeight:"400",lineHeight:n?"22px":"24px",color:"var(--neutral-700)",children:["This course includes ",s.comment_count," community questions and ",s.audio_replies_count," audio replies from"," ",s.summary.name,". The community classroom and teacher audio replies are only available via the app."]}),(0,x.jsxs)(f.s,{mt:n?"25px":"30px",justifyContent:"flex-start",width:"100%",overflow:"auto",children:[s.audio_replies.slice(0,1).map((e=>(0,x.jsx)(_.a,{mr:"34px",position:"relative",flexShrink:"0",children:(0,x.jsx)(k._,{borderRadius:"50%",height:"96px",width:"96px",filter:"grayscale(1)",src:(0,H.q5)(e.user_summary.id,"square","medium")})},e.post_id))),(0,x.jsx)(f.s,{flexShrink:"0",borderRadius:"50%",height:"96px",width:"96px",fontSize:"18px",fontWeight:"500",lineHeight:"23px ",color:"var(--neutral-700)",bgColor:"var(--neutral-100)",justifyContent:"center",alignItems:"center",children:s.comment_count})]}),(0,x.jsx)(_.a,{height:n?"40px":"52px"}),(0,x.jsx)(b.c,{}),(0,x.jsx)(_.a,{height:n?"30px":"44px"})]})})};var q,G,Z,Y;function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},K.apply(null,arguments)}function J(e,t){let{title:i,titleId:r,...n}=e;return d.createElement("svg",K({width:22,height:22,viewBox:"0 0 22 22",fill:"none",stroke:"#E1B033",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},n),i?d.createElement("title",{id:r},i):null,q||(q=d.createElement("path",{d:"M1 3H21V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H5.8C4.11984 21 3.27976 21 2.63803 20.673C2.07354 20.3854 1.6146 19.9265 1.32698 19.362C1 18.7202 1 17.8802 1 16.2V3Z",strokeWidth:2})),G||(G=d.createElement("path",{d:"M1 9H21",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Z||(Z=d.createElement("path",{d:"M5 1V5",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Y||(Y=d.createElement("path",{d:"M17 1V5",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const X=d.forwardRef(J);i.p;var Q,ee,te,ie,re,ne;function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},se.apply(null,arguments)}function ae(e,t){let{title:i,titleId:r,...n}=e;return d.createElement("svg",se({width:22,height:21,viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},n),i?d.createElement("title",{id:r},i):null,Q||(Q=d.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:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ee||(ee=d.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.
10109091C6.90918 7.34636 8.74463 9.18182 11.0001 9.18182Z",stroke:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),te||(te=d.createElement("path",{d:"M2 13C1.365 13.6003 1 14.3022 1 15.0523V17",stroke:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ie||(ie=d.createElement("path",{d:"M20 13C20.635 13.6003 21 14.3022 21 15.0523V17",stroke:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),re||(re=d.createElement("path",{d:"M17.9004 8.65202C19.1743 8.56284 20.1823 7.51147 20.1823 6.21464C20.1823 5.28109 19.6546 4.47764 18.8863 4.06445",stroke:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ne||(ne=d.createElement("path",{d:"M4.1011 8.65202C2.82718 8.56202 1.81836 7.51147 1.81836 6.21464C1.81836 5.28109 2.34691 4.47764 3.11437 4.06445",stroke:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const le=d.forwardRef(ae);i.p;var oe,de,ue;function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},ce.apply(null,arguments)}function pe(e,t){let{title:i,titleId:r,...n}=e;return d.createElement("svg",ce({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},n),i?d.createElement("title",{id:r},i):null,oe||(oe=d.createElement("path",{d:"M6.45467 19.8989V10.9998C6.45467 9.99528 5.64012 9.18164 4.63649 9.18164H1.17285",stroke:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),de||(de=d.createElement("path",{d:"M15.5454 2.09961V2.81779V5.89234C15.5454 6.70415 14.8863 7.36325 14.0745 7.36325C13.8463 7.36325 13.6208 7.30961 13.4163 7.20779L12.2199 6.60961C12.0154 6.50779 11.7899 6.45415 11.5617 6.45415C10.7499 6.45415 10.0908 7.11325 10.0908 7.92506V9.5287C10.0908 10.3405 10.7499 10.9996 11.5617 10.9996H14.0299C15.369 10.9996 16.4545 12.0842 16.4545 13.4242C16.4545 14.1869 16.0954 14.9051 15.4854 15.3632C13.8063 16.6223 12.8181 18.5978 12.8181 20.6969V20.8269",stroke:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ue||(ue=d.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:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const he=d.forwardRef(pe);i.p;var xe,me,ge,ve;function _e(){return _e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},_e.apply(null,arguments)}function fe(e,t){let{title:i,titleId:r,...n}=e;return d.createElement("svg",_e({width:25,height:21,viewBox:"0 0 25 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},n),i?d.createElement("title",{id:r},i):null,xe||(xe=d.createElement("path",{d:"M5.17383 8.82617V17.4766C5.17383 17.4766 7.26078 19.7827 12.4782 19.7827C17.6955 19.7827 19.7825 17.4766 19.7825 17.4766V8.82617",stroke:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),me||(me=d.createElement("path",{d:"M1 6.73912L12.4782 1L23.9565 6.73912",stroke:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ge||(ge=d.createElement("path",{d:"M23.9565 6.74023L12.4782 12.4794L1 6.74023",stroke:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ve||(ve=d.createElement("path",{d:"M23.9565 7.52148V15.3476",stroke:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const je=d.forwardRef(fe);i.p;var Ce;function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},we.apply(null,arguments)}function be(e,t){let{title:i,titleId:r,...n}=e;return d.createElement("svg",we({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},n),i?d.createElement("title",{id:r},i):null,Ce||(Ce=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.37582 5H8.74888C9.50864 5 10.1247 5.61606 10.1247 6.37582V17.3748C10.1247 18.1346 9.50864 18.7506 8.74888 18.7506H7.37582C6.61606 18.7506 6 18.1346 6 17.3748V6.37582C6 5.61606 6.61606 5 7.37582 5ZM14.251 5H15.6241C16.3839 5 16.9999 5.61606 16.9999 6.37582V17.3748C16.9999 18.1346 16.3839 18.7506 15.6241 18.7506H14.251C13.4913 18.7506 12.8752 18.1346 12.8752 17.3748V6.37582C12.8752 5.61606 13.4913 5 14.251 5Z",fill:"#222222"})))}const ye=d.forwardRef(be);i.p;var Ee,Se=i(60349);function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},ke.apply(null,arguments)}function Le(e,t){let{title:i,titleId:r,...n}=e;return d.createElement("svg",ke({width:22,height:23,viewBox:"0 0 22 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},n),i?d.createElement("title",{id:r},i):null,Ee||(Ee=d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.7328 20.84L11.0255 18.2163C11.0128 18.2091 10.9964 18.2091 10.9828 18.2163L6.27909 20.8445C5.36272 21.3564 4.28999 20.5309 4.46453 19.4464L5.3609 13.8854C5.36363 13.869 5.35817 13.8527 5.34727 13.8418L1.33724 9.69721C0.677239 9.01448 1.04088 7.82629 1.95179 7.68447L7.49091 6.8281C7.50546 6.82537 7.5191 6.81537 7.52546 6.80174L9.87638 1.73989C10.3337 0.753521 11.6591 0.753521 12.1173 1.73898L14.4728 6.7981C14.4791 6.81265 14.4928 6.82265 14.5073 6.82446L20.0464 7.67629C20.9583 7.81629 21.3228 9.00448 20.6637 9.68721L16.6582 13.8363C16.6464 13.8481 16.6419 13.8636 16.6446 13.88L17.5455 19.44C17.7219 20.5245 16.6501 21.3509 15.7328 20.84Z",stroke:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const Ie=d.forwardRef(Le);i.p;var Re,Ae;function He(){return He=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},He.apply(null,arguments)}function Te(e,t){let{title:i,titleId:r,...n}=e;return d.createElement("svg",He({width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},n),i?d.createElement("title",{id:r},i):null,Re||(Re=d.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:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Ae||(Ae=d.createElement("path",{d:"M7.36328 11.9096H10.9996V6.45508",stroke:"#E1B033",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const Oe=d.forwardRef(Te);i.p;var Me=i(81015),ze=i(11130),Pe=i(33390),Be=i(32104);const We=e=>{let{courseId:t}=e;const{user:i,authState:r}=(0,Be.t7)(),n=null===i||void 0===i?void 0:i.uid,s=r===Be.kj.AUTHORIZED,{data:a,isValidating:l,error:o}=(0,F.Ay)(t&&n&&s?`${n}/course/${t}/progress`:null,(()=>{if(n)return(0,D.gm)({courseId:t,userId:n})}),{revalidateOnFocus:!1,shouldRetryOnError:!1});
101return{isFetchingProgress:!a&&l,progressDetails:a,error:(0,Pe.A)(o)}};var $e=i(94309),Ve=i.n($e),Ne=i(37301);const De={"> *":{flexShrink:0}},Fe=e=>{var t;let{course:i,...r}=e;const{id:n="",days:s,minutes_per_day:a,number_of_students:l,rating_score:o,lang:c,tags:p}=i||{},{user:h,authState:m}=(0,Be.t7)(),{progressDetails:v,isFetchingProgress:j}=We({courseId:n}),{course_current_day:C}=null!==v&&void 0!==v?v:{},b=null===h||void 0===h?void 0:h.uid,{playing:y,setPlaying:E,hasIntroVideo:S,openIntroVideo:k}=(()=>{const e=(0,d.useContext)(g);if(!e||"function"!==typeof e.setPlaying)throw new Error("useCourseIntroMediaContext must be used within CourseDetailsPages component.");return e})(),{isSubscriptionInProgress:L,updatingUserCourseList:I,checkUserSubscription:R}=null!==(t=(0,Ne.t)())&&void 0!==t?t:{},A=L||j||m===Be.kj.PENDING||I,H=(0,u.W6)();return(0,x.jsx)(_.a,{bgColor:["transparent","transparent","neutral.50"],borderRadius:"12px",width:"100%",overflow:"hidden",...r,children:(0,x.jsxs)(_.a,{padding:["0px","0px","26px 26px 26px 25px"],children:[(0,x.jsxs)(f.s,{justifyContent:"space-between",children:[(0,x.jsxs)(f.s,{flexDirection:"column",width:"50%",children:[(0,x.jsxs)(f.s,{mb:"24px",children:[(0,x.jsx)(_.a,{sx:De,children:(0,x.jsx)(X,{})}),(0,x.jsxs)(w.E,{ml:"17px",color:"#272B2B",fontWeight:"500",fontSize:"16px",lineHeight:"22px",children:[null!==s&&void 0!==s?s:0," Days"]})]}),(0,x.jsxs)(f.s,{mb:"24px",children:[(0,x.jsx)(_.a,{sx:De,children:(0,x.jsx)(le,{})}),(0,x.jsxs)(w.E,{ml:"17px",color:"#272B2B",fontWeight:"500",fontSize:"16px",lineHeight:"22px",children:[(0,ze.j)(null!==l&&void 0!==l?l:0)," students"]})]}),(0,x.jsxs)(f.s,{children:[(0,x.jsx)(_.a,{sx:De,children:(0,x.jsx)(Ie,{})}),(0,x.jsx)(w.E,{ml:"17px",color:"#272B2B",fontWeight:"500",fontSize:"16px",lineHeight:"22px",children:o?`${null===o||void 0===o?void 0:o.toFixed(1)} stars`:"No ratings"})]})]}),(0,x.jsxs)(f.s,{flexDirection:"column",width:"50%",children:[(0,x.jsxs)(f.s,{mb:"24px",children:[(0,x.jsx)(_.a,{sx:De,children:(0,x.jsx)(Oe,{})}),(0,x.jsxs)(w.E,{ml:"17px",color:"#272B2B",fontWeight:"500",fontSize:"16px",lineHeight:"22px",children:[a," min / day"]})]}),(0,x.jsxs)(f.s,{mb:"24px",children:[(0,x.jsx)(_.a,{sx:De,children:(0,x.jsx)(je,{})}),(0,x.jsx)(w.E,{ml:"17px",color:"#272B2B",fontWeight:"500",fontSize:"16px",lineHeight:"22px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",children:(()=>{var e;const t=[],i=Ve()(Me.result.topic_groups,{name:"BENEFITS"});(null!==(e=null===i||void 0===i?void 0:i.topics)&&void 0!==e?e:[]).forEac
101h((e=>{if("name"in e&&"type"in e&&"topic"in e){const i={name:e.name,type:e.type,topic:e.topic};t.push(i),t.push(...e.children.map((e=>{let{name:t,topic:i,type:r}=e;return{name:t,topic:i,type:r}})))}}));let r="";for(const n of null!==p&&void 0!==p?p:[]){const e=t.find((e=>e.topic===n));if(e){r=e.name;break}}return r})()})]}),(0,x.jsxs)(f.s,{children:[(0,x.jsx)(_.a,{sx:De,children:(0,x.jsx)(he,{})}),(0,x.jsx)(w.E,{ml:"17px",color:"#272B2B",fontWeight:"500",fontSize:"16px",lineHeight:"22px",children:null===c||void 0===c?void 0:c.name})]})]})]}),(0,x.jsxs)(T.$,{bgColor:["neutral.50","neutral.50","neutral.0"],color:"neutral.700",borderRadius:"12px",height:"50px",fontSize:"18px",lineHeight:"25px",fontWeight:"500",w:"100%",mb:"14px",mt:"36px",_focus:{outline:"none"},_focusVisible:{outline:"auto !important"},onClick:()=>{S&&k?k():E&&E(!y)},children:[!S&&y?(0,x.jsx)(ye,{}):(0,x.jsx)(Se.h,{}),"Intro"]}),(0,x.jsx)(T.$,{onClick:()=>{R&&i&&R({successCallbackFn:()=>{H.push(`/play/course/${i.id}`)}})},bgColor:"var(--yellow-400)",color:"var(--neutral-0)",borderRadius:"12px",height:"50px",fontSize:"18px",lineHeight:"25px",fontWeight:"500",_hover:{bgColor:"var(--yellow-400)"},_focus:{outline:"none"},_focusVisible:{outline:"2px solid black !important",outlineOffset:"0px"},w:"100%",disabled:A,isLoading:A,children:b&&C?`Play lesson ${C}`:"Begin Course"})]})})};var Ue=i(16614),qe=i(87186),Ge=i(47463);const Ze=e=>(0,x.jsxs)(Ue.A,{display:"inline-flex",borderRadius:"5px",bgcolor:"var(--yellow-400)",padding:"2px 5px 2px 5px",alignItems:"center",...e,children:[(0,x.jsx)(Ue.A,{marginRight:"4px",children:(0,x.jsx)(qe.h,{width:"10px",height:"10px",fill:"var(--neutral-0)"})}),(0,x.jsx)(Ge.A,{textStyle:["caption2","caption2","caption1"],color:"var(--neutral-0)",children:(0,x.jsx)(L.x6,{id:"COURSE"})})]});var Ye=i(68645),Ke=i.n(Ye),Je=i(87640);var Xe=i(47553),Qe=i(28588);const et=e=>{let{topics:t,courseDays:i}=e;const r=(0,d.useMemo)((()=>{var e;const t=null!==(e=(e=>{if(null===e||void 0===e||!e.length)return null;const t=[];e.forEach((e=>{var i,r,n;null!==(i=e.ai_intelligence_with_score)&&void 0!==i&&null!==(r=i.techniques)&&void 0!==r&&r.length&&t.push(...null===(n=e.ai_intelligence_with_score)||void 0===n?void 0:n.techniques)}));const i=Ke()(t,["score"],["desc"]),r=new Map,n=[];return i.forEach((e=>{r.has(e.id)||(n.push(e),r.set(e.id,!0))})),(0,Je.g)(n)})(i))&&void 0!==e?e:[];return t.slice(0,5)}),[i]);return(0,x.jsxs)(f.s,{flexWrap:"wrap",children:[r.map((e=>(0,x.jsx)(Qe.A,{to:e.website_url,children:e.title_from_slug},e.tech_id))),t.map((e=>(0,x.jsx)(Xe.A,{topic:e},e)))]})};var tt=i(64714),it=i(14430);const rt=e=>{let{courseDays:t=[]}=e;return(0,x.jsx)(_.a,{children:null===t||void 0===t?void 0:t.map((e=>(0,x.jsxs)(_.a,{mb:"40px",children:[(0,x.jsxs)(w.E,{fontWeight:"500",fontSize:"20px",lineHeight:"24px",color:"var(--neutral-700)",mb:"16px",children:["Lesson ",e.day]}),(0,x.jsx)(w.E,{fontWeight:"500",fontSize:"18px",lineHeight:"23px",color:"var(--neutral-700)",mb:"16px",children:e.title}),(0,x.jsx)(w.E,{fontWeight:"400",fontSize:"16px",lineHeight:"22px",color:"var(--neutral-600)",whiteSpace:"pre-wrap",children:e.outline})]},e.id)))})},nt=e=>{let{courseDays:t=[]}=e;return(0,x.jsxs)(_.a,{children:[(0,x.jsx)(_.a,{height:"44px"}),(0,x.jsx)(it.aY,{children:(0,x.jsx)(tt.A,{spaceBetween:[20,20,20,20],buttonTop:"-44px",children:null===t||void 0===t?void 0:t.map((e=>(0,x.jsxs)(_.a,{width:"calc((100% - 20px) / 2)",height:"auto",children:[(0,x.jsxs)(w.E,{fontWeight:"500",fontSize:"24px",lineHeight:"34px",color:"var(--neutral-700)",mb:"14px",children:["Lesson ",e.day]}),(0,x.jsx)(w.E,{fontWeight:"500",fontSize:"18px",lineHeight:"23px",color:"var(--neutral-700)",mb:"17px",children:e.title}),(0,x.jsx)(I.A,{height:"85px",fontSize:"18px",lineHeight:"27px",fontWeight:400,toggleButtonProps:{color:"yellow.400"},children:e.outline})]},e.id)))})})]})};var st=i(26190);const at=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";const{meditationTopicsSet:i,isLoading:r,isError:n}=(0,st.A)({language:t});return(0,d.useMemo)((()=>{var t;const s=null!==(t=null===e||void 0===e?void 0:e.map((e=>{let{tag:t}=e;return t})))&&void 0!==t?t:[];if(n||r)return s.slice(0,20);const a=[];for(const e of s)if(i.has(e)&&(a.push(e),20===a.length))break;return a}),[e,n,r,i])},lt=e=>{var t,i;let{course:r,isLoading:s}=e;const{id:a,publisher:l,title:o,purchase_tier:d,long_description:u,publisher_intro:c,forum_id:p}=r||{},h=at(null===r||void 0===r?void 0:r.ai_tags_with_score,"en");return(0,x.jsx)(x.Fragment,{children:(0,x.jsx)(_.a,{paddingX:"20px",children:(0,x.jsxs)(_.a,{maxWidth:"1007px",width:" 100%",margin:"auto",children:[(0,x.jsx)(_.a,{height:"50px"}),(0,x.jsx)(E.A,{composedPath:[{name:"Courses",link:"/meditation-courses"},{name:null!==o&&void 0!==o?o:""}]}),(0,x.jsx)(_.a,{height:"30px"}),(0,x.jsxs)(f.s,{display:"flex",children:[(0,x.jsxs)(_.a,{flexGrow:"1",children:[(0,x.jsxs)(_.a,{position:"relative",children:[(0,x.jsx)($,{courseId:a||"",publisherName:(null===l||void 0===l?void 0:l.name)||"",courseTitle:o}),"INSIGHT_FREE_COURSE"!==d&&(0,x.jsx)(_.a,{position:"absolute",top:"24px",left:"0",children:(0,x.jsx)(y.h,{})}),r&&(0,x.jsx)(_.a,{position:"absolute",top:"16px",right:"16px",children:(0,x.jsx)(B.default,{library
101ItemSummary:r,isShowShareIconButton:!0,title:`Share ${o} course`})})]}),(0,x.jsx)(_.a,{height:"53px"}),(0,x.jsx)(Ze,{}),(0,x.jsx)(_.a,{height:"13px"}),s?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(j.E,{height:"34px",width:"70%",mb:"40px",rounded:"md"}),(0,x.jsxs)(C.T,{spacing:"20px",align:"start",width:"full",mb:"40px",children:[(0,x.jsx)(j.E,{height:"22px",width:"50%",rounded:"md"}),(0,x.jsx)(j.E,{height:"22px",width:"60%",rounded:"md"})]}),(0,x.jsxs)(C.T,{spacing:"20px",align:"start",width:"full",children:[(0,x.jsx)(j.E,{height:"22px",width:"80%",rounded:"md"}),(0,x.jsx)(j.E,{height:"22px",width:"90%",rounded:"md"}),(0,x.jsx)(j.E,{height:"22px",width:"85%",rounded:"md"}),(0,x.jsx)(j.E,{height:"22px",width:"100%",rounded:"md"})]})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(w.E,{color:"var(--neutral-700)",fontSize:"48px",lineHeight:"58px",letterSpacing:" -0.02em",fontWeight:" 700",as:"h1",children:o}),(0,x.jsx)(_.a,{height:"12px"}),(0,x.jsxs)(w.E,{color:"var(--neutral-600)",fontWeight:"500",fontSize:"16px",lineHeight:"23px",children:["With"," ",(0,x.jsx)(A.Link,{to:`/${null===l||void 0===l?void 0:l.username}`,children:null===l||void 0===l?void 0:l.name})]}),(0,x.jsx)(_.a,{height:"44px"}),(0,x.jsx)(S.A,{noOfLines:3,children:(0,x.jsx)(w.E,{color:"var(--neutral-700)",fontWeight:"400",fontSize:"18px",lineHeight:"24px",whiteSpace:"pre-wrap",children:null!==u&&void 0!==u?u:""})})]}),(0,x.jsx)(_.a,{height:"52px"}),(0,x.jsx)(et,{topics:h,courseDays:null===r||void 0===r?void 0:r.course_days}),(0,x.jsx)(_.a,{height:"52px"}),(0,x.jsx)(b.c,{}),(0,x.jsx)(_.a,{height:"44px"}),l&&(0,x.jsx)(P,{publisher:l,publisherIntro:null!==c&&void 0!==c?c:""})]}),(0,x.jsx)(_.a,{marginLeft:["30ox","30ox","60px"],children:(0,x.jsx)(_.a,{position:"sticky",top:"90px",width:"364px",children:r?(0,x.jsx)(Fe,{width:"364px",course:r}):(0,x.jsx)(j.E,{width:"364px",height:"317px",rounded:"xl"})})})]}),(0,x.jsx)(_.a,{height:"52px"}),(0,x.jsx)(b.c,{}),(null===r||void 0===r?void 0:r.course_days)&&r.course_days.length>0&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(_.a,{height:"44px"}),(0,x.jsx)(nt,{courseDays:r.course_days}),(0,x.jsx)(_.a,{height:"52px"}),(0,x.jsx)(b.c,{})]}),(0,x.jsx)(_.a,{height:"44px"}),(0,x.jsx)(U,{forumId:null!==p&&void 0!==p?p:""}),(0,x.jsx)(n.A,{loaderHeight:357,width:"100%",children:(0,x.jsx)(x.Fragment,{children:null!==r&&void 0!==r&&r.rating_count?(0,x.jsx)(N.default,{courseId:null!==a&&void 0!==a?a:"",ratingCount:null!==(t=null===r||void 0===r?void 0:r.rating_count)&&void 0!==t?t:0,ratingScore:null!==(i=null===r||void 0===r?void 0:r.rating_score)&&void 0!==i?i:0}):null})}),(0,x.jsx)(n.A,{loaderHeight:444,width:"100%",children:null!==r&&void 0!==r&&r.publisher?(0,x.jsx)(V.default,{publisherId:r.publisher.id,publisherName:r.publisher.name,excludeCourseId:r.id}):null}),(0,x.jsx)(_.a,{height:"44px"})]})})})};var ot=i(79759),dt=i(97362);const ut=e=>{let{slug:t}=e;const i=window.location.origin;return(0,x.jsxs)(W.Ay,{children:[(0,x.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:`${i}/${(0,o.Vs)(ot.xl.English,t)}`}),o.PK.filter((e=>e!==ot.xl.Russian||(0,dt.N)())).map((e=>{const{getCourseUrl:r}=(0,o.YO)(e);return(0,x.jsx)("link",{rel:"alternate",hrefLang:e,href:i+r(t)},e)}))]})};var ct,pt;function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},ht.apply(null,arguments)}function xt(e,t){let{title:i,titleId:r,...n}=e;return d.createElement("svg",ht({width:75,height:20,viewBox:"0 0 75 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},n),i?d.createElement("title",{id:r},i):null,ct||(ct=d.createElement("g",{id:"Group 15090"},d.createElement("path",{id:"Combined Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M74.29 16.9345C75.1284 18.2664 74.1712 20 72.5974 20H0.0181885L0 0H72.7509C74.2916 0 75.2537 1.66869 74.4818 3.00203L71.3985 8.32805C70.6542 9.61368 70.6837 11.2059 71.4751 12.4631L74.29 16.9345Z",fill:"url(#paint0_linear_544_4877)"}),d.createElement("path",{id:"Combined Shape_2",fillRule:"evenodd",clipRule:"evenodd",d:"M14.3819 12.4276V7.30469H13.7397C13.6638 7.30469 13.6051 7.31128 13.5635 7.32419C13.5219 7.33736 13.484 7.37702 13.4497 7.44343L11.78 10.414C11.7433 10.4828 11.7085 10.5546 11.6753 10.6292C11.6424 10.7039 11.6112 10.7792 11.5818 10.8551C11.5549 10.7792 11.5249 10.7052 11.4919 10.6327C11.459 10.5604 11.424 10.4899 11.3873 10.4211L9.69189 7.44343C9.65764 7.37702 9.61972 7.33736 9.57813 7.32419C9.53654 7.31128 9.47782 7.30469 9.40198 7.30469H8.75977V12.4276H9.51574V8.91626C9.51574 8.85697 9.51397 8.79293 9.5103 8.72415C9.5065 8.65537 9.50106 8.58659 9.49372 8.51782L11.2185 11.5666C11.2821 11.6923 11.3837 11.7552 11.5231 11.7552H11.6442C11.7812 11.7552 11.8828 11.6923 11.9488 11.5666L13.6479 8.52493C13.6406 8.59371 13.635 8.66183 13.6315 8.72942C13.6278 8.79702 13.6259 8.85934 13.6259 8.91626V12.4276H14.3819ZM19.0796 12.4276L19.0833 11.7552H16.6466V10.1721H18.5915V9.52105H16.6466V7.97707H19.0796V7.30469H15.7842V12.4276H19.0796ZM25.7793 7.30469V12.4276H25.0234V8.91626C25.0234 8.85934 25.0253 8.79702 25.0289 8.72942C25.0325 8.66183 25.038 8.59371 25.0454 8.52493L23.3463 11.5666C23.2802 11.6923 23.1787 11.7552 23.0417 11.7552H22.9206C22.7811 11.7552 22.6796 11.6923 22.616 11.5666L20.8912 8.51782C20.8985 8.58659 20.904 8.65537 20.9078 8.72415C20.9114 8.79293 20.9132 8.85697 20.9132 8.91626V12.4276H20.1572V7.30469H20.7994C20.8753 7.30469 20.934 7.31128 20.9756 7.32419C21.0172 7.33736 21.0551 7.37702 21.0894 7.44343L22.7848 10.4211C22.8215 10.4899 22.8564 10.5604 22.8893 10.6327C22.9223 10.7052 22.9524 10.7792 22.9793 10.8551C23.0086 10.7792 23.0399 10.7039 23.0728 10.6292C23.106 10.5546 23.1408 10.4828 23.1775 10.414L24.8472 7.44343C24.8815 7.37702 24.9194 7.33736 24.961 7.32419C25.0026 7.31128 25.0613 7.30469 25.1371 7.30469H25.7793ZM29.5922 11.7025C29.4588 11.7465 29.2955 11.7684 29.1023 11.7684H28.0381V10.1426H29.0986C29.4656 10.1426 29.7341 10.2119 29.9041 10.3508C30.0741 10.4894 30.1592 10.6798 30.1592 10.9217C30.1592 11.0404 30.1402 11.1511 30.1023 11.2544C30.0643 11.3576 30.0032 11.447 29.9188 11.5229C29.8344 11.5988 29.7255 11.6588 29.5922 11.7025ZM28.0381 9.55598V7.95508H28.9372C29.2993 7.95508 29.5653 8.01793 29.7353 8.14363C29.9053 8.26933 29.9904 8.4733 29.9904 8.75553C29.9904 9.01404 29.8999 9.21208 29.7188 9.34964C29.5378 9.4872 29.2638 9.55598 28.8968 9.55598H28.0381ZM29.8046 7.39903C29.5648 7.33618 29.2761 7.30469 28.9385 7.30469H27.1807V12.4276H29.1183C29.4192 12.4276 29.6871 12.3908 29.922 12.3173C30.1569 12.2439 30.3543 12.1413 30.5146 12.0096C30.6748 11.878 30.7972 11.7215 30.8817 11.54C30.966 11.3586 31.0082 11.1587 31.0082 10.9405C31.0082 10.3239 30.6339 9.93847 29.8853 9.78431C30.0492 9.73226 30.191 9.66691 30.311 9.58864C30.4309 9.51037 30.5305 9.42209 30.61 9.32367C30.6895 9.22524 30.7482 9.1197 30.7861 9.00705C30.8241 8.89439 30.8431 8.77752 30.8431 8.65656C30.8431 8.44798 30.8069 8.25996 30.7348 8.09275C30.6626 7.92555 30.5495 7.78377 30.3954 7.66756C30.2413 7.55134 30.0443 7.46188 29.8046 7.39903ZM35.4212 11.7552L35.4175 12.4276H32.1221V7.30469H35.4175V7.97707H32.9845V9.52105H34.9295V10.1721H32.9845V11.7552H35.4212ZM38.5446 9.68945C38.3978 9.7357 38.2264 9.75876 38.0307 9.75876H37.3555V7.95508H38.0527C38.4391 7.95508 38.728 8.0286 38.9189 8.17565C39.1096 8.32269 39.205 8.53615 39.205 8.81601C39.205 8.95594 39.1806 9.08348 39.1316 9.19851C39.0827 9.31354 39.0093 9.41249 38.9115 9.4955C38.8136 9.57851 38.6914 9.64321 38.5446 9.68945ZM39.7533 12.4276H40.5201L39.0926 10.4745C39.0169 10.363 38.9264 10.2764 38.821 10.2148C39.0143 10.1626 39.1868 10.0903 39.3386 9.99776C39.4901 9.9052
1016 39.6179 9.79616 39.7219 9.67046C39.826 9.54476 39.9055 9.40483 39.9606 9.25067C40.0155 9.09651 40.0431 8.93049 40.0431 8.75261C40.0431 8.53442 40.0046 8.33638 39.9275 8.1585C39.8503 7.98062 39.7311 7.82831 39.5697 7.70129C39.4082 7.57453 39.2021 7.47664 38.9512 7.40786C38.7005 7.33908 38.4014 7.30469 38.054 7.30469H36.498V12.4276H37.3568V10.3642H37.8338C37.9317 10.3642 38.0051 10.3772 38.054 10.4033C38.103 10.4294 38.1482 10.4721 38.1898 10.5314L39.423 12.2568C39.4914 12.3707 39.6013 12.4276 39.7533 12.4276Z",fill:"#E1B033"}),d.createElement("g",{id:"Group 22"},d.createElement("g",{id:"Group 18"},d.createElement("path",{id:"Combined Shape_3",fillRule:"evenodd",clipRule:"evenodd",d:"M42.7852 14.3422C42.8557 14.5775 42.9669 14.7891 43.1817 14.9349C43.6379 15.2446 43.6933 14.7091 43.6924 14.422C43.692 14.2763 43.6953 14.1308 43.7058 13.9855C43.7243 13.7282 43.746 13.4706 43.8098 13.2239C43.9649 12.6233 44.1339 12.026 44.3029 11.4288C44.4102 11.0497 44.5175 10.6706 44.6212 10.2906C44.6573 10.1584 44.7205 10.1161 44.8527 10.0873C44.9978 10.0558 45.1435 10.0253 45.2891 9.99487C45.7957 9.889 46.3028 9.78299 46.7936 9.62916C47.4756 9.41531 48.1278 9.11812 48.7335 8.73334C49.4093 8.30398 50.0473 7.83847 50.5382 7.2038C51.3738 6.12354 51.1842 4.68765 50.1199 3.81163C49.474 3.27997 48.6869 3.0794 47.863 2.99962C46.8393 2.90052 45.8345 3.01978 44.8444 3.27369C43.9134 3.51243 43.0203 3.83688 42.246 4.40991C41.5959 4.89119 41.1259 5.48899 40.9956 6.29708C40.9519 6.56759 41.0838 6.90401 41.3222 7.02587C41.4121 7.07187 41.5571 7.07815 41.6492 7.03986C41.7267 7.0075 41.8244 6.87141 41.8089 6.80349C41.7041 6.34403 41.9563 6.0274 42.2642 5.73994C42.6037 5.42284 42.9823 5.14629 43.39 4.91667C44.7589 4.14532 46.2404 3.85822 47.7924 3.90113C48.3437 3.91642 48.8888 3.9949 49.3969 4.21977C50.274 4.60811 50.561 5.24954 50.1159 6.12117C49.8833 6.57708 49.5212 6.93199 49.1215 7.24992C48.1407 8.02992 47.0251 8.56892 45.8252 8.95051C45.6579 9.00376 45.4866 9.04535 45.3057 9.08925C45.2193 9.11024 45.1306 9.13177 45.0392 9.15535C45.0767 9.03946 45.1136 8.92792 45.1496 8.81921C45.2259 8.58844 45.2979 8.37042 45.3637 8.15059C45.5133 7.64985 45.6254 7.22041 45.7395 6.78348C45.833 6.42489 45.928 6.06126 46.046 5.64902C46.0814 5.52585 46.0818 5.38645 46.0668 5.25807C46.0273 4.9239 45.7632 4.71361 45.4361 4.73684C45.2161 4.75249 45.1601 4.80998 45.1506 5.02371C45.1482 5.07362 45.1347 5.15316 45.1186 5.20058C44.8812 5.90437 44.6716 6.55335 44.4628 7.20009C44.237 7.89953 44.012 8.59634 43.7535 9.35699C43.745 9.38156 43.5605 9.40857 43.4162 9.42971C43.3314 9.44212 43.2605 9.4525 43.2473 9.45917C43.0894 9.53854 43.1478 9.68387 43.202 9.81872C43.2054 9.82726 43.2088 9.83575 43.2122 9.84419C43.2349 9.90147 43.2769 9.96104 43.32 10.022C43.4031 10.1397 43.4898 10.2624 43.4469 10.3833C43.1334 11.267 42.9023 12.1719 42.7665 13.098C42.7057 13.513 42.6613 13.9297 42.7852 14.3422ZM59.1112 13.5136C59.7395 13.487 60.2442 12.7344 60.0316 12.1367C59.8181 12.2298 59.3226 12.7316 59.1097 13.0068C59.007 13.1395 58.9499 13.2448 58.9184 13.3183C58.8829 13.4008 58.9357 13.4935 59.0266 13.508C59.0562 13.5127 59.0858 13.5146 59.1112 13.5136ZM52.7335 11.6359C52.7331 11.6042 52.7327 11.5682 52.7327 11.5257C52.7327 11.5257 51.4624 13.6156 50.4249 13.8619C50.2193 13.9107 49.8747 13.7756 49.7165 13.5419C49.0524 12.7691 49.5788 10.9065 49.5788 10.9065C49.9082 9.89618 50.2614 8.89307 50.6145 7.89005C50.6846 7.691 50.7547 7.49196 50.8246 7.29286C51.0472 6.65857 51.2759 6.02629 51.5047 5.39402C51.5943 5.14621 51.684 4.89839 51.7732 4.65046C51.7732 4.65046 51.9415 4.10351 52.2774 4.45664C52.4024 4.58799 52.4761 4.75738 52.5033 4.93425C52.5282 5.09712 52.5436 5.26225 52.5025 5.40888C52.227 6.39088 51.9405 7.37145 51.6112 8.33744C51.5156 8.61774 51.4162 8.89687 51.3167 9.17597C51.0269 9.98943 50.7371 10.8027 50.5434 11.6443C50.5434 11.6443 50.1903 13.1197 50.4274 13.2356C51.0418 12.9132 52.2263 11.2035 52.2263 11.2035C52.566 10.7782 52.8801 10.3324 53.1853 9.88274C53.2844 9.73676 53.3704 9.5824 53.4565 9.42801C53.5417 9.27502 53.627 9.122 53.725 8.97709C53.8892 8.7342 54.082 8.50648 54.2844 8.29157C54.4902 8.07298 54.9602 8.04322 55.2154 8.20349C55.325 8.27219 55.2855 8.34908 55.2449 8.42821C55.2426 8.43264 55.2403 8.43708 55.2381 8.44152C55.1669 8.58135 55.0943 8.72058 55.0218 8.85981C54.8574 9.17537 54.6931 9.4909 54.5442 9.81316C54.23 10.4938 53.969 11.1933 53.8834 11.9419C53.879 11.9803 53.8802 12.0192 53.8815 12.0581C53.882 12.0762 53.8826 12.0943 53.8826 12.1124L53.9429 12.1318C53.9802 12.0809 54.0184 12.0305 54.0566 11.9801C54.1391 11.8712 54.2216 11.7623 54.2954 11.6482C54.5195 11.3018 54.7421 10.9546 54.9646 10.6074C55.2939 10.0937 55.6232 9.58 55.9573 9.06932C56.1054 8.84302 56.2817 8.63214 56.4619 8.42801C56.647 8.21807 57.0124 8.19685 57.1718 8.419L57.1783 8.42801C57.2666 8.55082 57.3796 8.70788 57.3027 8.91474C56.853 10.1235 56.5181 11.362 56.3291 12.6354C56.3217 12.6853 56.3238 12.7366 56.3258 12.7878C56.3268 12.8117 56.3277 12.8356 56.3277 12.8593L56.3799 12.8827C56.4131 12.8541 56.4478 12.8267 56.4826 12.7993C56.5568 12.741 56.6311 12.6826 56.6894 12.612C57.2282 11.9595 57.7654 11.3052 58.291 10.6427C58.4895 10.3924 58.6733 10.131 58.857 9.86971C
10158.9097 9.79481 58.9623 9.71992 59.0153 9.64531C59.05 9.59635 59.0827 9.53091 59.0801 9.47484C59.0373 8.58235 59.5374 8.00351 60.2584 7.55543C60.5655 7.36458 60.9063 7.24805 61.2678 7.20526C61.2678 7.20526 62.031 7.19103 62.2734 7.65714C62.5733 8.13094 62.5628 8.50482 62.217 8.88605C62.1264 8.98598 61.9965 9.08449 61.8685 9.1114C61.7526 9.13569 61.6104 9.07703 61.4904 9.02757L61.485 9.02534C61.4543 9.01277 61.4505 8.89411 61.4652 8.83081C61.4913 8.7184 61.5219 8.60696 61.5526 8.49551C61.5872 8.36944 61.6219 8.24337 61.65 8.11589C61.692 7.92528 61.636 7.87454 61.4399 7.89114C60.7401 7.94993 60.1666 8.46499 60.1204 9.09255C60.0951 9.43375 60.2273 9.74683 60.3571 10.0543L60.3635 10.0692C60.4488 10.2712 60.5445 10.4692 60.6401 10.6669C60.682 10.7535 60.7238 10.84 60.7648 10.9269C61.265 10.7348 62.6368 10.0059 63.2931 9.47781C63.3469 9.4343 63.4258 9.48516 63.4059 9.55036C63.2767 9.9726 62.9873 10.3318 62.5962 10.5556L61.0424 11.4445C61.0529 11.5431 61.0664 11.6401 61.0798 11.736C61.1084 11.9419 61.1364 12.1426 61.1325 12.3426C61.1123 13.3796 60.0223 14.2569 58.9619 14.1091C58.3266 14.0205 58.0586 13.4683 58.4131 12.9505C58.923 12.2053 59.8177 11.5471 59.8177 11.5471L59.2308 10.2566C59.1932 10.3141 59.156 10.3717 59.119 10.4291C59.0407 10.5505 58.9629 10.6714 58.8814 10.7898C58.4088 11.4764 57.9347 12.1629 57.3249 12.7461C57.1615 12.9023 56.987 13.0518 56.7991 13.179C56.2959 13.5196 55.6982 13.338 55.4625 12.7846C55.3091 12.4246 55.3662 12.0594 55.4232 11.695C55.4273 11.6686 55.4314 11.6423 55.4354 11.6159C55.4518 11.5092 55.4729 11.4032 55.4935 11.2994C55.5031 11.2512 55.5126 11.2034 55.5215 11.1562C55.4494 11.2571 55.3784 11.3591 55.3073 11.4613C55.1388 11.7034 54.9698 11.9463 54.7842 12.1765C54.6185 12.3817 54.4118 12.5594 54.2055 12.7287C54.0109 12.8885 53.7383 12.9325 53.5061 12.8303C53.4745 12.8164 53.4423 12.8039 53.4101 12.7914C53.3705 12.776 53.3309 12.7607 53.2926 12.7428C52.8751 12.5483 52.704 12.2187 52.7322 11.7796C52.7348 11.7365 52.7343 11.6931 52.7335 11.6359Z",fill:"#E1B033"}))))),pt||(pt=d.createElement("defs",null,d.createElement("linearGradient",{id:"paint0_linear_544_4877",x1:0,y1:13.9149,x2:15.3467,y2:13.9149,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"white"}),d.createElement("stop",{offset:1,stopColor:"white"})))))}const mt=d.forwardRef(xt);i.p;var gt=i(16895);const vt=e=>{var t,i,r;let{publisher:n,publisherIntro:s,anchorColor:a="yellow.400"}=e;const o=(0,H.q5)(n.id,"square","small"),u=(0,l.D)().getTeacherUrl(null===n||void 0===n?void 0:n.username),{getTeacherCityLocalLink:c}=(0,R.A)(),p=d.useMemo((()=>{var e;return c(null!==(e=n.region)&&void 0!==e?e:{})}),[c,n]);return(0,x.jsxs)(_.a,{children:[(0,x.jsx)(_.a,{children:(0,x.jsx)(w.E,{fontWeight:"500",fontSize:"20px",lineHeight:"23px",color:"var(--neutral-700)",children:(0,x.jsx)(L.x6,{id:"Meet your Teacher"})})}),(0,x.jsx)(_.a,{height:"22px"}),(0,x.jsxs)(_.a,{display:"flex",alignItems:"center",children:[(0,x.jsx)(_.a,{width:"84px",height:"84px",bgColor:"var(--neutral-100)",borderRadius:"50%",marginRight:"18px",flexShrink:0,children:(0,x.jsx)(k._,{alt:"",width:"100%",height:"100%",objectFit:"cover",objectPosition:"center",borderRadius:"50%",src:o})}),(0,x.jsxs)(_.a,{flexGrow:1,marginRight:"10px",children:[(0,x.jsx)(w.E,{as:A.Link,to:u,fontWeight:"700",fontSize:"20px",lineHeight:"26px",color:"var(--neutral-700)",children:null!==(t=n.name)&&void 0!==t?t:""}),(0,x.jsx)(_.a,{height:"3px"}),(0,x.jsx)(w.E,{as:A.Link,to:p,fontWeight:"700",fontSize:"11px",lineHeight:"15px",color:"var(--neutral-600)",textTransform:"uppercase",children:null!==(i=null===(r=n.region)||void 0===r?void 0:r.name)&&void 0!==i?i:""})]})]}),s&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(_.a,{height:"24px"}),(0,x.jsx)(I.A,{height:"70px",toggleButtonProps:{color:a},children:s})]}),(0,x.jsx)(_.a,{height:"25px"}),(0,x.jsx)("a",{href:u,children:(0,x.jsx)(z,{children:(0,x.jsx)(L.x6,{id:"View profile"})})})]})},_t=d.lazy((()=>Promise.resolve().then(i.bind(i,67920)).then((e=>({default:e.CourseReviewMobileDetails}))))),ft=d.lazy((()=>Promise.resolve().then(i.bind(i,98193)))),jt=(0,O.A)(gt.h)` 102 path { 103 stroke: var(--neutral-600); 104 } 105`,Ct=e=>{var t,i,r,s,a;let{course:l,isLoading:o}=e;const{title:d,id:c,publisher:p,publisher_intro:h,purchase_tier:m,short_description:g,long_description:v}=l||{},y=(0,u.W6)(),E=at(null===l||void 0===l?void 0:l.ai_tags_with_score,"en");return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(_.a,{paddingX:"30px",children:[(0,x.jsxs)(f.s,{tabIndex:0,"aria-label":"back-button",onClick:()=>{y.push("/meditation-courses")},cursor:"pointer",display:"flex","align-items":"center",padding:"5px 0",alignItems:"center",mb:"19px",children:[(0,x.jsx)(_.a,{marginRight:"10px",children:(0,x.jsx)(jt,{})}),(0,x.jsx)(w.E,{fontSize:"16px",lineHeight:"23px",fontWeight:"500",color:"var(--neutral-600)",children:"Courses"})]}),(0,x.jsxs)(_.a,{position:"relative",children:[(0,x.jsx)($,{courseId:c||"",publisherName:(null===p||void 0===p?void 0:p.name)||"",courseTitle:d}),"INSIGHT_FREE_COURSE"!==m&&(0,x.jsx)(_.a,{position:"absolute",top:"24px",left:"0px",children:(0,x.jsx)(mt,{})}),l&&(0,x.jsx)(_.a,{position:"absolute",top:"16px",right:"16px",children:(0,x.jsx)(B.default,{library
105ItemSummary:l,isShowShareIconButton:!0,title:`Share ${d} course`})})]}),(0,x.jsx)(_.a,{height:"30px"}),(0,x.jsx)(Ze,{}),(0,x.jsx)(_.a,{height:"10px"}),o?(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(j.E,{height:"34px",width:"70%",mb:"40px",rounded:"md"}),(0,x.jsxs)(C.T,{spacing:"20px",align:"start",width:"full",mb:"40px",children:[(0,x.jsx)(j.E,{height:"22px",width:"50%",rounded:"md"}),(0,x.jsx)(j.E,{height:"22px",width:"60%",rounded:"md"})]}),(0,x.jsxs)(C.T,{spacing:"20px",align:"start",width:"full",children:[(0,x.jsx)(j.E,{height:"22px",width:"80%",rounded:"md"}),(0,x.jsx)(j.E,{height:"22px",width:"90%",rounded:"md"}),(0,x.jsx)(j.E,{height:"22px",width:"85%",rounded:"md"}),(0,x.jsx)(j.E,{height:"22px",width:"100%",rounded:"md"})]})]}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(w.E,{color:"var(--neutral-700)",fontSize:"28px",lineHeight:"34px",letterSpacing:" -0.02em",fontWeight:"700",as:"h1",children:null!==d&&void 0!==d?d:""}),(0,x.jsx)(_.a,{height:"6px"}),(0,x.jsxs)(w.E,{color:"var(--neutral-600)",fontWeight:"500",fontSize:"16px",lineHeight:"22px",children:["With ",null!==(t=null===p||void 0===p?void 0:p.name)&&void 0!==t?t:""]}),(0,x.jsx)(_.a,{height:"22px"}),(0,x.jsx)(S.A,{noOfLines:1,children:(0,x.jsx)(w.E,{color:"var(--neutral-700)",fontWeight:"400",fontSize:"16px",lineHeight:"22px",whiteSpace:"pre-wrap",children:null!==g&&void 0!==g?g:""})})]}),l&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(_.a,{height:"40px"}),(0,x.jsx)(b.c,{}),(0,x.jsx)(_.a,{height:"30px"}),(0,x.jsx)(Fe,{course:l}),(0,x.jsx)(_.a,{height:"40px"}),(0,x.jsx)(b.c,{}),(0,x.jsx)(_.a,{height:"30px"}),(0,x.jsxs)(_.a,{children:[(0,x.jsx)(w.E,{color:"var(--neutral-700)",fontWeight:"500",fontSize:"20px",lineHeight:"23px",mb:"22px",children:"About this course"}),(0,x.jsx)(w.E,{color:"var(--neutral-700)",fontWeight:"400",fontSize:"16px",lineHeight:"22px",whiteSpace:"pre-wrap",children:v})]}),(0,x.jsx)(_.a,{height:"40px"}),(0,x.jsx)(et,{topics:E,courseDays:null===l||void 0===l?void 0:l.course_days}),(0,x.jsx)(_.a,{height:"40px"}),(0,x.jsx)(b.c,{}),(0,x.jsx)(_.a,{height:"30px"}),p&&(0,x.jsx)(vt,{publisher:p,publisherIntro:null!==h&&void 0!==h?h:""}),(0,x.jsx)(_.a,{height:"40px"}),(0,x.jsx)(b.c,{}),(null===l||void 0===l?void 0:l.course_days)&&l.course_days.length>0&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(_.a,{height:"30px"}),(0,x.jsx)(rt,{courseDays:null===l||void 0===l?void 0:l.course_days}),(0,x.jsx)(b.c,{})]}),(0,x.jsx)(_.a,{height:"30px"}),(0,x.jsx)(U,{isMobile:!0,forumId:null!==(i=null===l||void 0===l?void 0:l.forum_id)&&void 0!==i?i:""}),(0,x.jsx)(n.A,{width:"100%",children:(0,x.jsx)(_t,{courseId:null!==(r=null===l||void 0===l?void 0:l.id)&&void 0!==r?r:"",ratingCount:null!==(s=null===l||void 0===l?void 0:l.rating_count)&&void 0!==s?s:0,ratingScore:null!==(a=null===l||void 0===l?void 0:l.rating_score)&&void 0!==a?a:0})})]})]}),(0,x.jsx)(n.A,{loaderHeight:500,width:"100%",children:null!==l&&void 0!==l&&l.publisher?(0,x.jsx)(ft,{mobileView:!0,publisherId:l.publisher.id,publisherName:l.publisher.name,excludeCourseId:l.id}):null}),(0,x.jsx)(_.a,{height:"30px"})]})};var wt=i(64692),bt=i(83644),yt=i.n(bt),Et=i(61290),St=i(74046);const kt=e=>{let{course:t,reviews:i,slug:r}=e;const n=`https://insighttimer.com${(0,l.D)().getCourseUrl(r)}`,s=(0,d.useMemo)((()=>{var e;if(null==t)return;const n=(0,St.vy)(t,r);return{"@context":"http://schema.org","@type":"WebPage","@graph":[yt()((0,St.Zs)(t,r),i.length>0?{review:(0,St.Z9)(i)}:void 0),{"@type":"Course",name:t.title,description:null!==(e=t.long_description)&&void 0!==e?e:t.short_description,hasCourseInstance:[{"@type":"CourseInstance",courseMode:"Online",courseWorkload:(0,Et.Pj)(24*t.days*60)}],provider:{"@type":"Organization",name:"Insight Timer",url:"https://insighttimer.com"},offers:{"@type":"Offer",category:"Subscription"}},{"@type":"ItemList",numberOfItems:n&&n.length,itemListElement:n}]}}),[t,i,r]);return null!=t?(0,x.jsx)(wt.A,{title:`${t.title} | Insight Timer`,description:t.long_description,ogImageUrl:(0,H.hD)(t.id,"square","medium"),url:n,ldJsonString:JSON.stringify(s),deepLink:`insight://courses/${t.id}`,children:(0,x.jsx)("meta",{name:"prerender-status-code",content:"200"})}):null};var Lt=i(32416);const It=(0,d.lazy)((()=>Promise.all([i.e(2698),i.e(6996)]).then(i.bind(i,35404)))),Rt=(0,d.lazy)((()=>Promise.resolve().then(i.bind(i,8367)))),At=()=>{var e;const t=(0,r.A)({base:!1,lg:!0},{ssr:!1}),{slug:i}
105=(0,u.g)(),{course:c,courseLoading:p}=(0,a.D)(i),h=(0,u.W6)(),{pathname:m}=(0,u.zy)(),g=(0,l.D)((0,o.n7)(null===c||void 0===c||null===(e=c.lang)||void 0===e?void 0:e.iso_639_1));return(0,d.useEffect)((()=>{c&&c.slug&&g&&c.id===i&&h.replace(g.getCourseUrl(c.slug))}),[c,i,g,h]),!c&&p?(0,x.jsx)(Lt.A,{}):p||null!=c&&"PUBLISHED"===c.status?c&&m!==g.getCourseUrl(c.slug)?(0,x.jsx)(u.rd,{to:g.getCourseUrl(c.slug)}):(0,x.jsxs)(x.Fragment,{children:[c&&(0,x.jsx)(ut,{slug:c.slug}),(0,x.jsx)(kt,{course:c,reviews:(null===c||void 0===c?void 0:c._selected_reviews)||[],slug:i}),(0,x.jsx)(Ne.A,{course:c,children:(0,x.jsx)(v,{course:c,children:t?(0,x.jsx)(lt,{course:c,slug:i,isLoading:p}):(0,x.jsx)(Ct,{course:c,slug:i,isLoading:p})})},null===c||void 0===c?void 0:c.id),c&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(d.Suspense,{fallback:(0,x.jsx)(x.Fragment,{}),children:(0,x.jsx)(It,{})}),(0,x.jsx)(n.A,{keepAfterView:!0,height:"470px",children:(0,x.jsx)(Rt,{})})]})]}):(0,x.jsx)(s.default,{})}},92751:(e,t,i)=>{i.d(t,{A:()=>s});var r=i(83619),n=i(93727);const s=()=>{const[e]=(0,r.U)(`(max-width: ${n.w4.breakpoints.lg})`);return{isMobile:e}}},93342:(e,t,i)=>{i.d(t,{l:()=>l});var r=i(52446),n=i.n(r),s=i(95254);const a=()=>({height:window.innerHeight,width:window.innerWidth});function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const[t,i]=(0,s.useState)(a()),r=(0,s.useCallback)((()=>i(a())),[]),l=n()(r,e);return(0,s.useEffect)((()=>(window.addEventListener("resize",l),()=>window.removeEventListener("resize",l))),[l]),t}},97877:(e,t,i)=>{i.d(t,{E0:()=>d,Lu:()=>o,Oo:()=>x,P3:()=>m,W_:()=>v,YG:()=>u,fn:()=>l,gf:()=>h,gm:()=>g,i3:()=>_,rx:()=>p,t1:()=>c});var r=i(38491),n=i(35818),s=i(74756),a=i(95679);const l=e=>JSON.parse(JSON.stringify(e)),o=e=>JSON.parse(JSON.stringify(e)),d=async e=>{try{return(await r.default.get(`https://filtering.insighttimer-api.net/api/v1/libraryitems/${e}/slug`)).data}catch(t){const i=await r.default.get(`https://libraryitems.insighttimer.com/${e}/data/libraryitem.json`);return i.data?i.data:(console.error("getCourse:fetchCourseIdBySlug",t),null)}},u=async e=>{try{return(await r.default.get(`https://filtering.insighttimer-api.net/api/v1/courses/${e}`)).data}catch(t){return console.error("getCourseById:fetchCourseById",t),null}},c=async e=>{var t;let{courseId:i,sortOption:n="rated_at",hasReview:s=!0,sortDirection:a="desc",limit:l=10}=e;return null===(t=(await r.default.get(`https://filtering.insighttimer-api.net/api/v1/courses/${i}/reviews?offset=0&limit=${l}&sort_option=${n}&has_review=${s}&sort_direction=${a}`)).data)||void 0===t?void 0:t.map((e=>{var t;return null===e||void 0===e||null===(t=e.item_summary)||void 0===t?void 0:t.library_item_review_summary}))},p=async e=>{const t=await r.default.get(`https://filtering.insighttimer-api.net/api/v1/forums/${e}/audio_replies`),{data:i}=t;return i},h={ai_discovery_mode:"Relevant",popular:"Popular",highest_rated:"Highest Rated",newest:"New"},x={all:"All",beginners:"Beginners",confidence:"Confidence & Empowerment",healing:"Recovery & Healing",spirituality:"Spiritual Enlightenment",music:"Music & Sound",stress:"Stress & Anxiety",happiness:"Health & Happiness",goals:"Goals",sleep:"Sleep",love:"Love"},m=async e=>{let{userId:t,courseFinished:i,numberOfRecords:r=20,cursor:s}=e;const l=[(0,n.where)("is_archived","==",!1),(0,n.where)("course_finished","==",i),(0,n.orderBy)("last_played_at.epoch","desc"),...s?[(0,n.startAfter)(s)]:[],(0,n.limit)(r)],d=await(0,a.getDocuments)(await(0,a.createCollectionRef)(`/users/${t}/library_item_relation`),...l),c=[],p=d.docs.map((async e=>{if(e.exists()){const t={id:e.id,...e.data()};if(t.course_added_at){if(!t.library_item_summary&&t.item_id){const e=await u(t.item_id);e&&(t.library_item_summary=o(e))}return t}}return null})),h=await Promise.all(p);c.push(...h.filter((e=>null!==e)));return{list:c,lastDoc:d.docs[d.docs.length-1]}},g=async e=>{let{userId:t,courseId:i}=e;const r=await(0,a.createDocRef)(`/users/${t}/library_item_relation/${i}`),n=await(0,a.getDocument)(r);if(!n.exists())return;return{id:n.id,...n.data()}},v=async e=>{let{userId:t,courseId:i}=e;const r=await(0,a.createDocRef)(`/users/${t}/library_item_relation/${i}`),n=await(0,a.getDocument)(r);if(!n.exists())return;return{id:n.id,...n.data()}},_=async e=>{let{userId:t,courseId:i,course:r}=e;return(0,a.firestoreRunTransaction)((async e=>{const l=await(0,a.createDocRef)(`/users/${t}/library_item_relation/${i}`);if((await e.get(l)).exists())return;const o=(e=>{var t,i;if(!e)return;const r={id:e.id,blurhash:e.blurhash,days:e.days,intro_length:e.intro_length,is_newage:e.is_newage,is_religion:e.is_religion,is_science:e.is_science,is_secular:e.is_secular,is_spirituality:e.is_spirituality,item_type:e.item_type,lang:e.lang,publisher:e.publisher,purchase_tier:e.purchase_tier,rating_score:null!==(t=e.rating_score)&&void 0!==t?t:0,title:e.title,created_at:e.created_at,updated_at:e.updated_at},a=(0,s.uj)();return{item_id:e.id,course_current_day:1,course_current_day_id:null===(i=e.course_days)||void 0===i?void 0:i[0].id,current_position:0,is_archived:!1,course_finished:!1,created_at:a,updated_at:a,synced_at:n.Dc.now().toJSON(),course_added_at:a,last_played_at:a,library_item_summary:r}})(r);o&&e.set(l,o,{merge:!0})}
105))}},98193:(e,t,i)=>{i.r(t),i.d(t,{default:()=>a});var r=i(4021),n=i(77829),s=(i(95254),i(64582));const a=e=>{let{publisherId:t,publisherName:i,mobileView:a=!1,excludeCourseId:l,...o}=e;return(0,s.jsx)(r.a,{width:"100%",overflow:"hidden",paddingX:a?"30px":"unset",paddingTop:"14px",...o,children:(0,s.jsx)(n.A,{publisherId:t,title:`More from ${i}`,arrowButtonTop:["-30px","-30px","-30px","-38px"],excludeId:l})})}},98265:(e,t,i)=>{i.d(t,{A:()=>l,P:()=>a});var r=i(38491),n=i(62922),s=i(95254);const a=e=>{var t,i,r;return{name:null===(t=e[1])||void 0===t?void 0:t.name,slug:null===(i=e[1])||void 0===i?void 0:i.slug,isoCode:e[0],cities:null===(r=e[1])||void 0===r?void 0:r.cities}},l=()=>{const[e,t]=(0,s.useState)(!0),[i,l]=(0,s.useState)(),o=(0,s.useCallback)((()=>{if(i){return i.flatMap((e=>e.cities.map((t=>({...t,countryCode:e.isoCode,countrySlug:e.slug,countryName:e.name})))))}return[]}),[i]),d=(0,s.useCallback)((()=>o().sort((()=>Math.random()-Math.random())).slice(0,24)),[o]),u=(0,s.useCallback)((()=>o().sort(((e,t)=>t.teacherCount-e.teacherCount)).slice(0,32)),[o]),c=(0,s.useCallback)((e=>{const t=e.split(", ");if(t.length<2)return null;const i=t[t.length-1],r=t[0];return o().find((e=>e.countryName===i&&e.name===r||e.name===r))}),[o]),p=(0,s.useCallback)((e=>{const t=e.name;if(!t)return"/local";const i=c(t);if(i)return`/local/${i.countryCode}/${i.slug}`;if(e.location&&!(0,n.default)()){const{lat:i,lon:r}=e.location;return`/local/other/${encodeURIComponent(`${t}__${r},${i}`)}`}return"/local"}),[c]),h=(0,s.useCallback)((async()=>{const e=await r.default.get("https://sitemap.insighttimer.com/json/locals.json"),i=[];Object.entries(e.data).map((e=>i.push(a(e)))),t(!1),l(i)}),[]);return(0,s.useEffect)((()=>{h()}),[h]),{loading:e,locals:i,getCities:o,getRandomCities:d,getTopCities:u,getTeacherCity:c,getTeacherCityLocalLink:p}}}}]); 106//# sourceMappingURL=courses-details.47972844.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.