1"use strict";(globalThis.webpackChunkfidibo_web=globalThis.webpackChunkfidibo_web||[]).push([[5825],{73288(e,t,a){a.d(t,{A:()=>n});const n=["desc","asc"]},2471(e,t,a){a.d(t,{A:()=>n});const n={PARSE:{types:"contentType",people:"authorId",publishers:"publisherId",subscription:"subscription_only",purchasable:"available_only",roles:"authorRole",categories:"categoryId",books:"bookId",exclude_books:"excludeBookId",lists:"proposedListId"},CREATE:{contentType:"types",authorId:"people",publisherId:"publishers",subscription_only:"subscription",available_only:"purchasable",authorRole:"roles",categoryId:"categories",bookId:"books",excludeBookId:"exclude_books",proposedListId:"lists"}}},32899(e,t,a){a.d(t,{O:()=>n});const n=1500},54375(e,t,a){a.d(t,{A:()=>f});var n=a(61379),s=a(1156),i=a(86144),o=a(58319),l=a(43114),c=a(64188),r=a(12831),d=a(82233);const{toastConstant:u}=(0,i.A)();function p(e){var t,a,n;const s=null===e||void 0===e||null===(t=e.data)||void 0===t||null===(a=t.result)||void 0===a?void 0:a[0];if(!s)return null;const{avatar:i,url:o,default_avatar:l}=s;return"string"===typeof i?i:null!==i&&void 0!==i&&i.url?i.url:"string"===typeof o?o:null!==(n=null===l||void 0===l?void 0:l.url)&&void 0!==n?n:null}function h(e){let{dispatch:t,cancel:a}=e;return l.A.get({url:n.A.getProfile,cancel:a}).then(e=>{t({type:d.tw,payload:{res:e}})})}function g(e){let{dispatch:t,data:a,profileShowDispatch:n,username:s}=e;t({type:d.Xe,payload:{data:a}}),n({type:d.Xe,payload:{username:s,data:a}})}function m(e){return l.A.get({url:n.A.chargeWallet}).then(t=>{var a,n,i;const{payment_solution:c,uuid:r,pay_url:d}=null!==(a=null===t||void 0===t||null===(n=t.data)||void 0===n||null===(i=n.result)||void 0===i?void 0:i[0])&&void 0!==a?a:{};if(c&&r)return l.A.post(e({gateway_uuid:r,payment_solution:c}));throw d||o.A.addToast({type:s.LL,message:u.errorFound}),new Error})}const f={getProfile:h,getProfileInfo:function(e){let{dispatch:t,cancel:a}=e;return l.A.get({url:n.A.getProfileInfo,cancel:a}).then(e=>{t({type:d.Gl,payload:{res:e}})})},updateProfileInfo:function(e){let{data:t,dispatch:a,authDispatch:i,profileShowDispatch:r,username:d}=e;return l.A.put({url:n.A.updateProfileInfo,data:t}).then(()=>{g({dispatch:a,data:t,profileShowDispatch:r,username:d}),c.A.updateUser({user:t,dispatch:i}),o.A.addToast({type:s.Cc,message:u.profileUpdated})})},changePassword:function(e){let{data:{current_password:t,new_password:a,new_password_confirmation:i}}=e;return l.A.post({url:n.A.changePassword,data:{current_password:t,new_password:a,new_password_confirmation:i}}).then(e=>(o.A.addToast({type:s.Cc,message:u.passwordUpdated}),e))},setProfile:g,getProfilePlans:function(e){let{data:{type:t},dispatch:a,cancel:s}=e;return l.A.get({url:n.A.getProfilePlans(t),cancel:s}).then(e=>{a({type:d.e3,payload:{res:e,type:t}})})},getProfilePurchases:function(e){let{data:{page:t,limit:a},dispatch:s,cancel:i}=e;return l.A.get({url:n.A.getProfilePurchases(t,a),cancel:i}).then(e=>{s({type:d.KV,payload:{res:e,page:t}})})},getProfilePurchaseDetail:function(e){let{data:{code:t},dispatch:a,cancel:s}=e;return l.A.get({url:n.A.getProfilePurchaseDetail(t),cancel:s}).then(e=>{a({type:d.v,payload:{res:e}})})},addedReviewForPurchase:function(e){let{data:{order_code:t,uuid:a},dispatch:n}=e;n({type:d.sZ,payload:{order_code:t,contentUUID:a}})},getProfileReviews:function(e){let{data:{page:t,limit:a},dispatch:s,cancel:i}=e;return l.A.get({url:n.A.getProfileReviews(t,a),cancel:i}).then(e=>{s({type:d.rw,payload:{res:e,page:t}})})},getWaitingReviews:function(e){let{data:{page:t,limit:a},dispatch:s,cancel:i}=e;return l.A.get({url:n.A.getProfileWaitingReviews(t,a),cancel:i}).then(e=>{s({type:d.Bp,payload:{res:e,page:t}})})},chargeWallet:function(e){let{amount:t}=e;return m(e=>{let{gateway_uuid:a,payment_solution:s}=e;return{url:n.A.chargeWalletInit,data:{gateway_uuid:a,payment_solution:s,amount:t}}})},donationPayment:function(e){let{amount:t,product_uuid:a,type:s}=e;return m(e=>{let{gateway_uuid:i,payment_solution:o}=e;return{url:n.A.paymentDonations,data:{gateway_uuid:i,payment_solution:o,amount:t,product_uuid:a,type:s}}})},chargeByGift:function(e){let{serial:t,code:a,dispatch:i,basketDispatch:c}=e;return l.A.get({url:n.A.chargeWalletByGift(t,a)}).then(()=>(o.A.addToast({type:s.Cc,message:u.chargeGift}),c({type:r.rH}),h({dispatch:i})))},getProfileStudyRateStreak:function(e){let{dispatch:t,cancel:a}=e;return l.A.get({url:n.A.getProfileStudyRateStreak,cancel:a}).then(e=>{t({type:d.pG,payload:{res:e}})})},getProfileStudyRateOverall:function(e){let{dispatch:t,cancel:a}=e;return l.A.get({url:n.A.getProfileStudyRateOverall,cancel:a}).then(e=>{t({type:d.ie,payload:{res:e}})})},getProfileStudyRateChart:function(e){let{data:{page:t,limit:a,period:s},dispatch:i,cancel:o}=e;return l.A.get({url:n.A.getProfileStudyRateChart(s,t,a),cancel:o}).then(e=>{i({type:d.R2,payload:{page:t,limit:a,period:s,res:e}})})},getProfileStudyRateAverage:function(e){let{dispatch:t,cancel:a}=e;return l.A.get({url:n.A.getProfileStudyRateAverage,cancel:a}).then(e=>{t({type:d.Gd,payload:{res:e}})})},getProfileReadingReport:function(e){let{data:{from:t,to:a},cancel:s}=e;return l.A.post({url:n.A.getProfileReadingReport,data:{from:t,to:a},cancel:s})},updateProfileAvatar:function(e){let{data:{formData:t,avatar:a,avatar_preset_key:i},dispatch:r,profileShowDispatch:h,authDispatch:g,username:m}=e;const f=i?{avatar_preset_key:i}:t;return l.A.post({url:n.A.updateProfileAvatar,data:f}).then(e=>{const s=p(e);return s||(t?l.A.get({url:n.A.getProfileInfo,dontCache:!0,param:`?no_cache=1&t=${Date.now()}`}).then(e=>p(e)):a)}).then(e=>{if(!e)return;const a=t||i?`${e}${e.includes("?")?"&":"?"}t=${Date.now()}`:e;r({type:d.aN,payload:{avatar:a}}),h({type:d.aN,payload:{username:m,avatar:a}}),c.A.updateUser({user:{avatar:a},dispatch:g}),o.A.addToast({type:s.Cc,message:u.profileAvatarUpdated})})},deleteProfileAvatar:function(e){let{dispatch:t,profileShowDispatch:a,authDispatch:i,username:r}=e;return l.A.del({url:n.A.deleteProfileAvatar}).then(e=>{const n=p(e);t({type:d.Mf}),a({type:d.aN,payload:{username:r,avatar:n}}),t({type:d.aN,payload:{avatar:n}}),c.A.updateUser({user:{avatar:n},dispatch:i}),o.A.addToast({type:s.Cc,message:u.profileAvatarUpdated})})},getProfileAvatarPreset:function(e){let{dispatch:t,cancel:a}=e;return l.A.get({url:n.A.getProfileAvatarPreset,cancel:a}).then(e=>{t({type:d.jY,payload:{res:e}})})},updateProfileCategories:function(e){let{data:{categories:t},dispatch:a,profileShowDispatch:i,username:c}=e;return l.A.post({url:n.A.updateProfileCategories,data:{categories:t.map(e=>e.uuid)}}).then(()=>{a({type:d.PS,payload:{categories:t}}
1),i({type:d.PS,payload:{username:c,categories:t}}),o.A.addToast({type:s.Cc,message:u.profileCategoriesUpdated})})},getProfileGiftsReceiver:function(e){let{data:{page:t,limit:a},dispatch:s,cancel:i}=e;return l.A.get({url:n.A.getProfileGiftsReceiver(t,a),cancel:i}).then(e=>{s({type:d.Ls,payload:{res:e,page:t}})})},GetProfileGiftsSender:function(e){let{data:{page:t,limit:a},dispatch:s,cancel:i}=e;return l.A.get({url:n.A.GetProfileGiftsSender(t,a),cancel:i}).then(e=>{s({type:d.X8,payload:{res:e,page:t}})})}}},13086(e,t,a){a.d(t,{A:()=>s});var n=a(2471);const s=function(e){let{params:t,dontChangeKeys:a=!1}=e,s="?";const i=Object.keys(t);for(let o of i){const e=a?o:n.A.CREATE[o]||o;if(Array.isArray(t[o]))t[o].length&&(s+=`${e}=${JSON.stringify(t[o]).replace(/"/g,"")}&`);else{s+=`${e}=${!0===t[o]?1:!1===t[o]?0:t[o]}&`}}return s.slice(0,s.length-1)}},63285(e,t,a){a.d(t,{A:()=>i});var n=a(2471),s=a(27751);const i=function(e){const t=e||("undefined"!==typeof window?window.location.search:s.u._parsedUrl.search);try{let e={};if(t){const a=new URLSearchParams(t);for(let t of a){const a=t[0],s=t[1];e[n.A.PARSE[a]||a]="0"!==s&&("1"===s||(s.startsWith("[")&&s.endsWith("]")?s.replace("[","").replace("]","").split(",").map(e=>isNaN(e)?e:+e).sort():s))}}return e}catch(a){return console.log(null===a||void 0===a?void 0:a.message),{}}}},93(e,t,a){a.d(t,{A:()=>N});var n=a(80500),s=a(9950),i=a(63778),o=a(56428),l=a(86144),c=a(37018),r=a(41882),d=a(93636),u=a(63124),p=a(49998),h=a(75027),g=a(4240),m=a(83024),f=a(18789);var b=a(79918),v=a(32383),A=a(2923),x=a(39890);var y=a(23852),j=a(35032);var k=a(22402),_=a(44414);const w=function(e){let{textConstant:t,showAppModal:a,onCloseAppModal:n,onOpenInApp:s,showPlusModal:i,onClosePlusModal:o,btnLoading:l}=e;return(0,_.jsxs)(_.Fragment,{children:[a&&(0,_.jsx)(k.default,{close:n,submitType:"second",Icon:"fidibo-book-outline",title:f.QX?"":t.readInApp,desc:f.QX?t.readInSoonDesc:t.readInAppDesc,submitText:f.QX?t.goBackToWebSoon:t.readInAppBtn,cancelText:f.QX?"":t.goBackToWeb,onSubmit:f.QX?()=>window.history.go(-1):s}),i.show&&(0,_.jsx)(k.default,{close:o,submitType:"third",Icon:"fidibo-fidi-plus-outline",title:i.title,desc:i.description,submitText:i.btn,cancelText:t.cancel,onSubmit:i.onSubmit,submitLoading:l})]})};const N=function(e){var t;let{episode:a,podcast:k,book:N,goBackAfterSuccess:S,getSample:C,initialProgress:P=0,playlistEpisodes:R}=e;const{uuid:D,title:I,cover:T,price:L,badges:B,action:U,slug:F,campaign:M,content_type:E,format:$,authors:O,id:W}=N||{},{sample:G,user_subscription:H,subscription:X}=B||{},Q=function(){let{badges:e,bookPrice:t,campaign:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{purchased:n}=e||{},{discounted_price:s}=a||{};return n||!t||0===s}({badges:B,bookPrice:L,campaign:M}),q=(0,c.A)(E),{state:{data:z},dispatch:Y}=(0,s.useContext)(i.jY),{dispatch:Z}=(0,s.useContext)(d.Z),{dispatch:K}=(0,s.useContext)(g.H),{dispatch:V}=null!==(t=(0,s.useContext)(o.B))&&void 0!==t?t:{},[J,ee]=(0,s.useState)(!1),[te,ae]=(0,s.useState)(!1),[ne,se]=(0,s.useState)(!1),[ie,oe]=(0,s.useState)({show:!1,title:"",description:"",btn:"",onSubmit:null}),{textConstant:le}=(0,l.A)(),{has_ever_been_activated:ce,is_active:re}=(0,h.A)(),de=`/web-reader/${F}`,ue={playerDispatch:Y,libraryDispatch:Z,bookDispatch:K,episodeDispatch:V};function pe(){se(e=>!e)}function he(){let{title:e,description:t,btn:a,onSubmit:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!ie.show?(oe({title:e,description:t,btn:a,show:!0,onSubmit:n}),(0,p.RB)("item_fidiplus_modal",{item_id:D,title:I,message:t})):oe(e=>({...e,show:!1}))}function ge(){u.A.back(),setTimeout(()=>u.A.pushState({url:r.A.buySubscription}),200)}function me(){ae(!0),n.A.activeReservePlan({content_uuid:D}).then(()=>{ae(!1),u.A.back(),setTimeout(()=>{be()},100)}).catch(()=>{ae(!1)})}function fe(e){switch(e){case"episode":!function(e){let{episode:t,podcast:a,bookAuthors:n,action:s,goBackAfterSuccess:i,initialProgress:o,playerDispatch:l,playlistEpisodes:c}=e;const{id:r,uuid:d,playlist_url:p,title:h,cover:g,slug:m}=t,{slug:f}=a||{};var A;i&&u.A.back(),b.A.setActiveItem({data:{type:v.A.episode,streamLink:p,playlist:(A=c,null!==A&&void 0!==A&&A.length?A.map(e=>{const t=(null===e||void 0===e?void 0:e.episode)||{},a=(null===e||void 0===e?void 0:e.podcast)||{};return{episode_uuid:t.uuid,episode_id:t.id,episode_slug:t.slug,title:t.title,cover:t.cover,streamLink:t.playlist_url,podcast_slug:a.slug,progress:(null===e||void 0===e?void 0:e.progress)||0,duration:t.duration_string}}).filter(e=>e.episode_uuid&&e.streamLink):null),title:h,description:null,cover:g,contentUUID:null,episodeUUID:d,episodeSlug:m,episodeId:r,channelSlug:f,initialProgress:o,isFromSubscription:!1,authors:n,action:s},dispatch:l,autoplay:!0,skipSync:!0})}({episode:a,podcast:k,bookAuthors:O,action:U,goBackAfterSuccess:S,initialProgress:P,playerDispatch:Y,playlistEpisodes:R});break;case"full_access":q?function(e){let{bookUUID:t,bookTitle:a,bookCover:n,bookSlug:s,book:i,bookAuthors:o,action:l,goBackAfterSuccess:c,playerDispatch:r,bookDispatch:d,libraryDispat
1ch:u,user_subscription:p,haveBought:h,active_plan:g,setIsLoading:m,onRemainingCapacity:f,onPlusError:b}=e;m(!0),(0,A.A)({uuid:t,goBackAfterSuccess:c,title:a,cover:n,playerDispatch:r,bookDispatch:d,libraryDispatch:u,getNewByPlus:!p&&!h,bookSlug:s,openPlaylistIfNeeded:!0,isFromSubscription:!h&&g,successCallback:e=>{let{remaining_capacity:t}=e;t&&f(t),m(!1)},failCallback:e=>{let{state:t,message:a,error:n}=e;b({state:t,message:a,error:n}),m(!1)},book:i,authors:o,action:l})}({bookUUID:D,bookTitle:I,bookCover:T,bookSlug:F,book:N,bookAuthors:O,action:U,goBackAfterSuccess:S,playerDispatch:Y,bookDispatch:K,libraryDispatch:Z,user_subscription:H,haveBought:Q,active_plan:re,setIsLoading:ee,onRemainingCapacity:e=>{setTimeout(()=>{he({title:le.lastCapacityTitle(e),description:le.lastCapacityDesc(e),btn:le.ok,onSubmit:u.A.back})},S?500:0)},onPlusError:e=>{let{state:t,message:a,error:n}=e;2===t?he({title:n,description:a,btn:le.renewMySubscription,onSubmit:ge}):3===t&&he({title:n,description:a,btn:le.activeReservedPlan,onSubmit:me})}}):function(e){let{redirectUrl:t,onOpenAppModal:a}=e;f.QX,a()}({redirectUrl:de,onOpenAppModal:pe});break;case"third_party_pdf":pe();break;case"sample":q?function(e){let{bookUUID:t,bookTitle:a,bookCover:s,bookSlug:i,book:o,action:l,goBackAfterSuccess:c,getSample:r,initialProgress:d,playerDispatch:h,libraryDispatch:g,setIsLoading:m}=e;m(!0),n.A.receive({data:{isSample:!0,uuid:t},libraryDispatch:r&&g}).then(e=>{var n,i,o;c&&u.A.back();const{stream_link:r}=null!==(n=null===e||void 0===e||null===(i=e.data)||void 0===i||null===(o=i.result)||void 0===o?void 0:o[0])&&void 0!==n?n:{};b.A.setActiveItem({data:{type:v.A.sample,streamLink:r,playlist:null,title:a,description:null,authors:null,cover:s,contentUUID:t,uuid:t,episodeUUID:null,episodeSlug:null,channelSlug:null,episodeId:null,initialProgress:d,isFromSubscription:!1,action:l},dispatch:h,autoplay:!0,skipSync:!0}),(0,p.RB)("stream",{item_id:t,is_sample:!0})}).catch(e=>{(0,p.RB)("stream_failed",{item_id:t,fail_reason:String(null===e||void 0===e?void 0:e.message)})}).finally(()=>{m(!1)}),(0,x.A)({is_sample:!0,content:o})}({bookUUID:D,bookTitle:I,bookCover:T,bookSlug:F,book:N,action:U,goBackAfterSuccess:S,getSample:C,initialProgress:P,playerDispatch:Y,libraryDispatch:Z,setIsLoading:ee}):function(e){let{bookSlug:t}=e;u.A.pushState({url:r.A.readerSample(t)})}({bookSlug:F});break;case"expired_plus":he({title:le.finishPlus,description:le.finishPlusDesc,btn:le.renewMySubscription,onSubmit:ge});break;case"no_plus":he({title:le.buySubscriptionModalTitle,description:le.buySubscriptionModalDesc,btn:le.buySubscription,onSubmit:ge})}}function be(){!function(e){let{playerData:t,dispatches:a,run:n}=e;(0,j.dB)(),y.A.openLoginModal().then(()=>(0,j.i5)({dispatches:a,book:(0,j.x1)(t)}).then(n))}({playerData:z,dispatches:ue,run:()=>{fe(function(e){let{episode:t,podcast:a,haveBought:n,getSample:s,sample:i,active_plan:o,subscription:l,user_subscription:c,is3rdParty:r,format:d,has_ever_been_activated:u}=e;return t&&a?"episode":n||!s&&!i&&o&&(l||c)?"full_access":r&&"pdf"===d?"third_party_pdf":i||s?"sample":!c&&!u||o?o?null:"no_plus":"expired_plus"}({episode:a,podcast:k,haveBought:Q,getSample:C,sample:G,active_plan:re,subscription:X,user_subscription:H,is3rdParty:f.QX,format:$,has_ever_been_activated:ce}))}})}return{isLoading:J,play:be,layout:(0,_.jsx)(w,{textConstant:le,showAppModal:ne,onCloseAppModal:pe,onOpenInApp:function(){const e=(0,m.A)();window.location.href=`fidibo://${e}/book/${W}`,setTimeout(()=>{u.A.back(),setTimeout(()=>{u.A.pushState({url:r.A.apps})},100)},400)},showPlusModal:ie,onClosePlusModal:he,btnLoading:te})}}},35565(e,t,a){a.d(t,{A:()=>d});var n=a(9950),s=a(56428),i=a(43114),o=a(61379),l=a(47629);const c={getEpisodes:function(e){let{data:{sort:t,channelSlug:a,offset:n,limit:s},dispatch:c,cancel:r}=e;return i.A.get({url:o.A.getEpisodes(a,n,s,t),cancel:r}).then(e=>(null===c||void 0===c||c({type:l.G,payload:{sort:t,res:e,channelSlug:a,limit:s,offset:n}}),e))}};var r=a(95575);const d=function(e){var t,a,i;let{channelSlug:o,sort:l,isRendering:d}=e;const{state:u,dispatch:p}=(0,n.useContext)(s.B),{results:h}=u,g=null!==(t=null===(a=u[o])||void 0===a?void 0:a[l])&&void 0!==t?t:{},m=(null!==(i=null===g||void 0===g?void 0:g.keys)&&void 0!==i?i:[]).map(e=>h[e]),f=null===g||void 0===g?void 0:g.offset,b=null===g||void 0===g?void 0:g.getDone,{isLoading:v,cancelToken:A,getMore:x}=(0,r.A)({offset:f,getData:function(){if(o){const e=void 0!==f?f+12:0;return c.getEpisodes({data:{sort:l,channelSlug:o,offset:e,limit:12},dispatch:p,cancel:e=>A.current=e})}},getDone:b,isRendering:d,dependencies:[l,o]});return{data:m,isLoading:v,getMore:x}}},3819(e,t,a){a.d(t,{A:()=>d});var n=a(93455),s=a(9950),i=a(59779),o=a(43114),l=a(61379),c=a(95998);const r={getContentTypes:function(e){let{dispatch:t,cancel:a}=e;return o.A.get({url:l.A.getContentTypes,cancel:a}).then(e=>{t({type:c.f,payload:{res:e}})})}};const d=function(){var e;let{contentTypes:t,dontReq:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{state:{keys:o,results:l,getDone:c},dispatch:d}=(0,s.useContext)(n.l),u=!c,p=o.map(e=>l[e]),h=(0,s.useRef)(null),g=null!==t&&void 0!==t&&null!==(e=t.some)&&void 0!==e&&e.call(t,e=>!!l[e])?t.reduce((e,t)=>
1l[t]?[...e,l[t]]:e,[]):[];return(0,i.A)({request:function(){if(!a)return r.getContentTypes({dispatch:d,cancel:e=>h.current=e})},isLoading:u,cancelToken:h}),{data:p,isLoading:u,actives:g}}},2713(e,t,a){a.d(t,{A:()=>o});var n=a(9950),s=a(24801),i=a(32899);const o=function(e){let{getMore:t,isRendering:a=!0,keepFetching:o=!0,scrollWrapper:l=null}=e;(0,n.useEffect)(()=>{if(a&&o){function e(e){let{scrollTop:a,scrollHeight:n,clientHeight:s}=e;s+a>=n-i.O&&t()}return(0,s.A)({callback:e,scrollWrapper:l})}},[t,a,o,l])}},21156(e,t,a){a.d(t,{A:()=>l});var n=a(63124),s=a(13086),i=a(9950),o=a(62165);const l=function(e){let{isRendering:t,sort:a,filters:l}=e;const c=(0,i.useRef)(null),r=(0,i.useRef)(!1),{isModalOpen:d}=(0,o.A)();(0,i.useEffect)(()=>{if(t&&r.current&&!d)return clearInterval(c.current),c.current=setTimeout(()=>{n.A.replaceState({url:window.location.pathname+(0,s.A)({params:{...l,...a?{sort:a}:{}}}),data:"for-history"})},500),()=>clearInterval(c.current);r.current=!0},[t,a,l,d])}},33121(e,t,a){a.d(t,{A:()=>i});var n=a(95769),s=a(44414);const i=function(e){let{isLoading:t}=e;if(t)return(0,s.jsx)("div",{className:"pagination-loading",children:(0,s.jsx)(n.A,{width:20})})}},870(e,t,a){a.d(t,{A:()=>s});var n=a(44414);const s=function(e){let{className:t="",pause:a}=e;return(0,n.jsxs)("div",{className:`playing-icon ${t} ${a?"pause":""}`,children:[(0,n.jsx)("div",{className:"playing-icon-item first"}),(0,n.jsx)("div",{className:"playing-icon-item second"}),(0,n.jsx)("div",{className:"playing-icon-item third"}),(0,n.jsx)("div",{className:"playing-icon-item forth"})]})}},33119(e,t,a){a.d(t,{A:()=>p});var n=a(9950),s=a(53902),i=a(85915),o=a(44414);const l=function(e){let{data:{name:t,title:a,action:n,web_url:l},isLast:c,isFirst:r,isCollapsed:d}=e;const{link:u}=(0,s.A)({action:n});return(0,o.jsxs)(o.Fragment,{children:[!r&&(0,o.jsx)("span",{className:"fidibo-arrow-left-outline breadcrumb-arrow "+(c?"last":"")}),(0,o.jsx)(i.A,{to:l||u,className:"breadcrumb-name "+(c?"last":""),children:d?"...":t||a})]})};var c=a(86144),r=a(41882),d=a(19317),u=a(34116);const p=function(e){let{breadcrumb:t=[]}=e;const{textConstant:a}=(0,c.A)(),s=[...t].sort((e,t)=>e.position-t.position),i=(0,n.useRef)(null),[p,h]=(0,n.useState)([]);if((0,u.A)(()=>{t.length&&(0,d.A)({callback:()=>{i.current&&i.current.scrollWidth>i.current.clientWidth&&h([1])}})},[t]),(0,u.A)(()=>{p.length&&i.current&&i.current.scrollWidth>i.current.clientWidth&&(p.includes(0)?h(e=>[...e,2]):h(e=>[...e,0]))},[p]),t.length)return(0,o.jsxs)("div",{className:"breadcrumb",ref:i,children:[(0,o.jsx)(l,{data:{name:a.name,web_url:r.A.home},isFirst:!0}),s.map((e,t)=>(0,o.jsx)(l,{data:e,isLast:t===s.length-1,isCollapsed:p.includes(t)},t))]})}},83892(e,t,a){a.d(t,{A:()=>m});var n=a(72902),s=a(9950),i=a(63778),o=a(79918),l=a(85915),c=a(41882),r=a(870),d=a(93),u=a(63124),p=a(44414);const h=function(e){let{data:t,isPage:a,playlistEpisodes:h}=e;const{episode:g,podcast:m,progress:f}=t||{},{cover:b,uuid:v,title:A,duration_string:x,fiditunes_publish_date_fa:y,episode_number_string:j,slug:k}=g||{},{image:_}=b||{},{state:{data:{episodeUUID:w},isPlaying:N},dispatch:S}=(0,s.useContext)(i.jY),C=c.A.episodeOverview(k),P=w===v,R=P&&N,D=(f||0)+"%",{play:I}=(0,d.A)({episode:g,podcast:m,initialProgress:f,playlistEpisodes:h});return(0,p.jsxs)(l.A,{isDiv:!0,disableRipple:!0,to:C,className:"channel-page-content-box-content-item",onClick:function(){a||u.A.back()},children:[(0,p.jsx)(n.A,{className:"channel-page-content-box-content-item-img",src:_,alt:A,resize:{desktop:72,mobile:72}}),(0,p.jsxs)("div",{className:"channel-page-content-box-content-item-detail",children:[(0,p.jsx)("div",{className:"channel-page-content-box-content-item-detail-title",children:A}),(0,p.jsxs)("div",{className:"channel-page-content-box-content-item-detail-content",children:[(0,p.jsx)(l.A,{className:"channel-page-content-box-content-item-detail-content-btn",onClick:function(e){e.stopPropagation(),e.preventDefault(),P?o.A.togglePlayPause({isPlaying:!N,dispatch:S}):I()},children:R?(0,p.jsx)("span",{className:"fidibo-circle-paus2-fill channel-page-content-box-content-item-detail-content-btn-icon",dontPropagation:!0}):(0,p.jsx)("span",{className:"fidibo-circle-play2-fill channel-page-content-box-content-item-detail-content-btn-icon",dontPropagation:!0})}),(0,p.jsxs)("div",{className:"channel-page-content-box-content-item-detail-content-box",children:[(0,p.jsx)("div",{className:"channel-page-content-box-content-item-detail-content-box-item",children:(0,p.jsx)("div",{children:x})}),y?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"channel-page-content-box-content-item-detail-content-separator"}),(0,p.jsx)("div",{className:"channel-page-content-box-content-item-detail-content-box-item",children:(0,p.jsx)("div",{children:y})})]}):(0,p.jsx)(p.Fragment,{})]})]})]}),(0,p.jsx)("div",{className:"show-image-header",children:(0,p.jsxs)("div",{children:[(0,p.jsx)("div",{className:"badge number2",children:j}),(0,p.jsx)("div",{className:"triangle"})]})}),P&&(0,p.jsx)(r.A,{className:"channel-page-content-box-content-item-detail-playing",pause:!N}),(0,p.jsx)("div",{className:"channel-page-content-box-content-item-detail-progress",children:(0,p.jsx)("div",{className:"playlist-content-item-progress-line",style:{width:D}})})]})};var g=a(86144);const m=function(e){let{episodes:t,isPage:a}=e;const{textConstant:n}=(0,g.A)(),s=[];for(const i in t){const e=t[i],a=s[s.length-1],n=null===a||void 0===a?void 0:a[
1(null===a||void 0===a?void 0:a.length)-1];n&&n.episode.season===e.episode.season?a.push(e):s.push([e])}return s.map((e,s)=>{var i,o;const l=null===(i=e[0])||void 0===i||null===(o=i.episode)||void 0===o?void 0:o.season;return(0,p.jsxs)("div",{className:"channel-page-content-box",children:[l&&(0,p.jsx)("h2",{className:"channel-page-content-box-title",children:n.season+" "+l}),(0,p.jsx)("div",{className:"channel-page-content-box-content",children:e.map(e=>(0,p.jsx)(h,{data:e,haveSeason:!!l,isPage:a,playlistEpisodes:t},e.episode_id))})]},s)})}},55180(e,t,a){a.d(t,{A:()=>h});var n=a(95769),s=a(17119),i=a(9950),o=a(85915),l=a(34116),c=a(16292),r=a(78567),d=a(63124),u=a(44414);const p=function(e){let{isLoading:t,dontShowBack:a,title:p,left:h,searchOverlay:g,showSearch:m=!1}=e;const[f,b]=(0,i.useState)(!1),[v,A]=(0,i.useState)(!1),x="undefined"!==typeof document?document.getElementById("mobile-header-title"):null;return(0,l.A)(()=>{b(!0)},[]),(0,u.jsxs)(u.Fragment,{children:[f&&x&&p?(0,s.createPortal)((0,u.jsxs)("div",{className:"mobile-header-top-container-inner",children:[(0,u.jsx)(o.A,{ariaLabel:"back",className:"mobile-header-back "+(a?"hide":""),onClick:d.A.back,children:(0,u.jsx)("span",{className:"fidibo-arrow-right-2-outline mobile-header-back-icon"})}),(0,u.jsx)("div",{className:"mobile-header-title",children:m?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o.A,{ariaLabel:"search",className:"mobile-header-back-search "+(v?"show":""),onClick:d.A.back,children:(0,u.jsx)("span",{className:"fidibo-arrow-right-2-outline mobile-header-back-icon"})}),(0,u.jsx)(r.A,{isMobile:!0,setIsSearching:A})]}):t?(0,u.jsx)("div",{children:(0,u.jsx)(n.A,{width:16})}):(0,u.jsx)(u.Fragment,{children:p})})]}),x):f&&x&&(0,s.createPortal)((0,u.jsxs)("div",{className:"mobile-header-top-container-inner",children:[(0,u.jsx)(o.A,{ariaLabel:"back",className:"mobile-header-back "+(a?"hide":""),onClick:d.A.back,children:(0,u.jsx)("span",{className:"fidibo-arrow-right-2-outline mobile-header-back-icon"})}),(0,u.jsx)("div",{className:"mobile-header-title",children:t?(0,u.jsx)("div",{children:(0,u.jsx)(n.A,{width:16})}):(0,u.jsx)(c.A,{})})]}),x),f&&document.getElementById("mobile-header-left")&&h&&(0,s.createPortal)((0,u.jsx)("div",{className:"mobile-header-top-container-left",children:h}),document.getElementById("mobile-header-left")),f&&document.getElementById("mobile-header-search")&&g&&(0,s.createPortal)((0,u.jsx)("div",{className:"mobile-header-top-container-search",children:g}),document.getElementById("mobile-header-search"))]})};const h=function(e){let{isRendering:t,title:a,isLoading:n,dontShowBack:s,left:i,searchOverlay:o,showSearch:l}=e;if(t)return(0,u.jsx)(p,{isLoading:n,dontShowBack:s,title:a,left:i,searchOverlay:o,showSearch:l})}},18672(e,t,a){a.d(t,{A:()=>l});var n=a(9950),s=a(72387),i=a(44414);const o=(0,n.lazy)(()=>a.e(4991).then(a.bind(a,57372)));const l=function(e){let{isRendering:t}=e;return(0,i.jsx)(n.Suspense,{fallback:(0,i.jsx)(s.A,{haveBg:!0}),children:(0,i.jsx)(o,{route:{isRendering:t}})})}},94069(e,t,a){a.d(t,{A:()=>v});var n=a(9950),s=a(14221),i=a(85915),o=a(86144),l=a(3819),c=a(25917),r=a(75992),d=a(95769),u=a(44414);const p=function(e){let{dontShowBorder:t,filters:a,setFilters:n,setSearch:s}=e;const{format:p}=a||{},{textConstant:h}=(0,o.A)(),{data:g,isLoading:m}=(0,l.A)();function f(e){return function(){n(t=>{if(e)return{...t,format:e};{const e={...t};return delete e.format,e}})}}return(0,u.jsxs)("div",{className:"page-options-header-content-types "+(t?"no-border":""),children:[(0,u.jsx)("div",{className:"page-options-header-content-types-first hide-scroll",children:m?(0,u.jsx)(d.A,{width:20}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.A,{className:"page-options-header-content-types-first-item "+(p?"":"active"),onClick:f(null),children:h.all}),g.filter(e=>e.en_title!==c.A.episode).map(e=>(0,u.jsx)(i.A,{className:"page-options-header-content-types-first-item "+(p===e.en_title?"active":""),onClick:f(e.en_title),children:e.title},e.id))]})}),s&&(0,u.jsx)(r.A,{className:"page-options-header-content-types-second",onChange:function(e){let{value:t}=e;s(t)},name:"search",placeholder:h.searchInLibrary,showClear:!0,Icon:"fidibo-search-outline",isSmall:!0,autoComplete:"off"})]})};var h=a(53902);const g=function(e){let{data:{title:t,action:a}}=e;const{link:n}=(0,h.A)({action:a});return(0,u.jsx)(i.A,{to:n,className:"page-options-header-content-tags-item",children:t})};const m=function(e){let{tags:t}=e;return(0,u.jsx)("div",{className:"page-options-header-content-tags hide-scroll",children:t.map((e,t)=>(0,u.jsx)(g,{data:e},t))})};var f=a(63124);const b=(0,n.lazy)(()=>a.e(400).then(a.bind(a,400)));const v=function(e){let{title:t,filters:a,setFilters:l,hideFilterOnDesktop:c,sorts:r,sort:d,setSort:h,isGridRow:g,setGridIsRow:v,showContentTypes:A,tags:x,setSearch:y,hideMobile:j,hideHeaderOnMobile:k,filterModal:_,footer:w,showTitleOnMobile:N,showBack:S,showBackOnMobile:C}=e;const{textConstant:P}
1=(0,o.A)(),[R,D]=(0,n.useState)(!1),[I,T]=(0,n.useState)(!1),L=v,B=r&&d&&h,U=a&&l&&_,F=a&&Object.keys(a).some(e=>"sort"!==e&&"query"!==e&&"format"!==e&&"proposedListId"!==e&&"title"!==e&&("boolean"===typeof a[e]?!!a[e]:Array.isArray(a[e])?a[e].length:!!e));function M(e){return function(){v(e)}}function E(){D(e=>!e)}function $(){T(e=>!e)}function O(e){let{isMobile:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=a?C:S;return(0,u.jsxs)("span",{className:e,children:[n&&(0,u.jsx)(i.A,{className:"page-options-header-main-back",onClick:f.A.back,ariaLabel:"back",children:(0,u.jsx)("span",{className:"fidibo-arrow-right-2-outline page-options-header-main-back-icon"})}),t]})}return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"page-options-header "+(j?"hide-mobile":""),children:[t&&(0,u.jsxs)("div",{className:"page-options-header-main "+(k?"hide-mobile":""),children:[O("page-options-header-main-text"),(U||B||L)&&(0,u.jsxs)("div",{className:"page-options-header-main-buttons",children:[(U||B)&&(0,u.jsxs)("div",{className:"page-options-header-main-buttons-section",children:[U&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(s.A,{className:`page-options-header-main-buttons-section-item ${c?"hide-desktop":""} ${F?"active-filter":""}`,type:"first",small:!0,onClick:$,children:[(0,u.jsx)("span",{className:"fidibo-filter-outline page-options-header-main-buttons-section-item-icon"}),(0,u.jsx)("div",{className:"",children:P.filters}),(0,u.jsx)("div",{className:"page-options-header-main-buttons-section-item-dot "+(F?"active":"")})]}),(0,u.jsx)("div",{className:"page-options-header-main-buttons-section-separator"})]}),B&&(0,u.jsxs)(s.A,{className:"page-options-header-main-buttons-section-item",type:"first",small:!0,onClick:E,children:[(0,u.jsx)("span",{className:"page-options-header-main-buttons-section-item-icon fidibo-sort-outline"}),(0,u.jsx)("div",{className:"page-options-header-main-buttons-section-item-text",children:P.sort[d]})]})]}),N&&O("page-options-header-main-text mobile",{isMobile:!0}),L&&(0,u.jsxs)("div",{className:"page-options-header-main-buttons-section-grid",children:[(0,u.jsx)(s.A,{className:"page-options-header-main-buttons-section-grid-item",type:g?"forth":"first",onClick:M(!0),children:(0,u.jsx)("span",{className:"page-options-header-main-buttons-section-grid-item-icon "+(g?"fidibo-menu-fill":"fidibo-menu-outline-1")})}),(0,u.jsx)(s.A,{className:"page-options-header-main-buttons-section-grid-item",type:g?"first":"forth",onClick:M(!1),children:(0,u.jsx)("span",{className:"page-options-header-main-buttons-section-grid-item-icon "+(g?"fidibo-grid-outline":"fidibo-Grid-fill")})})]})]})]}),w||(x&&(null===x||void 0===x?void 0:x.length)>0?(0,u.jsx)(m,{tags:x}):A&&(0,u.jsx)(p,{dontShowBorder:!t,filters:a,setFilters:l,setSearch:y}))]}),R&&(0,u.jsx)(n.Suspense,{fallback:null,children:(0,u.jsx)(b,{sorts:r,close:E,activeSort:d,setSort:h})}),I&&(0,n.cloneElement)(_,{close:$})]})}},75825(e,t,a){a.r(t),a.d(t,{default:()=>te});var n=a(9950),s=a(59779),i=a(50092),o=a(43114),l=a(61379),c=a(4685),r=a(58319),d=a(1156),u=a(86144),p=a(10773);const{toastConstant:h}=(0,u.A)();const g={getChannel:function(e){let{slug:t,dispatch:a,cancel:n}=e;return o.A.get({url:l.A.getChannel(t),cancel:n}).then(e=>(null===a||void 0===a||a({type:c.TY,payload:{res:e,slug:t}}),e))},followChannel:function(e){let{data:{slug:t,podcast_id:a,name:n},dispatch:s,libraryDispatch:i}=e;return o.A.post({url:l.A.followChannel,data:{podcast_id:a}}).then(()=>{s({type:c.wT,payload:{slug:t}}),r.A.addToast({type:d.Cc,message:h.channelFollowed(n)}),i({type:p.lo})})},unFollowChannel:function(e){let{data:{slug:t,podcast_id:a,name:n},dispatch:s,libraryDispatch:i}=e;return o.A.post({url:l.A.unFollowChannel,data:{podcast_id:a}}).then(()=>{s({type:c.EU,payload:{slug:t}}),r.A.addToast({type:d.N5,message:h.channelUnFollowed(n)}),i({type:p.lo})})}};const m=function(e){let{slug:t,isRendering:a}=e;const{state:{results:o},dispatch:l}=(0,n.useContext)(i.d),c=o[t],r=!c,d=(0,n.useRef)(null),{notFound:u}=(0,s.A)({request:function(){return g.getChannel({slug:t,dispatch:l,cancel:e=>d.current=e})},isLoading:r,cancelToken:d,isRendering:a});return{data:c,isLoading:r,notFound:u}};var f=a(72387),b=a(83518),v=a(33119),A=a(72902),x=a(4786),y=a(19317),j=a(85915),k=a(34116),_=a(44414);const w=function(e){let{description:t}=e;const{textConstant:a}
1=(0,u.A)(),[s,i]=(0,n.useState)("69px"),o=(0,n.useRef)(null),l="auto"===s,c="69px"!==s;return(0,k.A)(()=>{(0,y.A)({callback:()=>{o.current&&o.current.scrollHeight<=69&&i("auto")}})},[]),(0,_.jsxs)("div",{className:"channel-page-side-desc",children:[(0,_.jsx)("div",{className:"channel-page-side-desc-text "+(c?"show-all":""),style:{height:s},ref:o,dangerouslySetInnerHTML:{__html:t}}),!l&&(0,_.jsxs)(j.A,{className:"channel-page-side-desc-btn",backgroundColor:(0,x.A)({variable:"--neutral-11-color"}),onClick:function(){i("69px"===s?o.current.scrollHeight+"px":"69px")},children:[(0,_.jsx)("div",{children:c?a.showLess:a.showComplete}),(0,_.jsx)("span",{className:"channel-page-side-desc-btn-icon "+(c?"fidibo-arrow-up-outline":"fidibo-arrow-down-outline")})]})]})};var N=a(14221),S=a(49998),C=a(23852),P=a(93636);const R=function(e){let{name:t,followed:a,slug:s,id:o,uuid:l,owner_name:c}=e;const[r,d]=(0,n.useState)(!1),{dispatch:p}=(0,n.useContext)(i.d),{textConstant:h}=(0,u.A)(),{dispatch:m}=(0,n.useContext)(P.Z);function f(){C.A.openLoginModal().then(()=>{const e=!!a;d(!0),g[e?"unFollowChannel":"followChannel"]({data:{slug:s,podcast_id:o,name:t},dispatch:p,libraryDispatch:m}).then(()=>{var a;a=e,(0,S.RB)(a?"channel_unfollow":"channel_follow",{channel_id:String(l),channel_name:t,author:c})}).finally(()=>{d(!1)})})}return(0,_.jsx)(_.Fragment,{children:a?(0,_.jsxs)(N.A,{className:"channel-page-side-footer-btn",type:"forth",loading:r,onClick:f,children:[(0,_.jsx)("span",{className:"fidibo-follow-done-outline channel-page-side-footer-btn-icon followed"}),(0,_.jsx)("div",{children:h.followed})]}):(0,_.jsxs)(N.A,{className:"channel-page-side-footer-btn",type:"second",loading:r,onClick:f,children:[(0,_.jsx)("span",{className:"fidibo-follow-outline channel-page-side-footer-btn-icon"}),(0,_.jsx)("div",{children:h.follow})]})})};var D=a(52708);const I=function(e){let{title:t,image:a,share_url:s,data:i}=e;
1const[o,l]=(0,n.useState)(!1);function c(){l(e=>!e)}return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(N.A,{className:"channel-page-side-main-buttons-item",onClick:c,children:(0,_.jsx)("span",{className:"fidibo-share-outline channel-page-side-main-buttons-item-icon"})}),o&&(0,_.jsx)(D.default,{close:c,image:a,isSquare:!0,share_url:s,type:"channel",data:i,title:t})]})};var T=a(13078),L=a(63124),B=a(54375),U=a(50631),F=a(75992);const M=function(e){let{children:t,iconClassName:a="fidibo-circle-info-outline",className:n=""}=e;return(0,_.jsxs)("div",{className:`hint ${n}`,children:[(0,_.jsx)("span",{className:`hint-icon ${a}`}),(0,_.jsx)("div",{className:"hint-text",children:t})]})};const E=function(e){let{close:t,productUuid:a,productType:s,image:i,title:o,ownerName:l}=e;const{textConstant:c}=(0,u.A)(),[r,d]=(0,n.useState)(!1),p=(0,n.useRef)(null),[h,g]=(0,n.useState)(!1),[m,f]=(0,n.useState)(null),b=!m;return(0,n.useEffect)(()=>{p.current.addEventListener("focus",function(){g(!0)}),p.current.addEventListener("blur",function(){g(!1)})},[]),(0,_.jsx)(U.A,{className:"donation",close:function(){t()},disableAutoHeight:!0,children:(0,_.jsx)("div",{className:"donation-section",children:(0,_.jsxs)("div",{className:"donation-section-inner",children:[(0,_.jsxs)("div",{className:"donation-section-header",children:[(0,_.jsx)("div",{className:"donation-section-header-title",children:c.donate}),(0,_.jsx)(j.A,{className:"donation-section-header-close",onClick:L.A.back,children:(0,_.jsx)("span",{className:"fidibo-close-outline donation-section-header-close-icon"})})]}),(0,_.jsx)(M,{className:"donation-section-content-details-hint",children:c.donationHint}),(0,_.jsxs)("div",{className:"donation-section-content-details",children:[(0,_.jsx)(A.A,{className:"donation-section-content-details-img",src:i,alt:o,loading:"eager",preload:!0,resize:{desktop:160,mobile:160}}),(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"donation-section-content-details-title",children:o}),(0,_.jsx)("span",{className:"donation-section-content-details-desc",children:l})]})]}),(0,_.jsx)("div",{className:"donation-section-choose",children:c.chooseValue}),(0,_.jsx)(F.A,{className:"donation-input",validation:"price",ref:p,type:"tel",label:c.priceRequired,showClear:!0,disabled:r,focusOnMount:!0,disableSubmit:b,minPrice:5e3,maxPrice:2e6,maxLength:8,onChange:function(e){let{value:t}=e;f(t)}}),(0,_.jsx)("div",{className:"donation-section-items",children:[5e4,1e5,2e5,5e5].map(e=>{return(0,_.jsxs)(j.A,{disable:r,className:`donation-section-items-item ${r?"disable":""} ${+e!==+m||h?"":"active"}`,onClick:(t=e,function(){p.current.onChange({target:{value:t.toString()}})}),backgroundColor:(0,x.A)({variable:"--neutral-11-color"}),children:[(0,_.jsx)("div",{className:"donation-section-items-item-title",children:(0,T.A)(e)}),(0,_.jsx)("div",{className:"donation-section-items-item-desc",children:c.tomanShort})]},e);var t})}),(0,_.jsx)(N.A,{type:"second",className:"donation-section-submit",disable:b,loading:r,onClick:function(){d(!0),B.A.donationPayment({amount:+m,product_uuid:a,type:s}).then(e=>{var t,a,n;const{pay_url:s}=null!==(t=null===e||void 0===e||null===(a=e.data)||void 0===a||null===(n=a.result)||void 0===n?void 0:n[0])&&void 0!==t?t:{};s?window.location.href=s:d(!1)}).catch(()=>{d(!1)})},children:c.pay})]})})})};const $=function(e){let{className:t,productUuid:a,productType:s,image:i,title:o,ownerName:l}=e;const{textConstant:c}=(0,u.A)(),[r,d]=(0,n.useState)(!1);function p(){C.A.openLoginModal().then(()=>{d(e=>!e)})}return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(N.A,{className:t,type:"first",onClick:p,children:[(0,_.jsx)("span",{className:"fidibo-credit-fill donation-btn-icon"}),(0,_.jsx)("div",{children:c.donate})]}),r&&(0,_.jsx)(E,{close:p,productUuid:a,productType:s,image:i,title:o,ownerName:l})]})};const O=function(e){let{id:t,uuid:a,slug:n,image:s,title:i,language:o,description:l,share_url:c,follower_count:r,listener_count:d,is_followed:p,owner_name:h,hasDonation:g=!1}=e;const{textConstant:m}=(0,u.A)();return(0,_.jsxs)("div",{className:"channel-page-side",children:[(0,_.jsx)("div",{className:"channel-page-side-main",children:(0,_.jsx)(A.A,{className:"channel-page-side-main-img",src:s,alt:i,loading:"eager",preload:!0,resize:{desktop:160,mobile:160}})}),(0,_.jsx)("div",{className:"channel-page-side-main-buttons",children:(0,_.jsx)(I,{slug:n,image:s,title:i,share_url:c,data:{uuid:a,title:i}})}),(0,_.jsx)("h1",{className:"channel-page-side-name",children:i}),(0,_.jsxs)("div",{className:"channel-page-side-detail",children:[h&&(0,_.jsx)("div",{className:"channel-page-side-detail-podcaster",children:h}),(0,_.jsxs)(_.Fragment,{children:[h&&(0,_.jsx)("div",{className:"channel-page-side-detail-separator"}),(0,_.jsx)("div",{className:"channel-page-side-detail-lang",children:"en"===o?m.english:m.farsi})]})]}),(0,_.jsx)(w,{description:l}),(0,_.jsxs)("div",{className:"channel-page-side-footer",children:[(0,_.jsxs)("div",{className:"channel-page-side-footer-detail",children:[(0,_.jsxs)("div",{className:"channel-page-side-footer-detail-section",children:[(0,_.jsx)("span",{className:"fidibo-circle-play2 channel-page-side-footer-detail-section-icon"}),(0,_.jsx)("div",{children:(0,T.A)(d)}),(0,_.jsx)("div",{children:m.listened})]}),(0,_.jsx)("div",{className:"channel-page-side-footer-detail-separator"}),(0,_.jsxs)("div",{className:"channel-page-side-footer-detail-section second",children:[(0,_.jsx)("span",{className:"fidibo-follow-done-outline channel-page-side-footer-detail-section-icon"}),(0,_.jsx)("div",{children:(0,T.A)(r)}
1),(0,_.jsx)("div",{children:m.followers})]})]}),(0,_.jsxs)("div",{className:"channel-page-side-footer-btns",children:[(0,_.jsx)(R,{followed:p,slug:n,id:t,name:i,owner_name:h,uuid:a}),!!g&&(0,_.jsx)($,{className:"channel-page-side-footer-btn",productUuid:a,productType:"podcast",image:s,title:i,ownerName:h})]})]})]})};var W=a(35565),G=a(63285),H=a(83892),X=a(33121),Q=a(73288),q=a(55180),z=a(2713),Y=a(21156),Z=a(18672);const K=function(e){let{data:t,uuid:a,title:s,owner_name:i,user_podcast:o}=e;const l=(0,n.useRef)(!1);(0,n.useEffect)(()=>{!l.current&&t&&(l.current=!0,(0,S.RB)("channel_view",{comes_from:L.A.comesFrom(),channel_id:a,channel_name:s,author:i,following_status:null===o||void 0===o?void 0:o.is_followed}))},[t])};var V=a(14873),J=a(94069),ee=a(41882);const te=function(e){let{route:{isRendering:t,params:{slug:a}}}=e;const{textConstant:s}=(0,u.A)(),i=decodeURIComponent(a),{data:o,isLoading:l,notFound:c}=m({slug:i,isRendering:t}),{id:r,episode_count:d,share_url:p,title:h,description:g,cover:A,language:x,owner_name:y,listener_count:j,follower_count:k,user_podcast:w,uuid:N,has_donation:S}=o||{},C=null!==h&&void 0!==h&&h.includes("\u067e\u0627\u062f\u06a9\u0633\u062a")?h:`\u067e\u0627\u062f\u06a9\u0633\u062a ${h}`,P=`${C} | \u0645\u0639\u0631\u0641\u06cc \u0648 \u062f\u0627\u0646\u0644\u0648\u062f ${C}`,R=(null===h||void 0===h?void 0:h.trim())||"",D=`\u0645\u062c\u0645\u0648\u0639\u0647\u200c\u0627\u06cc \u0628\u0632\u0631\u06af \u0627\u0632 \u067e\u0627\u062f\u06a9\u0633\u062a\u200c\u0647\u0627\u06cc ${R.startsWith("\u067e\u0627\u062f\u06a9\u0633\u062a")?R.replace(/^\u067e\u0627\u062f\u06a9\u0633\u062a\s*/u,""):R} \u0628\u0627 \u0635\u062f\u0647\u0627 \u0627\u067e\u06cc\u0632\u0648\u062f \u0645\u062a\u0646\u0648\u0639 \u0648 \u062c\u0630\u0627\u0628 | \u0627\u0632 \u0645\u0648\u0636\u0648\u0639\u0627\u062a \u0622\u0645\u0648\u0632\u0634\u06cc \u0648 \u0633\u0631\u06af\u0631\u0645\u06cc \u06af\u0631\u0641\u062a\u0647 \u062a\u0627 \u062f\u0627\u0633\u062a\u0627\u0646\u200c\u0647\u0627 \u0648 \u06af\u0641\u062a\u06af\u0648\u0647\u0627\u06cc \u062c\u0630\u0627\u0628`,{image:I}=A||{},{is_followed:L}=w||{},B=[{action:{web_url:ee.A.podcasts},name:s.podcasts,position:0},{name:h,position:1}],[U,F]=(0,n.useState)(()=>(0,G.A)().sort||Q.A[0]),{data:M,isLoading:E,getMore:$}=(0,W.A)({channelSlug:i,sort:U,isRendering:t});return K({data:o,uuid:N,title:h,owner_name:y,user_podcast:w}),(0,Y.A)({isRendering:t,sort:U}),(0,z.A)({getMore:$,isRendering:t}),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(V.A,{isRendering:t,title:P,description:D,image:I}),(0,_.jsx)(q.A,{isRendering:t,isLoading:l,title:h}),c?(0,_.jsx)(Z.A,{isRendering:t}):l?(0,_.jsx)(f.A,{haveBg:!0}):(0,_.jsx)("div",{className:"channel-page",children:(0,_.jsxs)("div",{className:"channel-page-content",children:[(0,_.jsx)(v.A,{breadcrumb:B}),(0,_.jsx)("div",{className:"channel-page-content-first",children:(0,_.jsx)(O,{id:r,uuid:N,slug:i,image:I,title:C,language:x,owner_name:y,description:g,listener_count:j,follower_count:k,is_followed:L,share_url:p,hasDonation:S})}),(0,_.jsxs)("div",{className:"channel-page-content-second",children:[(0,_.jsx)(J.A,{title:`${(0,T.A)(d)} ${s.episode}`,sorts:Q.A,sort:U,setSort:F,showTitleOnMobile:!0}),M.length?(0,_.jsx)(H.A,{episodes:M,isPage:!0}):!E&&(0,_.jsx)("div",{children:s.noItemFound}),(0,_.jsx)(X.A,{isLoading:E})]})]})}),(0,_.jsx)(b.A,{})]})}}}]);
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.