1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4560],{88858:function(e,l,i){i.d(l,{c:function(){return s},k:function(){return t}});let t=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:280;if(!e)return"";if(e.length<=l)return e.trim();let i=e.substring(0,l),t=i.lastIndexOf(" ");return t>0&&(i=i.substring(0,t)),i.replace(/[.,;:]$/,"")+"..."},s=e=>{if(!e)return"";if(e.length<=150)return e.trim();let l=e.substring(0,200),i=l.substring(150),t=i.match(/[.!?]/);return t&&void 0!==t.index?l.substring(0,150+t.index+1).trim():e.length>200?l.trim()+"...":e.trim()}},50921:function(e,l,i){i.d(l,{Z:function(){return T}});var t=i(11527),s=i(50959),n=i(70495),o=i.n(n),d=i(84307),a=i(71801),r=i(38104),c=i(33865),u=i(88328),x=i(32183),m=i(58413),v=i(91350),p=i(17894),h=i(9624),g=i(85705),j=i(96722),f=i(27309),b=i(21798),y=i(17218),N=i.n(y);let w=N()(()=>Promise.all([i.e(1946),i.e(2712)]).then(i.bind(i,52712)),{loadableGenerated:{webpack:()=>[null]},ssr:!1});function A(e){var l,i,n,o,d,a,r,c,u,x,m,v,p,h;let{storeData:g,setStoreData:j}=(0,b.Z)(e=>({storeData:e.data,setStoreData:e.setData})),[f,y]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{y(!!(null==e?void 0:e.autoPlay))},[null==e?void 0:e.autoPlay]),(0,s.useEffect)(()=>()=>{j({video:{},videoList:[],collection:null})},[]),(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(t.Fragment,{children:"Loading"}),children:(0,t.jsx)(w,{ref:null,autoPlay:f,streamType:"on-demand",playbackId:null==g?void 0:null===(i=g.video)||void 0===i?void 0:null===(l=i.muxes)||void 0===l?void 0:l.playbackId,tokens:{playback:null==g?void 0:null===(o=g.video)||void 0===o?void 0:null===(n=o.muxes)||void 0===n?void 0:n.token,thumbnail:null==g?void 0:null===(a=g.video)||void 0===a?void 0:null===(d=a.muxes)||void 0===d?void 0:d.thumbnailToken,storyboard:null==g?void 0:null===(c=g.video)||void 0===c?void 0:null===(r=c.muxes)||void 0===r?void 0:r.token},poster:null==g?void 0:null===(u=g.video)||void 0===u?void 0:u.thumbnailCdn,onEnded:l=>e.onVideoEnd(l),metadata:{video_id:null==g?void 0:null===(x=g.video)||void 0===x?void 0:x._id,video_title:null==g?void 0:null===(m=g.video)||void 0===m?void 0:m.title,video_series:null!==(h=null==g?void 0:null===(v=g.collection)||void 0===v?void 0:v.title)&&void 0!==h?h:"None",viewer_user_id:null==g?void 0:null===(p=g.user)||void 0===p?void 0:p._id,viewer_application_name:"Web",viewer_device_model:"laptop",video_content_type:"Web-Auto",player_name:"Mux-Web"}})})}var C=i(98153),k=i(22633),F=i(88321),P=i(6989),S=i(11333),D=i.n(S),I=i(43060),B=function(e){var l,i;let{storeData:n,setStoreData:d}=(0,b.Z)(e=>({storeData:e.data,setStoreData:e.setData})),[a,r]=(0,s.useState)(!0),c=(0,s.useContext)(C.Z).apis,[u,x]=(0,s.use
1State)(!1),m=async l=>{var i,t;if(l.preventDefault(),!(null==n?void 0:n.comment).trim())return I.Am.error("Please enter comment!");x(!0);let s=await c.commentCommentPost({videoId:null==n?void 0:null===(i=n.video)||void 0===i?void 0:i._id,message:null==n?void 0:n.comment});if(x(!1),null==s?void 0:null===(t=s.result)||void 0===t?void 0:t.success)return r(!1),I.Am.success("Comment added successfully!"),d({commentReply:null,comment:null}),setTimeout(()=>{r(!0)},100),e.loadComments();I.Am.error("Something happen wrong!")};return(0,t.jsx)(g.w,{children:(0,t.jsxs)(j.G,{children:[!(0,f.getCookie)("token")&&(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-lg font-bold",children:"Comments (0)"}),(0,t.jsxs)("p",{className:"",children:[(0,t.jsx)("span",{children:(0,t.jsx)(o(),{href:"/login",className:"text-red-100",children:"Sign In"})})," ","to participate in the conversation"]})]}),(0,t.jsx)("section",{className:"pt-3 font-inter md:p-7",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{children:(0,t.jsxs)("p",{className:"text-lg",children:[(0,t.jsx)("span",{children:null==n?void 0:null===(l=n.comments)||void 0===l?void 0:l.length})," ",(0,t.jsx)("span",{className:"text-red-100 ",children:"Comments"})," "]})}),null==n?void 0:null===(i=n.comments)||void 0===i?void 0:i.map(l=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Comment,{comment:l,loadComments:e.loadComments}),(0,t.jsx)("div",{className:"mx-12 mt-5"})]})),(0,f.getCookie)("token")&&a&&(0,t.jsx)("div",{className:"rounded-lg bg-[#DDDDDD] px-3 pb-6 pt-3",children:(0,t.jsxs)("form",{onSubmit:m,children:[(0,t.jsx)("textarea",{onChange:e=>d({comment:e.target.value}),rows:4,className:"text-gray-900 dark:bg-gray-700 dark:border-gray-600 block w-full rounded-lg border border-gray-300 p-2.5 text-sm focus:outline-none dark:placeholder-gray-400 ",placeholder:"Write your thoughts here..."}),(0,t.jsx)("div",{className:"mx-auto mt-4 flex flex-row justify-end",children:(0,t.jsx)("button",{disabled:u,type:"submit",className:"bg-red-100 px-3 py-1.5 ",children:(0,t.jsx)("span",{className:" px-2 text-base font-medium text-white",children:"Post Comments"})})})]})})]})})]})})};function Comment(e){var l,i,n,o,d;let{comment:a,loadComments:r}=e,{storeData:c,setStoreData:u}=(0,b.Z)(e=>({storeData:e.data,setStoreData:e.setData})),[x,m]=(0,s.useState)(!1),[v,p]=(0,s.useState)(!1),h=(0,s.useContext)(C.Z).apis,[g,j]=(0,s.useState)(!1),y=async(e,l)=>{var i;if(e.preventDefault(),!(null==c?void 0:c.commentReply.trim()))return I.Am.error("Please enter reply!");j(!0);let t=await h.commentReplyPost({commentId:l,message:null==c?void 0:c.commentReply});if(j(!1),null==t?void 0:null===(i=t.result)||void 0===i?void 0:i.success)return I.Am.success("Comment Reply successfully!"),m(!1),u({commentReply:null}),r();I.Am.error("Something happen wrong!")};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:" w-full md:px-5",children:(0,t.jsxs)("div",{className:"flex w-full flex-row items-center gap-4 roun
1ded-md border-1 border-transparent bg-gray-250 p-4",children:[(0,t.jsx)(R,{comment:a,thumbnail:null==a?void 0:null===(l=a.user)||void 0===l?void 0:l.profileImage}),(0,t.jsxs)("div",{className:"py-3",children:[(0,t.jsx)(E,{comment:a,fullName:null==a?void 0:null===(i=a.user)||void 0===i?void 0:i.fullName}),(0,t.jsx)("p",{className:"text-sm",children:null==a?void 0:a.comment}),(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{className:"cursor-pointer text-sm text-gray-200",onClick:()=>p(!v),children:!!(null==a?void 0:null===(n=a.reply)||void 0===n?void 0:n.length)&&(0,t.jsxs)(t.Fragment,{children:["Show Replies(",null==a?void 0:null===(o=a.reply)||void 0===o?void 0:o.length,")"]})}),(0,f.getCookie)("token")&&(0,t.jsx)("span",{onClick:()=>m(!x),className:"cursor-pointer px-3 text-sm text-gray-200",children:"Reply"})]})]})]})},null==a?void 0:a._id),v&&(null==a?void 0:null===(d=a.reply)||void 0===d?void 0:d.map(e=>{var l,i;return(0,t.jsx)("div",{className:"flex flex-row p-5 md:ml-20",children:(0,t.jsxs)("div",{className:"flex w-full flex-row items-center gap-4 roun
1ded-md border-1 border-transparent bg-gray-250 p-5",children:[(0,t.jsx)("div",{className:"",children:(0,t.jsx)("p",{className:"h-8 w-8 rounded-full bg-gray-200 p-5 text-xl text-white",children:null==e?void 0:null===(l=e.user)||void 0===l?void 0:l.thumbnail})}),(0,t.jsxs)("div",{className:"",children:[(0,t.jsxs)("h3",{children:[(0,t.jsx)("span",{className:"text-base capitalize text-red-100",children:null==e?void 0:null===(i=e.user)||void 0===i?void 0:i.fullName}),(0,t.jsx)("span",{className:"px-1 text-xs text-gray-200",children:D()(null==e?void 0:e.createdAt).fromNow()})]}),(0,t.jsx)("p",{className:"text-sm",children:null==e?void 0:e.reply})]})]})},null==a?void 0:a._id)})),(0,f.getCookie)("token")&&x&&(0,t.jsx)("div",{className:"ml-24 mr-5 mt-2 rounded-md bg-gray-250 px-3 pb-3 pt-3",children:(0,t.jsxs)("form",{onSubmit:e=>{y(e,null==a?void 0:a._id)},children:[(0,t.jsx)("textarea",{onChange:e=>u({commentReply:e.target.value}),rows:2,className:"text-gray-900 dark:bg-gray-700 dark:border-gray-600 block w-full rounded-lg border border-gray-300 p-2.5 text-sm focus:outline-none dark:placeholder-gray-400",placeholder:"Write your reply here...",value:null==c?void 0:c.commentReply}),(0,t.jsx)("div",{className:"mx-auto mt-4 flex flex-row justify-end",children:(0,t.jsx)("button",{disabled:g,type:"submit",className:"bg-red-100 px-3 py-1.5",children:(0,t.jsx)("span",{className:"px-2 text-base font-medium text-white",children:"Reply"})})})]})})]})}function E(e){let{comment:l,fullName:i}=e;return(0,t.jsxs)("h3",{children:[(0,t.jsx)("span",{className:"text-base capitalize text-red-100",children:i}),(0,t.jsx)("span",{className:"px-1 text-xs text-gray-200",children:D()(null==l?void 0:l.createdAt).fromNow()})]})}function R(e){var l;let{comment:i,thumbnail:s}=e,n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e=(null==e?void 0:e.length)>0?e:null;let l=null==e?void 0:e.toUpperCase(),i=null==l?void 0:l.split(" ");if((null==i?void 0:i.length)<2){var t;let e=null===(t=i[0])||void 0===t?void 0:t.split(""),l=e[0]+""+e[1];return l}return e?l.match(/(\b\S|)?/g).join(""):"AB"}(null==i?void 0:null===(l=i.user)||void 0===l?void 0:l.fullName);return(0,t.jsx)(t.Fragment,{children:s?(0,t.jsx)("div",{className:"",children:(0,t.jsx)("img",{src:s,className:"h-12 w-12 rounded-full"})}):(0,t.jsx)("div",{className:"inline-flex h-12 w-12 items-center rounded-full bg-red-150 px-3.5 text-white",children:n})})}var Y=i(7668),V=i(66451),G=i(94794),L=i(20260),O=i(2844),q=i.n(O),Z=i(51136);let M=q()({raw:function(e){return"".concat(e.data.html)},list:function(e){try{let l=(null==e?void 0:e.data)||{};if(!Array.isArray(null==l?void 0:l.items))return;let i=["ordered","numbered","order"].includes(String((null==l?void 0:l.style)||"").toLowerCase()),t=i?"ol":"ul",s=e=>e.map(e=>{var l;let i="string"==typeof e?e:null!==(l=null==e?void 0:e.content)&&void 0!==l?l:"",n=Array.isArray(null==e?void 0:e.items)&&e.items.length?"<".concat(t,">").concat(s(e.items),"</").concat(t,">"):"";return"<li>".concat(i).concat(n,"</li>")}).join("");return"<".concat(t,">").concat(s(l.items),"</").concat(t,">")}catch(e){return}},checklist:function(e){try{let l=(null==e?void 0:e.data)||{};if(!Array.isArray(null==l?void 0:l.items))return;let i=e=>e.map(e=>{var l;let t=(null==e?void 0:e.checked)?"checked":"",s=null!==(l=null==e?void 0:e.text)&&void 0!==l?l:"",n=Array.isArray(null==e?void 0:e.items)&&e.items.length?'<ul class="editor-checklist">'.concat(i(e.items),"</ul>"):"";return'<li class="editor-checklist-item"><label><input type="checkbox" '.concat(t," disabled /> <span>").concat(s,"</span></label>").concat(n,"</li>")}).join(""),t='<ul class="editor-checklist">'.concat(i(l.items),"</ul>");return t}catch(e){return}}});var T=function(e){var l,i,n,y,N,w,S,D,I,E,R,O,q,T,J,K,Q,U,H,z,W,X,_,$,ee,el,ei,et,es,en,eo,ed,ea,er,ec;let eu=(0,d.useRouter)(),{isOpen:ex,onOpen:em,onClose:ev}=(0,m.q)(),{storeData:ep,setStoreData:eh}=(0,b.Z)(e=>({storeData:e.data,setStoreData:e.setData})),[eg,ej]=s.useState((null===(l=(0,f.getCookie)("autoPlay"))||void 0===l?void 0:l.toLowerCase())!="false"),[ef,eb]=(0,s.use
1State)(""),ey=(0,s.useContext)(C.Z).apis;(0,s.useEffect)(()=>{var l,i;let t=JSON.parse(!function(e){try{JSON.parse(e)}catch(e){return!1}return!0}(null==e?void 0:null===(l=e.collectionProps)||void 0===l?void 0:l.secondaryDescription)?null:null==e?void 0:null===(i=e.collectionProps)||void 0===i?void 0:i.secondaryDescription),s=t&&"object"==typeof t&&Array.isArray(t.blocks)?t:{time:Date.now(),blocks:[],version:"2.26.5"};eb(null==M?void 0:M.parse(s))},[null==e?void 0:null===(i=e.collectionProps)||void 0===i?void 0:i.secondaryDescription]),(0,s.useEffect)(()=>{var e;ej((null===(e=(0,f.getCookie)("autoPlay"))||void 0===e?void 0:e.toLowerCase())!="false")},[(0,f.getCookie)("autoPlay")]);let eN=async function(){var l,i;let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];e.setIsFavorites(t),t?await ey.contentAddFavoritePost({videoId:null==ep?void 0:null===(l=ep.video)||void 0===l?void 0:l._id}):await ey.contentRemoveFavoriteIdDelete({id:null==ep?void 0:null===(i=ep.video)||void 0===i?void 0:i._id})},ew=async function(){let l=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if((0,f.getCookie)("token")){var i,t,s,n;null==e||e.setIsCompleted(!0),await ey.contentAddVideoHistoryPost({videoId:null==ep?void 0:null===(i=ep.video)||void 0===i?void 0:i._id,duration:null!==(n=null==ep?void 0:null===(s=ep.video)||void 0===s?void 0:null===(t=s.muxes)||void 0===t?void 0:t.duration)&&void 0!==n?n:0,isComplete:!0,device:"web",dateTime:new Date().getTime().toString()})}l&&(null==e?void 0:e.nextVideoUrl)&&eu.push("/playlist-collection/".concat(eu.query.playlist,"#").concat(null==e?void 0:e.nextVideoUrl))};(0,s.useEffect)(()=>{var e;(null==ep?void 0:null===(e=ep.video)||void 0===e?void 0:e._id)&&eA()},[null==ep?void 0:null===(n=ep.video)||void 0===n?void 0:n._id]);let eA=async()=>{var e,l,i;let t=await ey.commentVideoidGet({videoId:null==ep?void 0:null===(e=ep.video)||void 0===e?void 0:e._id});(null==t?void 0:null===(l=t.result)||void 0===l?void 0:l.success)&&eh({comments:null==t?void 0:null===(i=t.result)||void 0===i?void 0:i.comment})},[eC,ek]=(0,s.useState)(!0);(0,s.useEffect)(()=>{let e=setTimeout(()=>{ek(!1)},2e3);return()=>clearTimeout(e)},[]);let[eF]=(0,L.u)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Z,{}),(0,t.jsxs)("section",{className:" container mx-auto mt-24 w-full font-inter md:p-6",children:[(null==e?void 0:e.isPlaylistPage)&&(0,t.jsx)("div",{className:"flex flex-row flex-wrap items-center justify-between gap-y-3 p-6 md:gap-y-0 md:p-2",children:(0,t.jsxs)("div",{className:"md:w-1/2",children:[(null===(N=e.collectionProps)||void 0===N?void 0:null===(y=N.categoriesSeo)||void 0===y?void 0:y.urlHandle)&&(0,t.jsxs)("nav",{"aria-label":"Breadcrumb",className:"breadcrumb",children:[(0,t.jsx)(o(),{className:"capitalize",href:"/",children:"Home"})," ","âº"," ",(0,t.jsx)(o(),{className:"capitalize",href:"/class/".concat(null===(S=e.collectionProps)||void 0===S?void 0:null===(w=S.categoriesSeo)||void 0===w?void 0:w.urlHandle),children:null===(E=e.collectionProps)||void 0===E?void 0:null===(I=E.categoriesSeo)||void 0===I?void 0:null===(D=I.title)||void 0===D?void 0:D.toLowerCase()})]}),(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,t.jsx)(a.$1n,{size:"15px",color:"red"}),(0,t.jsxs)("h3",{className:"font-medium text-red-100 md:text-lg",children:["Collection: ",(0,t.jsx)("span",{className:"font-normal",children:null===(R=e.collectionProps)||void 0===R?void 0:R.title})]})]})]})}),(0,t.jsxs)("div",{className:"container mx-auto flex h-auto w-full flex-row flex-wrap 2xl:max-w-[1800px]",children:[(0,t.jsx)("div",{className:"w-full px-4 ".concat((null==e?void 0:e.isPlaylistPage)?"md:w-[70%]":"md:w-[100%]"," relative md:px-0"),children:eC?(0,t.jsx)("div",{className:"w-full",children:(0,t.jsx)(v.X,{children:(0,t.jsx)("div",{className:"h-[600px] bg-gray-50"})})}):(0,t.jsx)(t.Fragment,{children:(null==ep?void 0:null===(O=ep.collection)||void 0===O?void 0:O.hasAccess)||(null==ep?void 0:null===(q=ep.video)||void 0===q?void 0:q.hasAccess)?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"w-auto",children:(0,t.jsx)(A,{autoPlay:eg,onVideoEnd:e=>ew(e)})})}):(0,t.jsx)("div",{style:{backgroundImage:"url(".concat((null==ep?void 0:null===(T=ep.video)||void 0===T?void 0:T.thumbnailCdn)?null==ep?void 0:null===(J=ep.video)||void 0===J?void 0:J.thumbnailCdn:"/images/subscription.png",")")},className:"aspect-[3/2] bg-cover shadow-[inset_1000px_1000px_1000px_rgba(0,0,0,0.6)] lg:aspect-[4/2]",children:(0,t.jsxs)("div",{className:"absolute inset-0 top-[40%] text-white md:top-[40%] xl:top-[50%] ",children:[(0,t.jsx)("h3",{className:"pb-3 text-center text-base font-semibold md:text-lg",children:null===(K=e.collectionProps)||void 0===K?void 0:K.title}),(0,t.jsx)("button",{onClick:()=>{eh({showProModal:!0})},className:"mx-auto flex flex-row bg-red-100 px-4 py-1 font-semibold",children:"Get Access Now"}),!(0,f.getCookie)("token")&&(0,t.jsxs)("p",{className:"pt-3 text-center text-base font-semibold md:text-lg",children:["or"," ",(0,t.jsx)(o(),{className:"text-red-100",href:"/login",children:"Sign In"})," ","to continue"]})]})})})}),(null==e?void 0:e.isPlaylistPage)&&(0,t.jsx)("div",{className:"shadow dark:bg-gray-700 dark:divide-gray-600 mx-4 h-auto w-full divide-gray-100 overflow-hidden overflow-y-scroll border border-gray-300 md:mx-0 md:w-[30%] lg:w-[25%] ",children:(0,t.jsxs)("ul",{className:" h-[300px] md:h-[100px]",ref:eF,children:[(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"mb-3 flex flex-row justify-between bg-[#C0C0C0] py-2",children:[(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2 px-3",children:[(0,t.jsx)(a.$1n,{color:"#E11E24"}),(0,t.jsxs)("p",{className:"text-xs lg:text-sm",children:[null!==(er=null===(U=e.collectionProps)||void 0===U?void 0:null===(Q=U.videos)||void 0===Q?void 0:Q.length)&&void 0!==er?er:0," Videos"]})]}),(0,t.jsxs)("div",{className:"flex flex-row items-center gap-1 px-3",children:[(0,t.jsx)("h3",{className:"text-xs lg:text-sm",children:"Autoplay"}),(0,t.jsx)(p.i,{color:"primary",size:"sm",isSelected:eg,onValueChange:e=>{ej(e),(0,f.setCookie)("autoPlay",e)}})]})]})}),null===(z=e.collectionProps)||void 0===z?void 0:null===(H=z.videos)||void 0===H?void 0:H.map((l,i)=>{var s;return(0,t.jsx)(t.Fragment,{children:eC?(0,t.jsx)("div",{className:"relative w-full rounded-md px-5",children:(0,t.jsx)(v.X,{children:(0,t.jsx)("div",{className:"h-40 w-24 bg-gray-50"})})},i):(0,t.jsx)("li",{className:"".concat(l.urlHandle!=(null==e?void 0:e.currentVideoHash)?"":"mx-3 roun
1ded bg-gray-50"),children:(0,t.jsx)(o(),{href:"/playlist-collection/".concat(eu.query.playlist,"#").concat(l.urlHandle),children:(0,t.jsxs)("div",{className:"flex w-full flex-row flex-wrap items-center p-3",children:[(0,t.jsx)("div",{className:"w-1/3",children:(0,t.jsx)("img",{src:l.thumbnailCdn?l.thumbnailCdn:"/images/fitscope-16-9.png",className:"h-full w-full rounded",alt:l.title})}),(0,t.jsxs)("div",{className:" w-1/2 pl-2",children:[(0,t.jsx)("p",{className:"text-xs text-gray-200 ",children:l.title}),(0,t.jsxs)("p",{className:"text-xs text-black",children:[("0"+parseInt((null==l?void 0:l.duration)/60)).slice(-2),":",("0"+parseInt((null==l?void 0:l.duration)%60)).slice(-2)," ","min"]})]}),l.urlHandle!=(null==e?void 0:e.currentVideoHash)?"":(0,t.jsxs)("div",{className:"p-3 text-xs",children:[(0,t.jsx)("p",{className:"inline",children:(0,G.ZP)(null!==(s=null==l?void 0:l.shortDescription)&&void 0!==s?s:"")}),(0,t.jsx)("a",{href:"/video/".concat(l.urlHandle),className:"cursor-pointer inline-flex align-bottom text-blue-600 hover:text-blue-800 ml-1",onClick:e=>e.stopPropagation(),children:(0,t.jsx)(Z.UYI,{size:16,color:"gray"})})]})]})})},i)})})]})}),(0,t.jsx)("div",{className:"mt-3",children:(null==e?void 0:e.isPlaylistPage)?(0,t.jsx)("h3",{className:"ml-2 text-xl font-semibold capitalize",children:e.propsVideoTitle}):(0,t.jsx)("h1",{className:"ml-2 text-xl font-semibold capitalize",children:e.propsVideoTitle})})]}),(0,t.jsxs)("div",{className:"flex flex-row flex-wrap gap-2 px-4 py-4 md:gap-4 md:px-0 ",children:[(null==ep?void 0:null===(W=ep.user)||void 0===W?void 0:W.isSubscribed)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex flex-row items-center gap-2 bg-gray-50 px-2 py-1.5",children:(null==e?void 0:e.isFavorites)?(0,t.jsxs)("span",{className:"inline-flex cursor-pointer",onClick:()=>eN(!1),children:[(0,t.jsx)(P.$0H,{size:"20px",color:"red"}),(0,t.jsx)("p",{className:"text-sm md:px-1",children:"Added To Favorites"})]}):(0,t.jsxs)("span",{className:"inline-flex cursor-pointer",onClick:()=>eN(!0),children:[(0,t.jsx)(r.lo,{size:"20px"}),(0,t.jsx)("p",{className:"text-sm md:px-1",children:"Add To Favorites"})]})}),(0,t.jsx)("div",{className:"flex flex-row items-center gap-2 bg-gray-50 px-2 py-1.5",children:e.isCompleted?(0,t.jsxs)("span",{className:"inline-flex cursor-pointer",children:[(0,t.jsx)(a.rnh,{size:"20px",color:"red"}),(0,t.jsx)("p",{className:"text-sm md:px-1",children:"Watched"})]}):(0,t.jsxs)("span",{className:"inline-flex cursor-pointer",onClick:()=>ew(!1),children:[(0,t.jsx)(a.rnh,{size:"20px"}),(0,t.jsx)("p",{className:"text-sm md:px-1",children:"Mark As Watched"})]})})]}),(0,t.jsxs)("div",{className:"flex flex-row items-center",children:[(0,t.jsxs)(h.A,{radius:"none",onPress:em,className:"bg-gray-300 px-5 py-2 font-medium text-black",children:[(0,t.jsx)("span",{className:"inline-flex",children:(0,t.jsx)(Y.jKw,{})})," ","Share"]}),(0,t.jsx)(V.Z,{isOpen:ex,onOpen:em,onClose:ev})]})]})]}),(0,t.jsx)("section",{className:"container mx-auto mb-24 px-6 font-inter",children:(0,t.jsx)("div",{className:"flex w-full flex-col",children:(0,t.jsxs)(k.n,{"aria-label":"Options",variant:"underlined",children:[(0,t.jsx)(F.r,{title:"About",children:(0,t.jsx)(g.w,{children:(0,t.jsx)(j.G,{children:(0,t.jsx)("div",{className:"blog-text-area ql-editor my-1 text-justify text-sm text-gray-200",children:(0,G.ZP)((null==e?void 0:e.isPlaylistPage)?null!=ef?ef:"":null!==(ec=null==ep?void 0:null===(X=ep.video)||void 0===X?void 0:X.fullDescription)&&void 0!==ec?ec:"")})})})},"About"),(0,t.jsx)(F.r,{title:"Comments",children:(0,t.jsx)(B,{loadComments:eA})},"comment"),(0,t.jsx)(F.r,{title:"Trainer",children:(0,t.jsx)(g.w,{children:(0,t.jsx)(j.G,{children:(null==ep?void 0:null===(_=ep.video)||void 0===_?void 0:_.trainer)?(0,t.jsxs)("div",{className:"flex flex-row items-center gap-5 py-3",children:[(0,t.jsx)("img",{src:(null==ep?void 0:null===(ee=ep.video)||void 0===ee?void 0:null===($=ee.trainer)||void 0===$?void 0:$.thumbnailCdn)?null==ep?void 0:null===(ei=ep.video)||void 0===ei?void 0:null===(el=ei.trainer)||void 0===el?void 0:el.thumbnailCdn:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAIZUlEQVR4AdXBCXBU9R3A8e/v/94e5OSWKxCFgNKRCjoQOSqleIwRqaZMGAUEKuPR4kjFzNgW3QW1olKRFHVq7aBSZUSUjlJ1Olgrhyl1wIMihAqoEFBIMOcmu/ver9kAKYRA324yDv18hDaoKk0MkA9MAcYBeUAW361qoAzYCKwGSgFXRGhNaEVVBRgLLAZGAhbnBgfYAhQDm0REOYnFSVTVDywAngVyAcO5wwA5wDTACoVCm8PhsMNxFsepqh9YDswDbM
15dFnAF0CsUCr0TDocdmlg0UVUBFgDzAOHcJ8AIwA2FQn8Ph8OIqtJkLLAe8NMuCq4S27+f+o8+Jr5nD25FNQmmWxb2BReQdsn38fXrB0YAoZ2iwI+Aj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GOohYNlNKnmZIwWRUOY0qDC6YzJSSpxDLpgNtNMBqwKGD2IEAM1asZNDV16FKC1UYdPV13LLiRexAkA7kAKsNUApsoQP50tOZtWo1Q4um46rgqjC0aDqzVq3Gl55BB9sClNqACxQD6wE/HcQOBJnx3Ao+uW4SCcNuKESMoYNFgWLAFZqoqgAPAPcDwv8HBRYCYRFRiybhcJhQKLQZ6A0MB4RzmwJ/AO4TEYcmFseFw2EnFAq9A7jAaMDi3BQFHgLuE5EoxwmtqKoAY4BHgZGAxbnBAbYAxcAmEVFOIrRBVWligHxgCjAWGAxk8d2qBsqAjcBqoBRwRYTW/gOFUgFxzD4YkQAAAABJRU5ErkJggg==",className:"h-10 w-10 rounded-full",alt:null==ep?void 0:null===(es=ep.video)||void 0===es?void 0:null===(et=es.trainer)||void 0===et?void 0:et.fullName}),(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{className:"text-lg text-gray-200",children:null==ep?void 0:null===(eo=ep.video)||void 0===eo?void 0:null===(en=eo.trainer)||void 0===en?void 0:en.fullName})," ",(0,t.jsx)("br",{}),(0,t.jsx)("span",{children:null==ep?void 0:null===(ea=ep.video)||void 0===ea?void 0:null===(ed=ea.trainer)||void 0===ed?void 0:ed.bio})]})]}):(0,t.jsx)("div",{className:"flex flex-row items-center gap-5 py-3",children:"No Trainer Found"})})})},"Trainer")]})})}),(0,t.jsx)(x.Z,{}),(0,t.jsx)(u.Z,{})]})}},32183:function(e,l,i){var t=i(11527),s=i(98153),n=i(21798),o=i(70495),d=i.n(o),a=i(50959),r=i(55203);l.Z=()=>{var e,l,i,o,c;let{storeData:u,setStoreData:x}=(0,n.Z)(e=>({storeData:e.data,setStoreData:e.setData})),m=(0,a.useContext)(s.Z).apis;(0,r.qR)(()=>{v()});let v=async()=>{var e;let l=await m.usersSubscriptionsGetSubscriptionListGet({});(null==l?void 0:null===(e=l.result)||void 0===e?void 0:e.subsTypeList)&&x({subscription:l.result.subsTypeListForCdn})};return(0,t.jsx)(t.Fragment,{children:!(null==u?void 0:null===(e=u.user)||void 0===e?void 0:e.isSubscribed)&&(0,t.jsx)("section",{className:" font-inter ",children:(0,t.jsx)("div",{className:"mt-3 ",children:(0,t.jsxs)("div",{className:"h-full w-auto bg-opacity-75 bg-[url('/images/footerbackground.webp')] bg-cover bg-no-repeat py-16 text-white xl:py-32 ",style:{backgroundPosition:"10% 25%"},children:[(0,t.jsxs)("h3",{className:"space-x-2 text-center text-3xl font-bold md:ml-28 md:text-start md:text-4xl xl:text-5xl",children:["START TRAINING ",(0,t.jsx)("br",{})," WITH ",(0,t.jsx)("span",{className:"font-bold text-red-100",children:"FITSCOPE"})," "]}),(0,t.jsx)("p",{className:"mx-auto my-2 max-w-xs px-3 text-center font-inter text-base md:ml-28 md:px-0 md:text-start xl:text-xl",children:"Join thousands of others who enjoy Fitscope Studio Classes"}),(0,t.jsx)("button",{className:"mx-auto flex flex-col content-center justify-center bg-red-100 px-6 py-1.5 text-sm md:ml-28 xl:mt-3 xl:text-base",children:(0,t.jsxs)(d(),{href:"/pro",children:[(0,t.jsx)("h3",{children:"Start 7 Day Free Trial"}),(0,t.jsxs)("h3",{className:"text-sm",children:["then $",null!==(c=null==u?void 0:null===(o=u.subscription)||void 0===o?void 0:null===(i=o.filter(e=>"MONTHLY"==e.type))||void 0===i?void 0:null===(l=i[0])||void 0===l?void 0:l.price)&&void 0!==c?c:"14.99","/month"]})]})})]})})})})}},66451:function(e,l,i){var t=i(11527),s=i(50959),n=i(68182),o=i(59820),d=i(14953),a=i(18081),r
1=i(82685),c=i(99513),u=i(90943),x=i(6989);l.Z=e=>{let[l,i]=(0,s.useState)(!1),m=(0,s.useRef)(null),v=()=>{i(!0),m.current.focus()};return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(n.R,{className:"max-w-[800px] ",isOpen:e.isOpen,onClose:e.onClose,children:(0,t.jsx)(o.A,{className:"pb-4",children:i=>{var s,n,o,p,h;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.k,{className:"flex flex-col gap-1",children:"Share Link"}),(0,t.jsxs)(a.I,{children:[(0,t.jsx)("p",{ref:m,className:"rounded bg-gray-300 p-3 text-sm",children:null!==(s=null==e?void 0:e.url)&&void 0!==s?s:window.location.href}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-x-2 gap-y-2 md:gap-y-0",children:[(0,t.jsx)(u.CopyToClipboard,{text:null!==(n=null==e?void 0:e.url)&&void 0!==n?n:window.location.href,onCopy:v,children:(0,t.jsxs)("button",{className:"inline-flex w-full items-center justify-center gap-2 rounded bg-gray-300 p-3 text-center text-sm font-medium xs:w-auto xs:justify-start",children:[(0,t.jsx)("span",{className:"",children:(0,t.jsx)(x.gjK,{})}),l?(0,t.jsx)("span",{className:"text-lg xs:text-base",children:"Done"}):(0,t.jsx)("span",{className:"text-lg xs:text-base",children:"copy"})]})}),(0,t.jsx)("p",{className:"w-full items-center xs:text-start rounded border-2 border-transparent bg-[#415994] text-center text-lg xs:w-[35%] xs:text-base md:w-[20%] lg:w-[17%]",children:(0,t.jsxs)(r.Dk,{url:null!==(o=null==e?void 0:e.url)&&void 0!==o?o:window.location.href,children:[(0,t.jsx)(x.R9i,{size:32,className:"m-1 inline-flex items-center text-white"})," ",(0,t.jsx)("span",{className:"font-medium text-white",children:"Facebook"})]})}),(0,t.jsx)("p",{className:"w-full items-center xs:text-start rounded border-2 border-transparent bg-[#4c9eec] text-center text-lg xs:w-[35%] xs:text-base md:w-[20%] lg:w-[17%]",children:(0,t.jsxs)(r.B,{url:null!==(p=null==e?void 0:e.url)&&void 0!==p?p:window.location.href,children:[(0,t.jsx)(x.N1v,{size:32,className:"m-1 inline-flex items-center text-white"})," ",(0,t.jsx)("span",{className:"font-medium text-white",children:"Twitter"})]})}),(0,t.jsx)("p",{className:"w-full items-center xs:text-start rounded border-2 border-transparent bg-[#3375b0] text-center text-lg xs:w-[35%] xs:text-base md:w-[20%] lg:w-[17%]",children:(0,t.jsxs)(r.r2,{url:null!==(h=null==e?void 0:e.url)&&void 0!==h?h:window.location.href,children:[(0,t.jsx)(c.ltd,{size:32,className:"m-1 inline-flex items-center text-white"})," ",(0,t.jsx)("span",{className:"font-medium text-white",children:"Linkedin"})]})})]})]})]})}})})})}}}]);
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.