1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"2.19.1"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var a=1;a<arguments.length;a++){var o=arguments[a];if(null!=o)for(var t in o)o.hasOwnProperty(t)&&(e[t]=o[t])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:booksprout-reviewer-app":!0});var a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="39eee3ec-2c30-4bca-bf47-1abf6a69a07e",e._sentryDebugIdIdentifier="sentry-dbid-39eee3ec-2c30-4bca-bf47-1abf6a69a07e")}catch(e){}}(),(globalThis["webpackChunkapp_reviewer"]||=[]).push([[2276],{2941(e,a,o){o.d(a,{X:()=>k});var t=o(89221),r=o(33995),l=o(65365);const i={key:0,class:"a-b-format-tag",xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",viewBox:"0 0 56 56",fill:"none"},n={key:1,class:"a-b-format-tag",xmlns:"http://www.w3.org/2000/svg",width:"56",height:"56",viewBox:"0 0 56 56",fill:"none"},s={class:"column ab-book-details"},c={class:"column ab-details"},d={key:0,class:"ab-excerpt"},u={class:"ab-pen-name-review-by column"},v={class:"flex ab-tags"};function k(e,a,o,k,p,b){const y=(0,t.g2)("save-btn"),f=(0,t.g2)("bs-img"),m=(0,t.g2)("bs-clickable"),w=(0,t.g2)("pe
1n-name"),g=(0,t.g2)("arc-due-date"),h=(0,t.g2)("q-icon"),C=(0,t.g2)("i18n-t"),E=(0,t.g2)("bs-chip"),A=(0,t.g2)("q-card-section"),S=(0,t.g2)("bs-btn"),T=(0,t.g2)("q-btn-group"),_=(0,t.g2)("q-card-actions"),D=(0,t.g2)("q-card");return(0,t.uX)(),(0,t.Wv)(D,{class:(0,l.C4)(["bs-card author-book",{"cursor-pointer":e.arcViewUrl}]),role:e.arcViewUrl?"button":void 0,tabindex:"0",onClick:e.navigateToArc},{default:(0,t.k6)(()=>[(0,t.bF)(A,null,{default:(0,t.k6)(()=>[e.saveVisible?((0,t.uX)(),(0,t.Wv)(y,{key:0,class:"a-b-save-btn","icon-only":"","is-saved":!!e.arc.isSaved,onClick:e.onSaveClick},null,8,["is-saved","onClick"])):(0,t.Q3)("",!0),(0,t.bF)(m,{to:e.arcViewUrl,class:"relative-position"},{default:(0,t.k6)(()=>[(0,t.bF)(f,{class:"ab-image",alt:e.arc.book&&e.arc.book.title,src:e.arc.book&&e.arc.book.bookCover,height:"270",width:"178","placeholder-src":"/cdn/no-image.png",native:""},null,8,["alt","src"]),e.showFormatAsTag?(0,t.Q3)("",!0):((0,t.uX)(),(0,t.CE)(t.FK,{key:0},[e.arc.arcType===e.MODULE_CONSTANTS.ARCS.TYPE.EBOOK?((0,t.uX)(),(0,t.CE)("svg",i,[...a[3]||(a[3]=[(0,t.Lk)("circle",{cx:"28",cy:"28",r:"28",fill:"#C5D7E7"},null,-1),(0,t.Lk)("path",{d:"M33 20C33.5523 20 34 20.4477 34 21V35C34 35.5523 33.5523 36 33 36H22V20H33Z",stroke:"#1A2D3F","stroke-width":"2"},null,-1),(0,t.Lk)("rect",{x:"29",y:"20",width:"2",height:"16",fill:"#1A2D3F"},null,-1)])])):(0,t.Q3)("",!0),e.arc.arcType===e.MODULE_CONSTANTS.ARCS.TYPE.AUDIO_BOOK?((0,t.uX)(),(0,t.CE)("svg",n,[...a[4]||(a[4]=[(0,t.Lk)("circle",{cx:"28",cy:"28",r:"28",fill:"#C5D7E7"},null,-1),(0,t.Lk)("path",{d:"M34 33V26.5C34 23.4624 31.5376 21 28.5 21V21C25.4624 21 23 23.4624 23 26.5V33",stroke:"#1A2D3F","stroke-width":"2","stroke-linecap":"round"},null,-1),(0,t.Lk)("path",{d:"M20 28H23V33H20C19.4477 33 19 32.5523 19 32V29C19 28.4477 19.4477 28 20 28Z",stroke:"#1A2D3F","stroke-width":"2","stroke-linecap":"round"},null,-1),(0,t.Lk)("path",{d:"M37 28H34V33H37C37.5523 33 38 32.5523 38 32V29C38 28.4477 37.5523 28 37 28Z",stroke:"#1A2D3F","stroke-width":"2","stroke-linecap":"round"},null,-1),(0,t.Lk)("path",{d:"M26 28C26 27.4477 26.4477 27 27 27H29C30.1046 27 31 27.8954 31 29V32C31 33.1046 30.1046 34 29 34H27C26.4477 34 26 33.5523 26 33V28Z",fill:"#1A2D3F"},null,-1)])])):(0,t.Q3)("",!0)],64))]),_:1},8,["to"]),(0,t.Lk)("div",s,[(0,t.Lk)("div",c,[((0,t.uX)(),(0,t.Wv)((0,t.$y)(e.bookHeadingLevel),{class:(0,l.C4)(e.bookHeadingClass)},{default:(0,t.k6)(()=>[(0,t.bF)(m,{to:e.arcViewUrl},{default:(0,t.k6)(()=>[(0,t.eW)((0,l.v_)(e.bookTitle),1)]),_:1},8,["to"])]),_:1},8,["class"])),e.showExcerpt&&e.arc.book?((0,t.uX)(),(0,t.CE)("div",d,(0,l.v_)(e.bookExcerpt),1)):(0,t.Q3)("",!0),(0,t.Lk)("div",u,[(0,t.bF)(w,{book:e.arc.book,"show-avatar":!1,"pen-name-as-link":!1},null,8,["book"]),(0,t.bF)(g,{arc:e.arc,claim:e.claim},null,8,["arc","claim"])])]),(0,t.Lk)("div",v,[e.showFormatAsTag?((0,t.uX)(),(0,t.CE)(t.FK,{key:0},[e.arc.arcType===e.MODULE_CONSTANTS.ARCS.TYPE.EBOOK?((0,t.uX)(),(0,t.Wv)(E,{key:0,color:"bs-lb-r"},{default:(0,t.k6)(()=>[(0,t.bF)(h,{class:"on-left-sm",name:"app:ebook",size:".75rem"}),(0,t.bF)(C,{keypath:"modules.arcs.labels.arcType.options.eBook",tag:"span"})]),_:1})):((0,t.uX)(),(0,t.Wv)(E,{key:1,color:"bs-lb-r"},{default:(0,t.k6)(()=>[(0,t.bF)(h,{class:"on-left-sm",name:"app:audiobook",size:".75rem"}),(0,t.bF)(C,{keypath:"modules.arcs.labels.arcType.options.audioBook",tag:"span"})]),_:1}))],64)):(0,t.Q3)("",!0),e.exclusiveVisible?((0,t.uX)(),(0,t.Wv)(E,{key:1,color:"bs-m-y","text-color":"white"},{default:(0,t.k6)(()=>[(0,t.bF)(h,{name:"app:award",class:"on-left-sm"}),(0,t.Lk)("span",null,(0,l.v_)(e.$t("modules.arcs.labels.exclusive")),1)]),_:1})):(0,t.Q3)("",!0),((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(e.categoryNames,e=>((0,t.uX)(),(0,t.Wv)(E,{key:`category-${e}`,color:"bs-lb-r"},{default:(0,t.k6)(()=>[(0,t.eW)((0,l.v_)(e),1)]),_:2},1024))),128)),((0,t.uX)(!0),(0,t.CE)(t.FK,null,(0,t.pI)(e.keywords,a=>((0,t.uX)(),(0,t.Wv)(E,{key:`keyword-${a}`,color:"bs-lb-r",onClick:(0,r.D$)(o=>e.onFilterByKeyword(a),["stop"])},{default:(0,t.k6)(()=>[(0,t.Lk)("span",null,(0,l.v_)(a),1)]),_:2},1032,["onClick"]))),128))])])]),_:1}),e.showButtons?((0,t.uX)(),(0,t.Wv)(_,{key:0},{default:(0,t.k6)(()=>[(0,t.bF)(T,{spread:""},{default:(0,t.k6)(()=>[e.isArcDeleted?((0,t.uX)(),(0,t.Wv)(S,{key:0,disabled:""},{default:(0,t.k6)(()=>[...a[5]||(a[5]=[(0,t.eW)(" N/A ",-1)])]),_:1})):(0,t.Q3)("",!0),e.readButtonVisible?((0,t.uX)(),(0,t.Wv)(S,{key:1,onClick:(0,r.D$)(e.readEpubOrPdf,["stop"]),flat:""},{default:(0,t.k6)(()=>[e.$q.screen.gt.xs?((0,t.uX)(),(0,t.Wv)(h,{key:0,name:"app:delayed",size:".875rem"})):(0,t.Q3)("",!0),(0,t.eW)(" "+(0,l.v_)(e.$t("modules.arcs.actions.read")),1)]),_:1},8,["onClick"])):(0,t.Q3)("",!0),e.downloadButtonVisible?((0,t.uX)(),(0,t.Wv)(S,{key:2,onClick:a[0]||(a[0]=(0,r.D$)(a=>e.$router.push(e.linkService.frontEndRelative("review-copy",e.arc.id,e.arc.book.title,"claim")),["stop"])),flat:""},{default:(0,t.k6)(()=>[e.$q.screen.gt.xs?((0,t.uX)(),(0,t.Wv)(h,{key:0,name:"app:download-solid",size:".875rem"})):(0,t.Q3)("",!0),(0,t.eW)(" "+(0,l.v_)(e.arc.arcType===e.MODULE_CONSTANTS.ARCS.TYPE.EBOOK?e.$t("modules.arcs.actions.download"):e.$t("modules.arcs.actions.listen")),1)]),_:1})):(0,t.Q3)("",!0),e.reviewButtonVisible?((0,t.uX)(),(0,t.Wv)(S,{key:3,class:"bs-btn__highlight",onClick:a[1]||(a[1]=(0,r.D$)(a=>e.$router.push(e.linkService.frontEndRelative("review-copy",e.arc.id,e.arc.book.title,"review")),["stop"])),flat:""},{default:(0,t.k6)(()=>[e.$q.screen.gt.xs?((0,t.uX)(),(0,t.Wv)(h,{key:0,name:"app:arrow-right",size:".5rem"})):(0,t.Q3)("",!0),e.claim&&e.claim.status===e.MODULE_CONSTANTS.ARCS.CLAIMS.STATUS.IN_PROGRESS?((0,t.uX)(),(0,t.Wv)(C,{key:1,keypath:"modules.arcs.actions.continueReview"})):e.claim&&e.claim.status===e.MODULE_CONSTANTS.ARCS.CLAIMS.STATUS.COMPLETE?((0,t.uX)(),(0,t.Wv)(C,{key:2,keypath:"modules.arcs.actions.viewReview"})):((0,t.uX)(),(0,t.Wv)(C,{key:3,keypath:"modules.arcs.actions.startReview"}))]),_:1})):(0,t.Q3)("",!0),e.claim&&e.claim.status===e.MODULE_CONSTANTS.ARCS.CLAIMS.STATUS.CANCELLED?((0,t.uX)(),(0,t.Wv)(S,{key:4,class:"bs-btn__highlight",onClick:a[2]||(a[2]=(0,r.D$)(a=>e.$router.push(e.linkService.frontEndRelative("review-copy",e.arc.id,e.arc.book.title,"claim","cancel")),["stop"])),flat:""},{default:(0,t.k6)(()=>[e.$q.screen.gt.xs?((0,t.uX)(),(0,t.Wv)(h,{key:0,name:"app:arrow-right",size:".5rem"})):(0,t.Q3)("",!0),(0,t.bF)(C,{keypath:"modules.arcs.actions.viewCancellation"})]),_:1})):(0,t.Q3)("",!0)]),_:1})]),_:1})):(0,t.Q3)("",!0)]),_:1},8,["class","role","onClick"])}}
1,47639(e,a,o){var t=o(89221),r=o(7869),l=o(65732),i=o(11381),n=o(71391),s=o(91037),c=o(60489),d=o(62856),u=o(33067),v=o(98560),k=o(24837),p=function(e,a,o,t){function r(e){return e instanceof o?e:new o(function(a){a(e)})}return new(o||(o=Promise))(function(o,l){function i(e){try{s(t.next(e))}catch(e){l(e)}}function n(e){try{s(t["throw"](e))}catch(e){l(e)}}function s(e){e.done?o(e.value):r(e.value).then(i,n)}s((t=t.apply(e,a||[])).next())})};const b=(0,t.pM)({name:"ArcPreview",components:{PenName:(0,t.$V)(()=>o.e(996).then(()=>o(64354))),ArcDueDate:(0,t.$V)(()=>o.e(996).then(()=>o(69705))),SaveBtn:(0,t.$V)(()=>o.e(1885).then(()=>o(71885)))},props:{arc:{type:Object},claim:{type:Object},overrideUrl:{type:String},bookHeadingLevel:{type:String,default:"h2"},bookHeadingClass:{type:String,default:"bs-h2--mobile"},showFormatAsTag:{type:Boolean,default:!0},showExcerpt:{type:Boolean}},setup(e,{emit:a}){const b=l.jGy.ARCS.CLAIMS.STATUS,y=(0,i.Pp)(),{showError:f}=(0,s.b)(y),{ellipsis:m,formatDate:w}=(0,c.d)(n.Tl),g=(0,d.c)(),h=(0,r.IG)((0,i.hw)().book.service),C=(0,r.IG)((0,i.Os)().arc.service),E=(0,r.IG)((0,u.i)().link()),{formatArcDueDate:A}=(0,k.Z)({formatDate:w}),S=(0,r.KR)(!!e.claim),T=(0,r.KR)(!1),_=(0,t.EW)(()=>{const a=(new l.Rml).getLiveDataObject();return e.arc.id===a.DeletedArc.id}),D=(0,t.EW)(()=>{const{status:a}=e.claim||{};return a===b.CLAIMED&&!_.value}),O=(0,t.EW)(()=>{const{status:a}=e.claim||{},{arcType:o}=e.arc||{};return(a===b.CLAIMED||a===b.IN_PROGRESS)&&!_.value&&o===l.jGy.ARCS.TYPE.EBOOK}),W=(0,t.EW)(()=>{const{status:a}=e.claim||{};return a!==b.CANCELLED&&!_.value}),L=(0,t.EW)(()=>{var a;const o=h.splitKeywords(null===(a=e.arc)||void 0===a?void 0:a.book);return o.slice(0,4)}),V=(0,t.EW)(()=>A(e.arc,e.claim)),F=(0,t.EW)(()=>e.arc.participationType===l.jGy.ARCS.PARTICIPATION_TYPE.TOP_REVIEWERS),$=(0,t.EW)(()=>!e.claim&&!_.value),R=(0,t.EW)(()=>{var a,o;return m((null===(o=null===(a=e.arc)||void 0===a?void 0:a.book)||void 0===o?void 0:o.title)||"",54)}),X=(0,t.EW)(()=>{var a,o;const t=(null===(o=null===(a=e.arc)||void 0===a?void 0:a.book)||void 0===o?void 0:o.description)||"",r=t.replace(/<[^>]*>?/g," ").replace(/\s+/g," ").trim();return m(r,260)}),M=(0,t.EW)(()=>{var a;if(_.value)return;const o=e.arc;return e.overrideUrl||E.frontEndRelative("review-copy","view",o.id,null===(a=o.book)||void 0===a?void 0:a.title)}),N=(0,t.EW)(()=>{var a,o;return[...new Set((null===(o=null===(a=e.arc.book)||void 0===a?void 0:a.categories)||void 0===o?void 0:o.map(e=>(0,v.y)(e,y.$i18n.locale)))||[])]}),x=a=>{if(!M.value)return;const o=e.arc;o.id&&y.$q.localStorage.set("lastViewedReviewCopy",o.id),a.ctrlKey?window.open(`/reviewer${M.value}`):y.$router.push(M.value)},B=()=>{var r;y.$q.dialog({component:(0,t.$V)(()=>o.e(7903).then(()=>o(26563))),componentProps:{pdfFile:null===(r=e.arc.book)||void 0===r?void 0:r.pdfFile}}).onDismiss(()=>{a("reload")})},I=()=>{y.$q.dialog({component:(0,t.$V)(()=>o.e(996).then(()=>o(81383))),componentProps:{book:e.arc.book,claim:e.claim}}).onDismiss(()=>{a("reload")})},P=()=>{const a=e.arc.book;!(null===a||void 0===a?void 0:a.epubFile)&&(null===a||void 0===a?void 0:a.pdfFile)?B():I()},Q=e=>{a("filter-by-keyword",e)},U=()=>p(this,void 0,void 0,function*(){var o;if(!(null===(o=g.authenticatedUser)||void 0===o?void 0:o.id))return void(0,i.a)().authRequired({forwardUrl:y.$route.fullPath,router:y.$router});if(T.value)return;const t=e.arc,r=!!t.isSaved;t.isSaved=!r,T.value=!0;try{r?yield C.unsaveArc(t.id):yield C.saveArc(t.id),a("saved-changed",t.id,t.isSaved)}catch(e){t.isSaved=r,f(e.message)}finally{T.value=!1}});return{MODULE_CONSTANTS:l.jGy,linkService:E,bookService:h,arcService:C,showButtons:S,isTogglingSave:T,isArcDeleted:_,downloadButtonVisible:D,readButtonVisible:O,reviewButtonVisible:W,keywords:L,formattedDate:V,exclusiveVisible:F,saveVisible:$,bookTitle:R,bookExcerpt:X,arcViewUrl:M,categoryNames:N,navigateToArc:x,readEpubOrPdf:P,readPdf:B,readEpub:I,onFilterByKeyword:Q,onSaveClick:U}}});o.d(a,["A",0,b])},62276(e,a,o){o.r(a);var t=o(2941),r=o(86581),l=o(82922),i=o(91322),n=o(57767),s=o(7978),c=o(83967),d=o(89385),u=o(258),v=o.n(u);const k=(0,l.A)(r.A,[["render",t.X]]),p=k;v()(r.A,"components",{QCard:i.A,QCardSection:n.A,QIcon:s.A,QCardActions:c.A,QBtnGroup:d.A}),o.d(a,["default",0,p])},86581(e,a,o){o.d(a,{A:()=>t.A});var t=o(47639)}}]); 2//# sourceMappingURL=2276.3ac7dcd9.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.