1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3897,2731,5110,9022,422,2840,9236,8872,8905,6034,6986,676,2294,1961,5771,1764,1842,5287,6206],{15856:function(e,t,o){"use strict";o.d(t,{q:function(){return d}});var n=o(31549),r=o(21957),s=o(46897),l=o(30696),i=o(49774),a=o.n(i);let c=e=>{let{title:t,text:o}=e;return(0,n.jsxs)("div",{className:a().root,children:[(0,n.jsx)(l.X,{type:"heading-2",element:"h1",children:t}),(0,n.jsx)(s.u,{element:"p",type:"body-1",children:o})]})},d=()=>{let{t:e}=(0,r.$G)("global");return(0,n.jsx)(c,{title:e("global.selling-closed.title"),text:e("global.selling-closed.text")})}},75514:function(e,t,o){"use strict";o.d(t,{m:function(){return i}});var n=o(14698),r=o.n(n),s=o(23798),l=o(23565);let i=()=>{let{setUser:e}=(0,l.b)();return async()=>{let{data:{customer:t}}=await (0,s.Oe)("/adonis/v1/session")();r()(t)||null==e||e({...t})}}},22902:function(e,t,o){"use strict";o.d(t,{p:function(){return N}});var n=o(31549),r=o(76011),s=o(70351),l=o.n(s),i=o(21957),a=o(10155),c=o(98758),d=o(92731),u=o(23565),y=o(31605),p=o(96400),h=o(35687),m=o(79340),_=o(20693),x=o(85275),b=o(43394),g=o(54244),j=o(77587),f=o.n(j);let v=l().bind(f()),k=()=>{let{t:e}=(0,i.$G)("header"),{featureFlags:{wishListLink:t}}=(0,u.b)(),o=t?[{Icon:p.HeartIcon,children:e("user-account.menu.li-6",{ns:"header"}),link:{route:"account/wishlist"}}]:[];return(0,n.jsx)(g.k,{className:v("root"),items:[{Icon:y.BooksIcon,children:e("user-account.menu.li-1",{ns:"header"}),link:{route:"account/sales"},activeRoutes:["account/sales"]},{Icon:_.UserIcon,children:e("user-account.menu.li-2",{ns:"header"}),link:{route:"account/details"}},{Icon:b.WatchdogIcon,children:e("user-account.menu.li-3",{ns:"header"}),link:{route:"account/watchdog"}},...o,{Icon:x.WalletIcon,children:e("user-account.menu.li-4",{ns:"header"}),link:{route:"account/wallet"},activeRoutes:["account/wallet","account/wallet/sold-books","account/wallet/payments"]},{Icon:m.UnboxIcon,children:e("user-account.menu.li-5",{ns:"header"}),link:{route:"account/orders"}},{Icon:h.RatingReviewIcon,children:e("user-account.menu.li-7",{ns:"header"}),link:{route:"account/reviews"}}]})};var C=o(6534),I=o.n(C);let w=l().bind(I()),N=e=>{let{children:t,canonicalUrl:o,metaRobotsConfiguration:s}=e,{t:l}=(0,i.$G)("error");return(0,n.jsx)(r.S,{fallback:(0,n.jsx)(d.ErrorPage,{statusCode:c.StatusCodes.ServerError,metaRobotsConfiguration:c.MetaRobotsConfiguration.NoIndexFollow,errorText:l("error.page.item-not-available")}),children:(0,n.jsxs)(a.A,{mainClassName:w("root"),metaRobotsConfiguration:s,canonicalUrl:o,children:[(0,n.jsx)(k,{}),t]})})}},91699:function(e,t,o){"use strict";o.d(t,{N:function(){return m}});var n=o(31549),r=o(70351),s=o.n(r),l=o(44194),i=o(9022),a=o(46034),c=o(99491);let d=e=>{let{label:t,description:o,error:n,help:r}=e,s=(0,l.useId)(),i=(0,l.useId)(),a=(0,l.useId)(),c=(0,l.useId)(),d=!!("string"==typeof n&&n),u=!!r,y=[o?i:void 0,u?a:void 0].filter(Boolean).join(" ")||void 0;return{labelId:s,descriptionId:i,helpId:a,errorId:c,displayError:d,displayHelp:u,labeledBy:t?s:void 0,describedBy:y,errorMessage:d?c:void 0}};var u=o(72957),y=o.n(u);let p=s().bind(y()),h=e=>{let{value:t,error:o,hasValidation:r,endAdornment:s}=e;return s||(o?{icon:(0,n.jsx)(i.AlertIcon,{color:"input-icon-error"})}:r&&t&&!o?{icon:(0,n.jsx)(a.CheckCircleIcon,{color:"input-icon-valid"})}:void 0)},m=e=>{let{label:t,description:o,help:r,error:s,value:i,hasValidation:a,children:u,className:y}=e,{labelId:m,descriptionId:_,helpId:x,errorId:b,displayError:g,displayHelp:j,labeledBy:f,describedBy:v,errorMessage:k}=d({label:t,description:o,error:s,help:r}),C=u.props.id,I=h({value:i,error:!!s,hasValidation:a,endAdornment:u.props.endAdornment});return(0,n.jsxs)("div",{className:p(y),children:[(0,n.jsxs)("div",{className:p("top-labels"),children:[void 0!==t?(0,n.jsx)(c.T.Body,{type:"body-1",asChild:!0,color:"typo-primary-gray",children:(0,n.jsx)("label",{id:m,htmlFor:C,children:t})}):void 0,void 0!==o?(0,n.jsx)(c.T.Body,{type:"body-2",asChild:!0,color:"typo-secondary-gray",className:p("description"),children:(0,n.jsx)("div",{id:_,children:o})}):void 0]}),(0,l.cloneElement)(u,{error:!!s,"aria-labelledby":f,"aria-describedby":v,"aria-errormessage":k,endAdornment:I}),(0,n.jsxs)("div",{className:p("bottom-labels"),children:[g?(0,n.jsx)(c.T.Body,{type:"body-3",asChild:!0,color:"typo-alert",children:(0,n.jsx)("div",{id:b,children:s})}):void 0,j?(0,n.jsx)(c.T.Body,{type:"body-3",asChild:!0,color:"typo-tertiary-gray",children:(0,n.jsx)("div",{id:x,children:r})}):void 0]})]})}},5110:function(e,t,o){"use strict";o.r(t),o.d(t,{AirplaneUpIcon:function(){return s}});var n=o(31549),r=o(68329);let s=e=>(0,n.jsx)(r.Icon,{iconId:"AirplaneUpIcon",...e})},60422:function(e,t,o){"use strict";o.r(t),o.d(t,{AlertIcon:function(){return s}});var n=o(31549),r=o(68329);let s=e=>(0,n.jsx)(r.Icon,{iconId:"AlertIcon",...e})},9022:function(e,t,o){"use strict";o.r(t),o.d(t,{AlertIcon:function(){return n.AlertIcon}});var n=o(60422)},49236:function(e,t,o){"use strict";o.r(t),o.d(t,{BankIcon:function(){return s}});var n=o(31549),r=o(68329);let s=e=>(0,n.jsx)(r.Icon,{iconId:"BankIcon",...e})},52840:function(e,t,o){"use strict";o.r(t),o.d(t,{BankIcon:function(){return n.BankIcon}});var n=o(49236)},78905:function(e,t,o){"use strict";o.r(t),o.d(t,{CalendarClockIcon:function(){return s}});var n=o(31549),r=o(68329);let s=e=>(0,n.jsx)(r.Icon,{iconId:"CalendarClockIcon",...e})},88872:function(e,t,o){"use strict";o.r(t),o.d(t,{CalendarClockIcon:function(){return n.CalendarClockIcon}});var n=o(78905)},36986:function(e,t,o){"use strict";o.r(t),o.d(t,{CheckCircleIcon:function(){return s}});var n=o(31549),r=o(68329);let s=e=>(0,n.jsx)(r.Icon,{iconId:"CheckCircleIcon",...e})},46034:function(e,t,o){"use strict";o.r(t),o.d(t,{CheckCircleIcon:function(){return n.CheckCircleIcon}});var n=o(36986)},92294:function(e,t,o){"use strict";o.r(t),o.d(t,{Checkmark1Icon:function(){return s}});var n=o(31549),r=o(68329);let s=e=>(0,n.jsx)(r.Icon,{iconId:"Checkmark1Icon",...e})},10676:function(e,t,o){"use strict";o.r(t),o.d(t,{Checkmark1Icon:function(){return n.Checkmark1Icon}});var n=o(92294)},1961:function(e,t,o){"use strict";o.r(t),o.d(t,{CreditCardAddIcon:function(){return s}});var n=o(31549),r=o(68329);let s=e=>(0,n.jsx)(r.Icon,{iconId:"CreditCardAddIcon",...e})},31764:function(e,t,o){"use strict";o.r(t),o.d(t,{LayoutThirdIcon:function(){return s}});var n=o(31549),r=o(68329);let s=e=>(0,n.jsx)(r.Icon,{iconId:"LayoutThirdIcon",...e})},74196:function(e,t,o){"use strict";o.r(t),o.d(t,{LayoutThirdIcon:function(){return n.LayoutThirdIcon}});var n=o(31764)},81842:function(e,t,o){"use strict";o.r(t),o.d(t,{MoneyBagIcon:function(){return s}});var n=o(31549),r=o(68329);let s=e=>(0,n.jsx)(r.Icon,{iconId:"MoneyBagIcon",...e})},76206:function(e,t,o){"use strict";o.r(t),o.d(t,{PaperPlaneTopRightIcon:function(){return s}});var n=o(31549),r=o(68329);let s=e=>(0,n.jsx)(r.Icon,{iconId:"PaperPlaneTopRightIcon",...e})},25287:function(e,t,o){"use strict";o.r(t),o.d(t,{PaperPlaneTopRightIcon:function(){return n.PaperPlaneTopRightIcon}});var n=o(76206)},35911:function(e,t,o){"use strict";o.d(t,{O:function(){return c}});var n=o(31549),r=o(70351),s=o.n(r),l=o(64674),i=o.n(l);let a=s().bind(i()),c=e=>{let{type:t,width:o,height:r,className:s,children:l}=e;return(0,n.jsx)("span",{className:a("root",{rootRounded:"rounded"===t,rootCircular:"circular"===t,rootFitWidth:void 0===o,rootAutoHeight:void 0===r,rootHasChildren:void 0!==l},s),style:{width:"number"==typeof o?"".concat(o,"px"):o,height:"number"==typeof r?"".concat(r,"px"):r},children:l})}},92731:function(e,t,o){"use strict";o.r(t),o.d(t,{ErrorPage:function(){return c}});var n=o(31549),r=o(21957),s=o(44194),l=o(10155),i=o(45798),a=o(98758);let c=e=>{let{statusCode:t,metaRobotsConfiguration:o,errorText:c,originalErrorMessage:d}=e,{t:u}=(0,r.$G)("error"),y=(0,s.useMemo)(()=>({[a.StatusCodes.BadRequest]:"Bad request",[a.StatusCodes.Forbidden]:"Forbidden",[a.StatusCodes.NotFound]:u("error.page.title.404"),[a.StatusCodes.ServerError]:u("error.page.title.500")})[t],[u,t]),p=null!=c?c:y;return(0,n.jsx)(l.A,{metaRobotsConfiguration:o,children:(0,n.jsxs)("div",{className:"container-main",children:[(0,n.jsxs)("h1",{children:[t,p?(0,n.jsxs)(n.Fragment,{children:[" â ",p]}):null]}),(0,n.jsx)("br",{}),(0,n.jsx)(i.r,{route:"index",children:u("error.page.link")}),(0,n.jsx)("p",{children:(0,n.jsx)("i",{children:d})})]})})}},93897:function(e,t,o){"use strict";o.d(t,{d:function(){return t9}});var n=o(31549),r=o(42053),s=o(46950),l=o(15856),i=o(98758),a=o(22902),c=o(70351),d=o.n(c),u=o(89396),y=o(99783),p=o(21957),h=o(74196),m=o(84467),_=o(54244),x=o(99491),b=o(53005),g=o.n(b);let j=d().bind(g()),f=()=>{let{t:e}=(0,p.$G)("user-account");return(0,n.jsx)(_.k,{centered:!1,className:j("root"),withHorizontalMargins:!1,items:[{link:{route:"account/wallet/sold-books"},activeRoutes:["account/wallet","account/wallet/sold-books"],Icon:m.PriceTagIcon,iconSize:16,children:(0,n.jsx)(x.ZT.Body,{type:"body-2",children:e("user-account.billing-history.sold-books.tab.title")})},{link:{route:"account/wallet/payments"},activeRoutes:["account/wallet/payments"],Icon:h.LayoutThirdIcon,iconSize:16,children:(0,n.jsx)(x.ZT.Body,{type:"body-2",children:e("user-account.billing-history.payments.tab.title")})}]})};var v=o(9537),k=o.n(v);let C=d().bind(k()),I=e=>{let{children:t}=e;return(0,n.jsxs)("div",{className:C("root"),children:[(0,n.jsx)(f,{}),t]})};var w=o(44194),N=o(38569),B=o.n(N),T=o(25040),E=o(45941),S=o(54175);let A=(0,E.f)(()=>{let e=(0,T.useRouter)(),{page:t}=(0,S.IU)(e.query),[o,n]=(0,w.useState)(!1),[r,s]=(0,w.useState)(!1),[l,i]=(0,w.useState)(),a=(0,w.useMemo)(()=>B()(1,t+1),[t]),c=t=>{e.replace({query:{...e.query,page:t}},void 0,{shallow:!0,scroll:!1})},d=l&&t<(null==l?void 0:l.last_page);return{isLoading:o,isEmpty:r,pages:a,activePage:t,loadMore:()=>{c(t+1)},showLoadMoreButton:d,setPagination:i,setIsEmpty:s,setPage:c,setIsLoading:n}}),P=A.useContainer,R=e=>{let{renderPage:t}=e,{pages:o,activePage:r}=P();return(0,n.jsx)(n.Fragment,{children:o.map((e,o)=>(0,n.jsx)(w.Fragment,{children:t({page:e,activePage:r,pageIndex:o})},e))})};var Z=o(29599),F=o(14074),W=o(42269),L=o.n(W);let D=d().bind(L()),M=e=>{let{disabled:t,onClick:o,showLoadMoreButton:r}=e,{t:s}=(0,p.$G)("global");return(0,n.jsx)("div",{className:D("root",{empty:!r}),children:r&&(0,n.jsx)(Z.zx,{prefixIcon:(0,n.jsx)(F.ArrowDownIcon,{}),disabled:t,onClick:o,size:"medium",children:s("global.pagination.load-more")})})},O=()=>{let{showLoadMoreButton:e,isLoading:t,loadMore:o}=P();return(0,n.jsx)(M,{showLoadMoreButton:e,disabled:t,onClick:o})};var U=o(37362),G=o.n(U);let H=d().bind(G()),z=e=>{let{columns:t,rows:o}=e;return(0,n.jsxs)("table",{className:H("root"),children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:t.map(e=>{let{label:t,align:o="left"}=e;return(0,n.jsx)(x.ZT.Body,{element:"th",type:"body-2",bold:!0,className:H("heading",o),children:t},t)})})}),(0,n.jsx)("tbody",{children:o})]})};var $=o(7450),K=o.n($);let V=d().bind(K()),q=e=>{let{message:t,subMessage:o,icon:r}=e;return(0,n.jsxs)("p",{className:V("root"),children:[(0,n.jsx)("span",{className:V("icon"),children:r}),(0,n.jsx)(x.ZT.Body,{type:"body-2",color:"typo-primary-gray",element:"span",className:V("message"),children:t}),(0,n.jsx)(x.ZT.Body,{type:"body-3",color:"typo-secondary-gray",element:"span",className:V("subMessage"),children:o})]})};var Y=o(45798),X=o(24878),J=o(14195),Q=o.n(J);let ee=d().bind(Q()),et=()=>{let{t:e}=(0,p.$G)("user-account");return(0,n.jsx)("tr",{className:ee("row"),children:(0,n.jsx)("td",{colSpan:4,className:ee("cell"),children:(0,n.jsx)(q,{message:e("user-account.billing-history.table.payments.no-results"),subMessage:(0,n.jsx)(Y.r,{href:"/how-to-sell-books",children:e("user-account.billing-history.table.sold.no-results-link")}),icon:(0,n.jsx)(X.MoneyHandIcon,{})})})})};var eo=o(48225),en=o(49940),er=o(8275),es=o(23565),el=o(30934);let ei={cs:". ",sk:". ","de-AT":".","de-DE":".",en:"/","es-ES":"/","it-IT":"/","nl-NL":"-","fr-FR":"/","fr-BE":"/","pl-PL":"."},ea=e=>{let{date:t}=e,{locale:o}=(0,es.b)(),r=(0,el.xn)(t),s=r.format("D"),l=r.format("M"),i=r.format("YYYY"),a=ei[o],c="en"===o?"".concat(l).concat(a).concat(s).concat(a):"".concat(s).concat(a).concat(l).concat(a);return(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{children:c}),"â",(0,n.jsx)("span",{children:i})]})},ec=e=>{let{localizedAmount:t,date:o}=e,{t:r}=(0,p.$G)("user-account");return(0,n.jsxs)("tr",{children:[(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-3",color:"typo-secondary-gray",children:(0,n.jsx)(ea,{date:o})}),(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-2",children:r("user-account.billing-history.payments.payment")}),(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-2",children:t})]})},ed=e=>{let{localizedAmount:t,date:o,processing:r}=e,{t:s}=(0,p.$G)("user-account");return(0,n.jsxs)("tr",{children:[(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-3",color:"typo-secondary-gray",children:(0,n.jsx)(ea,{date:o})}),(0,n.jsxs)("td",{children:[(0,n.jsx)(x.ZT.Body,{element:"p",type:"body-2",children:s("user-account.billing-history.table.locks.banktransfer")}),r&&(0,n.jsx)(x.ZT.Body,{element:"p",type:"body-3",color:"typo-alert",children:s("user-account.billing-history.payments.processing")})]}),(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-2",children:t})]})};var eu=o(95530),ey=o.n(eu);let ep=d().bind(ey()),eh=e=>{let{localizedAmount:t,date:o,orderId:r,processing:s}=e,{t:l}=(0,p.$G)("user-account");return(0,n.jsxs)("tr",{children:[(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-3",color:"typo-secondary-gray",children:(0,n.jsx)(ea,{date:o})}),(0,n.jsxs)("td",{children:[(0,n.jsx)(x.ZT.Body,{element:"p",type:"body-2",children:l("user-account.billing-history.payments.payment-by-wallet")}),(0,n.jsxs)(x.ZT.Body,{element:"p",type:"body-2",className:ep("description"),children:[s&&(0,n.jsxs)(x.ZT.Body,{element:"span",type:"body-3",color:"typo-alert",children:[l("user-account.billing-history.payments.processing"),",\xa0"]}),(0,n.jsx)(x.ZT.Body,{element:"span",type:"body-3",color:"typo-secondary-gray",children:"".concat(l("user-account.orders.order")," #").concat(r)})]})]}),(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-2",children:t})]})},em=e=>{let{localizedAmount:t,date:o}=e,{t:r}=(0,p.$G)("user-account");return(0,n.jsxs)("tr",{children:[(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-3",color:"typo-secondary-gray",children:(0,n.jsx)(ea,{date:o})}),(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-2",children:r("user-account.billing-history.payments.supplier-returned-payout")}),(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-2",children:t})]})},e_=e=>{let{localizedAmount:t,date:o}=e,{t:r}=(0,p.$G)("user-account");return(0,n.jsxs)("tr",{children:[(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-3",color:"typo-secondary-gray",children:(0,n.jsx)(ea,{date:o})}),(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-2",children:r("user-account.billing-history.payments.wallet-writeoff")}),(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-2",children:t})]})},ex=e=>{var t;let{item:o}=e,{user:r}=(0,es.b)();(0,eo.Z)(r,"User is required");let s=(0,en.DB)(r.currency)?r.currency:en.F.CZK,l=null!==(t=(0,en.c)(o,s))&&void 0!==t?t:0,i=(0,er.p)(l),a={...o,localizedAmount:i};switch(a.type){case"CREDIT":return(0,n.jsx)(eh,{...a});case"BANK_TRANSFER":return(0,n.jsx)(ed,{...a});case"SUPPLIER_RETURNED_PAYOUT":return(0,n.jsx)(em,{...a});case"WALLET_WRITEOFF":return(0,n.jsx)(e_,{...a});case"LEGACY":return(0,n.jsx)(ec,{...a});default:throw Error("Unknown payment type")}},eb=e=>{let{items:t}=e;return(0,n.jsx)(n.Fragment,{children:t.map((e,t)=>(0,n.jsx)(ex,{item:e},t))})};var eg=o(35911),ej=o(6630),ef=o.n(ej);let ev=d().bind(ef()),ek=e=>{let{columns:t}=e;return(0,n.jsx)(n.Fragment,{children:Array.from({length:3},(e,o)=>(0,n.jsx)("tr",{className:ev("row"),children:Array.from({length:t},(e,t)=>(0,n.jsx)("td",{className:ev("cell"),children:(0,n.jsx)(eg.O,{width:"100%",height:"1.25rem"})},t))},o))})};var eC=o(23798),eI=o(80219),ew=o(59715);let eN=e=>{let{setPagination:t}=P(),{user:o}=(0,es.b)(),n=(0,en.DB)(null==o?void 0:o.currency)&&(0,en.jX)(o.currency),r=1===e,{data:s,isLoading:l}=eC.Wp["/adonis/v1/users/current/unaccounted-payments"]({config:{revalidateOnFocus:r}}),{data:i,isLoading:a}=eC.Wp["/adonis/v1/users/current/accounted-payments"]({params:{query:{page:1,perPage:10}},config:{revalidateOnFocus:r
1,refreshInterval:e=>r&&(0,ew.D)(e)?3e4:0}}),c=(0,w.useMemo)(()=>{var e,t;return[...null!==(e=null==s?void 0:s.data.entries)&&void 0!==e?e:[],...null!==(t=null==i?void 0:i.data.entries)&&void 0!==t?t:[]].filter(e=>!(n&&null===e.amountEuroCent))},[s,i,n]),d=(0,ew.D)(i),u=0===c.length&&!(l||a)&&!d,y=null==i?void 0:i.data.pagination,p=(0,eI.i)(()=>{t(y)});return(0,w.useEffect)(()=>{p()},[p,y]),{items:c,shouldShowEmptyPage:u,isAccountedUnavailable:d}},eB=e=>{let{activePage:t}=e,{items:o,shouldShowEmptyPage:r,isAccountedUnavailable:s}=eN(t);return r?(0,n.jsx)(et,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eb,{items:o}),s&&(0,n.jsx)(ek,{columns:3})]})},eT=(e,t)=>{let{setPagination:o}=P(),{user:n}=(0,es.b)(),r=(0,en.DB)(null==n?void 0:n.currency)&&(0,en.jX)(n.currency),{data:s}=eC.Wp["/adonis/v1/users/current/accounted-payments"]({params:{query:{page:e,perPage:10}},config:{readyToFetch:1!==e,revalidateOnFocus:e===t,refreshInterval:o=>e===t&&(0,ew.D)(o)?3e4:0}}),l=(0,ew.D)(s),i=(0,w.useMemo)(()=>{var e;return(null!==(e=null==s?void 0:s.data.entries)&&void 0!==e?e:[]).filter(e=>!(r&&null===e.amountEuroCent))},[s,r]),a=null==s?void 0:s.data.pagination,c=(null==a?void 0:a.page)===t,d=(0,eI.i)(()=>{o(a)});return(0,w.useEffect)(()=>{c&&d()},[c,d,a]),{items:i,isUnavailable:l}},eE=e=>{let{page:t,activePage:o}=e,{items:r,isUnavailable:s}=eT(t,o);return 1===t?(0,n.jsx)(eB,{activePage:o}):s?(0,n.jsx)(ek,{columns:3}):(0,n.jsx)(eb,{items:r})},eS=e=>{let{columns:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(z,{columns:t,rows:(0,n.jsx)(R,{renderPage:e=>{let{page:t,activePage:o}=e;return(0,n.jsx)(eE,{page:t,activePage:o})}})}),(0,n.jsx)(O,{})]})},eA=()=>{let{t:e}=(0,p.$G)("user-account"),t=[{label:e("user-account.billing-history.table.payments.col1"),align:"left"},{label:e("user-account.billing-history.table.payments.col2"),align:"left"},{label:e("user-account.billing-history.table.payments.col3"),align:"right"}];return(0,n.jsx)(A.Provider,{children:(0,n.jsx)(eS,{columns:t})})};var eP=o(32502),eR=o.n(eP);let eZ=d().bind(eR()),eF=()=>{let{t:e}=(0,p.$G)("user-account");return(0,n.jsx)(x.ZT.Body,{element:"p",type:"body-3",color:"typo-secondary-gray",className:eZ("root"),children:e("user-account.billing-history.sold-books.deposit-delay")})},eW=e=>{let{totalResults:t,perPage:o,currentPage:n,totalPages:r}=e,s=Math.max(1,r);return{total:t,per_page:o,page:Math.min(n,s),first_page:1,last_page:s}},eL=(e,t,o,n)=>{let{currency:r}=(0,es.b)(),s=(0,en.jX)(r),{data:l,isLoading:i}=eC.Wp["/adonis/v1/users/current/liabilities"]({params:{query:{page:e,perPage:10}},config:{revalidateOnFocus:e===t,refreshInterval:o=>e===t&&(0,ew.D)(o)?3e4:0}}),a=(0,ew.D)(l),c=(0,w.useMemo)(()=>{var e;return(null!==(e=null==l?void 0:l.data.entries)&&void 0!==e?e:[]).filter(e=>!(s&&null===e.amountEuroCent))},[l,s]),d=null==l?void 0:l.data.pagination;(0,S.Xs)({page:e,activePage:t,extent:void 0===d?void 0:{kind:"counted",pagination:eW(d)},isLoading:i,setExtent:o,setIsLoading:n});let u=1===e&&1===t&&0===c.length&&!i&&!a;return{items:c,shouldShowEmptyPage:u,isUnavailable:a}};var eD={BOOK:"book",BOOK_LOST:"book_lost",WALLET_WRITEOFF:"wallet_writeoff",BATCH:"batch",SUPPLIER_COMPENSATION:"supplier_compensation"},eM=o(1993),eO=o(25543),eU=o.n(eO);let eG=d().bind(eU()),eH=e=>{var t,o;let{date:r,amount:s,amountEuroCent:l,bookTitle:i,bookPrice:a,bookPriceEuroCent:c,bookId:d,bookAuthors:u,name:h,sourceReferenceType:m,sourceReferenceId:_}=e,{t:b}=(0,p.$G)("user-account"),{currency:g,locale:j}=(0,es.b)(),f=m===eD.BATCH,v=m===eD.SUPPLIER_COMPENSATION,k=m===eD.WALLET_WRITEOFF,C=m===eD.BOOK||m===eD.BOOK_LOST,I=f?b("user-account.billing-history.table.sold.batch-compensation"):v?b("user-account.billing-history.table.sold.supplier-compensation"):k?b("user-account.billing-history.table.sold.wallet-writeoff"):null!==(o=null!=i?i:h)&&void 0!==o?o:"-",w=f||v||k?void 0:null==u?void 0:u.join(", "),N=null!==(t=(0,en.c)({amount:s,amountEuroCent:l},g))&&void 0!==t?t:0,B=(0,en.hc)({bookPrice:a,bookPriceEuroCent:c},g),T=(0,er.p)(N),E=f||v||k||void 0===B?"-":(0,eM.L)(B,j,g),{push:S}=(0,y.U)(),A=C&&void 0!==d,P=A||f;return(0,n.jsxs)("tr",{onClick:()=>
1{if(f&&_){S({pathname:"account/sales",query:{batchId:_}});return}A&&S({pathname:"book/detail/redirect",query:{id:d.toString(),fallbackStrategy:"item"}})},className:eG("root",{clickable:P}),children:[(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-3",color:"typo-secondary-gray",className:eG("date"),children:(0,n.jsx)(ea,{date:r})}),(0,n.jsx)("td",{children:(0,n.jsxs)("p",{className:eG("container"),children:[(0,n.jsx)(x.ZT.Body,{element:"span",type:"body-2",className:eG("title"),children:I}),(0,n.jsx)(x.ZT.Body,{element:"span",type:"body-3",color:"typo-secondary-gray",className:eG("authors"),children:w})]})}),(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-2",className:eG("price"),children:E})," ",(0,n.jsx)(x.ZT.Body,{element:"td",type:"body-2",color:"ds-greenish-500",children:T})]})},ez=e=>{let{items:t}=e;return(0,n.jsx)(n.Fragment,{children:t.map(e=>(0,n.jsx)(eH,{...e},e.name))})};var e$=o(12891),eK=o.n(e$);let eV=d().bind(eK()),eq=()=>{let{t:e}=(0,p.$G)("user-account");return(0,n.jsx)("tr",{className:eV("row"),children:(0,n.jsx)("td",{colSpan:4,className:eV("cell"),children:(0,n.jsx)(q,{icon:(0,n.jsx)(X.MoneyHandIcon,{}),message:e("user-account.billing-history.table.sold.no-results"),subMessage:(0,n.jsx)(Y.r,{href:"/how-to-sell-books",children:e("user-account.billing-history.table.sold.no-results-link")})})})})},eY=e=>{let{page:t,activePage:o,setExtent:r,setIsLoading:s}=e,{items:l,shouldShowEmptyPage:i,isUnavailable:a}=eL(t,o,r,s);return a?(0,n.jsx)(ek,{columns:4}):i?(0,n.jsx)(eq,{}):(0,n.jsx)(ez,{items:l})},eX=e=>{let{columns:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eF,{}),(0,n.jsx)(S.sp,{showLoadMoreButton:!0,renderWrapper:e=>(0,n.jsx)(z,{columns:t,rows:e}),renderPage:(e,t)=>(0,n.jsx)(eY,{...e,...t})})]})},eJ=()=>{let{t:e}=(0,p.$G)("user-account"),t=[{label:e("user-account.billing-history.table.sold.col1"),align:"left"},{label:e("user-account.billing-history.table.sold.col2"),align:"left"},{label:e("user-account.billing-history.table.sold.col3"),align:"right"},{label:e("user-account.billing-history.table.sold.col4"),align:"right"}];return(0,n.jsx)(eX,{columns:t})},eQ=()=>{let{getCurrentRoute:e}=(0,y.U)(),t=null;switch(e()){case"account/wallet":case"account/wallet/sold-books":t=(0,n.jsx)(eJ,{});break;case"account/wallet/payments":t=(0,n.jsx)(eA,{});break;default:throw Error("Unknown route")}return(0,n.jsx)(I,{children:t})};var e0=o(41068),e1=o.n(e0);let e4=d().bind(e1()),e2=()=>{let{t:e}=(0,p.$G)("header");return(0,n.jsx)(x.ZT.Heading,{element:"h2",type:"heading-4",className:e4("root"),children:e("header.nav.wallet.title")})};var e3=o(75787),e5=o(34970),e9=o(90811);let e7=()=>{var e;let t=(0,e9.p)(),{data:o,error:n}=eC.Wp["/adonis/v1/users/current/pending-credit"]({config:{readyToFetch:!!t,revalidateOnFocus:!0,errorRetryCount:3,errorRetryInterval:3e4,refreshInterval:e=>void 0===e?3e4:0}}),r=null==o?void 0:null===(e=o.data)||void 0===e?void 0:e.pending;return{pendingCredit:r,isLoading:void 0===r&&!n,isError:void 0===r&&!!n}},e6=()=>{let{pendingCredit:e,isLoading:t,isError:o}=e7(),n=(0,e3.YM)(e),{balance:r,isLoading:s,isError:l}=(0,e5.L)(),i=(0,e9.p)(),a=(0,er.o)();return{disposable:(0,e3.YM)(null==r?void 0:r.balance_sum),lockedAmount:(0,e3.YM)(null==r?void 0:r.bank_lock_sum),pendingCredit:n,user:i,priceFormatter:a,isBalanceLoading:s||l,isPendingCreditLoading:t||o}};var e8=o(76841),te=o(10676),tt=o(469),to=o.n(tt);let tn=d().bind(to()),tr=e=>{let{buckets:t,formatPrice:o}=e,{t:r}=(0,p.$G)("wallet");return(0,n.jsxs)("div",{className:tn("dialog-root"),children:[(0,n.jsxs)("div",{className:tn("dialog-row","dialog-header"),children:[(0,n.jsx)("div",{className:tn("dialog-row-item"),children:(0,n.jsx)(x.ZT.Body,{type:"body-2",bold:!0,children:r("wallet.credits-dialog.header-1")})}),(0,n.jsx)("div",{className:tn("dialog-row-item"),children:(0,n.jsx)(x.ZT.Body,{type:"body-2",bold:!0,children:r("wallet.credits-dialog.header-2")})})]}),t.map(e=>{let{expiresAt:t,amount:r}=e;return(0,n.jsxs)("div",{className:tn("dialog-row","dialog-content"),children:[(0,n.jsx)("div",{className:tn("dialog-row-item"),children:(0,n.jsx)(x.ZT.Body,{type:"body-2",children:t})}),(0,n.jsx)("div",{className:tn("dialog-row-item"),children:(0,n.jsx)(x.ZT.Body,{type:"body-2",children:o(r)})})]},t)})]})},ts=e=>{let{open:t,onClose:o,buckets:r,formatPrice:s}=e,{t:l}=(0,p.$G)("wallet");return(0,n.jsx)(e8.V,{open:t,onClose:o,children:(0,n.jsx)(e8.V.Content,{header:{title:(0,n.jsx)(x.ZT.Heading,{element:"h2",type:"heading-5",children:l("wallet.credits-dialog.title")})},footer:{primaryButton:(0,n.jsx)(Z.zx,{size:"medium",type:"primary",prefixIcon:(0,n.jsx)(te.Checkmark1Icon,{}),onClick:o,children:l("wallet.credits-dialog.button")})},children:(0,n.jsx)(tr,{buckets:r,formatPrice:s})})})};var tl=o(1961),ti=o(74403),ta=o.n(ti);let tc=d().bind(ta()),td=e=>{let{icon:t,children:o,className:r}=e;return(0,n.jsxs)("div",{className:tc("content",r),children:[(0,n.jsx)("div",{className:tc("icon"),children:t}),o]})};var tu=o(41131),ty=o.n(tu);let tp=d().bind(ty()),th=e=>{let{credit:t,onShowAllCredits:o,formatPrice:r}=e,{t:s}=(0,p.$G)("user-account");return(0,n.jsxs)("div",{className:tp("section"),children:[(0,n.jsxs)(td,{icon:(0,n.jsx)(tl.CreditCardAddIcon,{}),children:[(0,n.jsx)(x.ZT.Body,{type:"body-1",bold:!0,children:s("account.billing-history.sidebar.credits.title")}),(0,n.jsx)(x.ZT.Body,{type:"body-3",className:tp("section-description"),color:"typo-secondary-gray",children:s("user-account.billing-history.sidebar.credits.subtitle")}),(0,n.jsx)(x.ZT.Heading,{type:"heading-4",children:r(t.total)})]}),(0,n.jsx)("ul",{className:tp("list",{isExpandable:t.buckets.length>3}),children:t.buckets.slice(0,3).map(e=>{let{expiresAt:t,amount:o}=e;return(0,n.jsxs)("li",{className:tp("list-item"),children:[(0,n.jsx)(x.ZT.Body,{type:"body-2",children:t}),(0,n.jsx)(x.ZT.Body,{type:"body-2",bold:!0,children:r(o)})]},t)})}),t.buckets.length>3&&(0,n.jsx)("div",{className:tp("list-button-section"),children:(0,n.jsxs)(Z.zx,{size:"medium",type:"transparent",className:tp("list-button"),onClick:o,children:[s("wallet.section.button-show")," ",t.buckets.length]})})]})};var tm=o(24983),t_=o(78485),tx=o(10995),tb=o(75514);let tg=(e,t)=>{switch(e.code){case"E_INVALID_CUSTOMER_BANK_ACCOUNT":var o,n,r,s;
1return t("user-account.error.invalid-customer-data.bank-account",{accountBban:null!==(r=null===(o=e.context)||void 0===o?void 0:o.bban)&&void 0!==r?r:"N/A",accountIban:null!==(s=null===(n=e.context)||void 0===n?void 0:n.iban)&&void 0!==s?s:"N/A"});case"E_BANK_LOCK_CURRENCY_MISMATCH":return t("user-account.error.bank-lock.currency-mismatch");case"E_BANK_LOCK_CURRENCY_NULL":return t("user-account.error.bank-lock.currency-null");case"E_BANK_LOCK_DUPLICATE":return t("user-account.error.bank-lock.duplicate");case"E_BANK_LOCK_INSUFFICIENT_BALANCE":return t("user-account.error.bank-lock.insufficient-balance");case"E_EXTERNAL_SERVICE_UNAVAILABLE":return t("user-account.error.bank-lock.accounting-unavailable");default:return t("user-account.error.unexpected")}},tj=e=>{let{open:t,wallet:o,onClose:n}=e,[r,s]=(0,w.useState)(!1),{t:l}=(0,p.$G)("user-account"),{locale:i}=(0,es.b)(),a=(0,tm.cI)({defaultValues:{amount:""}}),c=(0,w.useRef)(!1);(0,w.useEffect)(()=>{if(t&&!c.current){let e=o.disposable>0?o.disposable.toLocaleString(i,{useGrouping:!1,maximumFractionDigits:2}):"";a.reset({amount:e})}c.current=t},[t,o.disposable,a,i]);let d=(0,tb.m)(),{send:u,isLoading:y}=eC.yV["/adonis/v1/bank-locks"]({onSuccess:()=>{s(!0),a.reset(),d()},onError:e=>{s(!1);let t=l("user-account.error.unexpected");if((0,t_.IZ)(e)){var o,n;t=tg(null!==(n=null===(o=e.response)||void 0===o?void 0:o.data)&&void 0!==n?n:{code:"E_GENERIC_ERROR"},l)}tx.Am.error(t)}}),h=async e=>{s(!1);let t=(0,e3.yn)(parseFloat(e.amount.replace(/\s/g,"").replace(",",".")));if(isNaN(t)){tx.Am.error(l("wallet.dispose-dialog.error.not-a-number-error"));return}await u({amount:t})},m=a.watch("amount"),_=parseFloat(m.replace(/\s/g,"").replace(",",".")),x=""===m||"0"===m||isNaN(_)||_>o.disposable||y,b=a.handleSubmit(h);return{form:a,handleSubmit:b,isDisabled:x,isSuccess:r,handleClose:()=>{s(!1),a.reset(),n()},parsedAmount:_}};var tf=o(91699),tv=o(88872),tk=o(25287),tC=o(14402),tI=o(86371),tw=o.n(tI);let tN=d().bind(tw()),tB=e=>{let{open:t,onClose:o,currency:r,isDisabled:s,formatPrice:l,wallet:i,onSubmit:a,parsedAmount:c}=e,{t:d}=(0,p.$G)("user-account"),{register:u}=(0,tm.Gc)(),y=u("amount");return(0,n.jsx)(e8.V,{open:t,onClose:o,children:(0,n.jsxs)(e8.V.Content,{header:{title:(0,n.jsx)(x.ZT.Heading,{element:"h2",type:"heading-5",children:d("user-account.wallet.payout.heading")})},body:{maxWidth:"narrow"},footer:{primaryButton:(0,n.jsxs)(Z.zx,{size:"medium",type:"primary",wide:!0,prefixIcon:(0,n.jsx)(tk.PaperPlaneTopRightIcon,{}),disabled:s,onClick:a,children:[d("user-account.wallet.payout.btn-submit"),c>0&&" ".concat(l(c))]})},children:[(0,n.jsxs)(x.ZT.Body,{type:"body-1",color:"typo-secondary-gray",children:[d("user-account.wallet.payout.amount-prefix"),"\xa0",l(i.disposable)]}),(0,n.jsxs)("div",{className:tN("input-section","input-section-spacing"),children:[(0,n.jsx)(tf.N,{hasValidation:!0,label:d("user-account.wallet.payout.amount-input-placeholder"),children:(0,n.jsx)(tC.o,{placeholder:"0",type:"text",inputMode:"decimal",alternativeFocusStyle:!0,...y,onChange:e=>(e.target.value=e.target.value.replace(/[^\d.,]/g,""),y.onChange(e)),className:tN("input")})}),(0,n.jsx)(x.ZT.Body,{type:"body-1",color:"typo-secondary-gray",className:tN("input-section-currency"),children:r})]}),(0,n.jsxs)("ul",{className:tN("info-list"),children:[(0,n.jsxs)("li",{className:tN("info-list-item"),children:[(0,n.jsx)(X.MoneyHandIcon,{color:"ico-positive",className:tN("info-list-icon"),size:"100%"}),(0,n.jsx)(x.ZT.Body,{type:"body-1",color:"typo-secondary-gray",children:d("user-account.wallet.payout.info-bullet-wallet-continues")})]}),(0,n.jsxs)("li",{className:tN("info-list-item"),children:[(0,n.jsx)(tv.CalendarClockIcon,{color:"ico-positive",className:tN("info-list-icon"),size:"100%"}),(0,n.jsx)(x.ZT.Body,{type:"body-1",color:"typo-secondary-gray",children:d("user-account.wallet.payout.info-bullet-processing-time")})]})]})]})})},tT=e=>{let{open:t,onClose:o}=e,{t:r}=(0,p.$G)("user-account");return(0,n.jsx)(e8.V,{open:t,onClose:o,children:(0,n.jsx)(e8.V.Content,{header:{title:(0,n.jsx)(x.ZT.Heading,{element:"h2",type:"heading-5",children:r("user-account.wallet.payout.status-1.title")})},body:{maxWidth:"narrow"},footer:{primaryButton:(0,n.jsx)(Z.zx,{size:"medium",type:"primary",prefixIcon:(0,n.jsx)(te.Checkmark1Icon,{}),onClick:o,children:r("user-account.wallet.btn-back")})},children:(0,n.jsx)(x.ZT.Body,{type:"body-1",element:"span",children:r("user-account.wallet.payout.status-1.info-text")})})})};var tE=o(52840);let tS=e=>{let{open:t,onClose:o}=e,{t:r}=(0,p.$G)("user-account");return(0,n.jsx)(e8.V,{open:t,onClose:o,children:(0,n.jsx)(e8.V.Content,{header:{title:(0,n.jsx)(x.ZT.Heading,{element:"h2",type:"heading-5",children:r("user-account.wallet.payout.heading")})},body:{maxWidth:"narrow"},footer:{primaryButton:(0,n.jsx)(Z.zx,{route:"account/details",params:{params:["edit"]},size:"medium",type:"primary",prefixIcon:(0,n.jsx)(tE.BankIcon,{}),children:r("user-account.wallet.payout.btn-fill-details")})},children:(0,n.jsx)(x.ZT.Body,{type:"body-1",element:"span",children:(0,n.jsx)(p.cC,{i18nKey:"user-account.wallet.payout.text-bankaccount-missing",t:r,components:{link1:(0,n.jsx)(Y.r,{href:"/account/details/edit"})}})})})})},tA=e=>{let{open:t,onClose:o,currency:r,wallet:s,hasBankAccount:l,isDisabled:i,formatPrice:a,isSuccess:c,onSubmit:d,parsedAmount:u}=e;return c?(0,n.jsx)(tT,{open:t,onClose:o}):l?(0,n.jsx)(tB,{open:t,onClose:o,isDisabled:i,formatPrice:a,wallet:s,currency:r,onSubmit:d,parsedAmount:u}):(0,n.jsx)(tS,{open:t,onClose:o,isDisabled:i})},tP=e=>{let{open:t,onClose:o,currency:r,wallet:s,hasBankAccount:l}=e,i=(0,er.o)(),{handleSubmit:a,handleClose:c,form:d,isSuccess:u,isDisabled:y,parsedAmount:p}=tj({open:t,wallet:s,onClose:o});return(0,n.jsx)(tm.RV,{...d,children:(0,n.jsx)("form",{children:(0,n.jsx)(tA,{open:t,onClose:c,currency:r,wallet:s,hasBankAccount:l,isDisabled:y,formatPrice:i,onSubmit:a,isSuccess:u,parsedAmount:p})})})};var tR=o(41076),tZ=o(35355),tF=o.n(tZ);let tW=d().bind(tF()),tL=e=>{let{totalEarnings:t,isLoading:o}=e,{t:r}=(0,p.$G)("user-account");return o?(0,n.jsx)("div",{className:tW("root"),children:(0,n.jsx)(eg.O,{width:"14rem",height:"1.25rem"})}):(0,n.jsx)("div",{className:tW("root"),children:(0,n.jsx)(x.ZT.Body,{type:"body-2",element:"span",children:(0,n.jsx)(p.cC,{i18nKey:"user-account.billing-history.sidebar.total-earnings",t:r,values:{amount:t},components:{strong:(0,n.jsx)(x.ZT.Body,{type:"body-2",element:"span",bold:!0})}})})})},tD=()=>{let{totalEarnings:e,isUnavailable:t}=(0,tR.z)();return(0,n.jsx)(tL,{totalEarnings:e,isLoading:t})};var tM=o(5110),tO=o(84380),tU=o(61787),tG=o.n(tU);let tH=d().bind(tG()),tz=e=>
1{let{wallet:t,isIncomingLoading:o,onDispose:r,formatPrice:s}=e,{t:l}=(0,p.$G)("user-account"),i=t.lockedAmount>0;return(0,n.jsxs)("div",{className:tH("footer"),children:[(o||t.incoming>0)&&(0,n.jsxs)("div",{className:tH("footer-bar"),children:[(0,n.jsx)(tM.AirplaneUpIcon,{className:tH("footer-bar-icon")}),o?(0,n.jsx)(eg.O,{width:"10rem",height:"1.5rem"}):(0,n.jsx)(x.ZT.Body,{type:"body-1",children:l("user-account.billing-history.sidebar.earnings.incoming",{incoming:s(t.incoming)})})]}),(0,n.jsxs)(td,{icon:(0,n.jsx)(tO.MoneyHandIcon,{}),className:tH("footer-content"),children:[(0,n.jsx)(x.ZT.Body,{className:tH("footer-title"),type:"body-1",bold:!0,children:l("user-account.billing-history.sidebar.earnings.title")}),(0,n.jsx)(x.ZT.Body,{className:tH("footer-description"),type:"body-3",color:"typo-secondary-gray",children:l("user-account.billing-history.sidebar.earnings.subtitle")})]}),(0,n.jsx)("div",{className:tH("footer-button-section"),children:t.disposable>0||i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Z.zx,{size:"medium",type:"secondary",className:tH("footer-button"),prefixIcon:(0,n.jsx)(tE.BankIcon,{}),disabled:i,onClick:r,wide:!0,children:l("user-account.billing-history.sidebar.earnings.button.withdraw")}),i&&(0,n.jsxs)("div",{className:tH("footer-button-blocked-amount-info"),children:[(0,n.jsx)(x.ZT.Body,{type:"body-2",color:"ds-greenish-500",bold:!0,children:"".concat(l("user-account.wallet.payout.amount-prefix-blocked")," ").concat(s(t.lockedAmount))}),(0,n.jsx)(x.ZT.Body,{type:"body-2",color:"typo-secondary-gray",children:l("user-account.wallet.payout.amount-prefix-blocked.info")})]})]}):(0,n.jsx)(Z.zx,{size:"medium",type:"tertiary",prefixIcon:(0,n.jsx)(tO.MoneyHandIcon,{}),route:"sell-books",wide:!0,children:l("user-account.billing-history.sidebar.earnings.button.sell-books")})})]})};var t$=o(81842),tK=o(53461),tV=o.n(tK);let tq=d().bind(tV()),tY=e=>{let{total:t,isLoading:o}=e,{t:r}=(0,p.$G)("user-account");return(0,n.jsx)("div",{className:tq("header"),children:(0,n.jsx)("div",{className:tq("header-content"),children:(0,n.jsxs)(td,{icon:(0,n.jsx)(t$.MoneyBagIcon,{}),children:[(0,n.jsx)(x.ZT.Heading,{className:tq("header-title"),type:"heading-5",color:"typo-primary-green",children:r("user-account.billing-history.sidebar.total.title")}),(0,n.jsx)(x.ZT.Body,{type:"body-3",className:tq("header-description"),color:"typo-secondary-green",children:r("user-account.billing-history.sidebar.total.subtitle")}),o?(0,n.jsx)(eg.O,{width:"8rem",height:"2rem"}):(0,n.jsx)(x.ZT.Heading,{type:"heading-3",color:"typo-primary-green",children:t})]})})})};var tX=o(88710),tJ=o.n(tX);let tQ=d().bind(tJ()),t0=e=>{let{credit:t,currency:o,wallet:r,isBalanceLoading:s,isPendingCreditLoading:l,hasBankAccount:i,formatPrice:a}=e,[c,d]=(0,w.useState)(!1),[u,y]=(0,w.useState)(!1),p=a(r.disposable);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ts,{open:u,onClose:()=>y(!1),buckets:t.buckets,formatPrice:a}),(0,n.jsx)(tP,{open:c,onClose:()=>d(!1),currency:o,wallet:r,hasBankAccount:i}),(0,n.jsxs)("div",{className:tQ("root"),children:[(0,n.jsx)(tY,{total:p,isLoading:s}),t.total>0&&(0,n.jsx)(th,{credit:t,formatPrice:a,onShowAllCredits:()=>y(!0)}),(0,n.jsx)(tz,{wallet:r,isIncomingLoading:l,formatPrice:a,onDispose:()=>d(!0)})]}),(0,n.jsx)(tD,{})]})},t1=()=>{let{pendingCredit:e,user:t,disposable:o,priceFormatter:r,lockedAmount:s,isBalanceLoading:l,isPendingCreditLoading:i}=e6();return(0,eo.Z)(t,"User not found."),(0,n.jsx)(t0,{currency:t.currency,credit:{total:0,buckets:[]},wallet:{disposable:o,incoming:e,lockedAmount:s},isBalanceLoading:l,isPendingCreditLoading:i,hasBankAccount:!!t.account_number||!!t.account_iban,formatPrice:r})};var t4=o(84414),t2=o.n(t4);let t3=d().bind(t2()),t5=()=>(0,n.jsxs)(u.h,{type:"narrow",children:[(0,n.jsx)(e2,{}),(0,n.jsxs)("div",{className:t3("container"),children:[(0,n.jsx)("div",{children:(0,n.jsx)(t1,{})}),(0,n.jsx)(eQ,{})]})]}),t9=e=>{let{canonicalUrl:t,fallback:o}=e,c=(0,s.i)();return(0,n.jsx)(r.SWRConfig,{value:{fallback:o},children:(0,n.jsx)(a.p,{canonicalUrl:t,metaRobotsConfiguration:i.MetaRobotsConfiguration.IndexF
1ollow,children:c?(0,n.jsx)(t5,{}):(0,n.jsx)(l.q,{})})})}},41076:function(e,t,o){"use strict";o.d(t,{z:function(){return c}});var n=o(23798),r=o(49940),s=o(75787),l=o(90811),i=o(8275),a=o(59715);let c=()=>{var e,t;let{data:o}=n.Wp["/adonis/v1/users/yield"]({config:{revalidateOnFocus:!0,refreshInterval:e=>(0,a.D)(e)?3e4:0}}),c=(0,l.p)(),d=(0,i.o)(),u=(0,r.DB)(null==c?void 0:c.currency)?c.currency:r.F.CZK,y=(0,r.jX)(u)?null==o?void 0:null===(e=o.data)||void 0===e?void 0:e.amountEuroCent:null==o?void 0:null===(t=o.data)||void 0===t?void 0:t.amount,p=(0,s.YM)(y);return{rawEarnings:p,totalEarnings:d(p),isUnavailable:void 0===o||(0,a.D)(o)}}},59715:function(e,t,o){"use strict";o.d(t,{D:function(){return n}});let n=e=>void 0!==e&&"ok"!==e.data.status},30934:function(e,t,o){"use strict";o.d(t,{X8:function(){return h},eO:function(){return m},xn:function(){return _}}),o(4148),o(15374),o(5336),o(13445),o(92717),o(4706),o(7668),o(45635),o(32780),o(63832);var n=o(28977),r=o.n(n),s=o(63878),l=o.n(s),i=o(83145),a=o.n(i),c=o(73548),d=o.n(c),u=o(13516),y=o.n(u);(0,n.extend)(d()),(0,n.extend)(a()),(0,n.extend)(l()),(0,n.extend)(y());let p={cs:"cs",sk:"sk","de-DE":"de","de-AT":"de-at","gsw-CH":"de","es-ES":"es","it-IT":"it","nl-NL":"nl","fr-FR":"fr","fr-BE":"fr","pl-PL":"pl",en:"en"},h=e=>{var t;return null!==(t=e?p[e]:void 0)&&void 0!==t?t:"cs"},m=e=>r()(e),_=e=>r().utc(e)},46950:function(e,t,o){"use strict";o.d(t,{i:function(){return s}});var n=o(51220),r=o(99783);let s=()=>{let{locale:e}=(0,r.U)();return(0,n.O)(e)}},51220:function(e,t,o){"use strict";o.d(t,{K:function(){return r},O:function(){return l}});var n=o(35017);let r=["pl-PL"],s=new Set(Object.values(n.k1).map(e=>e.label)),l=e=>!!(void 0!==e&&s.has(e))&&!r.includes(e)},7450:function(e){e.exports={root:"EmptyPage_styles_root__64myP",icon:"EmptyPage_styles_icon__yF2t6",message:"EmptyPage_styles_message__gLl1E",subMessage:"EmptyPage_styles_subMessage__U264M"}},42269:function(e){e.exports={root:"InfinitePaginatedPagesControls_styles_root__2ugAg"}},49774:function(e){e.exports={root:"SellingPlaceholder_styles_root__N_Eqb"}},6534:function(e){e.exports={root:"AccountLayout_styles_root__BqGK3"}},77587:function(e){e.exports={root:"AccountLayoutNavigation_styles_root__DFTWc"}},72957:function(e){e.exports={"top-labels":"FormControl_styles_top-labels__wBskG","bottom-labels":"FormControl_styles_bottom-labels__FAwRs"}},64674:function(e){e.exports={root:"Skeleton_styles_root__9KeiD","skeleton-pulse":"Skeleton_styles_skeleton-pulse__Ve6Nx",rootRounded:"Skeleton_styles_rootRounded__zVztw",rootCircular:"Skeleton_styles_rootCircular__fL7uf",rootHasChildren:"Skeleton_styles_rootHasChildren__vMXuM",rootFitWidth:"Skeleton_styles_rootFitWidth__Qylpd",rootAutoHeight:"Skeleton_styles_rootAutoHeight__YKXNL"}},84414:function(e){e.exports={container:"WalletPage_styles_container__LUOAd"}},9537:function(e){e.exports={root:"WalletPageContent_styles_root__4JCwe"}},53005:function(e){e.exports={root:"WalletPageContentNavigation_styles_root__sgJSA"}},95530:function(e){e.exports={description:"WalletPaymentPageRowCredit_styles_description__XllrI"}},14195:function(e){e.exports={row:"WalletPaymentsEmptyRow_styles_row__E_y3_",cell:"WalletPaymentsEmptyRow_styles_cell__IUM6z"}},32502:function(e){e.exports={root:"WalletSoldBooksDescription_styles_root__jHEQI"}},12891:function(e){e.exports={row:"WalletSoldBooksEmptyRow_styles_row__DszmU",cell:"WalletSoldBooksEmptyRow_styles_cell__H_RzR"}},25543:function(e){e.exports={root:"WalletSoldBooksRow_styles_root__5Metu",clickable:"WalletSoldBooksRow_styles_clickable__Bzt5r",price:"WalletSoldBooksRow_styles_price__wQR3N",container:"WalletSoldBooksRow_styles_container__s_nP8",authors:"WalletSoldBooksRow_styles_authors__YyRg0",title:"WalletSoldBooksRow_styles_title__Av5tD"}},37362:function(e){e.exports={root:"WalletTable_styles_root__MUAGq",heading:"WalletTable_styles_heading__f_lMe",left:"WalletTable_styles_left__zu9Ph",right:"WalletTable_styles_right__OqcUu"}},6630:function(e){e.exports={row:"WalletTableSkeletonRows_styles_row__pHNx0",cell:"WalletTableSkeletonRows_styles_cell__oSKtn"}},41068:function(e){e.exports={root:"WalletPageHeader_styles_root__e_ATj"}},41131:function(e){e.exports={section:"CreditSection_styles_section__J1FhY","section-description":"CreditSection_styles_section-description__4SemS",list:"CreditSection_styles_list__fAqBX",isExpandable:"CreditSection_styles_isExpandable___MF77","list-item":"CreditSection_styles_list-item__eOhBs","list-button-section":"CreditSection_styles_list-button-section__5K8KU","list-button":"CreditSection_styles_list-button__pFvtE"}},469:function(e){e.exports={"dialog-root":"CreditsDialogList_styles_dialog-root__B_XjW","dialog-row":"CreditsDialogList_styles_dialog-row__nFoCP","dialog-header":"CreditsDialogList_styles_dialog-header__Qlt22","dialog-content":"CreditsDialogList_styles_dialog-content__W_ZTn"}},86371:function(e){e.exports={"input-section":"DisposeDialogPayout_styles_input-section__Cblvh","input-section-currency":"DisposeDialogPayout_styles_input-section-currency__h_iww",input:"DisposeDialogPayout_styles_input__PiA7N","info-list":"DisposeDialogPayout_styles_info-list__VS5yT","input-section-spacing":"DisposeDialogPayout_styles_input-section-spacing__YbyC_","info-list-item":"DisposeDialogPayout_styles_info-list-item__ot1ma","info-list-icon":"DisposeDialogPayout_styles_info-list-icon__6V_2P"}},35355:function(e){e.exports={root:"TotalEarnings_styles_root__vzdZx"}},61787:function(e){e.exports={footer:"WalletFooter_styles_footer__IkwXd","footer-bar":"WalletFooter_styles_footer-bar__kAYPV","footer-bar-icon":"WalletFooter_styles_footer-bar-icon__ov_fh","footer-content":"WalletFooter_styles_footer-content__OAtuz","footer-title":"WalletFooter_styles_footer-title__6UMmV","footer-button-section":"WalletFooter_styles_footer-button-section__apfns","footer-button-link":"WalletFooter_styles_footer-button-link__dPEZf","footer-button-blocked-amount-info":"WalletFooter_styles_footer-button-blocked-amount-info__t4jJ2"}},53461:function(e){e.exports={header:"WalletHeader_styles_header__FKB91","header-content":"WalletHeader_styles_header-content__R2V4m","header-title":"WalletHeader_styles_header-title__Nswy3","header-description":"WalletHeader_styles_header-description__86fH8"}},88710:function(e){e.exports={root:"WalletSidebar_styles_root__0eOTY"}},74403:function(e){e.exports={content:"WalletSidebarContent_styles_content__1qLV9",icon:"WalletSidebarContent_styles_icon__NReH_"}}}]);
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.