1"use strict";(globalThis.webpackChunkfidibo_web=globalThis.webpackChunkfidibo_web||[]).push([[8],{23226(e,s,t){t.d(s,{A:()=>o});const o={published:"published",non_purchasable:"non_purchasable"}},4493(e,s,t){t.d(s,{A:()=>i});var o=t(9950),n=t(44414);const i=function(e){let{className:s}=e;const t=(0,o.useId)(),i=(0,o.useId)(),a=(0,o.useId)();return(0,n.jsxs)("svg",{className:s,width:"209",height:"229",viewBox:"0 0 209 229",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("rect",{width:"140.681",height:"193.258",rx:"4",transform:"matrix(0.969322 -0.245796 0.243245 0.969965 0.285156 39.3538)",fill:`url(#${i})`}),(0,n.jsx)("g",{filter:`url(#${t})`,children:(0,n.jsx)("rect",{width:"146.949",height:"201.869",rx:"4",transform:"matrix(0.990993 -0.133913 0.131306 0.991342 19.6817 20.4381)",fill:`url(#${a})`})}),(0,n.jsx)("rect",{width:"161.646",height:"222.058",rx:"4",transform:"matrix(1 0 -0.00263048 0.999997 46.5851 0.999985)",fill:"var(--neutral-4-color)"}),(0,n.jsxs)("defs",{children:[(0,n.jsxs)("filter",{id:t,x:"16.1718",y:"1.25893",width:"179.152",height:"226.801",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[(0,n.jsx)("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),(0,n.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,n.jsx)("feOffset",{dy:"4"}),(0,n.jsx)("feGaussianBlur",{stdDeviation:"2"}),(0,n.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,n.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_0_6"}),(0,n.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_0_6",result:"shape"})]}),(0,n.jsxs)("linearGradient",{id:i,x1:"7.5271",y1:"3.62446",x2:"6.28188",y2:"174.099",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{"stop-color":"var(--neutral-4-color)"}),(0,n.jsx)("stop",{offset:"1","stop-color":"var(--background-color)"})]}),(0,n.jsxs)("linearGradient",{id:a,x1:"9.88512",y1:"1.81046",x2:"5.08418",y2:"197.876",gradientUnits:"userSpaceOnUse",children:[(0,n.jsx)("stop",{"stop-color":"var(--neutral-4-color)"}),(0,n.jsx)("stop",{offset:"1","stop-color":"var(--background-color)"})]})]})]})}},74747(e,s,t){t.d(s,{A:()=>i});var o=t(51687),n=t(44414);const i=function(e){var s,t,i;let{content:a,className:l="",IconSideElements:r,showBadges:c=!0}=e;const{subtitle:d,authors:u,narrator:h,narrators:p,translator:x,translators:m}=a||{},b=(null===u||void 0===u||null===(s=u[0])||void 0===s?void 0:s.full_name)||d,f=h||(null===p||void 0===p||null===(t=p[0])||void 0===t?void 0:t.full_name),g=x||(null===m||void 0===m||null===(i=m[0])||void 0===i?void 0:i.full_name);if(b||f||g)return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:`book-author-detail ${l}`,children:[b&&(0,n.jsx)("div",{children:b}),b&&(f||g)&&(0,n.jsx)("div",{className:"book-author-detail-separator"}),f?(0,n.jsx)("div",{className:"book-author-detail-second",children:f}):g?(0,n.jsx)("div",{className:"book-author-detail-second",children:g}):""]}),c&&(0,n.jsx)(n.Fragment,{children:r?(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)(o.A,{content:a,iconType:!0,className:"book-author-detail-badges"}),r]}):(0,n.jsx)(o.A,{content:a,iconType:!0,className:"book-author-detail-badges"})})]})}},74564(e,s,t){t.d(s,{A:()=>l});var o=t(37018),n=t(25917),i=t(86144),a=t(44414);const l=function(e){let{content:s,className:t,index:l}=e;const{content_types:r,content_type:c,format:d}=s||{},u=void 0!==l&&(null===r||void 0===r?void 0:r.length)>0?r[l]:c,h=(0,o.A)(u),p=u===n.A.magazine,x=u===n.A.micro_audiobook,m=u===n.A.microbook,{textConstant:b}=(0,i.A)();return(0,a.jsx)("div",{className:t,children:x?"":m?b.microBook:p?b.magazines:h?b.audiobook:b.ebook})}},52149(e,s,t){t.d(s,{A:()=>G});var o=t(23226),n=t(15059),i=t(14221),a=t(86144),l=t(49998),r=t(9950),c=t(4240),d=t(80500),u=t(44414);const h=function(e){let{content:s}=e;const{uuid:t,slug:o,badges:{inform_me:n}}=s||{},[h,p]=(0,r.useState)(!1),{textConstant:x}=(0,a.A)(),{dispatch:m}=(0,r.useContext)(c.H);return(0,u.jsxs)(i.A,{className:"book-buy-box-main-btn",type:n?"eighth":"sixth",loading:h,onClick:function(){n||(p(!0),d.A.addBookToInformMe({bookUUID:t,bookSlug:o,dispatch:m}).then(()=>p(!1)).catch(()=>p(!1)),(0,l.RB)("item_notify_me_when_available",{item_id:t}))},children:[(0,u.jsx)("span",{className:"fidibo-bell-outline book-buy-box-main-btn-icon"}),(0,u.jsx)("div",{children:n?x.inform_me:x.alertMe})]})};var p=t(41882);const x=function(e){let{isLoading:s,content:t}=e;const{textConstant:o}=(0,a.A)();return(0,u.jsxs)(i.A,{className:"book-buy-box-main-btn",type:"forth",loading:s,to:p.A.basket,onClick:function(){(0,l.RB)("already_in_basket",{item_id:t.uuid})},children:[(0,u.jsx)("span",{className:"fidibo-basket-outline book-buy-box-main-btn-icon basket"}),o.showInBasket]})};var m=t(98384),b=t(33533),f=t(89250),g=t(63124),y=t(13078),j=t(25174),k=t(76089);
1const v=function(e){let{content:s,showPrice:t,togglePurchase:o,serviceName:n}=e;const{price:c,price_usd:d,uuid:h,title:p,authors:x,narrators:v,translators:A,publishers:_,content_type:N,share_url:C,breadcrumb:w,cover:S,campaign:P,badges:B}=s||{},{discount_amount:I,discounted_price:L,discounted_usd_price:U}=P||{},{favorite:F}=B||{},{image:T}=S||{},{dispatch:G}=(0,r.useContext)(f.k),{textConstant:M}=(0,a.A)(),[X,O]=(0,r.useState)(!1),{currency:$}=(0,j.A)();return(0,u.jsx)(i.A,{className:"book-buy-box-main-btn",type:"second",loading:X,onClick:function(){O(!0),b.A.addBasket({data:{service_name:null!==n&&void 0!==n?n:m.A.content,product_id:h,currency:$},dispatch:G}).finally(()=>{var e;O(!1),(0,l.RB)("add_to_cart",{comes_from:g.A.comesFrom(),item_id:h,item_name:p,...(0,l.rX)(x,"author","uuid","id"),...(0,l.rX)(x,"author","full_name","name"),...(0,l.rX)(v,"narrator","uuid","id"),...(0,l.rX)(v,"narrator","full_name","name"),...(0,l.rX)(A,"translator","uuid","id"),...(0,l.rX)(A,"translator","full_name","name"),...(0,l.rX)(_,"publisher","uuid","id"),...(0,l.rX)(_,"publisher","name","name"),content_type:N,book_url:C,...(0,l.Ru)(w),Image_url:T,main_price:c,discount_percent:null!==I&&void 0!==I?I:0,payable_price:L||c,in_wishlist:!!F,is_gift:!1,quantity:1,ecommerce:{currency:"\u064eUSD",value:L||c,items:[{item_id:h,item_name:p,item_variant:N,...(0,l.Ru)(w,!0,e=>`item_category${0===e?"":e+1}`),quantity:1,price:L||c,discount:null!==(e=c-L)&&void 0!==e?e:0}]}}),o(e=>!e)})},children:t?M.buyPrice($===k.A.rial?M.toman:M.usd,$===k.A.rial?(0,y.A)(L||0===L?L:c):U||0===U?U:d):M.buy})};var A=t(37018),_=t(93),N=t(32383),C=t(870);const w=function(e){let{content:s,onClick:t,listeningType:o,isListening:n,isPlaying:l,togglePausePlay:r}=e;const{content_type:c}=s||{},{textConstant:d}=(0,a.A)(),h=(0,A.A)(c),{play:p,isLoading:x}=(0,_.A)({book:s,getSample:!0});return n&&o===N.A.sample?(0,u.jsx)(i.A,{className:"book-buy-box-footer-second",type:"first",onClick:r,children:(0,u.jsx)(C.A,{pause:!l})}):(0,u.jsxs)(i.A,{className:"book-buy-box-footer-second",loading:x,type:"first",onClick:function(){p(),null===t||void 0===t||t()},children:[h&&(0,u.jsx)("span",{className:"fidibo-circle-play2 book-buy-box-footer-second-icon"}),d.example]})};const S=function(e){let{content:s,active_plan:t,isListening:o,listeningType:n,isPlaying:l,togglePausePlay:r}=e;const{content_type:c}=s||{},{textConstant:d}=(0,a.A)(),h=(0,A.A)(c),{play:p,isLoading:x,layout:m}=(0,_.A)({book:s});return(0,u.jsxs)(u.Fragment,{children:[o&&n===N.A.audiobook?(0,u.jsx)(i.A,{className:"book-buy-box-footer-first",type:t?"third":"fifth",onClick:r,children:(0,u.jsx)(C.A,{pause:!l,className:"book-buy-box-footer-first-plus"})}):(0,u.jsx)(i.A,{className:"book-buy-box-footer-first",loading:x,type:t?"third":"fifth",onClick:function(){p()},children:d[t?h?"listenPlus":"readPlus":"borrow"]}),m]})};var P=t(25917),B=t(91339),I=t(18789);const L=function(e){let{content:s}=e;const{id:t,uuid:o,cover:n,title:l,channel:r,hls_url:c,total_progress:d,content_type:h,format:p}=s||{},x=h===P.A.episode,{textConstant:m}=(0,a.A)(),b=(0,A.A)(h),{slug:f}=r||{},g=x&&{id:t,uuid:o,playlist_url:c,title:l,cover:n},y=x&&{slug:f},{play:j,isLoading:k,layout:v}=(0,_.A)({book:s,isPodcast:x,episode:g,podcast:y,initialProgress:d});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.A,{className:"book-buy-box-main-btn",type:"second",loading:k,onClick:function(){j(),(0,B.A)({content:s,isSample:!1})},children:m[b?"listen":I.QX&&"epub"===p?"readIn":I.QX?"readInSoon":"readInApp"]}),v]})};var U=t(24801),F=t(97074),T=t(75027);const G=function(e){let{showStickyBtnMobile:s,content:t,togglePurchase:a,hideExampleBtn:l,serviceName:c}=e;const{uuid:d,status:p,price:m,badges:b}=t||{},f=(0,r.useRef)(),[g,y]=(0,r.useState)(!1),{isLoading:j,isInBasket:k}=(0,n.A)({checkInBasket:d}),{in_user_plan:A,purchased:_,subscription:P,user_subscription:I}=b||{},{is_active:G}=(0,T.A)(),M=p===o.A.published,X=_||!m,O=X,$=!M&&!A&&!X,R=M&&!X,D=M&&P&&!X||!M&&G&&A&&!X,z=!l&&!I&&M&&!X&&!A,{isListening:E,isPlaying:q,type:Q,togglePausePlay:Z}=(0,F.A)({uuid:d}),H=V({isSticky:!0}),J=K({showPrice:!0,isSticky:!0});function K(e){let{showPrice:s,isSticky:o}=e;return!E||(!_&&m||Q===N.A.sample)&&Q!==N.A.episode?j||k?(0,u.jsx)(x,{isLoading:j,content:t}):O?(0,u.jsx)(L,{content:t}
1):R?(0,u.jsx)(v,{content:t,showPrice:s,togglePurchase:a,serviceName:c}):$?(0,u.jsx)(h,{content:t}):void 0:o?null:(0,u.jsx)(i.A,{className:"book-buy-box-main-btn",onClick:Z,children:(0,u.jsx)(C.A,{pause:!q})})}function V(){let{isSticky:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(D&&(!e||!E))return(0,u.jsx)(S,{content:t,active_plan:G,isListening:E,isPlaying:q,listeningType:Q,togglePausePlay:Z})}return(0,r.useEffect)(()=>{if(s){function e(e){let{scrollTop:s}=e;y(f.current&&s>=f.current.offsetTop)}return(0,U.A)({callback:e})}},[]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{ref:f,children:[K({showPrice:!1,isSticky:!1}),(D||z)&&(0,u.jsxs)("div",{className:"book-buy-box-footer",children:[V(),z&&(0,u.jsx)(w,{content:t,isListening:E,isPlaying:q,listeningType:Q,onClick:(0,B.A)({content:t,isSample:!0}),togglePausePlay:Z})]})]}),(H||J)&&(0,u.jsxs)("div",{className:"book-buy-box-sticky "+(g?"":"hide"),children:[H,J]})]})}},42358(e,s,t){t.d(s,{A:()=>u});var o=t(50631),n=t(86144),i=t(63124),a=t(85915),l=t(14221),r=t(41882),c=t(66299),d=t(44414);const u=function(e){let{togglePurchase:s}=e;const{textConstant:t}=(0,n.A)();return(0,d.jsx)(o.A,{className:"book-purchase book-purchase",close:s,children:(0,d.jsxs)("div",{className:"book-purchase-inner",children:[(0,d.jsxs)("div",{className:"book-purchase-header",children:[(0,d.jsx)("div",{className:"book-purchase-header-title",children:(0,d.jsx)("span",{className:"fidibo-basket-outline"})}),(0,d.jsx)(a.A,{className:"book-purchase-header-close",onClick:i.A.back,children:(0,d.jsx)("span",{className:"fidibo-close-outline book-purchase-header-close-icon"})})]}),(0,d.jsx)("p",{className:"book-purchase-inner-desc",children:t.addedToBasket}),(0,d.jsx)(l.A,{className:"book-purchase-inner-btn",type:"second",onClick:()=>{(0,c.A)(!1),s(e=>!e),i.A.replaceState({url:r.A.basket})},children:t.showInBasket})]})})}},70196(e,s,t){t.d(s,{A:()=>a});t(25917),t(86144);var o=t(51687),n=t(74564),i=t(44414);const a=function(e){let{showLabel:s,content:t}=e;const{content_types:a}=t||{};return null!==a&&void 0!==a&&a.length?(0,i.jsx)("div",{className:"hl-clusters-full-item-types",children:a.map((e,a)=>(0,i.jsxs)("div",{className:"hl-clusters-full-item-type",children:[a>0&&(0,i.jsx)("div",{className:"hl-clusters-full-item-types-separator"}),(0,i.jsx)(o.A,{className:"hl-clusters-full-item-type-badge",content:t,iconType:!0,index:a}),s&&(0,i.jsx)(n.A,{className:"hl-clusters-full-item-type-label",content:t,index:a})]},e))}):null}},36014(e,s,t){t.d(s,{A:()=>d});var o=t(13078),n=t(72902),i=t(37018),a=t(4493),l=t(9950),r=t(44414);const c=function(e){let{className:s}=e;const t=(0,l.useId)(),o=(0,l.useId)(),n=(0,l.useId)();return(0,r.jsxs)("svg",{className:s,viewBox:"0 0 117 112",fill:"none",children:[(0,r.jsx)("path",{d:"M2.97298 31.0537C2.43562 28.9109 3.73592 26.7336 5.87729 26.1906L71.6821 9.50415C73.8235 8.96115 75.995 10.258 76.5324 12.4008L92.9892 78.0238C93.5265 80.1666 92.2262 82.3438 90.0849 82.8868L24.28 99.5733C22.1387 100.116 19.9671 98.8194 19.4298 96.6767L2.97298 31.0537Z",fill:`url(#${o})`}),(0,r.jsx)("g",{filter:`url(#${t})`,children:(0,r.jsx)("path",{d:"M11.5238 22.8618C11.2337 20.6718 12.7733 18.6567 14.9625 18.3608L87.6685 8.53606C89.8578 8.24023 91.8677 9.77577 92.1577 11.9658L101.791 84.6974C102.081 86.8874 100.542 88.9026 98.3525 89.1984L25.6464 99.0232C23.4572 99.319 21.4473 97.7835 21.1572 95.5935L11.5238 22.8618Z",fill:`url(#${n})`})}),(0,r.jsxs)("defs",{children:[(0,r.jsxs)("filter",{id:t,x:"0.48877",y:"4.5",width:"106.337",height:"106.561",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,r.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,r.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,r.jsx)("feMorphology",{radius:"4",operator:"erode",in:"SourceAlpha",result:"effect1_dropShadow_65466_141363"}),(0,r.jsx)("feOffset",{dx:"-3",dy:"4"}),(0,r.jsx)("feGaussianBlur",{stdDeviation:"6"}),(0,r.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,r.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0"}
1),(0,r.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_65466_141363"}),(0,r.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_65466_141363",result:"shape"})]}),(0,r.jsxs)("linearGradient",{id:o,x1:"6.28091",y1:"27.5521",x2:"22.3419",y2:"92.3296",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"var(--neutral-4-color)"}),(0,r.jsx)("stop",{offset:"1",stopColor:"var(--background-color)"})]}),(0,r.jsxs)("linearGradient",{id:n,x1:"16.5185",y1:"18.8869",x2:"25.7083",y2:"97.417",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"var(--neutral-4-color)"}),(0,r.jsx)("stop",{offset:"1",stopColor:"var(--background-color)"})]})]})]})};const d=function(e){let{content:s}=e;const{content_types:t,book_count:l,cover:d,title:u,image:h}=s||{},p=(null===d||void 0===d?void 0:d.image)||h,x=1===(null===t||void 0===t?void 0:t.length)&&(0,i.A)(t[0]),m=x?c:a.A,b=x?"audio-book":"ebook";return(0,r.jsxs)("div",{className:`hl-clusters-full-item-image ${b}`,children:[(0,r.jsxs)("div",{className:"hl-clusters-bundle-template",children:[(0,r.jsx)(m,{className:"hl-clusters-bundle-template-svg"}),(0,r.jsx)(n.A,{className:"hl-clusters-bundle-template-img",src:p||"undefined",alt:u,resize:{mobile:80,desktop:110}})]}),!!l&&(0,r.jsx)("div",{className:"hl-clusters-full-item-count",children:(0,o.A)(l)})]})}}}]);
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.