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 o=1;o<arguments.length;o++){var t=arguments[o];if(null!=t)for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:booksprout-reviewer-app":!0});var o=(new e.Error).stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="ff8cdc08-0c6a-49f7-866a-b60105c67f3c",e._sentryDebugIdIdentifier="sentry-dbid-ff8cdc08-0c6a-49f7-866a-b60105c67f3c")}catch(e){}}(),(globalThis["webpackChunkapp_reviewer"]||=[]).push([[4378],{81319(e,o,t){t.d(o,{X:()=>v});var a=t(89221),n=t(33995),i=t(65365);const l={class:"row items-center no-wrap ca-eb-d-email"},d={class:"text-bs-nb q-mr-md"},r={class:"row"},s={key:0,class:"ca-eb-d-e-file"},c={key:1,class:"ca-eb-d-e-file"},u={class:"row q-mt-md"},f={class:"col-xs-12 col-md-6"},p={class:"text-uppercase"};function v(e,o,t,v,y,b){const w=(0,a.g2)("bs-btn");return(0,a.uX)(),(0,a.CE)("div",null,[(0,a.Lk)("div",{class:"ca-eb-d-download",onClick:o[2]||(o[2]=o=>e.fileType=void 0)},[(0,a.Lk)("div",l,[o[3]||(o[3]=(0,a.Lk)("div",{class:"flex"},[(0,a.Lk)("i",{class:"icon-step","aria-hidden":"true",role:"presentation","data-step-number":"1"})],-1)),(0,a.Lk)("div",d,(0,i.v_)(e.$t("modules.arcs.claims.ebook.download.whichFileType")),1)]),(0,a.Lk)("div",r,[e.isFileProvided(e.MODULE_CONSTANTS.ARCS.CLAIMS.FILE_TYPE.EPUB)?((0,a.uX)(),(0,a.CE)("div",s,[(0,a.Lk)("button",{class:(0,i.C4)(["ca-eb-d-e-file-type text-bs-nb",{selected:e.fileType===e.MODULE_CONSTANTS.ARCS.CLAIMS.FILE_TYPE.EPUB}]),onClick:o[0]||(o[0]=(0,n.D$)(o=>e.setFileType(e.MODULE_CONSTANTS.ARCS.CLAIMS.FILE_TYPE.EPUB),["stop"]))},[o[4]||(o[4]=(0,a.Lk)("span",null,".Epub",-1)),(0,a.Lk)("em",null,(0,i.v_)(e.$t("modules.arcs.claims.ebook.epubExplanationText")),1)],2)])):(0,a.Q3)("",!0),e.isFileProvided(e.MODULE_CONSTANTS.ARCS.CLAIMS.FILE_TYPE.PDF)?((0,a.uX)(),(0,a.CE)("div",c,[(0,a.Lk)("button",{class:(0,i.C4)(["ca-eb-d-e-file-type text-bs-nb",{selected:e.fileType===e.MODULE_CONSTANTS.ARCS.CLAIMS.FILE_TYPE.PDF}]),onClick:o[1]||(o[1]=(0,n.D$)(o=>e.setFileType(e.MODULE_CONSTANTS.ARCS.CLAIMS.FILE_TYPE.PDF),["stop"]))},[...o[5]||(o[5]=[(0,a.Lk)("span",null,".PDF",-1)])],2)])):(0,a.Q3)("",!0)]),(0,a.Lk)("div",u,[(0,a.Lk)("div",f,[(0,a.bF)(w,{class:"full-width",disable:void 0===e.fileType,onClick:(0,n.D$)(e.doDownload,["stop"]),large:"",secondary:""},{default:(0,a.k6)(()=>[(0,a.Lk)("span",p,(0,i.v_)(e.$t("modules.arcs.buttons.download")),1)]),_:1},8,["disable","onClick"])])])])])}},56225(e,o,t){var a=t(89221),n=t(7869),i=t(65732),l=t(11381),d=t(91037),r=t(71391),s=t(46816),c=t(62856),u=t(10942);const f=(0,a.pM)({name:"DownloadEbookDownloadMode",props:{arc:{type:Object},arcClaim:{type:Object}},setup(e,{emit:o}){const t=(0,l.Pp)(),{showError:f}=(0,d.b)(t),p=(0,c.c)(),v=(0,n.IG)((0,l.Os)().arc.service),y=(0,s.W)({arc:()=>e.arc,arcClaim:()=>e.arcClaim,arcService:v,authenticatedUser:()=>p.mimicOrAuthenticatedUser,$q:t.$q,$tc:e=>(0,r.Tl)(e),showError:f,onDone:()=>o("done")}),b=e=>{y.fileType.value=e},w=()=>{void 0!==y.fileType.value&&(y.trackDelivery(i.jGy.ARCS.CLAIMS.DOWNLOAD_TYPE.DOWNLOAD),t.$q.loading.show(),v.downloadClaim({fileType:y.fileType.value,claimId:e.arcClaim.id,downloadType:i.jGy.ARCS.CLAIMS.DOWNLOAD_TYPE.DOWNLOAD},(e,o)=>(0,u.NF)(e,o,{title:o,body:(0,r.Tl)("modules.arcs.claims.ebook.download.downloadCompleteBody"),channelName:(0,r.Tl)("modules.arcs.claims.ebook.download.downloadChannelName")})).then(()=>{o("done")}).catch(e=>{f(e.code===u.iX?(0,r.Tl)("modules.arcs.claims.ebook.download.downloadNotAvailableHere"):e.message)}).finally(()=>{t.$q.loading.hide()}))};return(0,a.sV)(()=>y.start()),Object.assign(Object.assign({},y),{MODULE_CONSTANTS:i.jGy,setFileType:b,doDownload:w})}});t.d(o,["A",0,f])},43327(e,o,t){var a=t(6630);const n="UNSUPPORTED",i=(0,a.F3)("Downloads"),l=e=>(null===e||void 0===e?void 0:e.code)===n;t.d(o,["ok",0,i,"w3",0,l])},10942(e,o,t){var a=t(6630),n=t(79682),i=t(71214),l=t(11381),d=t(43327),r=function(e,o,t,a){function n(e){return e instanceof t?e:new t(function(o){o(e)})}return new(t||(t=Promise))(function(t,i){function l(e){try{r(a.next(e))}catch(e){i(e)}}function d(e){try{r(a["throw"](e))}catch(e){i(e)}}function r(e){e.done?t(e.value):n(e.value).then(l,d)}r((a=a.apply(e,o||[])).next())})};const s=t(58431),c=["canceled","cancelled","abort"],u="application/epub+zip",f="application/pdf",p="application/octet-stream",v=["UNIMPLEMENT
1ED","UNAVAILABLE"],y="NATIVE_DELIVERY_UNAVAILABLE",b=(e,o,t)=>r(void 0,void 0,void 0,function*(){if(!(0,l.JK)())return void s(e,o);const n=yield A(e);if("android"===a.Ii.getPlatform())try{return void(yield d.ok.saveToDownloads({fileName:o,data:n,mimeType:L(o),notification:t}))}catch(e){if(w(e))throw E(e);if(!(0,d.w3)(e))throw e}try{yield T(n,o)}catch(e){if(w(e))throw E(e);throw e}}),w=e=>{const o=null===e||void 0===e?void 0:e.code;return"string"===typeof o&&v.includes(o)},E=e=>{var o;return Object.assign(new Error(null!==(o=null===e||void 0===e?void 0:e.message)&&void 0!==o?o:y),{code:y})},T=(e,o)=>r(void 0,void 0,void 0,function*(){const{uri:t}=yield n.YA.writeFile({path:o,data:e,directory:n.__.Cache,recursive:!0});try{yield i.S.share({title:o,files:[t],dialogTitle:o})}catch(e){if(!C(e))throw e}}),L=e=>{const o=e.toLowerCase();return o.endsWith(".epub")?u:o.endsWith(".pdf")?f:p},A=e=>new Promise((o,t)=>{const a=new FileReader;a.onerror=()=>{var e;return t(null!==(e=a.error)&&void 0!==e?e:new Error("Could not read the downloaded file"))},a.onload=()=>{const e=String(a.result),t=e.indexOf(",");o(-1===t?e:e.substring(t+1))},a.readAsDataURL(e)}),C=e=>{const o="string"===typeof e?e:null===e||void 0===e?void 0:e.message;if("string"!==typeof o)return!1;const t=o.toLowerCase();return c.some(e=>t.includes(e))};t.d(o,["NF",0,b,"iX",0,y])},34378(e,o,t){t.r(o);var a=t(81319),n=t(52211),i=t(82922);const l=(0,i.A)(n.A,[["render",a.X]]),d=l;t.d(o,["default",0,d])},52211(e,o,t){t.d(o,{A:()=>a.A});var a=t(56225)}}]); 2//# sourceMappingURL=4378.ac44aed3.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.