1"use strict";(self.webpackChunkinsight_timer=self.webpackChunkinsight_timer||[]).push([[369,5804],{4259:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(4021),r=i(85833),o=i(97141),a=i(95254),s=i(43672),l=i(64582);const d=(0,o.A)(s.U)` 2 position: absolute; 3 top: 0; 4 bottom: 0; 5 left: 0; 6 right: 0; 7 width: 100%; 8 height: 100%; 9 border-radius: inherit; 10 11 canvas { 12 width: 100%; 13 height: 100%; 14 border-radius: inherit; 15 } 16`,c=e=>{var t,i;let{blurhash:o,fallbackImage:s,containerProps:c={},...u}=e;const[p,h]=(0,a.useState)(!1),x=(0,a.useRef)(null);return(0,l.jsxs)(n.a,{height:null!==(t=u.height)&&void 0!==t?t:"100%",width:null!==(i=u.width)&&void 0!==i?i:"100%",borderRadius:u.borderRadius,position:"relative",...c,children:[!p&&(0,l.jsx)(d,{hash:o||"L6Pj0^i_.AyE_3t7t7R**0o#DgR4"}),(0,l.jsx)(r._,{ignoreFallback:!0,ref:x,onLoad:()=>h(!0),width:"100%",height:"100%",objectFit:"cover",...u,onError:()=>{s&&x.current&&x.current.src!==s&&(x.current.src=s)}})]})}},5804:(e,t,i)=>{i.r(t),i.d(t,{default:()=>m});var n=i(4021),r=i(51093),o=i(54541),a=i(84781),s=(i(95254),i(89728)),l=i(52544),d=i(36566),c=i(15263),u=i(80330),p=i(6089),h=i(64582);const x=e=>{let{label:t,...i}=e;return(0,h.jsxs)(n.a,{display:"flex",alignItems:"center",width:"100%",padding:"8px 16px 9px 19px",borderRadius:"6px",backgroundColor:"teal.500",minHeight:"48px",_focus:{textDecoration:"none !important"},cursor:"pointer",...i,children:[(0,h.jsx)(c.E,{as:"span",fontSize:"18px",lineHeight:"24px",fontWeight:600,color:"neutral.0",flexGrow:1,marginRight:"4px",fontFamily:"ProximaNova",children:t}),(0,h.jsx)(n.a,{as:"span",flexShrink:0,children:(0,h.jsx)(u.I,{as:p.h,width:"10px",height:"12px",stroke:"neutral.0"})})]})},g=e=>{let{onOptionSelect:t,...i}=e;return(0,h.jsxs)(n.a,{...i,children:[(0,h.jsx)(n.a,{marginBottom:"37px",children:(0,h.jsx)(s.D,{as:"h3",fontFamily:"Gelica",fontSize:"30px",lineHeight:"35px",fontWeight:400,color:"neutral.700",children:"How can we help?"})}),(0,h.jsx)(n.a,{children:(0,h.jsx)(l.T,{alignItems:"flex-start",spacing:"8px",marginBottom:"18px",children:d.Wk.map((e=>{let{text:i,value:n}=e;return(0,h.jsx)(x,{label:i,onClick:()=>t(n)},n)}))})})]})};function m(){const{onOpenOnboardingModal:e}=(0,o.YF)(),{trackGAClickEvent:t}=(0,r.s)();return(0,h.jsx)(n.a,{height:"100%",width:"100%",className:"onboarding-container",children:(0,h.jsx)(g,{onOptionSelect:i=>{e(i),t({click_event_name:a.ef.ONBOARDING_OPTION_CLICKED,question_type:"reason",question_part:1,option_name:i})}})})}},6089:(e,t,i)=>{i.d(t,{A:()=>l,h:()=>s});var n,r=i(95254);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(null,arguments)}function a(e,t){let{title:i,titleId:a,...s}=e;return r.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:6,height:10,viewBox:"0 0 6 10",fill:"none",stroke:"#272B2B",ref:t,"aria-labelledby":a},s),i?r.createElement("title",{id:a},i):null,n||(n=r.createElement("path",{d:"M1 9L5 5L1 0.999999",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))}const s=r.forwardRef(a),l=i.p+"static/media/right-arrow-icon.9bcbc282cf400bd07340670b00dc1b8f.svg"},7367:(e,t,i)=>{i.d(t,{A:()=>s,l:()=>a});var n=i(38491),r=i(61290),o=i(3630);const a=async e=>{if(!e)return null;const{data:t}=await n.default.get(`https://libraryitems.insighttimer.com/${e}/data/libraryitem.json`,{timeout:1e4});return(0,r.lJ)(null===t||void 0===t?void 0:t.status)?null:t},s=e=>{const{data:t,isValidating:i,error:n}=(0,o.Ay)(e?`library_item_details/${e}`:null,(()=>e?a(e):null),{revalidateOnFocus:!1,refreshWhenOffline:!1});return{libraryItemDetails:null!==t&&void 0!==t?t:void 0,loading:!t&&i,error:n}}},10293:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(4021),r=i(81085),o=i(7869),a=(i(95254),i(82698)),s=i(64582);const l=e=>{let{downloadLink:t,isLoadingLink:i,qrCodeProps:l={},...d}=e;return(0,s.jsxs)(n.a,{width:"250px",height:"250px",padding:"15px",position:"relative",...d,children:[t&&(0,s.jsx)(a.Ay,{value:t,size:250,style:{width:"100%",height:"100%"},bgColor:"var(--chakra-colors-neutral-0)",...l}),i&&(0,s.jsx)(r.o,{position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%",children:(0,s.jsx)(o.y,{size:"lg",color:"neutral.700",thickness:"3px"})})]})}},11130:(e,t,i)=>{i.d(t,{j:()=>n});const n=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))}},12393:(e,t,i)=>{i.d(t,{$:()=>p,$8:()=>l,Hk:()=>o,Im:()=>c,PX:()=>n,Si:()=>r,U9:()=>d,UR:()=>a,dz:()=>x,iY:()=>u,pX:()=>s,ty:()=>h});const n="https://insig.ht/app",r=e=>`insight://libraries/${e}`,o=e=>`insight://libraries/${e}?is_premium=true`,a=e=>`insight://courses/${e}`,s=(e,t)=>`insight://playlists/${e}${t?`?owner=${t}`:""}`,l=e=>`insight://publishers/teacher/${e}`,d=e=>`insight://groups-v2/${e}`,c=e=>`insight://groups-v2/${e}?is_challenge=true`,u=e=>`insight://retreats/${e}`,p=e=>{let{ownerId:t,shopProductId:i,userName:n}=e;return{webLink:`/${n}/workshops/${i}`,deepLink:`insight://shop-products/${i}?publisher_id=${t}`}},h=()=>"insight://discovercourses/explore",x=()=>"insight://walmart"},15651:(e,t,i)=>{i.d(t,{A:()=>
16o});var n=i(4021),r=(i(95254),i(64582));const o=e=>(0,r.jsx)(n.a,{maxWidth:"1290px",width:"100%",marginX:"auto",...e})},20072:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(95254),r=i(33390),o=i(61290),a=i(3630),s=i(7367);const l=async e=>{if(!e)return null;let t;try{const t=await(0,o.VZ)(e),{singleTrackDetails:i,isRemovedOrRejected:n}=null!==t&&void 0!==t?t:{};return n?null:i}catch(i){t=e}return(0,s.l)(t)},d=e=>{if("undefined"!==typeof window&&e&&window.__LIBRARY_ITEM_PREFETCH__)return window.__LIBRARY_ITEM_PREFETCH__[e]},c=e=>{let{singleTrackIdOrSlug:t}=e;const i=d(t),o=t?`single_track_details/${t}`:null,{data:s,isValidating:c,error:u}=(0,a.Ay)(o,(()=>{if(!t)return null;const e=(e=>{if("undefined"!==typeof window&&e&&window.__LIBRARY_ITEM_PREFETCH_PROMISES__)return window.__LIBRARY_ITEM_PREFETCH_PROMISES__[e]})(t);return e?e.then((e=>void 0!==e?e:l(t))):l(t)}),{initialData:i,revalidateOnFocus:!1,refreshWhenOffline:!1,onErrorRetry:(e,t,i,n,r)=>{let{retryCount:o}=r;const{response:a}=null!==e&&void 0!==e?e:{},{status:s}=null!==a&&void 0!==a?a:{};404!==s&&(o&&o>=3||n({retryCount:o}))}}),p=void 0===s&&c;return(0,n.useEffect)((()=>{if(!o||"undefined"===typeof window)return;const e=e=>{e&&(0,a.Tk)(o,e,!1)};e(d(t));const i=i=>{const n=i,{slug:r,data:o}=n.detail||{};r&&r===t&&e(o)};return window.addEventListener("library-item-prefetched",i),()=>{window.removeEventListener("library-item-prefetched",i)}}),[o,t]),{isFetchingSingleTrackDetails:p,libraryItemDetails:null!==s&&void 0!==s?s:void 0,error:(0,r.A)(u)}}},21716:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(44077),r=i(95254);const o=()=>{var e;const[t,i]=(0,r.useState)(!1),[o,a]=(0,r.useState)(),[s,l]=(0,r.useState)(),[d,c]=(0,r.useState)(),u=(0,r.useRef)(0),{generateBranchUrl:p}=(0,n.O)(),h=(0,r.useCallback)((async e=>{const t=u.current+1;return u.current=t,new Promise((n=>{try{a(null),i(!0),p({data:e,cb:e=>{let{error:r,link:o,branchLinkDetails:s}=e;const d=t===u.current;var p;r?(d&&(l(null),c(void 0),a(r)),n({error:r})):(d&&(a(null),l(o),c(s)),n({link:o,branchLinkDetails:s,shareLinkId:null===(p=s.data)||void 0===p?void 0:p.$share_link_id}));d&&i(!1)}})}catch(o){const r=o;t===u.current&&(a(null===r||void 0===r?void 0:r.message),i(!1)),n({error:null===r||void 0===r?void 0:r.message})}}))}),[p]);return{create:h,link:s,shareLinkId:null===d||void 0===d||null===(e=d.data)||void 0===e?void 0:e.$share_link_id,branchDeepLinkData:d,loading:t,error:o}}},22440:(e,t,i)=>{i.d(t,{h:()=>l});var n,r,o=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 n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},a.apply(null,arguments)}function s(e,t){let{title:i,titleId:s,...l}=e;return o.createElement("svg",a({width:40,height:23,viewBox:"0 0 40 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":s},l),i?o.createElement("title",{id:s},i):null,n||(n=o.createElement("path",{d:"M39.8575 12.2822C39.762 12.2247 39.6587 12.2411 39.5791 12.3068C38.5135 13.2267 36.2551 14.549 35.269 14.9761L35.1577 14.7297C34.9748 14.319 34.7839 13.892 34.6169 13.4649C34.3863 12.9064 34.1557 12.3151 34.2034 11.6827C34.2829 10.5657 35.2292 9.63761 36.4221 9.53084C36.597 9.51441 36.6527 9.54726 36.6686 9.56369C36.6686 9.58011 36.7004 9.62939 36.6607 9.80187C36.6209 9.98255 36.5732 10.1632 36.5255 10.3439C36.4618 10.615 36.3903 10.8942 36.3346 11.1652C36.3187 11.2391 36.2789 11.5923 36.438 11.6744C36.6447 11.773 36.931 11.8962 37.1855 11.8469C37.4161 11.7976 37.6626 11.6252 37.8614 11.387C38.4976 10.6314 38.5294 9.87578 37.9648 8.92307C37.5195 7.98679 36.1517 8.01142 36.0801 8.01142C35.4201 8.09355 34.8078 8.32352 34.2591 8.68489C32.7322 9.71152 32.0642 10.8942 32.1279 12.4136C32.1279 12.4875 32.096 12.5861 32.0324 12.66C31.9052 12.8571 31.778 13.0542 31.6507 13.2513C31.3724 13.6784 31.0782 14.1219 30.768 14.5408C29.8535 15.781 28.9072 17.0293 27.9609 18.2531C27.8654 18.3763 27.7303 18.4913 27.5951 18.6062C27.5712 18.6227 27.5553 18.6391 27.5394 18.6555C27.5314 18.557 27.5314 18.4666 27.5394 18.3845C27.8575 16.0766 28.4141 13.7934 29.2491 11.387C29.3923 10.9517 29.1855 10.6232 29.0344 10.385L29.0106 10.3439C28.8674 10.1304 28.6289 9.99898 28.3664 9.99077C28.0483 9.97434 27.7621 10.114 27.5792 10.3439C27.2054 10.8039 26.9191 11.1899 26.6885 11.5677C26.0921 12.5368 25.5116 13.5059 24.939 14.4833C24.5493 15.1321 24.1597 15.781 23.77 16.4298C23.6348 16.6598 23.4917 16.8651 23.3326 17.0786C23.3088 17.1115 23.2849 17.1525 23.2611 17.1854C23.2611 17.1443 23.2611 17.1033 23.2611 17.0622C23.4201 15.5264 23.9609 14.1301 24.4142 13.0871C24.7163 12.389 25.0503 11.6909 25.3764 11.0256L25.6308 10.4918C25.7104 10.3357 25.8297 10.0893 25.5434 9.89221C25.0265 9.54726 24.1358 9.63761 23.7541 10.0811C23.4519 10.4261 23.0702 10.8942 22.768 11.387C22.5931 11.6662 22.434 11.9619 22.2909 12.2494C22.1398 12.5286 21.9887 12.8243 21.8138 13.0953C21.273 13.9412 20.7402 14.7708 20.1279
1615.5756C20.104 15.6085 18.1398 18.6391 17.0901 19.329C16.9629 19.0662 17.0901 17.826 17.3843 16.5119C17.7342 14.9186 18.2511 13.3417 18.7521 11.8223C18.9271 11.3131 19.0941 10.8039 19.2611 10.2864C19.8495 8.41386 20.3664 6.51665 20.8277 4.75085C20.8992 4.45518 20.8754 4.12666 20.8356 3.80635C20.772 3.40391 20.6209 3.07539 20.4062 2.83721C20.2154 2.63188 20.0324 2.54154 19.8416 2.59082C19.4917 2.67295 19.3406 3.19858 19.3247 3.25608C19.1418 3.79814 18.9589 4.34841 18.776 4.89047C18.3943 6.00744 18.0205 7.12442 17.6627 8.24139L17.2492 9.48977C16.6527 11.3131 16.0404 13.1939 15.4678 15.0664C15.4281 15.206 14.5374 18.6555 15.7223 20.1339C16.0086 20.5938 16.6607 20.9059 17.0901 20.7909C18.6169 20.4049 20.3744 17.711 20.9947 16.7008V16.7337C20.9311 17.6535 21.2889 18.3024 22.0523 18.6719L22.2273 18.7459C22.2909 18.7787 22.3625 18.8034 22.4181 18.8362C22.8714 19.0415 23.3883 18.9676 23.778 18.6227C24.1358 18.3024 24.5175 17.9492 24.8118 17.5632C25.1537 17.095 25.4798 16.6023 25.7899 16.1259C25.774 16.2245 25.7581 16.323 25.7422 16.4134L25.7263 16.553C25.6229 17.2429 25.5195 17.9574 25.8058 18.6719C26.0205 19.2222 26.4102 19.6082 26.8953 19.7561C27.3724 19.9039 27.8813 19.7971 28.3346 19.4686C28.6766 19.2304 28.9867 18.9348 29.273 18.6473C30.3704 17.5139 31.2452 16.1423 32.0245 14.9268C32.1279 14.7625 32.2312 14.5901 32.3346 14.4176C32.3982 14.319 32.4619 14.2205 32.5175 14.1219C32.7243 14.5983 32.9231 15.0664 33.1219 15.5346L33.4241 16.2491L33.3923 16.2737C33.1298 16.4873 31.8018 17.6125 31.0066 18.8773C30.6885 19.3783 30.6169 19.9285 30.8237 20.3885C31.0225 20.8484 31.4678 21.1687 32.0483 21.2508C32.1915 21.2673 32.3346 21.2837 32.4778 21.2837C33.273 21.2837 34.0841 20.9634 34.7442 20.3803C35.5235 19.6986 35.9847 18.7541 36.0006 17.7932C36.0086 17.4236 35.9609 17.0376 35.9131 16.668C35.8893 16.5037 35.8654 16.3312 35.8495 16.167L36.8197 15.5674C37.3764 15.2225 37.941 14.8775 38.5135 14.5326C39.2372 14.0809 39.762 13.3828 40.0006 12.545C40.0006 12.4383 39.9529 12.3315 39.8575 12.2822ZM33.5434 19.1072C33.2253 19.5836 32.764 19.8793 32.3028 19.9039C32.263 19.9039 32.2233 19.9039 32.1756 19.8957C32.1438 19.8875 32.104 19.8628 32.0881 19.8218C32.0642 19.7889 32.0642 19.7479 32.0881 19.7068C32.1438 19.5507 32.263 19.3454 32.3982 19.1401C32.7322 18.6719 33.4559 17.8753 33.8535 17.6125C33.9648 18.097 33.8535 18.6391 33.5434 19.1072Z",fill:"#F8A80D"})),r||(r=o.createElement("path",{d:"M13.7814 11.0911C13.7814 11.0911 13.7258 11.1322 13.694 11.1486C12.6999 11.8221 11.5787 12.3723 10.3461 12.7994C9.40768 13.1115 8.42955 13.325 7.48323 13.5386L6.93452 13.6618C6.72777 13.7111 6.66415 13.7685 6.60848 13.9657C6.44148 14.6309 6.26653 15.3044 6.09158 15.9696C5.7894 17.1195 5.47131 18.3104 5.18502 19.493C5.07369 19.9283 5.03393 20.3718 5.00212 20.9139C4.97826 21.1931 4.97826 21.4642 4.97826 21.7352C4.97826 22.4004 4.85103 22.8111 4.5886 22.9507C4.52498 22.9836 4.46137 23 4.3898 23C4.2387 23 4.07966 22.9261 3.89676 22.7947C3.53095 22.5401 3.29238 22.1623 3.14924 21.612C2.92658 20.8071 3.0061 20.0187 3.11743 19.2138C3.37191 17.4316 3.77747 15.6986 4.32618 14.0642C4.38184 13.9 4.24666 13.6946 4.11942 13.4893C4.0399 13.3743 3.96037 13.2511 3.92061 13.1361L3.8888 13.0622C3.80133 12.8076 3.68204 12.4545 4.0399 12.2573C4.07171 12.2327 4.11942 12.2245 4.34208 12.1916C4.49318 12.167 4.77946 12.1177 4.88284 12.0849C5.34407 10.6394 5.74964 9.27601 6.14725 7.95371C6.49715 6.78746 6.86295 5.58015 7.26852 4.2907C7.29238 4.21678 7.31623 4.07716 7.31623 3.99503C7.33214 3.5351 7.48323 3.37084 7.92856 3.33799C8.57269 3.28871 9.08959 3.74042 9.16116 4.43853C9.19297 4.74242 9.18502 5.00523 9.1214 5.22698C8.90669 6.02365 8.73174 6.73818 8.56474 7.42808C8.37389 8.20832 8.17508 9.02141 7.92061 9.93305C7.76156 10.4751 7.60252 11.009 7.41166 11.6249C7.59456 11.5757 7.76951 11.5346 7.93651 11.4935C8.15917 11.436 8.38184 11.3868 8.6045 11.3211C10.4574 10.6804 12.1353 9.80986 13.5826 8.71753L13.7973 8.55326C13.9802 8.41364 14.1631 8.27402 14.3381 8.1344C14.9425 7.60877 15.6184 6.95172 16.0478 6.04008C16.4136 5.28448 16.4932 4.60279 16.2943 4.03609C16.0955 3.46118 15.6105 2.98483 14.8391 2.62345C14.4971 2.45919 14.0995 2.32778 13.6144 2.22101C13.0975 2.10603 12.5806 2.04033 12.0796 2.03211C9.16911 1.94177 6.64824 2.55775 4.4057 3.92111C3.68204 4.3564 3.02201 4.87382 2.44944 5.45695C1.9405 5.95794 1.50312 6.53286 1.67807 7.34595C1.71783 7.54306 1.50312 7.85516 1.32817 7.92907C1.12141 8.0112 0.843082 7.99478 0.652228 7.89622C0.206901 7.64983 -0.071429 6.97636 0.016046 6.39324C0.222805 4.97238 0.954414 3.78149 2.25063 2.75486C3.76157 1.55576 5.51107 0.964418 6.86295 0.594831C8.79536 0.0609835 10.5449 -0.11149 12.2148 0.0691964C12.7317 0.126688 13.2089 0.208818 13.6701 0.332014C14.7278 0.603044 15.5389 1.0137 16.2387 1.62146C18.179 3.3462 18.4971 6.10578 16.9942 8.19189C16.0637 9.48955 14.847 10.3848 13.7814 11.0911Z",fill:"#F8A80D"})))}const l=o.forwardRef(s);i.p},22662:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(4021),r=i(10293),o=(i(95254),i(64582));const a=e=>{let{downloadLink:t,qrCodeProps:i={},...a}=e;return(0,o.jsx)(n.a,{...a,children:(0,o.jsx)(r.A,{downloadLink:null!==t&&void 0!==t?t:"",width:"100px",height:"100px",padding:"10px",bgColor:"neutral.0",borderRadius:"10px",...i})})}},24111:(e,t,i)=>{i.d(t,{h:()=>s});var n,r=i(95254);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(null,arguments)}function a(e,t){let{title:i,titleId:a,...s}=e;return r.createElement("svg",o({width:10,height:9,viewBox:"0 0 10 9",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},s),i?r.createElement("title",{id:a},i):null,n||(n=r.createElement("path",{d:"M9.97958 3.35869C9.92375 3.19947 9.76375 3.09165 9.58333 3.09165H6.41125L5.39501 0.264336C5.33834 0.106662 5.17917 0 4.99959 0C4.82001 0 4.66126 0.106276 4.60417 0.264336L3.58793 3.09165H0.416682C0.236266 3.09165 0.076266 3.19947 0.0204328 3.35869C-0.0354004 3.51792 0.0258495 3.69221 0.171683 3.79075L2.71959 5.50971L1.68793 8.37993C1.63085 8.53876 1.69043 8.71344 1.83543 8.81314C1.98085 8.91285 2.17835 8.91401 2.32501 8.81701L4.99959 7.0451L7.67417 8.81701C7.74667 8.86493 7.83125 8.88889 7.91625 8.88889C8.00333 8.88889 8.09 8.86377 8.16375 8.81314
16C8.30875 8.71383 8.36833 8.53915 8.31125 8.37993L7.27959 5.50971L9.8275 3.79075C9.97416 3.69221 10.0354 3.51753 9.97958 3.35869Z"})))}const s=r.forwardRef(a);i.p},25325:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(4021),r=i(7869),o=(i(95254),i(64582));const a=e=>{let{loaderProps:t,...i}=e;const a=null!==t&&void 0!==t?t:{};return(0,o.jsx)(n.a,{width:"100%",minHeight:"150px",display:"flex",justifyContent:"center",alignItems:"center",color:"neutral.700",...i,children:(0,o.jsx)(r.y,{size:"lg",color:"inherit",thickness:"3px",...a})})}},25745:(e,t,i)=>{i.d(t,{$q:()=>u,ER:()=>a,K2:()=>s,MV:()=>d,N8:()=>c,Sy:()=>p,_f:()=>h,hD:()=>l,q5:()=>o});var n=i(57409),r=i.n(n);const o=(e,t,i)=>`https://users.insighttimer.com/${e}/pictures/${t}_${i}.jpeg`,a=(e,t,i)=>`https://users.insighttimer.com/${e}/pictures/${t}_${i}.jpeg`,s=function(e){return`https://groups.insighttimer.com/${e}/pictures/${arguments.length>1&&void 0!==arguments[1]?arguments[1]:"square"}_${arguments.length>2&&void 0!==arguments[2]?arguments[2]:"medium"}.jpeg`},l=(e,t,i)=>`https://libraryitems.insighttimer.com/${e}/pictures/tiny_${t}_${i}.jpeg`,d=(e,t,i)=>`https://libraryitems.insighttimer.com/slugs/${encodeURIComponent(e)}/pictures/tiny_${t}_${i}.webp`,c=(e,t,i)=>`https://libraryitems.insighttimer.com/${e}/pictures/${t}_${i}.jpeg`,u=(e,t,i)=>`https://playlists.insighttimer.com/${e}/pictures/montage_${null!==i&&void 0!==i?i:"white"}_${t}.jpeg`,p=(e,t,i,n)=>{let a=`https://users.insighttimer.com/${t}/marketplace/shop/products/${e}/images/${i}_${n}.jpeg`;return r()(a,(e=>{e||(a=o(t,"portrait"===i?"square":i,n))})),a},h=e=>{let{id:t,shape:i,size:n}=e;return`https://events.insighttimer.com/${t}/pictures/${i}_${n}.jpeg`}},28367:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(45301),r=(i(95254),i(64582));const o=e=>{let{smaller:t,isNoPaddingOnMobile:i,...o}=e;return(0,r.jsx)(n.m,{maxWidth:{xl:t?1040:1290},px:{base:i?0:"30px",md:10,"2xl":0},...o})}},31624:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(3630),r=i(38491);const o=()=>{const{data:e,isValidating:t,error:i}=(0,n.Ay)("insightimer/global_state",(()=>r.default.get("https://stats.insighttimer.com/admin/data/global_stats.json").then((e=>e.data))),{revalidateOnFocus:!1,refreshWhenOffline:!1});return{...null!==e&&void 0!==e?e:{},isGlobalStatsLoading:t&&!e,errMessage:i?String(i):""}}},32480:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(78067);const r=()=>({isSmScreen:(0,n.A)({base:!0,sm:!0,md:!1,lg:!1},{ssr:!1}),isMdScreen:(0,n.A)({base:!0,sm:!0,md:!0,lg:!1},{ssr:!1}),isLgScreen:(0,n.A)({base:!1,sm:!1,md:!1,lg:!0},{ssr:!1}),isXLScreen:(0,n.A)({base:!1,xl:!0},{ssr:!1})})},33390:(e,t,i)=>{i.d(t,{A:()=>n});const n=e=>{var t,i,n,r;return"string"===typeof e?e:null!==(t=null!==(i=null===e||void 0===e||null===(n=e.response)||void 0===n||null===(r=n.data)||void 0===r?void 0:r.message)&&void 0!==i?i:null===e||void 0===e?void 0:e.message)&&void 0!==t?t:null}},34907:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(38341),r=(i(95254),i(64582));const o=e=>{let{bgColor:t,textContent:i,imageContent:o,...a}=e;return(0,r.jsxs)(n.s,{bg:t,justifyContent:"center",minHeight:"18px",px:"4px",borderRadius:5,...a,children:[o&&(0,r.jsx)(n.s,{direction:"column",justifyContent:"center",mr:"3px",children:o}),(0,r.jsx)(n.s,{direction:"column",justifyContent:"center",lineHeight:"18px",children:i})]})}},35404:(e,t,i)=>{i.r(t),i.d(t,{default:()=>F});var n=i(32480),r=i(95254),o=i(4021),a=i(54080),s=i(21716),l=i(39309),d=i(12393),c=i(92709);const u=e=>{let{currentScrollPosition:t,threshold:i}=e;const n=null!==i&&void 0!==i?i:200;if(t<n)return 100;const r=100-Math.floor(t-n);return r>0?r:0};var p=i(38341),h=i(15263),x=i(93662),g=i(63291);const m=i.p+"static/media/bowl-dark-shadow.4b6227ca4ef3b6eb0b88.webp";var f=i(11130),v=i(31624),b=i(22662),w=i(64582);const y=e=>{let{downloadLink:t,backgroundColor:i="black"}=e;const{total_users:n,isGlobalStatsLoading:r}=(0,v.A)(),a=(0,f.j)(null!==n&&void 0!==n?n:0,!0,0);return(0,w.jsxs)(p.s,{padding:"10px 10px 10px 20px",bgColor:i,borderRadius:"20px",height:"auto",minHeight:"120px",children:[(0,w.jsxs)(o.a,{maxWidth:"190px",alignSelf:"center",marginRight:"15px",children:[(0,w.jsxs)(h.E,{fontSize:"15px",lineHeight:"19px",fontWeight:700,color:"neutral.0",marginBottom:"14px",fontFamily:"ProximaNova",children:["Trusted by ",r?null:a," ","people. It's free."]}),(0,w.jsxs)(x.z,{spacing:"5px",children:[(0,w.jsx)(g.E,{width:"20px",htmlWidth:"20px",height:"auto",src:m,alt:"Insight Timer"}),(0,w.jsx)(h.E,{fontSize:"12.5px",lineHeight:"19.17px",fontWeight:400,color:"neutral.0",fontFamily:"ProximaNova",children:"Get the app"})]})]}),(0,w.jsx)(o.a,{flexShrink:0,children:(0,w.jsx)(b.A,{downloadLink:t})})]})},_=e=>{let{qrCodeInitialBottomSpacing:t}=e;const{pathname:i}=(0,c.zy)(),[n,p]=(0,r.useState)(100),[h,x]=(0,r.useState)(1),{cookieBannerDisplay:g}=(0,l.bl)(),m=g?"138px":null!==t&&void 0!==t?t:"20px",{create:f,loading:v,link:_}=(0,s.A)(),C=_||d.PX,j=(0,r.useMemo)((()=>"/"!==i),[i]);return(0,r.useLayoutEffect)((()=>{const e=()=>{const e=u({currentScrollPosition:window.scrollY,threshold:250});p(e),x(window.scrollY>=150?0:1)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[]),(0,r.useEffect)((()=>{const e=setTimeout((()=>{const e="Insight Timer",t="#1 Free Meditation App for Sleep, Relax & More";f({channel:"qrcode",deepLink:d.PX,webLink:"https://web.insighttimer.com/download-app",linkType:"web_install_app",title:e,description:t,additionalBranchData:{$og_title:e,$og_description:t}})}),500);return()=>{clearTimeout(e)}}),[f]),v?null:(0,w.jsxs)(o.a,{children:[(0,w.jsx)(o.a,{as:a.P.div,position:"fixed",bottom:"0px",left:"50%",transform:"translateX(-50%)",zIndex:h?99:1,paddingBottom:"20px",initial:{opacity:0}
16,animate:{opacity:h,transitionDelay:h?"0.2s":"0s",transitionDuration:h?"0.5s":"0.2s"},children:j&&(0,w.jsx)(y,{downloadLink:C})}),(0,w.jsx)(o.a,{as:a.P.div,position:"fixed",bottom:"0px",right:"20px",paddingBottom:m,transition:"transform .1s cubic-bezier(.645, .045, .355, 1), padding 0.1s ease",willChange:"transform",initial:{translateY:"100%"},animate:{translateY:`${n}%`},zIndex:99,children:(0,w.jsx)(b.A,{downloadLink:C,bgColor:"black",padding:"10px",borderRadius:"20px"})})]})};var C=i(28367),j=i(33870),k=i(97207),S=i(85833),E=i(38090),A=i(84781);const L=e=>{e&&((0,E.tj)({event_name:"service_event",service_event_name:A.T.BRANCH_APP_STORE_REDIRECT}),window.location.href=e)};var $=i(51093);const I=e=>{let{onClick:t}=e;const{trackGAClickEvent:i}=(0,$.s)(),{create:r,loading:o,link:a}=(0,s.A)(),{isMdScreen:l}=(0,n.A)(),{total_users:c,isGlobalStatsLoading:u}=(0,v.A)(),p=!u&&c?(0,f.j)(c,!0,0):null;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(h.E,{fontSize:{base:"16px",md:"18px"},lineHeight:"21px",fontWeight:500,color:"neutral.0",fontFamily:"ProximaNova",mr:3,children:["Trusted by ",p," people."," ",(0,w.jsx)(h.E,{as:"span",fontWeight:700,children:"It\u2019s free."})]}),(0,w.jsx)(k.$,{flexShrink:0,paddingX:"18px",paddingTop:"8px",paddingBottom:"9px",bgColor:"neutral.0",borderRadius:"8px",fontSize:{base:"16px",md:"18px"},lineHeight:"25px",fontWeight:600,color:"neutral.700",fontFamily:"ProximaNova",leftIcon:(0,w.jsx)(S._,{src:m,width:{base:"27px",md:"29px"},paddingTop:"2px",htmlWidth:l?29:27,htmlHeight:18,alt:"Insight Timer"}),isLoading:o,onClick:null!==t&&void 0!==t?t:async()=>{const e="Insight Timer",t="#1 Free Meditation App for Sleep, Relax & More";let n=a;if(!n){n=(await r({channel:"download_app",deepLink:d.PX,webLink:"https://web.insighttimer.com/download-app",linkType:"web_install_app",title:e,description:t,additionalBranchData:{$og_title:e,$og_description:t}})).link||d.PX}i({click_event_name:A.ef.DOWNLOAD_APP_CLICKED}),L(n)},children:"Get the app"})]})},R=()=>{const e=(0,j.A)();return(0,w.jsx)(o.a,{as:a.P.div,px:5,py:4,position:"fixed",bottom:"0",width:"100%",zIndex:99,background:"black",transition:"opacity 0.5s ease, padding 0.1s ease",initial:{opacity:0}
16,animate:{opacity:1},children:(0,w.jsx)(C.A,{children:(0,w.jsx)(p.s,{justifyContent:"space-between",alignItems:"center",width:"100%",children:(0,w.jsx)(I,{onClick:e})})})})},P=()=>(0,w.jsx)(p.s,{as:a.P.div,px:5,py:6,position:"fixed",bottom:"0",zIndex:99,justifyContent:"space-between",alignItems:"center",width:"100%",background:"black",transition:"opacity 0.5s ease, padding 0.1s ease",initial:{opacity:0},animate:{opacity:1},children:(0,w.jsx)(I,{})}),F=e=>{let{downloadAppBannerDesktopProps:t={},useAppBannerDesktopRedirectQr:i}=e;const[o,a]=(0,r.useState)(!1),{isMdScreen:s}=(0,n.A)();return(0,r.useEffect)((()=>{const e=setTimeout((()=>{a(!0)}),500);return()=>{clearTimeout(e)}}),[]),o?s?(0,w.jsx)(P,{}):i?(0,w.jsx)(R,{}):(0,w.jsx)(_,{...t}):null}},36566:(e,t,i)=>{i.d(t,{F_:()=>r,Wk:()=>a,bH:()=>o,zF:()=>n});const n=[{color:"#D14539",text:"Sleep",value:"sleep"},{color:"#E99D52",text:"Stress",value:"stress_anxiety"},{color:"#E8D62F",text:"Sadness",value:"sadness"},{color:"#4F8ED6",text:"Productivity",value:"productivity"},{color:"#64BE79",text:"Self Esteem",value:"self_esteem"},{color:"#6EBEB5",text:"Happiness",value:"happiness_joy"},{color:"#6874C7",text:"Manifesting",value:"manifesting"},{color:"#8E63DB",text:"Spirituality",value:"spiritual_growth"},{color:"#603BA4",text:"Meditation",value:"i_just_want_to_meditate"},{text:"For my Kids",value:"meditation_for_my_kids"},{text:"To connect with my Teacher",value:"teacher"}],r=[{text:"Complete beginner",value:"beginner"},{text:"I\u2019ve meditated a few times",value:"intermediate"},{text:"I meditate a lot",value:"advanced"}],o=[{text:"Less than 5 min",value:"less_than_five_minutes"},{text:"5-10 min",value:"five_to_ten_minutes"},{text:"10-15 min",value:"ten_to_fifteen_minutes"},{text:"15-20 min",value:"fifteen_to_twenty_minutes"},{text:"20-30 min",value:"twenty_to_thirty_minutes"},{text:"30 min+",value:"more_than_thirty_minutes"}],a=[{text:"Sleep better",value:"sleep"},{text:"Reduce stress or anxiety",value:"stress_anxiety"},{text:"Meditation",value:"i_just_want_to_meditate"},{text:"Spirituality",value:"spiritual_growth"},{text:"Something else",value:"other"}]},37721:(e,t,i)=>{i.d(t,{h:()=>l});var n,r,o=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 n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},a.apply(null,arguments)}function s(e,t){let{title:i,titleId:s,...l}=e;return o.createElement("svg",a({width:19,height:19,viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":s},l),i?o.createElement("title",{id:s},i):null,n||(n=o.createElement("circle",{cx:7.9581,cy:8.8331,r:6.8331,stroke:"#899090",strokeWidth:2.2})),r||(r=o.createElement("line",{x1:1.1,y1:-1.1,x2:6.18864,y2:-1.1,transform:"matrix(0.707106 0.707107 -0.707106 0.707107 12.0553 13.8467)",stroke:"#899090",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round"})))}const l=o.forwardRef(s);i.p},42034:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(5172),r=i(4021),o=i(38341),a=i(86237),s=i(95254),l=i(64582);const d=e=>{let{categories:t,activeCategory:i,onChange:d}=e;const c=(0,s.useRef)(null),[u,p]=(0,s.useState)(!1),[h,x]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{if(null!==c&&void 0!==c&&c.current){const e=()=>{p(!(null===c||void 0===c||!c.current)&&c.current.scrollLeft>0),x(!(null===c||void 0===c||!c.current)&&Math.ceil(c.current.scrollLeft)+c.current.offsetWidth<c.current.scrollWidth)};c.current.onscroll=e,e()}}),[]),(0,l.jsxs)(r.a,{position:"relative",children:[u&&(0,l.jsx)(o.s,{position:"absolute",height:"100%",zIndex:1,align:"center",top:"0",width:["40px","100px"],left:"-1px",cursor:"pointer",onClick:()=>{const e=c.current;if(e){const t=e.scrollLeft-200;e.scroll({left:t,behavior:"smooth"})}},className:"category-carousel-next",justifyContent:"flex-start",background:"linear-gradient( to right, rgba(255, 255, 255, 0.98) 20%, rgba(33, 33, 33, 0) 80% );",children:(0,l.jsx)(n.YJ,{boxSize:6})}),(0,l.jsx)(o.s,{ref:c,id:"scroller",w:"100%",overflowX:"scroll",css:{"&::-webkit-scrollbar":{display:"none"},"scrollbar-width":"none"},children:Object.entries(t).map((e=>{let[t,n]=e;const r=i===t;return(0,l.jsx)(a.A,{onClick:()=>{d(t),function(e){const t=document.getElementById(e),i=null===c||void 0===c?void 0:c.current;if(t&&i){const e=t.offsetLeft-i.offsetLeft-i.clientWidth/2;i.scroll({left:e,behavior:"smooth"})}}(t)},selected:r,flexShrink:0,children:n},t)}))}),h&&(0,l.jsx)(o.s,{position:"absolute",height:"100%",zIndex:1,align:"center",top:"-1px",width:["40px","100px"],right:0,cursor:"pointer",onClick:()=>{const e=c.current;if(e){const t=e.scrollLeft+200;e.scroll({left:t,behavior:"smooth"})}},justifyContent:"flex-end",background:"linear-gradient( to left, rgba(255, 255, 255, 0.98) 20%, rgba(33, 33, 33, 0) 80% );",children:(0,l.jsx)(n.vK,{boxSize:6})})]})}},42200:(e,t,i)=>{i.d(t,{W:()=>a});var n=i(80913),r=i(33390),o=i(3630);const a=function(e){var t,i;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";const{data:s,isValidating:l,error:d}=(0,o.Ay)(e?`/featured_list/${e}/${null!==a&&void 0!==a?a:"en"}`:null,(()=>(0,n.dC)(e,null!==a&&void 0!==a?a:"en")),{revalidateOnFocus:!1,shouldRetryOnError:!1}),c=Boolean(e&&!s&&l);return{name:null!==(t=null===s||void 0===s?void 0:s.name)&&void 0!==t?t:"",items:null!==(i=null===s||void 0===s?void 0:s.results)&&void 0!==i?i:[],error:(0,r.A)(d),isLoading:c}}},42522:(e,t,i)=>{i.d(t,{A:()=>u});var n,r,o=i(31265),a=i(95254);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},s.apply(null,arguments)}function l(e,t){let{title:i,titleId:o,...l}=e;return a.createElement("svg",s({viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},l),i?a.createElement("title",{id:o},i):null,n||(n=a.createElement("line",{x1:5.38638,y1:5.22919,x2:12.7717,y2:12.6145,stroke:"#636D6D",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),r||(r=a.createElement("line",{x1:5.22949,y1:12.6142,x2:12.6148,y2:5.22889,stroke:"#636D6D",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const d=a.forwardRef(l);i.p;var c=i(64582);const u=function(e){let{buttonTheme:t="light",...i}=e;const n="light"===t,r=n?"modal.light.300":"neutral.700";return(0,c.jsx)(o.K,{icon:(0,c.jsx)(d,{}),padding:"0",minWidth:"30px",width:"30px",height:"30px",outline:"none",border:"none",borderRadius:"10px","aria-label":"Close modal",position:"absolute",right:"20px",top:"20px",bg:r,transition:"background 0.3s",css:`\n svg {\n width: 18px;\n height: 18px;\n }\n\n svg line {\n stroke: ${n?"var(--chakra-colors-neutral-600)":"var(--chakra-colors-neutral-0)"};\n }\n `,_hover:{bg:n?"modal.light.500":"neutral.700"},_focus:{outline:"none"},...i,onClick:e=>{if(!i.onClick)return;i.onClick(e);const t=document.documentElement;t&&t.classList.remove("overflow-hidden","preserve-scroll-width")}})}},50055:(e,t,i)=>{i.d(t,{A:()=>n});const n=e=>"number"===typeof e&&!Number.isNaN(e)}
16,50557:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(56087),r=i(4021),o=i(50055),a=(i(95254),i(7367)),s=i(64582);const l=function(e){var t;let{courseId:i,courseDayId:l,progress:d=0,...c}=e;const{libraryItemDetails:u,loading:p}=(0,a.A)(i),h=null===u||void 0===u||null===(t=u.course_days)||void 0===t?void 0:t.find((e=>(null===e||void 0===e?void 0:e.id)===l));if(p)return(0,s.jsx)(n.E,{width:"100%",height:"4px",borderRadius:"6px",...c});if(!p&&(!u||!h))return null;const{length:x}=null!==h&&void 0!==h?h:{},g=(0,o.A)(x)&&(0,o.A)(d)?100*d/x:0;return(0,s.jsx)(r.a,{width:"100%",height:"4px",background:"rgba(0, 0, 0, 0.3);",backdropFilter:"blur(30px)",borderRadius:"6px",...c,children:(0,s.jsx)(r.a,{width:`${g}%`,height:"100%",background:"neutral.0",borderRadius:"inherit"})})}},61290:(e,t,i)=>{i.d(t,{$v:()=>p,N7:()=>c,Pj:()=>h,Sg:()=>d,VZ:()=>s,ih:()=>l,lJ:()=>a,oL:()=>u});var n=i(38491),r=i(91557),o=i(19919);const a=e=>"DELETED"===e||"REMOVED"===e||"REJECTED"===e,s=async e=>{const t=await n.default.get(`${r.bk}/api/v1/libraryitems/${e}/slug`,{timeout:1e4}),{data:i}=t,o=a(null===i||void 0===i?void 0:i.status);return{singleTrackDetails:o?null:i,isRemovedOrRejected:o}},l=async e=>{var t,i;let{libraryItemID:r,filter:a}=e;const s=o.stringify(a),l=await n.default.get(`https://filtering.insighttimer-api.net/api/v1/libraryitems/${r}/related?${s}`),{data:d}=l,c=Number(null!==(t=l.headers["x-total-count"])&&void 0!==t?t:0);return{relatedLibraryItemList:null!==(i=null===d||void 0===d?void 0:d.map((e=>e.item_summary.library_item_summary)))&&void 0!==i?i:[],totalCount:c}},d=e=>JSON.parse(JSON.stringify(e)),c=e=>{var t,i,n,r,o,a,s,l,d,c,u,p,h,x,g,m,f,v,b,w,y,_,C,j,k,S;return{activity:"",content_type:null!==(t=null===e||void 0===e?void 0:e.content_type)&&void 0!==t?t:"MUSIC",has_background_music:null!==(i=null===e||void 0===e?void 0:e.has_background_music)&&void 0!==i&&i,id:null!==(n=null===e||void 0===e?void 0:e.id)&&void 0!==n?n:"",is_newage:null!==(r=null===e||void 0===e?void 0:e.is_newage)&&void 0!==r&&r,is_religion:null!==(o=null===e||void 0===e?void 0:e.is_religion)&&void 0!==o&&o,is_science:null!==(a=null===e||void 0===e?void 0:e.is_science)&&void 0!==a&&a,is_secular:null!==(s=null===e||void 0===e?void 0:e.is_secular)&&void 0!==s&&s,is_spirituality:null!==(l=null===e||void 0===e?void 0:e.is_spirituality)&&void 0!==l&&l,item_type:null!==(d=null===e||void 0===e?void 0:e.item_type)&&void 0!==d?d:"COURSES",level:"",lang:null!==(c=null===e||void 0===e?void 0:e.lang)&&void 0!==c?c:{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!==(p=null===e||void 0===e?void 0:e.media_length)&&void 0!==p?p:0,media_length_group:null!==(h=null===e||void 0===e?void 0:e.media_length_group)&&void 0!==h?h:"00-05",music_type:"",publisher:null!==(x=null===e||void 0===e?void 0:e.publisher)&&void 0!==x?x:{id:"",name:""},rating_score:null!==(g=null===e||void 0===e?void 0:e.rating_score)&&void 0!==g?g:0,rating_count:0,play_count:0,short_description:null!==(m=null===e||void 0===e?void 0:e.short_description)&&void 0!==m?m:"",slug:null!==(f=null===e||void 0===e?void 0:e.slug)&&void 0!==f?f:"",title:null!==(v=null===e||void 0===e?void 0:e.title)&&void 0!==v?v:"",topics:[],tags:[],voice_gender:null!==(b=null===e||void 0===e?void 0:e.voice_gender)&&void 0!==b?b:"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!==(y=null===e||void 0===e?void 0:e.media_paths_audio_intro)&&void 0!==y?y:[],blurhash:null!==(_=null===e||void 0===e?void 0:e.blurhash)&&void 0!==_?_:"",days:null!==(C=null===e||void 0===e?void 0:e.days)&&void 0!==C?C:0,description:null!==(j=null===e||void 0===e?void 0:e.short_description)&&void 0!==j?j:"",is_premium:null!==(k=null===e||void 0===e?void 0:e.is_premium)&&void 0!==k&&k,status:null!==(S=null===e||void 0===e?void 0:e.status)&&void 0!==S?S:"PUBLISHED"}},u=async function(e){var t;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;const r=await n.default.get(`https://filtering.insighttimer-api.net/api/v1/single-tracks/${e}/reviews?limit=${i}&sort_option=rated_at&sort_direction=desc&has_review=true&rating=FIVE_STAR`),{data:o}=r;return{data:o,totalCount:Number(null!==(t=r.headers["x-total-count"])&&void 0!==t?t:0)}},p=e=>e.map((e=>{var t,i;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!==(t=e.item_summary.library_item_review_summary.message)&&void 0!==t?t:"",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===(i=e.item_summary.library_item_review_summary.owner.region)||void 0===i?void 0:i.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}})),h=e=>{const t=Math.floor(e/3600),i=Math.floor(e%3600/60),n=e%60;let r="PT";return t>0&&(r+=`${t}H`),i>0&&(r+=`${i}M`),(n>0||0===t&&0===i)&&(r+=`${n}S`),r}},68180:(e,t,i)=>{i.d(t,{nF:()=>o});var n=i(15263),r=(i(95254),i(64582));const o=e=>(0,r.jsx)(n.E,{fontSize:{base:14,lg:20},lineHeight:{base:"24px",lg:"30px"},fontFamily:"ProximaNova",...e})},71268:(e,t,i)=>{i.d(t,{A:()=>v});var n,r=i(97141),o=i(95254),a=i(31265),s=i(80330);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},l.apply(null,arguments)}function d(e,t){let{title:i,titleId:r,...a}=e;return o.createElement("svg",l({width:12,height:20,viewBox:"0 0 12 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),i?o.createElement("title",{id:r},i):null,n||(n=o.createElement("path",{d:"M1.5 1L10.5 10L1.5 19",stroke:"black",strokeOpacity:.25,strokeWidth:1.92857})))}const c=o.forwardRef(d);i.p;var u=i(64582);const p=e=>{let{navDirection:t,...i}=e;return(0,u.jsx)(a.K,{as:"button",width:"36px",height:"36px",minWidth:"auto",isRound:!0,icon:(0,u.jsx)(s.I,{as:c,width:"9px",height:"18px",transform:"prev"===t?"rotate(180deg)":""}),bgColor:"cream.250",_hover:{bgColor:"cream.250"},_active:{bgColor:"cream.250"},_focus:{outline:"none"},"aria-label":`Move to ${"prev"===t?"previous":"next"} item`,...i})};
16var h=i(50659),x=i.n(h),g=i(57976);const m=e=>{let{loop:t,spaceBetween:i,children:n,withoutNavigation:r,onInit:o}=e;const a=r?{display:"none",pointerEvents:"none",tabIndex:-1,"aria-hidden":!0}:{};return(0,u.jsx)(x(),{Swiper:g.RC,modules:[g.Vx],freeMode:!0,grabCursor:!0,loop:t,rebuildOnUpdate:!0,slidesPerView:"auto",breakpoints:{0:{spaceBetween:i?i[0]:13},600:{spaceBetween:i?i[1]:50},960:{spaceBetween:i?i[2]:50},1280:{spaceBetween:i?i[3]:50}},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},renderNextButton:()=>(0,u.jsx)(p,{navDirection:"next",className:"swiper-button-next",...a}),renderPrevButton:()=>(0,u.jsx)(p,{navDirection:"prev",className:"swiper-button-prev",...a}),lazy:{loadPrevNext:!0,loadPrevNextAmount:2},on:{init:()=>{null===o||void 0===o||o()}},children:n})},f=r.A.div` 17 position: relative; 18 margin-left: ${e=>e.withoutNavigation?"0px":"-60px"}; 19 .swiper-container { 20 position: unset; 21 margin-right: ${e=>e.withoutNavigation?"0px":"60px"}; 22 margin-left: ${e=>e.withoutNavigation?"0px":"60px"}; 23 // padding-left: ${e=>e.withoutNavigation?"30px":"0"}; 24 // padding-right: ${e=>e.withoutNavigation?"30px":"0"}; 25 overflow: ${e=>e.withoutNavigation?"visible":"hidden"}; 26 padding-top: 7px; // to allow item swipe to top when hover 27 } 28 .swiper-button-next:after, 29 .swiper-button-prev:after, 30 .swiper-button-prev.swiper-button-disabled, 31 .swiper-button-next.swiper-button-disabled { 32 display: none; 33 } 34 35 .swiper-button-next { 36 left: unset; 37 right: ${e=>e.offset||"10px"}; 38 top: ${e=>e.top||"50%"}; 39 position: absolute; 40 } 41 42 .swiper-button-prev { 43 right: unset; 44 left: ${e=>e.offset||"10px"}; 45 top: ${e=>e.top||"50%"}; 46 position: absolute; 47 } 48`,v=e=>{let{children:t,loop:i,spaceBetween:n,top:r,offset:o,withoutNavigation:a,onInit:s}=e;return(0,u.jsx)(f,{top:r,offset:o,withoutNavigation:a,children:(0,u.jsx)(m,{spaceBetween:n,loop:i||!1,withoutNavigation:a,onInit:s,children:t})})}},71652:(e,t,i)=>{i.d(t,{A:()=>C});var n=i(15263),r=i(4021),o=i(38341),a=i(85833),s=i(97141),l=i(87258),d=i(92939),c=i(34907),u=i(80725),p=i(50557),h=i(4259),x=i(80330),g=i(24111),m=(i(95254),i(64582));const f=e=>{let{ratingScore:t,textProps:i,iconProps:o}=e;return(0,m.jsxs)(r.a,{display:"flex",alignItems:"center",children:[(0,m.jsx)(n.E,{mr:"3px",fontSize:"12px",fontWeight:"400",textTransform:"uppercase",fontFamily:"ProximaNova",lineHeight:"16px",color:"neutral.350",letterSpacing:"1%",...i,children:t&&Math.round(10*t)/10}),(0,m.jsx)(x.I,{as:g.h,width:"6px",height:"6px",fill:"neutral.350",...o})]})};var v=i(90102),b=i(50055),w=i(42046),y=i(25745);const _=(0,s.A)(n.E)` 49 white-space: nowrap; 50 text-overflow: ellipsis; 51 overflow: hidden; 52 @supports (-webkit-line-clamp: 2) { 53 overflow: hidden; 54 text-overflow: ellipsis; 55 white-space: initial; 56 display: -webkit-box; 57 -webkit-line-clamp: 2; 58 -webkit-box-orient: vertical; 59 } 60`,C=(s.A.div` 61 position: absolute; 62 top: 0; 63 bottom: 0; 64 right: 0; 65 left: 0; 66 z-index: 10; 67 ::before { 68 position: relative; 69 height: 100%; 70 width: 100%; 71 } 72 canvas { 73 border-radius: 12px; 74 } 75`,e=>{let{course:t,showBookMark:i=!1,showPlayButton:s=!1,imageProps:x,currentDay:g,currentDayId:C,showProgress:j,progress:k,showDescription:S=!0,imageContainerProps:E={},imageCardProps:A={},textColor:L,to:$,publisherTextStyle:I={},showPublisherNameOnly:R=!1,courseTitleProps:P={},courseDetailsContainerProps:F={},openInNewTab:N=!1,isHideImage:O=!1}=e;const{id:T,slug:D,title:B,blurhash:W,rating_score:H,description:z,short_description:M,days:G,publisher:q}=null!==t&&void 0!==t?t:{},X=T&&(0,y.hD)(T,"square","medium"),V=T&&(0,y.hD)(T,"square","medium"),J=(0,b.A)(H)&&H>0;return(0,m.jsx)(r.a,{paddingTop:"8px",children:(0,m.jsxs)(w.Link,{target:N?"_blank":void 0,to:null!==$&&void 0!==$?$:`/meditation-courses/${D||T}`,children:[(0,m.jsxs)(r.a,{position:"relative",cursor:"pointer",borderRadius:12,transition:"0.3s",_hover:{boxShadow:"xl",transform:"translate(0, -7px)"},...A,children:[(0,b.A)(g)&&(0,m.jsx)(u.A,{day:g,position:"absolute",top:"0px",left:"14px",zIndex:5}
75),i&&(0,m.jsx)(o.s,{position:"absolute",right:"12px",top:"13px",children:(0,m.jsx)(l.h,{width:"16px",height:"14px"})}),(0,m.jsx)(r.a,{borderRadius:12,children:!O&&(0,m.jsx)(h.A,{src:X,alt:"",height:"280px",width:"100%",borderRadius:"12px",blurhash:W,fallbackImage:V,containerProps:E,...x})}),(0,m.jsxs)(r.a,{position:"absolute",left:"10px",bottom:"10px",right:"12px",children:[(0,m.jsxs)(o.s,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,m.jsx)(c.A,{bgColor:"#F8A80D",textContent:(0,m.jsx)(n.E,{fontWeight:700,color:"white",fontSize:"11px",textTransform:"uppercase",fontFamily:"ProximaNova",children:"COURSE"}),imageContent:(0,m.jsx)(a._,{alt:"",src:v.A.CourseBookWhiteIcon,height:"11px",width:"11px"})}),s&&(0,m.jsx)(r.a,{height:"24px",width:"24px",borderRadius:"6px",backgroundColor:"rgba(0, 0, 0, 0.3)",backdropFilter:"blur(60px)",display:"flex",alignItems:"center",justifyContent:"center",children:(0,m.jsx)(a._,{src:v.A.PlayIcon})})]}),j&&T&&C&&(0,m.jsx)(d.A,{height:"4px",children:(0,m.jsx)(p.A,{courseId:T,courseDayId:C,progress:k,marginTop:"8px"})})]})]}),(0,m.jsxs)(r.a,{my:"14px",...F,children:[(0,m.jsxs)(o.s,{align:"center",gridColumnGap:"3px",fontFamily:"ProximaNova",color:"neutral.350",fontWeight:400,mb:{base:"4px",md:"6px"},children:[J&&(0,m.jsx)(f,{ratingScore:H}),(0,m.jsxs)(n.E,{fontSize:"12px",lineHeight:"15px",children:[G," days"]})]}),(0,m.jsx)(n.E,{fontFamily:"Gelica",fontSize:"16px",lineHeight:"20px",fontWeight:500,color:"neutral.750",noOfLines:2,mb:{base:"4px",md:"6px"},title:B,...P,children:B}),(0,m.jsxs)(n.E,{fontFamily:"ProximaNova",fontSize:"12px",lineHeight:"16px",fontWeight:400,color:"neutral.750",opacity:.6,...I,children:[!R&&"by"," ",null===q||void 0===q?void 0:q.name]}),S&&(z||M)&&(0,m.jsx)(_,{fontSize:"16px",fontWeight:"400",lineHeight:"22px",color:null!==L&&void 0!==L?L:"var(--neutral-600)",mt:"16px",children:z||M})]})]})})})},72204:(e,t,i)=>{i.d(t,{s:()=>n});const n=(e,t)=>{let i;return function(){const n=this,r=arguments;clearTimeout(i),i=setTimeout((()=>e.apply(n,r)),t)}}},74756:(e,t,i)=>{i.d(t,{Ds:()=>c,Jq:()=>s,PI:()=>u,QZ:()=>d,uj:()=>l});var n=i(73999),r=i.n(n),o=i(34969),a=i.n(o);r().extend(a());const s=(e,t)=>{if(e){const i=Math.floor(e/60);return e>59?`${i} min${i>1&&t?"s":""}`:`${e} sec`}return""},l=()=>{const e=r()();return{epoch:e.valueOf(),iso_8601_datetime_tz:e.toISOString()}},d=e=>r()().year()===r()(e).year(),c=e=>{if(0===e)return"00:00";const t=e=>`0${e}`.slice(-2),i=new Date(1e3*e),n=i.getUTCHours(),r=t(i.getUTCMinutes().toString()),o=t(i.getUTCSeconds().toString());return n?`${n}:${r}:${o}`:`${r}:${o}`},u=e=>r()(e).fromNow()},80725:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(38341),r=i(4021),o=i(89728),a=(i(95254),i(64582));const s=e=>{let{day:t,...i}=e;return(0,a.jsx)(n.s,{width:"62px",minHeight:"75px",borderBottomRadius:"12px",justifyContent:"center",paddingTop:"12px",paddingBottom:"12px",backgroundColor:"rgba(0, 0, 0, 0.4)",...i,children:(0,a.jsxs)(r.a,{children:[(0,a.jsx)(o.D,{as:"h3",fontSize:"16px",lineHeight:"23px",fontWeight:700,color:"neutral.0",textAlign:"center",children:"DAY"}),(0,a.jsx)(o.D,{as:"h4",fontSize:"28px",lineHeight:"34px",fontWeight:500,color:"neutral.0",textAlign:"center",children:t})]})})}},80913:(e,t,i)=>{i.d(t,{Cy:()=>a,Fk:()=>d,co:()=>r,dC:()=>o,lc:()=>s,y5:()=>l});var n=i(38491);const r=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";try{const i=`https://featured-lists.insighttimer.com/${e}/data/${t}/featured_list.json`,r=await n.default.get(i);return r.data.items}catch(o){var i,r;throw null===o||void 0===o||null===(i=o.response)||void 0===i||null===(r=i.data)||void 0===r?void 0:r.message}},o=async(e,t)=>{var i;const r=`https://featured-lists.insighttimer.com/${e}/data/${t}/featured_list.json`,o=await n.default.get(r),{data:a}=o;return{results:null===(i=a.items)||void 0===i?void 0:i.map((e=>null===e||void 0===e?void 0:e.item_summary)).filter((e=>"PLAYLISTS"!==(null===e||void 0===e?void 0:e.type))),name:a.name}},a=async()=>{try{const{data:e}=await n.default.get("https://featured-lists.insighttimer.com/editorial/data/en/featured_list.json");return e}catch(e){return null}},s=async e=>{const t=`https://editorial-cards.insighttimer.com/${e}/data/editorial_card.json`;try{const{data:e}=await n.default.get(t,{timeout:1e4});return e}catch(i){return null}},l=async()=>{try{const{data:e}=await n.default.get("https://featured-lists.insighttimer.com/editorial_contentful_testing/data/en/featured_list.json");return e}catch(e){return null}},d=async()=>{const{data:e}=await n.default.get("https://featured-lists.insighttimer.com/learn_popular_this_week/data/en/featured_list.json");return e}},84195:(e,t,i)=>{i.r(t),i.d(t,{default:()=>Ee});var n=i(78067),r=i(4021),o=i(38341),a=i(15651),s=i(64692),l=i(35404),d=i(98981),c=i(5804),u=i(95254),p=i(15263),h=i(89728),x=i(64582);const g=()=>
75(0,x.jsx)(r.a,{paddingY:{base:"80px",md:"100px"},paddingX:{base:"24px",md:0},children:(0,x.jsxs)(o.s,{flexDir:{base:"column",md:"row"},children:[(0,x.jsxs)(r.a,{marginRight:{base:"0px",md:"50px"},children:[(0,x.jsx)(p.E,{fontFamily:"ProximaNova",fontSize:"11px",fontWeight:700,lineHeight:"15px",color:"yellow.400",marginBottom:"5px",children:"COURSES"}),(0,x.jsx)(h.D,{as:"h2",fontFamily:"Gelica",fontSize:["20px","30px"],lineHeight:["24px","36px"],color:"black",fontWeight:400,marginBottom:"18px",children:"Join an online course with Insight Timer"})]}),(0,x.jsxs)(r.a,{maxWidth:"844px",flexShrink:2,children:[(0,x.jsx)(p.E,{fontFamily:"ProximaNova",fontSize:"16px",lineHeight:"22px",color:"black",marginBottom:"24px",children:"Courses at Insight Timer offer an online learning experience, enabling you to discover inspiring and transformative practices. As a student you can explore meditation techniques for beginners, learn how to be more mindful; discover tools to unlock your creativity and practices to reduce stress and anxiety. Experience the power of breathwork meditations, how to sleep better and discover techniques to support your health and happiness. These wellness courses are designed to support your personal growth and offer a mix of theory and practical learning styles. They invite you to experience new practices and to learn new skills, all from the comfort of your own home."}),(0,x.jsx)(p.E,{fontFamily:"ProximaNova",fontSize:"16px",fontWeight:700,lineHeight:"22px",color:"black",marginBottom:"2px",children:"World class teachers"}),(0,x.jsx)(p.E,{fontFamily:"ProximaNova",fontSize:"16px",lineHeight:"22px",color:"black",marginBottom:"24px",children:"Insight Timer courses are hosted by teachers from all over the world, giving you access to a diverse range of teachings from different cultures and belief systems. Engage with your teacher via an online discussion classroom where you can ask questions relating to your course and receive audio responses directly from your teacher. Be guided through the practices of manifesting your dream life, clearing your energy, cleansing your chakras, learn about the power of intention setting, or take your yoga practice to the next level. Insight Timer teachers are there to share their expertise, support your learning experience and enhance your overall wellbeing."}),(0,x.jsx)(p.E,{fontSize:"16px",fontWeight:"700",lineHeight:"22px",color:"black",marginBottom:"2px",children:"What to expect from an online course"}),(0,x.jsx)(p.E,{fontSize:"16px",fontWeight:"400",lineHeight:"22px",color:"black",children:"Courses vary in length and cover a diverse range of wellbeing topics and learning experiences. Accessible through online recordings, courses can be followed in your own time and are always available to come back to. Catch up anytime, anywhere."})]})]})});var m,f,v=i(33267),b=i(77842),w=i(80330),y=i(33269);function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},_.apply(null,arguments)}function C(e,t){let{title:i,titleId:n,...r}=e;return u.createElement("svg",_({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":n},r),i?u.createElement("title",{id:n},i):null,m||(m=u.createElement("path",{d:"M4.99683 14.9971L14.9968 4.99707",stroke:"#899090",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),f||(f=u.createElement("path",{d:"M4.99683 5.00293L14.9968 15.0029",stroke:"#899090",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})))}const j=u.forwardRef(C);i.p;var k=i(37721),S=i(96523);const E=e=>{let{onSearch:t}=e;const[i,n]=(0,u.useState)(""),[r]=(0,S.A)(t,500);return(0,x.jsxs)(v.M,{fontFamily:"ProximaNova",backgroundColor:"cream.250",borderWidth:"1px",borderColor:"newWebsite.silver",boxSizing:"content-box",borderRadius:{base:"6px",md:"14px"},maxWidth:{base:"243px",md:"395px"},height:{base:"36px",md:"40px"},children:[(0,x.jsx)(b.W,{pointerEvents:"none",width:{base:"40px",md:"45px"},fontSize:"26px",height:{base:"36px",md:"40px"},children:(0,x.jsx)(w.I,{as:k.h,color:"neutral.900",boxSize:"14px"})}),(0,x.jsx)(y.p,{fontFamily:"ProximaNova",type:"text",placeholder:"Search Courses",value:i,onChange:e=>{r(e.target.value),n(e.target.value)},focusBorderColor:"newWebsite.silver",textColor:"neutral.700",fontSize:{base:"16px",md:"16px"},lineHeight:"26px",fontWeight:"400",height:{base:"36px",md:"40px"},border:"none",paddingLeft:{base:"42px",md:"40px"},borderRadius:{base:"6px",md:"14px"},_placeholder:{opacity:1,color:"#7D7C7B",fontFamily:"ProximaNova",fontWeight:400,fontSize:{base:"16px",md:"16px"},lineHeight:"26px"}}),i&&i.length>0&&(0,x.jsx)(b.t,{width:{base:"40px",md:"55px"},height:{base:"36px",md:"40px"},onClick:()=>{r(""),n("")},cursor:"pointer",children:(0,x.jsx)(j,{})})]})};var A=i(25325),L=i(71652),$=i(71268),I=i(42200),R=i(19588);const P=e=>{const{courseList:t}=(0,R.A)({offset:0,limit:10,sort_option:"newest"}),{items:i,error:n,isLoading:r}=(0,I.W)(e),o=null===i||void 0===i?void 0:i.map((e=>null===e||void 0===e?void 0:e.library_item_summary));return{featuredCoursesList:"new_courses"===e?t:o,isLoading:r,error:n}},F={position:"relative",paddingTop:"100%",height:"auto"},N={loading:"lazy",position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%"};const O=e=>{let{coursesType:t="courses_shopfront",courseListTitle:i}=e;const o=(0,n.A)({base:!0,xl:!1}),{featuredCoursesList:a,isLoading:s}=P(t);return(0,x.jsxs)(r.a,{children:[(0,x.jsx)(r.a,{display:"flex",justifyContent:"space-between",alignItems:"baseline",marginBottom:{base:"4px",lg:"10px"},paddingX:{base:"24px",lg:0},children:(0,x.jsx)(h.D,{as:"h2",fontFamily:"Gelica",fontSize:["20px","30px"],lineHeight:["24px","36px"],color:"black",fontWeight:400,children:i})}),s?(0,x.jsx)(A.A,{minHeight:["150px","440px"]}):(0,x.jsx)(r.a,{width:"100%",paddingX:{base:"24px",lg:0},paddingRight:{base:"24px",lg:"60px"},children:(0,x.jsx)($.A,{spaceBetween:[15,15,20,20],top:"110px",withoutNavigation:o,children:null===a||void 0===a?void 0:a.map((e=>(0,x.jsx)(r.a,{width:{base:"calc((100% - 20px) / 2)",sm:"calc((100% - 40px) / 2)",md:"calc((100% - 60px) / 3)",lg:"calc((100% - 60px) / 4)"},children:(0,x.jsx)(L.A,{course:e,imageContainerProps:F,imageProps:N,showDescription:!1})},e.id)))})})]})};var T=i(89082),D=i(50055);const B=e=>{let{value:t,roundingValue:i=1e3}=e;const n=null!==i&&void 0!==i?i:1e3,r=(0,D.A)(t)?t:0;return r-r%n}
75;var W=i(31624);const H=()=>{const{courses_all:e}=(0,W.A)(),t=(0,D.A)(e),i=B({value:e,roundingValue:100}),n=t?i.toLocaleString():void 0,r=`Transform your everyday wellbeing with \n ${t?`${n}+`:""} multi-day online\n courses, hosted by world class teachers. Explore a diverse range of\n topics, accessible and open to all experience levels.`;return(0,x.jsx)(T.A,{description:r,descriptionProps:{maxWidth:"980px"},paddingBottom:0,justifyContent:"end",minHeight:{base:"unset",md:350},children:"Premium Meditation Courses"})};var z=i(97207),M=i(23727),G=i(97141),q=i(67576),X=i(42034),V=i(97877),J=i(5172),U=i(32355),Y=i(9242),Z=i(78675),K=i(27596),Q=i(39654),ee=i(20704),te=i(17097),ie=i(70579),ne=i(5951),re=i(7869),oe=i(86688),ae=i(38491),se=i(56708),le=i(42522),de=i(86237),ce=i(19919);const ue=(0,G.A)(U.d)` 76 > span { 77 background-color: var(--neutral-300); 78 } 79 > span[data-focus] { 80 box-shadow: none; 81 border-color: transparent; 82 outline-style: none; 83 outline: none; 84 } 85 > span[data-checked] { 86 background-color: var(--yellow-400); 87 } 88`,pe=(0,G.A)(Y.c)` 89 ::-webkit-scrollbar {
90 width: 6px; 91 } 92 ::-webkit-scrollbar-thumb { 93 background: var(--neutral-400); 94 border-radius: 2px; 95 } 96`,he={is_science:"Science",is_secular:"Secular",is_spirituality:"Spirituality",is_newage:"New Age",is_religion:"Religion"},xe=e=>{let{title:t,onClickShowResults:i,clearAllFilters:n}=e;const{isOpen:a,onOpen:s,onClose:l}=(0,Z.j)(),[d,c]=(0,u.useState)(!1),[h,g]=(0,u.useState)([]),[m,f]=(0,u.useState)([]),[v,b]=(0,u.useState)(0),[w,y]=(0,u.useState)(!1);(0,u.useEffect)((()=>{let e={};y(!0),h.length?h.forEach((t=>{e={...e,[t]:!0}})):Object.entries(he).forEach((t=>{let[i]=t;e={...e,[i]:!0}})),null!==m&&void 0!==m&&m.length&&(e={...e,content_langs:m});const t=e?ce.stringify(e,{arrayFormat:"comma"}):"";ae.default.head(`https://filtering.insighttimer-api.net/api/v1/courses/filter?${t}`).then((e=>{b(e.headers["x-total-count"])})).finally((()=>{y(!1)}))}),[h,m]);const _=h.length||!!m.length;return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(de.A,{selected:!!_,onClick:s,children:[t,m.length+h.length>1?"s":"",_&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(r.a,{height:"5px",width:"5px",ml:"6px",mr:"6px",borderRadius:"50%",backgroundColor:"white"})," ",m.length+h.length]})]}),a&&(0,x.jsxs)(K.aF,{isOpen:a,onClose:l,preserveScrollBarGap:!0,isCentered:!0,scrollBehavior:"inside",size:"xl",autoFocus:!1,children:[(0,x.jsx)(Q.m,{}),(0,x.jsxs)(ee.$,{width:"688px",borderRadius:"18px",children:[(0,x.jsx)(te.r,{fontSize:"18px",fontWeight:"700",lineHeight:"23px",fontFamily:"ProximaNova",textAlign:"center",paddingTop:"28px",paddingBottom:"17px",children:"Filters"}),(0,x.jsx)(le.A,{onClick:l}),(0,x.jsx)(pe,{p:"0",children:(0,x.jsxs)(o.s,{direction:"column",children:[(0,x.jsxs)(r.a,{padding:"0 36px",children:[(0,x.jsx)(p.E,{fontFamily:"ProximaNova",mb:"24px",fontWeight:"700",fontSize:"11px",lineHeight:"15px",color:"#969D9D",marginTop:"31px",textTransform:"uppercase",marginBottom:"12px",children:"Origin"}),Object.entries(he).map((e=>{let[t,i]=e;return(0,x.jsxs)(o.s,{height:"47px",borderBottom:"1px solid #F1F4F4;",justifyContent:"space-between",alignItems:"center",children:[(0,x.jsx)(p.E,{fontSize:"16px",fontWeight:"500",lineHeight:"23px",fontFamily:"ProximaNova",color:se.A.neutral[700],children:i}),(0,x.jsx)(ie.MJ,{width:"auto",children:(0,x.jsx)(ue,{className:"course-switch",onChange:()=>{if(h.includes(t)){const e=h.filter((e=>e!==t));g([...e])}else g([...h,t])},isChecked:h.includes(t)})})]},t)}))]}),(0,x.jsxs)(r.a,{padding:"0px 36px",children:[(0,x.jsx)(p.E,{fontFamily:"ProximaNova",fontWeight:"700",fontSize:"11px",lineHeight:"15px",textTransform:"uppercase",color:"#969D9D",mb:"12px",mt:"36px",children:"Language"}),(0,oe.nZ)(d).map((e=>{let{label:t,value:i}=e;return(0,x.jsxs)(o.s,{height:"47px",borderBottom:"1px solid #F1F4F4;",justifyContent:"space-between",alignItems:"center",children:[(0,x.jsx)(p.E,{fontSize:"16px",fontWeight:"500",lineHeight:"23px",fontFamily:"ProximaNova",color:se.A.neutral[800],children:t}),(0,x.jsx)(ie.MJ,{width:"auto",children:(0,x.jsx)(ue,{className:"course-switch",onChange:()=>{if(m.includes(i)){const e=m.filter((e=>e!==i));f([...e])}else f([...m,i])},isChecked:m.includes(i)})})]},i)})),(0,x.jsx)(p.E,{fontFamily:"ProximaNova",fontWeight:"700",fontSize:"11px",lineHeight:"15px",color:"var(--yellow-400)",mt:"14px",mb:"20px",cursor:"pointer",onClick:()=>{c((e=>!e))},children:d?(0,x.jsxs)(x.Fragment,{children:["Close languages ",(0,x.jsx)(J.Mt,{ml:"2px"})]}):(0,x.jsxs)(x.Fragment,{children:["Show all languages ",(0,x.jsx)(J.D3,{ml:"2px"})]})})]})]})}),(0,x.jsxs)(ne.j,{position:"sticky",bottom:"0",padding:["10px 36px","24px 24px 24px 56px"],display:"flex",justifyContent:"space-between",backgroundColor:"white",alignItems:"center",cursor:"pointer",boxShadow:"0px 0px 16px rgba(0, 0, 0, 0.10);",borderBottomRightRadius:"18px",borderBottomLeftRadius:"18px",children:[(0,x.jsx)(r.a,{color:se.A.neutral[600],fontFamily:"ProximaNova",fontWeight:"500",fontSize:["16px","18px"],lineHeight:"23px",bgColor:"transparent",p:"0",onClick:()=>{n(),l(),f([]),g([])},children:"Clear all"}),(0,x.jsx)(o.s,{backgroundColor:"var(--yellow-400)",borderRadius:"12px",padding:["3px 10px","24px 32px"],height:"50px",color:"white",fontFamily:"ProximaNova",cursor:"pointer",fontWeight:"400",fontSize:["16px","18px"],lineHeight:"25px",alignItems:"center",onClick:()=>{i(m,h),l()},children:w?(0,x.jsx)(re.y,{size:"sm",color:"white"}):`Show ${v} result${v>1?"s":""}`})]})]})]})]})};var ge=i(18303),me=i(69814),fe=i(62343),ve=i(57063),be=i(73262);const we=e=>{let{title:t,options:i,selectedOption:n,onChange:a}=e;const{isOpen:s,onOpen:l,onClose:d}=(0,Z.j)(),c=n?i[n]:null;return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(ge.A,{closeOnEsc:!0,placement:"bottom-end",isOpen:s,onOpen:l,onClose:d,children:[(0,x.jsx)(me.W,{children:(0,x.jsxs)(de.A,{selected:!!c,_notLast:{marginRight:0},children:[c||t," "]})}),s&&(0,x.jsx)(fe.Z,{children:(0,x.jsx)(ve.h,{_focus:{outline:"none"},border:"none",backgroundColor:"#FFFFFF",boxShadow:"0px 6px 20px rgba(0, 0, 0, 0.1)",borderRadius:"12px",children:(0,x.jsx)(be.e,{children:Object.entries(i).map((e=>{let[t,i]=e;return(0,x.jsxs)(o.s,{height:"44px",cursor:"pointer",ml:"23px",onClick:()=>
96{if(n===t)return a(),void d();a(t),d()},alignItems:"center",children:[n===t?(0,x.jsx)(r.a,{width:"18px",height:"18px",backgroundColor:"white",borderRadius:"50%",border:"5px solid var(--yellow-400)"}):(0,x.jsx)(r.a,{width:"18px",height:"18px",backgroundColor:"white",border:"1px solid gray",borderRadius:"50%"}),(0,x.jsx)(p.E,{ml:"10px",fontFamily:"ProximaNova",fontSize:"16px",fontWeight:"500",lineHeight:"23px",color:se.A.neutral[800],children:i})]},t)}))})})})]})})},ye=(0,G.A)(z.$)` 97 background-color: var(--yellow-400); 98 color: var(--neutral-0); 99 width: 250px; 100 min-height: 50px; 101 border-radius: 12px; 102 transition: transform 0.2s linear; 103 &:hover { 104 background-color: var(--yellow-400); 105 transform: scale(1.1); 106 } 107 @media (max-width: 600px) { 108 width: 100%; 109 min-height: 40px; 110 border-radius: 8px; 111 } 112`,_e=e=>{let{query:t,limit:i=15}=e;const[n,o]=(0,u.useState)(!1),[a,s]=(0,u.useState)("all"),[l,d]=(0,u.useState)([]),[c,g]=(0,u.useState)([]),[m,f]=(0,u.useState)(),v=(0,u.useRef)();let b={limit:i,offset:0,filter:"all"===a?"":a,content_langs:c,sort_option:m,query:t};l.length?l.forEach((e=>{b={...b,[e]:!0}})):Object.entries(he).forEach((e=>{let[t]=e;b={...b,[t]:!0}}));const{courseList:w,isCourseListLoading:y,totalCount:_,setSize:C,isReachAtTheEnd:j}=(0,R.A)(b),k=(0,u.useCallback)((e=>{y||(v.current&&v.current.disconnect(),v.current=new IntersectionObserver((e=>{e[0].isIntersecting&&!j&&n&&C((e=>e+1))}),{threshold:.1}),e&&v.current.observe(e))}),[y,n,j,C]);return(0,x.jsxs)(r.a,{width:"100%",children:[null!==t&&void 0!==t&&t.length&&!y?(0,x.jsxs)(p.E,{fontFamily:"ProximaNova",fontSize:"24px",fontWeight:"700",lineHeight:"33px",color:"neutral.700",children:[_," results"]}):(0,x.jsx)(h.D,{as:"h2",fontFamily:"Gelica",fontSize:["20px","30px"],lineHeight:["24px","36px"],color:"black",fontWeight:400,children:"Explore Courses"}),!(null!==t&&void 0!==t&&t.length)&&(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)(r.a,{display:"flex",justifyContent:"space-between",flexDirection:{base:"column",md:"row"},alignItems:"center",gridRowGap:"12px",mt:"37px",children:[(0,x.jsx)(r.a,{maxWidth:{base:"full",md:"calc(100% - 260px - 30px)"},width:"full",children:(0,x.jsx)(X.A,{categories:V.Oo,activeCategory:a,onChange:e=>s(e)})}),(0,x.jsxs)(r.a,{display:{base:"grid",md:"flex"},width:{base:"100%",md:"unset"},gridTemplateColumns:"1fr 1fr",alignContent:{base:"unset",md:"center"},flexShrink:0,children:[(0,x.jsx)(xe,{title:"Filter",onClickShowResults:(e,t)=>{g(e),d(t)},clearAllFilters:()=>{g([]),d([])}}),(0,x.jsx)(we,{title:"Sort",selectedOption:m,onChange:e=>{f(e)},options:{popular:"Popular",highest_rated:"Highest Rated",newest:"New"}})]})]})}),(0,x.jsx)(q.A,{height:[22,32]}),(0,x.jsx)(M.x,{templateColumns:["repeat(2, 1fr)","repeat(2, 1fr)","repeat(4, 1fr)"],columnGap:"20px",rowGap:"30px",width:"full",children:w.map(((e,t)=>(0,x.jsx)(r.a,{ref:t===w.length-1?k:null,overflow:"hidden",children:(0,x.jsx)(L.A,{course:e,imageContainerProps:{position:"relative",paddingTop:"100%",height:"auto"},imageProps:{loading:"lazy",position:"absolute",top:"0px",left:"0px",width:"100%",height:"100%"},showDescription:!1})},e.id)))}),(0,x.jsx)(q.A,{height:[30,30,50,50]}),y&&(0,x.jsx)(A.A,{}),!n&&!j&&!y&&(0,x.jsx)(r.a,{display:"flex",justifyContent:"center",children:(0,x.jsx)(ye,{disabled:y,onClick:()=>{o(!0),C((e=>e+1))},children:(0,x.jsx)(p.E,{fontFamily:"ProximaNova",fontSize:"18px",fontWeight:"500",lineHeight:"25px",color:"var(--neutral-0)",children:"Browse all"})})})]})};var Ce=i(22440),je=i(67850),ke=i(42046);const Se=()=>{const{isSubscriber:e}=(0,je.H7)();return e?null:(0,x.jsx)(ke.Link,{to:"/member-plus",children:(0,x.jsxs)(o.s,{mt:"26px",alignItems:"center",cursor:"pointer",children:[(0,x.jsx)(p.E,{color:"black",fontSize:{base:"12px",md:"16px"},lineHeight:"24px",fontWeight:"500",textDecoration:"underline",fontFamily:"ProximaNova",mr:"4px",children:"Unlock all courses with"}),(0,x.jsx)(w.I,{as:Ce.h,width:"auto",height:{base:"17px",md:"22px"}})]})})},Ee=()=>{const e=(0,n.A)({base:!1,xl:!0}),[t,i]=(0,u.useState)();return(0,x.jsxs)(r.a,{minHeight:"100vh",children:[(0,x.jsx)(s.A,{title:"List of Top Meditation Courses",description:"Take your meditation practice to the next level with hundreds of 10 and 30 day Insight Courses from the world\u2019s best teachers.",url:"https://insighttimer.com/meditation-courses"}),(0,x.jsx)(H,{}),(0,x.jsxs)(o.s,{width:"full",alignItems:"center",flexDirection:"column",marginTop:"45px",marginBottom:{base:"45px",md:"120px"},children:[(0,x.jsx)(E,{onSearch:i}),(0,x.jsx)(Se,{})]}),(0,x.jsxs)(a.A,{maxWidth:"1360px",paddingX:{base:0,lg:"40px","2xl":"64px"},overflow:{base:"hidden",xl:"visible"},children:[(0,x.jsxs)(o.s,{gridColumnGap:{base:"30px",md:"0"},mb:{base:"60px",md:"200px"},children:[(0,x.jsx)(o.s,{width:"full",maxWidth:{base:"100%",xl:"calc(100% - 320px)"},gridRowGap:{base:"60px",md:"90px"},flexDirection:"column",children:t?(0,x.jsx)(r.a,{width:"full",maxWidth:{base:"100%",xl:"calc(100% - 120px)"},paddingX:{base:"24px",lg:0},children:(0,x.jsx)(_e,{query:t})}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(O,{coursesType:"courses_shopfront",courseListTitle:"Featured Courses"}),(0,x.jsx)(O,{coursesType:"new_courses",courseListTitle:"New Courses"}),(0,x.jsx)(O,{coursesType:"courses_misc_1",courseListTitle:"Manifesting and Spirituality"}),(0,x.jsx)(O,{coursesType:"courses_misc_2",courseListTitle:"Self Esteem"}),(0,x.jsx)(O,{coursesType:"courses_misc_3",courseListTitle:"Stress & Anxiety"}),(0,x.jsx)(r.a,{width:"full",maxWidth:{base:"100%",xl:"calc(100% - 120px)"},paddingX:{base:"24px",lg:0},children:(0,x.jsx)(_e,{})})]})}),e&&(0,x.jsx)(o.s,{width:"320px",flexDirection:"column",alignItems:"flex-end",children:(0,x.jsx)(r.a,{position:"sticky",top:"130px",width:"full",children:(0,x.jsx)(c.default,{})})})]}),(0,x.jsx)(g,{})]}
112),(0,x.jsx)(l.default,{useAppBannerDesktopRedirectQr:!0}),(0,x.jsx)(d.default,{})]})}},85699:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(95254),r=i(78675),o=i(4021),a=i(15263),s=i(68180),l=i(64582);const d=e=>{let{readMoreText:t="Read more",readLessText:i="Read less",moreButtonProps:d,...c}=e;const{isOpen:u,onToggle:p}=(0,r.j)(),[h,x]=(0,n.useState)(!1),g=n.useRef(null);return(0,n.useLayoutEffect)((()=>{const e=()=>{g.current&&g.current.clientHeight&&g.current.scrollHeight&&x(g.current.clientHeight<g.current.scrollHeight)};return g.current&&e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[c.children]),(0,l.jsxs)(o.a,{children:[(0,l.jsx)(a.E,{ref:g,fontSize:{base:14,lg:20},lineHeight:{base:"24px",lg:"30px"},fontFamily:"ProximaNova",...c,noOfLines:u?void 0:c.noOfLines}),h&&(0,l.jsx)(s.nF,{color:"teal.500",onClick:p,cursor:"pointer",...d,children:u?i:t})]})}},86237:(e,t,i)=>{i.d(t,{A:()=>s});var n=i(97207),r=i(95254),o=i(64582);const a=(0,r.forwardRef)(((e,t)=>{let{selected:i,children:r,...a}=e;return(0,o.jsx)(n.$,{ref:t,fontSize:{base:"12px",md:"20px"},lineHeight:{base:"12px",md:"28px"},fontWeight:400,fontFamily:"ProximaNova",color:i?"white":"neutral.750",backgroundColor:i?"neutral.750":"white",borderWidth:{base:"0.46px",md:"0.75px"},borderStyle:"solid",borderColor:i?"neutral.750":"neutral.450",_hover:{backgroundColor:"neutral.750",color:"white"},_active:{backgroundColor:"neutral.750",color:"white"},_focus:{outline:"none"},borderRadius:{base:"8px",md:"12px"},padding:{base:"0px 9px",md:"8px 15px"},marginRight:"10px",_notLast:{marginRight:"10px"},_notFirst:{marginRight:"10px"},_last:{marginRight:0},marginLeft:"0 !important",...a,children:r})}));a.displayName="RoundedToggleButton";const s=a},86688:(e,t,i)=>{i.d(t,{eo:()=>a,nZ:()=>l});var n=i(70468);const r={en:":gb: English","pt-BR":":flag-br: BR. Portugu\xeas",de:":de: Deutsch",it:":it: Italiano",fr:":fr: Fran\xe7ais",zh:":cn: \u666e\u901a\u8a71",es:":es: Espa\xf1ol",sv:":flag-se: Svenska",pt:":flag-pt: Portugu\xeas",id:":flag-id: Indonesian",da:":flag-dk: Dansk",no:":flag-no: Norsk",fi:":flag-fi: Suomi",nl:":flag-nl: Nederlands",ja:":jp: \u65e5\u672c\u8a9e",ms:":flag-my: Malay",ru:":ru: \u0420\u0443\u0441\u0441\u043a\u0438\u0439","de-CH":":flag-ch: Schweizerdeutsch","fr-CH":":flag-ch: Fran\xe7ais de Suisse",gl:":es: Galego",lt:":flag-lt: Lietuvi\u0173 kalba",is:":flag-is: Icelandic",uk:":flag-ua: \u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0438\u0439",bg:":flag-bg: \u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",cs:":flag-cz: \u010ce\u0161tina",et:":flag-ee: Eesti",vi:":flag-vn: Ti\u1ebfng Vi\u1ec7t",zht:":flag-tw: \u81fa\u7063\u95a9\u5357\u8a9e",tr:":flag-tr: T\xfcrk",ca:":es: Catal\xe0",kn:":flag-in: \u0c95\u0ca8\u0ccd\u0ca8\u0ca1",hu:":flag-hu: Magyar",ko:":kr: \ud55c\uad6d\uc5b4",ro:":flag-ro: Rom\xe2n\u0103",ar:":flag-sa: \u0627\u0644\u0639\u0631\u0628\u064a\u0629",he:":flag-il: \u05e2\u05d1\u05e8\u05d9\u05ea",th:":flag-th: \u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",hi:":flag-in: \u0939\u093f\u0902\u0926\u0940",el:":flag-gr: \u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ae",pl:":flag-pl: Polski",sr:":flag-rs: \u0421\u0435\u0440\u0431\u0441\u043a\u0438\u0439",fa:":flag-ir: F\u0101rsi",ct:":cn: \u5ee3\u6771\u8a71",ur:":flag-pk: \u0627\u064f\u0631\u062f\u064f\u0648",gu:":flag-in: \u0a17\u0a41\u0a30\u0a2e\u0a41\u0a16\u0a40",mn:":flag-mn: \u041c\u043e\u043d\u0433\u043e\u043b \u0445\u044d\u043b"},o=i.n(n)()(r,(e=>{const[t,...i]=e.split(" ");return i.join(" ")}));const a=(s=r,Object.keys(s)).map((e=>({label:o[e],value:e})));var s;const l=e=>e?a:a.slice(0,7)},87258:(e,t,i)=>{i.d(t,{h:()=>s});var n,r=i(95254);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},o.apply(null,arguments)}function a(e,t){let{title:i,titleId:a,...s}=e;return r.createElement("svg",o({width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},s),i?r.createElement("title",{id:a},i):null,n||(n=r.createElement("path",{d:"M9.49242 16.0724C9.78747 16.3146 10.2125 16.3146 10.5076 16.0724C13.6321 13.5077 15.6915 11.7238 16.9629 10.2208C18.2722 8.67292 18.8 7.35925 18.8 5.75811C18.8 3.24978 16.7521 1.2 14.2441 1.2C12.0143 1.2 10.7913 2.55423 10 3.45836C9.20869 2.55423 7.98573 1.2 5.75587 1.2C3.24786 1.2 1.2 3.24977 1.2 5.75811C1.2 7.35925 1.72775 8.67292 3.0371 10.2208C4.30845 11.7238 6.36794 13.5077 9.49242 16.0724Z",
112stroke:"white",strokeWidth:1.6,strokeLinecap:"round",strokeLinejoin:"round"})))}const s=r.forwardRef(a);i.p},89082:(e,t,i)=>{i.d(t,{A:()=>c});var n=i(4021),r=i(85699),o=(i(95254),i(15263)),a=i(64582);const s=e=>(0,a.jsx)(o.E,{fontFamily:"ProximaNova",fontSize:{base:"14px",md:"22px"},lineHeight:{base:"20px",md:"32px"},color:"neutral.750",maxWidth:{base:"100%",md:"575px"},textAlign:"center",marginX:"auto",letterSpacing:"0%",fontWeight:400,...e});var l=i(89728);const d=e=>(0,a.jsx)(l.D,{as:"h1",textAlign:"center",fontFamily:"Gelica",fontSize:{base:"22px",md:"45px"},lineHeight:{base:"31px",md:"65px"},letterSpacing:"-2%",fontWeight:400,...e}),c=e=>{let{description:t,children:i,descriptionProps:o={},...l}=e;return(0,a.jsxs)(n.a,{minHeight:{base:"unset",md:450},display:"flex",flexDirection:"column",justifyContent:"center",paddingTop:"30px",paddingBottom:"60px",paddingX:{base:"30px",md:0},...l,children:[(0,a.jsx)(d,{children:i}),t&&(0,a.jsx)(r.A,{noOfLines:{base:2,lg:void 0},mt:{base:"21px",md:"32px"},moreButtonProps:{textAlign:"center"},children:(0,a.jsx)(s,{...o,children:t})})]})}},92939:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(4021),r=i(83646),o=i(84558),a=i(95254),s=i(64582);const l=e=>{let{children:t,viewOnTimeOut:i,keepAfterView:l,loaderHeight:d,offset:c=0,...u}=e;const[p,h]=(0,a.useState)(!1),x=(0,a.useRef)(null),{isPrerender:g}=(0,o.A)(),m=null===l||void 0===l||l;if((0,a.useEffect)((()=>{let e;return i&&(e=setTimeout((()=>{h(!0)}),i)),()=>{clearTimeout(e)}}),[i]),(0,a.useEffect)((()=>{if(g)return;if(m&&p)return;const e=x.current;if(!e)return;const t=new IntersectionObserver((e=>{const i=e.some((e=>e.isIntersecting));m?!p&&i&&(h(!0),t.disconnect()):h(i)}),{root:null,rootMargin:`9999px 0px ${c}px 0px`,threshold:0});return t.observe(e),()=>{t.disconnect()}}),[p,g,c,m]),!t)return null;if(g)return(0,s.jsx)(s.Fragment,{children:t});const{height:f,...v}=u,b=d||f||"100px",w=d||f;return(0,s.jsx)(r.A,{loaderHeight:w,children:(0,s.jsx)(n.a,{ref:x,height:p?void 0:b,...v,children:p&&(0,s.jsx)(s.Fragment,{children:t})})})}},96523:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(72204),r=i(95254);const o=(e,t)=>{const i=e;return[(0,r.useCallback)((0,n.s)(i,t),[])]}},97877:(e,t,i)=>{i.d(t,{E0:()=>d,Lu:()=>l,Oo:()=>x,P3:()=>g,W_:()=>f,YG:()=>c,fn:()=>s,gf:()=>h,gm:()=>m,i3:()=>v,rx:()=>p,t1:()=>u});var n=i(38491),r=i(35818),o=i(74756),a=i(95679);const s=e=>JSON.parse(JSON.stringify(e)),l=e=>JSON.parse(JSON.stringify(e)),d=async e=>{try{return(await n.default.get(`https://filtering.insighttimer-api.net/api/v1/libraryitems/${e}/slug`)).data}catch(t){const i=await n.default.get(`https://libraryitems.insighttimer.com/${e}/data/libraryitem.json`);return i.data?i.data:(console.error("getCourse:fetchCourseIdBySlug",t),null)}},c=async e=>{try{return(await n.default.get(`https://filtering.insighttimer-api.net/api/v1/courses/${e}`)).data}catch(t){return console.error("getCourseById:fetchCourseById",t),null}},u=async e=>{var t;let{courseId:i,sortOption:r="rated_at",hasReview:o=!0,sortDirection:a="desc",limit:s=10}=e;return null===(t=(await n.default.get(`https://filtering.insighttimer-api.net/api/v1/courses/${i}/reviews?offset=0&limit=${s}&sort_option=${r}&has_review=${o}&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 n.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"},g=async e=>{let{userId:t,courseFinished:i,numberOfRecords:n=20,cursor:o}=e;const s=[(0,r.where)("is_archived","==",!1),(0,r.where)("course_finished","==",i),(0,r.orderBy)("last_played_at.epoch","desc"),...o?[(0,r.startAfter)(o)]:[],(0,r.limit)(n)],d=await(0,a.getDocuments)(await(0,a.createCollectionRef)(`/users/${t}/library_item_relation`),...s),u=[],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 c(t.item_id);e&&(t.library_item_summary=l(e))}return t}}return null})),h=await Promise.all(p);u.push(...h.filter((e=>null!==e)));return{list:u,lastDoc:d.docs[d.docs.length-1]}},m=async e=>{let{userId:t,courseId:i}=e;const n=await(0,a.createDocRef)(`/users/${t}/library_item_relation/${i}`),r=await(0,a.getDocument)(n);if(!r.exists())return;return{id:r.id,...r.data()}},f=async e=>{let{userId:t,courseId:i}=e;const n=await(0,a.createDocRef)(`/users/${t}/library_item_relation/${i}`),r=await(0,a.getDocument)(n);if(!r.exists())return;return{id:r.id,...r.data()}},v=async e=>{let{userId:t,courseId:i,course:n}=e;return(0,a.firestoreRunTransaction)((async e=>{const s=await(0,a.createDocRef)(`/users/${t}/library_item_relation/${i}`);if((await e.get(s)).exists())return;const l=(e=>{var t,i;if(!e)return;const n={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,o.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:r.Dc.now().toJSON(),course_added_at:a,last_played_at:a,library_item_summary:n}})(n);l&&e.set(s,l,{merge:!0})}
112))}}}]); 113//# sourceMappingURL=369.ca447fc2.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.